

/* alpha clean V3.2: one palette, explicit surface/text pairing. */
html[data-theme="dark"]{--ink:#f3f7f2;--muted:#c4d2c8;--soft:#203027;--line:#435849;--g:#55a744;--gd:#83d16e;--bg:#14211b;--panel:#263a2e;--panel2:#1d2d24;--text:#f3f7f2;--border:#435849;--surface:#203027;--surface-alt:#263a2e}
html[data-theme="light"]{--ink:#17241d;--muted:#485b4e;--soft:#eff3ed;--line:#d4dfd4;--g:#3f8b34;--gd:#33792a;--bg:#f7f8f5;--panel:#ffffff;--panel2:#edf2ec;--text:#17241d;--border:#d4dfd4;--surface:#eff3ed;--surface-alt:#ffffff}
html body{background:var(--bg)!important;color:var(--ink)!important}
/* In dark mode, alternate section surfaces without introducing pale backgrounds. */
html[data-theme="dark"] main > section,html[data-theme="dark"] main > article{background:#14211b!important;color:#f3f7f2!important}
html[data-theme="dark"] main > section:nth-of-type(even),html[data-theme="dark"] main > article:nth-of-type(even){background:#1d2d24!important}
html[data-theme="dark"] main :is(.soft,.section-alt,.alt){background:#1d2d24!important;color:#f3f7f2!important}
/* Original dark sections must remain dark in both modes. */
html main :is(.dark,.dark-section){background:#14211b;color:#f3f7f2}
html main :is(.dark,.dark-section) :is(h1,h2,h3,h4,h5,h6){color:#f3f7f2}
html main :is(.dark,.dark-section) :is(p,.lead,.intro,small){color:#c4d2c8}
/* Reusable cards: explicit background and readable foreground. */
html[data-theme="dark"] main :is(.card,.service,.tile,.panel,.feature,.box,.step,.choice,.hero-card,.case-copy,.filter article,.free,.ctabox,.q,.stat,.info-card,.faq-card,.switchbox,.phone){background:#263a2e!important;color:#f3f7f2!important;border-color:#48614f!important}
html[data-theme="dark"] main :is(.card,.service,.tile,.panel,.feature,.box,.step,.choice,.hero-card,.case-copy,.filter article,.free,.ctabox,.q,.stat,.info-card,.faq-card,.switchbox,.phone) :is(h1,h2,h3,h4,h5,h6,strong,b){color:#f3f7f2!important}
html[data-theme="dark"] main :is(.card,.service,.tile,.panel,.feature,.box,.step,.choice,.hero-card,.case-copy,.filter article,.free,.ctabox,.q,.stat,.info-card,.faq-card,.switchbox,.phone) :is(p,small,span,li){color:#c4d2c8!important}
html[data-theme="light"] main :is(.card,.service,.tile,.panel,.feature,.box,.step,.choice,.case-copy,.filter article,.free,.ctabox,.q,.stat,.info-card,.faq-card,.switchbox,.phone){background:#fff!important;color:#17241d!important;border-color:#d4dfd4!important}
html[data-theme="light"] main :is(.card,.service,.tile,.panel,.feature,.box,.step,.choice,.case-copy,.filter article,.free,.ctabox,.q,.stat,.info-card,.faq-card,.switchbox,.phone) :is(h1,h2,h3,h4,h5,h6,strong,b){color:#17241d!important}
html[data-theme="light"] main :is(.card,.service,.tile,.panel,.feature,.box,.step,.choice,.case-copy,.filter article,.free,.ctabox,.q,.stat,.info-card,.faq-card,.switchbox,.phone) :is(p,small,span,li){color:#485b4e!important}
/* On a dark section, text is light; outside dark sections in light mode it is dark. */
html[data-theme="dark"] main :is(h1,h2,h3,h4,h5,h6){color:#f3f7f2}
html[data-theme="dark"] main :is(p,.lead,.intro,.body-lg,.footnote){color:#c4d2c8}
html[data-theme="light"] main :is(h1,h2,h3,h4,h5,h6){color:#17241d}
html[data-theme="light"] main :is(p,.lead,.intro,.body-lg,.footnote){color:#485b4e}
html[data-theme="light"] main :is(.dark,.dark-section) :is(h1,h2,h3,h4,h5,h6){color:#f3f7f2!important}
html[data-theme="light"] main :is(.dark,.dark-section) :is(p,.lead,.intro,.body-lg,.footnote){color:#c4d2c8!important}
/* Primary and secondary buttons with verified readable foreground. */
html main :is(a.btn,button.btn,.button,.cta-button):not(.ghost):not(.secondary):not(.outline){background:#337e2e!important;color:#fff!important;border-color:#337e2e!important}
html main :is(a.btn,button.btn,.button,.cta-button):not(.ghost):not(.secondary):not(.outline) :is(span,strong,b){color:#fff!important}
html[data-theme="dark"] main :is(.btn.ghost,.btn.secondary,.btn.outline){background:#2b4133!important;color:#f3f7f2!important;border:1px solid #72917a!important}
html[data-theme="light"] main :is(.btn.ghost,.btn.secondary,.btn.outline){background:#fff!important;color:#17241d!important;border:1px solid #829889!important}
html main :is(input,select,textarea){background:var(--panel)!important;color:var(--ink)!important;border-color:var(--line)!important}
/* Exceptional light accent blocks: force dark text on light surface in both themes. */
html main :is(.ac-light-surface){background:#f0f5ed!important;color:#17241d!important;border-color:#c9dbc7!important}
html main :is(.ac-light-surface) :is(h1,h2,h3,h4,h5,h6,strong,b){color:#17241d!important}
html main :is(.ac-light-surface) :is(p,span,small,li){color:#485b4e!important}
html main :is(.ac-light-surface) :is(a.btn,button.btn){color:#fff!important}
/* Dark feature boxes must not be mistaken for generic light cards. */
html main .case-stat{background:#337e2e!important;color:#fff!important}
html main .case-stat :is(h1,h2,h3,h4,p,span,strong,b){color:#fff!important}
html .ac-header,html .ac-footer{color:#f3f7f2}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* TECHNISCHE KORREKTUR 07.11.2026: Lange Texte erzeugen auf schmalen Displays keinen seitlichen Scrollbalken. */
@media (max-width: 700px) {
  main { overflow-wrap: anywhere; }
}

/* Einsatzbilder: konstantes Querformat auf Desktop/Mobil, kein extremer Beschnitt bei 2 Spalten. */
.ac-einsatz-grid img{height:auto!important;aspect-ratio:8/5;object-fit:cover}
