/* ==========================================================================
   FWEC – fearless world eiosciation gUG
   Design system: "Dämmerung über Ruhe" — warm dawn over calm petrol
   ========================================================================== */

:root {
  /* FWEC brand palette: Indigo #303084 + Türkis #0CCCB4 */
  --indigo:     #303084;
  --indigo-deep:#26265F;
  --teal:       #0CCCB4;
  --teal-deep:  #0AA08C;
  --teal-soft:  #D4F5EF;
  --indigo-soft:#E7E7F6;

  --ink:        #20204A;
  --muted:      #585A82;
  --cream:      #F5F9F9;
  --cream-2:    #E8F5F2;
  --white:      #FFFFFF;
  --line:       #DFE7E9;

  /* Legacy-Aliase, damit bestehende Regeln weiter funktionieren */
  --petrol:      var(--indigo);
  --petrol-deep: var(--indigo-deep);
  --apricot:     var(--teal);
  --apricot-soft:var(--teal-soft);
  --coral:       var(--teal);
  --coral-deep:  var(--teal-deep);
  --sage:        var(--teal);
  --sage-soft:   var(--teal-soft);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --container: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 18px 40px -24px rgba(14, 76, 92, 0.45);
  --shadow-soft: 0 10px 30px -22px rgba(14, 76, 92, 0.35);
}

/* Reset / base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--petrol); text-decoration-color: rgba(14,76,92,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--coral); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; color: var(--ink); font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
p { max-width: 64ch; }

/* Layout helpers --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--teal); border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* Skip link -------------------------------------------------------------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--petrol); color: var(--white); padding: .7rem 1.1rem; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--petrol); color: var(--cream); }
.btn--primary:hover { background: var(--petrol-deep); box-shadow: var(--shadow-soft); }
.btn--donate { background: var(--teal); color: var(--ink); box-shadow: 0 10px 24px -14px var(--teal-deep); }
.btn--donate:hover { background: var(--teal-deep); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--petrol); border-color: rgba(14,76,92,.25); }
.btn--ghost:hover { border-color: var(--petrol); background: rgba(14,76,92,.05); }
.btn--light { background: var(--white); color: var(--petrol); }
.btn--light:hover { background: var(--cream-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo-img { height: 56px; width: auto; display: block; }
@media (max-width: 600px) { .logo-img { height: 44px; } }
.footer-wordmark { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: #fff; line-height: 1.1; }
.footer-wordmark span { display: block; font-family: var(--body); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-top: .25rem; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: conic-gradient(from 200deg, var(--apricot), var(--coral), var(--sage), var(--petrol), var(--apricot));
  display: grid; place-items: center; color: var(--white); font-weight: 800; font-family: var(--body); font-size: .95rem;
  box-shadow: var(--shadow-soft);
}
.brand small { display: block; font-family: var(--body); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand > span:not(.mark) { white-space: nowrap; }
@media (max-width: 420px) {
  .brand { font-size: 1rem; gap: .5rem; }
  .brand small { display: none; }
}
.nav-links { display: flex; align-items: center; gap: .2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; padding: .5rem .65rem; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--sage-soft); color: var(--petrol-deep); }
.nav-cta { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--ink); }

/* Language switcher */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { width: 17px; height: 17px; }
.langs[open] summary { background: var(--sage-soft); border-color: var(--sage); }
.langs .menu { position: absolute; right: 0; top: calc(100% + .45rem); background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; min-width: 170px; z-index: 130; display: grid; gap: .1rem; }
.langs .menu a { padding: .55rem .7rem; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.langs .menu a:hover, .langs .menu a[aria-current="page"] { background: var(--sage-soft); color: var(--petrol-deep); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .8rem clamp(1.1rem, 4vw, 2rem) 1.2rem; box-shadow: var(--shadow-soft);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .7rem .9rem; }
  .nav .btn--ghost { display: none; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--teal-soft) 0%, transparent 55%),
    radial-gradient(90% 70% at 5% 0%, var(--indigo-soft) 0%, transparent 50%),
    linear-gradient(180deg, #ECF8F6 0%, var(--cream) 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { padding-block: clamp(3rem, 8vw, 6rem); max-width: 56rem; }
.hero h1 { margin-block: 1rem 1.2rem; }
.hero h1 em { font-style: italic; color: var(--coral-deep); }
.hero .lead { color: var(--ink); opacity: .82; }
.hero .btn-row { margin-top: 2rem; }
.orb {
  position: absolute; z-index: 0; border-radius: 50%; filter: blur(8px); opacity: .55;
  background: radial-gradient(circle at 35% 30%, var(--apricot), transparent 70%);
  width: 260px; height: 260px; right: -40px; top: 30px;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(0,0) scale(1);} to { transform: translate(-26px, 24px) scale(1.08);} }

