/* ============================================
   Förderverein BSOF – Stylesheet
   ============================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #d22229;
  --red-dark:   #a81920;
  --red-light:  #e83040;
  --cream:      #F5F0E8;
  --cream-dark: #EDE6D8;
  --dark:       #1A1A1A;
  --mid:        #4A4A4A;
  --light:      #9A9A9A;
  --white:      #FFFFFF;
  --border:     #D8D0C4;

  --font-serif:  'EB Garamond', 'Georgia', 'Times New Roman', serif;
  --font-sans:   'Segoe UI', system-ui, -apple-system, sans-serif;

  --nav-h: 72px;
  --section-pad: clamp(60px, 8vw, 120px);
  --max-w: 1200px;
}

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(var(--max-w), 100% - 48px);
  margin-inline: auto;
}

/* ── Typography ── */
h1, h2, h3,
.grusswort-quote,
.footer-col h5,
.ueber-image-badge { font-family: var(--font-serif); line-height: 1.15; }

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
.hero-content h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
p  { font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: var(--mid); }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 1rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--red); }
.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--red);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-logo img { height: 56px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: rgba(255,255,255,0.8);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}
.nav-cta { }
.nav-cta.btn-primary {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.nav-cta.btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
}
.nav-cta-spenden {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.nav-cta-spenden:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 160px;
  overflow: hidden;
  background: var(--dark);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 0.75; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,26,26,0.05) 0%,
    rgba(26,26,26,0.25) 50%,
    rgba(26,26,26,0.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.hero-content .section-label { color: rgba(255,255,255,0.7); }
.hero-logo {
  height: clamp(5rem, 16vw, 8rem);
  width: auto;
  display: block;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}
.hero-content h1 {
  color: var(--white);
  max-width: 800px;
  margin-bottom: 1.25rem;
}
.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Wave Decoration ── */
.wave-deco {
  position: absolute;
  right: -2%;
  top: 8%;
  width: min(48%, 520px);
  opacity: 0.07;
  z-index: 1;
  pointer-events: none;
  color: var(--white);
}
.wave-deco svg { width: 100%; height: auto; }

/* ── Intro Strip ── */
.intro-strip {
  background: var(--red);
  padding: 1.5rem 0;
  color: var(--white);
}
.intro-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.intro-strip p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-style: italic;
}
.intro-strip .btn-outline { font-size: 0.85rem; padding: 0.65rem 1.5rem; }

/* ── Section Shared ── */
section { padding: var(--section-pad) 0; }
.section-header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 640px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin-inline: auto; }
.divider {
  width: 48px; height: 3px;
  background: var(--red);
  margin: 1.25rem 0;
}
.centered .divider { margin-inline: auto; }

/* ── Über uns ── */
.ueber-uns { background: var(--cream); }
.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.ueber-image { position: relative; }
.ueber-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.ueber-image-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--red);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-serif);
  text-align: center;
  line-height: 1.2;
}
.ueber-image-badge em.badge-since {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  display: block;
  margin-bottom: 0.15rem;
}
.ueber-image-badge strong { display: block; font-size: 2.5rem; }
.ueber-image-badge span { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ueber-text p + p { margin-top: 1rem; }
.ueber-text .btn { margin-top: 2rem; }

/* ── Ziele ── */
.ziele { background: var(--white); }
.ziele-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.ziel-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  transition: box-shadow 0.25s, transform 0.25s;
}
.ziel-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.ziel-icon {
  width: 48px; height: 48px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.ziel-icon svg { width: 24px; height: 24px; color: var(--red); }
.ziel-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--dark); }
.ziel-card p { font-size: 0.9rem; }

