/* ============================================================
   AMANA AKADEMIE — Shared stylesheet
   Editorial: tiefes Petrol als Bühne, Gold als sparsamer Akzent
   ============================================================ */

:root {
  /* Palette */
  --petrol: #0F4C5C;
  --petrol-dark: #0A3640;
  --petrol-darker: #062831;
  --gold: #C9A961;
  --gold-light: #E0C281;
  --cream: #F7F4ED;
  --cream-warm: #EFEADD;
  --ink: #1C2B2E;
  --ink-soft: #4A5A5C;
  --line-on-dark: rgba(201, 169, 97, 0.32);
  --line-on-light: rgba(28, 43, 46, 0.14);
  --text-on-dark: rgba(255, 255, 255, 0.86);
  --text-on-dark-soft: rgba(255, 255, 255, 0.62);

  /* Type */
  --serif-display: "Cormorant Garamond", "EB Garamond", "Playfair Display", Georgia, serif;
  --serif-body: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 144px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

/* Selection */
::selection { background: var(--gold); color: var(--petrol-dark); }

/* ----- Rautentextur (Diamond) ----- */
.diamond-bg {
  position: relative;
  isolation: isolate;
}
.diamond-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(201,169,97,0.05) 25%, transparent 25%, transparent 75%, rgba(201,169,97,0.05) 75%),
    linear-gradient(45deg, rgba(201,169,97,0.05) 25%, transparent 25%, transparent 75%, rgba(201,169,97,0.05) 75%);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

/* ----- Surfaces ----- */
.surface-dark   { background: var(--petrol); color: var(--text-on-dark); }
.surface-darker { background: var(--petrol-dark); color: var(--text-on-dark); }
.surface-cream  { background: var(--cream); color: var(--ink); }
.surface-warm   { background: var(--cream-warm); color: var(--ink); }

/* ----- Layout helpers ----- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-sm { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }

/* ===================== Typography ===================== */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 32px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.eyebrow.left-only::after { display: none; }
.eyebrow.left-only { gap: 14px; }

.h-display {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.h-display .gold { color: var(--gold); font-style: italic; font-weight: 500; }
.h-section {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 18px 0 0;
  text-wrap: balance;
}
.h-card {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0;
}
.kicker {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.tagline {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
}
.lead {
  font-family: var(--serif-body);
  font-size: 1.28rem;
  line-height: 1.6;
  color: inherit;
  opacity: 0.92;
  max-width: 60ch;
  margin: 24px auto 0;
  text-wrap: pretty;
}
.lead.left { margin-left: 0; margin-right: 0; }
p { text-wrap: pretty; }

.surface-dark p, .surface-darker p { color: var(--text-on-dark); }
.surface-dark .lead, .surface-darker .lead { color: var(--text-on-dark); opacity: 0.88; }
.surface-dark .ink-soft, .surface-darker .ink-soft { color: var(--text-on-dark-soft); }
.surface-cream .ink-soft, .surface-warm .ink-soft { color: var(--ink-soft); }

/* ===================== Buttons ===================== */
.btn {
  --bg: var(--gold);
  --fg: var(--petrol-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: 0;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-outline {
  --bg: transparent;
  --fg: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: rgba(201,169,97,0.08); color: var(--gold-light); border-color: var(--gold-light); }
.btn-outline-ink {
  --bg: transparent;
  --fg: var(--ink);
  border: 1px solid rgba(28,43,46,0.4);
}
.btn-outline-ink:hover { background: rgba(28,43,46,0.06); border-color: var(--ink); }

/* ===================== Header / Nav ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--petrol-dark);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  transition: background 0.25s;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  font-family: var(--serif-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-mark .dot { color: var(--gold); }
.brand-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}
.nav-link {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-dark);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover { color: var(--gold-light); }
.nav-link.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav .btn { padding: 11px 20px; font-size: 0.72rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-on-dark);
  color: inherit;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--petrol-dark); border-bottom: 1px solid var(--line-on-dark); flex-direction: column; align-items: stretch; padding: 14px var(--gutter) 22px; gap: 14px; }
  .nav.is-open { display: flex; }
  .nav-link { padding: 8px 0; }
  .nav-toggle { display: inline-flex; }
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  text-align: center;
  padding-top: clamp(96px, 14vw, 200px);
  padding-bottom: clamp(96px, 14vw, 200px);
  overflow: hidden;
}
.hero .kicker { display: block; margin-bottom: 28px; }
.hero .tagline { display: block; margin-top: 36px; }
.hero .actions { margin-top: 44px; display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.ornament {
  display: inline-block;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 1.2em;
  text-align: center;
  margin: 28px 0 0;
}
.divider-line {
  width: 1px; height: 56px; background: var(--gold); opacity: 0.55;
  margin: 36px auto;
}
.divider-line.short { height: 32px; margin: 24px auto; }

/* Hero ornamental side rules */
.hero-rule {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 1px; height: 56%;
  background: linear-gradient(to bottom, transparent, rgba(201,169,97,0.35), transparent);
  pointer-events: none;
}
.hero-rule.left { left: clamp(20px, 5vw, 80px); }
.hero-rule.right { right: clamp(20px, 5vw, 80px); }

/* ===================== Generic centered section header ===================== */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); }
.section-head .lead { margin-top: 22px; }

/* ===================== Page head (dark) ===================== */
.page-head {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(80px, 9vw, 140px);
  text-align: center;
  border-bottom: 1px solid var(--line-on-dark);
}

/* ===================== Cards ===================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: rgba(255,255,255,0.55);
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 38px);
  border-top: 1px solid var(--gold);
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.4s ease, background 0.3s;
}
.surface-warm .card { background: rgba(255,255,255,0.7); }
.surface-cream .card { background: #fff; }
.card:hover { transform: translateY(-3px); }
.card-num {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  font-weight: 500;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.65; }

/* Dark card (used on pilot ablauf) */
.card-dark {
  background: var(--petrol-dark);
  color: var(--text-on-dark);
  border-top: 1px solid var(--gold);
}
.card-dark p { color: var(--text-on-dark); opacity: 0.85; }

/* ===================== Quote banner ===================== */
.quote-banner { text-align: center; }
.quote-banner blockquote {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.35;
  max-width: 22ch;
  margin: 0 auto;
  color: var(--text-on-dark);
  text-wrap: balance;
}
.quote-banner blockquote::before { content: "“"; color: var(--gold); display: block; font-size: 4rem; line-height: 0.6; margin-bottom: 18px; font-style: normal; }
.quote-banner .source { display: block; margin-top: 28px; }

/* ===================== Pilot teaser (two-col) ===================== */
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 5vw, 88px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.data-box {
  background: var(--petrol-dark);
  color: var(--text-on-dark);
  padding: clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--gold);
  position: relative;
}
.data-box h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
  font-weight: 500;
}
.data-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-on-dark);
}
.data-row:last-child { border-bottom: 0; }
.data-row dt {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  padding-top: 4px;
}
.data-row dd {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 1.1rem;
  color: var(--text-on-dark);
  line-height: 1.45;
}

