/* ============================================================
   Klar mit KI – Design System v2
   Palette: Brand Guide (Grün #3D9527, Tinte #16240F)
   Scroll-driven Storytelling
   ============================================================ */

:root {
    /* Brand Palette (Brand Guide: Grün Primär #3D9527 / Dunkel #387B1E / Hell #71C239) */
    --accent:        #3D9527;                /* Grün Primär */
    --accent-hover:  #387B1E;                /* Grün Dunkel */
    --accent-light:  #71C239;                /* Grün Hell */
    --accent-tint:   #EAF4E5;                /* helle Grün-Fläche */
    --accent-dark-bg:#16240F;                /* Tinte: Hero / CTA / Footer */

    /* Neutrals (Brand: Papier / Weiche Fläche / Tinte / Text sekundär) */
    --bg:      #FFFFFF;
    --surface: #FFFFFF;
    --soft:    #F2F5F1;
    --ink:     #16240F;
    --muted:   #5D6B54;
    --line:    #DCE5D7;

    /* Shadows */
    --shadow:    0 1px 3px oklch(0% 0 0 / 0.05), 0 4px 10px oklch(0% 0 0 / 0.07);
    --shadow-lg: 0 8px 32px oklch(0% 0 0 / 0.12);
    --shadow-xl: 0 20px 60px oklch(0% 0 0 / 0.18);

    /* Legacy aliases (app/guide/admin CSS compatibility) */
    --primary:       var(--accent);
    --primary-dark:  var(--accent-hover);
    --primary-light: var(--accent-light);
    --paper:         var(--bg);
    --tint:          var(--accent-tint);
    --tint-b:        #BFE0B3;
    --tint-bg:       #E3F1DC;
    --tint-tx:       var(--accent-hover);
    --good:          #3D9527;
    --success-bg:    #F0F8EC;
    --success-b:     #BFE0B3;
    --success-tx:    #26510F;
    --header-bg:     oklch(100% 0 0 / 0.92);
    --footer-bg:     var(--accent-dark-bg);
    --footer-tx:     #B5CCA8;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* App-Bereich: .site-header--app ist (anders als --transparent) weiterhin
   position: sticky und beansprucht eigenen Platz im Layout. Fährt der Header
   beim Scrollen per JS weg (.site-header--hidden), bliebe sein reservierter
   Platz sonst hell (body-Hintergrund) statt grün wie bei den Landing-Seiten
   (dort ist der Header position: fixed, beansprucht keinen eigenen Platz). */
body.app-shell {
    background: var(--accent-dark-bg);
}

a { color: inherit; }

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

h1, h2, h3, h4 {
    margin-top: 0;
    font-family: "Poppins", "Inter", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-top: 0; }

/* ============================================================
   Scroll-Reveal Animations
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(.22,1,.36,1),
                transform 0.6s cubic-bezier(.22,1,.36,1);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font: 600 0.9375rem/1 "Inter", system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px oklch(40% 0.14 140 / 0.35);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px oklch(40% 0.14 140 / 0.3);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-ghost:hover {
    border-color: var(--accent-light);
    color: var(--accent);
    background: var(--accent-tint);
}

.btn-ghost-light {
    background: transparent;
    border-color: oklch(70% 0.06 140);
    color: oklch(90% 0.04 140);
}
.btn-ghost-light:hover {
    background: oklch(30% 0.09 140);
    border-color: oklch(60% 0.1 140);
}

.btn-disabled {
    background: var(--soft);
    border-color: var(--line);
    color: var(--muted);
    cursor: not-allowed;
    pointer-events: none;
}

.btn-lg {
    min-height: 52px;
    padding: 0 28px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-form {
    width: 100%;
    min-height: 50px;
}

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 68px;
    padding: 0 max(20px, calc((100vw - 1200px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s, border-color 0.3s, transform 0.35s cubic-bezier(.4,0,.2,1);
}

.site-header--transparent {
    background: transparent;
    border-color: transparent;
    position: fixed;
    width: 100%;
}

.site-header--scrolled {
    background: var(--header-bg);
    border-color: var(--line);
}

.site-header--hidden {
    transform: translateY(-100%);
}

/* Buttons auf dem transparenten (dunklen) Header sichtbar machen */
.site-header--transparent:not(.site-header--scrolled) .btn-ghost {
    color: oklch(88% 0.05 140);
    border-color: oklch(45% 0.09 140);
}
.site-header--transparent:not(.site-header--scrolled) .btn-ghost:hover {
    background: oklch(28% 0.09 140);
    border-color: oklch(55% 0.1 140);
    color: #fff;
}

/* Hamburger Button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    flex: 0 0 auto;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.25s ease;
    pointer-events: none;
}

.site-header--transparent:not(.site-header--scrolled) .nav-hamburger {
    border-color: oklch(45% 0.09 140);
}
.site-header--transparent:not(.site-header--scrolled) .nav-hamburger span {
    background: oklch(88% 0.05 140);
}

.nav-hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.nav-mobile {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--accent-dark-bg);
    padding: 12px 20px 20px;
    transform: translateY(-120%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-bottom: 1px solid oklch(30% 0.09 140);
    box-shadow: 0 8px 32px oklch(0% 0 0 / 0.35);
}

.nav-mobile.is-open {
    transform: translateY(0);
}

.nav-mobile nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-mobile .btn {
    justify-content: flex-start;
    color: oklch(88% 0.05 140);
    border-color: oklch(35% 0.1 140);
    background: transparent;
}
.nav-mobile .btn:hover {
    background: oklch(25% 0.09 140);
    color: #fff;
    border-color: oklch(50% 0.1 140);
}
.nav-mobile .btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    margin-top: 4px;
}
.nav-mobile .btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
}

.brand-logo { height: 52px; width: auto; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    width: min(1200px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 13px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.alert-error   { color: #7f1d1d; background: #fbeaea; border: 1px solid #efb8b8; }
.alert-success { color: var(--success-tx); background: var(--success-bg); border: 1px solid var(--success-b); }

/* ============================================================
   HERO V2 – Dark Forest Green
   ============================================================ */
.landing-main { padding-top: 0; }

.hero-v2 {
    min-height: 100svh;
    padding-top: 68px;
    background: var(--accent-dark-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Subtle noise texture overlay */
.hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 60% 40%, oklch(28% 0.1 140) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 10% 80%, oklch(22% 0.08 140) 0%, transparent 60%);
    pointer-events: none;
}

.hero-v2__inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 60px 0 80px;
}

