/* Internet-Shop (/_Shop) – Stil wie bse.reifenservice-klein.de (Nutzer 14.10.2026): Logo-Blau, ruhige Flächen, runde Karten.
   Tag/Nacht: html[data-theme="dunkel"] wird schon im <head> gesetzt (kein Weißblitz). Keine externen Schriften, keine Tracker. */
:root {
    --bg: #f5f8fb;
    --surface: #ffffff;
    --surface-2: #eef3f8;
    --ink: #0f1f2e;
    --muted: #4a5c6e;
    --line: #d8e2ec;
    --brand: #006cb4;
    --brand-dark: #00538c;
    --brand-tint: #e3f0fa;
    --head-bg: rgba(255, 255, 255, .92);
    --ok: #1f7a3a;
    --warn: #a35f00;
    --err: #b42318;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(15, 31, 46, .06), 0 12px 32px -12px rgba(15, 31, 46, .18);
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}
html[data-theme="dunkel"] {
    --bg: #0d1722;
    --surface: #132131;
    --surface-2: #1a2b3e;
    --ink: #e4edf6;
    --muted: #9fb2c5;
    --line: #26394d;
    --brand: #3f9be0;
    --brand-dark: #7cbcf0;
    --brand-tint: #16314b;
    --head-bg: rgba(13, 23, 34, .9);
    --ok: #63c27f;
    --warn: #e7a64a;
    --err: #f08a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -12px rgba(0, 0, 0, .55);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.015em; overflow-wrap: break-word; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.shop-breite { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .shop-breite { padding: 0 16px; } }

/* Kopf (wie Website: hell, leicht durchscheinend, mit Unschärfe) */
.shop-kopf { position: sticky; top: 0; z-index: 50; background: var(--head-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.shop-kopf .shop-breite { display: flex; align-items: center; gap: 18px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.shop-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.shop-logo img { display: block; height: 44px; width: auto; }
html[data-theme="dunkel"] .shop-logo img { background: #fff; border-radius: 8px; padding: 3px 6px; }
.shop-logo span { padding-left: 14px; border-left: 1px solid var(--line); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.shop-suche { flex: 1; min-width: 220px; display: flex; }
.shop-suche input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.shop-suche input:focus { outline: none; border-color: var(--brand); }
.shop-suche input[type=submit], .shop-suche button { border: 0; background: var(--brand); color: #fff; padding: 0 18px; border-radius: 0 12px 12px 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; }
.shop-suche input[type=submit]:hover, .shop-suche button:hover { background: var(--brand-dark); }
.shop-aktionen { display: flex; align-items: center; gap: 4px; }
.shop-aktion { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); background: transparent; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; }
.shop-aktion:hover { background: var(--brand-tint); color: var(--brand-dark); }
.shop-badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 12px; text-align: center; font-weight: 700; }

/* Warengruppen als Pillen */
.shop-nav { border-bottom: 1px solid var(--line); background: var(--surface); }
.shop-nav .shop-breite { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.shop-nav a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; font-size: 15px; font-weight: 600; }
.shop-nav a:hover, .shop-nav a.aktiv { background: var(--brand-tint); color: var(--brand-dark); }

main.shop-inhalt { padding: 32px 0 64px; min-height: 60vh; }
h1.shop-titel { font-size: clamp(26px, 3.2vw, 38px); font-weight: 750; margin: 0 0 18px; }
.shop-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 10px; }
.shop-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 40em; }

/* Startseite: Hero mit Raster wie die Website */
.shop-hero { margin: -32px calc(50% - 50vw) 32px; padding: clamp(36px, 6vw, 72px) 0;
    background: radial-gradient(700px 380px at 88% 0%, rgba(0, 108, 180, .13), transparent 65%),
                linear-gradient(var(--line) 1px, transparent 1px) 0 0/100% 44px,
                linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/44px 100%, var(--bg);
    border-bottom: 1px solid var(--line); }
.shop-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-bottom: 16px; }

/* Karten / Raster */
.shop-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.shop-karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .12s, border-color .15s; }
.shop-karte:hover { transform: translateY(-2px); border-color: var(--brand); }
.shop-karte a.bild { text-decoration: none; display: flex; align-items: center; justify-content: center; height: 190px; background: #fff; padding: 10px; }
.shop-karte a.bild img { max-height: 170px; object-fit: contain; }
.shop-karte .ohnebild { color: #9fb2c5; font-size: 42px; }
.shop-karte .koerper { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-karte .name { color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3; }
.shop-karte .name:hover { color: var(--brand-dark); }
.shop-karte .klein { font-size: 13px; color: var(--muted); }
.shop-karte .preis { font-family: var(--font-display); font-size: 21px; font-weight: 800; margin-top: auto; }
.shop-mwst { font-size: 12px; color: var(--muted); font-weight: 400; font-family: var(--font); }

.shop-ampel { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.shop-ampel::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.shop-ampel.gruen { color: var(--ok); } .shop-ampel.gelb { color: var(--warn); } .shop-ampel.rot { color: var(--muted); }

/* Knöpfe wie Website */
.shop-knopf, a.shop-knopf, input.shop-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font: inherit; font-weight: 700; font-size: 16px;
    padding: 12px 20px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; background: var(--brand); color: #fff; transition: transform .12s, background .15s, border-color .15s; }
.shop-knopf:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.shop-knopf.zweit { background: var(--surface); color: var(--ink); border-color: var(--line); }
.shop-knopf.zweit:hover { border-color: var(--brand); color: var(--brand-dark); }
.shop-knopf.klein { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.shop-knopf:disabled, .shop-knopf[disabled] { opacity: .5; cursor: default; transform: none; }

.shop-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.shop-panel h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.shop-feld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.shop-feld label { font-size: 14px; color: var(--muted); font-weight: 600; }
.shop-feld input, .shop-feld select, .shop-feld textarea { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.shop-feld input:focus, .shop-feld select:focus, .shop-feld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.shop-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .shop-zwei { grid-template-columns: 1fr; } }
.shop-haken { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 8px 0; }
.shop-haken input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); }

.shop-tabelle { width: 100%; border-collapse: collapse; }
.shop-tabelle th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.shop-tabelle th, .shop-tabelle td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.shop-tabelle .zahl { text-align: right; white-space: nowrap; }
.shop-tabelle input.menge { width: 72px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.shop-summe { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; max-width: 360px; margin-left: auto; font-size: 16px; }
.shop-summe .gesamt { font-family: var(--font-display); font-size: 22px; font-weight: 800; }

.shop-meldung { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--brand-tint); color: var(--ink); }
.shop-meldung.ok { border-color: var(--ok); } .shop-meldung.fehler { border-color: var(--err); color: var(--err); background: var(--surface); }

/* Produktseite */
.shop-produkt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .shop-produkt { grid-template-columns: 1fr; } }
.shop-produkt .bildgross { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; min-height: 340px; padding: 16px; }
.shop-produkt .preisgross { font-family: var(--font-display); font-size: 34px; font-weight: 800; }
.shop-merkmale { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 15px; margin: 18px 0; }
.shop-merkmale dt { color: var(--muted); } .shop-merkmale dd { margin: 0; font-weight: 600; }
.shop-kaufen { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.shop-kaufen input:not(.shop-knopf) { width: 80px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }

.shop-blaettern { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.shop-blaettern a, .shop-blaettern span { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 600; }
.shop-blaettern span.aktiv { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Fuß dunkel wie Website */
.shop-fuss { background: #0a2540; color: #b5c6d6; padding: 28px 0; font-size: 15px; }
.shop-fuss .shop-breite { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.shop-fuss a { color: #e3f0fa; text-decoration: none; }
.shop-fuss a:hover { color: #fff; text-decoration: underline; }

/* Cookie-Hinweis (nur technisch notwendige Cookies) */
.shop-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: none; gap: 14px; align-items: center; z-index: 100; font-size: 15px; }
.shop-cookie.zeigen { display: flex; }
@media (max-width: 640px) { .shop-cookie { flex-direction: column; align-items: stretch; } .shop-aktion span.text, .shop-logo span { display: none; } }

.shop-rechtstext { max-width: 820px; }
.shop-rechtstext h2 { font-size: 22px; margin: 24px 0 10px; }

body.cookie-offen { padding-bottom: 140px; }   /* Cookie-Hinweis verdeckt keine Knöpfe */

.shop-fuss a.shop-widerruf-link { border: 1px solid #b5c6d6; border-radius: 8px; padding: 4px 10px; font-weight: 700; }

/* Nachtmodus: --brand-dark ist hier eine helle Textfarbe – als Knopf-Hintergrund wäre weiße Schrift unlesbar */
html[data-theme="dunkel"] .shop-knopf:hover, html[data-theme="dunkel"] .shop-suche input[type=submit]:hover, html[data-theme="dunkel"] .shop-suche button:hover { background: var(--brand); filter: brightness(1.12); color: #fff; }
