/* Heli-Buchung: Erscheinungsbild wie die Webseite Heli-Events (Archivo und Inter, Navy, Orange, flach) */

@font-face { font-family: "Heli Archivo"; src: url("/fonts/archivo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Heli Archivo"; src: url("/fonts/archivo-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Heli Inter"; src: url("/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Heli Inter"; src: url("/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Heli Inter"; src: url("/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0b2233;
  --nacht: #081422;
  --akzent: #da291c;
  --akzent-dunkel: #b01e14;
  --pfirsich: #fce4e2;
  --pfirsich-text: #9b1c13;
  --text: #0f1a24;
  --grau: #4a5866;
  --grau-hell: #6b7785;
  --linie: #e3e7ec;
  --rand: #cbd3dc;
  --flaeche: #f6f7f9;
  --flaeche-2: #e9edf2;
  --blau-hell: #eef3f7;
  --gruen: #14532d;
  --gruen-hell: #e7f5ec;
  --rot: #b42318;
  --rot-hell: #fdecea;
  --gelb: #78350f;
  --gelb-hell: #fef3c7;
  --radius: 16px;
  --radius-klein: 10px;
  /* alte Namen, falls admin.css oder scan sie brauchen */
  --blau: var(--navy);
  --blau-dunkel: var(--nacht);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--flaeche);
  color: var(--text);
  font-family: "Heli Inter", Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }
a:hover { color: var(--akzent); }

button, input, select, textarea { font: inherit; color: inherit; }

body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }

/* Kopfzeile */
.kopf { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.kopf-innen {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.marke {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Heli Archivo", Archivo, sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .01em;
  color: #fff;
  text-decoration: none;
}
.marke:hover { color: #fff; }
.marke-zeichen { display: block; flex: none; }
.kopf-rechts { display: flex; align-items: center; gap: 20px; }
.sprachen { display: flex; align-items: center; gap: 2px; }
.sprachen button {
  border: 0;
  background: none;
  padding: 6px 7px;
  font-size: 14px;
  font-weight: 600;
  color: #c8d2dc;
  cursor: pointer;
  border-radius: 6px;
}
.sprachen button:hover { color: #fff; }
.sprachen button.aktiv { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Inhalt */
main { max-width: 820px; margin: 0 auto; padding: 36px 24px 80px; }

h1, h2, h3 { font-family: "Heli Archivo", Archivo, sans-serif; color: var(--text); }
h1 { font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 14px; }
h2 { font-size: 22px; font-weight: 700; line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.25; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.leise { color: var(--grau); font-size: 14px; }
.klein { font-size: 13px; }
@media (max-width: 600px) {
  h1 { font-size: 28px; }
  main { padding: 24px 16px 64px; }
  .kopf-innen { padding: 0 16px; }
  .code-eingabe { font-size: 18px !important; letter-spacing: 1px; }
}

/* Schritte */
.schritte {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0 0 32px;
  padding: 14px 20px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}
.schritte li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--grau-hell); }
.schritte .nr {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: var(--flaeche-2);
  color: var(--grau);
  flex: none;
}
.schritte li.aktiv { color: var(--navy); }
.schritte li.aktiv .nr { background: var(--navy); color: #fff; }
.schritte li.fertig { color: var(--text); }
.schritte li.fertig .nr { background: var(--pfirsich); color: var(--pfirsich-text); }
@media (max-width: 600px) {
  .schritte { gap: 8px 14px; padding: 12px 14px; }
  .schritte li { font-size: 13px; gap: 6px; }
  .schritte li:not(.aktiv) .text { display: none; }
}

/* Formularfelder */
.feld { margin: 0 0 18px; }
.feld label { display: block; font-weight: 600; font-size: 13px; color: #33414f; margin: 0 0 6px; }
.feld .hilfe { font-size: 13px; color: var(--grau); margin-top: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--rand);
  border-radius: var(--radius-klein);
  background: #fff;
  font-size: 16px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.code-eingabe { font-size: 21px !important; letter-spacing: 2px; text-transform: uppercase; font-family: "Heli Archivo", Archivo, ui-monospace, Menlo, monospace; font-weight: 700; min-height: 60px !important; }
.zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .zeile { grid-template-columns: 1fr !important; } }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--akzent); }

/* Knöpfe */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-klein);
  border: 0;
  background: var(--akzent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}
.knopf:hover { background: var(--akzent-dunkel); color: #fff; }
.knopf.zweit { background: transparent; color: var(--navy); border: 1.5px solid var(--rand); }
.knopf.zweit:hover { background: transparent; border-color: var(--navy); color: var(--navy); }
.knopf.gefahr { background: transparent; border: 1.5px solid var(--rot); color: var(--rot); }
.knopf.gefahr:hover { background: var(--rot-hell); }
.knopf.voll { width: 100%; }
.knopf:disabled { background: var(--rand); color: var(--grau); border-color: var(--rand); cursor: not-allowed; }
.knopf.klein { min-height: 38px; padding: 0 14px; font-size: 14px; }
.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.knoepfe.zwischen { justify-content: space-between; }
.link-knopf { background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; padding: 0; font-size: 15px; font-weight: 500; }
.link-knopf:hover { color: var(--akzent); }

/* Karten */
.karte { border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 16px; background: #fff; }
.karte.wahl { cursor: pointer; display: block; border-radius: 12px; }
.karte.wahl h3 { font-size: 20px; }
.karte.wahl:hover { border-color: var(--navy); }
.karte.gewaehlt { border: 2px solid var(--navy); background: var(--blau-hell); padding: 21px 23px; }
.karten { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .karten { grid-template-columns: 1fr; } .karte { padding: 18px; } .karte.gewaehlt { padding: 17px; } }

/* Flugtage und Abflugzeiten */
.tag { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); margin: 0 0 12px; overflow: hidden; }
.tag-kopf { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 18px 56px 18px 22px; position: relative; cursor: pointer; list-style: none; }
.tag-kopf::-webkit-details-marker { display: none; }
.tag-kopf:hover { background: var(--flaeche); }
.tag-kopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
.tag-marken { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.tag-pfeil { position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.tag[open] .tag-pfeil { transform: translateY(-30%) rotate(-135deg); }
.tag[open] .tag-kopf { border-bottom: 1px solid var(--linie); }
.tag-inhalt { padding: 18px 22px 22px; }
.tag--voll .tag-datum { color: var(--grau); }
.marke-status.ampel { display: inline-flex; align-items: center; gap: 6px; }
.marke-status.ampel::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (max-width: 600px) {
  .tag-kopf { padding: 16px 48px 16px 16px; }
  .tag-marken { margin-left: 0; width: 100%; }
  .tag-pfeil { right: 18px; }
  .tag-inhalt { padding: 14px 16px 18px; }
}
.tag-datum { font-family: "Heli Archivo", Archivo, sans-serif; font-weight: 700; font-size: 18px; }
.zeiten { display: flex; flex-wrap: wrap; gap: 8px; }
.zeit {
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-klein);
  background: #fff;
  padding: 9px 12px;
  min-width: 96px;
  text-align: center;
  cursor: pointer;
  line-height: 1.25;
}
.zeit b { display: block; font-family: "Heli Archivo", Archivo, sans-serif; font-weight: 700; font-size: 17px; }
.zeit span { font-size: 12px; color: var(--grau); }
.zeit:hover:not(:disabled) { border-color: var(--navy); }
.zeit.gewaehlt { background: var(--navy); border-color: var(--navy); color: #fff; }
.zeit.gewaehlt span { color: #c8d2dc; }
.zeit:disabled { background: var(--flaeche); color: #9aa5ad; border-color: var(--linie); cursor: not-allowed; text-decoration: line-through; }
.zeit:disabled span { text-decoration: none; }

/* Status-Chips */
.marke-status { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--flaeche-2); color: #33414f; white-space: nowrap; }
.marke-status.gruen { background: var(--gruen-hell); color: var(--gruen); }
.marke-status.rot { background: var(--rot-hell); color: var(--rot); }
.marke-status.gelb { background: var(--gelb-hell); color: var(--gelb); }
.marke-status.blau { background: var(--pfirsich); color: var(--pfirsich-text); }

/* Hinweise */
.hinweis { border-radius: var(--radius-klein); padding: 14px 16px; margin: 0 0 18px; background: var(--blau-hell); color: var(--navy); }
.hinweis.fehler { background: var(--rot-hell); color: var(--rot); }
.hinweis.erfolg { background: var(--gruen-hell); color: var(--gruen); font-weight: 500; }
.hinweis.warnung { background: var(--gelb-hell); color: var(--gelb); }
.hinweis p:last-child { margin-bottom: 0; }

/* Übersicht */
.liste { width: 100%; border-collapse: collapse; margin: 0 0 6px; }
.liste th { text-align: left; font-weight: 600; color: var(--grau); font-size: 14px; padding: 10px 14px 10px 0; vertical-align: top; width: 38%; }
.liste td { padding: 10px 0; vertical-align: top; }
.liste tr + tr th, .liste tr + tr td { border-top: 1px solid var(--linie); }

.testmodus { background: var(--gelb-hell); color: var(--gelb); text-align: center; font-size: 13px; padding: 7px; font-weight: 600; }
.laden { color: var(--grau); padding: 40px 0; text-align: center; }
.versteckt { display: none !important; }
.extra-preis { font-family: "Heli Archivo", Archivo, sans-serif; font-weight: 700; white-space: nowrap; }
.extra { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }

/* Fusszeile */
.fuss-band { background: var(--nacht); color: #c8d2dc; }
.fuss { max-width: 1200px; margin: 0 auto; padding: 32px 24px 6px; font-size: 14px; }
.fuss-marke { max-width: 1200px; margin: 0 auto; padding: 0 24px 32px; font-size: 13px; color: #8a99a8; }
.fuss-band a { color: #fff; }

@media print {
  .kopf, .knoepfe, .sprachen, .testmodus, .fuss-band { display: none !important; }
  html, body { background: #fff; }
  main { padding: 0; }
}