/* Text-Spalte: muss immer ueber dem robo.png-Visual liegen */
.hero-v2__copy {
    position: relative;
    z-index: 3;
}

.hero-eyebrow {
    margin: 0 0 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
}

.hero-v2__h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
}

.accent-word {
    color: var(--accent-light);
    font-style: italic;
}

.hero-v2__lead {
    color: oklch(78% 0.05 140);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-v2__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-v2__trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: oklch(65% 0.05 140);
    font-size: 0.875rem;
}

.hero-v2__trust li {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-v2__trust i {
    color: var(--accent-light);
    font-size: 0.75rem;
    flex: 0 0 auto;
}

/* Hero Visual */
.hero-v2__visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-visual-wrap {
    position: relative;
    width: 520px;
    max-width: 100%;
}

/* Klaro sitzt hinter dem Produktbild und verblasst beim Scrollen (--robo-p: 0 → 1, per JS) */
.hero-robo-scroll {
    position: relative;
    z-index: 1;
    width: 92%;
    margin: 0 auto;
    transform-origin: 50% 70%;
    transform: translateY(calc(var(--robo-p, 0) * 70px)) scale(calc(1 - var(--robo-p, 0) * 0.55));
    opacity: calc(1 - var(--robo-p, 0) * 0.85);
    will-change: transform, opacity;
}

.hero-robo {
    display: block;
    width: 100%;
    height: auto;
    animation: robo-float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px oklch(0% 0 0 / 0.4));
}

@keyframes robo-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

.hero-product-float {
    position: absolute;
    z-index: 2;
    bottom: -24px;
    left: -16px;
    width: 66%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    line-height: 0;
}

.hero-product-img { display: block; width: 100%; height: auto; }

.hero-badge-float {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: -10px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-light);
    color: var(--accent-dark-bg);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 12px oklch(0% 0 0 / 0.25);
}

/* Scroll hint */
.hero-scroll-hint {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: 32px;
    color: oklch(50% 0.04 140);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: scroll-hint-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-hint-pulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50%       { opacity: 1;   transform: translateY(4px); }
}

/* ============================================================
   THESIS SECTION
   ============================================================ */
.thesis-section {
    background: var(--surface);
    padding: 100px max(20px, calc((100vw - 1200px) / 2));
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.thesis-inner { max-width: 900px; margin: 0 auto; }

.thesis-quote {
    margin: 0 0 24px;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--ink);
    border: none;
    padding: 0;
}

.thesis-quote em {
    color: var(--accent);
    font-style: normal;
}

.thesis-br { display: none; }
@media (min-width: 720px) { .thesis-br { display: block; } }

.thesis-sub {
    color: var(--muted);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
}

/* ============================================================
   FEATURE SECTIONS
   ============================================================ */
.feat-section {
    padding: 100px max(20px, calc((100vw - 1200px) / 2));
    background: var(--surface);
}

.feat-section--tinted { background: var(--soft); }

.feat-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.feat-inner--reverse .feat-image { order: -1; }

.feat-img {
    width: 100%;
    border-radius: 16px;
}

.feat-img--product {
    box-shadow: var(--shadow-xl);
    transform: perspective(900px) rotateY(4deg) rotateX(1deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    max-width: 480px;
    margin: 0 auto;
}

.feat-img--product:hover {
    transform: perspective(900px) rotateY(1deg) rotateX(0);
    box-shadow: 0 28px 80px oklch(0% 0 0 / 0.22);
}

.feat-img--robo {
    max-width: 340px;
    margin: 0 auto;
    filter: drop-shadow(0 16px 32px oklch(0% 0 0 / 0.12));
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feat-text {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 28px;
}

.feat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.feat-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
}

.feat-list i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--tint-bg);
    color: var(--accent);
    font-size: 0.8rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.feat-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.feat-compare-col {
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 0.875rem;
}

.feat-compare-col strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.feat-compare-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
    color: var(--muted);
}

.feat-compare-col--out {
    background: oklch(98% 0.005 18);
    border: 1px solid oklch(88% 0.015 18);
}
.feat-compare-col--out strong { color: oklch(40% 0.1 18); }

.feat-compare-col--in {
    background: var(--tint-bg);
    border: 1px solid var(--tint-b);
}
.feat-compare-col--in strong { color: var(--accent-hover); }

/* ============================================================
   GALLERY BAND
   ============================================================ */
