/* Design „Nachtdruck“ – siehe docs/entscheidungen.md.
   Grundton Blau in Abstufungen, Türkis für Klickbares, Lindgrün für Preise (dunkel),
   Glutorange nur für die heiße Düse. Kategorie-Lichter: Türkis (3D-Druck), UV-Violett (Resin), Laser-Orange. */

@font-face {
  font-family: "Saira";
  src: url("/fonts/saira.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
}

/* ---------- Farben ---------- */
:root {
  --grund-oben: #22356A;
  --grund: #16254C;
  --grund-unten: #0C1633;
  --flaeche: #1A2B55;
  --flaeche-hell: #213762;
  --kante: #2F467A;
  --text: #EDF2FB;
  --grau: #A9B7D4;
  --tuerkis: #34D8C6;
  --tuerkis-hell: #62E7D9;
  --akzent: #34D8C6;   /* Türkis als Textfarbe */
  --preis: #D2F26B;
  --warnung: #FFB084;
  --glut: #FF8A4C;
  --auf-tuerkis: #0F1A36;
  --schatten: 0 18px 40px -22px rgb(0 0 0 / .6);
  --rund-gross: 24px;
  --rund: 14px;
  --rund-klein: 8px;
  --kopf-oben: rgb(13 22 50 / .94);
  --kopf-unten: rgb(18 30 64 / .94);
  --leuchten: rgb(52 216 198 / .07);
  color-scheme: dark;
}

/* Helles Schema: gleiche Blau-Familie, nur aufgehellt */
:root[data-thema="hell"] {
  --grund-oben: #F4F8FD;
  --grund: #E9F0F8;
  --grund-unten: #DCE6F2;
  --flaeche: #FFFFFF;
  --flaeche-hell: #F2F7FC;
  --kante: #C6D3E5;
  --text: #0F1A36;
  --grau: #4A5A7C;
  --akzent: #0A7D71;
  --preis: #0A7D71;
  --warnung: #A8480C;
  --schatten: 0 16px 34px -22px rgb(15 26 54 / .35);
  --kopf-oben: rgb(255 255 255 / .94);
  --kopf-unten: rgb(244 248 253 / .94);
  --leuchten: rgb(52 216 198 / .10);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-thema="dunkel"]) {
    --grund-oben: #F4F8FD;
    --grund: #E9F0F8;
    --grund-unten: #DCE6F2;
    --flaeche: #FFFFFF;
    --flaeche-hell: #F2F7FC;
    --kante: #C6D3E5;
    --text: #0F1A36;
    --grau: #4A5A7C;
    --akzent: #0A7D71;
    --preis: #0A7D71;
    --warnung: #A8480C;
    --schatten: 0 16px 34px -22px rgb(15 26 54 / .35);
    --kopf-oben: rgb(255 255 255 / .94);
    --kopf-unten: rgb(244 248 253 / .94);
    --leuchten: rgb(52 216 198 / .10);
    color-scheme: light;
  }
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  /* Oben heller, nach unten immer dunkler */
  background:
    radial-gradient(60rem 26rem at 72% 0%, var(--leuchten), transparent 70%) no-repeat,
    linear-gradient(180deg, var(--grund-oben) 0, var(--grund) 38rem, var(--grund-unten) 100%) no-repeat,
    var(--grund-unten);
  color: var(--text);
  font: 400 1.0625rem/1.55 "Saira", "Trebuchet MS", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--akzent); }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--preis); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 600; font-stretch: 104%; letter-spacing: -.015em; margin: 0 0 1rem; line-height: 1; }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; font-stretch: 102%; letter-spacing: -.01em; margin: 0 0 1rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .4rem; }

.sprung { position: absolute; left: -999px; top: .5rem; background: var(--preis); color: var(--auf-tuerkis); padding: .5rem 1rem; z-index: 50; border-radius: var(--rund-klein); }
.sprung:focus { left: 1rem; }

