/* Solarscouts Bestellstatus – Kundenansicht.
   Keine externen Abhängigkeiten: nur Systemschriften, keine Web-Fonts. */

:root {
  --navy: #13306B;
  --navy-tief: #0C2049;
  --navy-hell: #E9EEFC;
  --navy-linie: #C6D3F2;
  --gruen: #3FA535;
  --gruen-tief: #24701D;
  --gruen-hell: #EAF6E8;
  --text: #16202F;
  --text-leise: #56617A;
  --flaeche: #F4F6FB;
  --weiss: #FFFFFF;
  --linie: #DDE3EF;
  --warte: #8A5A00;
  --warte-hell: #FDF3E0;
  --warte-linie: #EBD3A3;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--flaeche);
  text-wrap: pretty;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0; font-weight: 650; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy-tief); }

.nur-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Kopf ---------------------------------------------------------------- */

.kopfleiste {
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.kopfleiste img { display: block; height: 26px; width: auto; }
.kopfleiste .kopf-claim {
  font-size: 13px;
  color: var(--text-leise);
  letter-spacing: 0.02em;
}

.huelle {
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

/* --- Einstieg (Formular) ------------------------------------------------- */

.einstieg {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 14px;
  padding: 22px 20px 24px;
}
.einstieg h1 { font-size: 23px; margin-bottom: 6px; }
.einstieg p.hinweis { margin: 0 0 18px; color: var(--text-leise); font-size: 15px; }

.feld { display: block; margin-bottom: 14px; }
.feld > span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.feld > small { display: block; margin-top: 5px; font-size: 13px; color: var(--text-leise); }
.feld input {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--weiss);
  border: 1.5px solid #B9C3D8;
  border-radius: 10px;
}
.feld input:focus-visible {
  outline: 3px solid rgba(19, 48, 107, 0.28);
  outline-offset: 1px;
  border-color: var(--navy);
}

button {
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  border: 1.5px solid transparent;
  border-radius: 10px;
}
button:focus-visible { outline: 3px solid rgba(19, 48, 107, 0.28); outline-offset: 2px; }

.knopf-haupt {
  width: 100%;
  padding: 14px 20px;
  font-size: 17px;
  background: var(--navy);
  color: var(--weiss);
  min-height: 52px;
}
.knopf-haupt:hover { background: var(--navy-tief); }
.knopf-haupt[disabled] { opacity: 0.6; cursor: default; }

.meldung {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  background: #FDECEC;
  border: 1px solid #F0C0BE;
  color: #8A1C16;
}
.laedt { padding: 28px 4px; color: var(--text-leise); text-align: center; }

/* --- Antwort ------------------------------------------------------------- */

.antwort { display: grid; gap: 14px; }

.karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 14px;
  padding: 20px;
}

.kern { padding: 22px 20px; }
.kern .auftrag-nr {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.kern h2 { font-size: 25px; letter-spacing: -0.01em; }
.kern .satz { margin: 12px 0 0; font-size: 16px; color: #2B364B; }

/* Fakten */
.fakten { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.fakt {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
}
.fakt .fakt-icon {
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
  font-variant-emoji: text;
}
.fakt .fakt-text { margin: 0; font-size: 16px; }
.fakt .fakt-zusatz { margin: 4px 0 0; font-size: 14px; color: var(--text-leise); }
.fakt a { display: inline-block; margin-top: 6px; font-weight: 600; font-size: 15px; }

.fakt-termin {
  background: var(--navy-hell);
  border-color: var(--navy-linie);
}
.fakt-termin .fakt-text { font-size: 20px; font-weight: 650; color: var(--navy); }
.fakt-termin .fakt-zusatz { color: #3D4F77; }

.fakt-offen { background: var(--warte-hell); border-color: var(--warte-linie); }
.fakt-offen .fakt-text { font-weight: 600; color: var(--warte); }
.fakt-offen .fakt-zusatz { color: var(--warte); }

/* --- Sendung ------------------------------------------------------------- */

.sendung { padding: 0; overflow: hidden; }

.sendung-kopf {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--linie);
  background: var(--weiss);
}
.sendung-zaehler {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: 4px;
}
.sendung-kopf h3 { font-size: 19px; }
.sendung-kopf .sendung-hinweis { margin: 10px 0 0; font-size: 15px; color: var(--text-leise); }
.sendung-kopf .sendung-hinweis .nr { color: var(--text); font-weight: 600; }
.sendung-kopf .verfolgen {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 14px;
  min-height: 44px;
  line-height: 26px;
  border: 1.5px solid var(--navy);
  border-radius: 9px;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
}
.sendung-kopf .verfolgen:hover { background: var(--navy-hell); }

.sendung-unterwegs .sendung-kopf { background: var(--navy-hell); border-bottom-color: var(--navy-linie); }
.sendung-unterwegs .sendung-kopf h3 { color: var(--navy); }

/* Phasenleiste */
.phasen {
  list-style: none;
  margin: 0;
  padding: 20px 14px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--weiss);
}
.phase {
  position: relative;
  text-align: center;
  padding: 0 2px;
}
.phase::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  left: -50%;
  height: 3px;
  background: var(--linie);
  border-radius: 2px;
}
.phase:first-child::before { display: none; }
.phase[data-erreicht="1"]::before { background: var(--navy); }

.phase .punkt {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: var(--flaeche);
  border: 2px solid var(--linie);
  color: var(--text-leise);
}
.phase[data-erreicht="1"] .punkt {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--weiss);
}
.phase[data-aktuell="1"] .punkt {
  box-shadow: 0 0 0 4px rgba(19, 48, 107, 0.16);
}
.phase .name {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-leise);
  hyphens: auto;
}
.phase[data-erreicht="1"] .name { color: var(--text); }
.phase[data-aktuell="1"] .name { font-weight: 700; color: var(--navy); }
.phase .marke {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Positionen */
.positionen-block { border-top: 1px solid var(--linie); }
.positionen-block > summary {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}
.positionen-block > summary::-webkit-details-marker { display: none; }
.positionen-block > summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 13px;
  color: var(--text-leise);
}
.positionen-block[open] > summary::after { content: "▴"; }

