/* ==========================================================================
   Handarbeit.net – Stylesheet
   ========================================================================== */

/* Nunito (Variable Font, selbst gehostet – siehe assets/fonts/README.md):
   runde, freundliche Formen, passend zu handgemachten Figuren. Ein File je
   Stil deckt alle Gewichte 200–1000 ab; font-display: swap zeigt sofort die
   System-Schrift, bis der Font geladen ist. */
@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/nunito-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Nunito";
    font-style: italic;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/nunito-latin-italic.woff2") format("woff2");
}

:root {
    --bg: #fdf8f3;
    --surface: #ffffff;
    --surface-alt: #f7efe7;
    --text: #3d3530;
    --muted: #8a7e74;
    --primary: #e08a72;
    --primary-dark: #cf6e54;
    --accent: #7ba591;
    --accent-dark: #5f8a76;
    --border: #ece2d8;
    --danger: #c0584a;
    --shadow-sm: 0 1px 3px rgba(61, 53, 48, .08);
    --shadow: 0 8px 24px rgba(61, 53, 48, .10);
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1180px;
    --gutter: 1.25rem;
    --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* Verhindert das automatische Vergrößern der Schrift im Querformat (iOS/Android). */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    /* Lange Wörter/URLs umbrechen, statt das Layout auf schmalen Displays zu sprengen. */
    overflow-wrap: break-word;
    /* Dezentes Tap-Highlight statt des grauen Standard-Kastens auf Touch-Geräten. */
    -webkit-tap-highlight-color: rgba(224, 138, 114, .18);
}

img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; overflow-wrap: break-word; text-wrap: balance; }

/* Einheitlicher, gut sichtbarer Fokusring für Tastaturnutzung (überall dort,
   wo keine spezifischere Fokus-Regel greift). */
:where(a, button, summary):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Anker-Ziele nicht unter die sticky Kopfzeile scrollen lassen. */
:target { scroll-margin-top: 5rem; }

