/* Shop — shop.css
   Optik angelehnt an das Forum (WoltLab-Style): dunkle Leiste, Logoband, helle Fläche, Boxen mit dunklem Kopf und blau-grüner Linie.
   Die Farben kommen aus assets/theme.css (wird im Admin unter "Einstellungen" erzeugt).
   Keine externen Schriften oder Dateien. */

:root {
  --blau: #5296d5;
  --blau-btn: #4884bb;
  --navy: #38485c;
  --navy-tief: #303e4e;
  --gruen: #64c97c;
  --seitenhg: #edf0f1;
  --text: #303e4e;
  --text-hell: #6b7a80;
  --text-leise: #98a4a6;
  --grenze: #d9dfe2;
  --weiss: #ffffff;
  --box-bg: #ffffff;          /* Boxen, Karten, Eingabe-Hintergründe auf Boxen */
  --kopf-bg: var(--navy);     /* Kopf der Boxen */
  --kopf-text: #ffffff;
  --ueberschrift: #38485c;    /* Titel in Karten und Warenkorb */
  --tint: #e6eff9;            /* heller Akzent-Hintergrund (Chips, Buttons, Hinweise) */
  --tint-hover: #d4e5f6;
  --tint-text: #38485c;
  --eingabe-bg: #edf0f1;      /* Formularfelder */
  --preis: var(--blau-btn);
  --link: var(--blau);
  --radius: 8px;
  --max: 1100px;
  --sans: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --schatten: 0 1px 4px rgba(48, 62, 78, .12);
  --schatten-hover: 0 8px 22px rgba(48, 62, 78, .20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); line-height: 1.6; font-size: 16px; background: var(--seitenhg); }