.positionen { list-style: none; margin: 0; padding: 2px 20px 18px; display: grid; gap: 14px; }
.position { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.position .menge {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  background: var(--navy-hell);
  border-radius: 6px;
  padding: 2px 7px;
  height: fit-content;
  white-space: nowrap;
}
.position .artikel { margin: 0; font-size: 15px; line-height: 1.4; }
.position .rechts { min-width: 0; }

.zustand {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--linie);
  background: var(--flaeche);
  color: var(--text-leise);
}
.zustand[data-art="unterwegs"] { background: var(--gruen-hell); border-color: #BFE0BA; color: var(--gruen-tief); }
.zustand[data-art="bereit"] { background: var(--navy-hell); border-color: var(--navy-linie); color: var(--navy); }
.zustand[data-art="wartet"] { background: var(--warte-hell); border-color: var(--warte-linie); color: var(--warte); }

/* Stückliste als Einheit */
.set {
  grid-column: 1 / -1;
  margin-top: 10px;
  border: 1px solid var(--navy-linie);
  border-radius: 10px;
  background: #FBFCFF;
  overflow: hidden;
}
.set-kopf {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--navy-hell);
  border-bottom: 1px solid var(--navy-linie);
}
.set-teile { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 10px; }
.set-teile .position .menge { background: var(--weiss); border: 1px solid var(--navy-linie); }

/* Fußzeilen */
.fusszeilen {
  margin: 4px 0 0;
  padding: 16px 20px;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text-leise);
}

/* --- Interne Suche ------------------------------------------------------- */

.intern {
  margin-top: 34px;
  border-top: 1px solid var(--linie);
  padding-top: 14px;
}
.intern > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-leise);
  padding: 6px 2px;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.intern-inhalt {
  margin-top: 10px;
  padding: 16px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 10px;
  font-size: 14px;
}
.intern-inhalt .feld input { font-size: 15px; padding: 9px 11px; border-radius: 7px; }
.intern-inhalt .knopf-haupt { width: auto; padding: 10px 16px; font-size: 15px; min-height: 44px; }
.intern-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.intern-tabelle th, .intern-tabelle td {
  text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--linie); vertical-align: top;
}
.intern-tabelle th { font-weight: 600; color: var(--text-leise); }
.intern-roh {
  margin-top: 12px; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap; word-break: break-word; color: #2B364B;
}

@media (min-width: 560px) {
  body { font-size: 17px; }
  .huelle { padding: 28px 20px 64px; }
  .kern h2 { font-size: 28px; }
  .phasen { padding: 24px 20px 20px; }
  .phase .name { font-size: 14px; }
}

/* Nachtrag: Rueckweg zur Suche (zweitrangiger Knopf) */
.neue-suche-leiste { margin: 0 0 .75rem; }
.knopf-zweit {
  background: transparent;
  color: var(--navy, #13306B);
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: .5rem .9rem;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.knopf-zweit:hover { background: rgba(19, 48, 107, .06); }

/* Kontakt zur Spedition -- ruhig, aber auffindbar */
.spedi-kontakt {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--flaeche-leise, #f4f6f8);
  font-size: 0.95rem;
}
.spedi-kontakt p { margin: 0 0 0.4rem; }
.spedi-wege a { font-weight: 600; }
.spedi-wege .spedi-tel { margin-left: 0.9rem; }
.spedi-betreff { color: var(--text-leise, #5b6670); font-size: 0.88rem; }
.spedi-betreff .nr { word-break: break-word; }

/* Handlungs-Knopf in einer Faktenzeile (z. B. Abholtermin buchen) */
.fakt-knopf {
  display: inline-block;
  margin-top: 7px;
  padding: 8px 15px;
  border-radius: 9px;
  background: var(--navy, #16324f);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.fakt-knopf:hover { background: var(--navy-tief, #0e2237); color: #fff; }