/* Nutzerwunsch „weniger Bewegung" respektieren: Animationen/Übergänge abschalten. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
/* Auf Geräten mit Aussparungen (Notch) den sicheren Bereich seitlich berücksichtigen. */
@supports (padding: max(0px)) {
    .container { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}

.visually-hidden, .skip-link {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
/* Honeypot-Feld: für Menschen unsichtbar, für Bots aber vorhanden (kein
   display:none, damit es ausgefüllt wird). Aus dem Tab-Fokus genommen. */
.hp-field {
    position: absolute; left: -9999px; top: -9999px;
    width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
    position: fixed; top: .5rem; left: .5rem; width: auto; height: auto;
    background: var(--primary); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100;
}

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.text-danger { color: var(--danger); font-weight: 600; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
    background: var(--surface-alt); color: var(--text); font: inherit; font-weight: 600;
    cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
    text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
/* Dezenter Verlauf von oben: gibt dem Button etwas Tiefe ohne Effekthascherei. */
.btn--primary { background: linear-gradient(180deg, #e6957e, var(--primary)); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: linear-gradient(180deg, var(--primary), var(--primary-dark)); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-alt); }
.btn--small { padding: .5rem .9rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* --- Header --------------------------------------------------------------- */
.site-header {
    background: var(--surface); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm);
}
/* Dezent transluzente Kopfzeile: Inhalt schimmert beim Scrollen leicht durch. */
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .site-header {
        background: rgba(255, 255, 255, .88);
        -webkit-backdrop-filter: saturate(160%) blur(10px);
        backdrop-filter: saturate(160%) blur(10px);
    }
}
.header-inner {
    display: flex; align-items: center; gap: 1.25rem;
    padding-top: .75rem; padding-bottom: .75rem;
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1.6rem; }
.brand-logo { height: clamp(40px, 7vw, 54px); width: auto; max-width: min(260px, 56vw); }
.main-nav { display: flex; gap: 1rem; flex-wrap: wrap; flex: 1; }
.main-nav a { color: var(--text); font-weight: 600; font-size: .95rem; padding: .3rem 0; }
.main-nav a:hover { color: var(--primary-dark); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.search-form { display: flex; align-items: center; background: var(--surface-alt); border-radius: 999px; padding: .15rem .15rem .15rem .75rem; }
.search-form input { border: 0; background: transparent; padding: .35rem; font: inherit; width: 150px; outline: none; transition: width .2s ease; }
/* Beim Fokus wächst das Suchfeld – mehr Platz zum Tippen auf dem Desktop.
   Der Fokusring liegt auf der Pille, nicht auf dem inneren Eingabefeld. */
.search-form:focus-within { box-shadow: 0 0 0 2px var(--primary); }
.search-form:focus-within input { width: 200px; }
.search-form input:focus { outline: none; }
.search-form button { border: 0; background: transparent; cursor: pointer; font-size: 1rem; padding: .35rem .5rem; }
.icon-link, .cart-link { font-size: 1.3rem; position: relative; text-decoration: none; }
.icon-link:hover, .cart-link:hover { text-decoration: none; }
.cart-badge {
    position: absolute; top: -8px; right: -10px; background: var(--primary); color: #fff;
    font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
/* Hamburger wird im offenen Zustand zum X. */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Aktiver Menüpunkt: dezente Unterstreichung unter Top-Level-Einträgen. */
.main-nav > a, .nav-dropdown__toggle { position: relative; }
.main-nav > a.is-active, .nav-dropdown__toggle.is-active { color: var(--primary-dark); }
.main-nav > a.is-active::after, .nav-dropdown__toggle.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -.35rem;
    height: 2px; background: var(--primary); border-radius: 2px;
}
.main-nav a:focus-visible, .nav-dropdown__toggle:focus-visible, .nav-dropdown__menu a:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px;
}

/* Kategorien-Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle {
    display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0;
    font: inherit; font-weight: 600; font-size: .95rem; color: var(--text); cursor: pointer;
    padding: .3rem 0; line-height: inherit;
}
.nav-dropdown__toggle:hover { color: var(--primary-dark); }
.nav-dropdown__caret { font-size: .7rem; transition: transform .15s ease; }
.nav-dropdown.is-open > .nav-dropdown__toggle .nav-dropdown__caret { transform: rotate(180deg); }
.nav-dropdown__menu {
    position: absolute; top: calc(100% + .55rem); left: 0; min-width: 220px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); padding: .4rem; z-index: 60;
    display: none; flex-direction: column; gap: .1rem;
}
.nav-dropdown.is-open > .nav-dropdown__menu { display: flex; }
.nav-dropdown__menu a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--text); font-size: .92rem; font-weight: 600; white-space: nowrap; }
.nav-dropdown__menu a:hover { background: var(--surface-alt); text-decoration: none; }
.nav-dropdown__menu a.is-active { background: var(--primary); color: #fff; }
/* Unterkategorien unter ihrer Hauptkategorie eingerückt. */
.nav-dropdown__children { display: flex; flex-direction: column; gap: .1rem; margin: .1rem 0 .35rem .9rem; padding-left: .6rem; border-left: 2px solid var(--border); }
.nav-dropdown__child { font-weight: 500; font-size: .88rem; color: var(--muted); }
.nav-dropdown__child:hover { color: var(--text); }
/* Auf Zeigegeräten (Desktop) öffnet das Menü zusätzlich beim Überfahren/Fokus. */
@media (hover: hover) and (min-width: 721px) {
    .nav-dropdown:hover > .nav-dropdown__menu,
    .nav-dropdown:focus-within > .nav-dropdown__menu { display: flex; }
    .nav-dropdown:hover > .nav-dropdown__toggle .nav-dropdown__caret { transform: rotate(180deg); }
}

main { display: block; min-height: 60vh; }
/* Vertikaler Abstand explizit auf main.container, da die .container-Regel das
   padding-Kurzformat sonst mit 0 überschreiben würde (höhere Spezifität). */
main.container { padding-top: 1.75rem; padding-bottom: 3.5rem; }
.section { margin: 3rem 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section__head h2 { margin: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.6rem); position: relative; padding-bottom: .4rem; }
/* Kurzer Akzentstrich unter Abschnittstiteln – gibt den Sektionen Struktur. */
.section__head h2::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 2.4rem; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.section__link { font-weight: 600; white-space: nowrap; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
    /* Weiche Farbtupfer in Koralle und Salbei über dem warmen Grundverlauf. */
    background:
        radial-gradient(480px 260px at 10% -12%, rgba(224, 138, 114, .18), transparent 70%),
        radial-gradient(420px 280px at 98% 112%, rgba(123, 165, 145, .16), transparent 70%),
        linear-gradient(135deg, #fbe9df, #f3ede2);
    border-radius: var(--radius);
    padding: 2.75rem; margin-top: 1rem;
}
.hero__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--primary-dark); margin: 0 0 .5rem; font-size: .85rem; }
/* Fließende Schriftgrößen: skalieren stufenlos zwischen Smartphone und Desktop. */
.hero h1 { margin: 0 0 1rem; font-size: clamp(1.6rem, 1.05rem + 2.9vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
.hero__text { font-size: clamp(1rem, .93rem + .35vw, 1.1rem); color: #5d524a; margin: 0 0 1.5rem; max-width: 46ch; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__art { display: flex; justify-content: center; }
.hero__art img { width: 260px; max-width: 100%; filter: drop-shadow(0 12px 20px rgba(61,53,48,.15)); }

/* Hero-Produktschaufenster: echte Artikelbilder als kleine Karten – gleiche
   Bildsprache wie die Produktkarten im übrigen Shop. */
.hero__showcase { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; width: 100%; max-width: 420px; margin: 0 auto; }
.hero__showcase--stack { grid-template-columns: 1fr; max-width: 320px; }
.hero__tile {
    position: relative; display: block; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .15s ease;
}
.hero__tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.hero__tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--surface-alt); padding: .7rem; }
.hero__tile--main { grid-column: 1 / -1; }
.hero__tile--main img { aspect-ratio: 4 / 3; }
.hero__tile-badge {
    position: absolute; top: .5rem; left: .5rem; font-size: .68rem; font-weight: 700;
    padding: .2rem .55rem; border-radius: 999px; color: #fff; background: var(--danger);
}

/* --- USP ------------------------------------------------------------------ */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.usp__item { display: flex; align-items: center; gap: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; }
/* Symbol auf pastellfarbenem Kreis statt frei schwebend. */
.usp__item span {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 2.9rem; height: 2.9rem; border-radius: 50%; font-size: 1.4rem;
    background: linear-gradient(135deg, #fbe9df, #eef3ee);
}
.usp__item strong { display: block; }
.usp__item p { margin: 0; font-size: .85rem; color: var(--muted); }

/* --- Categories ----------------------------------------------------------- */
.category-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.category-chip {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: .6rem 1.25rem; min-width: 130px;
    transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.category-chip:hover { border-color: var(--primary); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.category-chip__name { font-weight: 700; color: var(--text); }
.category-chip__count { font-size: .8rem; color: var(--muted); }

/* --- Product grid & cards ------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
/* Große Desktops: etwas mehr Luft zwischen den Karten. */
@media (min-width: 1200px) {
    .product-grid { gap: 1.5rem; }
}
.product-card {
    position: relative;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card__media { position: relative; display: block; background: var(--surface-alt); aspect-ratio: 1 / 1; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .25s ease; }
/* Nur auf Zeigegeräten: sanfter Bild-Zoom beim Überfahren der Karte. */
@media (hover: hover) {
    .product-card:hover .product-card__media img { transform: scale(1.04); }
}
.product-card__body { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card__category { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-dark); font-weight: 700; }
.product-card__title { margin: 0; font-size: 1.1rem; }
.product-card__title a { color: var(--text); }
.product-card__desc { margin: 0; font-size: .88rem; color: var(--muted); flex: 1; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
/* Aktionsbutton nicht zweizeilig umbrechen lassen (z. B. neben Angebotspreisen). */
.product-card__footer .btn { white-space: nowrap; }
.price { font-weight: 800; font-size: 1.15rem; }

.badge {
    position: absolute; top: .6rem; left: .6rem; font-size: .72rem; font-weight: 700;
    padding: .25rem .6rem; border-radius: 999px; color: #fff;
    letter-spacing: .02em; box-shadow: var(--shadow-sm);
}
.badge--featured { background: var(--accent); }
.badge--soldout { background: var(--muted); }
.badge--request { background: var(--accent-dark); top: 2.5rem; }
.badge--sale { background: var(--danger); }

/* --- Angebotspreise (Sale) ---------------------------------------------- */
.price--sale { display: inline-flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price__old { font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: line-through; }
.price__now { font-weight: 800; font-size: 1.15rem; color: var(--danger); }

/* --- Nachproduktion auf Anfrage ----------------------------------------- */
.made-to-order {
    margin: 1.25rem 0; padding: 1rem 1.1rem; background: var(--surface-alt);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.made-to-order p { margin: 0 0 .75rem; }

.article-request { max-width: 640px; }
.article-request .admin-form { margin-top: 1.25rem; }

.request-list { display: flex; flex-direction: column; gap: 1rem; }
.request-card {
    padding: 1.1rem 1.2rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.request-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.request-card__title { margin: 0 0 .15rem; font-size: 1.05rem; }
.request-card__contact { margin: .6rem 0; font-size: .92rem; }
.request-card__message {
    margin: .6rem 0; padding: .6rem .9rem; border-left: 3px solid var(--accent);
    background: var(--surface-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .92rem;
}
.request-card__decide { margin-top: .75rem; }
.request-card__note { display: block; font-size: .85rem; color: var(--muted); }
.request-card__note textarea { width: 100%; margin-top: .3rem; }
.request-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }

/* --- Teilen --------------------------------------------------------------- */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.share:not(.share--compact) {
    margin: 1rem 0;
    padding: .85rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.share__heading {
    flex: 0 0 100%;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
}
.share__btn {
    display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; font: inherit;
    font-weight: 600; font-size: .9rem; color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: 999px; padding: .45rem .9rem; line-height: 1;
    transition: background .15s ease, border-color .15s ease;
}
.share__btn:hover { background: var(--surface-alt); border-color: var(--primary); }
.share__icon { font-size: 1rem; }
.share__links { display: flex; flex-wrap: wrap; gap: .4rem; }
.share__link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.1rem; height: 2.1rem; padding: 0; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.share__link:hover { text-decoration: none; }
.share__svg { width: 1.05rem; height: 1.05rem; fill: currentColor; display: block; }
.share__link--whatsapp  { color: #25D366; }
.share__link--facebook  { color: #1877F2; }
.share__link--x         { color: #000; }
.share__link--instagram { color: #E4405F; }
.share__link--tiktok    { color: #000; }
.share__link--email     { color: var(--primary-dark); }
.share__link--whatsapp:hover  { color: #fff; background: #25D366; border-color: #25D366; }
.share__link--facebook:hover  { color: #fff; background: #1877F2; border-color: #1877F2; }
.share__link--x:hover         { color: #fff; background: #000;    border-color: #000; }
.share__link--instagram:hover { color: #fff; background: #E4405F; border-color: #E4405F; }
.share__link--tiktok:hover    { color: #fff; background: #000;    border-color: #000; }
.share__link--email:hover     { color: #fff; background: var(--primary); border-color: var(--primary); }
.share__feedback { font-size: .85rem; color: var(--accent-dark); font-weight: 600; }
.share--compact { position: absolute; top: .6rem; right: .6rem; z-index: 3; margin: 0; }
.share--compact .share__btn {
    width: 2.1rem; height: 2.1rem; padding: 0; justify-content: center;
    background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm);
}
.share--compact .share__btn:hover { background: #fff; }
.share--compact .share__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Breadcrumb ----------------------------------------------------------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-dark); }

/* --- Catalog -------------------------------------------------------------- */
.catalog { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.catalog__sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 90px; }
/* Kategorien & Filter: auf dem Desktop immer offen (Umschalter unsichtbar),
   auf schmalen Displays einklappbar – siehe Media-Query weiter unten. */
.catalog-collapse__summary { display: none; cursor: pointer; }
.catalog-collapse__summary::-webkit-details-marker { display: none; }
.catalog-collapse__summary::marker { content: ""; }
.sidebar-title { margin: 0 0 .75rem; font-size: 1.05rem; }
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; border-radius: var(--radius-sm); color: var(--text); }
.filter-list a:hover { background: var(--surface-alt); text-decoration: none; }
.filter-list a.is-active { background: var(--primary); color: #fff; }
.filter-count { font-size: .8rem; opacity: .7; }
/* Unterkategorien unter ihrer Hauptkategorie eingerückt. */
.filter-sublist { list-style: none; margin: .15rem 0 .35rem .85rem; padding-left: .6rem; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: .1rem; }
.filter-sublist a { font-size: .9rem; font-weight: 500; }

/* Preis-/Verfügbarkeitsfilter in der Katalog-Sidebar. */
.catalog-filter { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .75rem; }
.catalog-filter .sidebar-title { margin: 0; }
.catalog-filter__prices { border: 0; margin: 0; padding: 0; }
.catalog-filter__prices legend { padding: 0; margin-bottom: .4rem; color: var(--muted); font-size: .85rem; }
.catalog-filter__price-row { display: flex; gap: .6rem; }
.catalog-filter__price-row label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--muted); }
.catalog-filter__price-row input { width: 100%; padding: .4rem .5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
/* flex-direction: row überschreibt die globale label-Regel (column) –
   Checkbox und Text stehen nebeneinander. */
.catalog-filter__check { display: flex; flex-direction: row; align-items: center; gap: .5rem; font-size: .9rem; cursor: pointer; }
.catalog-filter__check input { width: 1rem; height: 1rem; accent-color: var(--primary); }
.catalog-filter__actions { display: flex; align-items: center; gap: .75rem; margin-top: .25rem; }
.catalog-filter__reset { font-size: .85rem; color: var(--muted); }
.catalog__head { margin-bottom: 1rem; }
.catalog__head h1 { margin: 0 0 .25rem; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); }
.catalog__hint { margin: .25rem 0; color: var(--muted); }
.catalog__count { color: var(--muted); font-size: .9rem; margin: 0; }
.catalog__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.catalog__sort { display: flex; align-items: center; gap: .5rem; }
.catalog__sort label { color: var(--muted); font-size: .9rem; }
.catalog__sort select { padding: .45rem 2rem .45rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.catalog__sort select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* --- Seitennummerierung (Pagination) -------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin: 2rem 0 .5rem; }
.pagination__link { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 600; }
.pagination__link:hover { background: var(--surface-alt); text-decoration: none; }
.pagination__link.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination__link.is-disabled { color: var(--muted); background: var(--surface-alt); cursor: not-allowed; }
.pagination__link--nav { font-weight: 500; }

/* --- Product detail ------------------------------------------------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-detail__media { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
/* Desktop: Produktbild bleibt beim Scrollen durch lange Beschreibungen sichtbar. */
@media (min-width: 961px) {
    .product-detail__media { position: sticky; top: 96px; }
}
.product-detail__media img { width: 100%; height: 100%; object-fit: contain; }

/* Produktgalerie (Detailseite) */
.product-gallery { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
/* Feste 1:1-Fläche reserviert den Platz des Hauptbilds schon vor dem Laden und
   verhindert so einen Layout-Shift (CLS), sobald das Bild eintrifft. */
.product-gallery__main { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; }
.product-gallery__main--empty { cursor: default; }
.product-gallery__zoom { position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .6rem; font-size: .78rem; font-weight: 600; color: #fff; background: rgba(61, 53, 48, .72); border-radius: 999px; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.product-gallery__main:hover .product-gallery__zoom,
.product-gallery__main:focus-visible .product-gallery__zoom { opacity: 1; }
.product-gallery__thumbs { display: flex; flex-wrap: wrap; gap: .6rem; }
.product-gallery__thumb { width: 76px; height: 76px; padding: .3rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-alt); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.product-gallery__thumb img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.product-gallery__thumb:hover { border-color: var(--primary); }
.product-gallery__thumb.is-active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

/* Lightbox / Großansicht mit Zoom */
body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(28, 24, 21, .92); padding: 1.5rem; }
.lightbox[hidden] { display: none; }
.lightbox__stage { max-width: 90vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox__img { max-width: 90vw; max-height: 88vh; object-fit: contain; cursor: zoom-in; transform: scale(1); transition: transform .2s ease; touch-action: pinch-zoom; }
.lightbox__img.is-zoomed { transform: scale(2.4); cursor: zoom-out; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; border-radius: 999px; line-height: 1; transition: background .15s ease; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .32); }
.lightbox__close { top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; font-size: 1.8rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; font-size: 2rem; }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.product-detail__info h1 { margin: .25rem 0 .75rem; font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2rem); }

/* Kaufbox: bündelt Preis, Lagerstatus und Kauf-Aktion in einer Karte. */
.product-detail__buy {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 1.1rem 1.25rem; margin: 1rem 0 1.5rem;
}
.product-detail__buy .product-detail__price { margin-top: 0; }
.product-detail__buy .stock { margin-bottom: 0; }
.product-detail__buy .add-to-cart { margin: 1rem 0 0; }
.product-detail__buy .made-to-order { margin: .85rem 0 0; }

/* Hinweis (z. B. „Artikel in Prüfung" für Verkäufer). */
.notice {
    background: #e8f1fb; color: #1c3d5a; border: 1px solid #bcd7f0;
    border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .92rem;
}

/* Mobile Kaufleiste: fixiert am unteren Rand, nur auf schmalen Displays. */
.product-buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: none; align-items: center; gap: 1rem;
    padding: .6rem var(--gutter) max(.6rem, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(61, 53, 48, .10);
    transition: transform .2s ease, opacity .2s ease;
}
.product-buybar__price { display: flex; flex-direction: column; line-height: 1.2; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.product-buybar__price .vat-note { font-size: .72rem; font-weight: 500; }
.product-buybar__btn { flex: 1; }
.product-buybar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
    .product-buybar { display: flex; }
    /* Platz am Seitenende reservieren, damit die Leiste nichts verdeckt. */
    body:has(.product-buybar) main.container { padding-bottom: 6rem; }
}
.product-detail__category { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-dark); font-weight: 700; }
.product-detail__price { font-size: 1.8rem; font-weight: 800; margin: .5rem 0; }
.product-detail__price--sale { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.product-detail__price-old { font-size: 1.2rem; font-weight: 600; color: var(--muted); text-decoration: line-through; }
.product-detail__price-now { font-size: 1.8rem; font-weight: 800; color: var(--danger); }
.product-detail__price--sale .badge--sale { position: static; align-self: center; }
.product-detail__price--sale .vat-note { flex-basis: 100%; }
.product-detail__savings { margin: -.25rem 0 .5rem; color: var(--danger); font-weight: 600; }
.vat-note { font-size: .85rem; font-weight: 500; color: var(--muted); }
.stock { font-weight: 600; margin: .25rem 0 1.25rem; }
.stock--ok { color: var(--accent-dark); }
.stock--out { color: var(--danger); }
.product-detail__desc p { margin: 0 0 1rem; color: #5d524a; }
.add-to-cart { display: flex; align-items: flex-end; gap: 1rem; margin: 1.5rem 0; flex-wrap: wrap; }
.product-detail__contact { display: inline-flex; align-items: center; gap: .4rem; margin: .25rem 0 .75rem; }
.qty-field { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.qty-field input { width: 90px; padding: .6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; }
.product-detail__meta { list-style: none; padding: 1.25rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .5rem; color: #5d524a; }
.product-detail__subhead { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.product-detail__specs {
    margin: 0; padding: .25rem 1rem; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.product-detail__spec { display: flex; gap: .75rem; font-size: .95rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.product-detail__spec:last-child { border-bottom: 0; }
.product-detail__spec dt { flex: 0 0 7.5rem; margin: 0; font-weight: 600; color: #5d524a; }
.product-detail__spec dd { margin: 0; color: #3d342e; }
.product-detail__shipping, .seller-profile__shipping { margin: 1.5rem 0 0; }
.product-detail__shipping h2, .seller-profile__shipping h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.shipping-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; max-width: 22rem; }
.shipping-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.shipping-list__price { font-weight: 700; color: #3d342e; white-space: nowrap; }

/* --- Cart ----------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-table th { text-align: left; padding: .9rem 1rem; background: var(--surface-alt); font-size: .85rem; }
.cart-table td { padding: .9rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
.cart-item { display: flex; align-items: center; gap: 1rem; }
.cart-item__img { width: 60px; height: 60px; object-fit: contain; background: var(--surface-alt); border-radius: var(--radius-sm); }
.cart-item__warn { color: var(--danger); font-size: .8rem; margin: .25rem 0 0; }
.qty-input { width: 70px; padding: .5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; }
.cart-item__actions { text-align: right; }
.btn-icon { background: var(--surface-alt); border: 0; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--muted); }
.btn-icon:hover { background: var(--danger); color: #fff; }
.cart-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }

.cart-summary, .checkout__summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px; }
.cart-summary h2, .checkout__summary h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.summary-list { margin: 0 0 .5rem; }
.summary-list > div { display: flex; justify-content: space-between; padding: .35rem 0; }
.summary-list dt, .summary-list dd { margin: 0; }
.summary-hint { font-size: .82rem; color: var(--accent-dark); background: var(--surface-alt); padding: .5rem .75rem; border-radius: var(--radius-sm); margin: .5rem 0; }
.summary-total { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .75rem !important; font-weight: 800; font-size: 1.15rem; }
.summary-vat { font-size: .8rem; color: var(--muted); margin: .25rem 0 1rem; }

/* --- Checkout ------------------------------------------------------------- */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.checkout-login-hint { background: var(--surface-alt); padding: .9rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.checkout__form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 0 0 1.5rem; }
.checkout__form legend { font-weight: 700; padding: 0 .5rem; }
.summary-items { list-style: none; margin: 0 0 1rem; padding: 0 0 1rem; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: .5rem; }
.summary-items li { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; font-size: .9rem; }
.summary-items__qty { color: var(--muted); }
.checkout__note { font-size: .8rem; color: var(--muted); margin-top: 1rem; }

/* --- Forms ---------------------------------------------------------------- */
.form, .checkout__form fieldset, .admin-form { display: flex; flex-direction: column; gap: 1rem; }
label { font-weight: 600; font-size: .92rem; display: flex; flex-direction: column; gap: .35rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=file], select, textarea {
    padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font: inherit; background: var(--surface); color: var(--text); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
/* Checkboxen & Radiobuttons in der Markenfarbe statt Browser-Blau. */
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
textarea { resize: vertical; }
.form-row { display: flex; gap: 1rem; }
.form-row__small { width: 130px; }
.form-row__grow { flex: 1; }
.field-error { color: var(--danger); font-weight: 600; font-size: .82rem; }

/* --- Auth ----------------------------------------------------------------- */
.auth-card { max-width: 420px; margin: 1rem auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.auth-card h1 { margin: 0 0 .25rem; }
.auth-card__hint { color: var(--muted); margin: 0 0 1.5rem; }
.auth-card__switch { text-align: center; margin-top: 1.25rem; }
.auth-card__forgot { margin: -.35rem 0 0; text-align: right; font-size: .88rem; }
.auth-demo { margin-top: 1.5rem; padding: 1rem; background: var(--surface-alt); border-radius: var(--radius-sm); font-size: .85rem; }
.auth-demo p { margin: .25rem 0 0; color: var(--muted); }

/* --- Order cards & status ------------------------------------------------- */
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.order-card__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.order-card h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
address { font-style: normal; color: #5d524a; }
.order-items { width: 100%; border-collapse: collapse; }
.order-items th, .order-items td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border); }
.order-items th:last-child, .order-items td:last-child { text-align: right; }
.order-items tfoot td { border-bottom: 0; padding-top: .6rem; }
.order-items tfoot td:last-child { text-align: right; }
.order-items__total td { font-weight: 800; font-size: 1.1rem; border-top: 2px solid var(--border); }
.order-detail-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.status-pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-alt); color: var(--text); }
.status-pill--pending { background: #fdeccd; color: #946200; }
.status-pill--paid { background: #d7eede; color: #2f7d4f; }
.status-pill--shipped { background: #d6e7f7; color: #2f6394; }
.status-pill--completed { background: #dfe7d6; color: #4f7d2f; }
.status-pill--cancelled { background: #f6dcd8; color: #a23a2c; }

/* --- Success -------------------------------------------------------------- */
.success { max-width: 760px; margin: 0 auto; text-align: center; }
.success__icon { font-size: 3rem; }
.success__lead { font-size: 1.1rem; color: #5d524a; }
.success .order-card { text-align: left; }
.success__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* --- Data tables ---------------------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table th { text-align: left; padding: .8rem 1rem; background: var(--surface-alt); font-size: .82rem; }
.data-table td { padding: .8rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
.thumb { width: 44px; height: 44px; object-fit: contain; background: var(--surface-alt); border-radius: 8px; }
.row-actions { display: flex; gap: 1rem; align-items: center; white-space: nowrap; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; background: var(--accent); color: #fff; padding: .1rem .5rem; border-radius: 999px; margin-left: .4rem; }
.tag--muted { background: #b8ada3; }

/* --- Empty state ---------------------------------------------------------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty p { margin: 0 0 1rem; }

/* --- Flash ---------------------------------------------------------------- */
.flash-stack { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.flash { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; }
.flash--success { background: #d7eede; color: #2f7d4f; }
.flash--error { background: #f6dcd8; color: #a23a2c; }
.flash--info { background: #d6e7f7; color: #2f6394; }
.flash-close { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: inherit; line-height: 1; }

/* --- Error page ----------------------------------------------------------- */
.error-page { text-align: center; padding: 3rem 1rem; max-width: 560px; margin: 0 auto; }
.error-page__code { font-size: 4rem; font-weight: 800; color: var(--primary); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.site-footer p { color: var(--muted); margin: .5rem 0; }
.footer-logo { height: 78px; width: auto; max-width: 260px; margin-bottom: .6rem; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { color: var(--text); }
.footer-note { font-size: .82rem; }
.footer-legal { border-top: 1px solid var(--border); padding-top: 1rem; padding-bottom: 1.5rem; }
.footer-legal__nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer-legal__nav a { color: var(--muted); font-size: .85rem; }

/* --- Produktsicherheits-Hinweis ------------------------------------------ */
.safety-notice { display: flex; gap: .6rem; align-items: flex-start; background: #fdeccd; color: #7a5200; border: 1px solid #f1d39a; border-radius: var(--radius-sm); padding: .85rem 1rem; margin: 1.25rem 0; font-size: .88rem; line-height: 1.45; }
.safety-notice__icon { font-size: 1.15rem; line-height: 1.2; }
.safety-notice--info { background: #e8f1fb; color: #1c3d5a; border-color: #bcd7f0; }
.hero__safety { margin-top: 1rem; font-size: .82rem; color: var(--muted); }

/* --- Kasse: Pflicht-Bestätigung ------------------------------------------ */
.checkout__confirm { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; margin: 0 0 .25rem; cursor: pointer; }
.checkout__confirm input { width: auto; flex: none; margin-top: .2rem; }

/* --- Kasse: Zahlungsart --------------------------------------------------- */
.checkout__payment { gap: .75rem; }
.payment-option { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .85rem 1rem; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.payment-option:hover { border-color: var(--accent); }
.payment-option input { width: auto; flex: none; margin-top: .25rem; }
.payment-option:has(input:checked) { border-color: var(--primary); background: var(--surface-alt); }
.payment-option--disabled { cursor: not-allowed; opacity: .7; }
.payment-option--disabled:hover { border-color: var(--border); }
.payment-option__body { display: flex; flex-direction: column; gap: .15rem; }
.payment-option__title { font-weight: 700; }
.payment-option__hint { font-size: .82rem; color: var(--muted); }

/* --- Versandart an der Kasse --------------------------------------------- */
.checkout__shipping .shipping-group { margin-bottom: .85rem; }
.checkout__shipping .shipping-group:last-of-type { margin-bottom: 0; }
.shipping-group__title { margin: 0 0 .4rem; font-size: .9rem; color: var(--muted); }
.shipping-option { display: flex; gap: .7rem; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem 1rem; cursor: pointer; transition: border-color .15s ease, background .15s ease; margin-bottom: .5rem; }
.shipping-option:last-child { margin-bottom: 0; }
.shipping-option:hover { border-color: var(--accent); }
.shipping-option input { width: auto; flex: none; }
.shipping-option:has(input:checked) { border-color: var(--primary); background: var(--surface-alt); }
.shipping-option__body { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex: 1; }
.shipping-option__title { font-weight: 700; }
.shipping-option__price { font-weight: 700; white-space: nowrap; }

/* --- PayPal-Bezahlseite --------------------------------------------------- */
.paypal-checkout__lead { color: var(--muted); max-width: 60ch; }
.paypal-checkout__grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.paypal-checkout__pay { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.paypal-total { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.paypal-total strong { font-size: 1.4rem; }
.paypal-checkout__back { margin-top: 1.25rem; font-size: .88rem; }
.paypal-error { background: #f6dcd8; color: #a23a2c; border: 1px solid #eec3bc; border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; font-size: .9rem; }

/* --- Zahlungshinweis / Bankverbindung ------------------------------------ */
.payment-instructions { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; text-align: left; }
.payment-instructions h2 { margin: 0 0 .75rem; font-size: 1.1rem; }
.payment-instructions--paid { background: #eef6f0; border-color: #cfe6d8; }
.bank-details { margin: 1rem 0 0; }
.bank-details > div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.bank-details > div:last-child { border-bottom: 0; }
.bank-details dt { margin: 0; color: var(--muted); }
.bank-details dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.status-pill--small { font-size: .72rem; padding: .1rem .5rem; }

/* --- Rechtstext-Seiten ---------------------------------------------------- */
.legal-page { max-width: 760px; margin: 0 auto; }
.legal-page h2 { margin-top: 1.8rem; font-size: 1.15rem; }
.legal-placeholder { background: var(--surface-alt); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .88rem; color: var(--muted); }
.legal-placeholder code { background: var(--surface); padding: 0 .25rem; border-radius: 4px; }
/* Noch zu ergaenzende Pflichtangaben deutlich hervorheben. */
.legal-todo { background: #fff3cd; color: #7a5200; padding: 0 .25rem; border-radius: 3px; font-style: italic; }
.product-detail__delivery { margin-top: -.25rem; }
.auth-card__legal { margin: .25rem 0 .5rem; }

/* ==========================================================================
   Adminbereich
   ========================================================================== */
.admin-body { background: var(--surface-alt); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: #2f2925; color: #f3ede2; padding: 1.5rem 1rem; display: flex; flex-direction: column; }
.admin-sidebar__bar { display: flex; align-items: center; margin-bottom: 1.5rem; }
.admin-brand { color: #fff; font-weight: 800; font-size: 1.15rem; display: block; }
.admin-brand span { color: var(--primary); }
.admin-brand:hover { text-decoration: none; }
/* Menü-Button nur auf schmalen Displays sichtbar (siehe Media-Query). */
.admin-nav-toggle { display: none; flex-direction: column; gap: 5px; margin-left: auto; background: none; border: 0; cursor: pointer; padding: .5rem; }
.admin-nav-toggle span { width: 22px; height: 2px; background: #f3ede2; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.admin-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.admin-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.admin-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.admin-nav a { color: #d8cec4; padding: .65rem .85rem; border-radius: var(--radius-sm); font-weight: 600; }
.admin-nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.admin-nav a.is-active { background: var(--primary); color: #fff; }
.admin-sidebar__foot { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.admin-sidebar__foot a { color: #d8cec4; }
.linkish { background: none; border: 0; color: #d8cec4; cursor: pointer; font: inherit; padding: 0; text-align: left; }
.linkish:hover { color: #fff; text-decoration: underline; }
.linkish--danger { color: var(--danger); }

.admin-main { display: flex; flex-direction: column; }
.admin-topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.25rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { margin: 0; font-size: 1.5rem; }
.admin-user { color: var(--muted); font-size: .9rem; }
.admin-content { padding: 2rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-grid--tight { margin-bottom: 1rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.stat-card__label { display: block; color: var(--muted); font-size: .85rem; }
.stat-card__value { display: block; font-size: 1.8rem; font-weight: 800; margin-top: .25rem; }
.stat-card__hint { display: block; color: var(--muted); font-size: .78rem; margin-top: .25rem; }

/* --- Verkäufer-Cockpit ---------------------------------------------------- */
.cockpit-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.status-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.status-chip--ok { background: #d7eede; color: #2f7d4f; }
.status-chip--warn { background: #fdeccd; color: #946200; }

.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.task { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--surface-alt); border-left: 4px solid var(--border); }
.task--p1 { border-left-color: var(--danger); }
.task--p2 { border-left-color: #d9a441; }
.task--p3 { border-left-color: var(--muted); }
.task__text { flex: 1; }
.task .btn { flex-shrink: 0; white-space: nowrap; }
.task-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .78rem; margin: .9rem 0 0; }
.task-legend__item::before { content: ''; display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.task-legend__item--p1::before { background: var(--danger); }
.task-legend__item--p2::before { background: #d9a441; }
.task-legend__item--p3::before { background: var(--muted); }
.cockpit-alldone { font-weight: 600; margin: 0; }

.cockpit-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.cockpit-check__item { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--surface-alt); }
.cockpit-check__icon { flex-shrink: 0; line-height: 1.4; }
.cockpit-check__body { flex: 1; }
.cockpit-check__state { color: var(--muted); font-size: .82rem; margin-left: .25rem; }
.cockpit-check__text { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.cockpit-check__item .btn { flex-shrink: 0; white-space: nowrap; align-self: center; }
.cockpit-check__item--erledigt .cockpit-check__text { color: var(--muted); }

.event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.event-list__item { display: flex; align-items: flex-start; gap: .6rem; }
.event-list__icon { flex-shrink: 0; }
.event-list__body { flex: 1; }
.event-list__date { display: block; color: var(--muted); font-size: .78rem; margin-top: .1rem; }

@media (max-width: 640px) {
    .task, .cockpit-check__item { flex-direction: column; align-items: stretch; }
    .task .btn, .cockpit-check__item .btn { align-self: flex-start; }
}

.admin-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
/* flex-wrap: auf schmalen Displays rutscht der Aktions-Button unter den Titel,
   statt ihn zusammenzuquetschen. */
.admin-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.admin-panel__head h2 { margin: 0; font-size: 1.2rem; }
.admin-panel h3 { margin: 1.25rem 0 .5rem; font-size: 1rem; }
.admin-panel h3:first-child { margin-top: 0; }

.back-link { display: inline-block; margin-bottom: 1rem; font-weight: 600; }
.admin-form__grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.admin-form__main, .admin-form__side { display: flex; flex-direction: column; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.admin-form__actions { display: flex; gap: .75rem; margin-top: 1.5rem; }
.logo-preview { display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius-sm); min-height: 120px; }
.logo-preview img { max-height: 170px; width: auto; }
.logo-preview__empty { color: var(--muted); font-size: .9rem; text-align: center; }

/* --- Rechnungs-Designer --------------------------------------------------- */
.designer-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 1.5rem; align-items: start; }
.designer-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.designer-section { display: flex; flex-direction: column; gap: .85rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-alt); }
.designer-section h3 { margin: 0; }
.designer-preview { display: flex; flex-direction: column; gap: .5rem; }
.designer-preview__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.designer-preview__status { margin-left: auto; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.designer-preview iframe { width: 100%; height: 78vh; min-height: 520px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.color-row { display: flex; align-items: center; gap: .6rem; }
.color-row input[type=color] { width: 52px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }
.color-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.color-preset { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); padding: .45rem .65rem; color: var(--text); font: inherit; font-size: .84rem; cursor: pointer; }
.color-preset:hover, .color-preset:focus-visible { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.color-preset span { width: 1rem; height: 1rem; border-radius: 50%; background: var(--preset-color); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.designer-logo { border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin: .25rem 0; background: var(--surface); }
.designer-logo legend { font-weight: 600; font-size: .9rem; padding: 0 .4rem; }
.designer-logo__current { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.designer-logo__current img { max-height: 64px; max-width: 160px; width: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 4px; }
.field-hint { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; text-align: right; margin-top: .25rem; }
@media (max-width: 880px) { .designer-grid { grid-template-columns: 1fr; } .designer-preview iframe { height: 70vh; } }
@media (max-width: 560px) { .color-presets { grid-template-columns: 1fr; } .designer-preview__head { flex-wrap: wrap; } .designer-preview__status { margin-left: 0; } }
.admin-form__row { display: flex; gap: 1rem; }
.admin-form__row > label { flex: 1; }
.switches { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.switch { flex-direction: row; align-items: center; gap: .5rem; font-weight: 600; }
.switch input { width: auto; }
.image-fields { display: flex; flex-direction: column; gap: 1rem; }
.image-fields__hint { margin: -.35rem 0 .1rem; }
.image-fields .image-field { padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-alt); gap: .4rem; }
.image-field { display: flex; flex-direction: column; gap: .5rem; }
.image-field__label { font-weight: 600; font-size: .92rem; }
.image-field__slot { font-size: .82rem; font-weight: 700; color: var(--accent-dark); }
.image-field__preview { width: 100px; height: 100px; object-fit: contain; background: var(--surface-alt); border-radius: var(--radius-sm); padding: .5rem; }
.image-fields .image-field__preview { background: var(--surface); }
.image-field__manual { font-size: .82rem; }

.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-tabs a { padding: .45rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .9rem; }
.filter-tabs a:hover { border-color: var(--primary); text-decoration: none; }
.filter-tabs a.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

.admin-order-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.status-form { display: flex; gap: .5rem; }
.status-form select { flex: 1; }

/* ==========================================================================
   Verkäufer (Profil, Artikel-Zuordnung)
   ========================================================================== */
.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.account-head__actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }

.product-card__seller { margin: 0; font-size: .82rem; color: var(--muted); }
.product-card__seller a { color: var(--accent-dark); font-weight: 600; }

.product-detail__seller { margin: 0 0 .75rem; color: var(--muted); }
.product-detail__seller a { color: var(--accent-dark); font-weight: 700; }

.seller-chip {
    display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem;
    padding: .85rem 1rem; background: var(--surface-alt); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
}
.seller-chip:hover { border-color: var(--primary); text-decoration: none; }
.seller-chip__avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; background: var(--accent);
    color: #fff; font-weight: 800; flex: none;
}
.seller-chip__text { display: flex; flex-direction: column; }

.seller-profile {
    display: flex; gap: 1.5rem; align-items: flex-start;
    background: linear-gradient(135deg, #fbe9df, #f3ede2);
    border-radius: var(--radius); padding: 2rem; margin-bottom: 1rem;
}
.seller-profile__avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 84px; height: 84px; border-radius: 50%; background: var(--accent);
    color: #fff; font-size: 2.2rem; font-weight: 800; flex: none;
}
.seller-profile__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--primary-dark); margin: 0 0 .25rem; font-size: .8rem; }
.seller-profile__info h1 { margin: 0 0 .25rem; }
.seller-profile__bio { margin-top: .75rem; max-width: 70ch; }
.seller-profile__bio p { margin: 0 0 .75rem; color: #5d524a; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero__art { order: -1; }
    .hero__text { margin-left: auto; margin-right: auto; }
    .usp { grid-template-columns: repeat(2, 1fr); }
    .catalog { grid-template-columns: 1fr; gap: 1.25rem; }
    .catalog__sidebar { position: static; padding: 1rem 1.25rem; }
    /* Kategorien & Filter als aufklappbares Panel: Produkte rücken nach oben,
       Filter bleiben mit einem Tipp erreichbar (JS klappt initial zu). */
    .catalog-collapse__summary {
        display: flex; align-items: center; justify-content: space-between; gap: .75rem;
        font-weight: 700; padding: .2rem 0; list-style: none;
    }
    .catalog-collapse__summary::after {
        content: "▾"; color: var(--muted); font-size: .8rem;
        transition: transform .15s ease;
    }
    .catalog-collapse[open] > .catalog-collapse__summary { margin-bottom: 1rem; }
    .catalog-collapse[open] > .catalog-collapse__summary::after { transform: rotate(180deg); }
    .catalog__sort { flex: 1 1 100%; justify-content: space-between; gap: .75rem; }
    .catalog__sort select { flex: 1; min-height: 44px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-inner > div:first-child { grid-column: 1 / -1; }
    .product-detail { grid-template-columns: 1fr; }
    .cart-layout, .checkout, .paypal-checkout__grid, .admin-form__grid, .admin-order-grid { grid-template-columns: 1fr; }
    .cart-summary, .checkout__summary { position: static; }

    /* Admin: Seitenleiste wird zur Kopfzeile mit aufklappbarem Menü. */
    .admin-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .admin-main { min-width: 0; }
    .admin-sidebar { padding: .65rem 1rem; }
    .admin-sidebar__bar { margin-bottom: 0; justify-content: space-between; }
    .admin-nav-toggle { display: flex; }
    .admin-nav, .admin-sidebar__foot { display: none; }
    .admin-sidebar.is-open .admin-nav { display: flex; flex-direction: column; margin-top: .75rem; gap: .15rem; }
    .admin-sidebar.is-open .admin-sidebar__foot {
        display: flex; flex-direction: row; flex-wrap: wrap; gap: 1rem;
        margin-top: .75rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: .75rem;
    }

    /* Inhalt enger fassen und horizontalen Überlauf vermeiden. */
    .admin-topbar { padding: 1rem; flex-wrap: wrap; gap: .15rem 1rem; }
    .admin-topbar h1 { font-size: 1.25rem; }
    .admin-content { padding: 1.25rem 1rem; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .stat-card { padding: 1rem 1.1rem; }
    .stat-card__value { font-size: 1.5rem; }
    /* Breite Tabellen im Adminbereich scrollen statt überzulaufen. */
    .admin-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* Datentabellen sollen ihre Spalten nicht unleserlich quetschen, sondern scrollen. */
    .admin-panel .data-table { min-width: 540px; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; order: 1; }
    .main-nav { display: none; flex-direction: column; width: 100%; order: 4; padding-top: .5rem; gap: .25rem; }
    .main-nav.is-open { display: flex; animation: nav-slide-in .18s ease; }
    .main-nav > a { padding: .6rem .25rem; border-radius: var(--radius-sm); }
    .main-nav > a:hover { background: var(--surface-alt); text-decoration: none; }
    /* Aktiv-Unterstreichung auf Mobil durch einen linken Akzentbalken ersetzen. */
    .main-nav > a.is-active::after, .nav-dropdown__toggle.is-active::after { content: none; }
    .main-nav > a.is-active { background: var(--surface-alt); box-shadow: inset 3px 0 0 var(--primary); }
    /* Kategorien-Dropdown wird zum aufklappbaren Akkordeon. */
    .nav-dropdown { width: 100%; }
    .nav-dropdown__toggle { width: 100%; justify-content: space-between; padding: .6rem .25rem; font-size: 1rem; }
    .nav-dropdown__menu {
        position: static; display: none; min-width: 0; box-shadow: none;
        border: 0; border-left: 2px solid var(--border); border-radius: 0;
        margin: .15rem 0 .35rem .5rem; padding: .15rem 0 .15rem .5rem;
    }
    .nav-dropdown.is-open > .nav-dropdown__menu { display: flex; }
    /* Kopfzeile in zwei Reihen: Marke + Menü-Button oben, Suche + Icons darunter.
       Verhindert, dass die Inhalte breiter als das Display werden. */
    .header-inner { flex-wrap: wrap; row-gap: .5rem; }
    .brand { margin-right: auto; }
    .header-actions { order: 2; width: 100%; margin-left: 0; gap: .5rem; }
    .search-form { flex: 1; min-width: 0; }
    .search-form input { width: auto; flex: 1; min-width: 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { border-top: 1px solid var(--border); padding: .5rem 0; }
    .cart-table td { border: 0; display: flex; justify-content: space-between; align-items: center; }
    .cart-table td[data-label]::before { content: attr(data-label); font-weight: 700; }
    .cart-item { width: 100%; }
    .form-row { flex-direction: column; }
    .form-row__small { width: 100%; }
    .seller-profile { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; }
    .admin-panel .seller-products-table {
        display: block;
        width: 100%;
        min-width: 0;
        border: 0;
        background: transparent;
        overflow: visible;
    }
    .seller-products-table thead { display: none; }
    .seller-products-table tbody {
        display: grid;
        gap: .85rem;
    }
    .seller-products-table tr {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        gap: .35rem .85rem;
        padding: .9rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--surface);
    }
    .seller-products-table td {
        display: flex;
        min-width: 0;
        padding: 0;
        border: 0;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        overflow-wrap: anywhere;
        /* Alle Datenzellen in die breite Spalte – sonst rutschen z. B. Preis
           und Aufrufe in den 64px-Bildslot und Werte brechen zeichenweise um. */
        grid-column: 2;
    }
    .seller-products-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-size: .78rem;
        font-weight: 700;
        color: var(--muted);
    }
    .seller-products-table td[data-label="Bild"] {
        grid-column: 1;
        grid-row: span 2;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .seller-products-table td[data-label="Bild"]::before,
    .seller-products-table td[data-label="Name"]::before { content: none; }
    .seller-products-table td[data-label="Name"] {
        display: block;
        font-size: 1rem;
    }
    .seller-products-table td[data-label="Name"] .tag {
        margin: .25rem 0 0;
    }
    .seller-products-table td[data-label="Aktionen"] {
        grid-column: 1 / -1;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: .65rem 1rem;
        padding-top: .65rem;
        border-top: 1px solid var(--border);
        white-space: normal;
    }
    .seller-products-table td[data-label="Aktionen"]::before {
        flex-basis: 100%;
    }
    .seller-products-table .thumb {
        width: 64px;
        height: 64px;
    }

    /* Kompaktere Abstände & Typografie auf Smartphones: engerer Seitenrand
       (greift zuverlässig über die Gutter-Variable, da .container sonst das
       main-Padding überschreibt) und etwas Luft ober-/unterhalb des Inhalts. */
    :root { --gutter: 1rem; }
    main.container { padding-top: 1.25rem; padding-bottom: 2.5rem; }
    .section { margin: 2rem 0; }
    .hero { padding: 1.75rem 1.25rem; gap: 1.25rem; margin-top: .5rem; }
    .hero__actions .btn { flex: 1 1 auto; }
    .product-detail__price, .product-detail__price-now { font-size: 1.5rem; }
    .checkout__form fieldset { padding: 1.1rem; }
    /* Größere Tap-Flächen für die Kopf-Icons (Konto, Warenkorb) */
    .icon-link, .cart-link {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 44px; min-height: 44px; padding: .25rem;
    }
    /* Menü-Buttons als komfortable 44px-Tap-Ziele (WCAG). */
    .nav-toggle, .admin-nav-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
    /* Buttons und Formularfelder mit ausreichend hoher Trefferfläche. */
    .btn { min-height: 44px; }
    .btn--small { min-height: 38px; }
    .btn-icon { width: 40px; height: 40px; font-size: 1.3rem; }
    /* Eingabefelder mind. 16px, damit iOS beim Fokus nicht automatisch heranzoomt. */
    input[type=text], input[type=email], input[type=password], input[type=tel],
    input[type=number], input[type=search], input[type=file], select, textarea {
        font-size: 16px;
    }
    /* In den Warenkorb: Menge und Button voll nutzbar untereinander. */
    .add-to-cart { flex-direction: column; align-items: stretch; gap: .85rem; }
    .add-to-cart .qty-field input { width: 100%; }
    .product-detail__contact { justify-content: center; }
    /* Breite Tabellen (z. B. Bestellpositionen) dürfen seitlich scrollen,
       statt den Inhalt unleserlich zu quetschen. */
    .order-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* Sammel-Aktionsleisten (z. B. Warenkorb) sauber stapeln. */
    .cart-actions .btn { flex: 1 1 auto; }
    /* Seitennummerierung: komfortable Tap-Flächen (WCAG). */
    .pagination__link { min-width: 44px; min-height: 44px; }
}

/* Sanftes Aufklappen des mobilen Menüs (bei „weniger Bewegung" deaktiviert). */
@keyframes nav-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* --- Smartphones: dichtere Produktübersicht (2 Spalten) ------------------- */
@media (max-width: 600px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
    .product-card__body { padding: .8rem; gap: .3rem; }
    .product-card__title { font-size: 1rem; }
    .product-card__category { font-size: .68rem; }
    .price, .price__now { font-size: 1.05rem; }
    /* Preis und Aktionsbutton untereinander – nebeneinander wird es zu eng. */
    .product-card__footer { flex-direction: column; align-items: stretch; gap: .5rem; }
    .product-card__footer form { width: 100%; }
    .product-card__footer .btn { width: 100%; }
    .product-detail__info .share:not(.share--compact) {
        justify-content: center;
    }
    .product-detail__info .share__heading {
        text-align: center;
    }
    .product-detail__info .share__btn,
    .product-detail__info .share__links {
        flex: 1 1 100%;
        justify-content: center;
    }
    /* USP kompakt in zwei Spalten – halbiert die Scrollstrecke gegenüber
       vier untereinander gestapelten Kacheln. */
    .usp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .usp__item { flex-direction: column; align-items: flex-start; gap: .35rem; padding: .8rem .9rem; }
    .usp__item span { font-size: 1.35rem; }
    .usp__item p { font-size: .78rem; }
    /* Kategorie-Chips als wischbare Reihe statt mehrzeiligem Block. */
    .category-grid {
        flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem;
        scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
    }
    .category-chip { flex: 0 0 auto; scroll-snap-align: start; }
    /* Weniger Rand um das Produktbild – mehr Platz für das Motiv auf dem Handy. */
    .product-detail__media { padding: 1rem; }
    /* Hauptbild-Fläche auf dem Handy begrenzen (behält die reservierte Höhe → kein CLS). */
    .product-gallery__main { max-height: 360px; }
    /* Hero-Grafik verkleinern, damit Text ohne langes Scrollen sichtbar wird. */
    .hero__art img { width: 180px; }
    /* Verwandte Produkte / Galerie-Miniaturen etwas kompakter. */
    .product-gallery__thumb { width: 64px; height: 64px; }
    /* Breadcrumb darf umbrechen statt seitlich zu scrollen. */
    .breadcrumb { display: flex; flex-wrap: wrap; gap: .25rem; }
}

/* --- Sehr schmale Geräte: eine Produktspalte ------------------------------ */
@media (max-width: 340px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* Anbieter-Kennzeichnung (privat/gewerblich) & Hinweise */
.provider-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; border: 1px solid transparent; vertical-align: middle; white-space: nowrap; }
.provider-badge--private { background: #fdeede; color: #9a5b1d; border-color: #f0d3ad; }
.provider-badge--commercial { background: var(--surface-alt); color: var(--accent-dark); border-color: var(--border); }
.provider-badge--sm { font-size: .66rem; padding: .05rem .4rem; }
.seller-profile__provider { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .35rem 0; }
.provider-note { background: #fdeede; border: 1px solid #f0d3ad; border-left: 3px solid var(--primary); border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .92rem; color: #6f4a25; margin: 1rem 0; }
.provider-note--sm { font-size: .85rem; padding: .5rem .75rem; }
