/* TIP TOP Angebote - Gestaltung
   Hell als Standard, Dunkel wenn das Gerät es so eingestellt hat. */

:root {
  --grund:        #ffffff;
  --flaeche:      #f4f5f7;
  --karte:        #ffffff;
  --rand:         #e2e5ea;
  --text:         #1c1f24;
  --text-leise:   #5c6069;
  --signal:       #f2b705;
  --signal-dunkel:#c99400;
  --gruen:        #1a8a4a;
  --rot:          #c0392b;
  --anthrazit:    #1c1f24;
  --schatten:     0 1px 2px rgba(20,24,31,.06), 0 6px 20px rgba(20,24,31,.06);
  --rundung:      12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund:      #14171b;
    --flaeche:    #1a1d22;
    --karte:      #1f232a;
    --rand:       #2c313a;
    --text:       #e8eaed;
    --text-leise: #9aa0aa;
    --gruen:      #3ecf7a;
    --rot:        #ff7a6b;
    --anthrazit:  #0e1013;
    --schatten:   0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--flaeche);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.huelle { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }

/* ------------------------------------------------------------- Kopfbereich */

.kopf { background: var(--anthrazit); color: #fff; }

.kopf-innen {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .9rem 0; flex-wrap: wrap;
}

.marke { display: flex; align-items: center; gap: .6rem; text-decoration: none; }

.marke-zeichen {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--signal); color: #1c1f24;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem;
}

.marke-text { font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; white-space: nowrap; }

.suchfeld { display: flex; flex: 1 1 320px; max-width: 640px; }

.suchfeld input {
  flex: 1; min-width: 0;
  padding: .68rem .9rem;
  border: 1px solid transparent; border-radius: 9px 0 0 9px;
  background: #fff; color: #1c1f24; font-size: 1rem;
}

.suchfeld input:focus { outline: 2px solid var(--signal); outline-offset: -2px; }

.suchfeld button {
  padding: .68rem 1.3rem; border: 0; border-radius: 0 9px 9px 0;
  background: var(--signal); color: #1c1f24;
  font-weight: 700; font-size: 1rem; cursor: pointer;
}

.suchfeld button:hover { background: var(--signal-dunkel); }