/* ===================== Stats strip ===================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
.stats .stat {
  padding: clamp(28px, 4vw, 56px) clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line-on-dark);
  text-align: center;
}
.stats .stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--serif-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
}
.stat-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  margin-top: 16px;
  display: block;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2) { border-right: 0; }
  .stats .stat:nth-child(1), .stats .stat:nth-child(2) { border-bottom: 1px solid var(--line-on-dark); }
}

/* ===================== Tables ===================== */
.table-block { }
.table-block h3 { margin-top: 22px; }
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-family: var(--serif-body);
}
.table th, .table td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid rgba(201,169,97,0.3);
  font-size: 1.06rem;
  line-height: 1.5;
}
.table th {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  width: 30%;
  padding-right: 24px;
  vertical-align: top;
}
.table td { color: var(--ink); }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }

/* On dark */
.surface-dark .table td, .surface-darker .table td { color: var(--text-on-dark); }

/* ===================== Footer ===================== */
.site-footer {
  background: var(--petrol-darker);
  color: var(--text-on-dark);
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: 36px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line-on-dark);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 22px;
}
.footer-col .brand-mark { font-size: 2rem; }
.footer-col p { color: var(--text-on-dark-soft); font-size: 1.04rem; margin: 14px 0 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-family: var(--serif-body);
  font-size: 1.06rem;
  transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
}
.footer-meta .motto { color: var(--gold); font-style: italic; font-family: var(--serif-body); letter-spacing: 0.04em; text-transform: none; font-size: 0.95rem; }

/* ===================== Direct contact email block ===================== */
.email-big {
  display: inline-block;
  font-family: var(--serif-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  margin-top: 12px;
  transition: color 0.2s, border-color 0.2s;
}
.email-big:hover { color: var(--gold-light); border-color: var(--gold-light); }

.notice-box {
  margin-top: 28px;
  padding: 22px 26px;
  border-left: 2px solid var(--gold);
  background: rgba(201,169,97,0.07);
  font-size: 1.02rem;
  color: var(--ink-soft);
}

/* ===================== Legal / reading column ===================== */
.legal { padding: clamp(64px, 7vw, 112px) 0; }
.legal h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  margin: 0 0 12px;
}
.legal h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 48px 0 12px;
  line-height: 1.25;
}
.legal h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 28px 0 8px;
  font-weight: 500;
}
.legal p, .legal li { font-size: 1.08rem; line-height: 1.7; color: var(--ink); }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--petrol); border-bottom: 1px solid var(--gold); text-decoration: none; }
.legal .notice-box { background: rgba(201,169,97,0.12); border-left: 2px solid var(--gold); margin-bottom: 36px; }

/* ===================== Tally fallback ===================== */
.form-frame {
  border: 1px dashed rgba(28,43,46,0.25);
  background: #fff;
  padding: 36px;
  text-align: center;
  margin-top: 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.form-frame .tally-iframe { width: 100%; border: 0; min-height: 520px; }
.form-frame .fallback-msg {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ===================== Reveal ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Small helpers */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mt-4 { margin-top: 48px; }
