/*
 * Ivalox – Komponenten im Stitch-Design „Automotive Precision Light“
 * (Vorlage: design/stitch/DESIGN.md)
 *
 * Einzige Quelle für alle Komponenten-Klassen. Wird eingebunden von
 *   - assets/css/app.css      (vorgebaut, per @import)
 *   - assets/css/src/app.css  (Tailwind-Build, als layer(components))
 * Reines CSS ohne externe Ressourcen (CSP: style-src/font-src 'self').
 */

/* ---------------------------------------------------------------------------
 * Schriften (selbst gehostet – "php bin/fetch-fonts.php" lädt sie herunter;
 * ohne die Dateien greift automatisch die Systemschrift)
 * ------------------------------------------------------------------------ */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: local("Inter Variable"), local("Inter"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: local("Space Grotesk"), url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
}

/* ---------------------------------------------------------------------------
 * Design-Tokens
 * ------------------------------------------------------------------------ */
:root {
    /*
     * Schrift-Rollen – jede Stelle im Shop nutzt genau eine davon. Eigene Schriften aus App → „Design“ setzen nur diese
     * Variablen (Services\Branding::fontCss()), ohne Upload bleiben die Standardschriften:
     *   --iv-font-body        „Schriftart Normal“: Fließtext, Felder, die komplette Kopfzeile
     *   --iv-font-ui          „Schriftart Normal“ für Knöpfe, Preise, Badges, Beschriftungen, Tabellenköpfe –
     *                         eigene Variable nur, weil diese Stellen ohne Upload die Grotesk-Schrift zeigen
     *   --iv-font-subheading  „Schriftart Kleine Überschrift“: h3/h4, Überzeilen, Namen in Kacheln, Fußzeilen-Titel
     *   --iv-font-heading     „Schriftart Überschrift“: h1/h2, Seiten- und Abschnittstitel
     *   --iv-font-price       „Schriftart Preise“: Beträge; ohne eigene Datei wie --iv-font-ui
     * --iv-font-display gehört nur noch dem Admin-Bereich (admin.css) – dort gelten keine eigenen Schriften.
     */
    --iv-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --iv-font-ui: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --iv-font-price: var(--iv-font-ui);
    --iv-font-subheading: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --iv-font-heading: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --iv-font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Chrom-Palette (angelehnt an das Logo): Schwarz · Graphit · Stahl · Silber – flach, ohne Verläufe */
    --iv-primary: #18181b;            /* Graphit (Buttons, aktive Elemente) */
    --iv-primary-hover: #000000;
    --iv-primary-container: #3f3f46;
    --iv-primary-soft: #f1f1f3;       /* Silber-Hauch */
    --iv-accent: #c4c4cc;             /* Chrom/Silber (Akzente auf Schwarz) */
    --iv-accent-soft: #e4e4e7;
    --iv-sky: #71717a;                /* Stahl */

    --iv-canvas: #ffffff;
    --iv-surface: #fafafa;
    --iv-surface-low: #f4f4f5;
    --iv-surface-mid: #e4e4e7;
    --iv-surface-high: #d4d4d8;

    --iv-text: #0a0a0a;
    --iv-text-muted: #52525b;
    --iv-text-subtle: #71717a;
    --iv-outline: #71717a;
    --iv-border: #e4e4e7;
    --iv-border-strong: #c4c4cc;

    --iv-success: #047857;
    --iv-success-soft: #ecfdf5;
    --iv-warning: #92400e;
    --iv-warning-soft: #fffbeb;
    --iv-error: #ba1a1a;
    --iv-error-soft: #ffdad6;

    /* Dezentere Rundungen (kantiger, technischer Look) */
    --iv-radius-sm: 0.25rem;
    --iv-radius: 0.375rem;
    --iv-radius-md: 0.5rem;
    --iv-radius-lg: 0.75rem;
    --iv-radius-xl: 1rem;
    --iv-radius-control: 0.375rem;   /* Buttons, Eingabefelder, Pills */

    /* Kaum Schatten – Tiefe entsteht über Rahmen */
    --iv-shadow-card: none;
    --iv-shadow-lift: 0 10px 24px -14px rgb(15 23 42 / 0.25);
    --iv-glow: 0 0 0 1px rgb(24 24 27 / 0.6);
    --iv-ring: 0 0 0 3px rgb(113 113 122 / 0.25);

    --iv-header-bg: #0a0a0a;
    --iv-header-text: #f5f5f5;
    --iv-header-muted: #a3a3a3;
    --iv-header-line: rgb(255 255 255 / 0.12);
    --iv-header-strong: #ffffff;               /* Kopfzeile: Schrift bei Hover/aktiv, Fokusrahmen */
    --iv-header-hover-bg: rgb(255 255 255 / 0.08);
    /* Fußzeile: folgt der Kopfzeile, solange in App → „Design“ → „Farben“ nichts Eigenes eingestellt ist */
    --iv-footer-bg: var(--iv-header-bg);
    --iv-footer-text: var(--iv-header-text);
    --iv-footer-muted: var(--iv-header-muted);
    --iv-footer-line: var(--iv-header-line);
    --iv-footer-strong: var(--iv-header-strong);
    --iv-footer-hover-bg: var(--iv-header-hover-bg);
    --iv-footer-outline: rgb(255 255 255 / 0.55);
    /* Schrift auf Haupt-/Akzentfarbe, Hintergrund von Karten und Feldern */
    --iv-on-primary: #ffffff;
    --iv-on-accent: #0a0a0a;
    --iv-card: #ffffff;
    --iv-admin: #ef4444;

    --iv-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------------------------------------------------------------------------
 * Grundlagen
 * ------------------------------------------------------------------------ */
body { background-color: var(--iv-canvas); color: var(--iv-text); font-family: var(--iv-font-body); }
/* Formularelemente erben nicht von selbst: immer die Normalschrift (Klassen wie .btn dürfen darüber liegen) */
body :is(button, input, select, textarea, optgroup) { font-family: var(--iv-font-body); }
h1, h2 { font-family: var(--iv-font-heading); }
h3, h4 { font-family: var(--iv-font-subheading); }
:focus-visible { outline: 2px solid var(--iv-primary); outline-offset: 2px; }
::selection { background-color: var(--iv-primary-soft); color: var(--iv-text); }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-lg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

.container-page { width: 100%; max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.container-narrow { width: 100%; max-width: 32rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container-page, .container-narrow { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-page { padding-left: 2rem; padding-right: 2rem; } }

.skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 60; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; border-radius: 9999px; background: #fff; padding: 0.5rem 1rem; box-shadow: var(--iv-shadow-lift); }

/* Typografie */
.display { font-family: var(--iv-font-heading); font-size: 2.25rem; line-height: 2.75rem; font-weight: 700; letter-spacing: -0.02em; color: var(--iv-text); }
@media (min-width: 768px) { .display { font-size: 3.5rem; line-height: 4rem; letter-spacing: -0.03em; } }
.display-accent { color: var(--iv-sky); }
.headline { font-family: var(--iv-font-heading); font-size: 1.625rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--iv-text); }
@media (min-width: 768px) { .headline { font-size: 2rem; line-height: 2.5rem; letter-spacing: -0.02em; } }
.headline-md { font-family: var(--iv-font-heading); font-size: 1.5rem; line-height: 1.875rem; font-weight: 600; letter-spacing: -0.01em; color: var(--iv-text); }
.headline-sm { font-family: var(--iv-font-subheading); font-size: 1.25rem; line-height: 1.625rem; font-weight: 500; color: var(--iv-text); }
.section-title { font-family: var(--iv-font-heading); font-size: 1.625rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--iv-text); }
@media (min-width: 768px) { .section-title { font-size: 2rem; line-height: 2.5rem; } }
.lead { font-size: 1rem; line-height: 1.625rem; color: var(--iv-text-muted); }
@media (min-width: 768px) { .lead { font-size: 1.0625rem; line-height: 1.75rem; } }
.eyebrow { display: block; font-family: var(--iv-font-subheading); font-size: 0.6875rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iv-sky); }
.label-caps { font-family: var(--iv-font-subheading); font-size: 0.6875rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--iv-text-subtle); }
.price { font-family: var(--iv-font-price); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--iv-text); }
.tabular { font-variant-numeric: tabular-nums; }

.link { font-weight: 600; color: var(--iv-text); text-decoration: underline; text-decoration-color: var(--iv-border-strong); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------------------
 * Buttons (Pill-Form)
 * ------------------------------------------------------------------------ */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border-radius: var(--iv-radius-btn, var(--iv-radius-control)); border: 1px solid transparent; padding: 0.625rem 1.25rem;
    font-family: var(--iv-font-ui); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: 0.02em;
    cursor: pointer; text-align: center; white-space: nowrap;
    transition: color .15s, background-color .15s, border-color .15s, transform .12s var(--iv-ease);
}
.btn:focus-visible { outline: 2px solid var(--iv-btn-focus, var(--iv-primary)); outline-offset: 2px; }
.btn:disabled { cursor: not-allowed; opacity: 0.5; }
/* Klick-Animation: kurz eindrücken (+ Ripple-Welle per JS, Modul ui-effects) */
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
/* Haupt- und Zweitknopf: Farben aus App → „Design“ → „Knöpfe“ (--iv-btn-…, gesetzt in /medien/design.css).
   Ohne Einstellung sind die Variablen nicht gesetzt, es gilt der zweite Wert in var() – der Stand von früher.
   „Beim Anklicken“ ohne Maus über dem Knopf (Tastatur, Touch) fällt auf Normal zurück, mit Maus auf Hover. */
