/* ============================================================
   Design-Template "greenfuture" — dunkles Design-System
   Schwarz/Grau mit harmonisch gruenem, leuchtendem Akzent.
   Struktur & Klassen identisch zu "standard" und "blackline" — nur Farben neu.
   Zentral gehostet auf design.s6s.de/greenfuture.
   ============================================================ */

@import "../fonts.css?v=2";

:root {
    /* Flaechen */
    --bg: #0b0b0f;
    --cream: #101016;          /* Sekundar-Flaeche (wie cream in standard) */
    --surface: #15151c;
    --surface-2: #1c1c26;
    --line: #272733;
    --gray: #9a9db0;
    --white: #15151c;          /* Karten-/Input-Flaeche (war weiss) */

    /* Navy-Rollen werden zu Text-/Tiefen-Stufen */
    --navy-deep: #08080b;      /* dunkelste Flaeche (Hero/Footer/Promo) */
    --navy: #eceef4;           /* Primaer-Text (war navy) */
    --navy-soft: #b9bdd0;
    --navy-line: #2c2c3a;
    --navy-edge: #34344a;

    /* Energetisches Blau */
    --accent: #34d399;
    --accent-hi: #6ee7b7;
    --accent-soft: #6ee7b7;
    --accent-ink: #34d399;
    --on-accent: #04170f;
    --peach: rgba(52, 211, 153, .12);

    --green: #34d399;
    --green-ink: #6ee7b7;

    /* Radien */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 20px;
    --r-pill: 999px;

    /* Motion */
    --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Basis ---------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    color: var(--navy);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: rgba(52, 211, 153, .3); color: #fff; }

h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.14; color: #fff; margin-bottom: 20px; }
h1 em { font-style: normal; color: var(--accent); text-shadow: 0 0 22px rgba(52, 211, 153, .45); }

h2 { font-size: clamp(27px, 3.4vw, 35px); color: var(--navy); line-height: 1.18; }

h3 { font-family: 'Sora', system-ui, sans-serif; font-size: 19px; font-weight: 700; }
h4 { font-family: 'Sora', system-ui, sans-serif; font-size: 16px; font-weight: 700; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

section { position: relative; }
.section { padding: 92px 0; }

.kicker {
    font-size: 13px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--accent-ink); margin-bottom: 13px;
}

.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--gray); font-size: 17px; margin-top: 12px; }

/* Reveal-Animation (via snack.js) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 48px; padding: 13px 26px; border-radius: var(--r-pill);
    font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent;
    text-decoration: none;
    transition: background-color .2s var(--ease), transform .12s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--accent); color: var(--on-accent);
    box-shadow: 0 0 18px rgba(52, 211, 153, .35);
}
.btn-primary:hover { background: var(--accent-hi); box-shadow: 0 0 30px rgba(52, 211, 153, .55); }

.btn-ghost { border-color: var(--navy-edge); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--accent-soft); box-shadow: 0 0 16px rgba(52, 211, 153, .25); }

.btn-light { background: var(--surface-2); color: var(--navy); border-color: var(--line); }
.btn-light:hover { border-color: var(--accent); }

/* ---------- Navigation ---------- */

nav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(11, 11, 15, .88);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: 'Sora'; font-weight: 800; font-size: 20px; color: var(--navy); text-decoration: none; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(52, 211, 153, .7); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--navy-soft); font-weight: 600; font-size: 15px; text-decoration: none; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 760px) {
    .nav-links { display: none; }
}

/* ---------- Hero (dunkel) ---------- */

.hero {
    background:
        radial-gradient(60% 80% at 72% 18%, rgba(52, 211, 153, .12), transparent 62%),
        var(--navy-deep);
    color: #fff; overflow: hidden; padding: 88px 0 92px;
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }

