/* ======================================================
   NEO ORBIS · CD 2027 „RUNTIME" · Website-Adapter
   Dunkles Thema (#0A0A12), Signalgelb (#FFC020), Mona Sans.
   Werte: css/neoorbis-tokens.css (wird VOR dieser Datei geladen).
   Regel 1: Gelb nur als Signal. Regel 2: ein Winkel — var(--slash-angle).
   Stand: 12.11.2026 · ersetzt das CD 2026 „Studio".
   ====================================================== */

/* Abwärtskompatible Aliasse für Altklassen (--ink-2/-3, --bg-alt …) */
:root, [data-theme="dark"] {
    --bg-alt: var(--surface);
    --ink-2: var(--ink-muted);
    --ink-3: var(--ink-subtle);
    --accent-soft-bg: var(--accent-soft);
    --border-soft: var(--border);
    --carbon: var(--surface-sunken);
    --silver: var(--surface);
    --silver-deep: var(--surface-raised);
    --on-dark: var(--ink);
    --on-dark-2: var(--ink-muted);
    --red-gradient: var(--accent); /* Kein Verlauf mehr: eine Fläche, ein Gelb */
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
}

::selection { background: var(--accent); color: var(--on-accent); }

/* Überschriften: variable Breite der Mona Sans */
h1, h2 { letter-spacing: -0.02em; }
h1 { font-variation-settings: "wdth" 120; }
h2 { font-variation-settings: "wdth" 112; }
h1, h2, h3 { overflow-wrap: break-word; text-wrap: balance; }
@media (max-width: 1023px) { h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; } }
#home h1 { -webkit-hyphens: manual; hyphens: manual; }
@media (max-width: 639px) { #home h1 { font-size: clamp(36px, 11.2vw, 44px); } }

/* Fokus sichtbar, CD-konform */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

/* ── Utility-Übersetzung (Tailwind-Klassen aus dem Studio-Markup) ── */
.bg-white { background-color: var(--surface) !important; }
.bg-white\/95 { background-color: color-mix(in srgb, var(--bg) 90%, transparent) !important; }
.border-black\/5 { border-color: var(--border) !important; }
.bg-black\/\[0\.015\] { background-color: rgba(255, 255, 255, 0.02) !important; }
.hover\:bg-black\/\[0\.015\]:hover { background-color: rgba(255, 255, 255, 0.03) !important; }
.text-emerald-600, .text-emerald-800 { color: var(--success) !important; }
.bg-emerald-50 { background-color: rgba(74, 219, 169, 0.08) !important; }
.border-emerald-200 { border-color: rgba(74, 219, 169, 0.35) !important; }
.bg-emerald-500 { background-color: var(--success) !important; }
.border-red-200 { border-color: rgba(255, 107, 107, 0.4) !important; }
.from-red-100, .via-neutral-100, .to-red-50 { --tw-gradient-from: transparent; --tw-gradient-to: transparent; --tw-gradient-stops: transparent, transparent; }

/* ── Akzent statt Verlauf: Headline-Hervorhebung ── */
.gradient-text {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
    color: var(--accent-text);
}

/* ── Kicker / Eyebrow: Monospace-Pfad mit Slash ── */
.eyebrow, .kicker, .tile-label, .box-titel {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--ink-muted);
}
.eyebrow::before, .kicker::before, .tile-label::before, .box-titel::before {
    content: "/";
    content: "/" / "";
    color: var(--accent-text);
    margin-right: 1px;
}
.kicker-dark { color: var(--ink-muted); }

/* 18°-Kante als Slash */
.kante {
    display: block;
    width: 56px;
    height: 8px;
    background: var(--accent);
    transform: skewX(calc(var(--slash-angle) * -1));
    transform-origin: bottom left;
}