.btn-primary { border-color: var(--iv-btn-primary-border, transparent); background-color: var(--iv-btn-primary-bg, var(--iv-primary)); color: var(--iv-btn-primary-color, var(--iv-on-primary)); }
.btn-primary:hover:not(:disabled) { border-color: var(--iv-btn-primary-hover-border, var(--iv-btn-primary-border, transparent)); background-color: var(--iv-btn-primary-hover-bg, var(--iv-primary-hover)); color: var(--iv-btn-primary-hover-color, var(--iv-btn-primary-color, var(--iv-on-primary))); }
.btn-primary:active:not(:disabled) { border-color: var(--iv-btn-primary-active-border, var(--iv-btn-primary-border, transparent)); background-color: var(--iv-btn-primary-active-bg, var(--iv-btn-primary-bg, var(--iv-primary))); color: var(--iv-btn-primary-active-color, var(--iv-btn-primary-color, var(--iv-on-primary))); }
.btn-primary:hover:active:not(:disabled) { border-color: var(--iv-btn-primary-active-border, var(--iv-btn-primary-hover-border, var(--iv-btn-primary-border, transparent))); background-color: var(--iv-btn-primary-active-bg, var(--iv-btn-primary-hover-bg, var(--iv-primary-hover))); color: var(--iv-btn-primary-active-color, var(--iv-btn-primary-hover-color, var(--iv-btn-primary-color, var(--iv-on-primary)))); }
.btn-secondary { border-color: var(--iv-btn-second-border, var(--iv-border)); background-color: var(--iv-btn-second-bg, var(--iv-card)); color: var(--iv-btn-second-color, var(--iv-text)); }
.btn-secondary:hover:not(:disabled) { border-color: var(--iv-btn-second-hover-border, var(--iv-text)); background-color: var(--iv-btn-second-hover-bg, var(--iv-surface)); color: var(--iv-btn-second-hover-color, var(--iv-btn-second-color, var(--iv-text))); }
.btn-secondary:active:not(:disabled) { border-color: var(--iv-btn-second-active-border, var(--iv-btn-second-border, var(--iv-border))); background-color: var(--iv-btn-second-active-bg, var(--iv-btn-second-bg, var(--iv-card))); color: var(--iv-btn-second-active-color, var(--iv-btn-second-color, var(--iv-text))); }
.btn-secondary:hover:active:not(:disabled) { border-color: var(--iv-btn-second-active-border, var(--iv-btn-second-hover-border, var(--iv-text))); background-color: var(--iv-btn-second-active-bg, var(--iv-btn-second-hover-bg, var(--iv-surface))); color: var(--iv-btn-second-active-color, var(--iv-btn-second-hover-color, var(--iv-btn-second-color, var(--iv-text)))); }
.btn-soft { border-color: var(--iv-btn-second-border, transparent); background-color: var(--iv-btn-second-bg, var(--iv-surface-low)); color: var(--iv-btn-second-color, var(--iv-text)); }
.btn-soft:hover:not(:disabled) { border-color: var(--iv-btn-second-hover-border, var(--iv-btn-second-border, transparent)); background-color: var(--iv-btn-second-hover-bg, var(--iv-surface-mid)); color: var(--iv-btn-second-hover-color, var(--iv-btn-second-color, var(--iv-text))); }
.btn-soft:active:not(:disabled) { border-color: var(--iv-btn-second-active-border, var(--iv-btn-second-border, transparent)); background-color: var(--iv-btn-second-active-bg, var(--iv-btn-second-bg, var(--iv-surface-low))); color: var(--iv-btn-second-active-color, var(--iv-btn-second-color, var(--iv-text))); }
.btn-soft:hover:active:not(:disabled) { border-color: var(--iv-btn-second-active-border, var(--iv-btn-second-hover-border, var(--iv-btn-second-border, transparent))); background-color: var(--iv-btn-second-active-bg, var(--iv-btn-second-hover-bg, var(--iv-surface-mid))); color: var(--iv-btn-second-active-color, var(--iv-btn-second-hover-color, var(--iv-btn-second-color, var(--iv-text)))); }
.btn-tonal { background-color: var(--iv-primary-soft); color: var(--iv-primary); }
.btn-tonal:hover:not(:disabled) { background-color: var(--iv-surface-mid); }
.btn-danger { background-color: var(--iv-error); color: #fff; }
.btn-danger:hover:not(:disabled) { background-color: #93000a; }
.btn-danger:focus-visible { outline-color: var(--iv-error); }
.btn-ghost { color: var(--iv-text-muted); }
.btn-ghost:hover:not(:disabled) { background-color: var(--iv-surface-low); color: var(--iv-text); }
.btn-on-dark { border-color: rgb(255 255 255 / 0.25); color: #fff; }
.btn-on-dark:hover { background-color: rgb(255 255 255 / 0.1); }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; line-height: 1.5rem; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn-icon { width: 2.5rem; height: 2.5rem; padding: 0; }

/* ---------------------------------------------------------------------------
 * Header (schwarz): links Navigation · Mitte Logo · rechts Warenkorb/Anmelden/Konto
 * ------------------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 40; background-color: var(--iv-header-bg); color: var(--iv-header-text);
    border-bottom: 1px solid var(--iv-header-line); transition: box-shadow .25s; font-family: var(--iv-font-body);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgb(0 0 0 / 0.6); }
/* Inhalt mittig auf Seitenbreite (wie .container-page), damit nichts am Bildschirmrand klebt */
.site-header__inner {
    position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
    width: 100%; max-width: 80rem; margin-left: auto; margin-right: auto;
    height: 4.5rem; padding-left: 1.25rem; padding-right: 1.25rem; transition: height .25s var(--iv-ease);
}
@media (min-width: 640px) { .site-header__inner { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1024px) { .site-header__inner { height: 5.5rem; padding-left: 3rem; padding-right: 3rem; gap: 1.5rem; } }
.site-header__left { display: flex; min-width: 0; align-items: center; gap: 0.75rem; }
.site-header__right { display: flex; min-width: 0; justify-content: flex-end; }
/* Ab 1024 px: Spalten nie schmaler als ihr Inhalt. So kann nichts mehr unter das Logo rutschen – reicht der Platz
   (z. B. mit einer breiten eigenen Schrift) nicht, wandert das Logo ein Stück zur Seite, statt überdeckt zu werden. */
@media (min-width: 1024px) { .site-header__left, .site-header__right { min-width: max-content; } }
.site-header__brand { display: block; justify-self: center; transition: transform .2s var(--iv-ease); }
.site-header__brand:hover { transform: scale(1.04); }
.site-header__brand:focus-visible { outline: 2px solid var(--iv-header-strong); outline-offset: 4px; }
/* Logo: Bildausschnitt 1,6 : 1 schneidet den Leerraum des quadratischen PNG ab */
.site-header__logo { height: 3.75rem; width: 6rem; object-fit: cover; object-position: center; transition: transform .3s var(--iv-ease); }
@media (min-width: 1024px) { .site-header__logo { height: 5rem; width: 8rem; } }
/* Beim Scrollen: Logo etwas kleiner (nur optisch – keine Layout-Verschiebung) */
.site-header.is-scrolled .site-header__logo { transform: scale(0.86); }

/* Navigation links */
.main-nav { display: none; }
.main-nav__list { display: flex; flex-direction: column; gap: 0.125rem; }
.main-nav__link {
    position: relative; display: block; width: 100%; padding: 0.625rem 0.25rem; text-align: left;
    font-family: var(--iv-font-body); font-size: 1rem; line-height: 1.25rem; font-weight: 700; letter-spacing: 0.01em;
    color: var(--iv-header-text); transition: color .15s;
}
.main-nav__link::after {
    content: ""; position: absolute; left: 0.25rem; right: 0.25rem; bottom: 0.25rem; height: 2px; border-radius: 1px;
    background-color: var(--iv-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--iv-ease);
}
.main-nav__link:hover::after, .main-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.main-nav__link:hover { color: var(--iv-header-strong); }
.main-nav__link:focus-visible { outline: 2px solid var(--iv-header-strong); outline-offset: 2px; }
/* Admin-Link: rot und fett */
.main-nav__link--admin { color: var(--iv-admin); font-weight: 800; }
.main-nav__link--admin::after { background-color: var(--iv-admin); }
.main-nav__link--admin:hover { color: #f87171; }
.main-nav__extra { display: block; }
.main-nav.is-open {
    position: absolute; left: 0; right: 0; top: 100%; display: block; z-index: 41;
    border-bottom: 1px solid var(--iv-header-line); background-color: var(--iv-header-bg); padding: 0.75rem 1.25rem 1.25rem;
    animation: iv-drop .2s var(--iv-ease) both;
}
/* Im mobilen Menü: Trennlinie vor den Konto-Links */
.main-nav__extra--first { margin-top: 0.5rem; border-top: 1px solid var(--iv-header-line); padding-top: 0.5rem; }
/* Aufklappmenü „Kollektion“ nur am Computer – mobil stehen die Kollektionen als normale Einträge im Menü */
.main-nav__dropdown { display: none; }
.main-nav__link--sub { padding-left: 1rem; font-weight: 500; }
.main-nav__link--sub::after { left: 1rem; }
.main-nav__toggle { display: inline-flex; align-items: center; gap: 0.25rem; width: auto; }
.main-nav__toggle .header-dropdown__chevron { width: 0.875rem; height: 0.875rem; transition: transform .2s var(--iv-ease); }
.main-nav__toggle--current::after, .header-dropdown[open] > .main-nav__toggle::after { transform: scaleX(1); }
.header-dropdown__panel--wide { width: max-content; max-width: 20rem; max-height: min(26rem, 70vh); overflow-y: auto; }
.header-dropdown__panel--wide .header-dropdown__link { white-space: normal; }
.header-dropdown__divider { margin-top: 0.25rem; border-top: 1px solid var(--iv-header-line); padding-top: 0.25rem; }
@media (min-width: 1024px) {
    .main-nav__dropdown { display: block; }
    .main-nav, .main-nav.is-open { position: static; display: block; border: 0; background: none; padding: 0; animation: none; }
    /* Kompakt bis 1280 px, damit Navigation und Logo nie übereinanderliegen */
    .main-nav__list { flex-direction: row; align-items: center; gap: 1rem; }
    .main-nav__link { padding: 0.5rem 0.125rem; font-size: 0.9375rem; white-space: nowrap; }
    .main-nav__link::after { left: 0.125rem; right: 0.125rem; bottom: 0; }
    .main-nav__extra { display: none; }
}
@media (min-width: 1280px) {
    .main-nav__list { gap: 1.5rem; }
    .main-nav__link { font-size: 1rem; }
}

/* Aufklappmenüs im Header (<details>): Menü „Wir/FAQ“ links, Sprache (Weltkugel) rechts – Modul "dropdown" */
.header-dropdown { position: relative; }
.header-dropdown > summary { list-style: none; cursor: pointer; }
.header-dropdown > summary::-webkit-details-marker { display: none; }
.header-dropdown__toggle {
    display: inline-flex; align-items: center; gap: 0.375rem; border-radius: var(--iv-radius-control); padding: 0.4375rem 0.5rem;
    font-family: var(--iv-font-body); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.01em; color: var(--iv-header-text);
    transition: background-color .15s, color .15s; white-space: nowrap;
}
.header-dropdown__toggle:hover, .header-dropdown[open] > .header-dropdown__toggle { background-color: var(--iv-header-hover-bg); color: var(--iv-header-strong); }
.header-dropdown__toggle:focus-visible { outline: 2px solid var(--iv-header-strong); outline-offset: 2px; }
.header-dropdown__toggle svg { width: 1.25rem; height: 1.25rem; }
.header-dropdown__toggle .header-dropdown__chevron { width: 0.875rem; height: 0.875rem; transition: transform .2s var(--iv-ease); }
.header-dropdown[open] .header-dropdown__chevron { transform: rotate(180deg); }
.header-dropdown__label { display: none; }
.header-dropdown__panel {
    position: absolute; left: 0; top: calc(100% + 0.5rem); z-index: 45; min-width: 11rem; display: flex; flex-direction: column; gap: 0.125rem;
    border: 1px solid var(--iv-header-line); border-radius: var(--iv-radius-md); background-color: var(--iv-header-bg); padding: 0.375rem;
    box-shadow: 0 16px 32px -16px rgb(0 0 0 / 0.7); animation: iv-drop .18s var(--iv-ease) both;
}
.header-dropdown__panel--end { left: auto; right: 0; }
.header-dropdown__link {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-radius: var(--iv-radius-sm); padding: 0.5rem 0.75rem;
    font-family: var(--iv-font-body); font-size: 0.9375rem; font-weight: 600; color: var(--iv-header-text); white-space: nowrap;
    transition: background-color .15s, color .15s;
}
.header-dropdown__link:hover { background-color: var(--iv-header-hover-bg); color: var(--iv-header-strong); }
.header-dropdown__link:focus-visible { outline: 2px solid var(--iv-header-strong); outline-offset: -2px; }
.header-dropdown__link[aria-current] { background-color: var(--iv-header-line); color: var(--iv-header-strong); }
.header-dropdown__check { color: var(--iv-accent); }
/* Menü „Wir/FAQ“ nur am Computer – mobil stehen die Links im Menü-Knopf links */
.header-menu { display: none; }
@media (min-width: 1024px) { .header-menu { display: block; } }
@media (min-width: 1280px) { .header-dropdown__label { display: inline; } }
/* Sprachwahl: Weltkugel + kleines Kürzel, Menü mit „Deutsch“ / „Englisch“ */
.lang-menu__toggle { gap: 0.25rem; }
.lang-menu__code { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; color: var(--iv-header-muted); }
.lang-menu[open] .lang-menu__code, .lang-menu__toggle:hover .lang-menu__code { color: var(--iv-header-strong); }

/* Rechts: Textlinks mit Trennstrichen + Symbole (wie im Vorbild) */
.header-links { display: flex; align-items: center; }
.header-links > li { display: flex; align-items: center; }
.header-links > li + li::before { content: ""; display: none; width: 1px; height: 1.125rem; margin: 0 0.875rem; background-color: var(--iv-header-line); }
@media (min-width: 1280px) { .header-links > li + li::before { display: block; } }
.header-link {
    display: inline-flex; align-items: center; gap: 0.5rem; border-radius: var(--iv-radius-control); padding: 0.375rem;
    font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--iv-header-text); transition: color .15s, background-color .15s;
}
.header-link:hover, .header-link[aria-current="page"] { color: var(--iv-header-strong); background-color: var(--iv-header-hover-bg); }
.header-link:focus-visible { outline: 2px solid var(--iv-header-strong); outline-offset: 2px; }
.header-link:active { transform: scale(0.95); }
.header-link__icon { position: relative; display: inline-flex; }
.header-link__icon svg { width: 1.375rem; height: 1.375rem; }
.header-link__text { display: none; }
/* Texte neben den Symbolen erst ab 1280 px – darunter nur Symbole (mit aria-label), damit nichts das Logo überdeckt */
@media (min-width: 1280px) {
    .header-link__text { display: inline; }
    .header-link__icon svg { width: 1.125rem; height: 1.125rem; }
}
.header-link__badge {
    position: absolute; top: -0.5rem; right: -0.625rem; min-width: 1.125rem; border-radius: 9999px; background-color: var(--iv-accent);
    padding: 0 0.3125rem; text-align: center; font-family: var(--iv-font-body); font-size: 0.6875rem; line-height: 1.125rem; font-weight: 700; color: var(--iv-on-accent);
    animation: iv-pop .35s var(--iv-ease) both;
}
/* Sprachumschalter DE | EN (Header ab Tablet, im mobilen Menü als eigene Zeile) */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--iv-header-line); border-radius: var(--iv-radius-sm); padding: 0.125rem; }
.lang-switch__link {
    border-radius: 0.1875rem; padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
    color: var(--iv-header-muted); transition: color .15s, background-color .15s;
}
.lang-switch__link:hover { color: var(--iv-header-strong); }
.lang-switch__link[aria-current="true"] { background-color: var(--iv-header-strong); color: var(--iv-header-bg); }
.lang-switch__link:focus-visible { outline: 2px solid var(--iv-header-strong); outline-offset: 2px; }
.lang-switch--menu { margin: 0.5rem 0 0.25rem; gap: 0.125rem; }
.lang-switch--menu .lang-switch__link { padding: 0.375rem 0.75rem; font-size: 0.8125rem; letter-spacing: 0.01em; }
.lang-switch__icon { display: inline-flex; padding: 0 0.375rem 0 0.25rem; color: var(--iv-header-muted); }
.header-links__lang { display: none !important; }
@media (min-width: 640px) { .header-links__lang { display: flex !important; } }
.header-links__auth { display: none !important; }
@media (min-width: 640px) { .header-links__auth { display: flex !important; } }
.header-icon {
    display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: var(--iv-radius-control);
    color: var(--iv-header-text); transition: background-color .15s;
}
.header-icon:hover { background-color: var(--iv-header-hover-bg); }
.header-icon svg { width: 1.5rem; height: 1.5rem; }

/* Marken-Logo (Footer) */
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 0.625rem; }
.brand__logo { height: 4rem; width: 6.4rem; object-fit: cover; object-position: center; }
.brand--lg .brand__logo { height: 4.5rem; width: 7.2rem; }

.header-actions { display: flex; align-items: center; gap: 0.625rem; }
.icon-btn {
    position: relative; display: inline-flex; height: 2.5rem; width: 2.5rem; flex-shrink: 0; align-items: center; justify-content: center;
    border-radius: 9999px; background-color: var(--iv-surface-low); color: var(--iv-text); transition: background-color .15s, color .15s;
}
.icon-btn:hover { background-color: var(--iv-surface-mid); }
.icon-btn[aria-current="page"] { background-color: var(--iv-primary-soft); color: var(--iv-primary); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.icon-btn__badge {
    position: absolute; top: -0.25rem; right: -0.25rem; min-width: 1.125rem; border-radius: 9999px; background-color: var(--iv-primary);
    padding: 0.0625rem 0.3125rem; text-align: center; font-family: var(--iv-font-ui); font-size: 0.625rem; line-height: 0.875rem; font-weight: 700; color: var(--iv-on-primary);
}
.icon-btn--primary { background-color: var(--iv-primary); color: var(--iv-on-primary); }
.icon-btn--primary:hover { background-color: var(--iv-primary-hover); }
.pill-link {
    display: none; align-items: center; gap: 0.375rem; border-radius: 9999px; background-color: var(--iv-surface-low); padding: 0.5rem 1rem;
    font-family: var(--iv-font-ui); font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--iv-text);
    transition: background-color .15s;
}
.pill-link:hover { background-color: var(--iv-surface-mid); }
.pill-link svg { width: 1rem; height: 1rem; }
@media (min-width: 640px) { .pill-link { display: inline-flex; } }
.menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* ---------------------------------------------------------------------------
 * Footer (schwarz wie der Header)
 * ------------------------------------------------------------------------ */
.site-footer { margin-top: 5rem; background-color: var(--iv-footer-bg); color: var(--iv-footer-text); }
.site-footer__grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.site-footer__title { margin-bottom: 0.75rem; font-family: var(--iv-font-subheading); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iv-footer-strong); }
.site-footer__links > li + li { margin-top: 0.375rem; }
.site-footer__links a { font-size: 0.875rem; color: var(--iv-footer-muted); transition: color .15s, padding-left .2s var(--iv-ease); }
.site-footer__links a:hover { color: var(--iv-footer-strong); padding-left: 0.25rem; }
/* Widerrufsbutton: muss sich deutlich von den übrigen Links abheben (§ 356a BGB) */
.footer-withdraw {
    display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; border: 1px solid var(--iv-footer-outline); border-radius: var(--iv-radius-sm);
    padding: 0.5rem 0.875rem; font-size: 0.875rem; font-weight: 700; color: var(--iv-footer-strong); transition: background-color .15s, color .15s, transform .1s;
}
.footer-withdraw:hover { background-color: var(--iv-footer-strong); color: var(--iv-footer-bg); }
.footer-withdraw:active { transform: scale(0.97); }
.footer-withdraw:focus-visible { outline: 2px solid var(--iv-footer-strong); outline-offset: 2px; }
.withdraw-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; border: 1px solid var(--iv-border-strong); border-radius: var(--iv-radius-md); background-color: var(--iv-surface-low); padding: 1rem 1.25rem; }
.withdraw-box p { margin: 0; }
.withdrawal-receipt { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; font-size: 0.875rem; }
.withdrawal-receipt dt { color: var(--iv-text-muted); }
.withdrawal-receipt dd { font-weight: 500; color: var(--iv-text); overflow-wrap: anywhere; }
/* Artikel-Feld nur bei "Nur einzelne Artikel" (ohne :has-Unterstützung bleibt es sichtbar) */
@supports selector(:has(*)) {
    .withdrawal-scope:not(:has(input[value="partial"]:checked)) .withdrawal-scope__items { display: none; }
}
.site-footer__bottom { display: flex; flex-direction: column; gap: 1rem; border-top: 1px solid var(--iv-footer-line); padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: 0.8125rem; color: var(--iv-footer-muted); }
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer__legal a:hover { color: var(--iv-footer-strong); }
.site-footer .text-muted { color: var(--iv-footer-muted); }
.site-footer .chip { background-color: var(--iv-footer-hover-bg); color: var(--iv-footer-text); }
.site-footer :focus-visible { outline-color: var(--iv-footer-strong); }
/* Sprachumschalter in der Fußzeile: Farben der Fußzeile (kann von der Kopfzeile abweichen) */
.site-footer .lang-switch { border-color: var(--iv-footer-line); }
.site-footer .lang-switch__link { color: var(--iv-footer-muted); }
.site-footer .lang-switch__link:hover { color: var(--iv-footer-strong); }
.site-footer .lang-switch__link[aria-current="true"] { background-color: var(--iv-footer-strong); color: var(--iv-footer-bg); }