/* ---------- Kopf ---------- */
/* Kopf, Inhalt und Fuß teilen dieselbe Breite und dieselben Spalten, damit alles bündig sitzt */
:root { --seite: 82rem; --rand: clamp(1rem, 3vw, 2rem); --leiste: 15rem; --spalt: clamp(1.5rem, 2.5vw, 2.5rem); }
/* Durchgehender Streifen über die ganze Breite, Inhalt darin bündig mit der Seite */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, var(--kopf-oben), var(--kopf-unten));
  border-bottom: 1px solid var(--kante);
  box-shadow: 0 8px 24px -18px rgb(0 0 0 / .5);
  backdrop-filter: blur(10px);
}
/* Drei Spalten: Logo links, Kategorien genau in der Mitte, Schalter rechts */
.kopf-innen {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  max-width: var(--seite); margin-inline: auto;
  min-height: 4rem; padding: .6rem var(--rand);
}
.kopf-innen .logo { grid-column: 1; justify-self: start; }
.kopf-innen .kopf-nav { grid-column: 2; }
.kopf-innen .kopf-rechts { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 1rem; }
.kopf-stand { margin: 0; color: var(--grau); font-size: .82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.logo {
  display: flex; align-items: center; gap: .55rem;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 1.4rem; font-stretch: 115%;
}
.logo-zeichen { width: 1.9rem; height: 1.9rem; }

.menue-knopf {
  display: none; align-items: center; gap: .45rem;
  min-height: 2.75rem; padding: .3rem .8rem; border-radius: var(--rund-klein);
  background: var(--flaeche); color: var(--text); border: 1px solid var(--kante);
  font: inherit; font-weight: 600; cursor: pointer;
}
.menue-knopf svg { width: 1.3rem; height: 1.3rem; }

/* Sonne/Mond-Schalter */
.thema-knopf {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between;
  width: 4.9rem; height: 2.75rem; padding: 0 .7rem; border-radius: 999px;
  background: var(--flaeche); border: 1px solid var(--kante); color: var(--grau); cursor: pointer;
}
.thema-knopf svg { width: 1.05rem; height: 1.05rem; position: relative; z-index: 1; transition: color .2s; }
.thema-knauf {
  position: absolute; top: .25rem; left: .25rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--tuerkis); transition: transform .25s ease;
}
.thema-knopf[aria-checked="true"] .thema-knauf { transform: translateX(2.15rem); }
.thema-knopf[aria-checked="true"] .mond, .thema-knopf[aria-checked="false"] .sonne { color: var(--auf-tuerkis); }

/* ---------- Rahmen ---------- */
.rahmen {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--spalt);
  width: 100%; max-width: var(--seite); margin-inline: auto;
  padding: 1.75rem var(--rand) 4rem;
}
main { min-width: 0; }

/* Startseite: letztes Farbband stößt direkt an den Fuß */
.ohne-leiste { padding-bottom: 0; }
/* Die Kategorie-Liste gibt es nur noch als Ausklappmenü am Handy; am Desktop stehen die Kategorien im Kopf */
@media (min-width: 60.01rem) { .seitenleiste { display: none; } }

/* Kategorien im Kopf (nur Desktop) mit derselben Linie wie im Fuß; die aktuelle Seite ist unterstrichen */
.kopf-nav { display: flex; gap: 2.2rem; }
.kopf-nav a { position: relative; color: var(--text); text-decoration: none; font-weight: 500; padding-block: .45rem; }
.kopf-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tuerkis);
  transform: scaleX(0); transform-origin: center; transition: transform .3s ease;
}
.kopf-nav a:hover::after, .kopf-nav a:focus-visible::after, .kopf-nav a[aria-current="page"]::after { transform: scaleX(1); }
.kopf-nav a[aria-current="page"] { font-weight: 600; }

/* Pfeil an Links, die einen Shop in neuem Tab öffnen */
.pfeil { width: .95em; height: .95em; margin-left: .35rem; flex: none; }

/* Seitenleiste als eigenes Panel, oben bündig mit dem Inhalt */
.seitenleiste nav {
  position: sticky; top: 5.5rem;
  padding: 1rem .6rem .4rem;
  border-radius: var(--rund-gross);
  background: linear-gradient(180deg, var(--flaeche-hell) 0%, var(--flaeche) 100%);
  border: 1px solid var(--kante); box-shadow: var(--schatten);
}
.gruppe { margin: 0 0 .4rem .7rem; font-size: .85rem; font-weight: 600; color: var(--grau); }
.seitenleiste ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.nav-punkt {
  display: flex; align-items: center; gap: .6rem;
  min-height: 2.75rem; padding: .35rem .7rem; border-radius: var(--rund-klein);
  color: var(--text); text-decoration: none; font-weight: 500;
  border: 1px solid transparent;
}
a.nav-punkt:hover { background: var(--flaeche); border-color: var(--kante); }
.nav-punkt[aria-current="page"] { background: var(--flaeche-hell); border-color: var(--tuerkis); font-weight: 600; }
.nav-symbol { width: 1.7rem; height: 1.7rem; flex: none; }
.nav-punkt.bald { color: var(--grau); }
.nav-punkt.bald .nav-symbol { opacity: .55; }
.nav-punkt small {
  margin-left: auto; padding: .05rem .5rem; border-radius: 999px;
  font-size: .75rem; border: 1px solid var(--kante); color: var(--grau);
}

