/* KlarVorlagen: Farben aus Logo und Banner, ruhig und hell wie die Produktbilder. */

@font-face {
    font-family: "Inter";
    src: url("/fonts/inter.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --green: #1F5F5B;
    --green-dark: #174845;
    --orange: #E9A23B;
    --orange-light: #F6C26B;
    --text: #172A26;
    --text-muted: #52645E;
    --background: #F7F7F2;
    --card: #FFFFFF;
    --surface-soft: #EDF3EF;
    --border: #D7E0DB;
    --border-strong: #788980;
    --focus: #1F5F5B;
    --error: #9C2B2E;
    --warning: #704607;
    --warning-surface: #FFF2D9;
    --shadow: 0 2px 8px rgb(23 42 38 / .035);
    --radius-small: .5rem;
    --radius: 1rem;
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --font: "Inter", ui-sans-serif, system-ui, sans-serif;
    --text-small: .875rem;
    --text-body: 1rem;
    --container: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--text-body);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--text);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 .75rem;
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }

a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--orange-light); }


.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--orange);
    color: var(--text);
    padding: .5rem 1rem;
    z-index: 10;
}
.skip-link:focus { left: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
.narrow { max-width: 48rem; }

/* Kopf */

.site-header { background: var(--card); color: var(--text); border-bottom: 1px solid var(--border); }
.site-header .brand, .site-header .brand:hover { color: var(--text); }
.site-header .logo-word span { color: var(--green); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.logo-mark { width: 2.1rem; height: 2.1rem; flex-shrink: 0; }
.logo-word { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.logo-word span { color: var(--orange-light); }

.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.main-nav .btn { white-space: nowrap; }
@media (max-width: 440px) {
    .header-inner { gap: .5rem; }
    .brand { gap: .4rem; }
    .logo-word { font-size: 1.05rem; }
    .logo-mark { width: 1.7rem; height: 1.7rem; }
    .main-nav { gap: .75rem; }
    .main-nav .btn-small { padding: .45rem .7rem; font-size: .9rem; }
    .hide-small { display: none; }
}

/* Knöpfe */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3rem;
    padding: .75rem 1.4rem;
    border-radius: .5rem;
    border: 2px solid transparent;
    font: 600 1rem/1.2 var(--font);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-accent { background: var(--orange); color: var(--text); }
.btn-accent:hover { background: var(--orange-light); color: var(--text); }
.btn-secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green); color: #fff; }
.btn-small { min-height: 2.5rem; padding: .5rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Abschnitte */

.section { padding: 3.5rem 0; }
@media (min-width: 900px) { .section { padding: 5rem 0; } }
.section-white { background: var(--card); }
.section-intro { max-width: 44rem; margin-bottom: 2rem; }
.section-intro p { color: var(--text-muted); }

.eyebrow {
    color: var(--green);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}
.lead { font-size: 1.15rem; color: var(--text-muted); }
.small { font-size: .9rem; color: var(--text-muted); }

/* Startseite: Kopfbereich */

.hero { padding: 3rem 0 3.5rem; }
@media (min-width: 900px) { .hero { padding: 4.5rem 0 5rem; } }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 6fr 5fr; gap: 3.5rem; } }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Karten */

.cards { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-image { display: block; border-bottom: 1px solid var(--border); }
.card-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.4rem; }
.card-body h3 { margin-bottom: .5rem; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-body p { color: var(--text-muted); margin-bottom: 1rem; }
.card-footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.price { font-weight: 800; font-size: 1.2rem; color: var(--text); margin-right: auto; }

.text-link { display: inline-block; margin-top: 1.75rem; font-weight: 700; }

/* Schritte und Vorteile */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
    counter-increment: step;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}
.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: .75rem;
    border-radius: 50%;
    background: var(--orange);
    color: var(--text);
    font-weight: 800;
}
.steps-4 { counter-reset: step; }
@media (min-width: 768px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5 5.5-6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.checklist-2 { gap: .75rem 2.5rem; }
@media (min-width: 768px) { .checklist-2 { grid-template-columns: repeat(2, 1fr); } }

.about { display: grid; gap: 1rem; max-width: 48rem; }

.notice {
    border-left: 4px solid var(--orange);
    background: var(--card);
    border-radius: 0 .5rem .5rem 0;
    padding: 1rem 1.25rem;
    font-size: .95rem;
    color: var(--text-muted);
}
.notice p:last-child { margin-bottom: 0; }
.notice-draft, .notice-warning { border-left-color: #C0392B; color: var(--text); margin-bottom: 2rem; }

/* Vorlagen-Seite */

.product-head { padding: 2.5rem 0 3rem; }
@media (min-width: 900px) { .product-head { padding: 3.5rem 0 4rem; } }
/* Handy: Einleitung, Kaufkasten, Bilder. Breit: Kaufkasten rechts neben Einleitung und Bildern. */
.product-grid { display: grid; gap: 2rem; align-items: start; }
.product-grid > * { min-width: 0; }
.product-intro h1 { overflow-wrap: anywhere; hyphens: auto; }
.product-grid .gallery { margin-top: 0; }
@media (min-width: 960px) {
    .product-grid { grid-template-columns: 7fr 4fr; grid-template-areas: "intro buy" "gallery buy"; gap: 2rem 3rem; }
    .product-intro { grid-area: intro; }
    .product-grid .buy-box { grid-area: buy; }
    .product-grid .gallery { grid-area: gallery; }
}

.breadcrumb { font-size: .9rem; margin-bottom: 1rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }

.buy-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 4px solid var(--orange);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
@media (min-width: 960px) { .buy-box { position: sticky; top: 1.5rem; } }
.buy-box .price { display: block; font-size: 2rem; margin-bottom: 1rem; }
.buy-box .checklist { margin: 1.25rem 0 0; font-size: .95rem; }
.buy-note { margin: 1rem 0 0; font-size: .95rem; color: var(--text-muted); }
.buy-hint { margin: 1rem 0 0; font-size: .85rem; color: var(--text-muted); }

.gallery { display: grid; gap: 1rem; margin-top: 2rem; }
figure.gallery { margin-inline: 0; }
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .gallery-thumbs { grid-template-columns: repeat(4, 1fr); } }

.features { counter-reset: feature; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features > li {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem;
}
.features > li > ul { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--text-muted); }
.features-2 { }
@media (min-width: 900px) { .features-2 { grid-template-columns: repeat(2, 1fr); } }

.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }

