/*
Theme Name: Flugplatz Weimar
Theme URI: https://flugplatz-weimar.com/
Description: Theme für den Flugplatz Weimar-Umpferstedt (EDOU). Setzt den freigegebenen Prototyp V4 um. Ohne Page-Builder, ohne Fremdabhängigkeiten.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: fpw
*/

/* ==========================================================================
   Farbwelt und Grundlagen - unverändert aus dem freigegebenen Prototyp.
   Farben zentral hier unter :root änderbar.
   ========================================================================== */

:root {
  --anthr-900: #1e2227;     /* Header, Footer, dunkle Flächen */
  --anthr-800: #262c33;
  --anthr-700: #333b44;
  --blue-800: #24557e;
  --blue-600: #2f6fa8;
  --blue-100: #edf3f9;
  --blue-200: #dbe7f2;
  --gold: #c9a227;          /* Akzent: CTA, Rahmen, Flächen */
  --gold-light: #e3c04b;
  /* Goldton für Text auf hellem Grund. Das dekorative Gold erreicht auf
     Weiß nur 3,6:1 und verfehlt damit die 4,5:1 aus WCAG 2.1 AA (N-06);
     dieser Ton liegt bei 4,8:1. Für Rahmen und Flächen gilt die Schwelle
     nicht, dort bleibt --gold unverändert. */
  --gold-text: #8a6f19;
  --ink: #242a30;
  --grey: #5d6871;
  --line: #dfe4e9;
  --white: #ffffff;
  --alert: #b0402b;         /* Fehlende Angaben */
  --alert-bg: #fdf1ee;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(30, 34, 39, .12);
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--blue-600); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold);
  color: #2b2408; padding: 10px 18px; font-weight: 700; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Sprachumschaltung DE/EN ----------
   Jede Sprache hat eine eigene Adresse (/ und /en/). Der Umschalter ist
   deshalb ein echter Link, kein JavaScript-Schalter. */
