/* =====================================================================
   UNTERNEHMENS-WEBSITE · Live Style Studio
   Base design system mit CSS Custom Properties
   Overridden durch theme-*.css Files pro [data-theme="..."]
   ===================================================================== */

/* ===================== TOKENS ===================== */
:root {
    /* Colors — overridden by theme */
    --bg: #FAF6F1;
    --bg-alt: #F0EADF;
    --bg-card: #FFFFFF;
    --fg: #4A4038;
    --fg-muted: #7A6F63;
    --accent: #8BAAB0;
    --accent-dark: #5A9BA4;
    --accent-contrast: #FFFFFF;
    --accent-glow: rgba(139, 170, 176, 0.25);
    --border: rgba(74, 64, 56, 0.1);

    /* Typography */
    --font-head: "Cardo", Georgia, serif;
    --font-body: "Outfit", system-ui, -apple-system, sans-serif;
    --font-weight-head: 700;
    --font-weight-body: 400;

    /* Shape */
    --radius: 24px;
    --radius-pebble: 42% 58% 55% 45% / 50% 45% 55% 50%;
    --radius-sm: 12px;
    --stroke: 0;

    /* Spacing */
    --density: 1;
    --section-pad: clamp(3rem, 8vw, 6rem);
    --container: 1200px;

    /* Effects */
    --photo-filter: none;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.2s cubic-bezier(0.22, 1, 0.36, 1);

    /* Buttons */
    --btn-shape: 24px;
    --btn-style: filled;

    /* Focus-Ring — jedes Theme kann überschreiben via [data-theme] { --focus-ring: ... } */
    --focus-ring: var(--accent-dark, var(--accent));
    --focus-ring-offset: 3px;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth; font-size: 16px;
    scroll-padding-top: calc(var(--header-h, 64px) + 16px + env(safe-area-inset-top));
    background: var(--bg); color: var(--fg);
    transition: background var(--transition), color var(--transition);
}
body {
    font-family: var(--font-body);
    font-weight: var(--font-weight-body);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh; /* iOS: vh ist die GROSSE Viewport-Hoehe (Toolbar weg) -> dvh folgt der sichtbaren */
    transition: background var(--transition), color var(--transition);
}
img {
    max-width: 100%; display: block;
    filter: var(--photo-filter);
    transition: filter var(--transition);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: var(--font-weight-head);
    line-height: 1.15;
    letter-spacing: -0.01em;
    transition: font-family var(--transition);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; max-width: 65ch; }

/* ===================== UTILITY ===================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.narrow { max-width: 720px; margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Skip link */
.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--accent); color: var(--accent-contrast);
    padding: 0.85rem 1.2rem; min-height: 44px;
    display: inline-flex; align-items: center;
    z-index: 9999; font-weight: 600;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

/* ===================== FOCUS-VISIBLE (Keyboard-Navigation) ===================== */
/* Alle interaktiven Elemente kriegen einen sichtbaren Ring bei Keyboard-Fokus.
   Maus-Klicks lösen :focus-visible NICHT aus — nur Tab/Enter/Space/Arrows. */
:focus { outline: none; }  /* reset browser default, wir malen selbst */
:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
    border-radius: 3px;
}
/* Elemente mit eigenem runden Radius brauchen matching focus-ring-radius */
.btn:focus-visible,
.style-nav:focus-visible,
.style-tile:focus-visible,
.floating-toggle:focus-visible,
.kontakt-btn:focus-visible { border-radius: inherit; }