.faq { display: grid; gap: .75rem; max-width: 48rem; }
.faq details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: .5rem;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 3rem 1rem 1.25rem;
    font-weight: 700;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: .85rem;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--green);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 1.25rem 1rem; color: var(--text-muted); }
.faq .answer ul { margin: 0; padding-left: 1.2rem; }

/* Vorlagen-Übersicht */

.group + .group { margin-top: 3.5rem; }
.group h2 { margin-bottom: 1.25rem; }

/* Rechtliches */

.legal h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.legal h2:first-child { margin-top: 0; }
.opt-out { background: var(--card); border: 1px solid var(--border); border-radius: .5rem; padding: 1rem 1.25rem; }

/* Fußzeile */

.site-footer { background: var(--green); color: #DDEBE9; padding: 2.5rem 0 1.5rem; }
.site-footer a { color: #fff; }
.footer-note { margin: 1rem 0 1.5rem; max-width: 40rem; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    border-top: 1px solid rgb(255 255 255 / .18);
    padding-top: 1.25rem;
    font-size: .9rem;
}

.section-gap { margin-top: 3rem; }
.section-tight { padding: 2rem 0; }
.price { white-space: nowrap; }
.steps.steps-list { grid-template-columns: 1fr; gap: .75rem; }
.steps-list li { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; }
.steps-list li::before { margin: 0; flex-shrink: 0; }

/* Gemeinsame Eingabe- und Ergebnisbausteine für die nächsten Werkzeuge. */
.field { display: grid; align-content: start; gap: var(--space-2); min-width: 0; }
.field label { font-weight: 600; }
.form-grid { display: grid; gap: var(--space-6); }
.input, .select, .textarea {
    width: 100%; min-width: 0; min-height: 3rem;
    border: 1px solid var(--border-strong); border-radius: var(--radius-small);
    padding: .7rem .9rem; background: var(--card); color: var(--text);
    font: inherit;
}
.textarea { min-height: 7rem; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); opacity: 1; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border: 2px solid var(--error); }
.field-hint, .field-error { margin: 0; font-size: var(--text-small); }
.field-hint { color: var(--text-muted); }
.field-error { color: var(--error); }
.actions + .field-hint { margin-top: var(--space-3); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-soft); color: var(--text-muted); cursor: not-allowed; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--surface-soft); color: var(--text-muted); border-color: var(--border); cursor: not-allowed; }
.badge { display: inline-flex; align-self: flex-start; border-radius: 99rem; padding: .2rem .65rem; background: var(--surface-soft); color: var(--green-dark); font-size: var(--text-small); font-weight: 600; margin-bottom: var(--space-3); }
.badge-success { background: var(--surface-soft); color: var(--green-dark); }
.badge-warning { background: var(--warning-surface); color: var(--warning); }
.card-soft { background: var(--surface-soft); }
.card-footer .text-link { margin-top: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--card); }
.data-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .95rem; }
.data-table caption { text-align: left; padding: var(--space-4); color: var(--text-muted); font-size: var(--text-small); }
.data-table th, .data-table td { text-align: left; padding: .85rem 1rem; border-top: 1px solid var(--border); }
.data-table thead { background: var(--surface-soft); }
.data-table .numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .badge { margin-bottom: 0; white-space: nowrap; }
.component-section + .component-section { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--border); }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; } }