/* ---------- Startseite: Hero ---------- */
.held {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 1.5rem;
  padding-block: 0 2.5rem;
}
.unter { margin: 0 0 1.75rem; color: var(--grau); font-size: 1.15rem; max-width: 34rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: .55rem 1.3rem; border-radius: var(--rund-klein);
  font-weight: 600; text-decoration: none; font-stretch: 105%;
  transition: background-color .15s, color .15s, border-color .15s;
}
.knopf-voll { background: var(--tuerkis); color: var(--auf-tuerkis); }
.knopf-voll:hover { background: var(--tuerkis-hell); }
.knopf-rand { border: 1.5px solid var(--kante); color: var(--text); }
.knopf-rand:hover { background: var(--tuerkis); border-color: var(--tuerkis); color: var(--auf-tuerkis); }

.druck-buehne { margin: 0; }
.druck { display: block; width: 100%; height: auto; overflow: visible; }
.druck-text { margin: -.5rem 0 0; text-align: center; color: var(--grau); font-size: .95rem; min-height: 1.5em; transition: opacity .3s; }
.druck-text b { color: var(--text); font-weight: 600; }
.druck-text.wechsel { opacity: 0; }
.druck-pause {
  display: block; margin: .4rem auto 0; padding: .35rem .7rem; min-height: 2.75rem;
  background: none; border: 0; border-radius: var(--rund-klein);
  color: var(--grau); font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}
.druck-pause:hover { color: var(--text); }
.druck.pausiert .glut { animation-play-state: paused; }

.druck .duese { transition: transform var(--fahrzeit, .4s) linear; }
.druck .schicht { transition: opacity var(--fahrzeit, .4s) linear; }
.druck.laeuft .schicht { opacity: 0; }
.druck.laeuft .schicht.da { opacity: 1; }
.druck.leeren .schicht.da { opacity: 0; transition-duration: .5s; }
.druck .glut { animation: glimmen 1.1s ease-in-out infinite alternate; }
@keyframes glimmen { from { opacity: .65; } to { opacity: 1; } }

/* ---------- Bestenliste ---------- */
/* ---------- Startseite: Farbbänder über die volle Breite ----------
   Der Inhalt bleibt im Raster, nur der Hintergrund reicht bis an den Fensterrand. */
