/* ==================================================================
   Mein Liefertag – app.witzki-grimm.de/LT/
   Gleiche Farben und Schrift wie das App-Portal und der SDB-Downloader.
   ================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../../portal/assets/schrift/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --marke: #312783;
  --marke-hell: #4a3fa8;
  --marke-blass: #eeecf7;
  --rot: #e30613;
  --rot-blass: #fdeced;
  --gruen: #1d7a43;
  --gruen-blass: #e7f3eb;
  --gelb-blass: #fdf5dc;
  --gelb-linie: #e0c26a;
  --tinte: #15132f;
  --grau: #5b5a6e;
  --linie: #e3e2ec;
  --flaeche: #ffffff;
  --papier: #f6f6f9;

  --schrift: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --anzeige: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;

  --rand: clamp(16px, 4vw, 56px);
  --kurve: cubic-bezier(0.16, 1, 0.3, 1);
  --tempo: 200ms var(--kurve);
  --schatten: 0 1px 2px rgba(21, 19, 47, 0.04), 0 8px 24px rgba(21, 19, 47, 0.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinte);
  background: var(--papier);
}

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------- Kopf ---------------- */

.testband {
  padding: 8px var(--rand);
  background: var(--gelb-blass);
  border-bottom: 1px solid var(--gelb-linie);
  font-size: 14px;
}

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--rand);
  background: var(--marke);
  color: #fff;
}

.kopf__logo { display: block; line-height: 0; }
.kopf__logo img { height: 26px; width: auto; }

.kopf__portal {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  white-space: nowrap;
}

.kopf__portal:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------------- Rahmen ---------------- */

.rahmen {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) var(--rand) 56px;
}

.titel {
  margin: 0 0 8px;
  font-family: var(--anzeige);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.unterzeile {
  margin: 0 0 24px;
  max-width: 58ch;
  color: var(--grau);
}

/* ---------------- Kasten ---------------- */

.kasten {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
}

.kasten p { margin: 0; }

.kasten svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kasten--warnung {
  background: var(--gelb-blass);
  border: 1px solid var(--gelb-linie);
  color: #6b5210;
}

/* ---------------- Suche ---------------- */

.suche {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
}

.suche__feld {
  position: relative;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
}

.suche__feld svg {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--grau);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.suche__feld input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 13px 14px 13px 44px;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: var(--flaeche);
  color: inherit;
  box-shadow: var(--schatten);
}

.suche__feld input::-webkit-search-cancel-button { cursor: pointer; }

.suche__feld input:focus-visible {
  outline: 2px solid var(--marke);
  outline-offset: 2px;
  border-color: var(--marke);
}

.knopf {
  font: inherit;
  font-weight: 600;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--marke);
  color: #fff;
  cursor: pointer;
  transition: background var(--tempo);
}

.knopf:hover { background: var(--marke-hell); }
.knopf:disabled { opacity: 0.6; cursor: default; }
.knopf:focus-visible { outline: 2px solid var(--tinte); outline-offset: 2px; }

.fehler {
  margin: 10px 0 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--rot-blass);
  border: 1px solid #f3b8bd;
  color: #8f0d17;
  font-size: 15px;
}

/* ---------------- Ergebnis ---------------- */

.ergebnis {
  margin: 28px 0 0;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 18px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  box-shadow: var(--schatten);
}

.ergebnis__art {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grau);
}

.ergebnis__gebiet {
  margin: 0 0 14px;
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ergebnis__gross {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--marke-blass);
  color: var(--marke);
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.ergebnis--versand .ergebnis__gross {
  background: var(--gruen-blass);
  color: var(--gruen);
}

.fakten {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 0;
  font-size: 15px;
}

.fakten dt { color: var(--grau); }
.fakten dd { margin: 0; font-weight: 600; }

.ergebnis__hinweis {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--grau);
}

.ergebnis__fuss {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--linie);
  font-size: 14px;
  color: var(--grau);
}

.ergebnis__fuss a { color: var(--marke); font-weight: 600; }

/* ---------------- Uebersicht ---------------- */

.uebersicht { margin-top: 44px; }

.uebersicht__titel {
  margin: 0 0 14px;
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 25px);
  letter-spacing: -0.02em;
}

.gebiete {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.gebiet {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
}

.gebiet__name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.gebiet__tage {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--marke);
}

.gebiet--versand .gebiet__tage { color: var(--gruen); }

.gebiet__orte {
  margin: 0;
  font-size: 14px;
  color: var(--grau);
}

/* ---------------- Fuss ---------------- */

.fuss {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding: 18px var(--rand);
  border-top: 1px solid var(--linie);
  font-size: 14px;
  color: var(--grau);
  background: var(--flaeche);
}

.fuss__links { display: flex; gap: 18px; }
.fuss a { color: inherit; text-decoration: none; }
.fuss a:hover { color: var(--marke); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