/* Navigation bleibt auch ohne JavaScript über das native details-Element bedienbar. */
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; padding: .6rem .85rem; border: 1px solid var(--border-strong); border-radius: var(--radius-small); font-weight: 600; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: " +"; color: var(--green); }
.mobile-nav[open] summary::after { content: " −"; }
.mobile-panel { position: absolute; top: calc(100% + .75rem); right: 0; z-index: 20; display: grid; gap: var(--space-1); width: min(22rem, calc(100vw - 2rem)); padding: var(--space-3); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgb(23 42 38 / .12); }
.mobile-panel a { display: block; border-radius: var(--radius-small); padding: .75rem; font-weight: 600; text-decoration: none; }
.mobile-panel a:not(.btn):hover, .mobile-panel a[aria-current="page"] { background: var(--surface-soft); }
.footer-top { display: grid; gap: var(--space-8); margin-bottom: var(--space-8); }
.footer-top .footer-note { max-width: 28rem; margin: var(--space-4) 0 0; }
.footer-section { display: grid; align-content: start; gap: var(--space-2); }
.footer-section h2 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: var(--space-2); }
.footer-section a { width: fit-content; text-decoration-thickness: 1px; }
.footer-disclaimer { max-width: 50rem; margin: 0 0 var(--space-6); font-size: var(--text-small); }
@media (min-width: 768px) { .footer-top { grid-template-columns: 2fr 1fr 1fr; } }
@media (max-width: 959px) { .main-nav { display: none; } .mobile-nav { display: block; } }

/* Lange rechtliche Begriffe und Adressen müssen auch bei schmaler Ansicht umbrechen. */
.legal { overflow-wrap: anywhere; }