h1, h2, h3 { font-weight: 400; margin: 0 0 .5em; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--link); }
img { max-width: 100%; display: block; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Obere Leiste (wie die Hauptnavigation des Forums) */
.topbar { background: var(--navy-tief); position: sticky; top: 0; z-index: 30; }
.shop-nav a { display: flex; align-items: center; gap: 8px; padding: 0 20px; color: #fff; text-decoration: none; font-size: 16px; }
.shop-nav a:hover { background: rgba(255,255,255,.10); }
.shop-nav a.aktiv { background: var(--nav-aktiv, var(--blau)); }
.korb-badge { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 0 6px 0 16px; font-size: 16px; }
.korb-badge:hover .korb-text { text-decoration: underline; }
.korb-badge .icon { width: 22px; height: 22px; }
.korb-badge strong { background: var(--badge, var(--blau)); color: #fff; border-radius: 12px; min-width: 24px; text-align: center; padding: 1px 8px; font-size: 13px; }

/* Logoband: Logo führt zum Shop */
.logoband { background: var(--navy); text-align: center; padding: 22px 24px; }
.logoband a { display: inline-block; text-decoration: none; color: #fff; font-size: 34px; font-weight: 300; }
.shop-nav .icon { width: 18px; height: 18px; }
.logoband img { height: 84px; width: auto; margin: 0 auto; }

/* Seitentitel wie im Forum: große, helle Schrift */
.seitentitel { max-width: var(--max); margin: 0 auto; padding: 36px 24px 8px; }
.seitentitel h1 { font-size: 42px; font-weight: 300; color: var(--text); margin: 0 0 4px; }
.seitentitel p { font-size: 18px; color: var(--text-leise); margin: 0; }
.inhalt { max-width: var(--max); margin: 0 auto; padding: 20px 24px 56px; }
.brotkrumen { font-size: 14px; color: var(--text-hell); margin: 0 0 14px; }
.brotkrumen a { text-decoration: none; }
.brotkrumen a:hover { text-decoration: underline; }
.leer-hinweis { text-align: center; color: var(--text-hell); padding: 40px 0; }

/* Boxen mit dunklem Kopf und blau-grüner Linie */
.box { background: var(--box-bg); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; margin-bottom: 26px; }
.box-kopf { position: relative; background: var(--kopf-bg); color: var(--kopf-text); font-size: 24px; font-weight: 300; margin: 0; padding: 16px 28px 18px; }
.box-kopf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blau), var(--gruen)); }
.box-inhalt { padding: 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); text-decoration: none; font-size: 16px; border: 0; cursor: pointer; font-family: var(--sans); background: var(--navy); color: #fff; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--schatten-hover); }
.btn-primary { background: var(--blau-btn); }
.btn-primary:hover { background: var(--blau); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* "Weiter shoppen": heller Button mit Pfeil-Kreis, der beim Darüberfahren nach links rutscht */
.btn-zurueck { display: inline-flex; align-items: center; gap: 12px; padding: 7px 26px 7px 8px; border-radius: 40px; background: var(--tint); color: var(--tint-text); text-decoration: none; font-size: 16px; font-weight: 600; transition: background .15s, box-shadow .15s; }
.btn-zurueck .pfeil { width: 38px; height: 38px; border-radius: 50%; background: var(--blau-btn); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.btn-zurueck .pfeil .icon { width: 20px; height: 20px; }
.btn-zurueck:hover { background: var(--tint-hover); box-shadow: var(--schatten); }
.btn-zurueck:hover .pfeil { transform: translateX(-4px); }

/* Produkt-Raster */
.produkt-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.produkt-karte { background: var(--box-bg); border: 1px solid var(--grenze); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.produkt-karte:hover { transform: translateY(-5px); box-shadow: var(--schatten-hover); border-color: var(--blau); }
.bild-rahmen { position: relative; overflow: hidden; background: var(--seitenhg); }
.produkt-bild, .bild-platzhalter { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--seitenhg); transition: transform .35s; }
.produkt-karte:hover .produkt-bild { transform: scale(1.05); }
.bild-platzhalter { display: flex; align-items: center; justify-content: center; color: var(--tint-text); font-size: 14px; }
.status-badge { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 600; background: #f0ad4e; color: #fff; padding: 3px 12px; border-radius: 14px; }
.produkt-text { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--blau), var(--gruen)) 1; }
.produkt-text h3 { margin: 0; font-size: 20px; font-weight: 600; color: var(--ueberschrift); }
.preis { font-size: 24px; font-weight: 300; color: var(--preis); }
.preis small { font-size: 13px; color: var(--text-hell); }
.produkt-mehr { margin-top: auto; align-self: flex-start; font-size: 14px; font-weight: 600; background: var(--tint); color: var(--tint-text); padding: 7px 18px; border-radius: 20px; transition: background .15s, color .15s; }
.produkt-karte:hover .produkt-mehr { background: var(--blau-btn); color: #fff; }
.produkt-karte.ausverkauft .produkt-bild, .produkt-karte.ausverkauft .bild-platzhalter { opacity: .5; }

/* Artikelseite */
.artikel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.galerie .haupt { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--seitenhg); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 2px solid var(--grenze); cursor: pointer; }
.thumbs img.aktiv { border-color: var(--blau); }
.artikel-info .preis { font-size: 34px; margin-bottom: 14px; display: block; }
.bonus-hinweis { background: var(--tint); border-left: 4px solid var(--blau); border-radius: 4px; padding: 10px 14px; font-size: 14px; color: var(--tint-text); margin-bottom: 18px; }
.gruppe { margin-bottom: 18px; }
.gruppe .label { font-size: 13px; color: var(--text-hell); margin-bottom: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 14px; padding: 8px 16px; border-radius: 6px; border: 2px solid var(--grenze); background: var(--box-bg); cursor: pointer; font-family: var(--sans); color: var(--text); }
.chip:hover { border-color: var(--blau); }
.chip.aktiv { border-color: var(--blau); background: var(--tint); color: var(--tint-text); font-weight: 600; }
.kaufzeile { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--grenze); border-radius: var(--radius); overflow: hidden; background: var(--box-bg); }
.stepper button { border: 0; background: var(--box-bg); padding: 9px 14px; font-size: 16px; cursor: pointer; color: var(--text); }
.stepper button:hover { background: var(--seitenhg); }
.stepper .wert { padding: 9px 16px; border-left: 2px solid var(--grenze); border-right: 2px solid var(--grenze); min-width: 46px; text-align: center; font-size: 15px; }
.stepper.klein button { padding: 4px 10px; font-size: 14px; } .stepper.klein .wert { padding: 4px 12px; font-size: 13px; min-width: 38px; }

/* Warenkorb + Checkout */
.korb-seite { max-width: 720px; margin: 0 auto; }
.korb-zeile { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--grenze); }
.korb-zeile .info { flex: 1; font-size: 16px; font-weight: 600; color: var(--ueberschrift); }
.korb-zeile .info small { display: block; color: var(--text-hell); font-size: 13px; font-weight: 400; }
.korb-zeile .betrag { min-width: 84px; text-align: right; font-weight: 600; }
.korb-zeile .weg { background: none; border: 0; font-size: 22px; color: var(--text-leise); cursor: pointer; }
.korb-zeile .weg:hover { color: #c0392b; }
.summe { display: flex; justify-content: space-between; font-size: 20px; padding: 18px 0 4px; }
.summe span:last-child { color: var(--preis); font-weight: 600; }
.hinweis-klein { font-size: 13px; color: var(--text-hell); }
.korb-aktionen { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.checkout form { display: flex; flex-direction: column; gap: 14px; }
.checkout label { display: flex; flex-direction: column; font-size: 13px; gap: 6px; color: var(--text-hell); }
.checkout .zeile { display: flex; gap: 14px; } .checkout .zeile label { flex: 1; min-width: 0; }
.checkout input[type=text], .checkout input[type=email], .checkout input[type=tel], .checkout textarea { font-family: var(--sans); font-size: 15px; padding: 11px 14px; border: 1px solid var(--grenze); border-radius: 6px; background: var(--eingabe-bg); color: var(--text); width: 100%; }
.checkout input:focus, .checkout textarea:focus { outline: 2px solid var(--blau); background: var(--box-bg); }
.optionen { display: flex; gap: 10px; flex-wrap: wrap; }
.optionen label { flex-direction: row; align-items: center; gap: 8px; border: 2px solid var(--grenze); border-radius: 6px; padding: 10px 16px; cursor: pointer; font-size: 14px; color: var(--text); }
.optionen label:has(input:checked) { border-color: var(--blau); background: var(--tint); color: var(--tint-text); font-weight: 600; }
.optionen input { accent-color: var(--blau-btn); }
.feldgruppe-titel { font-size: 13px; color: var(--text-hell); margin-bottom: -6px; }
.checkout .dsgvo { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; }
.checkout .dsgvo input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fehler { background: #fbe9e9; color: #8a2323; border-radius: 6px; padding: 12px 16px; font-size: 14px; }
.erfolg { text-align: center; }
.leer-hinweis .btn { margin-top: 8px; }

/* Footer: Links in der ersten, Copyright in der zweiten Zeile */
.shop-footer { background: var(--navy-tief); color: rgba(255,255,255,.85); padding: 32px 24px 28px; font-size: 14px; text-align: center; }
.shop-footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.shop-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.shop-footer a:hover { text-decoration: underline; color: #fff; }
#footerText { font-size: 13px; color: rgba(255,255,255,.65); }

@media (max-width: 900px) { .produkt-raster { grid-template-columns: 1fr 1fr; } .artikel { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .produkt-raster { grid-template-columns: 1fr; }
  .seitentitel h1 { font-size: 32px; } .box-kopf { font-size: 20px; padding: 14px 20px 16px; } .box-inhalt { padding: 20px; }
  .logoband img { height: 60px; } .logoband { padding: 16px 20px; }
  .checkout .zeile { flex-direction: column; }
  .korb-zeile { flex-wrap: wrap; }
  .korb-aktionen { flex-direction: column-reverse; align-items: stretch; } .korb-aktionen .btn, .korb-aktionen .btn-zurueck { justify-content: center; }
}

/* Home nur als Symbol */

/* Suchfeld in der oberen Leiste */

.noscript-hinweis { background: #fbe9e9; color: #8a2323; text-align: center; padding: 14px 20px; font-size: 15px; }

/* Summen im Warenkorb und im Checkout */
.summen { margin-top: 6px; }
.summe-zeile { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 15px; }
.summe-zeile span:last-child { white-space: nowrap; }
.summen .summe, .zusammenfassung .summe { border-top: 1px solid var(--grenze); margin-top: 6px; padding-top: 12px; }
.zusammenfassung { background: var(--eingabe-bg); border-radius: var(--radius); padding: 16px 20px; }
.zf-titel { font-weight: 600; color: var(--ueberschrift); margin-bottom: 6px; }
.hinweis-klein.zentriert { text-align: center; margin-top: 8px; }
.tabelle { width: 100%; border-collapse: collapse; margin: 6px 0 16px; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--grenze); }
.tabelle th { color: var(--text-hell); font-weight: 400; font-size: 14px; }


/* Schmale Seiten (Warenkorb): Überschrift bündig mit der Box */
.seitentitel.schmal { max-width: 768px; }

/* Aktionen / Rabatte */
.aktionsbanner { background: #fff3cd; color: #6b4e00; border-bottom: 2px solid #f0ad4e; text-align: center; padding: 10px 20px; font-size: 15px; font-weight: 600; }
s.alt { color: var(--text-leise); font-weight: 300; font-size: .8em; margin-right: 4px; }
.rabatt-badge { position: absolute; top: 12px; right: 12px; background: #d9534f; color: #fff; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.aktion-hinweis { background: #fff3cd; color: #6b4e00; border-radius: 6px; padding: 8px 14px; font-size: 14px; display: inline-block; margin: 0 0 12px; }
.korb-zeile .aktion-zeile { color: #b8860b; font-weight: 600; }



/* Design-Varianten: <html data-design="dunkel"> = immer dunkel (Orange); <html data-design="auto"> = nach Geräteeinstellung des Besuchers
   (hell = Blau wie das CamperAllianz-Forum, dunkel = Orange). Mit dem Schalter in der Kopfleiste wählt der Besucher selbst:
   <html data-modus="hell|dunkel"> überstimmt die Geräteeinstellung. Ohne data-design gilt das helle Standarddesign (meinR).
   Bei data-design legt dieses Stylesheet alle Farben fest; die Farbwahl im Admin gilt dann nicht. */
html[data-design="dunkel"] {
  color-scheme: dark;
  --blau: #cd824e;
  --blau-btn: #c0743f;
  --navy: #202733;
  --navy-tief: #151a25;
  --nav-aktiv: #cd824e;
  --badge: #cd824e;
  --seitenhg: #1b1d21;
  --box-bg: #1d2332;
  --kopf-bg: #171c28;
  --kopf-text: var(--blau);
  --ueberschrift: #ffffff;
  --tint: rgba(205, 130, 78, .16);
  --tint-hover: rgba(205, 130, 78, .30);
  --tint-text: #efb184;
  --eingabe-bg: #151a25;
  --preis: #e5a06a;
  --link: var(--blau);
  --text: #d1d2d3;
  --text-hell: #9a9da3;
  --text-leise: #7b7f87;
  --grenze: #2d3445;
  --gruen: #f09236;
  --schatten: 0 1px 4px rgba(0, 0, 0, .35);
  --schatten-hover: 0 8px 22px rgba(0, 0, 0, .55);
}
html[data-design="dunkel"] .box-kopf { font-weight: 400; }
html[data-design="dunkel"] .produkt-bild, html[data-design="dunkel"] .bild-platzhalter, html[data-design="dunkel"] .bild-rahmen { background: #151a25; }
html[data-design="dunkel"] .checkout input[type=text], html[data-design="dunkel"] .checkout input[type=email], html[data-design="dunkel"] .checkout input[type=tel], html[data-design="dunkel"] .checkout textarea { background: var(--eingabe-bg); border-color: var(--grenze); color: var(--text); }
html[data-design="dunkel"] .stepper button:hover { background: var(--eingabe-bg); }
html[data-design="dunkel"] .korb-zeile .weg:hover { color: #ff7a73; }
html[data-design="dunkel"] .fehler { background: #3a1f22; color: #ffb4ad; }
/* Helle Palette für den Auto-Modus (CamperAllianz): blaues Forum-Design, orange nur für Buttons und Zähler.
   Im Auto-Modus gelten diese Paletten aus dem Stylesheet; die Farbfelder im Admin wirken hier nicht. */
html[data-design="auto"] {
  color-scheme: light dark;
  --blau: #3c6fa2;
  --blau-btn: #c0743f;
  --navy: #466c98;
  --navy-tief: #3c5b81;
  --nav-aktiv: #2b415d;
  --badge: #cd824e;
  --seitenhg: #fafafa;
  --box-bg: #ffffff;
  --kopf-bg: #ffffff;
  --kopf-text: #3c6fa2;
  --ueberschrift: #2b3a4d;
  --tint: #e4edf6;
  --tint-hover: #d2e2f2;
  --tint-text: #2f5f8f;
  --eingabe-bg: #f0f2f5;
  --preis: #2f5f8f;
  --link: #3c6fa2;
  --gruen: #3c6fa2;
  --text: #3a3a3d;
  --text-hell: #72757a;
  --text-leise: #9a9da3;
  --grenze: #dde1e6;
}
html[data-design="auto"][data-modus="dunkel"] {
  color-scheme: dark;
  --blau: #cd824e;
  --blau-btn: #c0743f;
  --navy: #202733;
  --navy-tief: #151a25;
  --nav-aktiv: #cd824e;
  --badge: #cd824e;
  --seitenhg: #1b1d21;
  --box-bg: #1d2332;
  --kopf-bg: #171c28;
  --kopf-text: var(--blau);
  --ueberschrift: #ffffff;
  --tint: rgba(205, 130, 78, .16);
  --tint-hover: rgba(205, 130, 78, .30);
  --tint-text: #efb184;
  --eingabe-bg: #151a25;
  --preis: #e5a06a;
  --link: var(--blau);
  --text: #d1d2d3;
  --text-hell: #9a9da3;
  --text-leise: #7b7f87;
  --grenze: #2d3445;
  --gruen: #f09236;
  --schatten: 0 1px 4px rgba(0, 0, 0, .35);
  --schatten-hover: 0 8px 22px rgba(0, 0, 0, .55);
}
html[data-design="auto"][data-modus="dunkel"] .box-kopf { font-weight: 400; }
html[data-design="auto"][data-modus="dunkel"] .produkt-bild, html[data-design="auto"][data-modus="dunkel"] .bild-platzhalter, html[data-design="auto"][data-modus="dunkel"] .bild-rahmen { background: #151a25; }
html[data-design="auto"][data-modus="dunkel"] .checkout input[type=text], html[data-design="auto"][data-modus="dunkel"] .checkout input[type=email], html[data-design="auto"][data-modus="dunkel"] .checkout input[type=tel], html[data-design="auto"][data-modus="dunkel"] .checkout textarea { background: var(--eingabe-bg); border-color: var(--grenze); color: var(--text); }
html[data-design="auto"][data-modus="dunkel"] .stepper button:hover { background: var(--eingabe-bg); }
html[data-design="auto"][data-modus="dunkel"] .korb-zeile .weg:hover { color: #ff7a73; }
html[data-design="auto"][data-modus="dunkel"] .fehler { background: #3a1f22; color: #ffb4ad; }
@media (prefers-color-scheme: dark) {
  html[data-design="auto"]:not([data-modus="hell"]) {
    color-scheme: dark;
    --blau: #cd824e;
    --blau-btn: #c0743f;
    --navy: #202733;
    --navy-tief: #151a25;
    --nav-aktiv: #cd824e;
    --badge: #cd824e;
    --seitenhg: #1b1d21;
    --box-bg: #1d2332;
    --kopf-bg: #171c28;
    --kopf-text: var(--blau);
    --ueberschrift: #ffffff;
    --tint: rgba(205, 130, 78, .16);
    --tint-hover: rgba(205, 130, 78, .30);
    --tint-text: #efb184;
    --eingabe-bg: #151a25;
    --preis: #e5a06a;
    --link: var(--blau);
    --text: #d1d2d3;
    --text-hell: #9a9da3;
    --text-leise: #7b7f87;
    --grenze: #2d3445;
    --gruen: #f09236;
    --schatten: 0 1px 4px rgba(0, 0, 0, .35);
    --schatten-hover: 0 8px 22px rgba(0, 0, 0, .55);
  }
  html[data-design="auto"]:not([data-modus="hell"]) .box-kopf { font-weight: 400; }
  html[data-design="auto"]:not([data-modus="hell"]) .produkt-bild, html[data-design="auto"]:not([data-modus="hell"]) .bild-platzhalter, html[data-design="auto"]:not([data-modus="hell"]) .bild-rahmen { background: #151a25; }
  html[data-design="auto"]:not([data-modus="hell"]) .checkout input[type=text], html[data-design="auto"]:not([data-modus="hell"]) .checkout input[type=email], html[data-design="auto"]:not([data-modus="hell"]) .checkout input[type=tel], html[data-design="auto"]:not([data-modus="hell"]) .checkout textarea { background: var(--eingabe-bg); border-color: var(--grenze); color: var(--text); }
  html[data-design="auto"]:not([data-modus="hell"]) .stepper button:hover { background: var(--eingabe-bg); }
  html[data-design="auto"]:not([data-modus="hell"]) .korb-zeile .weg:hover { color: #ff7a73; }
  html[data-design="auto"]:not([data-modus="hell"]) .fehler { background: #3a1f22; color: #ffb4ad; }
}

/* Obere Leiste: links Menü (Navigation + Suche), rechts Warenkorb (und am Handy der Ansicht-Knopf beim Auto-Design).
   Bis 1020 px Breite wird das Menü zum Hamburger-Menü, die Suche steht darin. */
.topbar-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; align-items: stretch; gap: 8px; min-height: 50px; }
.topbar-menue { flex: 1; display: flex; align-items: stretch; justify-content: space-between; gap: 14px; min-width: 0; }
.shop-nav { display: flex; flex-shrink: 0; }
.shop-nav .icon { width: 22px; height: 22px; }
.nav-label { display: none; }
.suche { flex: 0 1 220px; min-width: 140px; display: flex; align-items: center; background: rgba(255,255,255,.12); border-radius: 20px; padding: 0 4px 0 14px; margin: 8px 0; }
.suche:focus-within { background: rgba(255,255,255,.2); }
.suche input { background: transparent; border: 0; color: #fff; font-family: var(--sans); font-size: 15px; width: 100%; min-width: 0; padding: 7px 0; outline: none; }
.suche input::placeholder { color: rgba(255,255,255,.65); }
.such-knopf { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px 8px; display: flex; align-items: center; flex-shrink: 0; }
.such-knopf .icon { width: 20px; height: 20px; }
.menue-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0 12px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menue-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 0; transition: transform .2s, opacity .2s; }
.menue-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menue-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menue-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.korb-badge { margin-left: auto; flex-shrink: 0; }

@media (max-width: 1180px) and (min-width: 1021px) {
  .shop-nav a { padding: 0 14px; font-size: 15px; }
  .korb-text { display: none; }
}
@media (max-width: 1020px) {
  .topbar-inner { padding: 0 8px; }
  .menue-toggle { display: flex; }
    .topbar-menue {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column-reverse; justify-content: flex-start;
    background: var(--navy-tief); box-shadow: 0 12px 24px rgba(0,0,0,.25); max-height: calc(100vh - 60px); overflow-y: auto; padding-bottom: 8px;
  }
  .topbar-menue.offen { display: flex; }
  .suche { flex: none; margin: 10px 16px 6px; padding: 0 6px 0 16px; }
  .suche input { font-size: 16px; padding: 11px 0; }
  .shop-nav { flex-direction: column; padding: 0; }
  .shop-nav a { padding: 14px 20px; font-size: 16px; border-top: 1px solid rgba(255,255,255,.10); }
  .nav-label { display: inline; }
  .shop-nav a[aria-label] .icon { width: 20px; height: 20px; }
  .korb-badge { padding: 0 8px 0 12px; }
  .korb-text { display: none; }
}

/* Ansicht-Wahl (Automatisch / Hell / Dunkel) in der Fußzeile, nur beim Auto-Design */
.ansicht { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.ansicht-label { color: rgba(255,255,255,.65); margin-right: 2px; }
.ansicht button { background: transparent; color: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.35); border-radius: 16px; padding: 4px 14px; font-family: var(--sans); font-size: 13px; cursor: pointer; }
.ansicht button:hover { background: rgba(255,255,255,.12); }
.ansicht button[aria-pressed="true"] { background: #fff; color: #202733; border-color: #fff; font-weight: 600; }