/* ---------------------------------------------------------------------------
 * Karten, Panels, Chips
 * ------------------------------------------------------------------------ */
.card { border-radius: var(--iv-radius-lg); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 1.5rem; box-shadow: var(--iv-shadow-card); }
@media (min-width: 768px) { .card { padding: 2rem; } }
.card-danger { border-color: #fecaca; }
.panel { border-radius: var(--iv-radius-lg); background-color: var(--iv-surface-low); padding: 1.5rem; }
@media (min-width: 768px) { .panel { padding: 2rem; } }
.panel-glow { position: relative; overflow: hidden; border-radius: var(--iv-radius-xl); border: 1px solid var(--iv-border); background-color: var(--iv-surface-low); padding: 2rem 1.5rem; }
@media (min-width: 768px) { .panel-glow { padding: 3.5rem; } }

.chip {
    display: inline-flex; align-items: center; gap: 0.375rem; border-radius: var(--iv-radius-sm); background-color: var(--iv-surface-low); padding: 0.3125rem 0.75rem;
    font-family: var(--iv-font-ui); font-size: 0.6875rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--iv-text-muted);
}
.chip svg { width: 0.875rem; height: 0.875rem; }
.chip-primary { background-color: var(--iv-primary); color: var(--iv-on-primary); }
.chip-active { border: 1px solid var(--iv-primary); background-color: var(--iv-primary-soft); color: var(--iv-text); }
.chip-led::before { content: ""; width: 0.375rem; height: 0.375rem; flex-shrink: 0; border-radius: 9999px; background-color: var(--iv-text); }

.trust-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.8125rem; color: var(--iv-text-muted); }
.trust-list li { display: inline-flex; align-items: center; gap: 0.375rem; }
.trust-list svg { width: 1rem; height: 1rem; color: var(--iv-primary); }

.feature { display: flex; gap: 1rem; border-radius: var(--iv-radius-lg); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 1.5rem; }
.feature__icon { display: inline-flex; height: 2.75rem; width: 2.75rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: var(--iv-radius-md); background-color: var(--iv-primary-soft); color: var(--iv-primary); }
.feature__icon svg { width: 1.25rem; height: 1.25rem; }

/* ---------------------------------------------------------------------------
 * Formulare (Pod-Inputs)
 * ------------------------------------------------------------------------ */
.field > * + * { margin-top: 0.375rem; }
.label { display: block; font-family: var(--iv-font-ui); font-size: 0.8125rem; line-height: 1.125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--iv-text); }
.input {
    display: block; width: 100%; border-radius: var(--iv-radius-control); border: 1px solid var(--iv-border); background-color: var(--iv-surface);
    padding: 0.6875rem 1.25rem; font-size: 0.9375rem; line-height: 1.375rem; color: var(--iv-text);
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
textarea.input { border-radius: var(--iv-radius-md); }
select.input { padding-right: 2.5rem; }
input[type="file"].input { border-radius: var(--iv-radius); padding: 0.625rem 0.75rem; }
.input::placeholder { color: var(--iv-text-subtle); }
.input:read-only { background-color: var(--iv-surface-low); }
.input:focus { border-color: var(--iv-primary); background-color: var(--iv-card); outline: none; box-shadow: var(--iv-ring); }
.input-error, .input-error:focus { border-color: var(--iv-error); }
.input-error:focus { box-shadow: 0 0 0 3px rgb(186 26 26 / 0.15); }
.input-sm { padding: 0.5rem 0.875rem; font-size: 0.875rem; }
.checkbox { width: 1.125rem; height: 1.125rem; flex-shrink: 0; accent-color: var(--iv-primary); }
.check-row { display: inline-flex; cursor: pointer; align-items: center; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--iv-text-muted); }
.hint { font-size: 0.8125rem; line-height: 1.25rem; color: var(--iv-text-subtle); }
.field-error { font-size: 0.8125rem; line-height: 1.25rem; font-weight: 500; color: var(--iv-error); }

/* Passwort anzeigen/verbergen (Auge) */
.password-field { position: relative; }
.password-field.has-toggle .input { padding-right: 3.25rem; }
.password-field__toggle {
    position: absolute; top: 50%; right: 0.375rem; display: inline-flex; height: 2.25rem; width: 2.25rem;
    transform: translateY(-50%); align-items: center; justify-content: center; border-radius: 9999px;
    color: var(--iv-text-subtle); transition: background-color .15s, color .15s;
}
.password-field__toggle:hover { background-color: var(--iv-surface-mid); color: var(--iv-text); }
.password-field__toggle[aria-pressed="true"] { color: var(--iv-primary); }
.password-field__toggle:focus-visible { outline: 2px solid var(--iv-primary); outline-offset: 0; }
.password-field__toggle[aria-pressed="true"] .password-field__show,
.password-field__toggle:not([aria-pressed="true"]) .password-field__hide { display: none; }
/* Browser-eigenes Auge (Edge) ausblenden, damit nur eins erscheint */
.password-field.has-toggle input::-ms-reveal, .password-field.has-toggle input::-ms-clear { display: none; }

/* Mengenauswahl */
.qty { display: inline-flex; align-items: center; border-radius: var(--iv-radius-control); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 0.25rem; }
.qty__input { width: 3rem; border: 0; background: transparent; text-align: center; font-family: var(--iv-font-ui); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--iv-text); -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }
.qty__btn { display: inline-flex; height: 2rem; width: 2rem; align-items: center; justify-content: center; border-radius: 9999px; color: var(--iv-text-muted); transition: background-color .15s; }
.qty__btn:hover { background-color: var(--iv-surface-low); color: var(--iv-text); }
.qty__btn svg { width: 1rem; height: 1rem; }
.qty__btn { font-size: 1.125rem; font-weight: 600; line-height: 1; }
.qty__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty__btn:disabled:hover { background-color: transparent; }

/* ---------------------------------------------------------------------------
 * Hinweise & Badges
 * ------------------------------------------------------------------------ */