/* Touch-Target-Utility — minimum 44×44 für Mobile-Fingerfreundlichkeit */
.touch-target { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* WERKSTATT-MARKUP-HOOKS — wird ans Ende von style.css verschoben,
   damit der Helper jede vorherige .btn/.card/.aside-Display-Definition überschreibt.
   Siehe Block am Ende der Datei. */

/* Theme-spezifische Focus-Glows (für Themes wo ein flat-outline zu subtil ist) */
[data-theme="neon"] :focus-visible,
[data-theme="terminal"] :focus-visible { box-shadow: 0 0 0 6px color-mix(in srgb, var(--focus-ring) 40%, transparent); }
[data-theme="industrial"] :focus-visible { outline-color: #000; outline-width: 4px; }
[data-theme="swiss"] :focus-visible { outline-color: #E30613; }
[data-theme="premium"] :focus-visible { outline-color: #C9A961; }

/* ===================== EASTER-EGGS ===================== */

/* Konami-Toast (erscheint bei ↑↑↓↓←→←→BA) */
.konami-toast {
    position: fixed;
    inset: auto 0 2rem 0;
    margin: 0 auto;
    width: max-content;
    max-width: 92vw;
    padding: 0.9rem 1.4rem;
    background: linear-gradient(90deg, #FF5EC4, #00F0FF);
    color: #0A0318;
    font-family: "Orbitron", "JetBrains Mono", monospace;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    z-index: 9999;
    border: 2px solid rgba(10, 3, 24, 0.9);
    box-shadow:
        0 0 0 4px rgba(255, 94, 196, 0.3),
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translateY(24px) scale(0.9);
    transition: opacity 0.35s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.konami-toast.show { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
    .konami-toast { transition: none; }
}

/* Shuffle-Button: sanfter Würfel-Rüttel-Hover */
@media (hover: hover) {
    .style-secondary-btn:hover span[aria-hidden="true"] { animation: dice-wobble 0.6s ease-out; display: inline-block; }
}
@keyframes dice-wobble {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-12deg); }
    45% { transform: rotate(15deg); }
    70% { transform: rotate(-7deg); }
}
@media (prefers-reduced-motion: reduce) { @keyframes dice-wobble { from, to { transform: none; } } }

/* ===================== STYLE-QUIZ ===================== */
#style-quiz { background: var(--bg-alt); }
.quiz { max-width: 880px; margin: 0 auto; }
.quiz-q { margin-bottom: 2.2rem; }
.quiz-q-label {
    font-family: var(--font-head);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    color: var(--fg);
}
.quiz-q-num {
    font-family: var(--font-body);
    font-variant-numeric: tabular-nums;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--accent);
    font-weight: 700;
}
.quiz-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}
.quiz-chip {
    padding: 0.7rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--fg);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.92rem;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast),
                color var(--transition-fast), transform var(--transition-fast);
    min-height: 44px;
}
.quiz-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.quiz-chip[aria-checked="true"] {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent);
}

/* Ergebnis-Cards */
.quiz-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.quiz-results.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 760px) { .quiz-results { grid-template-columns: 1fr; } }

.quiz-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}
.quiz-result-swatch {
    height: 100px;
    display: grid; place-items: center;
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    isolation: isolate;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.quiz-result-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; gap: 0.8rem; }
.quiz-result-name { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.2; }
.quiz-result-why { font-size: 0.9rem; color: var(--fg-muted); margin: 0; }
.quiz-result-cta {
    margin-top: auto;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--fg);
    border-radius: var(--btn-shape, 24px);
    background: transparent;
    color: var(--fg);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.quiz-result-cta:hover { background: var(--fg); color: var(--bg); }
