/* =============================================================================
   Afterflight – Stylesheet (mobil zuerst)
   Farben und Schriften zentral in :root anpassen.
   ============================================================================= */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-latin-italic.woff2') format('woff2');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marke (aus dem Briefing) */
  --green: #1F3D2B;
  --cream: #F3EDE0;
  --gold: #C9A24A;
  /* Abgeleitete Töne */
  --green-deep: #172E20;
  --green-soft: #2C5039;
  --paper: #FBF8F1;
  --cream-dark: #E7DECB;
  --line: #CFC4AC;
  --muted: #4B5B50;
  --error: #9E2A1F;
  --field-border: #6E7B71;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: 1.25rem;
  --radius: 10px;
  --focus: var(--green);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; font-variation-settings: 'opsz' 144; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--green); padding: 0.6rem 1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 44rem; }

/* ---------- Wortmarke ---------- */
.wordmark {
  font-family: var(--serif); font-weight: 650; font-size: 1.45rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; font-variation-settings: 'opsz' 72;
}
.wordmark__flight { font-style: italic; font-weight: 500; color: var(--gold); }
.wordmark:hover { text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green); color: var(--cream);
  --focus: var(--gold);
  border-bottom: 1px solid rgba(243, 237, 224, 0.12);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.site-header__brand { display: flex; align-items: baseline; gap: 0.6rem; min-width: 0; }
