/* eFeldkalender infosite – base styles */

:root {
    --green: #5daf2b;        /* brand green from logo.svg */
    --green-600: #4a9420;
    --green-200: #bcd8b0;
    --forest: #1f4d2b;
    --forest-900: #12301a;
    --ink: #1a2420;
    --ink-soft: #4d5a54;
    --line: #e3e6df;
    --bg: #ffffff;
    --bg-tint: #f5f6f0;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgb(18 48 26 / 6%), 0 8px 24px rgb(18 48 26 / 8%);
    --container: 1160px;
    --header-h: 72px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-600); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { padding: .1em .4em; border-radius: 4px; background: var(--bg-tint); font-size: .9em; }
.muted { color: var(--ink-soft); }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 760px; }

@media (min-width: 720px) {
    .container { padding: 0 32px; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5em;
    padding: .65em 1.2em;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: inherit; font-size: .95rem; font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .85em 1.6em; font-size: 1rem; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--green); color: var(--green-600); }
.btn-ghost { color: var(--ink); background: none; }
.btn-ghost:hover { color: var(--green-600); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--bg-tint); }
.btn-link { color: var(--ink); padding-left: .4em; padding-right: .4em; }
.btn-link:hover { color: var(--green-600); transform: none; }
.btn-link-light { color: #fff; }
.btn-link-light:hover { color: #d6f0c6; }

/* A button that looks like a link (opens modals) */
.link {
    padding: 0; border: 0; background: none;
    font: inherit; color: var(--green-600); text-decoration: underline; cursor: pointer;
}

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Header ---------- */

/* Transparent over the hero photo, solid white once scrolled (main.js toggles .is-solid) */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: background-color .25s, box-shadow .25s;
}
.site-header.is-solid {
    background: rgb(255 255 255 / 92%);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 24px; width: auto; }
.site-header .logo-on-white,
.site-header.is-solid .logo-on-photo { display: none; }
.site-header.is-solid .logo-on-white { display: block; }

.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
    display: block; padding: .45em .75em; border-radius: var(--radius-sm);
    color: rgb(255 255 255 / 85%); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.main-nav ul a:hover { color: #fff; background: rgb(255 255 255 / 12%); }
.site-header:not(.is-solid) .btn-ghost { color: #fff; }
.is-solid .main-nav ul a { color: var(--ink-soft); }
.is-solid .main-nav ul a:hover { color: var(--ink); background: var(--bg-tint); }
.nav-actions { display: flex; gap: 8px; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
    .nav-toggle {
        display: grid; place-items: center;
        width: 44px; height: 44px; margin-left: auto;
        border: 0; background: none; cursor: pointer;
    }
    .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
        display: block; width: 22px; height: 2px; background: #fff;
        border-radius: 2px; transition: transform .2s, background-color .2s;
    }
    .is-solid .nav-toggle-bar, .is-solid .nav-toggle-bar::before, .is-solid .nav-toggle-bar::after { background: var(--ink); }
    .nav-toggle-bar { position: relative; }
    .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bar::before { top: -7px; }
    .nav-toggle-bar::after { top: 7px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 16px; background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a, .is-solid .main-nav ul a { padding: .7em .75em; font-size: 1rem; color: var(--ink); }
    .main-nav ul a:hover { background: var(--bg-tint); color: var(--ink); }
    .site-header:not(.is-solid) .main-nav .btn-ghost { color: var(--ink); }
    .nav-actions .btn { flex: 1; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: calc(var(--header-h) + 48px) 0 96px;
    color: #fff;
    background:
        linear-gradient(180deg, rgb(10 28 15 / 72%) 0%, rgb(10 28 15 / 45%) 55%, rgb(10 28 15 / 70%) 100%),
        url("../img/intro_bkg.jpg") center 70% / cover no-repeat,
        var(--forest-900);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 900px) {
    .hero { padding: calc(var(--header-h) + 88px) 0 128px; min-height: min(92vh, 900px); display: flex; align-items: center; }
    .hero-grid { grid-template-columns: 1fr 1.1fr; }
}

.eyebrow {
    margin: 0 0 .75em;
    color: var(--green-600);
    font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.hero .eyebrow { color: #a5df7f; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / 30%); }
.lead { font-size: 1.15rem; color: rgb(255 255 255 / 88%); max-width: 34em; }
.hero .btn-link { color: #fff; }
.hero .btn-link:hover { color: #d6f0c6; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0; }

.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; color: rgb(255 255 255 / 85%); font-size: .92rem; }
.hero-points li::before { content: "✓"; color: #a5df7f; font-weight: 700; margin-right: .4em; }

.hero-media { position: relative; margin: 0; }
.hero-media img { filter: drop-shadow(0 30px 40px rgb(0 0 0 / 35%)); }
.hero-badge {
    position: absolute; left: 0; bottom: -8px;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px 12px 12px; border-radius: var(--radius);
    background: #fff; color: var(--ink-soft); box-shadow: var(--shadow);
    text-decoration: none; font-size: .9rem; line-height: 1.3;
    transition: transform .15s;
}
.hero-badge:hover { transform: translateY(-2px); }
.hero-badge strong { font-size: 1.25rem; color: var(--forest); }
.hero-badge small { font-size: .8rem; }
.hero-badge-tag {
    display: grid; place-items: center; height: 48px; padding: 0 12px; border-radius: 12px;
    background: #d9262c; color: #fff; font-weight: 800; font-size: 1rem; white-space: nowrap;
    transform: rotate(-6deg);
}

/* ---------- Stats ---------- */

.stats { background: var(--forest); color: #fff; padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-value { display: block; font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--green-200); font-size: .92rem; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; overflow: hidden; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-tinted { background: var(--bg-tint); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2, .h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--forest-900); }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; }

.rounded { border-radius: 20px; }

/* Split (image + text) */

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split-media { margin: 0; }
.split-text { color: var(--ink-soft); font-size: 1.08rem; }

/* Benefits */

.benefits { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
.benefits li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.benefits h3 { font-size: 1.15rem; margin-bottom: .3em; }
.benefits p { margin: 0; color: var(--ink-soft); }

.card-icon {
    display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 12px;
    background: rgb(93 175 43 / 12%);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--green-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Features */

.features {
    display: grid; gap: 1px;
    list-style: none; margin: 0; padding: 0;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 28px 24px; background: #fff; }
.feature h3 { font-size: 1.05rem; }
.feature-icon { width: 56px; height: 56px; margin-bottom: 18px; border-radius: 14px; transition: background-color .2s, transform .2s; }
.feature-icon svg { width: 28px; height: 28px; stroke: var(--green); stroke-width: 2.2; }
.feature:hover .feature-icon { background: var(--green); transform: translateY(-2px); }
.feature:hover .feature-icon svg { stroke: #fff; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.store-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store-links a { border-radius: 8px; transition: transform .15s; }
.store-links a:hover { transform: translateY(-2px); }
.store-links img { height: 44px; width: auto; }

/* ---------- Slider ---------- */

.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -16px 0 32px; }
.filter button {
    padding: .5em 1.1em; border: 1.5px solid var(--line); border-radius: 999px;
    background: #fff; color: var(--ink-soft); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.filter button:hover { border-color: var(--green); color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }

.slide[hidden] { display: none; }
.slide.is-entering { animation: slide-in .45s ease-out both; }
@keyframes slide-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.slider-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
    gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.slider-track::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .slider-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1024px) { .slider-track { grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; } }

.slide { margin: 0; scroll-snap-align: start; }
.slide-zoom {
    display: block; width: 100%; padding: 0; border: 0;
    border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #fff;
}
.slide-zoom img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .4s; }
.slide-zoom:hover img { transform: scale(1.04); }
.slide figcaption { margin-top: 12px; font-weight: 600; font-size: .95rem; }

.slider-controls[hidden] { display: none; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.slider-btn {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1.5px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer;
    transition: border-color .15s, opacity .15s;
}
.slider-btn:hover { border-color: var(--green); }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
    background: #c9cec4; cursor: pointer; transition: width .25s, background-color .25s;
}
.slider-dots button[aria-current="true"] { width: 24px; background: var(--green); }

/* ---------- Pricing ---------- */

.pricing { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1.15fr 1fr 1fr; gap: 24px; } }
.plan {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 32px 28px;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.plan .btn { align-self: stretch; }
.plan h3 { font-size: 1.1rem; color: var(--ink-soft); font-weight: 600; }
.plan-price { font-size: 2.6rem; font-weight: 800; color: var(--forest-900); line-height: 1.1; margin-bottom: 20px; }
.plan-price span { font-size: 1.1rem; font-weight: 600; vertical-align: .9em; }
.plan-price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; align-self: stretch; }
.plan li { padding: .45em 0 .45em 1.6em; position: relative; border-top: 1px solid var(--line); font-size: .95rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan-featured { background: var(--forest); border-color: var(--forest); color: #fff; box-shadow: var(--shadow); }
.plan-featured h3, .plan-featured .plan-price small { color: var(--green-200); }
.plan-featured .plan-price { color: #fff; margin-bottom: 4px; }
.plan-featured li { border-color: rgb(255 255 255 / 14%); }
.plan-was { color: var(--green-200); font-size: .95rem; margin-bottom: 20px; }
.plan-sticker {
    position: absolute; top: -26px; right: 16px;
    width: 104px; transform: rotate(8deg);
    filter: drop-shadow(0 6px 10px rgb(0 0 0 / 25%));
}

/* ---------- Testimonials ---------- */

.cards-3 { display: grid; gap: 20px; }
@media (min-width: 820px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.section-dark { background: var(--forest-900); color: #fff; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .eyebrow { color: #8fd162; }
.quote {
    margin: 0; padding: 28px;
    border-radius: var(--radius); background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 10%);
    display: flex; flex-direction: column; justify-content: space-between;
}
.quote p { font-size: 1.05rem; line-height: 1.65; }
.quote footer { display: flex; flex-direction: column; font-size: .92rem; }
.quote footer span { color: var(--green-200); }

/* ---------- Partners ---------- */

.partners { padding: 40px 0; border-bottom: 1px solid var(--line); }
.partners-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 48px; }
.partners p { margin: 0; color: var(--ink-soft); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.partners img { height: 72px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partners a:hover img { filter: none; opacity: 1; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 0; cursor: pointer; list-style: none;
    font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--green-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 12px; }

/* ---------- CTA ---------- */

.section-cta { background: linear-gradient(135deg, var(--green-600), var(--forest)); color: #fff; }
.cta-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1.3fr 1fr; } }
.section-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.section-cta p { color: #e1f2d6; font-size: 1.08rem; }

.newsletter { padding: 28px; border-radius: var(--radius); background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 18%); }
.newsletter label { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: .3em; }
.newsletter p { font-size: .95rem; }
.newsletter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input {
    flex: 1 1 200px; min-width: 0;
    padding: .7em 1em; border: 0; border-radius: 999px;
    font: inherit; font-size: .95rem;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--forest-900); color: var(--green-200); padding: 64px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 820px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer-grid > :first-child { grid-column: auto; }
}
.footer-note { margin-top: 16px; max-width: 26em; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer a, .site-footer .link { color: var(--green-200); text-decoration: none; }
.site-footer a:hover, .site-footer .link:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Modals (native <dialog>) ---------- */

.modal {
    width: min(680px, calc(100% - 32px)); max-height: min(85vh, 900px);
    padding: 0; border: 0; border-radius: 18px;
    color: var(--ink); background: #fff;
    box-shadow: 0 30px 80px rgb(0 0 0 / 30%);
}
.modal-wide { width: min(860px, calc(100% - 32px)); }
.modal::backdrop, .lightbox::backdrop { background: rgb(10 28 15 / 60%); backdrop-filter: blur(3px); }
.modal[open], .lightbox[open] { animation: modal-in .25s ease-out; }
.modal[open]::backdrop, .lightbox[open]::backdrop { animation: fade-in .25s ease-out; }

.modal-head {
    position: sticky; top: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; background: #fff; border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0; font-size: 1.3rem; color: var(--forest-900); }
.modal-close {
    display: grid; place-items: center; flex-shrink: 0;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: var(--bg-tint); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--line); }
.modal-body { padding: 24px; }
@media (min-width: 720px) { .modal-body { padding: 28px 32px 32px; } }
.modal-body h3 { font-size: 1.05rem; margin-top: 1.6em; color: var(--forest); }
.modal-body ul, .modal-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.modal-body li { margin-bottom: .5em; }
.modal-lead { font-size: 1.12rem; font-weight: 600; color: var(--forest-900); }
.agb li { margin-bottom: .9em; color: var(--ink-soft); }

.press-list { list-style: none; padding: 0 !important; }
.press-list li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.press-list img { width: 140px; }

/* Lightbox */

.lightbox {
    width: min(1000px, calc(100% - 32px)); padding: 0; border: 0;
    background: transparent; overflow: visible;
}
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 12px; color: #fff; text-align: center; font-weight: 600; }
.lightbox .modal-close { position: absolute; top: -52px; right: 0; background: #fff; }

@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Scroll reveal ---------- */

/* Only hidden when JS runs (html.js), so content stays visible without it */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0ms);
}
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .slider-track { scroll-behavior: auto; }
}

/* =========================================================
   Modules (feature grid with filter)
   ========================================================= */

.features .feature[hidden] { display: none; }
.features .feature.is-entering { animation: slide-in .45s ease-out both; }
.features-filter { margin: -16px 0 32px; }

.feature { display: flex; flex-direction: column; }
.feature p { flex: 1; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
    display: inline-block; padding: .15em .65em; border-radius: 999px;
    background: var(--bg-tint); color: var(--ink-soft);
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.tag-addon { background: #fff4d6; color: #8a5a00; }
.feature-link {
    display: inline-flex; align-items: center; gap: .3em; margin-top: 16px;
    color: var(--green-600); font-weight: 600; font-size: .92rem; text-decoration: none;
}
.feature-link:hover { color: var(--forest); }

/* =========================================================
   Subpages
   ========================================================= */

.page-hero {
    padding: calc(var(--header-h) + 56px) 0 64px;
    color: #fff;
    background:
        linear-gradient(180deg, rgb(10 28 15 / 78%), rgb(10 28 15 / 62%)),
        url("../img/intro_bkg.jpg") center 75% / cover no-repeat,
        var(--forest-900);
}
@media (min-width: 900px) { .page-hero { padding: calc(var(--header-h) + 80px) 0 88px; } }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.02em; max-width: 20em; text-wrap: balance; }
.page-hero .lead { max-width: 40em; }
.page-hero .eyebrow { color: #a5df7f; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .4em; margin: 0 0 20px; padding: 0; list-style: none; font-size: .88rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4em; color: rgb(255 255 255 / 50%); }
.breadcrumb a { color: rgb(255 255 255 / 80%); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

.module-price {
    display: inline-flex; align-items: baseline; gap: .4em; margin-top: 8px;
    padding: .5em 1em; border-radius: 999px; background: rgb(255 255 255 / 12%);
    font-size: .95rem;
}
.module-price strong { font-size: 1.2rem; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li {
    counter-increment: step; position: relative;
    padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
    content: counter(step); display: grid; place-items: center;
    width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%;
    background: var(--green); color: #fff; font-weight: 800;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.checklist { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 2em; color: var(--ink-soft); }
.checklist li::before {
    content: "✓"; position: absolute; left: 0; top: .05em;
    display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%;
    background: rgb(93 175 43 / 14%); color: var(--green-600); font-size: .8em; font-weight: 800;
}
.checklist strong { color: var(--ink); }

.note {
    padding: 20px 24px; border-left: 4px solid var(--green); border-radius: var(--radius-sm);
    background: var(--bg-tint); color: var(--ink-soft);
}
.note strong { color: var(--ink); }

/* =========================================================
   News
   ========================================================= */

.news-featured {
    display: grid; gap: 0; overflow: hidden;
    border: 1px solid var(--line); border-radius: 20px; background: #fff;
    text-decoration: none; color: inherit; margin-bottom: 40px;
    transition: box-shadow .2s, transform .2s;
}
.news-featured:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
@media (min-width: 900px) { .news-featured { grid-template-columns: 1.1fr 1fr; } }
.news-featured img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.news-featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 900px) { .news-featured-body { padding: 48px; } }
.news-featured h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--forest-900); }
.news-featured p { color: var(--ink-soft); }

.news-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
    color: inherit; text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}
.news-card[hidden] { display: none; }
.news-card.is-entering { animation: slide-in .45s ease-out both; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.news-card h3 { font-size: 1.15rem; color: var(--forest-900); }
.news-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; color: var(--ink-soft); font-size: .85rem; }
.read-more { color: var(--green-600); font-weight: 600; font-size: .92rem; }

.tag-update { background: rgb(93 175 43 / 14%); color: var(--green-600); }
.tag-module { background: #e3eefc; color: #1d4f91; }
.tag-tip { background: #fff4d6; color: #8a5a00; }
.tag-company { background: #f1e8f7; color: #6b3d8a; }

.version-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.version-list > li { position: relative; padding: 0 0 28px 28px; }
.version-list > li::before {
    content: ""; position: absolute; left: -7px; top: .4em;
    width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--bg-tint);
}
.version-list h3 { font-size: 1.05rem; margin-bottom: .2em; }
.version-list time { color: var(--ink-soft); font-size: .85rem; }
.version-list ul { margin: .5em 0 0; padding-left: 1.2em; color: var(--ink-soft); }

/* Article */

.article { max-width: 720px; margin: 0 auto; }
.article-cover { margin: 0 0 40px; }
.article-cover img { width: 100%; border-radius: 20px; }
.article-cover figcaption { margin-top: 10px; color: var(--ink-soft); font-size: .88rem; }
.article h2 { font-size: 1.6rem; font-weight: 800; color: var(--forest-900); margin-top: 1.6em; }
.article h3 { font-size: 1.2rem; margin-top: 1.4em; }
.article p, .article li { font-size: 1.08rem; line-height: 1.75; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .4em; }
.article blockquote {
    margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--green);
    font-size: 1.2rem; font-style: italic; color: var(--forest);
}
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: rgb(255 255 255 / 80%); font-size: .92rem; }
.article-footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
}

/* Add-on modules below the pricing cards */
.addons { margin-top: 32px; padding: 24px 28px; border: 1px dashed #cfd5c8; border-radius: var(--radius); }
.addons h3 { font-size: 1rem; margin-bottom: .8em; }
.addons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 32px; }
@media (min-width: 900px) { .addons ul { grid-template-columns: repeat(3, 1fr); } }
.addons li { display: flex; flex-direction: column; font-size: .95rem; }
.addons li a, .addons li > span:first-child { font-weight: 600; color: var(--ink); }
.addons li a { color: var(--green-600); }
.addons li span:last-child { color: var(--ink-soft); font-size: .9rem; }


.news-changelog { display: grid; gap: 32px; }
@media (min-width: 900px) { .news-changelog { grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; } }

.main-nav ul a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / 14%); }
.is-solid .main-nav ul a[aria-current="page"] { color: var(--forest); background: rgb(93 175 43 / 12%); }
@media (max-width: 960px) {
    .main-nav ul a[aria-current="page"], .is-solid .main-nav ul a[aria-current="page"] { color: var(--forest); background: rgb(93 175 43 / 12%); }
}

.page-hero .hero-grid { align-items: center; }
.page-hero .hero-media img { filter: none; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 45%); }
.page-hero .module-price { color: #fff; }

/* Grid lines drawn per card, so a partly filled last row (or a filtered list) has no grey gaps */
.features { gap: 0; background: #fff; }
.feature { box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); }

/* News list: toolbar, article cards + "Kurz notiert" sidebar */
.news-featured { margin-bottom: 72px; }
.news-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.news-toolbar h2 { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--forest-900); }
.news-toolbar .filter { margin: 0; justify-content: flex-start; }

.news-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .news-layout { grid-template-columns: 2fr 1fr; gap: 48px; } }
.news-grid-cards { grid-template-columns: 1fr; }
@media (min-width: 720px) { .news-grid-cards { grid-template-columns: repeat(2, 1fr); } }
.news-grid-2 { max-width: 880px; margin: 0 auto; }
@media (min-width: 720px) { .news-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.news-aside { padding: 24px; border-radius: var(--radius); background: var(--bg-tint); }
.news-aside h3 { margin-bottom: 4px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); }
.news-short { list-style: none; margin: 0; padding: 0; }
.news-short li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-short li:last-child { border-bottom: 0; padding-bottom: 0; }
.news-short li[hidden] { display: none; }
.news-short .news-meta { margin-bottom: 6px; }
.news-short h4 { margin: 0 0 .3em; font-size: 1rem; color: var(--forest-900); }
.news-short p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.news-empty { margin: 0; padding: 18px 0 0; color: var(--ink-soft); font-size: .92rem; }

/* =========================================================
   Module cards (module.html + teaser on the home page)
   ========================================================= */

.module-cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .module-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .module-cards { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.module-card {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; color: inherit; text-decoration: none;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.module-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgb(93 175 43 / 50%); }
.module-card .card-icon { margin-bottom: 18px; }
.module-kind { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); }
.module-card h3 { margin: .2em 0 .4em; font-size: 1.25rem; color: var(--forest-900); }
.module-card p { color: var(--ink-soft); font-size: .95rem; }
.module-card ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; align-self: stretch; }
.module-card li { position: relative; padding: .35em 0 .35em 1.5em; font-size: .92rem; }
.module-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.module-card-foot {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px;
    align-self: stretch; padding-top: 16px; border-top: 1px solid var(--line);
}
.module-card-price { color: var(--ink-soft); font-size: .9rem; }
.module-card-price strong { color: var(--forest-900); font-size: 1.15rem; }

.module-card-featured { background: var(--forest); border-color: var(--forest); color: #fff; }
.module-card-featured:hover { border-color: var(--forest); }
.module-card-featured .card-icon { background: rgb(255 255 255 / 12%); }
.module-card-featured .card-icon svg { stroke: #a5df7f; }
.module-card-featured .module-kind { color: #a5df7f; }
.module-card-featured h3, .module-card-featured .module-card-price strong { color: #fff; }
.module-card-featured p, .module-card-featured .module-card-price { color: var(--green-200); }
.module-card-featured li::before { color: #a5df7f; }
.module-card-featured .module-card-foot { border-color: rgb(255 255 255 / 15%); }
.module-card-featured .read-more { color: #a5df7f; }

.section-more { margin: 40px 0 0; text-align: center; }

/* Contact */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.contact-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card .h2 { font-size: 1.5rem; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; margin: 24px 0 0; }
.contact-list dt { font-weight: 700; color: var(--ink); }
.contact-list dd { margin: 0; color: var(--ink-soft); }

/* Legal pages reuse the article typography */
.legal h3 { font-size: 1.2rem; color: var(--forest-900); }
.legal .agb li { font-size: 1rem; }
@media (min-width: 1100px) { .offer-cards { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; } }

/* =========================================================
   Discount (promo bar, hero badge, ribbons)
   ========================================================= */

:root { --sale: #d9262c; --sale-600: #b81d22; --promo-h: 40px; }

.promo-bar {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: var(--promo-h); padding: 0 48px;
    background: var(--sale); color: #fff;
    font-size: .9rem; line-height: 1.3; text-align: center;
}
.promo-bar-link {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 6px 0; color: #fff; text-decoration: none;
}
.promo-bar-link:hover .promo-bar-cta { text-decoration: underline; }
.promo-bar-close {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    display: grid; place-items: center; width: 32px; height: 32px;
    border: 0; border-radius: 50%; background: transparent;
    color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .85;
}
.promo-bar-close:hover { background: rgb(255 255 255 / 18%); opacity: 1; }

/* Closed by the visitor (main.js + inline script in <head>) */
html.promo-hidden { --promo-h: 0px; }
.promo-hidden .promo-bar { display: none; }
.promo-bar s { opacity: .8; }
.promo-bar-tag {
    flex-shrink: 0; padding: .15em .55em; border-radius: 6px;
    background: #fff; color: var(--sale); font-weight: 800;
}
.promo-bar-cta { font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .promo-bar-cta { display: none; } .promo-bar { font-size: .82rem; padding: 0 40px 0 12px; } }

/* The bar is part of the fixed header, so the heroes need the extra space */
html { scroll-padding-top: calc(var(--header-h) + var(--promo-h)); }
.hero { padding-top: calc(var(--header-h) + var(--promo-h) + 48px); }
.page-hero { padding-top: calc(var(--header-h) + var(--promo-h) + 56px); }
@media (min-width: 900px) {
    .hero { padding-top: calc(var(--header-h) + var(--promo-h) + 88px); }
    .page-hero { padding-top: calc(var(--header-h) + var(--promo-h) + 80px); }
}
/* Mobile menu opens right below the header bar (not below the promo bar's top edge) */
@media (max-width: 960px) {
    .header-inner { position: relative; }
    .main-nav { top: 100%; max-height: calc(100vh - var(--header-h) - var(--promo-h)); overflow-y: auto; }
}

/* Hero badge */
.hero-badge {
    left: -8px; bottom: -24px; gap: 16px; padding: 16px 22px 16px 16px;
    border: 2px solid var(--sale); box-shadow: 0 18px 40px -12px rgb(217 38 44 / 45%);
}
.hero-badge-tag { height: 64px; padding: 0 14px; font-size: 1.35rem; border-radius: 14px; background: var(--sale); }
.hero-badge-text { display: flex; flex-direction: column; gap: 2px; }
.hero-badge-text small { font-size: .8rem; font-weight: 700; color: var(--sale); text-transform: uppercase; letter-spacing: .04em; }
.hero-badge-text strong { font-size: 1.6rem; line-height: 1.1; color: var(--forest-900); }
.hero-badge-text s { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 600px) { .hero-badge { left: 8px; } .hero-badge-text strong { font-size: 1.35rem; } }

/* Ribbon on the Basismodul card */
.module-card { position: relative; }
.discount-ribbon {
    position: absolute; top: 20px; right: -6px;
    padding: .35em .8em; border-radius: 6px 0 0 6px;
    background: var(--sale); color: #fff; font-weight: 800; font-size: .95rem;
    box-shadow: 0 6px 14px -4px rgb(217 38 44 / 50%);
}
.discount-ribbon::after {
    content: ""; position: absolute; right: 0; bottom: -6px;
    border-top: 6px solid var(--sale-600); border-right: 6px solid transparent;
}
.module-card-featured .module-card-price s { color: #ffb3b5; }

/* Price card */
.plan-was { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan-was s { font-size: 1.1rem; color: #ffb3b5; }
.save-pill {
    padding: .2em .7em; border-radius: 999px;
    background: var(--sale); color: #fff; font-size: .85rem; font-weight: 700;
}
@media (max-width: 600px) { .promo-long { display: none; } }

/* =========================================================
   Device frames for app screenshots (browser + phone)
   ========================================================= */

.device-browser {
    overflow: hidden; border-radius: 12px; background: #fff;
    border: 1px solid rgb(18 48 26 / 12%);
    box-shadow: 0 1px 2px rgb(18 48 26 / 8%), 0 24px 48px -16px rgb(18 48 26 / 30%);
}
.device-browser-bar {
    display: flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 12px;
    background: #eef0ec; border-bottom: 1px solid #dfe3dc;
}
.device-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d8d1; flex-shrink: 0; }
.device-browser-bar i:nth-child(1) { background: #ff5f57; }
.device-browser-bar i:nth-child(2) { background: #febc2e; }
.device-browser-bar i:nth-child(3) { background: #28c840; }
.device-url {
    flex: 1; max-width: 340px; margin: 0 auto; padding: 3px 12px; border-radius: 6px;
    background: #fff; color: var(--ink-soft); font-size: .75rem; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.device-url::before { content: "🔒 "; font-size: .65rem; }
.device-browser img { display: block; width: 100%; height: auto; }

.device-phone {
    position: relative; overflow: hidden;
    padding: 10px; border-radius: 34px; background: #111814;
    box-shadow: 0 0 0 2px #2b332e inset, 0 28px 50px -18px rgb(0 0 0 / 45%);
}
.device-phone::before {
    content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
    width: 28%; height: 18px; border-radius: 999px; background: #111814; z-index: 1;
}
.device-phone img { display: block; width: 100%; height: auto; border-radius: 25px; }

/* Hero / page heroes: browser with the phone overlapping its corner */
.device-stack { position: relative; padding: 0 6% 7% 0; }
.device-phone-overlap { position: absolute; right: 0; bottom: 0; width: 26%; padding: 6px; border-radius: 24px; }
.device-phone-overlap::before { top: 11px; height: 10px; }
.device-phone-overlap img { border-radius: 18px; }
.device-single .device-browser { box-shadow: 0 30px 60px -20px rgb(0 0 0 / 45%); }
.page-hero .device-single:has(.device-phone) { max-width: 300px; margin: 0 auto; }
.hero .device-stack .device-browser, .page-hero .device-stack .device-browser { box-shadow: 0 30px 60px -20px rgb(0 0 0 / 50%); }
/* Discount badge as a sticker on the browser's top-left corner, so the screenshot stays readable */
.hero-media.device-stack { padding-top: 34px; }
.hero-media.device-stack .hero-badge {
    top: 0; bottom: auto; left: -18px; z-index: 2;
    padding: 10px 16px 10px 10px; gap: 12px; transform: rotate(-3deg);
}
.hero-media.device-stack .hero-badge:hover { transform: rotate(-3deg) translateY(-2px); }
.hero-media.device-stack .hero-badge-tag { height: 52px; font-size: 1.15rem; }
.hero-media.device-stack .hero-badge-text strong { font-size: 1.35rem; }
@media (max-width: 600px) { .hero-media.device-stack .hero-badge { left: -4px; } }

/* Photo with a phone floating over it ("Direkt auf dem Feld") */
.photo-with-phone { position: relative; padding: 0 10% 12% 0; }
.device-phone-float { position: absolute; right: 0; bottom: 0; width: 34%; padding: 7px; border-radius: 26px; }
.device-phone-float::before { top: 12px; height: 11px; }
.device-phone-float img { border-radius: 20px; }

/* Gallery slides: same height for browser and phone shots */
.slide-zoom { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 11; background: transparent; overflow: visible; }
.slide-zoom img, .slide-zoom:hover img { aspect-ratio: auto; object-fit: initial; transform: none; }
.slide-desktop .device-browser { width: 100%; transition: transform .3s; }
.slide-mobile .device-phone { height: 100%; width: auto; aspect-ratio: 667 / 1420; padding: 7px; border-radius: 24px; transition: transform .3s; }
.slide-mobile .device-phone::before { top: 12px; height: 10px; }
.slide-mobile .device-phone img { height: 100%; width: 100%; object-fit: cover; object-position: top; border-radius: 18px; }
.slide-zoom:hover .device-browser, .slide-zoom:hover .device-phone { transform: translateY(-4px); }
.slide figcaption { text-align: center; }

/* Lightbox: tall phone shots must fit the screen */
.lightbox img { width: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; }
@media (max-width: 600px) {
    .hero-media.device-stack .hero-badge-text small { display: none; }
    .hero-media.device-stack .hero-badge { left: -6px; padding: 8px 14px 8px 8px; }
    .hero-media.device-stack .hero-badge-tag { height: 44px; font-size: 1rem; }
    .hero-media.device-stack .hero-badge-text strong { font-size: 1.2rem; }
}

/* =========================================================
   Benutzerhandbuch
   ========================================================= */

.handbook { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .handbook { grid-template-columns: 260px 1fr; gap: 64px; } }

.handbook-toc { padding: 24px; border-radius: var(--radius); background: var(--bg-tint); }
@media (min-width: 1024px) {
    .handbook-toc { position: sticky; top: calc(var(--header-h) + var(--promo-h) + 24px); max-height: calc(100vh - var(--header-h) - var(--promo-h) - 48px); overflow-y: auto; }
}
.handbook-toc h2 { margin-bottom: .6em; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); }
.handbook-toc ol { margin: 0 0 20px; padding-left: 1.4em; font-size: .95rem; }
.handbook-toc li { margin-bottom: .45em; color: var(--ink-soft); }
.handbook-toc a { color: var(--ink); text-decoration: none; }
.handbook-toc a:hover { color: var(--green-600); }
.handbook-toc .btn { width: 100%; }

.handbook-content { max-width: 820px; margin: 0; }
.handbook-chapter { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + var(--promo-h) + 16px); }
.handbook-chapter:last-child { border-bottom: 0; }
.handbook-chapter h2 { display: flex; align-items: center; gap: 14px; margin-top: 0; }
.handbook-num {
    display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
    background: var(--green); color: #fff; font-size: 1.1rem;
}
.handbook-content table { width: 100%; margin: 0 0 1.5em; border-collapse: collapse; font-size: .97rem; }
.handbook-content th, .handbook-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.handbook-content th { background: var(--bg-tint); font-weight: 700; }
.handbook-content .note { margin: 1.5em 0; }

.handbook-figure { margin: 28px 0 32px; }
.handbook-figure figcaption { margin-top: 12px; color: var(--ink-soft); font-size: .9rem; text-align: center; }
.handbook-figure-phone .device-phone { max-width: 240px; margin: 0 auto; }
.handbook-phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; margin: 24px 0; }
.handbook-phones .handbook-figure { margin: 0; }

/* Print / PDF: only the handbook itself */
@media print {
    @page { size: A4; margin: 16mm 14mm 18mm; }
    html { --promo-h: 0px; --header-h: 0px; }
    body { font-size: 10.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .site-header, .site-footer, .promo-bar, .handbook-toc, .breadcrumb, .page-hero .hero-actions, .lightbox { display: none !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .page-hero { display: flex; align-items: flex-end; min-height: 262mm; padding: 0 0 30mm; break-after: page; }
    .page-hero h1 { font-size: 40pt; }
    .page-hero .lead { font-size: 14pt; }
    .section { padding: 0; }
    .handbook { display: block; }
    .handbook-content { max-width: none; }
    .handbook-chapter { border: 0; margin: 0 0 10mm; padding: 0; }
    .handbook-chapter h2 { break-after: avoid; margin-top: 4mm; }
    .handbook-content h3 { break-after: avoid; }
    .handbook-figure { margin: 5mm 0 7mm; }
    .handbook-figure-browser .device-browser { max-width: 78%; margin: 0 auto; }
    .handbook-phones { max-width: 82%; margin: 5mm auto; }
    .handbook-figure, .handbook-content table, .handbook-phones { break-inside: avoid; }
    .device-browser, .device-phone { box-shadow: none; }
    .handbook-phones { grid-template-columns: repeat(3, 1fr); }
    .article p, .article li { font-size: 10.5pt; line-height: 1.55; }
    a { color: inherit; }
}

/* ---------- Handbook: orientation & links ---------- */

.print-only, .print-toc, .handbook-kicker { display: none; }

/* Menu path chip: Grundlagendaten › Mitarbeiter, opens the page in the app */
.menu-path {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0;
    padding: .05em .55em; border-radius: 6px;
    background: rgb(93 175 43 / 12%); color: var(--forest);
    font-size: .92em; font-weight: 600; text-decoration: none; white-space: nowrap;
    vertical-align: baseline;
}
.menu-path span + span::before { content: "›"; margin: 0 .35em; color: var(--green-600); font-weight: 700; }
a.menu-path::after { content: "↗"; margin-left: .35em; font-size: .8em; color: var(--green-600); }
a.menu-path:hover { background: var(--green); color: #fff; }
a.menu-path:hover span::before, a.menu-path:hover::after { color: #fff; }

/* Reference to another chapter */
.ch-ref {
    color: var(--green-600); font-weight: 600; text-decoration: none;
    border-bottom: 1px dashed rgb(74 148 32 / 50%);
}
.ch-ref:hover { color: var(--forest); border-bottom-style: solid; }
.ch-ref-num {
    display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; margin-right: .3em; padding: 0 .2em;
    border-radius: 5px; background: var(--green); color: #fff; font-size: .78em; vertical-align: .08em;
}

/* "Wo finde ich das?" at the top of a chapter */
.handbook-where {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 0 0 1.4em; padding: 12px 16px; border-radius: var(--radius-sm);
    background: var(--bg-tint); border-left: 4px solid var(--green);
}
.handbook-where-label { margin-right: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

/* Chapter number doubles as anchor link */
.handbook-anchor { text-decoration: none; }
.handbook-anchor:hover .handbook-num { background: var(--forest); }
.handbook-content table td .menu-path { white-space: normal; }

/* Previous / contents / next */
.handbook-pager {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 12px;
    margin-top: 32px;
}
.handbook-pager a {
    display: flex; flex-direction: column; justify-content: center; padding: 10px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.handbook-pager a:hover { border-color: var(--green); color: var(--green-600); }
.handbook-pager small { color: var(--ink-soft); font-weight: 500; font-size: .78rem; }
.handbook-pager-next { text-align: right; }
.handbook-pager-top { align-items: center; font-size: .85rem !important; color: var(--ink-soft) !important; }
@media (max-width: 600px) {
    .handbook-pager { grid-template-columns: 1fr 1fr; }
    .handbook-pager-top { display: none !important; }
}

/* TOC: current chapter (main.js) */
.handbook-toc a.is-current { color: var(--green-600); font-weight: 700; }
.handbook-toc li:has(a.is-current) { color: var(--green-600); }
#inhalt { scroll-margin-top: calc(var(--header-h) + var(--promo-h) + 16px); }

@media print {
    .print-only { display: inline; }
    .handbook-pager, .handbook-anchor + * { }
    .handbook-pager { display: none; }
    a.menu-path::after { content: none; }
    .menu-path { background: #e8f2df !important; }
    .handbook-kicker {
        display: block; margin: 0 0 1mm; font-size: 8pt; font-weight: 700; letter-spacing: .12em; color: var(--green-600);
    }
    .handbook-chapter { break-before: page; }
    .handbook-chapter:first-child { break-before: auto; }
    .handbook-where { break-inside: avoid; }

    .print-toc { display: block; break-after: page; padding-top: 6mm; }
    .print-toc h2 { font-size: 22pt; font-weight: 800; color: var(--forest-900); margin-bottom: 8mm; }
    .print-toc ol { list-style: none; margin: 0; padding: 0; }
    .print-toc li { border-bottom: 1px dotted #c9cec4; }
    .print-toc a { display: flex; align-items: baseline; gap: 4mm; padding: 2.6mm 0; color: var(--ink); text-decoration: none; font-size: 11.5pt; }
    .print-toc .ptoc-num {
        display: inline-grid; place-items: center; width: 7mm; height: 7mm; border-radius: 2mm;
        background: var(--green); color: #fff; font-size: 9pt; font-weight: 700; flex-shrink: 0;
    }
    .print-toc .ptoc-title { flex: 1; }
    .print-toc .ptoc-page { font-weight: 700; color: var(--forest); }
}

/* =========================================================
   Gemini product photos
   ========================================================= */

.photo { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 50px -20px rgb(18 48 26 / 40%); }
.photo-plain { display: block; width: 100%; height: auto; }
.hero-photo .photo, .hero .device-stack .photo { box-shadow: 0 30px 60px -20px rgb(0 0 0 / 55%); }
.hero .device-stack { padding: 34px 0 0; }

/* Gallery with photos */
.slide-photo .slide-zoom { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 16px; }
.slide-photo .photo { height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform .4s; }
.slide-photo .slide-zoom:hover .photo { transform: scale(1.04); }

/* ---------- Handbook TOC as side drawer on small screens ---------- */

.handbook-toc-toggle, .handbook-toc-backdrop, .handbook-toc-close { display: none; }
.handbook-toc-head { display: flex; align-items: center; justify-content: space-between; }

@media (max-width: 1023px) {
    .handbook-toc {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 70;
        width: min(320px, 86vw); max-height: none; margin: 0; border-radius: 0 16px 16px 0;
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
        background: #fff; overflow-y: auto; overscroll-behavior: contain;
        box-shadow: 0 0 40px rgb(0 0 0 / 25%);
        transform: translateX(-105%); visibility: hidden;
        transition: transform .25s ease, visibility 0s linear .25s;
    }
    .handbook-toc.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
    .handbook-toc ol { font-size: 1rem; }
    .handbook-toc li { margin-bottom: .2em; }
    .handbook-toc a { display: block; padding: .45em .2em; }
    .handbook-toc-close {
        display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
        background: var(--bg-tint); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
    }

    .handbook-toc-backdrop {
        display: block; position: fixed; inset: 0; z-index: 65; background: rgb(10 28 15 / 45%);
    }
    .handbook-toc-backdrop[hidden] { display: none; }

    .handbook-toc-toggle {
        display: flex; align-items: center; gap: 8px;
        position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
        max-width: calc(100vw - 32px); padding: .7em 1.1em;
        border: 0; border-radius: 999px; background: var(--forest); color: #fff;
        font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
        box-shadow: 0 10px 24px -8px rgb(0 0 0 / 45%);
    }
    .handbook-toc-current {
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        font-weight: 500; color: var(--green-200);
    }
    .handbook-toc-current:not(:empty)::before { content: "· "; }
    .handbook { display: block; }
}
@media print { .handbook-toc-toggle, .handbook-toc-backdrop { display: none !important; } }

/* Handbook: sticky TOC needs a section without overflow:hidden (clip keeps horizontal cut-off without breaking sticky) */
.handbook-section { overflow: visible; overflow-x: clip; }
.handbook > * { min-width: 0; }
.handbook-content table { display: block; overflow-x: auto; }
.handbook-content table tbody { display: table; width: 100%; }