.gallery-section {
    background: var(--accent-dark-bg);
    padding: 80px max(20px, calc((100vw - 1200px) / 2));
}

.gallery-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-stat {
    text-align: center;
}

.gallery-stat-num {
    display: block;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
}

.gallery-stat-unit {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-left: 4px;
}

.gallery-stat-label {
    display: block;
    font-size: 0.8rem;
    color: oklch(60% 0.05 140);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 6px;
}

.gallery-product { grid-column: 2; }

.gallery-product-img {
    width: 340px;
    border-radius: 14px;
    box-shadow: 0 24px 60px oklch(0% 0 0 / 0.5);
    transform: rotate(-2deg);
    transition: transform 0.4s ease;
}

.gallery-product-img:hover {
    transform: rotate(0deg) scale(1.03);
}

/* ============================================================
   NUMBERED ROWS (01–03)
   ============================================================ */
.rows-section {
    background: var(--bg);
    padding: 100px max(20px, calc((100vw - 1200px) / 2));
}

.rows-inner {
    max-width: 860px;
    margin: 0 auto;
}

.rows-header {
    margin-bottom: 64px;
}

.numbered-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;
    align-items: flex-start;
    padding: 40px 0;
    border-top: 1px solid var(--line);
}

.numbered-row:last-child {
    border-bottom: 1px solid var(--line);
}

.numbered-row__num {
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--tint-bg);
    letter-spacing: -0.04em;
    line-height: 1;
    user-select: none;
}

.numbered-row__body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.numbered-row__body p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.numbered-row__claim {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--tint-bg);
    padding: 4px 12px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

/* ============================================================
   PRICING BAND (Landing-Page Kurzform)
   ============================================================ */
.pricing-band {
    background: var(--soft);
    padding: 80px 0;
}

.section-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0;
}

.pricing-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 12px auto 0;
    max-width: 880px;
}

.pricing-two-col .pricing-card {
    width: auto;
    display: flex;
    flex-direction: column;
}

.pricing-two-col .pricing-card .btn { margin-top: auto; }

.pricing-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 32px 28px 24px;
    position: relative;
}

.pricing-card--featured {
    border-color: var(--accent);
    box-shadow: 0 8px 32px oklch(40% 0.14 140 / 0.15);
}

.pricing-badge {
    display: inline-block;
    background: var(--tint-bg);
    color: var(--accent-hover);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.pricing-card--featured .pricing-badge {
    background: var(--accent);
    color: #fff;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

.pricing-old {
    font-size: 1.1rem;
    color: var(--muted);
    text-decoration: line-through;
}

.pricing-current {
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 12px 0 4px;
}

.pricing-desc {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 10px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    text-align: left;
}

.pricing-features i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tint-bg);
    color: var(--accent);
    font-size: 0.6rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    margin-top: 2px;
}

.pricing-to-sales {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 0.9375rem;
    color: var(--muted);
}

.pricing-to-sales a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.pricing-to-sales a:hover { text-decoration: underline; }

/* ============================================================
   CTA SECTION – Dark Forest Green
   ============================================================ */
.cta-section {
    background: var(--accent-dark-bg);
    padding: 100px max(20px, calc((100vw - 1200px) / 2));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, oklch(28% 0.1 140) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.cta-inner h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    margin-bottom: 20px;
}

.cta-lead {
    color: oklch(70% 0.05 140);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 28px;
}

.cta-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    color: oklch(62% 0.05 140);
    font-size: 0.875rem;
}

.cta-trust-list li {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cta-trust-list i {
    color: var(--accent-light);
    font-size: 0.7rem;
    flex: 0 0 auto;
}

.cta-form-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: var(--shadow-xl);
}

.panel-kicker {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.cta-form-card form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }

label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ink);
    display: block;
    margin-bottom: 4px;
}

input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    min-height: 48px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 0 14px;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--surface);
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px oklch(40% 0.14 140 / 0.12);
}

.form-status {
    display: none;
    margin-top: 14px;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.875rem;
    font-weight: 600;
}

.form-status.is-visible { display: block; }
.form-status.success {
    color: var(--success-tx);
    background: var(--success-bg);
    border: 1px solid var(--success-b);
}
.form-status.error {
    color: #7f1d1d;
    background: #fbeaea;
    border: 1px solid #efb8b8;
}

.trust-signals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 0.8125rem;
    color: var(--muted);
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 5px;
}

.trust-signal i { color: var(--good); font-size: 0.7rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--footer-bg);
    padding: 0 max(20px, calc((100vw - 1200px) / 2));
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 48px 0 32px;
    border-bottom: 1px solid oklch(30% 0.05 140);
    flex-wrap: wrap;
}

.footer-logo { height: 44px; width: auto; margin-bottom: 12px; }