.site-header__region {
  display: none;
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.site-header__cta {
  font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 0.45rem 0.85rem; border: 1.5px solid var(--gold); border-radius: 999px; color: var(--cream);
}
.site-header__cta:hover { background: var(--gold); color: var(--green); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1.0625rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button--gold { background: var(--gold); color: var(--green); }
.button--gold:hover { background: #D6B35F; text-decoration: none; }
.button--gold:active { transform: translateY(1px); }
.button--outline { border-color: var(--green); color: var(--green); }
.button--outline:hover { background: var(--green); color: var(--cream); }
.button[disabled] { opacity: 0.65; cursor: progress; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Hero ---------- */
.hero { background: var(--green); color: var(--cream); --focus: var(--gold); padding: 2.5rem 0 3.5rem; overflow: hidden; }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
.hero__eyebrow { margin: 0 0 1rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.hero__claim {
  font-size: clamp(2.75rem, 11vw, 5.75rem); font-weight: 600; letter-spacing: -0.025em; line-height: 0.98;
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__text { margin: 1.25rem 0 2rem; font-size: 1.125rem; max-width: 34rem; color: rgba(243, 237, 224, 0.88); }
.hero__media { position: relative; padding-bottom: 2.5rem; }

.hero--home { padding: 3rem 0 4rem; }
.hero--home .hero__text { margin-bottom: 0; }
.hero--home .coaster--hero { position: relative; right: auto; bottom: auto; width: min(56vw, 15rem); justify-self: end; margin-top: -1rem; }

/* ---------- Bierdeckel (Erkennungszeichen) ---------- */
.coaster { width: 9.5rem; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28)); }
.coaster--hero { position: absolute; right: -0.25rem; bottom: 0; transform: rotate(-9deg); }
.coaster__disc { fill: var(--cream); }
.coaster__rim { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.coaster__rim--inner { stroke-width: 1.25; stroke-dasharray: 2 4; }
.coaster__ring-text { font: 600 11.2px var(--sans); letter-spacing: 0.17em; fill: var(--green); }
.coaster__num { font-family: var(--serif); font-weight: 700; font-size: 64px; fill: var(--green); font-variation-settings: 'opsz' 144; letter-spacing: -2px; }
.coaster__sub { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 13px; fill: #8A6A20; }

@media (prefers-reduced-motion: no-preference) {
  .coaster--hero { animation: coaster-drop 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.25s both; }
  .hero--home .coaster--hero { animation-delay: 0.1s; }
}
@keyframes coaster-drop {
  from { opacity: 0; transform: translateY(-2.5rem) rotate(-34deg) scale(1.08); }
  to { opacity: 1; transform: translateY(0) rotate(-9deg) scale(1); }
}

/* ---------- Bildplatzhalter ---------- */
.ph {
  position: relative; margin: 0; border-radius: var(--radius); aspect-ratio: 4 / 3;
  background-color: var(--cream-dark);
  background-image: repeating-linear-gradient(-45deg, rgba(31, 61, 43, 0.07) 0 2px, transparent 2px 14px);
  border: 1.5px dashed rgba(31, 61, 43, 0.35);
}
.ph__label {
  position: absolute; left: 0.75rem; bottom: 0.75rem; right: 0.75rem;
  font-size: 0.875rem; font-weight: 500; color: var(--green);
}
.ph__tag {
  display: inline-block; margin-right: 0.35rem; padding: 0.1rem 0.5rem; border-radius: 4px;
  background: var(--green); color: var(--cream); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.ph--hero {
  background-color: var(--green-soft);
  background-image: repeating-linear-gradient(-45deg, rgba(243, 237, 224, 0.07) 0 2px, transparent 2px 14px);
  border-color: rgba(243, 237, 224, 0.35);
}
.ph--hero .ph__label { color: var(--cream); bottom: auto; top: 0.75rem; }
.ph--hero .ph__tag { background: var(--gold); color: var(--green); }
.ph--tall { aspect-ratio: 4 / 5; }

/* ---------- Fotos ---------- */
.photo { margin: 0; }
.photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); background: var(--cream-dark);
}
.photo.ph--tall img { aspect-ratio: 4 / 5; }
.photo.ph--hero img { background: var(--green-soft); }
.photo__credit { margin-top: 0.4rem; font-size: 0.75rem; color: var(--muted); }
.photo__credit a { color: inherit; }
.hero .photo__credit { color: rgba(243, 237, 224, 0.7); }

/* ---------- Abschnitte ---------- */
.section { padding: 4rem 0; }
.section__heading { font-size: clamp(2rem, 7vw, 3.25rem); letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 1.25rem; }
.lead { font-size: 1.1875rem; margin: 0 0 1.5rem; max-width: 38rem; }
.split { display: grid; gap: 2.25rem; align-items: center; }

/* Problem */
.problem .section__heading { font-size: clamp(2.25rem, 8.5vw, 3.75rem); }

/* So funktioniert's – als Scorecard */
.steps { background: var(--paper); border-block: 1px solid var(--line); }
.scorecard { border: 2px solid var(--green); border-radius: var(--radius); overflow: hidden; background: var(--paper); max-width: 48rem; }
.scorecard__head {
  display: grid; grid-template-columns: 4rem 1fr; background: var(--green); color: var(--cream);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.scorecard__head span { padding: 0.55rem 1rem; }
.scorecard__head span:first-child { text-align: center; border-right: 1px solid rgba(243, 237, 224, 0.25); padding-inline: 0; }
.scorecard__rows { list-style: none; margin: 0; padding: 0; }
.card-row { display: grid; grid-template-columns: 4rem 1fr; align-items: stretch; border-top: 1px solid var(--line); }
.card-row:first-child { border-top: 0; }
.card-row__hole {
  display: grid; place-items: center; border-right: 1px solid var(--line);
  font-family: var(--serif); font-weight: 600; font-size: 1.75rem; font-variation-settings: 'opsz' 144;
}
.card-row__text { padding: 1.1rem 1rem; font-size: 1.0625rem; font-weight: 500; }
.card-row--19 { border-top: 2px solid var(--green); }
.card-row--19 .card-row__hole { background: var(--gold); border-right-color: var(--green); }
.card-row--19 .card-row__text { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; font-style: italic; }

/* Formate */
.formats__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.format {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--green);
  border-radius: var(--radius); padding: 1.35rem 1.25rem 1.5rem;
}
.format__title { font-size: 1.625rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.format__text { margin: 0; color: var(--muted); }

/* Für wen */
.audience { background: var(--paper); border-block: 1px solid var(--line); }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.3rem; }
.fact dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.3; }

/* ---------- Warteliste ---------- */
.waitlist-section { background: var(--green); color: var(--cream); --focus: var(--gold); }
.waitlist-section:focus { outline: none; }
.waitlist-section .lead { color: rgba(243, 237, 224, 0.88); }
.waitlist {
  --focus: var(--green);
  background: var(--cream); color: var(--green); border-radius: calc(var(--radius) * 1.5);
  padding: 1.5rem var(--gutter) 1.75rem; margin-inline: calc(var(--gutter) * -0.5);
  display: grid; gap: 1.15rem;
}
.field-row { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__hint { margin: 0; font-size: 0.875rem; color: var(--muted); }
.field input[type='text'], .field input[type='email'], .field input[type='tel'], .field select {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.85rem;
  font: inherit; font-size: 1rem; color: var(--green);
  background: var(--paper); border: 1.5px solid var(--field-border); border-radius: 8px;
  appearance: none; -webkit-appearance: none;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--green); }
.select { position: relative; }
.select::after {
  content: ''; position: absolute; right: 1rem; top: 50%; width: 0.55rem; height: 0.55rem; pointer-events: none;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-70%) rotate(45deg);
}
.field select { padding-right: 2.5rem; }
.field [aria-invalid='true'] { border-color: var(--error); border-width: 2px; }
.field__error { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--error); }
.field__error::before { content: '! '; }

.field--group { border: 0; padding: 0; margin: 0; }
.field--group legend { padding: 0; margin-bottom: 0.5rem; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check { display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer; }
.checks .check {
  padding: 0.55rem 0.9rem 0.55rem 0.7rem; min-height: 2.75rem;
  border: 1.5px solid var(--field-border); border-radius: 999px; background: var(--paper);
  font-size: 0.9375rem; font-weight: 500;
}
.checks .check:has(input:checked) { background: var(--green); border-color: var(--green); color: var(--cream); }
.check input { width: 1.2rem; height: 1.2rem; margin: 0; flex: none; accent-color: var(--green); }
.checks .check:has(input:checked) input { accent-color: var(--gold); }
.checks .check:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.checks .check input:focus-visible { outline: none; }
.check--consent { align-items: flex-start; font-size: 0.9375rem; line-height: 1.5; }
.check--consent input { margin-top: 0.15rem; }
.check--consent a { font-weight: 600; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.waitlist__submit { width: 100%; margin-top: 0.5rem; }
.waitlist__status:empty { display: none; }
.waitlist__status { margin: 0; font-weight: 600; }
.waitlist__status--error { color: var(--error); }

.waitlist__summary { padding: 0.85rem 1rem; border-radius: 8px; border: 2px solid var(--error); color: var(--error); font-weight: 600; }
.waitlist__summary:focus { outline: none; }

.waitlist-success {
  background: var(--cream); color: var(--green); border-radius: calc(var(--radius) * 1.5);
  padding: 2rem var(--gutter); display: grid; justify-items: start; gap: 1rem;
}
.waitlist-success:focus { outline: 3px solid var(--gold); outline-offset: 3px; }
.waitlist-success .coaster { width: 7rem; transform: rotate(-9deg); }
.waitlist-success__hint { margin: 0; color: var(--muted); }
.waitlist-success__text { margin: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.25; }

/* ---------- FAQ ---------- */
.faq__list { border-top: 2px solid var(--green); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.5rem; font-weight: 400; transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin: 0 0 1.25rem; max-width: 36rem; color: var(--muted); }

/* ---------- Startseite: Regionskacheln ---------- */
.regions { padding-top: 3rem; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.tile {
  position: relative; display: grid; align-content: end; gap: 0.35rem; min-height: 13rem;
  padding: 1.5rem; border-radius: calc(var(--radius) * 1.5); text-decoration: none;
  background: var(--paper); border: 2px solid var(--green);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tile:hover { background: var(--green); color: var(--cream); text-decoration: none; }
.tile:hover .tile__go { background: var(--gold); color: var(--green); }
.tile__eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.tile__name { font-family: var(--serif); font-weight: 600; font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1; letter-spacing: -0.025em; font-variation-settings: 'opsz' 144; }
.tile__sub { font-size: 0.9375rem; font-weight: 500; }
.tile__go {
  position: absolute; top: 1.25rem; right: 1.25rem; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid currentColor; font-size: 1.25rem;
  transition: background-color 0.2s ease;
}
.regions__explainer { margin: 2.5rem 0 0; font-family: var(--serif); font-size: clamp(1.375rem, 4.5vw, 1.875rem); line-height: 1.35; max-width: 42rem; font-weight: 450; }

/* ---------- Rechtstexte / 404 ---------- */
.legal h2 { font-size: 1.5rem; margin: 2.25rem 0 0.6rem; }
.legal h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.legal p { margin: 0 0 1rem; }
.legal__notice { padding: 0.85rem 1rem; border-left: 4px solid var(--gold); background: var(--paper); }
.todo { background: #F5DD8C; color: var(--green); padding: 0 0.2em; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: var(--cream); --focus: var(--gold); padding: 3rem 0 3.5rem; }
.site-footer__inner { display: grid; gap: 2rem; }
.site-footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem; }
.site-footer__heading { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { display: inline-block; padding: 0.2rem 0; }

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 40rem) {
  :root { --gutter: 2rem; }
  .site-header__region { display: inline; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .formats__list { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
  .tile { min-height: 17rem; padding: 2rem; }
  .waitlist { padding: 2.25rem; margin-inline: 0; }
  .waitlist__submit { width: auto; justify-self: start; }
  .card-row, .scorecard__head { grid-template-columns: 5rem 1fr; }
  .card-row__text { padding: 1.25rem 1.5rem; font-size: 1.125rem; }
}

@media (min-width: 60rem) {
  body { font-size: 1.125rem; }
  .section { padding: 6rem 0; }
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
  .hero--home .hero__inner { grid-template-columns: 1.4fr 0.6fr; }
  .hero--home .coaster--hero { width: 17rem; margin-top: 0; }
  .coaster--hero { width: 12rem; right: -2rem; }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .split--reverse > :first-child { order: 2; }
  .formats__list { grid-template-columns: repeat(6, 1fr); }
  .format { grid-column: span 2; }
  .format:nth-child(4) { grid-column: 2 / span 2; }
  .site-footer__inner { grid-template-columns: 1fr 2fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