/* Startseite: klare Einstiege vor den einzelnen Produkten. */
.home-hero { padding: 3rem 0; background: linear-gradient(115deg, var(--background) 55%, var(--surface-soft)); }
.home-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.home-intro { max-width: 39rem; }
.home-intro h1 { font-size: clamp(2.15rem, 4.2vw, 3.5rem); line-height: 1.08; }
.home-intro .lead { max-width: 35rem; margin-top: 1.25rem; }
.home-purchase-note { font-size: .85rem; color: var(--text-muted); margin: 1rem 0 0; }
.home-audiences { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.home-audiences > .eyebrow { font-size: .75rem; margin-bottom: .4rem; }
.home-audiences > a { display: grid; grid-template-columns: 1.5rem 1fr auto; align-items: center; gap: .8rem; padding: 1.15rem 0; text-decoration: none; border-bottom: 1px solid var(--border); }
.home-audiences > a:last-child { border: 0; padding-bottom: .3rem; }
.home-audiences > a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.home-audiences strong { display: block; font-size: 1.05rem; color: var(--text); }
.home-audiences strong + span { display: block; font-size: .85rem; line-height: 1.5; color: var(--text-muted); margin-top: .2rem; }
.home-audience-number { align-self: start; padding-top: .1rem; font-size: .75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.home-section-heading { display: grid; gap: .5rem; margin-bottom: 2rem; }
.home-section-heading > p { color: var(--text-muted); max-width: 26rem; }
.home-products { display: grid; gap: 1.25rem; }
.home-products .card { box-shadow: none; }
.home-products .card-body { padding: 1.4rem; }
.home-how .steps { margin-top: 2rem; }
.home-how .steps li { background: transparent; border: 0; border-top: 1px solid var(--border-strong); border-radius: 0; padding: 1.5rem 0 0; box-shadow: none; }
.home-how .steps li::before { background: transparent; color: var(--green); border: 1px solid var(--border-strong); }
.home-about { display: grid; gap: 1rem; }
.home-about > div:last-child { max-width: 40rem; color: var(--text-muted); }
.home-about .actions { gap: 1.5rem; }
.home-tool-section { background: var(--green); }
.home-tool-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.home-tool-banner > div { max-width: 42rem; }
.home-tool-banner h2, .home-tool-banner p { color: white; }
.home-tool-banner .eyebrow { color: var(--orange-light); }
.home-tool-section :focus-visible { outline-color: var(--orange-light); }
@media (min-width: 640px) { .home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
    .home-hero { padding: 4.5rem 0; }
    .home-hero-grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
    .home-section-heading { grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end; }
    .home-products .card { display: grid; grid-template-columns: 2fr 3fr; align-items: stretch; }
    .home-products .card-image { border-bottom: 0; border-right: 1px solid var(--border); background: var(--background); }
    .home-products .card-image img { height: 100%; object-fit: contain; }
    .home-about { grid-template-columns: 1fr 1.4fr; gap: 4rem; }
}
@media (max-width: 380px) {
    .home-audiences { padding: 1rem; }
    .home-audiences > a { grid-template-columns: 1.2rem 1fr auto; gap: .5rem; }
}

.product-files { list-style: none; margin: 1.25rem 0; padding: 0; }
.product-files li { display: flex; align-items: baseline; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.product-files li > span:last-child { overflow-wrap: anywhere; min-width: 0; }
.product-file-facts h3 { margin-top: .5rem; }

/* Die Funktionen bleiben auch auf kleinen Karten ohne Bildschrift lesbar. */
.card-benefits { padding-left: 1.2rem; margin: 0 0 1.25rem; color: var(--text); font-size: .9rem; }
.card-benefits li + li { margin-top: .35rem; }

/* Bildvorschau: native Dialog-Fokusführung, Zoom bleibt innerhalb des Scrollbereichs. */
.card-image, .gallery > a { position: relative; }
.preview-hint { display: block; padding: .45rem .75rem; font-size: .8rem; text-align: center; color: var(--green); background: var(--card); }
.image-preview-open { overflow: hidden; }
.image-preview { width: min(1200px, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--card); box-shadow: var(--shadow); }
.image-preview::backdrop { background: rgb(12 30 29 / 78%); }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.preview-toolbar h2 { margin: 0; font-size: 1.15rem; }
.preview-image-area { overflow: auto; max-height: 60dvh; background: var(--background); }
.preview-image-area img { display: block; width: 100%; height: auto; max-height: 60dvh; object-fit: contain; }
.image-preview.is-zoomed .preview-image-area img { width: 1200px; max-width: none; max-height: none; }
#preview-caption { margin: .75rem 0 .25rem; font-weight: 600; }
#preview-demo { margin-bottom: .75rem; }
.preview-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; }
#preview-position { min-width: 3rem; text-align: center; font-size: .9rem; }
@media (max-width: 480px) { .image-preview { padding: .75rem; } .preview-image-area, .preview-image-area img { max-height: 48dvh; } }

.category-navigation { margin-block: 1.5rem; }
.category-navigation [aria-current="page"] { background: var(--green); border-color: var(--green); color: var(--card); }

.search-form { padding: 1.25rem; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); }
.search-filters { display: grid; gap: 1rem; margin-top: 1rem; }
.search-form .field { display: grid; gap: .35rem; }
.search-form .field input, .search-form .field select { width: 100%; min-width: 0; }
@media (min-width: 700px) { .search-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .search-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.article-metadata { color: var(--text-muted); font-size: var(--text-small); margin-block: 1.5rem; }
.article-metadata p { margin: .35rem 0; }
/* KLAR-189: Artikelkopf und Metadaten gehören zusammen; generische Section-Abstände addieren sich hier sonst. */
.article-header { padding-bottom: 1.5rem; }
.article-header .narrow > :last-child { margin-bottom: 0; }
.article-body { padding-top: 0; }
.article-body .article-metadata { margin-top: 0; }
.article-toc { padding: 1.25rem 1.5rem; margin-block: 1.5rem 2rem; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.article-toc p { font-weight: 700; margin-bottom: .5rem; }
.article-toc ol { margin: 0; padding-left: 1.25rem; }
.article-toc li + li { margin-top: .35rem; }
.article-content h2 { scroll-margin-top: 6rem; }
.article-content > h2 { margin-top: 2rem; }
.article-sources, .article-related { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; overflow-wrap: anywhere; }
.article-sources li + li, .article-related li + li { margin-top: .5rem; }

/* Druck und „Als PDF sichern“ (FND-012): nur der Inhalt, schwarz auf weiß, ohne Navigation und Bedienelemente. */
@media print {
    .site-header, .site-footer, .skip-link, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
    a { color: inherit; text-decoration: none; }
    h1, h2, h3 { break-after: avoid; }
    table, figure, tr { break-inside: avoid; }
}

/* Prüfsummen sollen auch auf kleinen Displays vollständig lesbar bleiben. */
.download-hash { overflow-wrap: anywhere; }

/* Produktanleitungen (FEAT-003, KLAR-93). */
.guide-steps { counter-reset: guide; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.guide-step { counter-increment: guide; display: grid; gap: 1rem; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.guide-step h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.guide-step h3::before { content: counter(guide) ". "; color: var(--green); }
.guide-step p { margin: .25rem 0 0; }
.guide-step img { width: 100%; height: auto; border-radius: var(--radius-small); border: 1px solid var(--border); }
@media (min-width: 760px) { .guide-step:has(img) { grid-template-columns: minmax(0, 1fr) 240px; align-items: start; } }