.alert { border-radius: var(--iv-radius); border: 1px solid; padding: 0.875rem 1.125rem; font-size: 0.875rem; line-height: 1.375rem; }
.alert-success { border-color: #a7f3d0; background-color: var(--iv-success-soft); color: #064e3b; }
.alert-error { border-color: #fecaca; background-color: #fef2f2; color: #7f1d1d; }
.alert-warning { border-color: #fde68a; background-color: var(--iv-warning-soft); color: #78350f; }
.alert-info { border-color: var(--iv-border-strong); background-color: var(--iv-surface-low); color: var(--iv-text); }

.badge { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: var(--iv-radius-sm); padding: 0.1875rem 0.625rem; font-family: var(--iv-font-ui); font-size: 0.6875rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.04em; }
.badge-success { background-color: #d1fae5; color: #065f46; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-danger { background-color: #fee2e2; color: #991b1b; }
.badge-muted { background-color: var(--iv-surface-low); color: var(--iv-text-muted); }
.badge-brand { background-color: var(--iv-primary-soft); color: var(--iv-primary); }
.badge-solid { background-color: var(--iv-primary); color: var(--iv-on-primary); }

/* ---------------------------------------------------------------------------
 * Startseite
 * ------------------------------------------------------------------------ */
.hero { display: grid; align-items: center; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 4.5rem; padding-bottom: 4.5rem; } }
/* Dunkle "Bühne" für das Chrom-Logo; mix-blend-mode: screen lässt einen schwarzen
   Bildhintergrund verschwinden (wirkt auch bei transparentem PNG korrekt) */
.hero__visual, .logo-stage {
    position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate;
    background-color: #0a0a0a;
}
.hero__visual { aspect-ratio: 5 / 4; border-radius: var(--iv-radius-xl); border: 1px solid #27272a; }
.hero__visual img, .logo-stage img {
    width: 92%; max-width: 34rem; height: auto; aspect-ratio: 1.6 / 1; object-fit: cover;
    mix-blend-mode: screen;
}
.hero__visual--photo img { width: 100%; max-width: none; height: 100%; aspect-ratio: auto; mix-blend-mode: normal; filter: none; }
.logo-stage { border-radius: var(--iv-radius-md); padding: 0.75rem; }
.hero__float {
    position: absolute; left: 1.25rem; bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem;
    border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: rgb(255 255 255 / 0.92); padding: 0.5rem 1rem 0.5rem 0.5rem;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--iv-shadow-card);
}
.hero__float-icon { display: inline-flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center; border-radius: 9999px; background-color: var(--iv-primary-soft); color: var(--iv-primary); }
.hero__float-icon svg { width: 1.125rem; height: 1.125rem; }

/* Startbereich der Startseite: Inhalt mittig; optional Startbild als Hintergrund (App → „Design“).
   Das Bild selbst (mit Abdunkelung) setzt /medien/design.css – hier nur Aufbau und Textfarben. */
.hero-home { position: relative; isolation: isolate; }
.hero-home__inner {
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center;
    padding-top: 3rem; padding-bottom: 3rem;
}
@media (min-width: 1024px) { .hero-home__inner { padding-top: 4.5rem; padding-bottom: 4.5rem; } }
.hero-home__lead { max-width: 40rem; margin-left: auto; margin-right: auto; }
.hero-home__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.hero-home .trust-list { justify-content: center; padding-top: 0.5rem; }
/* Mehr Luft zwischen der Vertrauenszeile (Versand/Stripe/Widerruf) und den drei Vorteils-Kästen */
.home-benefits { margin-top: 2.5rem; }
@media (min-width: 1024px) { .home-benefits { margin-top: 4rem; } }
.hero-home--image + .home-benefits { margin-top: 1rem; }
@media (min-width: 1024px) { .hero-home--image + .home-benefits { margin-top: 1.5rem; } }
.hero-home--image {
    background-color: #0a0a0a; background-size: cover; background-position: center; background-repeat: no-repeat;
    color: #fff; margin-bottom: 3rem;
}
.hero-home--image .hero-home__inner { min-height: clamp(24rem, 62vh, 42rem); justify-content: center; }
.hero-home--image .display, .hero-home--image .display-accent { color: #fff; text-shadow: 0 2px 18px rgb(0 0 0 / 0.45); }
.hero-home--image .display-accent { color: var(--iv-accent-soft); }
.hero-home--image .lead { color: rgb(255 255 255 / 0.88); text-shadow: 0 1px 10px rgb(0 0 0 / 0.5); }
.hero-home--image .trust-list { color: rgb(255 255 255 / 0.85); }
.hero-home--image .trust-list svg { color: #fff; }
.hero-home--image .chip { background-color: rgb(0 0 0 / 0.45); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-home--image .chip-led::before { background-color: #fff; }
.hero-home--image {
    --iv-btn-second-bg: rgb(255 255 255 / 0.9); --iv-btn-second-color: var(--iv-text); --iv-btn-second-hover-bg: #fff;
    --iv-btn-primary-bg: #fff; --iv-btn-primary-color: var(--iv-text); --iv-btn-primary-hover-bg: var(--iv-accent-soft);
    --iv-btn-focus: #fff;
}

/* Kategorie-Kachel mit Bild und Verlauf */
.category-tile {
    position: relative; display: flex; min-height: 20rem; flex-direction: column; justify-content: flex-end; overflow: hidden;
    border-radius: var(--iv-radius-lg); background-color: #0b1c30; color: #fff; isolation: isolate;
    box-shadow: var(--iv-shadow-card); transition: box-shadow .3s, transform .3s;
}
.category-tile:hover { box-shadow: var(--iv-shadow-lift); transform: translateY(-2px); }
.category-tile__media { position: absolute; inset: 0; z-index: -2; height: 100%; width: 100%; object-fit: cover; transition: transform .6s; }
.category-tile:hover .category-tile__media { transform: scale(1.04); }
.category-tile__placeholder { position: absolute; inset: 0; z-index: -2; background-color: #18181b; }
/* Dezente Abdunklung unten, damit der Text auf Fotos lesbar bleibt */
.category-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(180deg, rgb(10 10 10 / 0) 40%, rgb(10 10 10 / 0.8) 100%); }
.category-tile__body { padding: 1.5rem; }
.category-tile__title { font-family: var(--iv-font-subheading); font-size: 1.375rem; line-height: 1.75rem; font-weight: 600; }
.category-tile__text { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.375rem; color: rgb(255 255 255 / 0.82); }
.category-tile__cta { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.375rem; font-family: var(--iv-font-ui); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.category-tile__cta svg { width: 1rem; height: 1rem; transition: transform .2s; }
.category-tile:hover .category-tile__cta svg { transform: translateX(3px); }

/* ---------------------------------------------------------------------------
 * Shop: Kategorie-Leiste, Abschnitte, Produktkachel
 * ------------------------------------------------------------------------ */
.category-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.category-pill {
    display: inline-flex; align-items: center; gap: 0.375rem; border-radius: var(--iv-radius-control); border: 1px solid var(--iv-border); background-color: var(--iv-card);
    padding: 0.5rem 1.125rem; font-family: var(--iv-font-ui); font-size: 0.8125rem; line-height: 1.25rem; font-weight: 600; letter-spacing: 0.02em;
    color: var(--iv-text-muted); transition: color .15s, background-color .15s, border-color .15s;
}
.category-pill:hover { border-color: var(--iv-sky); color: var(--iv-primary); }
.category-pill[aria-current="page"] { border-color: var(--iv-primary); background-color: var(--iv-primary); color: var(--iv-on-primary); }
.category-pill__count { border-radius: 9999px; background-color: rgb(255 255 255 / 0.2); padding: 0 0.4375rem; font-size: 0.6875rem; }
.category-pill:not([aria-current="page"]) .category-pill__count { background-color: var(--iv-surface-low); }

.shop-hero { border-radius: var(--iv-radius-xl); }
.category-section + .category-section { margin-top: 4rem; }
.category-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; border-bottom: 1px solid var(--iv-border); padding-bottom: 1rem; }
.category-heading h2 { font-family: var(--iv-font-heading); font-size: 1.75rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--iv-text); }
@media (min-width: 768px) { .category-heading h2 { font-size: 2.25rem; line-height: 2.75rem; } }

.product-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-tile {
    position: relative; display: flex; height: 100%; flex-direction: column; overflow: hidden;
    border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-card);
    box-shadow: var(--iv-shadow-card); transition: box-shadow .3s, transform .3s, border-color .3s;
}
.product-tile:hover { border-color: var(--iv-surface-high); box-shadow: var(--iv-shadow-lift); transform: translateY(-2px); }
.product-tile__media { position: relative; display: block; margin: 0.75rem 0.75rem 0; overflow: hidden; border-radius: var(--iv-radius); background-color: var(--iv-surface-low); aspect-ratio: 4 / 3; }
.product-tile__media img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s; }
.product-tile:hover .product-tile__media img { transform: scale(1.05); }
.product-tile__media .image-placeholder { height: 100%; border-radius: 0; }
.product-tile__flag { position: absolute; top: 0.625rem; right: 0.625rem; }
.product-tile__chip { position: absolute; left: 0.625rem; bottom: 0.625rem; border-radius: var(--iv-radius-sm); background-color: rgb(255 255 255 / 0.92); padding: 0.1875rem 0.625rem; font-family: var(--iv-font-ui); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.04em; color: var(--iv-text); }
.product-tile__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 1rem 1.25rem 0; }
.product-tile__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.product-tile__title { margin-top: 0.375rem; font-family: var(--iv-font-subheading); font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; color: var(--iv-text); transition: color .15s; }
.product-tile:hover .product-tile__title { color: var(--iv-primary); }
.product-tile__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-tile__desc { margin-top: 0.375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.8125rem; line-height: 1.25rem; color: var(--iv-text-muted); }
.product-tile__footer { margin-top: auto; padding: 1rem 1.25rem 1.25rem; }
.product-tile__price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.875rem; padding-top: 1rem; }
.product-tile__price { font-size: 1.5rem; line-height: 1.75rem; }
.product-tile__compare { font-size: 0.8125rem; color: var(--iv-text-subtle); text-decoration: line-through; }
.product-tile__action { position: relative; z-index: 2; }

.image-placeholder {
    display: flex; width: 100%; align-items: center; justify-content: center; border-radius: var(--iv-radius);
    background-color: var(--iv-surface-low);
    font-family: var(--iv-font-ui); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--iv-border-strong);
}

.info-strip { display: grid; gap: 1.5rem; border-radius: var(--iv-radius-lg); background-color: var(--iv-surface-low); padding: 1.5rem; }
@media (min-width: 768px) { .info-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 2rem; } }
.info-strip__item { display: flex; align-items: flex-start; gap: 0.875rem; }

/* ---------------------------------------------------------------------------
 * Produktseite
 * ------------------------------------------------------------------------ */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--iv-text-muted); }
.breadcrumb a:hover { color: var(--iv-primary); }
.breadcrumb svg { width: 0.875rem; height: 0.875rem; }
.breadcrumb [aria-current="page"] { color: var(--iv-primary); font-weight: 500; }

.product-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }
.product-stage { overflow: hidden; border-radius: var(--iv-radius-lg); border: 1px solid var(--iv-border); background-color: var(--iv-surface-low); aspect-ratio: 1 / 1; }
.product-stage img { height: 100%; width: 100%; object-fit: cover; }
.product-stage .image-placeholder { height: 100%; border-radius: 0; font-size: 1.5rem; }
.buy-box { border-radius: var(--iv-radius-lg); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 1.5rem; box-shadow: var(--iv-shadow-lift); }
@media (min-width: 768px) { .buy-box { padding: 2rem; } }
@media (min-width: 1024px) { .buy-box { position: sticky; top: 6.5rem; } }
.price-box { border-radius: var(--iv-radius-md); background-color: var(--iv-surface-low); padding: 1.25rem 1.5rem; }
.price-box__amount { font-size: 2.5rem; line-height: 1; }
.variant-choices { display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .variant-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.variant-option {
    display: flex; cursor: pointer; align-items: center; gap: 0.625rem; border-radius: var(--iv-radius-control); border: 1px solid var(--iv-border); background-color: var(--iv-surface);
    padding: 0.625rem 1rem; font-size: 0.8125rem; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.variant-option:hover { border-color: var(--iv-sky); }
.variant-option:has(:checked) { border-color: var(--iv-primary); background-color: var(--iv-primary-soft); box-shadow: var(--iv-glow); }
.variant-option:has(:focus-visible) { outline: 2px solid var(--iv-primary); outline-offset: 2px; }
.variant-option input { accent-color: var(--iv-primary); }
.variant-option__name { flex: 1 1 auto; font-weight: 500; color: var(--iv-text); }
.variant-option__price { font-family: var(--iv-font-price); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--iv-text); }
.prose-product { font-size: 0.9375rem; line-height: 1.75rem; color: var(--iv-text-muted); }

/* Paket-Inhalt (Produktseite) */
.bundle-list { display: grid; gap: 0.5rem; }
.bundle-list__item { display: flex; align-items: center; gap: 0.75rem; border-radius: var(--iv-radius); border: 1px solid var(--iv-border); background-color: var(--iv-surface); padding: 0.5rem 0.875rem 0.5rem 0.5rem; }
.bundle-list__image { display: block; height: 2.75rem; width: 2.75rem; flex-shrink: 0; overflow: hidden; border-radius: 0.75rem; background-color: var(--iv-surface-low); }
.bundle-list__image img { height: 100%; width: 100%; object-fit: cover; }
.bundle-list__image .image-placeholder { height: 100%; border-radius: 0; font-size: 0.5rem; }
.badge svg { width: 0.875rem; height: 0.875rem; }
.inline-icon { display: inline-block; vertical-align: -0.15em; }

.gallery-thumbs { margin-top: 0.75rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
.gallery-thumb { display: block; overflow: hidden; border-radius: var(--iv-radius); border: 2px solid transparent; background-color: var(--iv-surface-low); transition: border-color .15s; }
.gallery-thumb img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--iv-border-strong); }
.gallery-thumb[aria-current="true"] { border-color: var(--iv-primary); }

/* Farben (Produktseite): runde Farbfelder – Farbe kommt über das SVG-Attribut fill (CSP ohne style-Attribute) */
.color-choice__current { font-weight: 500; letter-spacing: normal; text-transform: none; color: var(--iv-text); }
.color-swatches { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.color-swatch {
    position: relative; display: inline-flex; height: 2.5rem; min-width: 2.5rem; cursor: pointer; align-items: center; justify-content: center;
    border-radius: 9999px; border: 2px solid transparent; padding: 2px; transition: border-color .15s, box-shadow .15s;
}
.color-swatch__input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.color-swatch__dot { display: block; height: 100%; width: 100%; }
.color-swatch__dot circle { stroke: rgb(15 23 42 / 0.18); stroke-width: 1.5; }
.color-swatch:hover { border-color: var(--iv-border-strong); }
.color-swatch:has(:checked) { border-color: var(--iv-primary); box-shadow: var(--iv-glow); }
.color-swatch:has(:focus-visible) { outline: 2px solid var(--iv-primary); outline-offset: 2px; }
/* Farbe ohne Farbton: Name als Text-Chip */
.color-swatch--text { border-color: var(--iv-border); background-color: var(--iv-surface); padding: 0 0.875rem; }
.color-swatch__name { font-size: 0.8125rem; font-weight: 500; color: var(--iv-text); }
/* Ganze Farbe ausverkauft: Diagonale über dem Feld (wählbar bleibt sie – Bilder ansehen) */
.color-swatch.is-soldout { opacity: 0.6; }
.color-swatch.is-soldout::after {
    content: ""; position: absolute; left: 15%; right: 15%; top: 50%; height: 2px; border-radius: 1px;
    background-color: var(--iv-text-muted); transform: rotate(-45deg); pointer-events: none;
}
.color-swatch--text.is-soldout::after { left: 0.5rem; right: 0.5rem; transform: none; }
/* Größen der gewählten Farbe: der Farbteil der Bezeichnung („Schwarz / “) steht schon bei den Farbfeldern */
.is-color-filtered .variant-option__color { display: none; }

/* Farbpunkte auf der Produktkachel (max. 5 + „+N“) */
.color-dots { margin-top: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3125rem; }
.color-dot { display: inline-flex; height: 0.875rem; width: 0.875rem; }
.color-dot svg { display: block; height: 100%; width: 100%; }
.color-dot circle { stroke: rgb(15 23 42 / 0.2); stroke-width: 1.5; }
.color-dot--plain circle { stroke-dasharray: 2 2; }
.color-dots__more { font-size: 0.6875rem; font-weight: 600; line-height: 1; color: var(--iv-text-muted); }

/* ---------------------------------------------------------------------------
 * Warenkorb & Kasse
 * ------------------------------------------------------------------------ */
.steps { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; border-radius: var(--iv-radius-lg); background-color: var(--iv-surface-low); padding: 1.25rem 1rem; }
@media (min-width: 768px) { .steps { padding: 1.5rem 2.5rem; } }
.step { display: flex; flex: 1 1 0%; flex-direction: column; align-items: center; gap: 0.375rem; text-align: center; }
.step__dot { display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: 9999px; background-color: var(--iv-surface-high); color: var(--iv-text-subtle); }
.step__dot svg { width: 1.125rem; height: 1.125rem; }
.step__label { font-family: var(--iv-font-ui); font-size: 0.75rem; font-weight: 600; color: var(--iv-text-subtle); }
@media (min-width: 768px) { .step__label { font-size: 0.875rem; } }
.step--done .step__dot { background-color: var(--iv-primary-soft); color: var(--iv-primary); }
.step--current .step__dot { background-color: var(--iv-primary); color: var(--iv-on-primary); box-shadow: var(--iv-glow); }
.step--current .step__label, .step--done .step__label { color: var(--iv-primary); }
.step--todo .step__dot { background-color: var(--iv-surface-high); color: var(--iv-text-subtle); }

.shipping-meter { border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-surface-low); padding: 1rem 1.25rem; }
.meter { display: block; width: 100%; height: 0.375rem; overflow: hidden; border: 0; border-radius: 9999px; background-color: var(--iv-surface-high); -webkit-appearance: none; appearance: none; }
.meter::-webkit-progress-bar { border-radius: 9999px; background-color: var(--iv-surface-high); }
.meter::-webkit-progress-value { border-radius: 9999px; background-color: var(--iv-primary); }
.meter::-moz-progress-bar { border-radius: 9999px; background-color: var(--iv-primary); }

