/* VOLK Shops (dryhire = Profi-Shop, shop = Privat-Shop) – Glas-Design (UI-4, 28.11.2026)
   Hell = Entwurf D (heller Grund, dunkelblauer Bühnen-Streifen oben), Dunkel = Entwurf B „Bühnenlicht“.
   Umschaltung über html[data-theme] (localStorage "shop_theme"). Variablennamen wie bisher,
   weil einzelne Seiten sie in eigenen Stilen nutzen. Glas (Unschärfe) nur für die Kopfleiste;
   Karten fast deckend. Feste Flächen bei „Transparenz reduzieren“, mehr Kontrast, alten Browsern. */

:root {
  --blau: #2078a7; --dunkelblau: #176982; --akzent: #27afd9; --dunkel: #212121; --grau: #737373;
  --bg: #EDF3F7; --surface: #ffffff; --surface2: #F3F8FB; --text: #16242c;
  --textbody: #3a4a53; --muted: #5a6a73; --border: rgba(23,105,130,.14); --headerbg: transparent;
  --karte: rgba(255,255,255,.90); --karte-rand: rgba(255,255,255,.9);
  --glanz: inset 0 1px 0 rgba(255,255,255,.95);
  --schatten: 0 10px 30px rgba(23,105,130,.10);
  --schatten-hoch: 0 16px 40px rgba(23,105,130,.18);
  --glas-kopf: rgba(255,255,255,.16); --glas-kopf-rand: rgba(255,255,255,.40);
  --blur: blur(22px) saturate(180%);
  --grund-bild:
    radial-gradient(700px 500px at 100% 40%, rgba(39,175,217,.18), transparent 70%),
    radial-gradient(600px 500px at 0% 85%, rgba(32,120,167,.14), transparent 70%);
  --buehne:
    conic-gradient(from 160deg at 30% -40%, transparent 0deg, rgba(39,175,217,.55) 12deg, transparent 26deg),
    conic-gradient(from 195deg at 78% -40%, transparent 0deg, rgba(91,182,224,.40) 10deg, transparent 22deg),
    linear-gradient(180deg, #0e3346, #176982);
  --preis: #176982;
  --verlauf: linear-gradient(180deg, #2a8cc0, #2078a7);
  color-scheme: light;
}
html[data-theme="dark"] {
  --blau: #5BB6E0; --dunkelblau: #27afd9; --akzent: #8CCFEE;
  --bg: #08161E; --surface: #10202A; --surface2: #0C1B24; --text: #EEF4F7;
  --textbody: #C9D6DD; --muted: #9FB3BD; --border: rgba(140,207,238,.18);
  --karte: rgba(16,34,45,.82); --karte-rand: rgba(140,207,238,.20);
  --glanz: inset 0 1px 0 rgba(255,255,255,.10);
  --schatten: 0 14px 40px rgba(0,0,0,.30); --schatten-hoch: 0 20px 50px rgba(0,0,0,.45);
  --glas-kopf: rgba(22,44,58,.50); --glas-kopf-rand: rgba(140,207,238,.22);
  --grund-bild:
    conic-gradient(from 168deg at 22% -8%, transparent 0deg, rgba(39,175,217,.24) 10deg, transparent 22deg),
    conic-gradient(from 186deg at 70% -10%, transparent 0deg, rgba(91,182,224,.18) 9deg, transparent 20deg),
    radial-gradient(900px 420px at 50% 112%, rgba(33,146,181,.30), transparent 70%);
  --buehne: none;
  --preis: #8CCFEE;
  color-scheme: dark;
}

/* --------------------------------------------------------------- Grundlagen */
* { box-sizing: border-box; }
body { font-family: "Barlow", -apple-system, Arial, sans-serif; color: var(--textbody); margin: 0;
  background-color: var(--bg); background-image: var(--grund-bild); background-attachment: fixed; line-height: 1.5; }
h1, h2, h3, .logo-txt { font-family: "Jost", sans-serif; }
h1 { color: var(--text); }
a { color: var(--blau); }
:focus-visible { outline: 3px solid #27afd9; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------- Kopf mit Bühnenlicht */
.buehne { background-image: var(--buehne); background-repeat: no-repeat; background-size: 100% 100%; padding: 14px 16px 30px; }
html[data-theme="dark"] .buehne { padding-bottom: 0; }
header.site { position: sticky; top: 10px; z-index: 30; max-width: 1140px; margin: 0 auto;
  background: var(--glas-kopf); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glas-kopf-rand); border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--schatten); }
.bar { padding: 6px 8px 6px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-link { display: block; overflow: hidden; height: 52px; flex: none; border-radius: 12px; }
/* Die Logo-SVG hat viel Innenrand – größer setzen und per negativem Rand beschneiden */
header.site .logo-link img { display: block; height: 104px; width: auto; margin: -26px 0 0 -30px; }
.kopfsuche { display: flex; align-items: center; flex: 1 1 260px; min-width: 0; max-width: 520px;
  background: var(--surface); border-radius: 999px; padding: 0 4px 0 14px; }
.kopfsuche input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 6px;
  border-radius: 999px; font-size: 15px; color: var(--text); width: auto; }
.kopfsuche input[type=search]:focus-visible { outline-offset: 4px; }
.kopfsuche button { width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--verlauf);
  color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
header.site nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
header.site nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-weight: 500; color: #fff; }
header.site nav a:hover { background: rgba(255,255,255,.14); }
header.site nav a.korb { background: var(--surface); color: var(--text); font-weight: 600; }
header.site nav a.korb:hover { background: var(--surface2); }
.korb-badge { background: var(--blau); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 13px; }
html[data-theme="dark"] .korb-badge { color: #04202c; }
.theme-toggle { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.theme-toggle .sonne { display: none; }
html[data-theme="dark"] .theme-toggle .sonne { display: block; }
html[data-theme="dark"] .theme-toggle .mond { display: none; }

/* -------------------------------------------------------------------- Inhalt */
main { max-width: 1140px; margin: 0 auto; padding: 26px 20px 60px; }
.hero { position: relative; overflow: hidden; color: #fff; border-radius: 28px; padding: 40px 34px 38px; margin-bottom: 28px;
  background-color: #123f52;
  background-image:
    conic-gradient(from 160deg at 28% -30%, transparent 0deg, rgba(39,175,217,.55) 12deg, transparent 26deg),
    conic-gradient(from 195deg at 76% -30%, transparent 0deg, rgba(91,182,224,.40) 10deg, transparent 22deg),
    linear-gradient(160deg, #0e3346, #176982);
  border: 1px solid rgba(140,207,238,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), var(--schatten-hoch); }
.hero h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); font-weight: 400; line-height: 1.08; color: #fff; max-width: 820px; }
.hero p { margin: 0; max-width: 70ch; color: #d7ecf5; font-size: 17px; }
.msg { padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.msg.success { background: #e2f3e8; color: #17663b; }
.msg.info { background: #e6f2f8; color: #155f78; }
.msg.error { background: #fce8e6; color: #8f1d14; }
html[data-theme="dark"] .msg.success { background: #0f3221; color: #9fe3bb; }
html[data-theme="dark"] .msg.info { background: #13344a; color: #8ccfee; }
html[data-theme="dark"] .msg.error { background: #3f1512; color: #fbc2ba; }
h2.kat { color: var(--text); border-bottom: 0; padding-bottom: 0; margin: 34px 0 16px; font-size: 24px; font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--karte); border: 1px solid var(--karte-rand); border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; padding: 8px; box-shadow: var(--glanz), var(--schatten); }
.card .foto { height: 160px; background: #fff center/contain no-repeat; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; color: #5a6a73; font-size: 13px; overflow: hidden; }
.card .foto img { max-height: 150px; max-width: 100%; }
.card .body { padding: 10px 8px 6px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3, .card h3 a { margin: 0; font-size: 16px; color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--blau); }
.card .desc { font-size: 13px; color: var(--muted); flex: 1; }
.preis { font-family: "Jost", sans-serif; font-weight: 600; color: var(--preis); font-size: 17px; }
.preis .mwst { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.preis .anfrage { color: var(--muted); font-weight: 500; font-size: 14px; }

form.add { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
select, input[type=number], input[type=text], input[type=email], input[type=date], input[type=search], input[type=tel], textarea {
  font-family: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 12px; width: 100%; background: var(--surface); color: var(--text); }
form.add select { flex: 1; min-width: 90px; width: auto; }
form.add input[type=number] { width: 64px; }
.btn { background: var(--verlauf); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; min-height: 42px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 6px; font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 4px 14px rgba(32,120,167,.28); }
.btn:hover { background: var(--dunkelblau); color: #fff; }
.btn.gross { padding: 14px 26px; font-size: 16px; min-height: 50px; }
.btn.grau { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn.grau:hover { background: var(--surface); }
html[data-theme="dark"] .btn:not(.grau) { color: #04202c; background: #27afd9; box-shadow: 0 0 22px rgba(39,175,217,.35); }
html[data-theme="dark"] .btn:not(.grau):hover { background: #5BB6E0; }

table.korb { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--karte); border-radius: 20px;
  overflow: hidden; color: var(--textbody); border: 1px solid var(--karte-rand); box-shadow: var(--glanz), var(--schatten); }
table.korb th { background: transparent; color: var(--muted); text-align: left; padding: 12px 14px; font-size: 13px; font-weight: 600;
  border-bottom: 1px solid var(--border); }
table.korb td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
table.korb tr:last-child td { border-bottom: 0; }
.feld { margin-bottom: 14px; }
.feld label { display: block; font-weight: 500; margin-bottom: 4px; color: var(--text); font-size: 14px; }
.feld .err { color: #b42318; font-size: 13px; }
html[data-theme="dark"] .feld .err { color: #f59a8f; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

footer.site { color: var(--muted); font-size: 13px; text-align: center; padding: 28px 20px 36px; }
footer.site a { color: var(--muted); }

/* Listenansicht (umschaltbar) */
.grid.list { grid-template-columns: 1fr; }
.grid.list .card { flex-direction: row; align-items: stretch; }
.grid.list .card .foto { width: 150px; height: auto; min-height: 110px; flex: 0 0 150px; }
.grid.list .card .body { flex: 1; }
.toolbar { display: flex; gap: 12px; align-items: center; margin: 8px 0 18px; flex-wrap: wrap; }
.toolbar .suche { flex: 1; min-width: 200px; }
.toolbar .ansicht { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--karte);
  border: 1px solid var(--karte-rand); }
.toolbar .ansicht button { background: transparent; color: var(--text); border: 0; padding: 8px 14px;
  border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 14px; }
.toolbar .ansicht button.aktiv { background: var(--blau); color: #fff; }
html[data-theme="dark"] .toolbar .ansicht button.aktiv { color: #04202c; }

/* Dunkel: fest eingetragene Farben einzelner Seiten übersteuern */
html[data-theme="dark"] .card h3 a, html[data-theme="dark"] h2.ober, html[data-theme="dark"] h1,
html[data-theme="dark"] .oberkachel .name { color: var(--text) !important; }
html[data-theme="dark"] .hero h1 { color: #fff !important; }
html[data-theme="dark"] details ul { color: var(--muted); }
html[data-theme="dark"] main [style*="color:#212121"], html[data-theme="dark"] main [style*="color: #212121"] { color: var(--text) !important; }
html[data-theme="dark"] main [style*="color:#737373"], html[data-theme="dark"] main [style*="color: #737373"] { color: var(--muted) !important; }
html[data-theme="dark"] main [style*="color:#2078a7"], html[data-theme="dark"] main [style*="color: #2078a7"] { color: var(--blau) !important; }
html[data-theme="dark"] main [style*="background:#fff"], html[data-theme="dark"] main [style*="background: #fff"] { background: var(--surface) !important; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(14,51,70,.88); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  color: #fff; padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(140,207,238,.3);
  box-shadow: var(--schatten-hoch); opacity: 0; transition: opacity .25s; z-index: 50; font-size: 14px; pointer-events: none; }
.toast.show { opacity: 1; }

/* ---------------------------------------------- Kategorie-Kacheln (Startseiten) */
.kachelgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.oberkachel { position: relative; display: block; min-height: 210px; border-radius: 26px; overflow: hidden;
  text-decoration: none; background: linear-gradient(160deg, #2192b5, #123f52);
  border: 1px solid var(--karte-rand); box-shadow: var(--glanz), var(--schatten); transition: transform .15s, box-shadow .15s; }
.oberkachel:hover { transform: translateY(-2px); box-shadow: var(--glanz), var(--schatten-hoch); }
/* Symbol/Bild sitzt im Bereich über dem Namensschild, damit es nicht verdeckt wird */
.oberkachel .bild { position: absolute; inset: 0 0 86px 0; display: block; background: transparent; height: auto; padding: 8px 12px 4px; }
.oberkachel .bild img { width: 100%; height: 100%; object-fit: contain; display: block; }
.oberkachel .bild .ph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 42px; color: #fff; opacity: .35; }
.oberkachel .text { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 1px;
  padding: 10px 14px; border-left: 0; border-radius: 18px;
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255,255,255,.8); }
.oberkachel .name { font-family: "Jost", sans-serif; font-size: 18px; font-weight: 600; color: #16242c; }
.oberkachel .anzahl { color: #3a4a53; font-size: 13.5px; }
html[data-theme="dark"] .oberkachel { background: linear-gradient(160deg, #2192b5, #123f52) !important; border-color: var(--karte-rand) !important; }
/* Kategorie-Bilder haben einfarbigen Markenblau-Grund – Kachel in derselben Farbe. Muss nach der Dunkel-Regel stehen (die spätere gewinnt) */
.oberkachel--bild, html[data-theme="dark"] .oberkachel--bild { background: #2078a7 !important; }
html[data-theme="dark"] .oberkachel .text { background: rgba(10,26,36,.66); border-color: rgba(140,207,238,.25); }
html[data-theme="dark"] .oberkachel .name { color: #fff !important; }
html[data-theme="dark"] .oberkachel .anzahl { color: #c9d6dd; }

/* ------------------------------------------------------------------- Schmal */
@media (max-width: 720px) {
  .buehne { padding: 10px 10px 22px; }
  .bar { padding: 6px; gap: 6px; }
  .kopfsuche { order: 10; flex: 1 1 100%; max-width: none; }
  header.site nav a:not(.korb) { padding: 0 10px; }
  .hero { padding: 28px 22px; border-radius: 22px; }
  main { padding: 18px 14px 48px; }
}
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- Ersatz-Ansichten */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.site { background: rgba(14,51,70,.94); }
  .oberkachel .text { background: rgba(255,255,255,.94); }
}
@media (prefers-reduced-transparency: reduce) {
  header.site { background: #0e3346; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .oberkachel .text { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html[data-theme="dark"] .oberkachel .text { background: #10202A; }
  .toast { background: #0e3346; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body { background-image: none; }
  :root, html[data-theme] { --karte: var(--surface); }
}
@media (prefers-contrast: more) {
  :root, html[data-theme] { --karte: var(--surface); --border: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  .oberkachel, .oberkachel:hover { transition: none; transform: none; }
  .toast { transition: none; }
}
@media print {
  .buehne, footer.site, .toast { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .card, table.korb { box-shadow: none !important; }
}