/* Horizon divider -------------------------------------------------------- */
.horizon { height: 4px; border: 0; background: linear-gradient(90deg, var(--sage), var(--apricot), var(--coral)); opacity: .7; border-radius: 4px; max-width: var(--container); margin: 0 auto; }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; box-shadow: var(--shadow-soft);
}
.stat .num { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.7rem); color: var(--petrol); line-height: 1; }
.stat .lbl { display: block; margin-top: .5rem; font-weight: 600; color: var(--muted); font-size: .92rem; }

/* Cards ------------------------------------------------------------------ */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-soft);
}
.card h3 { margin-bottom: .5rem; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sage-soft); color: var(--petrol); margin-bottom: 1rem;
}
.card .icon svg { width: 24px; height: 24px; }

/* Panels ----------------------------------------------------------------- */
.panel { background: var(--cream-2); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 3rem); }
.panel--petrol { background: var(--petrol); color: var(--cream); }
.panel--petrol h2, .panel--petrol h3 { color: var(--white); }
.panel--petrol p { color: rgba(255,255,255,.85); }
.panel--petrol .eyebrow { color: var(--apricot); }
.panel--petrol .eyebrow::before { background: var(--apricot); }

/* Feature list ----------------------------------------------------------- */
.checklist { list-style: none; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: .2rem; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23303084' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.tag-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.tag { background: var(--sage-soft); color: var(--petrol-deep); border-radius: 999px; padding: .4rem .9rem; font-size: .9rem; font-weight: 600; }

/* Notice / disclaimer ---------------------------------------------------- */
.notice {
  border-left: 4px solid #E0A33A; background: #FCF4E5; border-radius: 12px;
  padding: 1.2rem 1.3rem; display: grid; gap: .4rem;
}
.notice h3 { font-family: var(--body); font-weight: 800; font-size: 1.05rem; color: #9A6A12; }
.notice a { color: #9A6A12; font-weight: 700; }

/* Two-column split ------------------------------------------------------- */
.split { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }

/* Prose pages (legal) ---------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.4rem; font-size: clamp(1.4rem,3vw,1.9rem); }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose ul { margin-top: .9rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-top: .35rem; }
.placeholder { background: #FFF6E6; border: 1px dashed var(--apricot); border-radius: 6px; padding: .1rem .4rem; font-size: .92em; color: var(--coral-deep); }

/* Contact form ----------------------------------------------------------- */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--sage-soft); border-color: var(--petrol); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--petrol-deep); color: rgba(255,255,255,.82); padding-block: clamp(2.6rem,6vw,4rem) 2rem; margin-top: var(--section-y); }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--apricot); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-grid h4 { color: var(--white); font-family: var(--body); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; display: grid; gap: .5rem; }
.footer-brand .mark { width: 42px; height: 42px; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .95rem; max-width: 30ch; margin-top: .9rem; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .88rem; color: rgba(255,255,255,.62); }

/* Reveal animation (only when JS is active — content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Accessibility / motion ------------------------------------------------- */
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- Sprachmenü (11 Sprachen) --- */
.menu--lang { max-height: 60vh; overflow-y: auto; }

/* --- RTL (Arabisch) --- */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .eyebrow { flex-direction: row-reverse; }
[dir="rtl"] .checklist li { padding-left: 0; padding-right: 1.9rem; }
[dir="rtl"] .checklist li::before { left: auto; right: 0; }
[dir="rtl"] .notice { border-left: 0; border-right: 4px solid #E0A33A; }
[dir="rtl"] .btn-row { justify-content: flex-end; }
[dir="rtl"] .center .btn-row { justify-content: center; }
