/* Werkzeug-Seiten (/tools/, /flughaefen/, /betreiber/): dieselbe Sprache
   wie die Anwendung, als eigenständiges Blatt. Die Token-Werte sind eine
   KOPIE aus src/index.css (Stand 26.08.2026); ändert sich dort die
   Palette, gehört sie hier nachgezogen. Tagmodus ist Standard, thema.js
   setzt data-theme aus dem gemerkten Wunsch der Hauptseite (md-theme),
   ohne JavaScript entscheidet die Systemeinstellung. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500.woff2") format("woff2");
}

:root {
  --paper: #fcfcfa;
  --card: #ffffff;
  --surface: #f5f4ef;
  --surface2: #eeece5;
  --line: #e9e7e0;
  --line2: #d9d6cc;
  --ink: #0a1220;
  --ink-2: rgba(10, 18, 32, 0.74);
  --ink-3: rgba(10, 18, 32, 0.6);
  --ink-4: rgba(10, 18, 32, 0.32);
  /* HIG-Audit K2 (08.09.): zweite Stimme der Überschriften, 3,5:1 auf Papier */
  --ink-ghost: rgba(10, 18, 32, 0.5);
  --gold: #c9a227;
  --gold-deep: #806816; /* HIG-Audit K1 (08.09.): 5,2:1 auf Papier statt 4,4:1, wie index.css */
  --gold-wash: rgba(201, 162, 39, 0.08);
  --gold-line: rgba(201, 162, 39, 0.35);
  --gold-shadow: rgba(201, 162, 39, 0.4);
  --cta-ink: #0a1220;
  --cta-from: #c9a227;
  --cta-to: #e9c86a;
  --night: #0a1220;
  --night-ink: #f4efe6;
  --night-gold: #e9c86a;
  --shadow-lift: 0 18px 40px -18px rgba(10, 18, 32, 0.28);
}
:root[data-theme="dark"] {
  --paper: #0a1220;
  --card: #0d1b2a;
  --surface: #0d1b2a;
  --surface2: #12233b;
  --line: rgba(244, 239, 230, 0.1);
  --line2: rgba(244, 239, 230, 0.2);
  --ink: #f4efe6;
  --ink-2: rgba(244, 239, 230, 0.75);
  --ink-3: rgba(244, 239, 230, 0.55);
  --ink-4: rgba(244, 239, 230, 0.34);
  --ink-ghost: rgba(244, 239, 230, 0.55);
  --gold: #e9c86a;
  --gold-deep: #e9c86a;
  --gold-wash: rgba(233, 200, 106, 0.1);
  --gold-line: rgba(233, 200, 106, 0.35);
  --gold-shadow: rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --paper: #0a1220;
    --card: #0d1b2a;
    --surface: #0d1b2a;
    --surface2: #12233b;
    --line: rgba(244, 239, 230, 0.1);
    --line2: rgba(244, 239, 230, 0.2);
    --ink: #f4efe6;
    --ink-2: rgba(244, 239, 230, 0.75);
    --ink-3: rgba(244, 239, 230, 0.55);
    --ink-4: rgba(244, 239, 230, 0.34);
    --ink-ghost: rgba(244, 239, 230, 0.55);
    --gold: #e9c86a;
    --gold-deep: #e9c86a;
    --gold-wash: rgba(233, 200, 106, 0.1);
    --gold-line: rgba(233, 200, 106, 0.35);
    --gold-shadow: rgba(0, 0, 0, 0.55);
    --shadow-lift: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}
html {
  font-synthesis-weight: none;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a {
  color: inherit;
}

/* Kopfzeile wie in der Anwendung: Milchglas auf Papier, Haarlinie */
.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(6px);
}
.wortmarke {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.wortmarke b {
  font-weight: 600;
  color: var(--gold-deep);
  margin-left: 6px;
}
.kopf-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-deep);
}