.band { position: relative; isolation: isolate; padding-block: clamp(3rem, 6vw, 4.5rem); }
.band::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
}
.band-hell::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--tuerkis) 8%, var(--flaeche)) 0%, color-mix(in srgb, var(--tuerkis) 3%, var(--grund)) 100%);
  border-block: 1px solid color-mix(in srgb, var(--kante) 70%, transparent);
}
.band-tief::before { background: linear-gradient(180deg, var(--grund-unten) 0%, color-mix(in srgb, var(--grund-unten) 80%, #000) 100%); }
.band h2 { margin-bottom: .4rem; }
.band-unter { margin: 0 0 1rem; color: var(--grau); max-width: 40rem; }

.gruende { list-style: none; margin: 1.6rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 2.2rem; }
.gruende svg { width: 2.6rem; height: 2.6rem; color: var(--akzent); margin-bottom: .6rem; }
.gruende p { margin: 0; color: var(--grau); }
.karten { list-style: none; margin: 0; padding: 2.4rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem 1.2rem; }
.karte {
  display: flex; flex-direction: column; text-align: center;
  border-radius: var(--rund-gross);
  background: linear-gradient(180deg, var(--flaeche-hell) 0%, var(--flaeche) 100%);
  border: 1px solid var(--kante); box-shadow: var(--schatten);
}
.karte .symbol { display: block; width: 5.2rem; height: 5.2rem; margin: -2.6rem auto .4rem; filter: drop-shadow(0 10px 14px rgb(0 0 0 / .3)); }
.karte-name { margin: 0; padding: 0 1rem; font-weight: 700; font-size: 1.15rem; font-stretch: 105%; }
.karte-meta { margin: .2rem 0 1.1rem; padding: 0 1rem; color: var(--grau); font-size: .9rem; }
/* Preisfeld: Verlauf von Petrol nach Tiefblau, in beiden Farbschemata gleich */
.karte-fuss {
  margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: 1rem 1rem 1.2rem; border-radius: 0 0 calc(var(--rund-gross) - 1px) calc(var(--rund-gross) - 1px);
  background: linear-gradient(180deg, #177F80 0%, #145E77 50%, #1B355F 100%);
  color: #EAF5F7;
}
.karte-fuss small { font-size: .82rem; }
.karte-fuss b { color: #D2F26B; font-size: 2.5rem; line-height: 1.05; font-weight: 700; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.karte-fuss .knopf { margin-top: .7rem; border-color: #62E7D9; color: #fff; }
.karte-top { border-color: color-mix(in srgb, var(--tuerkis) 65%, var(--kante)); box-shadow: 0 0 0 1px rgb(52 216 198 / .12), 0 20px 50px -24px rgb(52 216 198 / .55); }
.hinweis { color: var(--grau); font-size: .85rem; margin-top: 1rem; }

/* ---------- Kategorie-Kacheln ---------- */
.kacheln { list-style: none; margin: 0; padding: 0 0 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.kachel {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  padding: 1.1rem 1.2rem; border-radius: var(--rund-gross);
  background: linear-gradient(160deg, var(--flaeche-hell) 0%, var(--flaeche) 70%); border: 1px solid var(--kante);
  color: var(--grau); text-decoration: none;
}
.kachel .symbol { width: 3.6rem; height: 3.6rem; flex: none; }
.kachel b { display: block; color: var(--text); font-size: 1.25rem; font-stretch: 108%; }
a.kachel { transition: transform .2s, border-color .2s; }
a.kachel:hover { border-color: var(--tuerkis); transform: translateY(-3px); }
/* „Kommt bald“: gestrichelter Rand und blasses Symbol, der Text bleibt gut lesbar */
.kachel.bald { background: none; border-style: dashed; }
.kachel.bald .symbol { opacity: .5; }
.kachel.bald b { color: var(--grau); }
/* Im Kopfbereich der Startseite: kompakter, zwei Spalten auch auf dem Handy */
.kacheln-held { padding: 0; gap: .75rem; }
.kacheln-held .kachel { padding: .8rem .9rem; gap: .75rem; border-radius: var(--rund-klein); font-size: .92rem; line-height: 1.3; }
.kacheln-held .kachel .symbol { width: 2.6rem; height: 2.6rem; }
.kacheln-held .kachel b { font-size: 1.08rem; margin-bottom: .1rem; }

/* ---------- Unterseiten ---------- */
.seitenkopf { padding-block: 1rem 1.5rem; }
.seitenkopf h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

/* ---------- Filter ---------- */
.filter {
  display: block; padding: .4rem 1.1rem 1rem; margin-bottom: 1rem; border-radius: var(--rund);
  background: linear-gradient(180deg, var(--flaeche-hell) 0%, var(--flaeche) 100%); border: 1px solid var(--kante);
}
.filter label { min-width: 0; display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--grau); font-weight: 500; }
.filter select {
  width: 100%; min-width: 0; min-height: 2.75rem; padding: .4rem .6rem; border-radius: var(--rund-klein);
  background: var(--grund); color: var(--text); border: 1px solid var(--kante);
  font: inherit; font-size: 1rem;
}
.filter .haken { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .5rem; font-size: 1rem; color: var(--text); }
.filter .haken input { width: 1.2rem; height: 1.2rem; accent-color: var(--tuerkis); }

/* Kopf der Filter-Spalte: Sortierung und Häkchen */
.filter-kopf { display: grid; gap: .55rem; padding: .7rem 0 .9rem; border-bottom: 1px solid var(--kante); }
.filter .sortieren { gap: .3rem; }

/* Aufklappbare Gruppen */
.gruppe { border-bottom: 1px solid var(--kante); }
.gruppe:last-child { border-bottom: 0; }
.gruppe > summary {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 2.9rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: .98rem; color: var(--text);
}
.gruppe > summary::-webkit-details-marker { display: none; }
.gruppe > summary::after {
  content: ""; width: .55rem; height: .55rem; margin-right: .2rem;
  border-right: 2px solid var(--grau); border-bottom: 2px solid var(--grau);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.gruppe[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.gruppe > summary:hover::after { border-color: var(--akzent); }
.gruppe > :not(summary) { padding-bottom: .9rem; }

/* Häkchen-Liste mit eigenem Kästchen */
.optionen { display: grid; gap: .1rem; }
.optionen-titel { margin: .5rem 0 .15rem; font-size: .76rem; font-weight: 600; color: var(--grau); }
.optionen-titel:first-child { margin-top: 0; }
.filter .option {
  position: relative; flex-direction: row; align-items: center; gap: .6rem;
  min-height: 2.2rem; padding: .15rem .3rem; border-radius: var(--rund-klein);
  font-size: .95rem; font-weight: 400; color: var(--text); cursor: pointer;
}
.filter .option:hover { background: color-mix(in srgb, var(--tuerkis) 10%, transparent); }
.option input {
  appearance: none; flex: none; width: 1.15rem; height: 1.15rem; margin: 0;
  border: 1.5px solid var(--grau); border-radius: 4px; background: var(--grund); cursor: pointer;
  display: grid; place-content: center;
}
.option input::after {
  content: ""; width: .32rem; height: .62rem; margin-top: -2px;
  border-right: 2px solid var(--auf-tuerkis); border-bottom: 2px solid var(--auf-tuerkis);
  transform: rotate(45deg) scale(0); transition: transform .12s ease;
}
.option input:checked { background: var(--tuerkis); border-color: var(--tuerkis); }
.option input:checked::after { transform: rotate(45deg) scale(1); }
.option input:focus-visible { outline: 3px solid var(--preis); outline-offset: 2px; }

/* Preisspanne: zwei Felder und ein Regler mit zwei Griffen */
.spanne-felder { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .4rem; font-size: .85rem; color: var(--grau); }
.spanne-felder label { position: relative; display: block; }
.spanne-felder .euro { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--grau); font-size: .9rem; }
.spanne-felder input {
  width: 100%; min-width: 0; min-height: 2.6rem; padding: .3rem .35rem .3rem 1.45rem; border-radius: var(--rund-klein);
  background: var(--grund); color: var(--text); border: 1px solid var(--kante); font: inherit; font-size: .95rem;
  -moz-appearance: textfield;
}
.spanne-felder input::-webkit-inner-spin-button, .spanne-felder input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.regler { position: relative; height: 2rem; margin-top: .55rem; }
.regler-spur { position: absolute; left: .55rem; right: .55rem; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--kante); }
.regler-fuellung { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--tuerkis); }
.regler input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  appearance: none; background: none; pointer-events: none;
}
.regler input[type="range"]::-webkit-slider-thumb {
  appearance: none; pointer-events: auto; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--grund); border: 3px solid var(--tuerkis); cursor: grab; box-shadow: 0 1px 4px rgb(0 0 0 / .3);
}
.regler input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--grund); border: 3px solid var(--tuerkis); cursor: grab;
}
.regler input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--preis); outline-offset: 2px; }