/* ── Navigation ── */
.nav-blur {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border);
}
#site-header.scrolled { box-shadow: 0 1px 24px rgba(0, 0, 0, 0.45); }
.nav-link {
    color: var(--ink-muted);
    transition: color var(--duration-fast) var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.wordmark { font-weight: 800; letter-spacing: -0.02em; color: var(--ink); display: inline-flex; align-items: center; }
.wordmark img, .wordmark svg { display: block; height: 20px; width: auto; }
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 0.3rem; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.nav-dd-btn svg { transition: transform var(--duration-fast) var(--ease-out); }
.nav-dd:hover .nav-dd-btn svg, .nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-panel {
    position: absolute;
    left: -1rem;
    top: calc(100% + 14px);
    width: 22rem;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--raise);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    white-space: normal;
}
.nav-dd-panel::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel,
.nav-dd.open .nav-dd-panel { opacity: 1; visibility: visible; transform: none; }
.nav-dd-panel a { display: block; padding: 0.65rem 0.85rem; border-radius: var(--radius-md); }
.nav-dd-panel a:hover, .nav-dd-panel a:focus-visible { background: rgba(255, 255, 255, 0.05); outline: none; }
.nav-dd-title { display: block; font-weight: 650; color: var(--ink); }
.nav-dd-text { display: block; font-size: 0.8125rem; color: var(--ink-muted); margin-top: 0.1rem; }
.mobile-link { display: block; color: var(--ink); font-size: 1rem; padding: 0.55rem 0; }

#mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: color-mix(in srgb, var(--bg) 96%, transparent); }
#mobile-menu.open { max-height: 760px; }

/* ── Hero (Bühne mit Lichtspuren) ── */
.hero-studio { background: var(--bg); position: relative; }
.hero-streaks { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero-veil-dark {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(10,10,18,.92) 0%, rgba(10,10,18,.66) 40%, rgba(10,10,18,.12) 72%, rgba(10,10,18,0) 100%),
                linear-gradient(0deg, #0A0A12 0%, rgba(10,10,18,0) 30%);
}
.hero-grain {
    position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-edge { display: none; } /* Studio-Keil entfällt im Runtime-Look */
.hero-code {
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.4;
    color: var(--ink-muted);
    min-height: 1.4em;
}
.hero-code .k { color: var(--accent-text); }
.hero-portrait { display: block; position: relative; z-index: 2; }
.hero-portrait img {
    display: block;
    width: 100%;
    max-width: 540px;
    height: auto;
    margin-left: auto;
    filter: contrast(1.05) saturate(.92) drop-shadow(-5px 0 9px rgba(255, 192, 32, .4)) drop-shadow(-26px 0 44px rgba(255, 192, 32, .12));
    -webkit-mask-image: linear-gradient(#000 72%, transparent 98%), linear-gradient(90deg, transparent 2%, #000 16%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(#000 72%, transparent 98%), linear-gradient(90deg, transparent 2%, #000 16%, #000 86%, transparent 100%);
    mask-composite: intersect;
}
@media (max-width: 1023px) {
    .hero-portrait img { max-width: 330px; margin: 0 auto; }
}
.proof-line { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; font: 500 13px/1.5 var(--font-mono); color: var(--ink-muted); }
.proof-line li { display: inline-flex; align-items: center; gap: 0.6rem; }
.proof-line li::before {
    content: "";
    width: 4px; height: 0.85em;
    background: var(--accent);
    transform: skewX(calc(var(--slash-angle) * -1));
    flex-shrink: 0;
}
.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    font: 500 12px/1.5 var(--font-mono);
    color: var(--ink-muted);
    transition: border-color var(--duration-fast) var(--ease-out);
}
.rating-chip:hover { border-color: var(--border-strong); }
.rating-chip .stars { color: var(--accent-text); letter-spacing: 0.08em; }
.rating-chip strong { color: var(--ink); font-weight: 650; }

/* ── Sektionen: Rhythmus bg / surface / sunken ── */
.bg-studio { background-color: var(--bg); }
/* .bg-white → var(--surface), siehe Utility-Übersetzung */
.section-dark { background: var(--surface-sunken); color: var(--ink); position: relative; overflow: hidden; }
.section-dark .muted { color: var(--ink-muted); }
.dark-edge::after {
    content: "";
    position: absolute;
    bottom: 0; top: 0;
    right: 48px;
    width: 10px;
    background: var(--accent);
    opacity: .9;
    transform: skewX(calc(var(--slash-angle) * -1));
    transform-origin: bottom left;
    pointer-events: none;
}
@media (max-width: 767px) { .dark-edge::after { right: 20px; width: 7px; } }
.section-dark .rating-chip { background: rgba(255, 255, 255, 0.04); }
.fact-num { font-size: 2.6rem; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "wdth" 125; }
.card-dark {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    transition: border-color var(--duration-base) var(--ease-out);
}
.card-dark:hover { border-color: var(--border-strong); }
.section-dark .link-arrow { color: var(--ink); }

/* ── Scroll Reveal (bestehendes Muster) ── */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }

/* ── Karten: Fläche, Haarlinie, Lichtstreifen beim Hover ── */
.card, .card-alt, .card-featured {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
    transition: border-color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);
}
.card::before, .card-alt::before, .card-featured::before {
    content: "";
    position: absolute; left: 0; top: 0;
    width: 45%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-110%);
    opacity: 0;
    pointer-events: none;
}
.card:hover, .card-alt:hover, .card-featured:hover,
.card-link:hover .card, .card-link:hover.card {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: none;
    background: var(--surface);
}
.card:hover::before, .card-alt:hover::before, .card-featured:hover::before {
    opacity: 1;
    animation: neo-sweep var(--duration-cinema) var(--ease-out) both;
}
@keyframes neo-sweep { from { transform: translateX(-110%); } to { transform: translateX(240%); } }
.card-alt { background: var(--surface-raised); }
.card-featured { background: var(--surface-raised); border-top: 1px solid var(--border); }
.card-featured::after {
    content: "";
    position: absolute; left: 0; top: -1px;
    width: 56px; height: 2px;
    background: var(--accent);
}
.icon-wrap { transition: transform var(--duration-base) var(--ease-out); }
.card:hover .icon-wrap, .card-alt:hover .icon-wrap, .card-featured:hover .icon-wrap { transform: none; }
.icon-tile { background: var(--surface-raised); border: 1px solid var(--border); box-shadow: none; }