.cart-line { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 1rem; box-shadow: var(--iv-shadow-card); }
@media (min-width: 768px) { .cart-line { grid-template-columns: auto 1fr auto auto; gap: 1.25rem; padding: 1rem 1.25rem; } }
.cart-line__image { height: 5rem; width: 5rem; overflow: hidden; border-radius: var(--iv-radius-md); background-color: var(--iv-surface-low); }
.cart-line__image img { height: 100%; width: 100%; object-fit: cover; }
.cart-line__image .image-placeholder { height: 100%; border-radius: 0; font-size: 0.625rem; }
.cart-line__controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
@media (min-width: 768px) { .cart-line__controls { grid-column: auto; } }
.cart-line__total { text-align: right; }

/* Kundenkonto: Unternavigation, Kurzüberblick, Bestell-Liste */
.account-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin-bottom: 2rem; border-bottom: 1px solid var(--iv-border); }
.account-nav__link {
    display: inline-flex; align-items: center; gap: 0.375rem; margin-bottom: -1px; border-bottom: 2px solid transparent; padding: 0.625rem 0.875rem;
    font-size: 0.875rem; font-weight: 600; color: var(--iv-text-muted); transition: color .15s, border-color .15s;
}
.account-nav__link:hover { color: var(--iv-text); }
.account-nav__link[aria-current="page"] { border-color: var(--iv-text); color: var(--iv-text); }
.account-nav__logout { margin-left: auto; }
.account-nav__count {
    min-width: 1.25rem; border-radius: 9999px; background-color: var(--iv-accent); padding: 0 0.375rem; text-align: center;
    font-size: 0.6875rem; line-height: 1.25rem; font-weight: 700; color: var(--iv-on-accent);
}
.account-nav__count[hidden] { display: none; }
.account-nav__link--admin { color: var(--iv-admin); }
.account-nav__link--admin:hover { color: var(--iv-admin); border-color: var(--iv-admin); }
.account-cards { display: grid; gap: 1rem; }
@media (min-width: 768px) { .account-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.account-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 1.25rem; }
.account-card__title { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--iv-font-subheading); font-size: 1rem; font-weight: 600; color: var(--iv-text); }
.account-card__text { flex: 1 1 auto; font-size: 0.875rem; font-style: normal; line-height: 1.5rem; color: var(--iv-text-muted); overflow-wrap: anywhere; }
.order-list { display: grid; gap: 0.75rem; }
.order-list__item {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem 1rem; border-radius: var(--iv-radius-md);
    border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 1rem 1.25rem;
}
.order-list__status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.375rem; }
.order-list__total { font-size: 1.125rem; }
.order-list__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.75rem; }
@media (min-width: 768px) {
    .order-list__item { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto minmax(0, 1.3fr); }
    .order-list__status { justify-content: flex-start; }
}

/* Support-Tickets: Nachrichtenverlauf */
.ticket-thread { display: grid; gap: 1rem; }
.ticket-message { margin-right: 2.5rem; border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 1rem 1.25rem; }
.ticket-message--staff { margin-right: 0; margin-left: 2.5rem; border-color: var(--iv-border-strong); background-color: var(--iv-surface-low); }
.ticket-message__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.8125rem; color: var(--iv-text-muted); }
.ticket-message__meta strong { color: var(--iv-text); }
.ticket-message__body { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.6; color: var(--iv-text); overflow-wrap: anywhere; }
.ticket-photos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.ticket-photos img { width: 6rem; height: 6rem; border-radius: var(--iv-radius-sm); border: 1px solid var(--iv-border); object-fit: cover; }

/* Design-Anfrage im Ticket: Angebot (annehmen & bezahlen) und Entwürfe (Favorit wählen) */
.design-offer--open { border-color: var(--iv-primary); }
.design-offer__prices { display: grid; gap: 0.375rem; }
.design-offer__prices > div { display: flex; justify-content: space-between; gap: 1rem; }
.design-offer__prices dt { color: var(--iv-text-muted); }
.design-offer__prices dd { margin: 0; font-weight: 600; white-space: nowrap; }
.design-offer__total { border-top: 1px solid var(--iv-border); padding-top: 0.5rem; font-size: 1rem; }
.design-offer__total dt { color: var(--iv-text); font-weight: 700; }
.design-proposals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .design-proposals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.design-proposal { display: flex; flex-direction: column; gap: 0.5rem; border: 1px solid var(--iv-border); border-radius: var(--iv-radius-md); padding: 0.5rem; background-color: var(--iv-surface); }
.design-proposal.is-chosen { border: 2px solid var(--iv-success); }
.design-proposal__image { display: block; border-radius: var(--iv-radius-sm); overflow: hidden; background-color: var(--iv-surface-low); }
.design-proposal__image img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.design-proposal__choice { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.design-proposal__choice input { width: 1rem; height: 1rem; accent-color: var(--iv-primary); }
@media (max-width: 639px) { .ticket-message, .ticket-message--staff { margin-left: 0; margin-right: 0; } }

.summary-card { border-radius: var(--iv-radius-lg); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 1.5rem; box-shadow: var(--iv-shadow-lift); }
@media (min-width: 768px) { .summary-card { padding: 2rem; } }
@media (min-width: 1024px) { .summary-card { position: sticky; top: 6.5rem; } }
.price-summary { font-size: 0.875rem; line-height: 1.25rem; }
.price-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; }
.price-summary dt { color: var(--iv-text-muted); }
.price-summary dd { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--iv-text); text-align: right; }
.price-summary > .price-summary-total { margin-top: 0.5rem; border-top: 1px solid var(--iv-border); padding-top: 1rem; }
.price-summary-total dt { font-family: var(--iv-font-ui); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iv-text-subtle); }
.price-summary-total dd { font-family: var(--iv-font-price); font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; letter-spacing: -0.02em; }

.check-list > li { display: flex; gap: 0.75rem; }
.check-list > li + li { margin-top: 0.875rem; }
.check-list svg { margin-top: 0.125rem; width: 1.125rem; height: 1.125rem; flex-shrink: 0; color: var(--iv-primary); }

/* ---------------------------------------------------------------------------
 * Anmeldung / Registrierung
 * ------------------------------------------------------------------------ */
.auth-page { position: relative; overflow: hidden; background-color: var(--iv-surface); }
.auth-layout { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .auth-layout { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 2.5rem; padding-top: 4rem; padding-bottom: 4rem; } }
.auth-card { border-radius: var(--iv-radius-xl); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 1.75rem; box-shadow: var(--iv-shadow-lift); }
@media (min-width: 768px) { .auth-card { padding: 3rem; } }
.auth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem; border-radius: var(--iv-radius-md); background-color: var(--iv-surface-low); padding: 0.375rem; }
.auth-tab { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: var(--iv-radius-control); padding: 0.625rem 1rem; font-family: var(--iv-font-ui); font-size: 0.875rem; font-weight: 600; color: var(--iv-text-muted); transition: background-color .15s, color .15s; }
.auth-tab:hover { color: var(--iv-text); }
.auth-tab[aria-current="page"] { background-color: var(--iv-primary); color: var(--iv-on-primary); }
.auth-tab svg { width: 1.125rem; height: 1.125rem; }
.benefit { display: flex; gap: 1rem; border-radius: var(--iv-radius-lg); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 1.25rem 1.5rem; box-shadow: var(--iv-shadow-card); }
.benefit + .benefit { margin-top: 1rem; }

/* ---------------------------------------------------------------------------
 * Weitere Bausteine
 * ------------------------------------------------------------------------ */
.table-wrapper { overflow-x: auto; border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-card); }
.table { min-width: 100%; text-align: left; font-size: 0.875rem; line-height: 1.25rem; }
.table th { background-color: var(--iv-surface-low); padding: 0.75rem 1rem; font-family: var(--iv-font-ui); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--iv-text-muted); white-space: nowrap; }
.table td { padding: 0.75rem 1rem; color: var(--iv-text-muted); }
.table tbody tr { border-top: 1px solid var(--iv-border); }

.code-block { border-radius: var(--iv-radius-sm); background-color: var(--iv-surface-low); padding: 0.5rem 0.75rem; font-family: var(--font-mono, monospace); font-size: 0.875rem; letter-spacing: 0.05em; word-break: break-all; color: var(--iv-text); user-select: all; }
.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; font-family: var(--font-mono, monospace); font-size: 1rem; letter-spacing: 0.05em; color: var(--iv-text); }
.code-grid > li { border-radius: var(--iv-radius-sm); background-color: var(--iv-surface-low); padding: 0.5rem 0.75rem; text-align: center; user-select: all; }

.prose-legal h1 { margin-bottom: 1.5rem; font-family: var(--iv-font-heading); font-size: 2rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--iv-text); }
.prose-legal h2 { margin-top: 2rem; margin-bottom: 0.5rem; font-family: var(--iv-font-heading); font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: var(--iv-text); }
.prose-legal h3 { margin-top: 1.5rem; margin-bottom: 0.375rem; font-family: var(--iv-font-subheading); font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: var(--iv-text); }
.prose-legal p, .prose-legal li { line-height: 1.7; color: var(--iv-text-muted); overflow-wrap: anywhere; }
.prose-legal * + p, .prose-legal * + ul { margin-top: 0.75rem; }
.prose-legal ul { list-style: disc; padding-left: 1.25rem; }
.prose-legal li + li { margin-top: 0.25rem; }
.prose-legal li::marker { color: var(--iv-border-strong); }
.prose-legal strong { font-weight: 600; color: var(--iv-text); }
.prose-legal a:not(.btn) { font-weight: 500; color: var(--iv-primary); text-decoration: underline; }

/* Admin: aufklappbare englische Felder */
.admin-en { border-radius: var(--iv-radius-md); border: 1px dashed var(--iv-border-strong); padding: 0.75rem 1rem; }
.admin-en > summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--iv-text); }