.footer-brand p {
    color: oklch(55% 0.04 140);
    font-size: 0.875rem;
    margin: 0;
    max-width: 280px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links a {
    color: oklch(60% 0.05 140);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.8125rem;
    color: oklch(40% 0.04 140);
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================================
   AUTH PAGES (Login / Register / Install)
   ============================================================ */
/* App-Seiten: Grüner Header (direkte Modifier-Klasse, kein body-Selector) */
.site-header--app {
    background: var(--accent-dark-bg);
    border-bottom-color: transparent;
    backdrop-filter: none;
}
.site-header--app.site-header--scrolled {
    background: var(--header-bg);
    border-bottom-color: var(--line);
    backdrop-filter: blur(16px);
}
.site-header--app:not(.site-header--scrolled) .btn-ghost {
    color: oklch(88% 0.05 140);
    border-color: oklch(42% 0.09 140);
}
.site-header--app:not(.site-header--scrolled) .btn-ghost:hover {
    background: oklch(26% 0.09 140);
    border-color: oklch(55% 0.1 140);
    color: #fff;
}
.site-header--app:not(.site-header--scrolled) .nav-hamburger {
    border-color: oklch(42% 0.09 140);
}
.site-header--app:not(.site-header--scrolled) .nav-hamburger span {
    background: oklch(88% 0.05 140);
}

/* App-Seiten: Mittlerer grüner Trennband */
.app-mid-band {
    background: var(--accent-dark-bg);
    border-top: 1px solid oklch(28% 0.08 140);
    border-bottom: 1px solid oklch(28% 0.08 140);
    padding: 32px max(20px, calc((100vw - 1200px) / 2));
    margin: 56px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.app-mid-band__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.app-mid-band__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
}
.app-mid-band__text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.app-mid-band .btn-ghost-light {
    background: transparent;
    border-color: oklch(45% 0.09 140);
    color: oklch(88% 0.05 140);
    white-space: nowrap;
}
.app-mid-band .btn-ghost-light:hover {
    background: oklch(26% 0.09 140);
    border-color: oklch(58% 0.1 140);
    color: #fff;
}

/* App-Footer */
.app-footer {
    background: var(--accent-dark-bg);
    border-top: 1px solid oklch(28% 0.08 140);
    padding: 28px max(20px, calc((100vw - 1200px) / 2));
    margin-top: 64px;
}
.app-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: oklch(55% 0.05 140);
}
.app-footer-links {
    display: flex;
    gap: 24px;
}
.app-footer a {
    color: var(--accent-light);
    text-decoration: none;
}
.app-footer a:hover { text-decoration: underline; }

/* Auth-Seiten: Grüner Top-Bereich */
.auth-page {
    min-height: calc(100svh - 68px);
    display: grid;
    place-items: center;
    padding: 100px 20px 64px;
    background: linear-gradient(
        to bottom,
        var(--accent-dark-bg) 0px,
        var(--accent-dark-bg) 220px,
        var(--bg) 220px
    );
}

.auth-card {
    width: min(440px, 100%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 44px 40px 38px;
}

.auth-brand {
    display: block;
    text-decoration: none;
    margin-bottom: 32px;
}

.auth-logo { height: 44px; width: auto; }

.auth-card h1 {
    font-size: 1.75rem;
    margin-bottom: 6px;
}

.auth-sub {
    color: var(--muted);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.auth-form { display: grid; gap: 16px; margin-top: 24px; }

.field-group { display: grid; gap: 6px; }

.field-hint {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.8125rem;
}

/* Honeypot-Feld: für echte Nutzer unsichtbar, für Bots wie ein normales Feld erreichbar. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.auth-alert--error {
    background: #fbeaea;
    border: 1px solid #efb8b8;
    color: #7f1d1d;
}

.auth-alert--info {
    background: var(--tint-bg);
    border: 1px solid var(--tint-b);
    color: var(--accent-hover);
}

.auth-alert i { flex: 0 0 auto; margin-top: 1px; }

.auth-footer-hint {
    margin-top: 20px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

.auth-footer-hint a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-hint a:hover { text-decoration: underline; }

.auth-success-state { text-align: center; }

.auth-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--tint-bg);
    color: var(--accent);
    font-size: 1.5rem;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
}

/* ============================================================
   APP / GUIDE AREA (existing styles preserved)
   ============================================================ */
/* Entfernt: redundante .app-shell .site-header-Regel (border-bottom)
   überschrieb wegen höherer Spezifität die transparente Randfarbe von
   .site-header--app im nicht-gescrollten Zustand. Die Basis-Klasse
   .site-header setzt den Rand ohnehin schon (Zeile ~203). */

.section {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.section-muted { background: var(--soft); }

.lead {
    max-width: 700px;
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

blockquote {
    max-width: 780px;
    margin: 28px 0 0;
    border-left: 3px solid var(--accent);
    padding: 12px 0 12px 20px;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
}

.guide-hero {
    background: var(--accent-dark-bg);
    border-bottom: 1px solid oklch(28% 0.08 140);
    padding: 52px max(16px, calc((100vw - 1120px) / 2)) 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
    gap: 28px;
    align-items: start;
}

.guide-hero .eyebrow { color: var(--accent-light); }
.guide-hero h1 { color: #fff; }
.guide-hero .lead { color: oklch(78% 0.05 140); }

/* "Zurueck"-Link (Guide+) auf dunklem Hero-Grund lesbar machen, analog .btn-ghost-light */
.guide-hero .btn-ghost {
    background: transparent;
    border-color: oklch(70% 0.06 140);
    color: oklch(90% 0.04 140);
}
.guide-hero .btn-ghost:hover {
    background: oklch(30% 0.09 140);
    border-color: oklch(60% 0.1 140);
    color: #fff;
}

.download-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 24px;
}

.download-card-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.download-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--tint-bg);
    color: var(--accent);
    font-size: 1.25rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.download-meta { flex: 1; }
.download-meta strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}
.download-meta span { font-size: 0.8125rem; color: var(--muted); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-available { background: var(--tint-bg); color: var(--accent-hover); }
.badge-soon { background: oklch(95% 0 0); color: var(--muted); }

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.module-card {
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    padding: 22px;
    transition: border-color 0.15s, box-shadow 0.15s;
    color: var(--muted);
}

.module-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 2px 8px oklch(40% 0.14 140 / 0.08);
}

.module-card i {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.module-card h3 { color: var(--ink); }

.module-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.module-card-header i { margin-bottom: 0; }

.next-steps-box {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 48px;
    background: var(--tint);
    border: 1px solid var(--tint-b);
    border-radius: 12px;
    padding: 22px 26px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.next-steps-box i { color: var(--accent); font-size: 1.125rem; margin-top: 2px; flex: 0 0 auto; }
.next-steps-box h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 8px; }

.next-steps-list {
    margin: 0; padding: 0; list-style: none;
    display: flex; flex-direction: column; gap: 6px;
}

.next-steps-list li {
    font-size: 0.875rem;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.next-steps-list li::before {
    content: "→";
    color: var(--accent);
    font-weight: 600;
    flex: 0 0 auto;
}

/* Workflow Accordion */
.workflow-accordion { display: grid; gap: 10px; }

.wf-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    overflow: hidden;
}

.wf-card[open] { border-color: var(--accent-light); }

.wf-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.wf-summary::-webkit-details-marker { display: none; }
.wf-summary:hover { background: var(--soft); }

.wf-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--tint-bg);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.wf-card[open] .wf-num { background: var(--accent); color: #fff; }

.wf-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.wf-chevron {
    color: var(--muted);
    font-size: 0.75rem;
    transition: transform 0.2s;
    flex: 0 0 auto;
}

.wf-card[open] .wf-chevron { transform: rotate(180deg); color: var(--accent); }

.wf-body {
    padding: 0 20px 20px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 16px;
}

.wf-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 16px;
}

.wf-block strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wf-block p { font-size: 0.875rem; color: var(--muted); margin: 0; line-height: 1.6; }

.wf-prompt-wrap {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.wf-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.wf-prompt-header strong { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }

.copy-btn {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.copy-btn:hover { background: var(--tint-bg); border-color: var(--accent-light); }
.copy-btn.copied { color: var(--accent-hover); background: var(--tint-bg); }

.wf-prompt {
    margin: 0;
    padding: 14px;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-word;
    background: transparent;
}

.wf-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 0.8125rem;
    color: #92400E;
}

.wf-note i { color: #D97706; font-size: 0.875rem; margin-top: 1px; flex: 0 0 auto; }

/* 7-Tage-Plan */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.plan-day {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    padding: 16px;
}

.plan-day-last { border-color: var(--accent-light); background: var(--tint); }

.plan-num {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 8px;
}

.plan-day p { margin: 0; font-size: 0.875rem; color: var(--ink); line-height: 1.5; }

.plan-note {
    background: var(--soft);
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.9375rem;
    color: var(--muted);
    font-style: italic;
    border-left: 3px solid var(--accent);
}

/* Admin */
.admin-table-wrap { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    font-size: 0.875rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th,
.admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }

.admin-table tbody tr:last-child td { border-bottom: 0; }

.admin-table th {
    background: var(--soft);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
}

.admin-table tr:hover td { background: var(--soft); }
.admin-meta { color: var(--muted); font-size: 0.75rem; }

.pill {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pill--on  { background: var(--tint-bg); color: var(--accent-hover); }
.pill--off { background: oklch(95% 0 0); color: var(--muted); }
.pill--advanced { background: #FEF9C3; color: #CA8A04; }
.pill--starter  { background: #DBEAFE; color: #2563EB; }

.admin-role-form { display: flex; gap: 6px; align-items: center; }
.admin-role-form select {
    min-height: 34px;
    font-size: 0.75rem;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
}

.admin-edit-form {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-edit-form input[type="text"],
.admin-edit-form input[type="email"] {
    min-height: 36px;
    font-size: 0.8125rem;
    padding: 0 10px;
    width: 180px;
}

.admin-create-card {
    margin-top: 24px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.admin-create-card h2 {
    font-size: 1rem;
    margin: 0 0 4px;
}

.admin-create-card .section-text { margin-bottom: 16px; }

.admin-create-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
}

.admin-create-form .field-group { margin: 0; }

.admin-create-form select {
    min-height: 42px;
    width: 100%;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
}

.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.admin-actions form { display: inline; margin: 0; }
.admin-actions .btn { padding: 6px 12px; font-size: 0.75rem; min-height: 34px; }

.admin-pw-reset > summary { list-style: none; cursor: pointer; }
.admin-pw-reset > summary::-webkit-details-marker { display: none; }

.admin-pw-form {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.admin-pw-form input {
    min-height: 36px;
    font-size: 0.8125rem;
    padding: 0 10px;
    width: 200px;
}

/* Advanced Guide */
.adv-cta-section { display: flex; gap: 32px; align-items: center; }

.adv-cta-icon {
    width: 72px; height: 72px;
    border-radius: 16px;
    background: #FEF9C3; color: #CA8A04;
    font-size: 1.75rem;
    display: grid; place-items: center;
    flex: 0 0 auto;
}

.adv-download-grid { display: grid; gap: 16px; margin-top: 32px; }

.adv-download-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 18px;
    align-items: center;
}

.adv-download-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    font-size: 1.375rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.adv-icon-green { background: var(--tint-bg); color: var(--accent); }
.adv-icon-blue  { background: #E0F2FE; color: #0284C7; }
.adv-icon-muted { background: var(--soft); color: var(--muted); }

.adv-download-body strong { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.adv-download-body span  { font-size: 0.875rem; color: var(--muted); line-height: 1.55; }
.adv-download-meta { margin-top: 6px; font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* Datenschutz */
.ampel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 36px; }
.ampel-col { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--surface); }
.ampel-green  { border-top: 3px solid #3D9527; }
.ampel-yellow { border-top: 3px solid #EAB308; }
.ampel-red    { border-top: 3px solid #DC2626; }
.ampel-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ampel-header strong { font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.ampel-dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.ampel-dot-green  { background: #3D9527; }
.ampel-dot-yellow { background: #EAB308; }
.ampel-dot-red    { background: #DC2626; }
.ampel-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ampel-list li { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; padding-left: 14px; position: relative; }
.ampel-list li::before { content: "·"; position: absolute; left: 4px; font-weight: 700; color: var(--muted); }
.ampel-note { margin-top: 12px; font-size: 0.75rem; font-weight: 600; color: #92400E; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 6px; padding: 8px 10px; }

.cheat-rules { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.cheat-rules h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 20px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.cheat-rules h3 i { color: var(--accent); }
.cheat-rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.cheat-rule { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.cheat-rule strong { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.cheat-rule p { font-size: 0.8125rem; color: var(--muted); line-height: 1.6; margin: 0; }
.cheat-emergency { display: flex; gap: 12px; align-items: flex-start; background: #FEF2F2; border: 1px solid #FCA5A5; border-radius: 8px; padding: 14px 16px; font-size: 0.8125rem; }
.cheat-emergency i { color: #DC2626; font-size: 1rem; margin-top: 1px; flex: 0 0 auto; }
.cheat-emergency strong { display: block; color: #7F1D1D; font-weight: 700; margin-bottom: 4px; }
.cheat-emergency span { color: #7F1D1D; line-height: 1.55; }

.glossar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
.glossar-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 16px 18px; transition: border-color 0.15s, box-shadow 0.15s; }
.glossar-card:hover { border-color: var(--accent-light); box-shadow: 0 2px 8px oklch(40% 0.14 140 / 0.07); }
.glossar-card strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.glossar-card p { font-size: 0.8125rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* Sales Page */
.sales-hero { padding: 80px max(24px, calc((100vw - 1120px) / 2)) 64px; text-align: center; border-bottom: 1px solid var(--line); }
.sales-hero--dark {
    background: var(--accent-dark-bg);
    border-bottom-color: oklch(28% 0.08 140);
    padding-top: 100px;
}
.sales-badge--light {
    background: oklch(28% 0.09 140);
    border: 1px solid oklch(38% 0.1 140);
    color: oklch(80% 0.07 140);
}
.sales-hero h1 { max-width: 760px; margin: 0 auto 20px; font-size: clamp(2rem, 5vw, 3rem); }
.sales-hero .lead { max-width: 620px; margin: 0 auto 32px; font-size: 1.125rem; }
.sales-hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.sales-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); border: 1px solid var(--tint-b); color: var(--accent-hover); font-size: 0.8125rem; font-weight: 600; padding: 6px 14px; border-radius: 9999px; }
.sales-badge i { font-size: 0.6875rem; }
.sales-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 40px max(24px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--line); background: var(--soft); }
.sales-stat { text-align: center; }
.sales-stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--ink); font-family: "Poppins", system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1; margin-bottom: 4px; }
.sales-stat-label { font-size: 0.8125rem; color: var(--muted); }
.sales-pricing-section { padding: 72px max(24px, calc((100vw - 1120px) / 2)); text-align: center; }
.sales-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 480px)); justify-content: center; gap: 20px; margin-top: 48px; align-items: stretch; }
.pricing-card--muted { background: var(--soft); }
.pricing-tier-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; }
.pricing-separator { border: none; border-top: 1px solid var(--line); margin: 20px 0; }
.pricing-card--featured .pricing-separator { border-color: var(--tint-b); }
.pricing-note { margin: 0 0 12px; font-size: 0.8125rem; color: var(--muted); font-style: italic; text-align: left; }
.pricing-hint { margin: 14px 0 0; font-size: 0.75rem; color: var(--muted); text-align: center; }

/* Value Stack – "Was du bekommst" Wertaufstellung im Advanced-Paket */
.value-stack {
    text-align: left;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
}

.value-stack-title {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.value-stack-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.875rem;
    color: var(--ink);
}

.value-stack-row:last-child { border-bottom: none; }

.value-item-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.value-item-name i {
    width: 18px;
    flex: 0 0 auto;
    text-align: center;
    color: var(--accent);
}

.value-item-price {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.value-stack-row--total {
    border-top: 1px solid var(--line);
    border-bottom: none;
    margin-top: 4px;
    padding-top: 12px;
    font-weight: 600;
}

.value-stack-row--total .value-item-price { color: var(--ink); }

.value-stack-row--price {
    border-bottom: none;
    margin-top: 6px;
    padding: 12px 14px;
    background: var(--tint);
    border: 1px solid var(--tint-b);
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
}

.value-stack-row--price .value-item-name,
.value-stack-row--price .value-item-price { color: var(--accent-hover); }

.value-stack-row--price .value-item-name i { color: var(--accent-hover); }

.sales-faq-section { padding: 72px max(24px, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--line); background: var(--soft); }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: flex-start; }
.faq-intro-text { position: sticky; top: 88px; }
.faq-intro-text p { font-size: 1rem; color: var(--muted); line-height: 1.7; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color 0.15s; }
.faq-item[open] { border-color: var(--accent-light); }
.faq-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; user-select: none; font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { background: var(--soft); }
.faq-chevron { color: var(--muted); font-size: 0.75rem; transition: transform 0.2s; flex: 0 0 auto; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-body { padding: 0 22px 20px; border-top: 1px solid var(--line); }
.faq-body p { margin: 16px 0 0; font-size: 0.9375rem; color: var(--muted); line-height: 1.7; }
.faq-body ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }
.sales-final-cta { padding: 80px max(24px, calc((100vw - 1120px) / 2)); text-align: center; background: var(--tint); border-top: 1px solid var(--tint-b); }
.sales-final-cta h2 { max-width: 680px; margin: 0 auto 20px; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.sales-final-cta p { max-width: 520px; margin: 0 auto 32px; font-size: 1.0625rem; color: var(--muted); line-height: 1.7; }
.sales-final-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Thanks / Confirmed */
.thanks-hero { width: 100%; min-height: 100svh; background: linear-gradient(to bottom, var(--accent-dark-bg) 0px, var(--accent-dark-bg) 220px, var(--bg) 220px); display: grid; place-items: center; padding: 100px max(20px, calc((100vw - 1120px) / 2)) 56px; }
.thanks-card { width: min(520px, 100%); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); padding: 44px 40px 38px; text-align: center; }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--tint-bg); color: var(--accent); font-size: 1.625rem; display: grid; place-items: center; margin: 0 auto 22px; }
.thanks-card h1 { font-size: 1.75rem; margin-bottom: 12px; }
.thanks-lead { font-size: 1rem; color: var(--muted); margin-bottom: 24px; line-height: 1.65; }
.thanks-hint { display: flex; align-items: flex-start; gap: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 13px 15px; margin-bottom: 26px; text-align: left; font-size: 0.8125rem; color: var(--muted); }
.thanks-hint i { color: var(--accent); font-size: 0.9375rem; margin-top: 2px; flex: 0 0 auto; }
.thanks-card .btn-lg { width: 100%; }
.thanks-back { margin: 16px 0 0; font-size: 0.875rem; color: var(--muted); }
.thanks-back a { color: var(--accent); text-decoration: none; }
.thanks-back a:hover { text-decoration: underline; }

/* Purchase thank-you page */
.thanks-card--purchase { width: min(560px, 100%); }
.thanks-icon--success { background: var(--success-bg); color: var(--good); }
.thanks-steps { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; text-align: left; }
.thanks-step { display: flex; align-items: flex-start; gap: 14px; }
.thanks-step-num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.8125rem; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.thanks-step strong { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.thanks-step p { font-size: 0.8125rem; color: var(--muted); margin: 0; line-height: 1.55; }
.thanks-legal { font-size: 0.75rem; color: var(--muted); margin: 18px 0 0; }

/* Status dot */
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--good); margin-right: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .header-actions { display: none; }
    .nav-hamburger  { display: flex; }
}

@media (min-width: 769px) {
    .nav-hamburger { display: none; }
    .nav-mobile    { display: none !important; }
}

@media (max-width: 900px) {
    .hero-v2__inner {
        /* minmax(0, 1fr): die Spalte darf nie breiter werden als der Bildschirm (sonst wird der Text rechts abgeschnitten) */
        grid-template-columns: minmax(0, 1fr);
        padding: 48px 0 64px;
        text-align: center;
    }
    .hero-v2__copy { min-width: 0; }
    .hero-v2__lead, .hero-v2__actions, .hero-v2__trust { margin-left: auto; margin-right: auto; }
    .hero-v2__actions { justify-content: center; flex-direction: column; align-items: center; }
    .hero-v2__actions .btn { width: 100%; max-width: 340px; white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; }
    .hero-v2__visual { order: -1; margin-bottom: 32px; }
    .hero-visual-wrap { width: min(360px, 100%); }
    .hero-product-float { left: -8px; bottom: -16px; width: 68%; }

    .feat-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .feat-inner--reverse .feat-image { order: 0; }
    .feat-img--product { transform: none; max-width: 380px; }
    .feat-img--robo { max-width: 240px; }

    .gallery-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
    .gallery-product { grid-column: 1 / -1; }
    .gallery-product-img { width: 180px; margin: 0 auto; }

    .numbered-row { grid-template-columns: 60px 1fr; gap: 20px; }
    .numbered-row__num { font-size: 2.5rem; }

    .cta-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }

    .feat-compare { grid-template-columns: minmax(0, 1fr); }

    .guide-hero { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
    .wf-meta { grid-template-columns: minmax(0, 1fr); }
    .plan-grid { grid-template-columns: repeat(2, 1fr); }
    .ampel-grid { grid-template-columns: minmax(0, 1fr); }
    .cheat-rules-grid { grid-template-columns: minmax(0, 1fr); }
    .adv-cta-section { flex-direction: column; align-items: flex-start; }
    .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .faq-intro-text { position: static; }
    .sales-pricing-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
    .module-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .hero-v2__h1 { font-size: 2rem; }
    .thesis-quote { font-size: 1.5rem; }
    .gallery-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .gallery-product { display: none; }
    .numbered-row { grid-template-columns: minmax(0, 1fr); }
    .numbered-row__num { display: none; }
    .pricing-two-col { grid-template-columns: minmax(0, 1fr); }
    .auth-card { padding: 32px 20px; }
    .admin-table th, .admin-table td { padding: 10px 8px; }
    .admin-actions { flex-direction: column; align-items: flex-start; }
    .admin-pw-form { flex-direction: column; align-items: flex-start; }
    .admin-pw-form input { width: 100%; }
    .admin-role-form { flex-wrap: wrap; width: 100%; }
    .admin-role-form select { flex: 1; min-width: 0; }
    .admin-edit-form { flex-direction: column; align-items: stretch; }
    .admin-edit-form input,
    .admin-edit-form select { width: 100%; }
    .admin-create-form { grid-template-columns: minmax(0, 1fr); }
    .plan-grid { grid-template-columns: minmax(0, 1fr); }
    .glossar-grid { grid-template-columns: minmax(0, 1fr); }
    .adv-download-card { grid-template-columns: 44px 1fr; gap: 14px; }
    .adv-download-card .btn { grid-column: 1 / -1; }
    .adv-download-icon { width: 44px; height: 44px; font-size: 1.125rem; border-radius: 10px; }
    .wf-summary { padding: 14px 16px; }
    .wf-body { padding: 0 14px 16px; }
    .faq-summary { padding: 14px 16px; font-size: 0.9375rem; }
    .faq-body { padding: 0 16px 16px; }
    .thanks-card { padding: 28px 18px; }
    .sales-hero h1 { font-size: 1.75rem; }
    .sales-hero { padding-top: 48px; padding-bottom: 40px; }
    .sales-stats { gap: 28px; }
    .sales-final-cta h2 { font-size: 1.5rem; }

    /* Sehr schmale Bildschirme: lange Button-Texte umbrechen statt über den Rand zu ragen */
    .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
}

/* ============================================================
   Legal (Impressum etc.)
   ============================================================ */
.legal-page { padding: 56px 20px 80px; }
.legal-page-inner { max-width: 640px; margin: 0 auto; }
.legal-page-inner h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 24px; }
.legal-page-inner h2 { font-size: 1.125rem; margin: 32px 0 8px; color: var(--ink); }
.legal-page-inner p { color: var(--muted); line-height: 1.8; margin: 0 0 4px; }
.legal-page-inner a { color: var(--accent); font-weight: 600; }
.legal-back { margin-top: 32px !important; }
.legal-back a { color: var(--accent); }

/* ── Über den Autor ─────────────────────────────────────────── */
.author-section { padding: 72px 24px; background: var(--bg); }
.author-inner { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 140px 1fr; gap: 32px; align-items: center; }
.author-photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: var(--accent-tint); display: grid; place-items: center; border: 1px solid var(--line); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-photo span { font-family: 'Poppins', sans-serif; font-size: 3.2rem; color: var(--accent); }
.author-copy h2 { margin: 4px 0 12px; }
.author-copy p { color: var(--muted); line-height: 1.65; margin: 0 0 10px; }
.author-copy .author-sign { color: var(--ink); font-weight: 600; margin-top: 14px; }
@media (max-width: 640px) {
    .author-inner { grid-template-columns: minmax(0, 1fr); text-align: left; gap: 20px; }
}

/* ── Vorher/Nachher-Demo (E-Mail) ───────────────────────────── */
.ba-demo { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 12px; align-items: stretch; margin-top: 20px; }
.ba-demo__pane { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); font-size: .92rem; line-height: 1.5; }
.ba-demo__pane p { margin: 0 0 6px; }
.ba-demo__pane--before { background: var(--soft); color: var(--muted); font-style: italic; }
.ba-demo__pane--after { border-color: var(--accent-light); box-shadow: var(--shadow); }
.ba-demo__label { display: block; font-size: .72rem; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 600; }
.ba-demo__arrow { display: grid; place-items: center; color: var(--accent); }
.ba-demo__type { overflow: hidden; animation: ba-reveal 3.2s steps(60, end) .4s both; }
.ba-demo__note { font-size: .78rem; color: var(--muted); margin: 8px 0 0; }
@keyframes ba-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 640px) {
    .ba-demo { grid-template-columns: minmax(0, 1fr); }
    .ba-demo__arrow i { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { .ba-demo__type { animation: none; } }

/* Einwilligungshinweis unter dem Opt-in-Formular */
.optin-consent { font-size: .8rem; line-height: 1.5; margin: 10px 0 0; opacity: .8; }
.optin-consent a { color: inherit; text-decoration: underline; }

/* Fehler-Variante der Bestätigungsseiten (/confirm, nur Produktion) */
.thanks-icon--error { background: #fbeaea; color: #7f1d1d; }


/* Lust auf mehr unter dem Gratis-Workflow */
.feat-cta { margin: 24px 0 0; }
.feat-more { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.feat-more__title { font-weight: 700; margin: 0 0 12px; }
.feat-list--compact li { font-size: 0.9375rem; }
.feat-more__note { margin: 16px 0 0; color: var(--muted); font-size: 0.9375rem; }
.feat-more__note a { color: var(--accent); font-weight: 600; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    .hero-robo-scroll { transform: none; opacity: 1; }
}

/* Lange Wörter in Überschriften (z. B. „Datenschutzerklärung“) umbrechen statt die Seite zu verbreitern */
.legal-page h1, .legal-page h2 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 480px) { .legal-page h1 { font-size: 1.75rem; } }