/* ── Buttons: Gelb mit der einen schrägen Kante rechts ── */
.btn-primary {
    --h: 48px;
    position: relative;
    isolation: isolate;
    background: none;
    color: var(--on-accent) !important;
    border-radius: var(--radius-md);
    font-weight: 650;
    transition: color var(--duration-fast) var(--ease-out);
}
.btn-primary::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: var(--accent);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    clip-path: polygon(0 0, 100% 0, calc(100% - 0.84em) 100%, 0 100%);
    transition: background var(--duration-fast) var(--ease-out);
}
.btn-primary::after {
    content: "";
    position: absolute; inset: 8px 14px; z-index: -2;
    background: var(--accent);
    filter: blur(16px);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
}
.btn-primary:hover { transform: none; box-shadow: none; }
.btn-primary:hover::before { background: var(--accent-hover); }
.btn-primary:hover::after { opacity: .55; }
.btn-primary:active::before { background: var(--accent-press); }
.btn-primary { padding-right: calc(1.35em + 0.6em); }

.btn-secondary {
    background: none;
    color: var(--ink);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-weight: 650;
    transition: border-color var(--duration-fast) var(--ease-out);
}
.btn-secondary:hover { background: none; border-color: var(--ink); transform: none; box-shadow: none; }

.link-arrow {
    color: var(--ink);
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.link-arrow svg { color: var(--accent-text); transition: transform var(--duration-base) var(--ease-out); }
.link-arrow:hover { text-decoration: none; color: var(--accent-text); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ── Showcase / Medien ── */
.showcase-tile { background: var(--surface); border: 1px solid var(--border); }
.tile-media { aspect-ratio: 16 / 9; background: var(--surface-sunken); overflow: hidden; border-bottom: 1px solid var(--border); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.process-line {
    position: absolute;
    left: 24px; top: 60px; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--border) 55%, transparent);
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--font-mono);
    font-size: 0.8rem; font-weight: 650;
}
.signature { font-weight: 650; color: var(--ink); line-height: 1.3; }
.signature span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--ink-muted); }