.lang-switch {
  display: flex; gap: 2px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px; overflow: hidden; flex: none;
}
.lang-switch a {
  background: transparent; border: none; color: #cdd6de; font-weight: 700;
  font-size: .82rem; padding: 7px 10px; cursor: pointer; text-decoration: none;
  display: block;
}
.lang-switch a.on { background: var(--gold); color: #2b2408; }

/* ---------- Status-Banner (F-21) ---------- */
.status-banner {
  background: #f6efd9; border-bottom: 1px solid #e2d3a0; color: #6d5a17;
  font-size: .95rem; padding: 8px 0;
}
.status-banner .wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.status-banner strong { color: #55460f; }
.status-banner.status-ok { background: #eef4ee; border-color: #cfe0d1; color: #33553a; }

/* ---------- Header / Navigation ---------- */
header.site {
  background: var(--anthr-900); color: var(--white);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  border-bottom: 2px solid var(--gold);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand svg, .brand img.logo { width: 40px; height: 40px; flex: none; }
.brand img.logo { width: auto; max-height: 44px; }
.brand .t1 { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand .t2 { font-size: .78rem; opacity: .75; letter-spacing: .04em; }

.nav-right { display: flex; align-items: center; gap: 14px; }

nav.main ul { list-style: none; display: flex; gap: 2px; }
nav.main a {
  color: #ccd5dd; text-decoration: none; font-size: .95rem; font-weight: 600;
  padding: 10px 13px; border-radius: 8px; display: block; white-space: nowrap;
}
nav.main a:hover { background: rgba(255,255,255,.10); color: #fff; }
nav.main a.active { background: var(--blue-600); color: #fff; }
nav.main a.cta { background: var(--gold); color: #2b2408; }
nav.main a.cta:hover { background: var(--gold-light); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.4);
  color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 80% -60px, rgba(201,162,39,.14), transparent 60%),
    linear-gradient(155deg, var(--anthr-900) 0%, var(--anthr-800) 40%, var(--blue-800) 100%);
  color: var(--white);
  padding: 64px 0 84px;
  position: relative; overflow: hidden;
}
.hero .plane { position: absolute; right: 4%; top: 26px; width: 200px; opacity: .14; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.2; max-width: 740px; }
.hero p.sub { margin-top: 14px; font-size: 1.12rem; max-width: 660px; color: #ccd8e2; }
.hero .facts { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; font-size: .95rem; color: #d3dde6; }
.hero .facts span { background: rgba(255,255,255,.10); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(201,162,39,.35); }

.hero.small { padding: 44px 0 52px; }
.hero.small h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* ---------- Drei-Türen-Modell ---------- */
.doors { margin-top: -46px; position: relative; z-index: 2; padding-bottom: 8px; }
.doors .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.door {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 24px 22px; text-decoration: none; color: var(--ink);
  border-top: 5px solid var(--blue-600);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.door:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(30,34,39,.20); }
.door .icon { width: 46px; height: 46px; }
.door h2 { font-size: 1.22rem; color: var(--anthr-800); }
.door p { color: var(--grey); font-size: .96rem; flex: 1; }
.door .go { font-weight: 700; color: var(--blue-600); }
.door.pilot { border-top-color: var(--blue-800); }
.door.schule { border-top-color: var(--blue-600); }
.door.rundflug { border-top-color: var(--gold); }
.door.rundflug .go { color: var(--gold-text); }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
section.block.alt { background: var(--blue-100); }
section.block.dark { background: var(--anthr-800); color: #dde4ea; }
section.block.dark h2.title { color: #fff; }
section.block.dark h2.title::after { background: var(--gold); }
.block h2.title { font-size: 1.7rem; color: var(--anthr-800); margin-bottom: 8px; }
.block h2.title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 8px; border-radius: 2px; }
.block p.lead { color: var(--grey); max-width: 760px; margin-bottom: 26px; }
section.block.dark p.lead { color: #b8c2cc; }
.block h3.sub-title { margin-top: 28px; color: var(--anthr-800); }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 2px 8px rgba(30,34,39,.05); color: var(--ink);
}
.card h3 { color: var(--anthr-800); margin-bottom: 8px; font-size: 1.12rem; }
.card p, .card li { font-size: .96rem; color: #39434c; }
.card ul { padding-left: 20px; }
.card.gold-top { border-top: 4px solid var(--gold); }

.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-26 { margin-top: 26px; }
.small-note { margin-top: 10px; font-size: .85rem; color: var(--grey); }

/* Echte Bilder aus der Mediathek */
.fpw-img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.fpw-img.portrait { aspect-ratio: 3 / 4; }

/* ==========================================================================
   Fehlende Zulieferungen des Auftraggebers.
   Bewusst auffällig: Der Auftraggeber soll sich durch die Seite klicken und
   sofort erkennen, was noch fehlt.
   ========================================================================== */

.fpw-gap {
  color: var(--alert); font-weight: 700; background: var(--alert-bg);
  border-bottom: 2px dotted var(--alert); padding: 0 4px; border-radius: 3px;
  white-space: normal;
}

/* Wert steht, ist aber laut Lastenheft nur ein Vorschlag und noch zu
   bestätigen. Bewusst dezenter als eine echte Lücke. */
.fpw-confirm {
  border-bottom: 2px dotted var(--gold);
  cursor: help;
}
.hero .fpw-confirm, section.block.dark .fpw-confirm { border-bottom-color: var(--gold-light); }

.fpw-gap-image {
  position: relative; border: 2px dashed var(--alert); background: var(--alert-bg);
  border-radius: var(--radius); min-height: 200px; padding: 26px 18px 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; color: var(--alert);
}
.fpw-gap-image.portrait { min-height: 260px; }
.fpw-gap-image.small { min-height: 150px; }
.fpw-gap-cross { width: 52px; height: 52px; flex: none; color: var(--alert); }
.fpw-gap-image strong { font-size: .98rem; }
.fpw-gap-hint { font-size: .84rem; color: #7c4433; max-width: 380px; line-height: 1.45; }
.fpw-gap-badge {
  position: absolute; top: 10px; left: 10px; background: var(--alert); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}

/* ---------- Tabellen ---------- */
/* Der Kasten ist per Tastatur fokussierbar, damit man ohne Maus scrollen
   kann. Dann muss der Fokus aber auch sichtbar sein. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table-scroll:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }
table.data { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(30,34,39,.06); color: var(--ink); }
table.data th, table.data td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.data th { background: var(--anthr-800); color: #fff; font-weight: 600; border-bottom: 2px solid var(--gold); }
table.data tr:nth-child(even) td { background: #f5f8fa; }
table.data td.num { text-align: right; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; border-radius: 10px;
  padding: 12px 22px; border: none; cursor: pointer; font-size: 1rem;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn.primary { background: var(--blue-600); color: #fff; }
.btn.accent { background: var(--gold); color: #2b2408; }
.btn.steel { background: var(--blue-800); color: #fff; }
.btn.ghost { background: transparent; border: 2px solid var(--blue-600); color: var(--blue-600); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.disabled { background: #c7ced5; color: #6a747d; cursor: not-allowed; pointer-events: none; }

/* ---------- Formulare ---------- */
form.std { display: grid; gap: 14px; }
form.std .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.std label { font-size: .88rem; font-weight: 600; color: var(--anthr-800); display: block; margin-bottom: 4px; }
form.std input, form.std select, form.std textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #b3bfca; border-radius: 8px;
  font-size: .98rem; font-family: inherit; background: #fff;
}
form.std input:focus, form.std select:focus, form.std textarea:focus {
  outline: 2px solid var(--blue-600); border-color: var(--blue-600);
}
form.std .check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--grey); }
form.std .check input { width: auto; margin-top: 4px; }

.form-msg { background: #eef4ee; border: 1px solid #cfe0d1; color: #33553a; padding: 12px 16px; border-radius: 8px; font-size: .95rem; }
.form-msg.error { background: var(--alert-bg); border-color: #e6bcb0; color: #8d3421; }

/* Honeypot (F-13) - für Besucher und Bildschirmleser unsichtbar */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Hinweise / Badges ---------- */
.note {
  background: var(--blue-100); border-left: 4px solid var(--blue-600);
  padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: .93rem; color: #33465a;
}
.note.warn { background: #f8f2dd; border-color: var(--gold); color: #63511a; }
.note.alert { background: var(--alert-bg); border-color: var(--alert); color: #8d3421; }

/* Service-Icons (Tanken/Übernachten) */
.svc { display: flex; gap: 16px; align-items: flex-start; }
.svc .ico {
  flex: none; width: 54px; height: 54px; border-radius: 12px;
  background: var(--anthr-800); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.svc .ico svg { width: 30px; height: 30px; }

/* ---------- Rundflug-Pakete ---------- */
.paket { position: relative; display: flex; flex-direction: column; }
.paket .dauer { font-size: .85rem; font-weight: 700; color: var(--gold-text); letter-spacing: .05em; text-transform: uppercase; }
.paket h3 { font-size: 1.25rem; margin: 4px 0 8px; }
.paket .preis { font-size: 1.9rem; font-weight: 800; color: var(--anthr-800); margin: 10px 0 2px; }
.paket .preis small { font-size: .85rem; font-weight: 400; color: var(--grey); }
.paket p { flex: 1; }
.paket.best { border: 2px solid var(--gold); }
.paket .flag { position: absolute; top: -12px; right: 16px; background: var(--gold); color: #2b2408; font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }

/* ---------- Gutscheine: Ausblick auf Phase 2 ---------- */
.phase2 {
  border: 1px solid var(--line); border-left: 4px solid var(--blue-600);
  background: var(--blue-100); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
}
.checkout-steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.checkout-steps span { background: var(--blue-200); color: var(--anthr-800); font-size: .85rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.checkout-steps span.on { background: var(--anthr-800); color: #fff; border: 1px solid var(--gold); }

/* ---------- Kosten-Grafik (Preiszusammensetzung, F-33) ---------- */
.kosten-bar { display: flex; height: 38px; margin: 18px 0 14px; }
.kosten-bar .seg { border-radius: 2px; }
.kosten-bar .seg + .seg { margin-left: 2px; }
.kosten-bar .seg:first-child { border-radius: 6px 2px 2px 6px; }
.kosten-bar .seg:last-child { border-radius: 2px 6px 6px 2px; }
.kosten-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .92rem; color: #39434c; }
.kosten-legend .li { display: flex; align-items: center; gap: 8px; }
.kosten-legend .chip { width: 14px; height: 14px; border-radius: 4px; flex: none; }

/* ---------- Karte (Zwei-Klick Google Maps, F-31) ---------- */
.map-consent {
  min-height: 320px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--blue-100); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
}
.map-consent p { font-size: .9rem; color: #4a5a6a; max-width: 420px; }
.map-consent iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* ---------- FAQ ---------- */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--anthr-800); padding: 14px 0; list-style: none; position: relative; padding-right: 30px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.3rem; color: var(--gold); }
details.faq[open] summary::after { content: "\2013"; }
details.faq div { padding: 0 0 16px; color: #39434c; font-size: .96rem; }

/* ---------- Rechtsseiten ---------- */
.legal-body h2 { font-size: 1.3rem; margin: 22px 0 8px; color: var(--anthr-800); }
.legal-body h3 { font-size: 1.1rem; margin: 18px 0 6px; color: var(--anthr-800); }
.legal-body p, .legal-body li { margin-bottom: 10px; }
.legal-body ul, .legal-body ol { padding-left: 22px; }

/* ---------- Footer ---------- */
footer.site { background: var(--anthr-900); color: #aeb9c2; margin-top: 60px; font-size: .92rem; border-top: 2px solid var(--gold); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 44px 0 28px; }
footer.site h4 { color: #fff; font-size: .98rem; margin-bottom: 10px; }
footer.site a { color: #c6d2dc; text-decoration: none; }
footer.site a:hover { text-decoration: underline; color: var(--gold-light); }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 6px; }
footer.site .fpw-gap { background: transparent; color: #ff9d86; border-bottom-color: #ff9d86; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0 26px; font-size: .8rem; color: #8794a0; }

/* ---------- Druckansicht Pilotenbereich (N-07) ---------- */
@media print {
  header.site, footer.site, .status-banner, .no-print, .btn { display: none !important; }
  body { font-size: 12pt; }
  .hero { background: none; color: #000; padding: 0; }
  .hero p.sub, .hero .facts { color: #333; }
  .hero .facts span { border-color: #999; }
  .fpw-gap-image { min-height: 0; }
  section.block { padding: 12px 0; }
  a[href]::after { content: ""; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .doors .grid, .cols-3 { grid-template-columns: 1fr; }
  .cols-2, .cols-4 { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--anthr-900); padding: 10px 20px 20px; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; }
  .nav-toggle { display: block; }
  form.std .row { grid-template-columns: 1fr; }
  .hero .plane { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .checkout-steps span { font-size: .78rem; }
}