/* Admin: E-Mail-Design – Farbwähler */
.mail-colors { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.mail-color { display: flex; align-items: center; gap: 0.625rem; border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); padding: 0.5rem 0.75rem; font-size: 0.8125rem; color: var(--iv-text); cursor: pointer; }
.mail-color input[type="color"] { width: 2.25rem; height: 2.25rem; flex-shrink: 0; border: 1px solid var(--iv-border); border-radius: var(--iv-radius-sm); background: none; padding: 0; cursor: pointer; }
.mail-color input[aria-invalid="true"] { outline: 2px solid #dc2626; }

/* Admin: Rechtliches */
.legal-editor { min-height: 28rem; resize: vertical; font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.8125rem; line-height: 1.6; }
.legal-preview { padding: 2rem; }
.format-help { display: grid; grid-template-columns: auto 1fr; gap: 0.375rem 0.75rem; align-items: baseline; }
.format-help dt { border-radius: var(--iv-radius-sm); background-color: var(--iv-surface-low); padding: 0.0625rem 0.375rem; font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.75rem; color: var(--iv-text); white-space: nowrap; }
.format-help dd { color: var(--iv-text-muted); }

.strength-meter { margin-top: 0.5rem; height: 0.375rem; width: 100%; overflow: hidden; border-radius: 9999px; background-color: var(--iv-surface-high); }
.strength-meter-bar { height: 100%; width: 0; border-radius: 9999px; background-color: #ef4444; transition: width .2s, background-color .2s; }
.strength-meter-bar[data-score="1"] { width: 25%; background-color: #ef4444; }
.strength-meter-bar[data-score="2"] { width: 50%; background-color: #f59e0b; }
.strength-meter-bar[data-score="3"] { width: 75%; background-color: #10b981; }
.strength-meter-bar[data-score="4"] { width: 100%; background-color: #059669; }

/* Wartungsseite */
.maintenance-page {
    display: flex; min-height: 100%; align-items: center; justify-content: center; padding: 2rem 1rem;
    background-color: #0a0a0a;
}
.maintenance-page__inner { width: 100%; max-width: 32rem; }

/* Wartungsseite: „Willst du benachrichtigt werden, wenn der Shop online ist?“ */
.launch-notify { display: grid; gap: 0.75rem; border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-surface); padding: 1rem 1.125rem; }
.launch-notify__title { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--iv-primary); }
.launch-notify__title svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.launch-notify__check { display: flex; align-items: flex-start; gap: 0.625rem; cursor: pointer; font-size: 0.875rem; line-height: 1.25rem; color: var(--iv-text-muted); }
.launch-notify__check .checkbox { margin-top: 0.125rem; flex-shrink: 0; }
.launch-notify__row { display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 480px) { .launch-notify__row { flex-direction: row; } .launch-notify__row .input { flex: 1 1 auto; min-width: 0; } }

/* „Powered by Ivalox Systems“ – unten auf jeder Seite (Footer) bzw. unter der Wartungsseite */
.powered-by { margin: 0; font-size: 0.75rem; letter-spacing: 0.02em; color: var(--iv-footer-muted); }
.powered-by--dark { margin-top: 1.25rem; text-align: center; color: #71717a; }

/* Promo-Code im Warenkorb */
.promo-box { border-radius: var(--iv-radius-md); border: 1px dashed var(--iv-border-strong); background-color: var(--iv-surface); padding: 0.875rem 1rem; }
.promo-box__applied { display: flex; align-items: center; gap: 0.75rem; }
.promo-box__icon { display: inline-flex; flex-shrink: 0; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center; border-radius: 9999px; background-color: var(--iv-primary); color: var(--iv-on-primary); }
.promo-box__icon svg { width: 1rem; height: 1rem; }
.price-summary-discount dt, .price-summary-discount dd { color: var(--iv-success); font-weight: 600; }

/* Betriebsurlaub – Hinweisleiste über dem Header */
.vacation-bar {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; text-align: center;
    background-color: var(--iv-warning-soft); border-bottom: 1px solid #fde68a; color: var(--iv-warning);
    padding: 0.5rem 1rem; font-size: 0.8125rem; line-height: 1.4;
}
.vacation-bar svg { flex-shrink: 0; }
.vacation-bar strong { color: #78350f; }
.vacation-bar__note { display: block; color: #78350f; }
@media (min-width: 640px) { .vacation-bar__note { display: inline; margin-left: 0.25rem; } }

/* Design It Yourself (/custom) */
.diy-hero { background-color: #0a0a0a; color: #fff; padding: 2.5rem 0; }
.diy-hero__grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .diy-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 4rem; } }
.diy-hero__eyebrow { color: var(--iv-accent); }
.diy-hero__title { margin-top: 0.75rem; font-family: var(--iv-font-heading); font-size: 2.25rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.diy-hero__lead { margin-top: 1rem; max-width: 38rem; font-size: 1.0625rem; line-height: 1.7; color: #d4d4d8; }
.diy-hero__cta { margin-top: 1.5rem; width: 100%; background-color: #fff; color: #0a0a0a; }
.diy-hero__cta:hover { background-color: #e4e4e7; }
.diy-hero__cta:focus-visible { outline-color: #fff; }
@media (min-width: 640px) { .diy-hero__cta { width: auto; } }
@media (min-width: 768px) { .diy-hero { padding: 4.5rem 0; } .diy-hero__title { font-size: 3.25rem; } }

.diy-steps { display: grid; gap: 0.75rem; list-style: none; padding: 0; }
@media (min-width: 768px) and (max-width: 1023.98px) { .diy-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.diy-step { display: flex; align-items: center; gap: 0.875rem; border: 1px solid #27272a; border-radius: var(--iv-radius-lg); background-color: #18181b; padding: 1rem 1.125rem; }
.diy-step__number {
    display: inline-flex; flex-shrink: 0; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center;
    border-radius: 9999px; background-color: #fff; color: #0a0a0a; font-family: var(--iv-font-ui); font-weight: 700;
}
.diy-step__text { display: flex; flex-direction: column; gap: 0.125rem; font-size: 0.875rem; line-height: 1.4; color: #a1a1aa; }
.diy-step__text strong { font-family: var(--iv-font-subheading); font-size: 1rem; color: #fff; }

.diy-body { padding-top: 2rem; padding-bottom: 2rem; scroll-margin-top: 5rem; }
@media (min-width: 1024px) { .diy-body { padding-top: 3.5rem; padding-bottom: 3.5rem; scroll-margin-top: 6rem; } }
.diy-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .diy-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } .diy-aside { position: sticky; top: 6rem; } }
.diy-form { display: grid; gap: 1.25rem; }
.diy-login { display: flex; gap: 1rem; margin-bottom: 1.25rem; border-color: var(--iv-primary); }

.diy-section { min-width: 0; margin: 0; }
.diy-section[disabled] { opacity: 0.6; }
/* legend sitzt sonst auf dem Rahmen der Karte: float nimmt sie in den Inhalt */
.diy-section__head { float: left; width: 100%; display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--iv-border); padding: 0 0 1rem; }
.diy-section__head + * { clear: both; }
.diy-section__number {
    display: inline-flex; flex-shrink: 0; height: 2rem; width: 2rem; align-items: center; justify-content: center;
    border-radius: 9999px; background-color: var(--iv-primary); color: var(--iv-on-primary); font-family: var(--iv-font-ui); font-weight: 700; font-size: 0.875rem;
}
.diy-section__title { display: block; font-family: var(--iv-font-subheading); font-size: 1.125rem; font-weight: 600; color: var(--iv-text); }
.diy-section__hint { display: block; margin-top: 0.125rem; font-size: 0.875rem; line-height: 1.375rem; color: var(--iv-text-muted); }

.diy-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
@media (min-width: 640px) { .diy-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.diy-product {
    position: relative; display: flex; cursor: pointer; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center;
    border: 1px solid var(--iv-border); border-radius: var(--iv-radius-lg); background-color: var(--iv-surface); padding: 1.125rem 0.75rem;
    transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s;
}
.diy-product:hover { border-color: var(--iv-sky); transform: translateY(-1px); }
.diy-product input { position: absolute; opacity: 0; pointer-events: none; }
.diy-product:has(:checked) { border-color: var(--iv-primary); background-color: var(--iv-primary-soft); box-shadow: var(--iv-glow); }
.diy-product:has(:focus-visible) { outline: 2px solid var(--iv-primary); outline-offset: 2px; }
.diy-product__icon {
    display: inline-flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center;
    border-radius: 9999px; background-color: var(--iv-card); border: 1px solid var(--iv-border); color: var(--iv-primary);
}
.diy-product:has(:checked) .diy-product__icon { background-color: var(--iv-primary); border-color: var(--iv-primary); color: var(--iv-on-primary); }
.diy-product__icon svg { width: 1.25rem; height: 1.25rem; }
.diy-product__name { font-weight: 600; font-size: 0.9375rem; line-height: 1.25rem; color: var(--iv-text); }

.diy-drop {
    position: relative; display: flex; cursor: pointer; flex-direction: column; align-items: center; gap: 0.375rem; text-align: center;
    border: 2px dashed var(--iv-border-strong); border-radius: var(--iv-radius-lg); background-color: var(--iv-surface); padding: 2rem 1rem;
    transition: border-color .15s, background-color .15s;
}
.diy-drop:hover, .diy-drop:focus-within { border-color: var(--iv-primary); background-color: var(--iv-primary-soft); }
.diy-drop--error { border-color: var(--iv-error); }
.diy-drop__icon { display: inline-flex; height: 3rem; width: 3rem; align-items: center; justify-content: center; border-radius: 9999px; background-color: var(--iv-primary); color: var(--iv-on-primary); }
.diy-drop__icon svg { width: 1.375rem; height: 1.375rem; transform: rotate(180deg); }
.diy-drop__title { font-family: var(--iv-font-subheading); font-weight: 600; color: var(--iv-text); }
.diy-drop__hint { font-size: 0.8125rem; color: var(--iv-text-muted); }
.diy-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.diy-drop__files { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin-top: 0.5rem; }
.diy-drop__files:empty { display: none; }
.diy-file { display: inline-flex; align-items: center; max-width: 100%; border-radius: 9999px; background-color: var(--iv-card); border: 1px solid var(--iv-border); padding: 0.25rem 0.75rem; font-size: 0.75rem; color: var(--iv-text); }
.diy-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.diy-submit { display: grid; gap: 1rem; border: 1px solid var(--iv-border); border-radius: var(--iv-radius-lg); background-color: var(--iv-surface-low); padding: 1.25rem; }
.diy-submit p { min-width: 0; overflow-wrap: anywhere; }
.diy-submit .btn { width: 100%; }
@media (min-width: 640px) {
    .diy-submit { display: flex; align-items: center; justify-content: space-between; }
    .diy-submit .btn { width: auto; flex-shrink: 0; }
}
.diy-facts { display: grid; gap: 0.875rem; list-style: none; padding: 0; font-size: 0.875rem; color: var(--iv-text-muted); }
.diy-facts li { display: flex; gap: 0.625rem; }
.diy-facts svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; margin-top: 0.125rem; color: var(--iv-primary); }
.diy-facts strong { display: block; color: var(--iv-text); }

/* Kachel „Design It Yourself“ im Produktraster (führt zu /custom, nichts direkt kaufbar) */
.diy-tile__media { display: grid; place-items: center; background-color: #0a0a0a; color: #fff; }
.diy-tile__media svg { width: 3rem; height: 3rem; }

/* Angebot im Warenkorb */
.cart-offer__details > summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--iv-text); }
.cart-offer__request { max-height: 14rem; overflow-y: auto; white-space: pre-line; overflow-wrap: anywhere; }

/* „Wir eröffnen bald!“ – Countdown */
.opening-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.opening-countdown__unit {
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
    border-radius: var(--iv-radius-md); background-color: var(--iv-primary); padding: 0.875rem 0.25rem;
}
.opening-countdown__value {
    font-family: var(--iv-font-ui); font-size: 2rem; line-height: 1; font-weight: 700;
    color: var(--iv-on-primary); font-variant-numeric: tabular-nums;
}
.opening-countdown__label { font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--iv-accent); }
@media (min-width: 480px) { .opening-countdown__value { font-size: 2.5rem; } }

/* Logo-Badge (auf dunklem Grund) */
.logo-badge { margin-left: auto; margin-right: auto; width: fit-content; border-radius: var(--iv-radius-md); background-color: #fff; padding: 0.75rem; }
.logo-badge img { height: 7rem; width: auto; }

/* Admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; border-bottom: 1px solid var(--iv-border); padding-bottom: 1.5rem; }
.variant-row { border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-surface); padding: 1rem; }
.variant-row-error { border-color: #fecaca; background-color: #fef2f2; }
.variant-row:has(input[name$="[delete]"]:checked) { opacity: 0.6; }
.variant-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Admin: Produktauswahl für Aktionen */
.product-picker { display: grid; max-height: 18rem; gap: 0.5rem; overflow-y: auto; border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); padding: 0.75rem 1rem; }
@media (min-width: 640px) { .product-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Admin: Bestellungen / Packliste */
.order-card { border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-card); }
.order-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; border-bottom: 1px solid var(--iv-border); padding: 1rem 1.5rem; }
.order-card__notice { margin: 1rem 1.5rem 0; }
.order-card__body { display: grid; gap: 1.5rem; padding: 1.25rem 1.5rem; }
@media (min-width: 768px) { .order-card__body { grid-template-columns: 1.6fr 1fr; } }
.order-card__actions { display: grid; gap: 0.75rem; border-top: 1px solid var(--iv-border); background-color: var(--iv-surface); padding: 1rem 1.5rem; border-radius: 0 0 var(--iv-radius-md) var(--iv-radius-md); }
.pack-list { display: grid; gap: 0.5rem; }
.pack-list__item { display: flex; align-items: flex-start; gap: 0.75rem; border-radius: var(--iv-radius-sm); border: 1px solid var(--iv-border); padding: 0.625rem 0.875rem; }
.pack-list__qty { min-width: 2.5rem; border-radius: 0.375rem; background-color: var(--iv-text); padding: 0.125rem 0.5rem; text-align: center; font-family: var(--iv-font-ui); font-weight: 700; color: #fff; }
.pack-list__contents { margin-top: 0.375rem; display: grid; gap: 0.125rem; border-left: 2px solid var(--iv-border); padding-left: 0.625rem; font-size: 0.8125rem; color: var(--iv-text-muted); }
.address-box { border-radius: var(--iv-radius-sm); border: 1px dashed var(--iv-border-strong); padding: 0.875rem 1rem; font-style: normal; font-size: 0.9375rem; line-height: 1.5rem; color: var(--iv-text-muted); }
.label-form { margin-top: 0.75rem; display: grid; align-items: end; gap: 0.75rem; }
@media (min-width: 640px) {
    .label-form { grid-template-columns: minmax(0, 1fr) 8rem auto; }
    .label-form--simple { grid-template-columns: minmax(0, 1fr) auto; }
}
.bundle-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 0.75rem; border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-surface); padding: 0.75rem 1rem; }
@media (min-width: 768px) { .variant-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .variant-grid { grid-template-columns: 1.5fr 1.5fr 1fr 1fr 0.9fr 1.4fr; } }
/* Varianten mit Farbfeldern (Datenbank-Update 046): 9 Felder → zwei Zeilen à 5 bzw. 4 */
@media (min-width: 1280px) { .variant-grid:has([data-color-hex]) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.color-input { display: flex; align-items: center; gap: 0.5rem; }
.color-input .input { min-width: 0; flex: 1 1 auto; }
.color-input__picker { height: 2.25rem; width: 2.75rem; flex-shrink: 0; cursor: pointer; border-radius: var(--iv-radius-sm); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 2px; }
/* Abschnitt „Farben“ (Kombinationen erzeugen) */
.color-list-box { border-radius: var(--iv-radius-md); border: 1px dashed var(--iv-border-strong); background-color: var(--iv-surface); padding: 1rem; }
.color-list-row { display: grid; align-items: center; gap: 0.5rem; grid-template-columns: 2.75rem minmax(0, 1fr) 6.5rem; }
.color-list-row [data-color-list-en] { grid-column: 2 / 3; }
@media (min-width: 768px) {
    .color-list-row { grid-template-columns: 2.75rem minmax(0, 1.4fr) 6.5rem minmax(0, 1fr) auto; }
    .color-list-row [data-color-list-en] { grid-column: auto; }
}
/* Produktformular: eigene Versandzeit nur bei "Eigene Versandzeit" (ohne :has bleibt es sichtbar) */
@supports selector(:has(*)) {
    .field:has(input[name="delivery_mode"][value="default"]:checked) .delivery-custom { display: none; }
}

/* ---------------------------------------------------------------------------
 * FAQ (Akkordeon, Stitch: Kategorie-Seite „Häufig gestellte Fragen“)
 * ------------------------------------------------------------------------ */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item { overflow: hidden; border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-card); transition: border-color .15s, box-shadow .2s; }
.faq-item[open] { border-color: var(--iv-border-strong); }
.faq-item__question {
    display: flex; cursor: pointer; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.125rem 1.5rem;
    font-family: var(--iv-font-subheading); font-size: 1.0625rem; line-height: 1.5rem; font-weight: 600; color: var(--iv-text); list-style: none;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question:hover { color: var(--iv-primary); }
.faq-item__question:focus-visible { outline: 2px solid var(--iv-primary); outline-offset: -2px; border-radius: var(--iv-radius-md); }
.faq-item__chevron { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--iv-text-subtle); transition: transform .2s; }
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); color: var(--iv-primary); }
.faq-item__answer { padding: 0 1.5rem 1.25rem; font-size: 0.9375rem; line-height: 1.625rem; color: var(--iv-text-muted); }

/* ---------------------------------------------------------------------------
 * Passwort-Code
 * ------------------------------------------------------------------------ */
.input[autocomplete="one-time-code"] { font-family: var(--iv-font-ui); font-size: 1.375rem; font-weight: 700; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.resend-box { border-radius: var(--iv-radius-md); background-color: var(--iv-surface-low); padding: 1rem 1.25rem; }
/* „Keine E-Mail bekommen? Code beim Support anfordern“ (Code-Eingabe der Registrierung) – aufklappbar ohne JavaScript */
.support-request { border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-card); }
.support-request[open] { border-color: var(--iv-border-strong); }
.support-request__toggle { display: flex; cursor: pointer; align-items: center; gap: 0.625rem; padding: 0.875rem 1.125rem; font-size: 0.875rem; font-weight: 600; color: var(--iv-text); list-style: none; }
.support-request__toggle::-webkit-details-marker { display: none; }
.support-request__toggle:hover { color: var(--iv-primary); }
.support-request__toggle:focus-visible { outline: 2px solid var(--iv-primary); outline-offset: -2px; border-radius: var(--iv-radius-md); }
.support-request__toggle > svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; color: var(--iv-text-subtle); }
.support-request__toggle .support-request__chevron { margin-left: auto; transition: transform .2s; }
.support-request[open] .support-request__chevron { transform: rotate(180deg); color: var(--iv-primary); }
.support-request__body { border-top: 1px solid var(--iv-border); padding: 1rem 1.125rem 1.25rem; }

/* Admin → Ticket: soeben erzeugter Registrierungscode (einmalig angezeigt) */
.registration-code { font-family: var(--iv-font-ui); font-size: 2.25rem; font-weight: 700; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; color: var(--iv-text); user-select: all; }

/* ---------------------------------------------------------------------------
 * Cookie-Banner (eigener Consent-Manager)
 * ------------------------------------------------------------------------ */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; margin-left: auto; margin-right: auto;
    max-width: 52rem; max-height: calc(100vh - 2rem); overflow-y: auto;
    border-radius: var(--iv-radius-lg); border: 1px solid var(--iv-border); background-color: var(--iv-card);
    padding: 1.25rem; box-shadow: var(--iv-shadow-lift), var(--iv-glow);
    animation: iv-slide-up .35s ease-out both;
}
@media (min-width: 768px) { .cookie-banner { bottom: 1.5rem; padding: 1.75rem 2rem; } }
.cookie-panel { border-radius: var(--iv-radius-lg); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 1.5rem; box-shadow: var(--iv-shadow-card); }
@media (min-width: 768px) { .cookie-panel { padding: 2rem; } }
.cookie-banner__head { display: flex; align-items: flex-start; gap: 1rem; }
.cookie-banner__actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.cookie-banner__actions .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .cookie-banner__actions .btn { flex: 0 0 auto; } }

.cookie-details { margin-top: 1rem; }
.cookie-details__toggle {
    display: inline-flex; cursor: pointer; align-items: center; gap: 0.375rem; border-radius: var(--iv-radius-control); padding: 0.375rem 0.75rem;
    font-family: var(--iv-font-ui); font-size: 0.8125rem; font-weight: 600; color: var(--iv-primary); list-style: none; transition: background-color .15s;
}
.cookie-details__toggle::-webkit-details-marker { display: none; }
.cookie-details__toggle:hover { background-color: var(--iv-surface-low); }
.cookie-details__chevron { transition: transform .2s; }
.cookie-details[open] .cookie-details__chevron { transform: rotate(180deg); }
.cookie-categories { margin-top: 0.75rem; display: grid; gap: 0.75rem; }
.cookie-category { border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-surface); padding: 1rem 1.25rem; }
.cookie-category__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.cookie-list { margin-top: 0.75rem; display: grid; gap: 0.375rem; border-top: 1px solid var(--iv-border); padding-top: 0.75rem; font-size: 0.8125rem; line-height: 1.25rem; color: var(--iv-text-muted); }
.cookie-list code { margin-right: 0.375rem; border-radius: 0.375rem; background-color: var(--iv-surface-mid); padding: 0.0625rem 0.375rem; font-size: 0.75rem; color: var(--iv-primary); }

/* Schalter (Checkbox im Pill-Look) */
.switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; inset: 0; z-index: 1; margin: 0; cursor: pointer; opacity: 0; }
.switch input:disabled { cursor: not-allowed; }
.switch__track { position: relative; display: block; width: 2.75rem; height: 1.5rem; border-radius: 9999px; background-color: var(--iv-border-strong); transition: background-color .2s, box-shadow .2s; }
.switch__track::after { content: ""; position: absolute; top: 0.1875rem; left: 0.1875rem; width: 1.125rem; height: 1.125rem; border-radius: 9999px; background-color: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / 0.25); transition: transform .2s; }
.switch input:checked + .switch__track { background-color: var(--iv-primary); box-shadow: var(--iv-glow); }
.switch input:checked + .switch__track::after { transform: translateX(1.25rem); }
.switch input:disabled + .switch__track { opacity: 0.6; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--iv-primary); outline-offset: 2px; }