/* Gewählte Filter als Chips, Mülleimer setzt alles zurück */
.auswahl { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .8rem; }
.chips { flex: 1; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.2rem; padding: .25rem .5rem .25rem .75rem;
  border-radius: 999px; border: 1.5px solid var(--tuerkis); background: color-mix(in srgb, var(--tuerkis) 10%, transparent);
  color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
}
.chip:hover { background: color-mix(in srgb, var(--tuerkis) 22%, transparent); }
.chip-farbe { width: .9rem; height: .9rem; border-radius: 3px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent); }
.chip-x { font-size: 1.15rem; line-height: 1; color: var(--akzent); }
.alles-weg {
  display: inline-grid; place-content: center; flex: none; width: 2.4rem; height: 2.4rem;
  border-radius: var(--rund-klein); border: 1px solid var(--kante); background: var(--flaeche); color: var(--grau); cursor: pointer;
}
.alles-weg svg { width: 1.25rem; height: 1.25rem; }
.alles-weg:hover { color: #E5484D; border-color: #E5484D; }

/* Farbfilter: bunte Kacheln mit leicht abgerundeten Ecken, Name erscheint beim Drüberfahren oder Antippen */
.farbkacheln { display: flex; flex-wrap: wrap; gap: .5rem; }
.farbkachel { position: relative; cursor: pointer; }
.kachel-flaeche {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent), 0 2px 5px rgb(0 0 0 / .25);
  font-size: .78rem; font-weight: 600; color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.farbkachel-alle .kachel-flaeche { width: auto; padding: 0 .7rem; background: var(--grund); }
.farbkachel:hover .kachel-flaeche { transform: translateY(-2px) scale(1.06); }
.farbkachel input:checked + .kachel-flaeche { box-shadow: 0 0 0 2px var(--flaeche), 0 0 0 4px var(--tuerkis); }
.farbkachel input:focus-visible + .kachel-flaeche { outline: 3px solid var(--preis); outline-offset: 4px; }
.kachel-tipp {
  position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 9px);
  padding: .25rem .6rem; border-radius: 6px;
  background: var(--text); color: var(--grund); font-size: .8rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s;
}
.kachel-tipp::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--text); }
.farbkachel:hover .kachel-tipp, .farbkachel:focus-within .kachel-tipp { opacity: 1; transform: translate(-50%, 0); }

/* Vergleichsseiten: Filter links in eigener Spalte, bleiben beim Scrollen stehen; Liste rechts.
   Ohne JavaScript bleibt der Filter verborgen, dann nimmt die Liste die volle Breite. */
.vergleich { display: grid; grid-template-columns: var(--leiste) minmax(0, 1fr); gap: var(--spalt); align-items: start; }
.vergleich:has(.filter[hidden]) { grid-template-columns: minmax(0, 1fr); }
.filter-spalte:has(.filter[hidden]) { display: none; }
/* Eigene Scrollleiste: die Filter-Spalte scrollt unabhängig von der Liste */
.filter-spalte { position: sticky; top: 5.5rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--rund-gross); scrollbar-width: thin; scrollbar-color: var(--kante) transparent; }
.filter-spalte .filter { grid-template-columns: 1fr; margin-bottom: 0; border-radius: var(--rund-gross); box-shadow: var(--schatten); }