.hero .eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-soft); margin-bottom: 14px; }
.hero p.lead { font-size: 18px; color: #a8acc0; max-width: 470px; margin-bottom: 32px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Live-Panel im Hero */
.hero-panel {
    background: var(--surface); border: 1px solid var(--navy-edge);
    border-radius: var(--r-lg); padding: 26px;
    box-shadow: 0 0 40px rgba(52, 211, 153, .07);
}
.hero-panel .panel-head { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: #dfe5f2; margin-bottom: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.panel-line { border-top: 1px solid var(--navy-line); padding: 13px 0; font-size: 14.5px; color: #9a9db0; }
.panel-line strong { color: #fff; display: block; font-size: 15px; }

@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
    .hero p.lead { max-width: none; }
}

/* ---------- Trust-Leiste ---------- */

.trust { background: var(--cream); border-bottom: 1px solid var(--line); padding: 20px 0; }
.trust .wrap { display: flex; align-items: center; justify-content: center; gap: 20px 44px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--navy-soft); }
.trust span { display: flex; align-items: center; gap: 9px; }
.trust .sw { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 8px rgba(52, 211, 153, .6); }

/* ---------- Rollen-Karten (Zwei-Spalten) ---------- */

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.role { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; }
.role-pain { font-size: 13px; color: var(--accent-ink); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.role h3 { font-size: 24px; margin-bottom: 12px; color: var(--navy); }
.role > p { color: var(--gray); margin-bottom: 18px; }
.role ul { list-style: none; }
.role li { position: relative; padding: 9px 0 9px 26px; font-size: 15px; border-top: 1px solid var(--line); color: var(--navy-soft); }
.role li::before { content: ''; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(52, 211, 153, .55); }

@media (max-width: 800px) { .roles { grid-template-columns: 1fr; } }

/* ---------- Zitat ---------- */

.quote-block { margin: 46px auto 0; max-width: 560px; text-align: center; }
.quote { font-family: 'Lora', serif; font-style: italic; font-weight: 500; font-size: 21px; line-height: 1.55; color: var(--navy); }
.quote-block cite { display: block; margin-top: 16px; font-family: 'IBM Plex Sans'; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Szenarien (dunkel) ---------- */

.scenarios { background: var(--navy-deep); color: #fff; }
.scenarios .section-head h2 { color: #fff; }
.scenarios .section-head p { color: #9a9db0; }

.scene-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.scene-list { display: grid; gap: 12px; }
.scene-btn {
    position: relative; overflow: hidden; text-align: left; cursor: pointer;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--navy-edge);
    border-radius: var(--r-md); padding: 17px 20px; color: #9a9db0; min-height: 48px;
    font: inherit; width: 100%;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.scene-btn strong { display: block; color: #fff; font-size: 15.5px; margin-bottom: 3px; }
.scene-btn small { font-size: 13.5px; }
.scene-btn.active { border-color: var(--accent); background: rgba(52, 211, 153, .07); box-shadow: 0 0 20px rgba(52, 211, 153, .12); }
.scene-btn .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); box-shadow: 0 0 10px rgba(52, 211, 153, .8); }
.scene-btn.active .prog { animation: prog 6s linear forwards; }
@keyframes prog { to { width: 100%; } }

.scene-view { background: var(--surface); border: 1px solid var(--navy-edge); border-radius: var(--r-lg); padding: 28px; min-height: 300px; }
.scene-view .panel-head { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: #dfe5f2; margin-bottom: 18px; }

@media (max-width: 900px) { .scene-grid { grid-template-columns: 1fr; } }

/* ---------- Feature-Gruppen ---------- */

.feat-group { margin-bottom: 44px; }
.group-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin-bottom: 18px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.feat:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 24px rgba(52, 211, 153, .12); }
.feat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.feat-head .ic { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--peach); display: grid; place-items: center; color: var(--accent-ink); font-weight: 800; flex-shrink: 0; }
.feat-head h4 { font-size: 15.5px; color: var(--navy); }
.feat-body { font-size: 14px; color: var(--gray); }

@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- Preise ---------- */

.pricing { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; align-items: stretch; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.tier.main { background: var(--surface-2); color: #fff; border-color: var(--accent); box-shadow: 0 0 30px rgba(52, 211, 153, .15); }
.tier.main h3 { color: #fff; }
.tier-small { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 10px; }
.tier.main .tier-small { color: var(--accent-soft); }
.tier .price { font-family: 'Sora'; font-weight: 800; font-size: 34px; margin: 14px 0 4px; color: var(--navy); }
.tier.main .price { color: #fff; }
.tier .price small { font-size: 15px; font-weight: 600; color: var(--gray); }
.tier-note { font-size: 13.5px; color: var(--gray); }
.tier p.desc { font-size: 14.5px; color: var(--gray); margin-top: 14px; }
.tier.main p.desc { color: #a8acc0; }

@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- Promo / Partner-Karte (dunkel) ---------- */

.promo {
    background:
        radial-gradient(70% 90% at 80% 10%, rgba(52, 211, 153, .14), transparent 60%),
        var(--navy-deep);
    color: #fff; border-radius: var(--r-lg); padding: 54px 48px; overflow: hidden; position: relative;
    border: 1px solid var(--navy-edge);
}
.promo .kicker { color: var(--accent-soft); }
.promo h2 { color: #fff; max-width: 560px; }
.promo .lead { color: #9a9db0; max-width: 560px; margin-top: 14px; }
.promo .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 34px 0; max-width: 480px; }
.p-stat { background: var(--surface); border: 1px solid var(--navy-edge); border-radius: var(--r-md); padding: 26px 20px; text-align: center; }
.p-num { font-family: 'Sora'; font-weight: 800; font-size: 31px; color: var(--accent-soft); margin-bottom: 4px; line-height: 1.1; text-shadow: 0 0 18px rgba(52, 211, 153, .4); }
.p-label { font-size: 13px; color: #9a9db0; }
.promo .limit { font-size: 13.5px; color: var(--accent-soft); font-weight: 700; margin-bottom: 22px; }

/* ---------- Voice / Kontakt-CTA ---------- */

.voice-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--navy); font-weight: 600; }
.voice-num { font-family: 'Sora'; font-weight: 800; font-size: clamp(26px, 4vw, 38px); color: var(--navy); letter-spacing: .01em; }
.voice-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.voice-hint { font-size: 13.5px; color: var(--gray); margin-top: 18px; max-width: 520px; }

/* ---------- Fakten / Badges ---------- */

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.fact { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.fact .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 8px rgba(52, 211, 153, .6); }
.f-badge { font-weight: 700; font-size: 14px; color: var(--navy); }
.fact p { font-size: 13.5px; color: var(--gray); margin-top: 2px; }

@media (max-width: 800px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Footer (dunkel) ---------- */

footer { background: var(--navy-deep); color: #7d8098; font-size: 13.5px; border-top: 1px solid var(--navy-edge); }
.foot-claim { font-family: 'Sora'; font-weight: 800; font-size: clamp(34px, 6vw, 64px); color: #fff; line-height: 1.05; padding: 72px 0 50px; }
.foot-claim .dot { color: var(--accent); text-shadow: 0 0 18px rgba(52, 211, 153, .6); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-col h5 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.footer-col a { color: #7d8098; text-decoration: none; display: block; padding: 3px 0; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent-soft); }
.foot-legal { border-top: 1px solid var(--navy-edge); padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-legal a { color: #7d8098; text-decoration: none; }
.foot-legal a:hover { color: var(--accent-soft); }
.foot-badges { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-badges span { display: flex; align-items: center; gap: 8px; }
.foot-badges .sw { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(52, 211, 153, .6); }

@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Komponenten-Bibliothek (components.html)
   ============================================================ */

/* ---------- Demo-Hilfen ---------- */

.demo-block { padding: 34px 0; border-top: 1px solid var(--line); }
.demo-block:first-of-type { border-top: 0; }
.demo-title { font-family: 'Sora'; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); margin-bottom: 18px; }
.demo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.demo-col { display: grid; gap: 14px; max-width: none; }

/* ---------- Typografie ---------- */

.display { font-family: 'Sora'; font-weight: 800; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; color: var(--navy); }
h1.on-light { color: var(--navy); }
p.lead { font-size: 18px; color: var(--navy-soft); }
p.small, .small { font-size: 13.5px; color: var(--gray); }
code, kbd { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .9em; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px 7px; }
pre.code { background: var(--navy-deep); color: #dfe5f2; border: 1px solid var(--navy-edge); border-radius: var(--r-md); padding: 20px 22px; font-size: 13.5px; line-height: 1.6; overflow-x: auto; }
pre.code .c { color: #7d8098; }
pre.code .k { color: var(--accent-soft); }

a.link { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(52, 211, 153, .35); transition: border-color .2s var(--ease); }
a.link:hover { border-color: var(--accent); }

ul.list, ol.list { list-style: none; }
ul.list li, ol.list li { padding: 6px 0 6px 26px; position: relative; }
ul.list li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(52, 211, 153, .55); }
ol.list { counter-reset: li; }
ol.list li::before { counter-increment: li; content: counter(li); position: absolute; left: 0; top: 9px; font-family: 'Sora'; font-weight: 700; font-size: 13px; color: var(--accent-ink); }

/* ---------- Buttons: Groessen & Zustaende ---------- */

.btn-sm { min-height: 38px; padding: 8px 18px; font-size: 13.5px; }
.btn-lg { min-height: 56px; padding: 16px 34px; font-size: 16.5px; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-navy { background: var(--surface-2); color: #fff; border: 1px solid var(--navy-edge); }
.btn-navy:hover { background: #23232f; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); box-shadow: 0 0 14px rgba(52, 211, 153, .2); }

/* ---------- Badges / Tags ---------- */

.tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; }
.tag .sw { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-orange { background: var(--peach); color: var(--accent-ink); }
.tag-green { background: rgba(52, 211, 153, .14); color: var(--green-ink); }
.tag-navy { background: var(--surface-2); color: #fff; border: 1px solid var(--navy-edge); }
.tag-outline { background: transparent; color: var(--navy-soft); border: 1px solid var(--line); }

/* ---------- Formulare ---------- */

.field { display: grid; gap: 7px; }
.label { font-size: 14px; font-weight: 600; color: var(--navy); }
.label .req { color: var(--accent); }
.hint { font-size: 12.5px; color: var(--gray); }
.error-text { font-size: 12.5px; color: #f87171; font-weight: 600; }

.input, .textarea, .select {
    width: 100%; min-height: 48px; padding: 12px 16px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--surface); color: var(--navy); font: inherit; font-size: 15px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #5b5f75; }
.input:focus, .textarea:focus, .select:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .18), 0 0 16px rgba(52, 211, 153, .15);
}
.input.error, .textarea.error { border-color: #f87171; }
.input[disabled] { background: var(--cream); color: var(--gray); cursor: not-allowed; }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9db0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.select option { background: var(--surface); color: var(--navy); }

/* Checkbox & Radio */
.check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: 14.5px; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.check .box { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--navy-edge); border-radius: 5px; background: var(--surface); display: grid; place-items: center; transition: background .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease); }
.check .box::after { content: ''; width: 10px; height: 6px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg) translateY(-1px); opacity: 0; }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(52, 211, 153, .45); }
.check input:checked + .box::after { opacity: 1; }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }

.radio { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: 14.5px; }
.radio input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.radio .dotmark { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--navy-edge); border-radius: 50%; background: var(--surface); display: grid; place-items: center; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.radio .dotmark::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: 0; }
.radio input:checked + .dotmark { border-color: var(--accent); box-shadow: 0 0 12px rgba(52, 211, 153, .45); }
.radio input:checked + .dotmark::after { opacity: 1; }

/* Toggle (Switch) */
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; }
.switch .track { position: relative; flex: none; width: 44px; height: 26px; background: var(--navy-edge); border-radius: var(--r-pill); transition: background .18s var(--ease), box-shadow .18s var(--ease); }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); transition: transform .18s var(--ease); }
.switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch input:checked ~ .track { background: var(--accent); box-shadow: 0 0 14px rgba(52, 211, 153, .5); }
.switch input:checked ~ .track .knob { transform: translateX(18px); }

fieldset.group { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: grid; gap: 12px; }
fieldset.group legend { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); padding: 0 8px; }

/* ---------- Alerts / Hinweise ---------- */

.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-md); padding: 16px 18px; font-size: 14.5px; border: 1px solid var(--line); background: var(--surface); }
.alert .sw { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.alert strong { display: block; margin-bottom: 2px; color: var(--navy); }
.alert-info { background: var(--cream); }
.alert-info .sw { background: var(--navy-edge); }
.alert-success { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .3); }
.alert-success .sw { background: var(--green); }
.alert-warning { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .3); }
.alert-warning .sw { background: #fbbf24; }
.alert-error { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .3); }
.alert-error .sw { background: #f87171; }

/* ---------- Loading ---------- */

.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.sm { width: 18px; height: 18px; border-width: 2.5px; }
.spinner.lg { width: 40px; height: 40px; border-width: 4px; }
.spinner.on-dark { border-color: var(--navy-edge); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.dots { display: inline-flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(52, 211, 153, .6); animation: bounce 1.2s infinite var(--ease); }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-7px); } }

.skeleton { border-radius: var(--r-sm); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 40%, var(--surface) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.progress { height: 8px; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: var(--r-pill); box-shadow: 0 0 10px rgba(52, 211, 153, .6); }

/* ---------- Karten ---------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card.dark { background: var(--navy-deep); border-color: var(--navy-edge); color: #9a9db0; }
.card.dark h3, .card.dark h4 { color: #fff; }

/* ---------- Tabelle ---------- */

.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { font-family: 'Sora'; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--line); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.table tr:hover td { background: var(--cream); }

/* ---------- Accordion ---------- */

.acc { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.acc details { border-top: 1px solid var(--line); }
.acc details:first-child { border-top: 0; }
.acc summary { cursor: pointer; list-style: none; padding: 17px 20px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; transition: background .15s var(--ease); color: var(--navy); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-family: 'Sora'; font-size: 20px; color: var(--accent-ink); transition: transform .2s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details[open] summary { background: var(--cream); }
.acc .acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc details[open] .acc-body { grid-template-rows: 1fr; }
.acc .acc-body-inner { overflow: hidden; padding: 0 20px 18px; font-size: 14.5px; color: var(--gray); }

/* ---------- Breadcrumb / Pagination ---------- */

.crumb { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--gray); list-style: none; }
.crumb a { color: var(--navy-soft); text-decoration: none; font-weight: 600; }
.crumb a:hover { color: var(--accent); }
.crumb li + li::before { content: '/'; color: var(--navy-edge); }

.pagination { display: flex; gap: 8px; }
.pagination a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--navy-soft); text-decoration: none; transition: all .15s var(--ease); }
.pagination a:hover { border-color: var(--accent); }
.pagination a.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(52, 211, 153, .4); }

/* ---------- Avatar ---------- */

.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--navy-edge); color: #fff; display: inline-grid; place-items: center; font-family: 'Sora'; font-weight: 700; font-size: 15px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 60px; height: 60px; font-size: 20px; }
.avatar.orange { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 16px rgba(52, 211, 153, .5); }

/* ---------- Modal ---------- */

.modal-backdrop { position: fixed; inset: 0; background: rgba(4, 6, 12, .7); backdrop-filter: blur(3px); display: none; place-items: center; z-index: 60; padding: 20px; }
.modal-backdrop.open { display: grid; }
.modal-box { background: var(--surface); border: 1px solid var(--navy-edge); border-radius: var(--r-lg); padding: 32px; max-width: 440px; width: 100%; box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(52, 211, 153, .08); }
.modal-box h3 { margin-bottom: 10px; color: var(--navy); }
.modal-box p { font-size: 14.5px; color: var(--gray); margin-bottom: 22px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ---------- Tooltip ---------- */

[data-tip] { position: relative; }
[data-tip]::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(4px); background: var(--surface-2); border: 1px solid var(--navy-edge); color: #fff;
    font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-sm);
    white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
}
[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Karten-Varianten ---------- */

.card-accent { border-top: 3px solid var(--accent); }
.card-glow { border-color: var(--accent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- Weitere Formularelemente ---------- */

.input-sm { min-height: 38px; padding: 8px 14px; font-size: 13.5px; }
.input-lg { min-height: 56px; padding: 16px 20px; font-size: 16.5px; }

.input-icon { position: relative; display: block; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--gray); pointer-events: none; }
.input-icon .input { padding-left: 42px; }

.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: flex; align-items: center; padding: 0 14px; background: var(--cream); border: 1px solid var(--line); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); font-size: 14px; color: var(--gray); font-weight: 600; }
.input-group .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.range { width: 100%; appearance: none; height: 8px; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--line); cursor: pointer; }
.range::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line), 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent); cursor: pointer; }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.range:focus-visible { outline: none; border-color: var(--accent); }