/* ---------------------------------------------------------------------------
 * Aktionen: Hinweisleiste, Popup, Sale-Kennzeichnung
 * ------------------------------------------------------------------------ */
.promo-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.375rem 0.875rem;
    background-color: var(--iv-accent); padding: 0.5rem 1rem;
    text-align: center; font-size: 0.875rem; line-height: 1.25rem; color: var(--iv-on-accent); transition: background-color .2s;
}
.promo-bar:hover { background-color: var(--iv-accent-soft); }
.promo-bar:focus-visible { outline: 2px solid var(--iv-on-accent); outline-offset: -4px; }
.promo-bar__badge { border-radius: var(--iv-radius-sm); background-color: #dc2626; padding: 0.0625rem 0.5rem; font-family: var(--iv-font-ui); font-weight: 800; color: #fff; }
.promo-bar__sub { color: #3f3f46; }
.promo-bar__cta { display: inline-flex; align-items: center; gap: 0.25rem; font-family: var(--iv-font-ui); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Popup: ohne JS als fixiertes Overlay, mit JS als Modal (showModal) */
.promo-popup {
    position: fixed; inset: 0; z-index: 60; margin: auto; width: min(44rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem);
    overflow: auto; border: 0; border-radius: var(--iv-radius-lg); background-color: var(--iv-card); padding: 0; color: var(--iv-text);
    box-shadow: 0 0 0 100vmax rgb(10 10 10 / 0.6), 0 30px 60px -20px rgb(0 0 0 / 0.5);
}
.promo-popup.is-modal { box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5); animation: iv-popup-in .45s var(--iv-ease) both; }
.promo-popup::backdrop { background-color: rgb(10 10 10 / 0.65); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: iv-fade .3s ease both; }
.promo-popup:not([open]) { display: none; }
@media (min-width: 640px) { .promo-popup[open] { display: grid; grid-template-columns: 0.9fr 1.1fr; } }
.promo-popup__close-form { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; }
.promo-popup__close {
    display: inline-flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center; border-radius: var(--iv-radius-control);
    background-color: rgb(255 255 255 / 0.9); font-size: 1.5rem; line-height: 1; color: var(--iv-text); transition: background-color .15s, transform .15s;
}
.promo-popup__close:hover { background-color: #fff; transform: rotate(90deg); }
.promo-popup__media {
    position: relative; display: flex; min-height: 12rem; align-items: center; justify-content: center; overflow: hidden;
    background-color: #0a0a0a;
}
.promo-popup__media img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.promo-popup__badge {
    position: relative; border-radius: var(--iv-radius-md); background-color: #fff; padding: 0.5rem 1rem;
    font-family: var(--iv-font-ui); font-size: 2.25rem; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: #dc2626;
    box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.5); transform: rotate(-4deg); animation: iv-pop .6s .3s var(--iv-ease) both;
}
.promo-popup__body { display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; padding: 2rem 1.75rem; }
.promo-popup__title { font-family: var(--iv-font-heading); font-size: 2rem; line-height: 2.375rem; font-weight: 700; letter-spacing: -0.02em; }

/* Kleidung: Größen & Passform (aufklappbar auf der Produktseite) */
.size-info { border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-card); }
.size-info > summary { display: flex; cursor: pointer; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 600; color: var(--iv-text); list-style: none; }
.size-info > summary::-webkit-details-marker { display: none; }
.size-info__chevron { transition: transform .2s var(--iv-ease); }
.size-info[open] .size-info__chevron { transform: rotate(180deg); }
.size-info__text { border-top: 1px solid var(--iv-border); padding: 0.75rem 1rem 1rem; font-size: 0.875rem; line-height: 1.6; color: var(--iv-text-muted); }

/* Versandzeit (Standard / auf Bestellung gefertigt) */
.delivery-note { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--iv-text); }
.delivery-note--sm { font-size: 0.75rem; }
.delivery-note--made { color: #9a3412; }
.delivery-note--presale { color: #5b21b6; }

/* Weihnachts-Hinweis bei der Lieferzeit */
.xmas-note { display: inline-flex; align-items: center; gap: 0.375rem; border-radius: var(--iv-radius); padding: 0.25rem 0.625rem; font-size: 0.8125rem; font-weight: 600; }
.xmas-note--before { background-color: #ecfdf5; color: #166534; }
.xmas-note--tight { background-color: #fffbeb; color: #92400e; }
.xmas-note--after { background-color: #fef2f2; color: #b91c1c; }

/* Vorverkauf: erst bestellen, dann wird produziert */
.presale-badge { background-color: #5b21b6; color: #fff; }
.presale-box { display: flex; gap: 1rem; border-radius: var(--iv-radius-md); border: 1px solid #ddd6fe; background-color: #f5f3ff; padding: 1.25rem; }
.presale-box .feature__icon { color: #5b21b6; }
.presale-box__facts { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; font-size: 0.875rem; font-weight: 600; color: #4c1d95; }
.presale-box__facts:empty { display: none; }

/* Produktstatus „Bald verfügbar“ / „In Bearbeitung“ (sichtbar, nicht bestellbar) */
.status-badge--coming_soon { background-color: #0e7490; color: #fff; }
.status-badge--in_progress { background-color: #b45309; color: #fff; }
.product-tile__soldout.status-badge--coming_soon { background-color: #0e7490; }
.product-tile__soldout.status-badge--in_progress { background-color: #b45309; }
.status-box { display: flex; gap: 1rem; border-radius: var(--iv-radius-md); border: 1px solid; padding: 1.25rem; }
.status-box--coming_soon { border-color: #a5f3fc; background-color: #ecfeff; }
.status-box--coming_soon .feature__icon { color: #0e7490; }
.status-box--in_progress { border-color: #fde68a; background-color: #fffbeb; }
.status-box--in_progress .feature__icon { color: #b45309; }
.status-box__note { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--iv-text); }

/* Admin → Vorverkauf: Artikel-Übersicht, Käuferliste mit Info-Karte beim Überfahren */
.presale-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.presale-card { display: flex; flex-direction: column; gap: 0.875rem; border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-card); padding: 1.25rem; color: inherit; text-decoration: none; transition: border-color .15s var(--iv-ease), box-shadow .15s var(--iv-ease); }
.presale-card:hover, .presale-card:focus-visible { border-color: var(--iv-border-strong); box-shadow: var(--iv-shadow-lift); }
.presale-card__head { display: flex; gap: 0.875rem; align-items: center; }
.presale-card__image { width: 3.5rem; height: 3.5rem; flex-shrink: 0; overflow: hidden; border-radius: var(--iv-radius); background-color: var(--iv-surface-low); }
.presale-card__image img { width: 100%; height: 100%; object-fit: cover; }
.presale-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.presale-card__stat { border-radius: var(--iv-radius); background-color: var(--iv-surface); padding: 0.5rem 0.625rem; }
.presale-card__stat strong { display: block; font-family: var(--iv-font-ui); font-size: 1.25rem; color: var(--iv-text); }
.presale-card__stat span { font-size: 0.75rem; color: var(--iv-text-muted); }
.presale-card__more { margin-top: auto; }
.presale-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.person-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.size-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.size-chip { border-radius: var(--iv-radius-sm); border: 1px solid var(--iv-border); padding: 0.125rem 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--iv-text); background-color: var(--iv-card); }
.size-chip small { font-weight: 500; color: var(--iv-text-muted); }

.buyer-list { border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-card); }
.buyer-list__head, .buyer { display: grid; grid-template-columns: minmax(14rem, 2fr) minmax(7rem, 1fr) minmax(9rem, 1.5fr) 7rem 9rem; gap: 1rem; align-items: center; padding: 0.75rem 1.25rem; }
.buyer-list__head { background-color: var(--iv-surface-low); font-family: var(--iv-font-ui); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--iv-text-muted); border-radius: var(--iv-radius-md) var(--iv-radius-md) 0 0; }
.buyer { position: relative; border-top: 1px solid var(--iv-border); font-size: 0.875rem; color: var(--iv-text-muted); }
.buyer:hover { background-color: var(--iv-surface); }
.buyer__person { position: relative; display: flex; align-items: center; gap: 0.75rem; min-width: 0; color: var(--iv-text); text-decoration: none; border-radius: var(--iv-radius); }
.buyer__person:focus-visible { outline: 2px solid var(--iv-primary); outline-offset: 3px; }
.buyer__name { font-weight: 600; color: var(--iv-text); }
.buyer__mail { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; color: var(--iv-text-muted); }
.avatar-circle { width: 2.25rem; height: 2.25rem; flex-shrink: 0; display: grid; place-items: center; border-radius: 9999px; background-color: var(--iv-primary); color: var(--iv-on-primary); font-family: var(--iv-font-ui); font-size: 0.8125rem; font-weight: 700; }
.avatar-circle--lg { width: 3.5rem; height: 3.5rem; font-size: 1.125rem; }
@media (max-width: 900px) {
    .buyer-list__head { display: none; }
    .buyer { grid-template-columns: 1fr 1fr; }
}

/* Info-Karte: erscheint beim Überfahren (kurze Verzögerung gegen Flackern) und bei Tastatur-Fokus */
.hovercard {
    position: absolute; left: 0; top: calc(100% + 0.5rem); z-index: 40; width: min(24rem, 80vw);
    border-radius: var(--iv-radius-md); border: 1px solid var(--iv-border); background-color: var(--iv-card); box-shadow: 0 18px 48px -18px rgb(15 23 42 / 0.4);
    padding: 1rem 1.125rem; font-size: 0.8125rem; color: var(--iv-text-muted);
    visibility: hidden; opacity: 0; transform: translateY(-4px); pointer-events: none;
    transition: opacity .15s var(--iv-ease), transform .15s var(--iv-ease), visibility 0s linear .15s;
}
.buyer__person:hover .hovercard, .buyer__person:focus-visible .hovercard {
    visibility: visible; opacity: 1; transform: none; pointer-events: auto;
    transition-delay: .25s, .25s, .25s;
}
/* Unsichtbare Brücke über die Lücke zwischen Name und Karte – die Karte bleibt offen, wenn man hineinfährt */
.hovercard::before { content: ""; position: absolute; left: 0; right: 0; top: -0.5rem; height: 0.5rem; }
.hovercard { cursor: text; user-select: text; }
.hovercard dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 0.875rem; margin: 0.625rem 0 0; }
.hovercard dt { color: var(--iv-text-subtle); }
.hovercard dd { margin: 0; color: var(--iv-text); overflow-wrap: anywhere; }
.hovercard__title { display: flex; align-items: center; gap: 0.625rem; }
.hovercard__hint { margin-top: 0.75rem; border-top: 1px solid var(--iv-border); padding-top: 0.5rem; font-size: 0.75rem; color: var(--iv-text-subtle); }

/* Lagerbestand: ausverkauft / nur noch wenige */
.product-tile__soldout {
    position: absolute; top: 0.625rem; left: 0.625rem; z-index: 1; border-radius: var(--iv-radius-sm); background-color: #0a0a0a;
    padding: 0.1875rem 0.5rem; font-family: var(--iv-font-ui); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; color: #fff;
}
.product-tile:has(.product-tile__soldout) .product-tile__media img { filter: grayscale(0.85); opacity: 0.75; }
/* „Bald verfügbar“ / „In Bearbeitung“ sind nicht ausverkauft → Bild in Farbe lassen */
.product-tile:has(.status-badge--coming_soon) .product-tile__media img,
.product-tile:has(.status-badge--in_progress) .product-tile__media img { filter: none; opacity: 1; }
.soldout-note { margin-bottom: 0.625rem; font-size: 0.8125rem; font-weight: 600; color: var(--iv-text-muted); }
.lowstock-note { font-size: 0.8125rem; font-weight: 700; color: #c2410c; }
.soldout-box { display: flex; gap: 1rem; border-radius: var(--iv-radius-md); border: 1px dashed var(--iv-border-strong); background-color: var(--iv-surface); padding: 1.25rem; }
.variant-option.is-soldout { cursor: not-allowed; opacity: 0.55; }
.variant-option.is-soldout .variant-option__name { text-decoration: line-through; text-decoration-color: var(--iv-border-strong); }

/* Sale-Kennzeichnung */
.sale-badge { border-radius: var(--iv-radius-sm); background-color: #dc2626; padding: 0.1875rem 0.5rem; font-family: var(--iv-font-ui); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; color: #fff; }
.product-tile__sale { position: absolute; top: 0.625rem; left: 0.625rem; z-index: 1; }
.price-sale { color: #dc2626; }
.price-old { font-size: 0.875rem; font-weight: 500; color: var(--iv-text-subtle); text-decoration: line-through; }

/* Angebotsseite */
.promo-strip { display: grid; gap: 1.5rem; overflow: hidden; border-radius: var(--iv-radius-lg); background-color: #0a0a0a; color: #fff; }
@media (min-width: 768px) { .promo-strip { grid-template-columns: 1fr 2fr; } }
.promo-strip .promo-popup__media { min-height: 10rem; }
.promo-strip__body { display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; padding: 1.5rem; }
.promo-strip__body .lead { color: rgb(255 255 255 / 0.8); }

@keyframes iv-popup-in { from { opacity: 0; transform: translateY(1rem) scale(0.96); } to { opacity: 1; transform: none; } }

/* Spam-Schutz: Köder-Feld für Bots – für Menschen und Screenreader unsichtbar (forms.antispam) */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------------------
 * Animationen (Modul ui-effects)
 * ------------------------------------------------------------------------ */
/* Scroll-Animation: nur Elemente unterhalb des sichtbaren Bereichs werden versteckt
   und beim Hineinscrollen eingeblendet (kein Flackern, ohne JS alles sichtbar) */
.reveal-pending { opacity: 0; transform: translateY(1.25rem); }
.reveal-in { opacity: 1; transform: none; transition: opacity .6s var(--iv-ease), transform .6s var(--iv-ease); transition-delay: var(--reveal-delay, 0ms); }

/* Klick-Welle in Buttons */
.category-pill, .auth-tab { position: relative; overflow: hidden; isolation: isolate; }
.ripple {
    position: absolute; z-index: -1; border-radius: 9999px; background-color: currentColor; opacity: 0.22;
    transform: scale(0); pointer-events: none; animation: iv-ripple .55s ease-out forwards;
}
.product-tile:active, .category-tile:active { transform: scale(0.99); }
.icon-btn:active, .header-icon:active { transform: scale(0.92); }

@keyframes iv-ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes iv-drop { from { opacity: 0; transform: translateY(-0.5rem); } to { opacity: 1; transform: none; } }
@keyframes iv-pop { 0% { transform: scale(0.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes iv-slide-up { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes iv-fade { from { opacity: 0; } to { opacity: 1; } }

/* Preis wechselt beim Auswählen einer anderen Variante */
.price-box__amount.is-changed { animation: iv-price 0.35s ease-out; }
@keyframes iv-price { from { opacity: 0.25; transform: translateY(-0.25rem); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .product-tile, .product-tile__media img, .category-tile, .category-tile__media { transition: none; }
    .product-tile:hover, .category-tile:hover { transform: none; }
    .cookie-banner, .header-link__badge, .main-nav.is-open, .price-box__amount.is-changed, .header-dropdown__panel { animation: none; }
    .reveal-pending { opacity: 1; transform: none; }
    .ripple { display: none; }
}

/* Fortschrittsbalken (z. B. Upload der Ivalox-APP) */
.progress { position: relative; height: 0.5rem; overflow: hidden; border-radius: 9999px; background-color: var(--iv-surface-mid); }
.progress__bar { display: block; width: 0; height: 100%; border-radius: inherit; background-color: var(--iv-primary); transition: width .2s ease; }

/* ================================================================ Produktbewertungen */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars__star svg { width: 18px; height: 18px; fill: none; stroke: #d4d4d8; stroke-width: 1.6; }
.stars--sm .stars__star svg { width: 15px; height: 15px; }
.stars--lg .stars__star svg { width: 22px; height: 22px; }
.stars__star.is-full svg { fill: #f5b301; stroke: #e0a200; }
.stars__star.is-half svg { fill: #fde68a; stroke: #e0a200; } /* halber Stern im Durchschnitt, z. B. 4,5 */
.review-score { display: flex; align-items: center; gap: 14px; }
.review-score__value { font-family: var(--iv-font-ui); font-size: 3rem; line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.review-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; }
.review-bars li { display: grid; grid-template-columns: 2.5rem 1fr 2rem; align-items: center; gap: 8px; }
.review-bars__bar { width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--iv-surface-mid); -webkit-appearance: none; appearance: none; }
.review-bars__bar::-webkit-progress-bar { background: var(--iv-surface-mid); border-radius: 999px; }
.review-bars__bar::-webkit-progress-value { background: #f5b301; border-radius: 999px; }
.review-bars__bar::-moz-progress-bar { background: #f5b301; border-radius: 999px; }
.review-card { padding: 1.25rem 1.5rem; }
.review-card--own { border-color: var(--iv-primary); }
.review-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.review-card__author { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; color: var(--iv-text); }
.review-card__date { margin-left: auto; font-size: 0.8125rem; color: var(--iv-text-subtle); }
.review-card__body { color: var(--iv-text-muted); line-height: 1.6; overflow-wrap: anywhere; }
.review-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.review-more > summary { list-style: none; cursor: pointer; display: inline-flex; }
.review-more > summary::-webkit-details-marker { display: none; }
.review-more[open] > summary { display: none; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 6px 12px 0 0; vertical-align: middle; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; padding: 2px; border-radius: 6px; }
.star-input label svg { width: 30px; height: 30px; fill: none; stroke: #a1a1aa; stroke-width: 1.5; transition: transform .12s ease, fill .12s ease; }
.star-input input:checked ~ label svg,
.star-input label:hover svg,
.star-input label:hover ~ label svg { fill: #f5b301; stroke: #e0a200; }
.star-input label:hover svg { transform: scale(1.08); }
.star-input input:focus-visible + label { outline: 2px solid var(--iv-primary); outline-offset: 2px; }
.word-count { font-variant-numeric: tabular-nums; }
.word-count.is-over { color: var(--iv-error); font-weight: 700; }

/* ================================================================ Hinweis „Nachricht vom Support“ (oben links) */
.support-toast {
    position: fixed; top: 16px; left: 16px; z-index: 90; display: flex; align-items: center; gap: 12px;
    max-width: min(440px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 14px;
    background: #0a0a0a; color: #fafafa; box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.08);
    opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease;
}
.support-toast.is-visible { opacity: 1; transform: translateY(0); }
.support-toast__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.support-toast__text strong { font-size: 0.9375rem; }
.support-toast__text span { font-size: 0.8125rem; color: #a1a1aa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-toast .btn-primary { --iv-btn-primary-bg: #fff; --iv-btn-primary-color: #0a0a0a; flex-shrink: 0; }
.support-toast__close { flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.1); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.support-toast__close:hover { background: rgb(255 255 255 / 0.2); }
@media (prefers-reduced-motion: reduce) { .support-toast { transition: none; } }

/* Merkliste: Herz auf Kachel (unten rechts, über dem Kachel-Link) und auf der Produktseite */
.product-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.wishlist-form--tile { position: absolute; right: 0.625rem; bottom: 0.625rem; z-index: 2; }
.wishlist-form--page { flex-shrink: 0; }
.wishlist-form.is-busy .wishlist-btn { opacity: .6; pointer-events: none; }
.wishlist-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; border-radius: 9999px; color: var(--iv-text); transition: background-color .15s, color .15s, transform .15s; }
.wishlist-btn--tile { height: 2.25rem; width: 2.25rem; background-color: rgb(255 255 255 / 0.92); box-shadow: 0 1px 3px rgb(0 0 0 / 0.15); }
.wishlist-btn--page { min-height: 2.5rem; padding: 0.375rem 0.875rem; border: 1px solid var(--iv-surface-mid); background-color: var(--iv-surface-low); font-size: 0.875rem; font-weight: 600; }
.wishlist-btn:hover { background-color: var(--iv-surface-mid); }
.wishlist-btn:active { transform: scale(.94); }
.wishlist-btn__icon { width: 1.125rem; height: 1.125rem; }
.wishlist-btn.is-saved { color: var(--iv-error); }
.wishlist-btn.is-saved .wishlist-btn__icon { fill: currentColor; }
.wishlist-toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; max-width: calc(100% - 2rem); transform: translate(-50%, 0.5rem); opacity: 0; border-radius: var(--iv-radius); background-color: #18181b; padding: 0.625rem 1rem; font-size: 0.875rem; color: #fff; box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); transition: opacity .25s, transform .25s; }
.wishlist-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .wishlist-toast, .wishlist-btn { transition: none; } }
/* „Benachrichtige mich, sobald bestellbar“ (Produktseite) */
.notify-box { border: 1px solid var(--iv-surface-mid); border-radius: var(--iv-radius); background-color: var(--iv-surface-low); padding: 1rem; }
.notify-box__head { display: flex; gap: 0.75rem; align-items: flex-start; }
.notify-box__row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.notify-box__row .input { flex: 1 1 14rem; min-width: 0; }