/* ── FAQ ── */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
    transition: border-color var(--duration-base) var(--ease-out);
}
.faq-item:hover, .faq-item[open] { border-color: var(--border-strong); box-shadow: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { list-style: none; }

/* ── Tags: Monospace, Versalien, eckig ── */
.tag, .tag-alt {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    background: none;
    border: 1px solid var(--border-strong);
    font: 500 11px/1.2 var(--font-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.tag-alt { border-color: transparent; background: var(--accent-soft); color: var(--accent-text); }

/* ── Formular ── */
.form-label {
    display: block;
    font: 500 12px/1.4 var(--font-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: .45rem;
}
.form-input {
    width: 100%;
    background: var(--surface-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: .75rem .9rem;
    font-size: 16px;
    color: var(--ink);
    font-family: inherit;
    transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.form-input:hover { border-color: var(--ink-muted); }
.form-input:focus { outline: none; border-color: var(--focus); box-shadow: var(--focus-ring); }
.form-input::placeholder { color: var(--ink-subtle); }
textarea.form-input { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

:target { scroll-margin-top: 80px; }
#cc-app, #cc-result { scroll-margin-top: 88px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-raised); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ── Footer ── */
.site-footer { background: var(--surface-sunken); border-top: 1px solid var(--border); }
.footer-head {
    font: 500 12px/1.4 var(--font-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-subtle);
    margin-bottom: 0.9rem;
}
.footer-links a {
    display: block;
    font: 500 13px/1.6 var(--font-mono);
    color: var(--ink-muted);
    padding: 0.22rem 0;
    transition: color var(--duration-fast) var(--ease-out);
}
.footer-links a::before { content: "/"; content: "/" / ""; color: var(--accent-text); }
.footer-links a:hover { color: var(--ink); }

/* ── Claude-Check ── */
.check-option {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}
.check-option:hover { border-color: var(--ink-muted); }
.check-option input { margin-top: 0.2rem; accent-color: var(--accent); }
.check-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-progress { height: 6px; border-radius: var(--radius-sm); background: var(--surface-raised); overflow: hidden; }
.check-progress span { display: block; height: 100%; background: var(--accent); transition: width 0.25s ease; }
.tip-list { display: grid; gap: 0.3rem; font-size: 0.9375rem; color: var(--ink-muted); }
.tip-list li { display: flex; gap: 0.55rem; align-items: baseline; }
.tip-list li::before { content: ""; width: 4px; height: 0.8em; background: var(--accent); transform: skewX(calc(var(--slash-angle) * -1)); flex-shrink: 0; position: relative; top: -1px; }

/* ── Praxis-Beiträge ── */
.is-hidden { display: none !important; }
.card-link { position: relative; }
.card-link .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link h3 a { transition: color var(--duration-fast) var(--ease-out); }
.card-link:hover h3 a { color: var(--accent-text); }
.card-link h3 a:focus-visible { outline: none; box-shadow: none; }
.card-link:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
    font: 500 12px/1.2 var(--font-mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: none;
    color: var(--ink-muted);
    transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}
.filter-chip:hover { color: var(--ink); border-color: var(--ink-muted); }
.filter-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.article-meta { font: 500 13px/1.6 var(--font-mono); color: var(--ink-subtle); }
.prose-no { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-muted); }
.prose-no > * + * { margin-top: 1.1rem; }
.prose-no h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-top: 2.6rem; }
.prose-no h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 650; color: var(--ink); margin-top: 2rem; }
.prose-no ul, .prose-no ol { padding-left: 1.3rem; }
.prose-no ul { list-style: disc; }
.prose-no ol { list-style: decimal; }
.prose-no li + li { margin-top: 0.45rem; }
.prose-no li::marker { color: var(--accent-text); font-weight: 650; }
.prose-no strong { color: var(--ink); font-weight: 650; }
.prose-no a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose-no a:hover { color: var(--accent-text); }
.box-kurz { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; }
.box-kurz ul { margin-top: 0; }
.box-muster {
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    background: var(--surface-sunken);
    padding: 1.2rem 1.4rem;
    font-size: 1rem;
    line-height: 1.65;
}
.box-muster p + p { margin-top: 0.5rem; }
.author-box { display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--border); padding-top: 1.75rem; }
.author-box img { width: 64px; height: 64px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; }
@media (max-width: 640px) {
    .prose-no { font-size: 1rem; }
    .prose-no h2 { font-size: 1.3rem; margin-top: 2.2rem; }
    .box-kurz, .box-muster { padding: 1.1rem 1.15rem; }
}

/* ======================================== */
/* CHATBOT (Runtime, dunkel)                 */
/* ======================================== */
#chatbot-toggle {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 60;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: var(--glow), 0 2px 6px rgba(0, 0, 0, 0.4);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background-color var(--duration-fast) var(--ease-out);
    border: none;
}
#chatbot-toggle:hover { transform: scale(1.06); background: var(--accent-hover); box-shadow: var(--glow-strong), 0 2px 6px rgba(0,0,0,.4); }
#chatbot-toggle svg { color: var(--on-accent) !important; }
#chatbot-toggle .notification-dot {
    position: absolute; top: 4px; right: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--bg);
}
#chatbot-toggle.open .notification-dot { display: none; }