.quiz-result-share {
    font-size: 0.75rem;
    color: var(--fg-muted);
    text-align: center;
    margin-top: 0.4rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.2rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.quiz-result-share.copied::after { content: " ✓"; color: var(--accent); text-decoration: none; }

/* ===================== PRINT-STYLES ===================== */
@media print {
    .site-header,
    .sticky-mobile,
    .cookie-banner,
    .floating-toggle,
    .floating-menu,
    .konami-toast,
    .scroll-progress,
    .hero-demo-badge,
    .style-switcher,
    .hero-cta,
    .quiz { display: none !important; }

    body { background: #fff !important; color: #000 !important; }
    .hero { padding-top: 2rem !important; }
    a { color: #000 !important; text-decoration: underline !important; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #444; }
    a[href^="mailto:"]::after,
    a[href^="tel:"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #444; }
    .section { page-break-inside: avoid; padding: 1.5rem 0 !important; }
    h1, h2, h3 { page-break-after: avoid; }
    img { max-width: 100% !important; page-break-inside: avoid; }
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    border-radius: var(--btn-shape);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    border: var(--stroke, 0) solid var(--border);
    white-space: nowrap;
    text-align: center;
}
.btn-primary {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: transparent;
    color: var(--fg);
    border: 1.5px solid var(--fg);
}
.btn-secondary:hover { background: var(--fg); color: var(--bg); }

.btn-wa {
    background: #25D366; color: #fff; border-color: #25D366;
}
.btn-wa:hover { background: #1DA851; }

/* Industrial-push variant */
[data-theme="industrial"] .btn-primary {
    border: 3px solid #000;
    background: #000; color: var(--accent);
}
[data-theme="industrial"] .btn-primary:hover { background: var(--accent); color: #000; transform: none; }
[data-theme="industrial"] .btn-primary:active { transform: translate(2px, 2px); }

/* === Industrial Glitch-Effekte (nur wenn Theme aktiv) === */
[data-theme="industrial"] .hero { position: relative; overflow: hidden; }
[data-theme="industrial"] .hero::after {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.10) 2px 3px);
    pointer-events: none;
    z-index: 1;
    animation: hero-scanline-drift 8s linear infinite;
}
@keyframes hero-scanline-drift {
    from { background-position: 0 0; }
    to { background-position: 0 120px; }
}
[data-theme="industrial"] .hero h1 {
    animation: hero-jitter 7s infinite steps(1);
    text-shadow: 0 0 0 transparent;
}
@keyframes hero-jitter {
    0%, 95%, 100% { transform: translate(0, 0); text-shadow: 0 0 0 transparent; }
    96% { transform: translate(-2px, 0); text-shadow: 2px 0 0 rgba(255,46,99,0.75), -2px 0 0 rgba(0,229,255,0.75); }
    97% { transform: translate(2px, 1px); text-shadow: -3px 0 0 rgba(255,46,99,0.75), 3px 0 0 rgba(0,229,255,0.75); }
    98% { transform: translate(-1px, -1px); text-shadow: 1px 0 0 rgba(255,46,99,0.6), -1px 0 0 rgba(0,229,255,0.6); }
    99% { transform: translate(0, 0); text-shadow: 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
    [data-theme="industrial"] .hero::after,
    [data-theme="industrial"] .hero h1 { animation: none; }
}

/* Premium elegant outlined */
[data-theme="premium"] .btn-primary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}
[data-theme="premium"] .btn-primary:hover { background: var(--accent); color: var(--bg); }

/* ===================== HEADER ===================== */
/* Brand-Anker-Header — theme-unabhängig, immer hell, immer derselbe.
   Themes wechseln nur den Body unter dem Header — Brand bleibt erkennbar. */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0.85rem 0;
    /* viewport-fit=cover: Header liegt unter Notch/Statusleiste -> Inhalt per
       safe-area-inset nach unten/innen schieben. env() ist 0 ohne Notch (kein Effekt). */
    padding-top: calc(0.85rem + env(safe-area-inset-top));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    background: rgba(252, 252, 250, 0.94);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(42, 53, 64, 0.08);
    transition: padding var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
    padding: 0.6rem 0;
    padding-top: calc(0.6rem + env(safe-area-inset-top));
    box-shadow: 0 2px 12px rgba(42, 53, 64, 0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* === Brand-Anker — theme-unabhängig, bleibt konstant beim Theme-Wechsel ===
   Eigene Schrift + feste Farben statt var(--font-head)/var(--fg)/var(--accent).
   Gibt der Marke Wiedererkennbarkeit über alle 17 Themes hinweg.
   `white-space: nowrap` verhindert dass „Seiten schreiner" auf engem Mobile
   zwischen den beiden Wortteilen bricht. */
.brand {
    font-family: "Newsreader", "Source Serif Pro", Georgia, serif;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    color: #1A1612;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    text-decoration: none;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .brand { font-size: 1.0rem; gap: 0.4em; }
    .brand-icon { height: 1.6em; }
}
.brand-icon {
    display: inline-flex;
    align-items: center;
    height: 1.8em;
    flex-shrink: 0;
}
.brand-icon svg {
    height: 100%;
    width: auto;
    display: block;
}
.brand-text { line-height: 1; font-weight: 500; }
.brand-mark { color: #1A1612; font-weight: 500; }

/* Footer-Variante der Marke — inline Wortmarke-SVG statt Text.
   color: inherit lässt die Wortmarke (fill="currentColor") die jeweilige
   Theme-Footer-Textfarbe übernehmen — sichtbar auf allen 17 Themes,
   auch beim invertierten Art-Deco-Footer. */
.brand-footer { color: inherit; }
.brand-footer svg { height: 1.6em; width: auto; max-width: 100%; display: block; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

/* ===================== HERO = STYLE STUDIO ===================== */
.hero {
    padding: calc(var(--section-pad) + 4rem) 0 var(--section-pad);
    position: relative;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    text-align: center;
}
.hero-head { min-width: 0; }
.hero-portrait-wrap {
    display: flex;
    justify-content: center;
}
@media (min-width: 800px) {
    .hero-inner.has-portrait {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 3rem;
        text-align: left;
    }
    .hero-inner.has-portrait .hero-portrait-wrap {
        justify-content: flex-start;
    }
    .hero-inner.has-portrait h1,
    .hero-inner.has-portrait .hero-lead {
        margin-left: 0;
    }
    .hero-inner.has-portrait .hero-cta,
    .hero-inner.has-portrait .hero-peek {
        justify-content: flex-start;
        justify-self: flex-start;
    }
}
.style-switcher { min-width: 0; }
.style-strip-wrap { min-width: 0; }
.style-strip { min-width: 0; }
.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.hero h1 {
    max-width: 18ch;
    margin: 0 auto;
}
.hero-lead {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--fg-muted);
    max-width: 42ch;
    margin: 1.2rem auto 0;
}
.hero-demo-badge {
    position: fixed;
    top: 80px; right: 1.5rem;
    z-index: 50;
    background: var(--fg);
    color: var(--bg);
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
@media (max-width: 700px) {
    /* Auf Mobile startet Auto-Demo gar nicht — Badge bleibt also aus.
       Defensive Fallback: Badge-Position nicht über Hero-Content. */
    .hero-demo-badge { display: none; }
}
.hero-demo-badge.show { opacity: 0.9; transform: translateY(0); }
.hero-demo-badge-dot {
    display: inline-block; width: 6px; height: 6px; background: var(--accent);
    border-radius: 50%; margin-right: 0.4rem; vertical-align: middle;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== Live Style Switcher (Hero centerpiece) ===== */
.style-switcher {
    width: 100%;
    max-width: 880px;
    margin-top: 2.2rem;
    margin-inline: auto;
    padding: clamp(1rem, 2.4vw, 1.6rem) clamp(0.6rem, 1.8vw, 1.2rem) 1.2rem;
    border-radius: calc(var(--radius-sm, 12px) + 6px);
    background: color-mix(in srgb, var(--bg-card, #fff) 88%, transparent);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    position: relative;
    box-sizing: border-box;
}

.style-switcher-meta {
    text-align: center;
    margin-bottom: 0.65rem;
}
.style-switcher-hint {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 600;
}

.style-switcher-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.7rem, 2.4vw, 1.6rem);
    margin-bottom: 1rem;
}

.style-nav {
    flex: 0 0 auto;
    width: clamp(44px, 10vw, 54px);
    height: clamp(44px, 10vw, 54px);
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--fg);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform var(--transition-fast), border-color var(--transition-fast),
                box-shadow var(--transition-fast), color var(--transition-fast);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.style-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}
.style-nav:active { transform: translateY(0) scale(0.96); }
.style-nav svg { display: block; }

.style-switcher-current {
    min-width: clamp(150px, 28vw, 260px);
    text-align: center;
    line-height: 1;
}
.style-switcher-name {
    display: block;
    font-family: var(--font-head);
    font-weight: var(--font-weight-head);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    letter-spacing: -0.015em;
    color: var(--fg);
}
.style-switcher-count {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 600;
}

/* Horizontal thumbnail strip */
.style-strip-wrap {
    position: relative;
    margin: 0;
    overflow-x: clip;
}
.style-strip {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.4rem;
    padding: 0.5rem 0.4rem 0.6rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    -webkit-overflow-scrolling: touch;
}
.style-strip::-webkit-scrollbar { height: 6px; }
.style-strip::-webkit-scrollbar-track { background: transparent; }
.style-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.style-strip::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Gradient fade hints at strip edges — signals "more content" */
.style-strip-wrap::before,
.style-strip-wrap::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 24px;
    pointer-events: none;
    z-index: 2;
}
.style-strip-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-card, #fff), transparent);
    opacity: 0.85;
}
.style-strip-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-card, #fff), transparent);
    opacity: 0.85;
}

.style-switcher-secondary {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}
.style-secondary-btn {
    min-height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg);
    padding: 0.5rem 1rem;
    border-radius: var(--btn-shape, 999px);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.style-secondary-btn:hover {
    background: var(--bg);
    border-color: var(--accent);
    color: var(--accent);
}
.style-switcher-kbd-hint {
    font-size: 0.75rem;
    color: var(--fg-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.style-switcher-kbd-hint kbd,
.hero-lead kbd {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.82em;
    font-weight: 600;
    color: var(--fg);
    line-height: 1;
    vertical-align: baseline;
}
@media (max-width: 560px) {
    .style-switcher-kbd-hint,
    .hero-lead-kbd { display: none; }
}

/* Sekundäre Zeilen unter dem Style-Studio.
   Globales `p { max-width: 65ch }` würde sie links-aligned lassen,
   deshalb explizit per `margin: ... auto` im Container zentrieren.
   .stil-cta-secondary: fängt Custom-Design-Anfragen ab (→ Kontakt).
   .stil-bridge: leitet im Wow-Moment zur Branchen-Demo-Section (interner Sprung). */
.stil-cta-secondary,
.stil-bridge {
    text-align: center;
    color: var(--fg-muted);
}
.stil-cta-secondary { margin: 2.5rem auto 0; font-size: 0.95rem; }
.stil-bridge { margin: 0.55rem auto 0; font-size: 0.88rem; }
.stil-cta-secondary a,
.stil-bridge a {
    color: var(--fg);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 0.4rem;
}
.stil-cta-secondary a:hover { color: var(--accent); }

.style-tile {
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid var(--border);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    padding: 0;
    text-align: left;
    display: block;
    flex: 0 0 148px;
    scroll-snap-align: start;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
@media (max-width: 600px) { .style-tile { flex: 0 0 128px; } }
@media (max-width: 400px) { .style-tile { flex: 0 0 116px; } }
.style-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.style-tile.active {
    border-color: var(--accent);
    border-width: 2px;
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.tile-preview {
    aspect-ratio: 4 / 3;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    /* Scoped theme via data-theme attribute */
    background: var(--bg);
    color: var(--fg);
}
.tile-preview .tile-head {
    font-family: var(--font-head);
    font-weight: var(--font-weight-head);
    font-size: 1.4rem;
    line-height: 1;
}
.tile-preview .tile-body {
    font-family: var(--font-body);
    font-size: 0.6rem;
    color: var(--fg-muted);
    letter-spacing: 0.02em;
}
.tile-preview .tile-dot {
    align-self: flex-end;
    width: 16px; height: 16px;
    border-radius: var(--btn-shape);
    background: var(--accent);
    border: var(--stroke, 0) solid var(--border);
}
.tile-label {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fg);
    background: var(--bg-card);
    text-align: center;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}
.tile-check {
    position: absolute; top: 0.4rem; right: 0.4rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-contrast);
    display: none;
    align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.style-tile.active .tile-check { display: flex; }

/* Hero CTA row */
.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.hero-cta-secondary {
    display: inline-flex;
    font-size: 0.95rem;
    color: var(--fg-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color var(--transition-fast);
}
.hero-cta-secondary:hover,
.hero-cta-secondary:focus-visible {
    color: var(--fg);
    text-decoration-thickness: 2px;
}
.hero-portrait {
    width: clamp(130px, 22vw, 180px);
    height: clamp(130px, 22vw, 180px);
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-alt);
    border: 4px solid var(--bg);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    display: block;
}

/* Peek-Link unter Hero: schickt zum Stil-Studio (Option B — Switcher sitzt dort, nicht im Hero) */
.hero-peek {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.4rem;
    justify-self: center;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    color: var(--fg-muted);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-card, #fff) 60%, transparent);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.hero-peek:hover,
.hero-peek:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.hero-peek-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}
.hero-peek:hover .hero-peek-arrow,
.hero-peek:focus-visible .hero-peek-arrow {
    transform: translateY(3px);
}
@media (prefers-reduced-motion: reduce) {
    .hero-peek, .hero-peek-arrow { transition: none; }
    .hero-peek:hover .hero-peek-arrow { transform: none; }
}

/* ===================== GENERIC SECTION ===================== */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.section-head {
    text-align: center;
    margin-bottom: 3rem;
}
.section-head p { margin: 0 auto; }

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
/* 3 Karten à min ~280px Inhalt passen erst ab ~900px sauber nebeneinander —
   darunter 1-Spalte (vorher 800px: Zone 800–880 erzeugte 6–46px Overflow).
   minmax(0,1fr) statt 1fr: verhindert dass die Zelle auf Card-min-content wächst
   (Memphis/Industrial bei ≤440px: Card lief sonst über die Zelle hinaus). */
@media (max-width: 900px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

.card {
    background: var(--bg-card);
    border: var(--stroke, 0) solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
    min-width: 0;            /* erlaubt Schrumpfen in der Grid-Zelle (kein min-content-Overflow) */
    overflow-wrap: break-word;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { font-family: var(--font-head); margin-bottom: 0.8rem; color: var(--fg); }
.card p { color: var(--fg-muted); margin-bottom: 0; }
.card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Paket cards — with price */
.paket {
    position: relative;
    display: flex; flex-direction: column;
}
.paket.featured {
    border: 2px solid var(--accent);
    transform: scale(1.02);
}
.paket-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: var(--accent-contrast);
    padding: 0.3rem 0.9rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.paket-name { font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.5rem; color: var(--fg-muted); font-family: var(--font-body); }
.paket-price { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 0.2rem; }
.paket-price-big { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.paket-price-unit { font-size: 0.9rem; color: var(--fg-muted); }
.paket-price-month { font-size: 0.9rem; color: var(--fg-muted); margin-bottom: 1.2rem; }
.paket ul { margin: 1rem 0 1.5rem; }
.paket li { padding: 0.4rem 0; font-size: 0.92rem; border-bottom: 1px dashed var(--border); }
.paket li:last-child { border-bottom: 0; }
.paket li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.paket .btn { margin-top: auto; width: 100%; }
.paket-cta { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.paket-cta .btn { margin-top: 0; }
.paket-cta-ask {
    font-size: 0.86rem;
    color: var(--fg-muted);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
    padding: 6px 2px;
}
.paket-cta-ask:hover { color: var(--fg); text-decoration-color: var(--fg); }

/* Portfolio / Arbeiten */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .works { grid-template-columns: 1fr; } }
.work-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-thumb {
    aspect-ratio: 16 / 10;
    background: var(--bg-alt);
    overflow: hidden;
    position: relative;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.work-body h3 { margin-bottom: 0.4rem; font-size: 1.25rem; }
.work-meta { font-size: 0.78rem; color: var(--fg-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.8rem; }
.work-body p { font-size: 0.95rem; color: var(--fg-muted); margin-bottom: 1rem; }
.work-link { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px; padding: 0.6rem 0.2rem 0.4rem; }
.work-link::after { content: "→"; transition: transform var(--transition-fast); }
.work-link:hover::after { transform: translateX(4px); }

/* Design-Range Gallery */
.design-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 1000px) { .design-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .design-grid { grid-template-columns: repeat(2, 1fr); } }
.design-card {
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    display: block;
}
.design-card:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.design-card img { width: 100%; height: 100%; object-fit: cover; }
.design-card-label {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.2rem 0.9rem 0.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.82) 45%, rgba(0,0,0,0.3) 85%, transparent);
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
}
.design-card-label strong { display: block; font-size: 0.92rem; font-weight: 700; }
.design-card-label span { display: block; font-size: 0.72rem; font-weight: 400; opacity: 0.82; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.2rem; }

/* Über mich */
.about-block {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 700px) { .about-block { grid-template-columns: 1fr; text-align: center; } }
.about-portrait-wrap {
    position: relative;
    width: 100%; aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent) 0%, var(--bg-alt) 100%);
    display: grid;
    place-items: center;
}
.about-portrait {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}
.about-portrait-fallback {
    font-family: var(--font-head);
    font-size: clamp(5rem, 14vw, 10rem);
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    line-height: 1;
    z-index: 1;
    user-select: none;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
    letter-spacing: -0.02em;
}
.about-text blockquote {
    font-family: var(--font-head);
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--fg);
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    font-style: italic;
}
.trust-strip {
    display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.5rem;
    font-size: 0.82rem; color: var(--fg-muted);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 0.3rem; }
.trust-strip span::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border-top: 1px solid var(--border);
    padding: 1.2rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: var(--font-weight-head);
    color: var(--fg);
    text-align: left;
    padding: 0.3rem 0;
    min-height: 44px;
    cursor: pointer;
}
.faq-q::after {
    content: "+";
    font-size: 1.5rem; line-height: 1;
    color: var(--accent);
    transition: transform var(--transition-fast);
    font-family: var(--font-body);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    color: var(--fg-muted);
    font-size: 0.95rem;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 1rem; }

/* Kontakt */
.kontakt-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto 3rem;
}
@media (max-width: 700px) { .kontakt-actions { grid-template-columns: 1fr; } }
.kontakt-fineprint { text-align: center; font-size: 0.9rem; color: var(--fg-muted); }
.kontakt-btn {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--fg);
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.kontakt-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: var(--accent); color: var(--accent-contrast); }
.kontakt-btn-icon { font-size: 1.5rem; }

/* Inline-SVG-Icons (ss_icon) — monochrom, skalieren mit font-size, optisch auf Textlinie. */
.ss-icon { vertical-align: -0.15em; flex: none; }

/* ===================== FOOTER ===================== */
.site-footer {
    padding: 3rem 0 2rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--fg-muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); margin-bottom: 0.8rem; font-family: var(--font-body); font-weight: 700; line-height: 1.3; }
.footer-grid a { display: block; padding: 0.2rem 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    font-size: 0.78rem;
}

/* ===================== COOKIE BANNER (granular, 3 Kategorien) ===================== */
.cookie-banner {
    position: fixed; bottom: calc(1rem + env(safe-area-inset-bottom)); left: 1rem; right: 1rem; z-index: 200;
    max-width: 680px; margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.4rem;
    box-shadow: var(--shadow-lg);
    display: none;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner.show { display: block; opacity: 1; transform: translateY(0); }
.cookie-banner h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.cookie-banner p { margin-bottom: 1rem; font-size: 0.88rem; color: var(--fg); }

.cookie-categories {
    display: flex; flex-direction: column; gap: 0.6rem;
    margin: 1rem 0 1.2rem;
    padding: 0.9rem; background: var(--bg-alt);
    border-radius: var(--radius-sm);
}
.cookie-category {
    display: grid; grid-template-columns: auto 1fr; gap: 0.7rem;
    align-items: start; cursor: pointer;
    padding: 0.55rem 0.4rem; border-radius: 6px;
    transition: background 0.15s;
}
.cookie-category:hover { background: var(--bg-card); }
.cookie-category--required { cursor: default; opacity: 0.85; }
.cookie-category--required:hover { background: transparent; }

.cookie-category input[type="checkbox"] {
    position: absolute; opacity: 0; pointer-events: none;
}
.cookie-toggle {
    width: 36px; height: 20px;
    background: var(--border); border-radius: 999px;
    position: relative; flex-shrink: 0;
    transition: background 0.2s;
    margin-top: 2px;
}
.cookie-toggle::after {
    content: ''; position: absolute;
    width: 14px; height: 14px; top: 3px; left: 3px;
    background: #FFF; border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.cookie-category input:checked ~ .cookie-toggle { background: var(--accent); }
.cookie-category input:checked ~ .cookie-toggle::after { transform: translateX(16px); }
.cookie-category input:focus-visible ~ .cookie-toggle {
    outline: 3px solid var(--focus-ring); outline-offset: 2px;
}

.cookie-cat-text strong {
    display: block; font-size: 0.92rem; color: var(--fg);
    font-weight: 600; margin-bottom: 0.15rem;
}
.cookie-cat-text small {
    display: block; font-size: 0.8rem; color: var(--fg-muted);
    line-height: 1.4;
}

.cookie-actions {
    display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
}
.cookie-link {
    font-size: 0.85rem; color: var(--fg-muted);
    text-decoration: underline; margin-left: auto;
}
.cookie-link:hover { color: var(--fg); }

@media (max-width: 540px) {
    .cookie-banner { padding: 1.1rem; }
    .cookie-actions .btn { flex: 1 1 auto; min-width: 0; font-size: 0.85rem; padding: 0.55rem 0.8rem; }
    .cookie-link { width: 100%; text-align: center; margin: 0.5rem 0 0 0; }
}

/* ===================== STICKY MOBILE CTA ===================== */
.sticky-mobile {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 0.6rem;
    /* iOS Home-Indicator: untere Leiste anheben, sonst liegen die Buttons in der
       Gesten-Zone / hinter der Safari-Toolbar. env() = 0 ohne Home-Indicator. */
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
    display: none;
    gap: 0.4rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.sticky-mobile a {
    flex: 1;
    padding: 0.7rem;
    border-radius: var(--btn-shape);
    text-align: center;
    font-size: 0.82rem; font-weight: 600;
    background: var(--bg-alt);
    color: var(--fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
}
.sticky-mobile a.primary { background: var(--accent); color: var(--accent-contrast); }
@media (max-width: 700px) { .sticky-mobile { display: flex; } body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); } }

/* ===================== FLOATING STYLE TOGGLE ===================== */
.floating-toggle {
    position: fixed; bottom: 80px; right: 1rem; z-index: 80;
    background: var(--fg); color: var(--bg);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem; font-weight: 600;
    display: none; align-items: center; gap: 0.4rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}
.floating-toggle.show { display: inline-flex; opacity: 0.92; transform: translateY(0); }
.floating-toggle:hover { opacity: 1; transform: translateY(-2px); }
@media (max-width: 700px) {
    /* Floating-Toggle auf Mobile deaktiviert — Auto-Demo läuft dort nicht,
       und der Toggle überlappt den Scroll-Content. User kann via Scroll-to-Top
       zurück zum Tile-Grid im Hero. */
    .floating-toggle, .floating-menu { display: none !important; }
}

.floating-menu {
    position: fixed; bottom: 130px; right: 1rem; z-index: 81;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
    min-width: 180px;
}
.floating-menu.show { display: block; }
.floating-menu button {
    display: flex; align-items: center; gap: 0.6rem; width: 100%;
    padding: 0.5rem 0.7rem; border-radius: 8px;
    font-size: 0.88rem;
    color: var(--fg); text-align: left;
    transition: background var(--transition-fast);
}
.floating-menu button:hover { background: var(--bg-alt); }
.floating-menu .dot {
    width: 14px; height: 14px; border-radius: 50%;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* ===================== SCROLL PROGRESS ===================== */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 101;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
    width: 100%;
}

/* ===================== VIEW TRANSITIONS ===================== */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== REVEAL ANIMATIONS ===================== */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s, transform 0.8s; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ===================== RESPONSIVE PADS ===================== */
@media (max-width: 700px) {
    h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .hero { padding-top: calc(var(--section-pad) + 3rem); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================== PAKETE — Branchen-Fit-Label + Trust-Strip ===================== */
.paket-fit {
    font-size: 0.85rem;
    color: var(--fg-muted);
    margin-top: -0.4rem;
    margin-bottom: 1.2rem;
    font-style: italic;
    line-height: 1.4;
}

.paket-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.paket-trust-item {
    font-size: 0.9rem;
    color: var(--fg-muted);
    line-height: 1.5;
}
.paket-trust-item strong {
    display: block;
    color: var(--fg);
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.95rem;
}
@media (max-width: 700px) {
    .paket-trust { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
}

/* ===================== PREMIUM-UPGRADE-BANNER (zwischen Pakete-Grid + Trust-Strip) ===================== */
.premium-upgrade {
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    box-shadow: var(--shadow-card);
}
.premium-upgrade-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.premium-upgrade h3 {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 0.7rem;
    color: var(--fg);
}
.premium-upgrade p { font-size: 0.95rem; color: var(--fg); margin-bottom: 0.6rem; max-width: 60ch; }
.premium-upgrade-fit { font-size: 0.88rem; color: var(--fg-muted); font-style: italic; margin-bottom: 0; }
.premium-upgrade-cta { display: flex; flex-direction: column; gap: 0.5rem; }
.premium-upgrade-cta .btn { white-space: nowrap; }

@media (max-width: 800px) {
    .premium-upgrade {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.2rem;
    }
    .premium-upgrade-cta .btn { width: 100%; }
}

/* ===================== PAID DISCOVERY (eigene Section nach Pakete) ===================== */
.discovery .section-head { margin-bottom: 2rem; }
.discovery-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}
.discovery-card-body p { font-size: 0.95rem; max-width: 55ch; }
.discovery-card-price {
    margin: 1rem 0 0.4rem !important;
    font-size: 1.05rem;
    color: var(--fg);
}
.discovery-card-price strong {
    font-size: 1.6rem;
    font-family: var(--font-head);
    color: var(--fg);
    margin-right: 0.3rem;
}
.discovery-card-price span { color: var(--fg-muted); font-size: 0.9rem; }
.discovery-card-fineprint {
    font-size: 0.85rem;
    color: var(--fg-muted);
    font-style: italic;
    margin-bottom: 0 !important;
}
.discovery-card-cta { display: flex; }
.discovery-card-cta .btn { white-space: nowrap; }

@media (max-width: 800px) {
    .discovery-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.2rem;
    }
    .discovery-card-cta .btn { width: 100%; }
}

/* ===================== WERKSTATT-MARKUP-HOOKS (am Ende, damit Spezifität reicht) =====================
   Vision-G-spezifische Markup-Stellen sind in index.php als `[data-werkstatt-only]`
   ausgezeichnet. Default-Verhalten: versteckt. Nur unter [data-theme="werkstatt"]
   werden sie sichtbar. `[data-werkstatt-hidden]` ist die umgekehrte Logik: in
   Werkstatt versteckt, in allen anderen Themes sichtbar (für Lead/Headline-Varianten).
   Trick: `html:not([data-theme="werkstatt"])` macht den Selektor hochspezifisch (0,2,1)
   ohne `!important` — und schaltet das Hide nur AUSSERHALB Werkstatt. So darf Werkstatt-CSS
   seine eigenen display-Werte setzen, ohne mit `!important` zu kollidieren. */
html:not([data-theme="werkstatt"]) [data-werkstatt-only] { display: none; }
html[data-theme="werkstatt"] [data-werkstatt-hidden] { display: none; }

/* ===================== CARD-TILT (Maus-Tracking, 3D) =====================
   JS (main.js) setzt inline transform + die .tilt-card-Klasse auf Design-Range-
   Demos und Stil-Tiles. Inline-transform schlägt theme-eigene :hover-transforms.
   Sägespan-Lichtschein folgt der Maus über ::after. Nur Maus/Pen (pointer:fine),
   nicht Touch. Bei reduced-motion komplett aus. */
.tilt-card {
    position: relative;
    transition: transform 0.18s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.18s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.tilt-card.is-tilting { box-shadow: 0 18px 40px -22px rgba(26,22,18,0.45); }
.tilt-card .tilt-sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.22s ease;
    background: radial-gradient(circle at var(--tilt-mx,50%) var(--tilt-my,50%),
        rgba(255,248,235,0.30), rgba(255,248,235,0.06) 42%, transparent 62%);
}
.tilt-card.is-tilting .tilt-sheen { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) {
    .tilt-card { transform: none !important; transition: none; will-change: auto; }
    .tilt-card .tilt-sheen { display: none; }
}