/* ── Projekte ── */
.projekte { background: var(--cream); }
.projekte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.projekt-card {
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.25s;
  position: relative;
}
.projekt-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.projekt-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-dark);
}
.projekt-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.projekt-card:hover .projekt-card-img img { transform: scale(1.04); }
.projekt-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
}
.projekt-card-img-placeholder svg { width: 48px; height: 48px; color: var(--border); }
.projekt-card-body { padding: 1.75rem; }
.projekt-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.85rem;
}
.projekt-card-body h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.projekt-card-body p { font-size: 0.9rem; margin-bottom: 1.25rem; }
.projekt-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
  text-decoration: none;
}
.projekt-link:hover { gap: 0.7rem; }
/* Stretched link – ::after covers the entire .projekt-card */
.projekt-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ── Mitglied werden ── */
.mitglied { background: var(--dark); color: var(--white); }
.mitglied .section-header h2 { color: var(--white); }
.mitglied .section-label { color: rgba(255,255,255,0.5); }
.mitglied .divider { background: var(--red-light); }

/* ── Beitrittsbereich ── */
.beitritt-fee {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-left: 3px solid var(--red-light);
  padding: 1.5rem;
  margin: 1.75rem 0;
}
.beitritt-fee .fee-amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
}
.beitritt-fee .fee-period { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.beitritt-fee .fee-note { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-top: 0.5rem; }
.beitritt-benefits { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.75rem; }
.beitritt-benefit {
  display: flex; align-items: flex-start; gap: 0.6rem;
  color: rgba(255,255,255,0.75); font-size: 0.9rem;
}
.beitritt-benefit svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--red-light); }

/* ── Spenden ── */
.spenden {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.spenden::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--red-dark), var(--red-light));
}

/* ── Bankverbindung Box ── */
.bank-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 1.5rem;
  margin-top: 2rem;
}
.bank-box h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  gap: 1rem;
}
.bank-row:last-child { border-bottom: none; }
.bank-row .bank-label { color: var(--light); flex-shrink: 0; }
.bank-row .bank-value { font-weight: 600; color: var(--dark); text-align: right; font-family: monospace; letter-spacing: 0.04em; }
.bank-note { font-size: 0.8rem; color: var(--light); margin-top: 1rem; }

/* ── Simple Card Grid (Mitglied / Spenden) ── */
.simple-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.simple-intro {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.info-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2rem;
}
.info-card--light {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 2rem;
}
.info-card--light h3 { color: var(--dark); }
.info-card--light .bank-box { border: none; border-top: none; padding: 0; }

/* ── Grußwort ── */
.grusswort { background: var(--white); }
.grusswort-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.grusswort-person img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 1.25rem;
}
.grusswort-person-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.grusswort-person-placeholder svg { width: 64px; height: 64px; color: var(--border); }
.grusswort-person h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.grusswort-person p { font-size: 0.85rem; }
.grusswort-quote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.6;
  color: var(--dark);
  font-style: italic;
  border-left: 3px solid var(--red);
  padding-left: 2rem;
  margin-bottom: 2rem;
}
.grusswort-text p + p { margin-top: 1rem; }
.grusswort-sig {
  margin-top: 2rem;
  font-style: italic;
  color: var(--mid);
}

/* ── Kontakt ── */
.kontakt { background: var(--cream); }
.kontakt-simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.kontakt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
}
.kontakt-card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.kontakt-card p { font-size: 0.95rem; color: var(--mid); line-height: 1.7; }
.kontakt-card a { color: var(--red); text-decoration: underline; }
.kontakt-card--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.kontakt-card-link {
  display: block;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  word-break: break-all;
  margin-top: 0.5rem;
}
.kontakt-card-link:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.footer-brand img { height: 120px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; max-width: 280px; color: var(--white); }
.footer-col h5 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  font-size: 0.85rem;
  color: var(--white);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: rgba(255,255,255,0.7); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--white); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ziele-grid      { grid-template-columns: repeat(2, 1fr); }
  .projekte-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-top      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--red); padding: 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    gap: 1.25rem; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-cta-group  { display: none; }
  .nav-hamburger  { display: flex; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .ueber-grid, .grusswort-inner,
  .kontakt-simple, .projekte-grid,
  .simple-card-grid { grid-template-columns: 1fr; }

  .ueber-image-badge { bottom: -1rem; right: -0.5rem; }
  .ziele-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .intro-strip-inner { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .footer-top    { grid-template-columns: 1fr; }
  .footer-legal  { flex-direction: column; gap: 0.5rem; }
}