/* ---------- Produktliste ---------- */
.anzahl { color: var(--grau); font-size: .9rem; margin: 0 0 .6rem; }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.eintrag {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: .9rem 1rem .9rem 1.1rem; border-radius: var(--rund);
  background: linear-gradient(100deg, var(--flaeche-hell) 0%, var(--flaeche) 60%); border: 1px solid var(--kante);
}
.eintrag .symbol { width: 2.6rem; height: 2.6rem; }
.eintrag .name { margin: 0; font-size: 1.1rem; font-weight: 600; }
.eintrag .meta { margin: .15rem 0 0; color: var(--grau); font-size: .88rem; }
.eintrag .meta strong { color: var(--glut); }
.kauf {
  display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; text-align: right;
  padding: .55rem .7rem; border-radius: var(--rund-klein);
}
.kauf .preis { margin: 0; }
.kauf .preis b { display: block; font-size: 1.5rem; font-weight: 700; font-stretch: 108%; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kauf .preis small { color: var(--grau); font-size: .8rem; }
/* Packungsart unter dem Kilopreis: eigene Zeile, damit man Einzelspule und Multipack sofort unterscheidet */
.kauf .preis .packung { display: block; margin-top: .15rem; color: var(--text); font-weight: 600; }
.zum-shop {
  display: inline-flex; align-items: center; min-height: 2.6rem; padding: .4rem 1rem;
  border-radius: var(--rund-klein); border: 1.5px solid var(--kante);
  color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap;
}
/* Zweitlink zu Amazon: bewusst leiser als der Bestpreis-Knopf */
.amazon-link { display: inline-flex; align-items: center; gap: .25rem; min-height: 2.75rem; color: var(--grau); font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; }
.amazon-link:hover { color: var(--text); }
.amazon-link .pfeil { width: .8rem; height: .8rem; }
.bestpreis { border-color: color-mix(in srgb, var(--tuerkis) 60%, var(--kante)); }
.bestpreis .preis b { color: var(--preis); }
.bestpreis .zum-shop { background: var(--tuerkis); border-color: var(--tuerkis); color: var(--auf-tuerkis); }
.ausverkauft { opacity: .62; }
.leer { padding: 1.5rem; text-align: center; color: var(--grau); }

/* Hover: Eintrag hebt sich, Symbol hüpft, Preisfeld wird türkis, Knopf füllt sich */
@media (hover: hover) {
  .eintrag, .eintrag .symbol, .kauf, .zum-shop { transition: transform .22s ease, background-color .22s, border-color .22s, box-shadow .22s, color .22s; }
  .eintrag:hover { transform: translateY(-3px); border-color: var(--tuerkis); box-shadow: 0 14px 30px -18px rgb(52 216 198 / .55); }
  .eintrag:hover .symbol { transform: translateY(-5px); }
  .eintrag:hover .kauf { background: color-mix(in srgb, var(--tuerkis) 16%, transparent); transform: translateY(-3px); }
  .eintrag:hover .zum-shop { background: var(--tuerkis); border-color: var(--tuerkis); color: var(--auf-tuerkis); }
  .zum-shop:hover { background: var(--tuerkis-hell) !important; }

  /* Preiskarten: Symbol und Preisfeld heben sich, Knopf füllt sich */
  .karte .symbol, .karte-fuss, .karte, .kachel .symbol { transition: transform .25s ease, box-shadow .25s, border-color .25s; }
  .karte:hover { border-color: var(--tuerkis); }
  .karte:hover .symbol { transform: translateY(-8px); }
  .karte:hover .karte-fuss { transform: translateY(-6px); box-shadow: 0 14px 26px -14px rgb(52 216 198 / .6); }
  .karte:hover .knopf { background: var(--tuerkis); border-color: var(--tuerkis); color: var(--auf-tuerkis); }
  a.kachel:hover .symbol { transform: translateY(-5px); }
}

/* ---------- Textseiten ---------- */
.text { max-width: 44rem; padding-top: 1rem; }
.text h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.text h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: .5rem; }
.text p { margin: 0 0 1rem; }
.kurz, .formel {
  padding: 1rem 1.2rem; border-radius: var(--rund);
  background: var(--flaeche); border: 1px solid var(--kante); border-left: 4px solid var(--tuerkis);
}
.formel { font-weight: 600; font-size: 1.15rem; font-stretch: 105%; }

/* ---------- Fuß: harter Schnitt, oben hell-türkis, nach unten tiefblau ----------
   Drei Zeilen, jeweils links und rechts bündig mit Kopf und Inhalt. */