.file { font-size: 14px; color: var(--gray); }
.file::file-selector-button { margin-right: 14px; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--cream); color: var(--navy); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .2s var(--ease); }
.file::file-selector-button:hover { border-color: var(--accent); }

/* ---------- Loader 5: Equalizer ---------- */

.eq { display: inline-flex; align-items: flex-end; gap: 4px; height: 26px; }
.eq i { width: 5px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 50%, transparent); animation: eq 1s infinite var(--ease); }
.eq i:nth-child(1) { animation-delay: 0s; }
.eq i:nth-child(2) { animation-delay: .12s; }
.eq i:nth-child(3) { animation-delay: .24s; }
.eq i:nth-child(4) { animation-delay: .36s; }
.eq i:nth-child(5) { animation-delay: .48s; }
@keyframes eq { 0%, 100% { height: 22%; } 50% { height: 100%; } }

/* Accordion: smooth close (via snack.js) */
.acc details.is-closing .acc-body { grid-template-rows: 0fr; }

/* ---------- Scroll-Progress ---------- */

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 70; box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent); }

/* ---------- Motion: Counter ---------- */

.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.count-card { text-align: center; padding: 26px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.count { font-family: 'Sora'; font-weight: 800; font-size: 32px; color: var(--accent); line-height: 1.1; }
.count-card .small { margin-top: 4px; }

/* ---------- Motion: Marquee ---------- */

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 24s linear infinite; }
.marquee span { font-family: 'Sora'; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chat-Widget ---------- */

.chat-fab { position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; display: grid; place-items: center; z-index: 55; box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 45%, transparent); transition: transform .2s var(--ease); }
.chat-fab:hover { transform: scale(1.07); }
.chat-fab svg { width: 24px; height: 24px; }
.chat-badge { position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid var(--white); }

