/* ==========================================================================
   COMPASS e.V. — Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Karla:wght@400;500;600;700&family=Caveat:wght@600;700&display=swap');

:root {
  /* Farben – abgeleitet aus dem Compass-Logo */
  --paper: #f6f4ec;
  --paper-warm: #efece0;
  --card: #fffdf7;
  --ink: #2a2c24;
  --ink-soft: #52564a;
  --sage: #7e9a6c;
  --sage-deep: #59714b;
  --sage-pale: #dde6d3;
  --navy: #263269;
  --navy-deep: #1b2350;
  --sun: #e3a552;
  --sun-pale: #f6e3c4;
  --coral: #d9808a;
  --teal: #6f9c97;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 32px;

  --shadow-soft: 0 18px 40px -24px rgba(38, 50, 105, 0.35);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Caveat', cursive;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p.lead { font-size: 1.15rem; color: var(--ink); }

a { color: var(--navy); text-decoration-color: rgba(38,50,105,0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--navy); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.hand {
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--sage-deep);
  font-size: 1.5em;
  letter-spacing: 0.3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-deep); text-decoration: none; }

.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; text-decoration: none; }

.btn-sun {
  background: var(--sun);
  color: var(--navy-deep);
}
.btn-sun:hover { background: #d99534; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 236, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(38, 50, 105, 0.1);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 40px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { border-bottom-color: var(--sage); }

.nav-wrap { display: flex; align-items: center; gap: 34px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-hand);
  color: var(--sage-deep);
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--sage-deep); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art img {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 30px 40px rgba(38,50,105,0.18));
  animation: driftSpin 40s linear infinite;
}
@keyframes driftSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-warm); }
.section-navy {
  background: var(--navy-deep);
  color: #eef1fb;
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #cdd3ec; }

.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-family: var(--font-hand);
  color: var(--sage-deep);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 2px;
}
.section-navy .kicker { color: var(--sun); }

/* ---------- Vision quote ---------- */
.quote-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--navy-deep);
  margin: 0 0 20px;
  line-height: 1.45;
}
.quote-block cite {
  font-style: normal;
  font-weight: 700;
  color: var(--sage-deep);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* ---------- Compass ways (4-Wege-Layout) ---------- */
.compass-ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    ".    kk    ."
    "fk   mitte jk"
    ".    ek    .";
  gap: 22px;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
}
.way-fk { grid-area: fk; }
.way-jk { grid-area: jk; }
.way-kk { grid-area: kk; }
.way-ek { grid-area: ek; }
.way-mitte {
  grid-area: mitte;
  display: flex;
  align-items: center;
  justify-content: center;
}
.way-mitte img { width: 92px; opacity: 0.92; }

.way-card {
  background: var(--card);
  border: 1px solid rgba(38,50,105,0.1);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.way-card:hover { transform: translateY(-4px); }
.way-card .way-tag {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--sage-deep);
  text-transform: none;
  display: block;
  margin-bottom: 6px;
}
.way-card h3 { margin-bottom: 6px; font-size: 1.2rem; color: var(--navy-deep); }
.way-card p { margin: 0; font-size: 0.94rem; }

/* ---------- Angebot Gruppen ---------- */
.kompass-gruppe {
  border-top: 1px solid rgba(38,50,105,0.14);
  padding: 56px 0;
  scroll-margin-top: 100px;
}
.kompass-gruppe:first-of-type { border-top: none; }
.gruppe-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.gruppe-head h2 { margin: 0; }
.gruppe-head .hand { font-size: 1.3rem; }

.angebot-liste {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.angebot-karte {
  background: var(--card);
  border-radius: var(--radius-m);
  padding: 28px;
  border: 1px solid rgba(38,50,105,0.1);
}
.angebot-karte h3 { margin-bottom: 8px; }
.angebot-karte .format {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--sage-pale);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.team-karte {
  background: var(--card);
  border-radius: var(--radius-m);
  padding: 30px 26px;
  text-align: left;
  border: 1px solid rgba(38,50,105,0.1);
}
.team-karte .fach {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sun-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ---------- Zwei-Spalten ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-l); }

.fact-list { list-style: none; margin: 24px 0 0; padding: 0; }
.fact-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--sage);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ---------- CTA-Banner ---------- */
.cta-banner {
  background: var(--sage-deep);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: #dfe9d5; margin: 0; }
.cta-banner .btn-primary { background: var(--navy-deep); }
.cta-banner .btn-primary:hover { background: #10163a; }

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.kontakt-karte {
  background: var(--card);
  border-radius: var(--radius-m);
  padding: 34px;
  border: 1px solid rgba(38,50,105,0.1);
}
.kontakt-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.kontakt-item .ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sage-deep);
  font-weight: 700;
}
.kontakt-item strong { display: block; color: var(--navy-deep); }

form.kontakt-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 700; font-size: 0.9rem; color: var(--navy-deep); display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-s);
  border: 1.5px solid rgba(38,50,105,0.2);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--sun-pale);
  border-color: var(--sage);
}
textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: -6px; }

/* ---------- Spenden ---------- */
.spenden-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.spenden-karte {
  background: var(--card);
  border-radius: var(--radius-m);
  padding: 32px;
  border: 1px solid rgba(38,50,105,0.1);
}
.spenden-karte h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #cdd3ec;
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #cdd3ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { color: #9fa7cc; max-width: 32ch; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #8b93bd;
}

/* ---------- Utility ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-s);
  z-index: 200;
}
.skip-link:focus { left: 20px; top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 260px; }
  .split, .kontakt-grid, .spenden-grid { grid-template-columns: 1fr; }
  .split-media { order: -1 !important; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .angebot-liste { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    padding: 30px 28px;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav a { display: block; padding: 14px 4px; font-size: 1.15rem; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .compass-ways {
    grid-template-columns: 1fr;
    grid-template-areas: "mitte" "fk" "kk" "jk" "ek";
    max-width: 420px;
  }
  .way-mitte { padding: 10px 0; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-banner { padding: 34px 26px; text-align: left; }
  section { padding: 60px 0; }
  .form-row { grid-template-columns: 1fr; }
}