.sparten { background: #23272e; overflow-x: auto; }

.sparten-innen { display: flex; gap: .35rem; padding: .45rem 0; }

.sparte {
  white-space: nowrap; text-decoration: none;
  padding: .45rem .9rem; border-radius: 7px;
  color: #c9ced6; font-size: .92rem; font-weight: 500;
  border-left: 3px solid var(--farbe, transparent);
}

.sparte:hover { background: #2e333c; color: #fff; }
.sparte.aktiv { background: var(--farbe); color: #14171b; font-weight: 650; }
.sparte .anzahl { opacity: .6; font-size: .8em; }

/* ------------------------------------------------------------ Hinweisband */

.hinweisband {
  background: #fff6d8; color: #5a4400;
  border-bottom: 1px solid #f0e0a8;
  font-size: .84rem; padding: .5rem 0;
}

@media (prefers-color-scheme: dark) {
  .hinweisband { background: #2a2412; color: #e8d48a; border-bottom-color: #3d3416; }
}

/* ------------------------------------------------------------ Hauptbereich */

.inhalt { padding: 1.8rem 0 3rem; }

h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 .3rem; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; margin: 0 0 .2rem; letter-spacing: -.01em; }
h3 { font-size: 1rem; margin: 1.4rem 0 .5rem; }

.klein { font-size: .85rem; color: var(--text-leise); }
.leise { color: var(--text-leise); }

.brotkrumen { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.brotkrumen a { text-decoration: none; }
.brotkrumen a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- Startseite */

.bühne {
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: var(--rundung); padding: 1.8rem;
  margin-bottom: 1.8rem; box-shadow: var(--schatten);
}

.bühne p { margin: .4rem 0 1.2rem; color: var(--text-leise); max-width: 66ch; }

.spartenkacheln {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.spartenkachel {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .9rem 1rem; text-decoration: none;
  background: var(--flaeche); border: 1px solid var(--rand);
  border-left: 4px solid var(--farbe); border-radius: 0 10px 10px 0;
}

.spartenkachel:hover { background: var(--karte); border-color: var(--farbe); }
.spartenkachel-name { font-weight: 650; font-size: .97rem; }

.block { margin-top: 2.2rem; }

.block-kopf {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}

.mehr {
  font-size: .88rem; text-decoration: none; white-space: nowrap;
  padding: .35rem .8rem; border: 1px solid var(--rand); border-radius: 7px;
}

.mehr:hover { border-color: var(--signal); }

/* ------------------------------------------------------------ Empfehlungen */

.empfehlungen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.empfehlung {
  display: grid; grid-template-columns: 120px 1fr; gap: 1rem;
  background: var(--karte); border: 1px solid var(--rand);
  border-left: 4px solid var(--farbe); border-radius: 0 var(--rundung) var(--rundung) 0;
  padding: 1.1rem;
}

.empfehlung-bild { width: 100%; border-radius: 8px; background: var(--flaeche); }
.empfehlung h3 { margin: .15rem 0 .5rem; font-size: 1.02rem; line-height: 1.35; }
.empfehlung h3 a { text-decoration: none; }
.empfehlung h3 a:hover { text-decoration: underline; }

.empfehlung-text {
  margin: 0 0 .7rem; font-size: .93rem; line-height: 1.5;
  color: var(--text); font-style: italic;
}

@media (max-width: 480px) {
  .empfehlung { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ Produktgitter */

.gitter {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}

.kachel {
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: var(--rundung); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; transition: border-color .12s, transform .12s;
}

.kachel:hover { border-color: var(--signal); transform: translateY(-2px); }

.kachel-bildbereich { position: relative; }

.kachel-bild {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover;
  background: var(--flaeche); display: block;
}

.kachel-marker {
  position: absolute; top: .55rem; left: .55rem;
  display: flex; flex-direction: column; gap: .3rem; align-items: flex-start;
}

.marker {
  display: inline-block; padding: .18rem .5rem; border-radius: 6px;
  font-size: .76rem; font-weight: 700; letter-spacing: .01em;
}

.marker.rabatt    { background: var(--rot); color: #fff; }
.marker.tiefpreis { background: var(--gruen); color: #fff; }
.marker.video     { background: #1c1f24; color: #fff; }

@media (prefers-color-scheme: dark) { .marker.video { background: #000; color: #fff; } }
.marker.an        { background: var(--gruen); color: #fff; }
.marker.aus       { background: var(--rand); color: var(--text-leise); }

@media (prefers-color-scheme: dark) {
  .marker.rabatt    { color: #2a0d09; }
  .marker.tiefpreis { color: #04240f; }
  .marker.an        { color: #04240f; }
}

.kachel-text { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; flex: 1; }

.kachel-marke {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-leise); font-weight: 600;
}

.kachel-titel {
  font-size: .93rem; font-weight: 600; margin: .2rem 0 .45rem;
  line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.bewertung { display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; flex-wrap: wrap; }
.bewertung.gross { margin: .3rem 0 .8rem; font-size: 1rem; }
.sterne { color: var(--signal); letter-spacing: .06em; font-size: .95rem; }

.kachel-fuss { margin-top: auto; }

.preiszeile { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.preis { font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; }
.uvp { text-decoration: line-through; color: var(--text-leise); font-size: .87rem; }
.uvp.gross { font-size: 1.05rem; }
.preis-klein { font-size: .77rem; color: var(--text-leise); }

.shopzahl { display: inline-block; margin-top: .35rem; font-size: .78rem; color: var(--text-leise); }

.ohne-preis { font-size: 1.05rem; font-weight: 650; color: var(--text-leise); }

.modellnummer {
  font-size: .78rem; color: var(--text-leise);
  font-variant-numeric: tabular-nums; margin-bottom: .35rem;
}

.modellnummer.gross { font-size: .9rem; margin: .2rem 0 .6rem; }

.ohne-preis-kasten { margin: 1rem 0; }

/* ------------------------------------------------------------- Video-Knopf */

.knopfreihe { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .3rem; }

.video-knopf {
  background: #c4302b; color: #fff;
  padding: .8rem 1.4rem; font-size: 1.02rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: .5rem;
}

.video-knopf:hover { background: #a82722; opacity: 1; }
.video-pfeil { font-size: .95em; }

.merkmale { margin: 0 0 .9rem; padding-left: 1.2rem; }
.merkmale li { margin-bottom: .3rem; }

/* ---------------------------------------------------------- Listenseite */

.listenseite {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.6rem; align-items: start; margin-top: 1.2rem;
}

@media (max-width: 860px) {
  .listenseite { grid-template-columns: 1fr; }
}

.filterhuelle { position: sticky; top: 1rem; }

.filterhuelle > summary {
  display: none;                 /* auf dem Rechner sind die Filter immer offen */
  cursor: pointer; list-style: none;
  padding: .7rem 1.1rem; margin-bottom: .6rem;
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: var(--rundung); font-weight: 650;
}

.filterhuelle > summary::-webkit-details-marker { display: none; }
.filterhuelle > summary::after { content: " ▾"; color: var(--text-leise); }
.filterhuelle[open] > summary::after { content: " ▴"; }

.filterspalte {
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: var(--rundung); padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}

@media (max-width: 860px) {
  .filterhuelle { position: static; }
  .filterhuelle > summary { display: block; }
}

.filterblock { display: flex; flex-direction: column; gap: .35rem; }

.filtertitel {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; color: var(--text-leise);
}

.filterspalte select {
  padding: .5rem .6rem; border: 1px solid var(--rand); border-radius: 8px;
  background: var(--grund); color: var(--text); font-size: .92rem; width: 100%;
}

.wahl {
  display: flex; align-items: center; gap: .5rem;
  font-size: .91rem; cursor: pointer;
}

.wahl input { accent-color: var(--signal); }

.sortierzeile {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}

.sortierzeile select {
  padding: .45rem .6rem; border: 1px solid var(--rand); border-radius: 8px;
  background: var(--karte); color: var(--text); font-size: .92rem;
}

.blaettern { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

.seitenzahl {
  min-width: 38px; text-align: center;
  padding: .45rem .6rem; border: 1px solid var(--rand); border-radius: 8px;
  text-decoration: none; font-size: .92rem; background: var(--karte);
}

.seitenzahl:hover { border-color: var(--signal); }
.seitenzahl.aktiv { background: var(--signal); color: #1c1f24; font-weight: 700; border-color: var(--signal); }
.seitenzahl.leise { border-color: transparent; background: none; color: var(--text-leise); }

/* --------------------------------------------------------- Bereichsliste */

.bereiche { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.bereich {
  display: flex; flex-direction: column; gap: .1rem;
  text-decoration: none; padding: .7rem .9rem;
  border: 1px solid var(--rand); border-radius: 9px;
  font-size: .93rem; font-weight: 550; background: var(--flaeche);
}

.bereich:hover { border-color: var(--signal); background: var(--karte); }

.markenzeile { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: 1.2rem; }

.markenlink {
  text-decoration: none; font-size: .85rem;
  padding: .25rem .7rem; border: 1px solid var(--rand); border-radius: 99px;
}

.markenlink:hover { border-color: var(--signal); }

.schnellfilter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }

/* ----------------------------------------------------------- Produktseite */

.produkt-kopf {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 1.8rem; align-items: start;
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: var(--rundung); padding: 1.5rem; box-shadow: var(--schatten);
}

@media (max-width: 760px) { .produkt-kopf { grid-template-columns: 1fr; } }

.produkt-bildbereich { position: relative; }
.produkt-bild { width: 100%; border-radius: 9px; background: var(--flaeche); display: block; }

.marke-zeile {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-leise); font-weight: 600;
}

.bestpreis-kasten {
  margin: 1rem 0; padding: .9rem 1.1rem;
  background: var(--flaeche); border-radius: 0 10px 10px 0;
  border-left: 4px solid var(--gruen);
}

.bestpreis-zahl { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }

/* -------------------------------------------------------------- Angebote */

.angebotsliste { display: flex; flex-direction: column; gap: .55rem; margin-top: .8rem; }

.angebot {
  display: grid; align-items: center; gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: 10px; padding: .85rem 1.1rem;
}

.angebot.bester { border-color: var(--gruen); border-width: 2px; }

@media (max-width: 620px) {
  .angebot { grid-template-columns: 1fr auto; }
  .angebot .zum-shop { grid-column: 1 / -1; text-align: center; }
}

.shopname { font-weight: 650; }

.abzeichen {
  display: inline-block; margin-left: .5rem; padding: .1rem .45rem;
  background: var(--gruen); color: #fff; border-radius: 5px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}

@media (prefers-color-scheme: dark) { .abzeichen { color: #04240f; } }

.angebot-preis { text-align: right; }
.angebot-preis .gesamt { font-size: 1.2rem; font-weight: 700; }

.zum-shop {
  display: inline-block; text-decoration: none;
  padding: .6rem 1.35rem; border-radius: 8px;
  background: var(--signal); color: #1c1f24;
  font-weight: 700; white-space: nowrap;
}

.zum-shop.gross { padding: .8rem 1.6rem; font-size: 1.03rem; }
.zum-shop:hover { background: var(--signal-dunkel); }

.nicht-verfuegbar { opacity: .55; }

/* ------------------------------------------------------------ Preisverlauf */

.verlauf-kasten {
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: var(--rundung); padding: 1.2rem 1.4rem; margin-top: 1.6rem;
}

.verlauf-svg { width: 100%; height: auto; display: block; margin: .6rem 0 .3rem; }
.verlauf-linie { fill: none; stroke: var(--gruen); stroke-width: 2.2; }
.verlauf-flaeche { fill: var(--gruen); opacity: .1; }

/* --------------------------------------------------------------- Formulare */

.formular { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-top: .8rem; }

.feld { display: flex; flex-direction: column; gap: .25rem; }
.feld label { font-size: .82rem; font-weight: 600; color: var(--text-leise); }

.feld input, .feld select {
  padding: .58rem .7rem; border: 1px solid var(--rand); border-radius: 8px;
  background: var(--grund); color: var(--text); font-size: .95rem; min-width: 180px;
}

.knopf {
  padding: .6rem 1.25rem; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--anthrazit); color: #fff; font-weight: 650; font-size: .95rem;
  text-decoration: none; display: inline-block;
}

.knopf.gelb { background: var(--signal); color: #1c1f24; }
.knopf.klein-knopf { padding: .35rem .8rem; font-size: .84rem; }
.knopf:hover { opacity: .88; }

@media (prefers-color-scheme: dark) { .knopf { background: #343a44; } }

/* --------------------------------------------------------------- Tabellen */

.tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabelle th, .tabelle td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--rand); }
.tabelle th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-leise); }
.tabelle td.zahl, .tabelle th.zahl { text-align: right; font-variant-numeric: tabular-nums; }

.rollbar { overflow-x: auto; }

.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4rem; }

.zahlenreihe { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.zahlkasten { margin: 0; }
.grosse-zahl { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }

/* ------------------------------------------------------------ Textbausteine */

.kasten {
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: var(--rundung); padding: 1.4rem 1.6rem; margin-bottom: 1.2rem;
}

.kasten.warnung { border-left: 4px solid var(--signal); border-radius: 0 var(--rundung) var(--rundung) 0; }
.kasten.fehler  { border-left: 4px solid var(--rot);    border-radius: 0 var(--rundung) var(--rundung) 0; }
.kasten.gut     { border-left: 4px solid var(--gruen);  border-radius: 0 var(--rundung) var(--rundung) 0; }

.textseite { max-width: 76ch; }
.textseite h2 { margin-top: 1.8rem; }

.platzhalter {
  background: repeating-linear-gradient(45deg, transparent, transparent 8px,
              rgba(242,183,5,.09) 8px, rgba(242,183,5,.09) 16px);
  border: 1px dashed var(--signal); border-radius: 8px;
  padding: .8rem 1rem; margin: .6rem 0; font-size: .9rem;
}

/* ------------------------------------------------------------------ Fuß */

.fuss { background: var(--anthrazit); color: #c9ced6; margin-top: 3rem; }

.fuss-innen {
  display: grid; gap: 1.8rem; padding: 2.2rem 0;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) { .fuss-innen { grid-template-columns: 1fr; } }

.fuss-innen .klein { color: #8a919c; }
.fuss-spalte { display: flex; flex-direction: column; gap: .4rem; }
.fuss-spalte a { color: #c9ced6; text-decoration: none; font-size: .9rem; }
.fuss-spalte a:hover { color: var(--signal); }
.fuss-spalte .klein { color: #8a919c; margin-bottom: .2rem; }

/* Steht bewusst ganz am Ende: die Dunkelmodus-Regel für .knopf weiter oben
   würde den Video-Knopf sonst grau einfärben. */
a.knopf.video-knopf { background: #c4302b; color: #fff; }
a.knopf.video-knopf:hover { background: #a82722; opacity: 1; }

@media (prefers-color-scheme: dark) {
  a.knopf.video-knopf { background: #d9453f; color: #2a0d09; }
  a.knopf.video-knopf:hover { background: #e85a54; }
}