.chat-panel { position: fixed; right: 24px; bottom: 92px; width: min(360px, calc(100vw - 32px)); height: 460px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; z-index: 55; transform-origin: bottom right; transform: translateY(26px) scale(.9); opacity: 0; pointer-events: none; transition: transform .32s var(--ease), opacity .32s var(--ease); box-shadow: 0 24px 64px rgba(0, 0, 0, .28); }
.chat-panel.open { transform: none; opacity: 1; pointer-events: auto; }

.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy-deep); flex: none; }
.chat-name { font-weight: 700; font-size: 15px; color: #fff; }
.chat-status { font-size: 12px; color: #9aa4be; display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.chat-close { margin-left: auto; background: none; border: 0; color: #9aa4be; font-size: 24px; line-height: 1; cursor: pointer; transition: color .2s; }
.chat-close:hover { color: #fff; }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.msg { max-width: 82%; padding: 10px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 1.45; animation: msg-in .25s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg.in { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--navy); }
.msg.out { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.msg.typing { padding: 13px 16px; }

.chat-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); flex: none; }
.chat-input { min-height: 42px; padding: 10px 14px; font-size: 14px; }
.chat-send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; display: grid; place-items: center; transition: transform .15s var(--ease); }
.chat-send:hover { transform: scale(1.1); }
.chat-send svg { width: 16px; height: 16px; }

/* ---------- Chatfenster (Komponente) ---------- */

.chatbox { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0, 0, 0, .14); }
.chatbox-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy-deep); flex: none; }
.chatbox-actions { margin-left: auto; display: flex; gap: 4px; }
.icon-btn { width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; background: transparent; color: #9aa4be; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }

.chatbox-body { height: 320px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.msg-time { display: block; font-size: 11px; opacity: .6; margin-top: 4px; text-align: right; }
.msg.file { display: flex; align-items: center; gap: 10px; }
.msg.file svg { width: 18px; height: 18px; flex: none; }
.msg.voice { display: flex; align-items: center; gap: 10px; }
.msg.voice .eq { height: 16px; gap: 2px; }
.msg.voice .eq i { width: 3px; background: currentColor; box-shadow: none; animation-duration: .9s; }

.chatbox-chips { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--white); overflow-x: auto; flex: none; }
.chip { flex: none; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--accent); background: transparent; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.chip:hover { background: var(--accent); color: var(--on-accent); }

.emoji-row { display: none; gap: 2px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--white); flex: none; }
.emoji-row.open { display: flex; }
.emoji-row button { font-size: 20px; line-height: 1; padding: 6px 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; transition: background .15s, transform .15s; }
.emoji-row button:hover { background: var(--cream); transform: scale(1.15); }

