/* ==========================================================================
   Förderverein FF Ohlstedt e.V. – Basis-Stylesheet
   Reduziertes, modernes Design (Apple-inspiriert) mit Feuerwehr-Rot als Akzent
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-text: #1d1d1f;
  --color-text-muted: #6e6e73;
  --color-border: #d2d2d7;
  --color-red: #af2b1e;
  --color-red-dark: #8f2118;
  --color-red-light: #c73427;
  --color-black: #0b0b0c;

  --nav-height: 64px;
  --max-width: 1180px;
  --radius: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ---------------------------------------------------------------- Typografie */

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

p {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 12px;
}

/* -------------------------------------------------------------- Navigation */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s var(--ease);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav__brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
  padding: 6px 2px;
  position: relative;
}

.nav__links a:hover {
  opacity: 1;
}

.nav__links a.is-active {
  opacity: 1;
  color: var(--color-red);
}

.nav__cta {
  background: var(--color-red);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 980px;
  font-weight: 600;
  font-size: 0.88rem !important;
  opacity: 1 !important;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav__cta:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ------------------------------------------------------------------- Hero */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background:
    radial-gradient(circle at 15% 20%, rgba(175, 43, 30, 0.10), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(175, 43, 30, 0.08), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  position: relative;
  overflow: hidden;
}

.hero__content {
  max-width: 760px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--color-red);
}

.hero p.lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 620px;
  margin-bottom: 36px;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 980px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s var(--ease);
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--color-red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(175, 43, 30, 0.28);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------- Sections */

.section {
  padding: clamp(72px, 10vw, 140px) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-black);
  color: #fff;
}

.section--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section__head {
  max-width: 680px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section__head.center {
  margin-inline: auto;
  text-align: center;
}

/* --------------------------------------------------------------- Grid/Cards */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(175, 43, 30, 0.1);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 1rem;
}

/* Dark cards on section--dark */
.section--dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.section--dark .card__icon {
  background: rgba(175, 43, 30, 0.25);
  color: #ff6a5a;
}

/* ------------------------------------------------------------------ Notice */

.notice {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
}

.notice strong {
  color: var(--color-text);
}

/* ---------------------------------------------------------------- Persons */

.person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.person__badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.person__name {
  font-weight: 600;
  font-size: 1.05rem;
}

.person__role {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------------- CTA */

.cta {
  text-align: center;
  padding: clamp(72px, 10vw, 120px) 0;
  background: linear-gradient(135deg, var(--color-black), #1c1c1e);
  color: #fff;
}

.cta h2 {
  margin-bottom: 18px;
}

.cta p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.cta .button-row {
  justify-content: center;
}

/* ---------------------------------------------------------------- Footer */

.footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer__brand {
  max-width: 320px;
}

.footer__brand .nav__brand {
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.9rem;
}

.footer__cols {
  display: flex;
  gap: clamp(32px, 6vw, 72px);
  flex-wrap: wrap;
}

.footer__col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col a {
  font-size: 0.92rem;
  color: var(--color-text);
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}

.footer__col a:hover {
  opacity: 1;
  color: var(--color-red);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------- Legal page */

.legal {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 96px;
}

.legal .container {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal p, .legal li {
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 12px;
}

.legal a {
  color: var(--color-red);
  text-decoration: underline;
}

/* --------------------------------------------------------------- Reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* -------------------------------------------------------------- Responsive */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    padding: 16px clamp(20px, 5vw, 48px) 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease);
  }

  .nav__links a {
    width: 100%;
    padding: 12px 0;
  }

  .nav.is-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav.is-open .nav__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav.is-open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.is-open .nav__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .grid, .grid--2 {
    grid-template-columns: 1fr;
  }

  .footer__top {
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #000000;
    --color-bg-alt: #111113;
    --color-text: #f5f5f7;
    --color-text-muted: #a1a1a6;
    --color-border: #2c2c2e;
    --color-black: #f5f5f7;
  }

  .nav {
    background: rgba(0, 0, 0, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .nav__links {
    background: rgba(0, 0, 0, 0.96);
  }

  .hero {
    background:
      radial-gradient(circle at 15% 20%, rgba(175, 43, 30, 0.18), transparent 45%),
      radial-gradient(circle at 85% 0%, rgba(175, 43, 30, 0.14), transparent 40%),
      linear-gradient(180deg, #000000 0%, #0b0b0c 100%);
  }

  .card {
    background: #0b0b0c;
  }

  .cta {
    background: linear-gradient(135deg, #f5f5f7, #d2d2d7);
    color: #0b0b0c;
  }

  .cta p {
    color: rgba(11, 11, 12, 0.7);
  }

  .btn--secondary {
    color: var(--color-text);
  }

  .section--dark {
    background: #0b0b0c;
  }
}