#chatbot-window {
    position: fixed;
    bottom: 100px; right: 24px;
    z-index: 60;
    width: calc(100vw - 48px);
    max-width: 400px;
    height: 600px;
    max-height: calc(100vh - 140px);
    background: color-mix(in srgb, var(--surface) 97%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--raise);
    display: flex; flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
#chatbot-window.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chatbot-header {
    padding: 18px 20px;
    background: var(--surface-raised);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
.chatbot-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative;
}
.chatbot-avatar svg { color: var(--on-accent) !important; }
.chatbot-avatar::after {
    content: '';
    position: absolute; bottom: 0; right: 0;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--surface-raised);
}
.chatbot-messages {
    flex: 1; overflow-y: auto;
    padding: 20px;
    display: flex; flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
.chat-msg { display: flex; flex-direction: column; max-width: 85%; animation: msg-in 0.4s var(--ease-out); }
@keyframes msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-msg .bubble {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.5;
}
.chat-msg.bot .bubble {
    background: var(--surface-raised);
    color: var(--ink);
    border: 1px solid var(--border);
}
.chat-msg.user .bubble { background: var(--accent); color: var(--on-accent); }
.chat-msg .bubble a { color: var(--accent-text); text-decoration: underline; }
.chat-msg.user .bubble a { color: var(--on-accent); }
.chat-typing {
    display: inline-flex; gap: 4px;
    padding: 12px 16px;
    background: var(--surface-raised);
    border-radius: var(--radius-md);
    align-self: flex-start;
    animation: msg-in 0.3s ease;
}
.chat-typing span { width: 6px; height: 6px; background: var(--ink-subtle); border-radius: 50%; animation: typing-bounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-self: flex-start; max-width: 100%; }
.quick-reply-btn {
    background: var(--accent-soft);
    border: 1px solid transparent;
    color: var(--accent-text);
    padding: 7px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-out);
    font-family: inherit;
}
.quick-reply-btn:hover { border-color: var(--accent-text); }
.chatbot-input-area { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface); }
.chatbot-input-wrap {
    display: flex; gap: 8px; align-items: center;
    background: var(--surface-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 4px 4px 4px 14px;
    transition: border-color var(--duration-fast) var(--ease-out);
}
.chatbot-input-wrap:focus-within { border-color: var(--focus); }
#chatbot-input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--ink);
    font-size: 14px; padding: 8px 0; font-family: inherit;
}
#chatbot-input::placeholder { color: var(--ink-subtle); }
#chatbot-send {
    background: var(--accent);
    border: none;
    width: 34px; height: 34px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--on-accent);
    flex-shrink: 0;
    transition: background-color var(--duration-fast) var(--ease-out);
}
#chatbot-send svg { color: var(--on-accent) !important; }
#chatbot-send:hover { background: var(--accent-hover); transform: none; }
#chatbot-send:disabled { opacity: 0.5; cursor: not-allowed; }
.chatbot-footer { display: flex; gap: 8px; padding: 0 16px 12px 16px; background: var(--surface); }
.chatbot-cta {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    font-size: 12px; font-weight: 650;
    transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
    text-decoration: none;
    border: 1px solid var(--border-strong);
    color: var(--ink-muted);
    background: none;
}
.chatbot-cta:hover { border-color: var(--accent-text); color: var(--accent-text); background: none; }
@media (max-width: 480px) {
    #chatbot-window { right: 12px; left: 12px; width: auto; bottom: 90px; height: calc(100vh - 120px); }
    #chatbot-toggle { bottom: 16px; right: 16px; }
}

/* ── Reduzierte Bewegung ── */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .card, .card-alt, .card-featured, .btn-primary, .btn-secondary, .nav-dd-panel { transition: none; }
    .card::before, .card-alt::before, .card-featured::before { animation: none !important; }
}