.chatbox-foot { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--white); flex: none; }
.chatbox-foot .icon-btn { color: var(--gray); }
.chatbox-foot .icon-btn:hover { background: var(--cream); color: var(--accent); }
.chatbox-foot .chat-input { flex: 1; }
.chatbox.rec .chatbox-foot { display: none; }

.rec-bar { display: none; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; color: var(--navy); flex: none; }
.chatbox.rec .rec-bar { display: flex; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; flex: none; }
.rec-time { color: var(--gray); font-variant-numeric: tabular-nums; }
.rec-cancel { margin-left: auto; border: 0; background: none; color: var(--gray); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rec-cancel:hover { color: var(--navy); }
.rec-send { border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font: inherit; font-size: 13px; font-weight: 700; padding: 8px 16px; cursor: pointer; }

/* ---------- Loader: Darvis denkt ---------- */

.think { display: inline-flex; align-items: center; gap: 14px; padding: 13px 22px; border-radius: var(--r-pill); background: var(--navy-deep); color: #fff; box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 25%, transparent); }
.think-orb { position: relative; width: 26px; height: 26px; flex: none; }
.think-orb::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: think-core 1.6s var(--ease) infinite; }
.think-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); animation: think-spin 2.4s linear infinite; }
.think-orb i::before { content: ''; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 60%, #fff); box-shadow: 0 0 8px var(--accent); }
.think-orb i:last-child { inset: 4px; animation-duration: 3.8s; animation-direction: reverse; }
.think-text { font-family: 'Sora'; font-weight: 600; font-size: 14.5px; background: linear-gradient(90deg, #fff 20%, color-mix(in srgb, var(--accent) 60%, #fff) 50%, #fff 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: think-shimmer 2s linear infinite; white-space: nowrap; }
.think-ellipsis::after { content: ''; animation: think-dots 1.4s steps(1) infinite; }
@keyframes think-spin { to { transform: rotate(360deg); } }
@keyframes think-core { 0%, 100% { transform: scale(1); } 50% { transform: scale(.65); } }
@keyframes think-shimmer { to { background-position: -200% 0; } }
@keyframes think-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