.rahmen {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}
h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
h1 .halb {
  color: var(--ink-ghost); /* HIG K2: 3,5:1 statt 2,1:1 */
}
.vorwort {
  margin: 14px 0 0;
  max-width: 620px;
  color: var(--ink-2);
}
h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.karte {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 22px;
}
.karten-gitter {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
@media (min-width: 720px) {
  .karten-gitter {
    grid-template-columns: 1fr 1fr;
  }
}
.werkzeug-karte {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 22px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.werkzeug-karte:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.werkzeug-karte .zeichen {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-wash);
  color: var(--gold-deep);
}
.werkzeug-karte .zeichen svg {
  width: 20px;
  height: 20px;
}
.werkzeug-karte b {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
}
.werkzeug-karte span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
}
.werkzeug-karte .weiter {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Formulare: Unterstrich-Felder wie in der Anwendung, 44-px-Ziele */
.feldzeile {
  display: grid;
  gap: 0 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feldzeile {
    grid-template-columns: 1fr 1fr;
  }
}
.feld {
  display: block;
  margin-top: 14px;
  position: relative;
}
.feld .etikett {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.feld input,
.feld select {
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none;
}
.feld input:focus,
.feld select:focus {
  border-color: var(--gold-line);
}
.feld input::placeholder {
  color: var(--ink-4);
}
.feld input[type="range"] {
  border-bottom: 0;
  accent-color: var(--gold);
  padding: 14px 0;
}

/* Ortssuche: Vorschläge unter dem Feld */
.vorschlaege {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 10;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.vorschlaege:empty {
  display: none;
}
.vorschlaege button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 6px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.vorschlaege button:hover,
.vorschlaege button:focus-visible {
  background: var(--gold-wash);
}
.vorschlaege .code {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}

.knopf-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 28px;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
  color: var(--cta-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px -10px var(--gold-shadow);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.knopf-gold:hover {
  transform: translateY(-2px);
}
.knopf-gold:active {
  transform: scale(0.985);
}
.knopf-still {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  cursor: pointer;
}

/* Ergebnisse */
.ergebnis {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.ergebnis[hidden] {
  display: none;
}
.zahlenreihe {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.zahl {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.zahl-name {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.treffer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.treffer:last-child {
  border-bottom: 0;
}
.treffer .ort {
  min-width: 0;
  font-size: 14px;
}
.treffer .wert {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}
.treffer .code {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}

/* Vergleichsbalken (Reisezeit) */
.balkenreihe {
  margin-top: 14px;
}
.balken-name {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-2);
}
.balken {
  height: 10px;
  margin-top: 6px;
  border-radius: 6px;
  background: var(--surface2);
  overflow: hidden;
}
.balken i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cta-from), var(--cta-to));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.balken.still i {
  background: var(--line2);
}

/* Kurze Textlinks in Karten nicht umbrechen: ein über zwei Zeilen
   gebrochener Inline-Link legt seinen Umriss über den Nachbartext
   (text_sonde, 26.08., /tools/ bei 768 px) und liest sich zerrissen. */
.karte p a {
  white-space: nowrap;
}

.hinweis {
  margin-top: 22px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
.hinweis a {
  color: var(--gold-deep);
}

/* Globus-Bühne des Flughafen-Finders: dunkles Fenster, kippt nie */
.globus-buehne {
  position: relative;
  margin-top: 24px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #13213a 0%, var(--night) 70%);
}
.globus-buehne canvas {
  display: block;
}
.globus-laden {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(244, 239, 230, 0.55);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fuss {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.fuss-innen {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  font-size: 12px;
  color: var(--ink-3);
}
.fuss-innen a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  /* 44 px auch in der Breite („AGB" war 25 px, ziele_sonde 08.09.): Polster
     und Gegen-Rand, damit der Abstand der Zeile gleich bleibt */
  min-width: 44px;
  justify-content: center;
  padding: 0 10px;
  margin: 0 -10px;
  text-decoration: none;
  color: var(--ink-3);
}
/* Verweise im Fließtext (Kontakt, Ratgeber, Hinweise): senkrechtes Polster auf
   dem Inline-Element vergrößert die Trefferfläche auf 44 px, ohne die Zeile
   zu bewegen (ziele_sonde 08.09.: Textlinks 14 bis 21 px hoch) */
main p a:not([class]),
main li a:not([class]),
article p a:not([class]),
article li a:not([class]),
.hinweis a:not([class]),
.karte p a:not([class]) {
  padding: 15px 12px; /* 12 statt 10: „AGB" misst 24 px, mit 20 px Polster nur 43,7 (Sonde 08.09.) */
  margin: 0 -12px;
}
.fuss-innen a:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .werkzeug-karte,
  .knopf-gold,
  .balken i {
    transition: none;
  }
  .werkzeug-karte:hover,
  .knopf-gold:hover {
    transform: none;
  }
}