.fuss {
  margin-top: auto;
  background: linear-gradient(180deg, #4FDDCD 0, #36BDBB 5rem, #1E6F98 10rem, #15325E 15.5rem, #0A1430 100%);
  color: #fff;
}
.fuss-innen { max-width: var(--seite); margin-inline: auto; padding: 1.8rem var(--rand) 1.4rem; }
.fuss-oben { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .3rem 2rem; color: #0F1A36; }
.fuss-logo { margin: 0; font-size: 1.6rem; font-weight: 700; font-stretch: 115%; }
.fuss-slogan { margin: 0; font-weight: 500; }
.fuss-mitte { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; gap: 1.5rem clamp(2rem, 5vw, 5rem); margin-top: 6rem; }
.fuss-hinweise { max-width: 38rem; font-size: .92rem; color: #E3ECF8; }
.fuss-hinweise p { margin: 0 0 .5rem; }
.fuss-hinweise p:last-child { margin: 0; }
.fuss-spalte { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; }
.fuss-titel { margin: 0 0 .35rem; font-size: .82rem; font-weight: 600; color: #A9BEDD; }
/* Linie unter den Links: dezent sichtbar, beim Drüberfahren breitet sich eine weiße Linie von der Mitte aus */
.fuss nav a { position: relative; color: #fff; font-weight: 600; text-decoration: none; padding-block: .4rem; }
.fuss nav a::before, .fuss nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; }
.fuss nav a::before { height: 1px; background: rgb(255 255 255 / .35); }
.fuss nav a::after { height: 2px; background: #fff; transform: scaleX(0); transform-origin: center; transition: transform .3s ease; }
.fuss nav a:hover::after, .fuss nav a:focus-visible::after { transform: scaleX(1); }
.fuss-unten {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 2rem;
  margin-top: 1.8rem; padding-top: 1.1rem; border-top: 1px solid rgb(255 255 255 / .14);
  color: #B9C8E3; font-size: .88rem;
}
.fuss-unten p { margin: 0; }
.fuss :focus-visible { outline-color: #fff; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 60rem) {
  .menue-knopf { display: inline-flex; }
  .kopf-innen { grid-template-columns: auto 1fr auto; }
  .kopf-innen .menue-knopf { grid-column: 1; }
  .kopf-innen { row-gap: 0; }
  .kopf-innen .menue-knopf { grid-row: 1 / span 2; }
  .kopf-innen .logo { grid-column: 2; grid-row: 1; }
  /* Datum am Handy unter dem Logo, damit der Kopf nicht überläuft */
  .kopf-innen .kopf-rechts { display: contents; }
  .kopf-stand { grid-column: 2; grid-row: 2; font-size: .74rem; line-height: 1.2; }
  .kopf-innen .thema-knopf { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }
  .vergleich { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filter-spalte { position: static; max-height: none; overflow: visible; }
  .filter-spalte .filter { margin-bottom: 1rem; box-shadow: none; }
  .js .seitenleiste {
    position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(18rem, 86vw);
    padding: 1rem; overflow-y: auto;
    background: var(--grund); border-right: 1px solid var(--kante);
    transform: translateX(-102%); transition: transform .25s ease; visibility: hidden;
  }
  .js .seitenleiste[data-offen] { transform: none; visibility: visible; box-shadow: 20px 0 50px -20px rgb(0 0 0 / .6); }
  .menue-offen::after { content: ""; position: fixed; inset: 0; z-index: 30; background: rgb(5 10 25 / .55); }
  .seitenleiste nav { position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .held { grid-template-columns: 1fr; padding-top: 0; }
  .druck-buehne { max-width: 26rem; width: 100%; justify-self: center; }
  .karten { grid-template-columns: 1fr; }
  .rahmen { padding-top: 1.25rem; }
  .fuss-oben { flex-direction: column; }
  .fuss-mitte { margin-top: 4.5rem; grid-template-columns: 1fr 1fr; }
  .fuss-hinweise { grid-column: 1 / -1; }
  .kopf-nav { display: none; }
  .gruende { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 34rem) {
  .menue-knopf span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .logo { font-size: 1.2rem; }
  .eintrag { grid-template-columns: auto minmax(0, 1fr); padding: .9rem; }
  .eintrag .symbol { width: 2.2rem; height: 2.2rem; }
  .kauf { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; padding: 0; }
  .kachel-flaeche { width: 2.6rem; height: 2.6rem; }
  .karte-fuss b { font-size: 2.1rem; }
  .kacheln { grid-template-columns: 1fr; }
  .kacheln-held { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kacheln-held .kachel { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .thema-knauf { forced-color-adjust: none; background: Highlight; }
}

/* ---------- Weitere Produkte laden ---------- */
.liste[aria-busy="true"] { opacity: .5; }
.mehr {
  display: block; width: 100%; min-height: 2.9rem; margin-top: .65rem; padding: .5rem 1rem;
  border-radius: var(--rund); border: 1.5px solid var(--kante); background: transparent;
  color: var(--text); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
  touch-action: manipulation;
}
@media (hover: hover) { .mehr:hover { border-color: var(--tuerkis); color: var(--tuerkis); } }
.mehr[aria-busy="true"] { opacity: .6; cursor: progress; }

/* ---------- Preisalarm ---------- */
.preisalarm-knopf { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.preisalarm-knopf svg { width: 1.2rem; height: 1.2rem; flex: none; }

/* ---------- Kaufhilfe unter der Druckerliste ---------- */
.kaufhilfe { margin-top: 3rem; }
.kaufhilfe h3 { font-size: 1.05rem; margin: 1.25rem 0 .35rem; }

/* ---------- Hinweise an den Produktkarten ---------- */
.unsicher { color: var(--warnung); font-weight: 600; }
.kosten-link { color: var(--akzent); white-space: nowrap; }
.kachel-breit { grid-column: 1 / -1; }
.seitenkopf .knopf { margin-top: -.75rem; }

/* ---------- Kostenrechner: Die Kosten liegen wie gedruckte Schichten übereinander ---------- */
.rechner-flaeche { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
.rechner fieldset { border: 1px solid var(--kante); border-radius: var(--rund); background: var(--flaeche); padding: 1rem; margin: 0 0 1rem; display: grid; gap: .8rem; min-width: 0; }
.rechner legend { font-weight: 600; padding-inline: .35rem; }
.rechner label { display: grid; gap: .3rem; font-size: .92rem; color: var(--grau); }
.rechner input:not([type=range]):not([type=radio]), .rechner select { width: 100%; min-height: 2.75rem; padding: .45rem .6rem; font: inherit; font-size: 1rem; color: var(--text); background: var(--flaeche-hell); border: 1px solid var(--kante); border-radius: var(--rund-klein); }
.rechner input:focus-visible, .rechner select:focus-visible { outline: 2px solid var(--tuerkis); outline-offset: 2px; }
.rechner input[type=range] { width: 100%; accent-color: var(--tuerkis); min-height: 2rem; }
.rechner output { color: var(--text); font-weight: 600; }
.pensum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; border: 0; padding: 0; margin: 0; }
.rechner .pensum label { display: block; text-align: center; cursor: pointer; }
.pensum input { position: absolute; opacity: 0; }
.pensum span { display: block; padding: .55rem .25rem; border: 1px solid var(--kante); border-radius: var(--rund-klein); color: var(--text); font-size: .88rem; }
.pensum input:checked + span { background: var(--tuerkis); border-color: var(--tuerkis); color: var(--auf-tuerkis); font-weight: 600; }
.pensum input:focus-visible + span { outline: 2px solid var(--tuerkis); outline-offset: 2px; }
.feldhinweis { margin: 0; font-size: .82rem; color: var(--grau); }
.genauer summary { cursor: pointer; font-weight: 600; }
.genauer[open] summary { margin-bottom: .8rem; }
.genauer > div { display: grid; gap: .8rem; }
@media (min-height: 56rem) { .ergebnis-kosten { position: sticky; top: 5.5rem; } }
.ergebnis-kosten h2 { font-size: 1.1rem; font-weight: 500; color: var(--grau); margin: 0; }
.kosten-summe { margin: .1rem 0 1rem; font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; font-stretch: 108%; color: var(--preis); font-variant-numeric: tabular-nums; line-height: 1.1; }
.kosten-eckwerte { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0 0 1.25rem; color: var(--grau); font-variant-numeric: tabular-nums; }
.stapel-saeule { height: 9rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; margin-bottom: 1.25rem; border-bottom: 3px solid var(--kante); }
.schicht { display: block; min-height: 0; border-radius: 3px; }
.schicht-anschaffung { background: var(--tuerkis); }
.schicht-filament { background: var(--preis); }
.schicht-weitere { background: #B48CFF; }
.punkt { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .45rem; }
.kosten-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.kosten-tabelle th, .kosten-tabelle td { padding: .55rem .5rem; text-align: right; border-bottom: 1px solid var(--kante); font-weight: 400; }
.kosten-tabelle th:first-child { text-align: left; }
.kosten-erkenntnis { margin: 1.25rem 0 0; }
.kosten-weiter { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
@media (max-width: 60rem) { .rechner-flaeche { grid-template-columns: minmax(0, 1fr); } .ergebnis-kosten { position: static; order: -1; } }

/* Im Preisfilter muss auch „99999“ ganz in die schmalen Felder passen */
.spanne-felder input { padding-left: 1.1rem; padding-right: .15rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.spanne-felder .euro { left: .35rem; font-size: .8rem; }

/* Rechner: Was bewusst nicht drin ist, steht offen neben dem Ergebnis */
.kosten-grenze { margin: 1.25rem 0 0; padding: .8rem 1rem; border: 1px dashed var(--kante); border-radius: var(--rund-klein); font-size: .92rem; color: var(--grau); }

/* Weitere Farbtöne derselben Farbfamilie an der Filamentkarte */
.a-toene { display: block; margin-top: .15rem; }
.a-toene a { color: var(--akzent); }
