/* ==========================================================================
   MF-Stiftung – zentrales Stylesheet
   Wird von allen Seiten eingebunden: <link rel="stylesheet" href="styles.css">
   Änderungen hier wirken sich automatisch auf die gesamte Website aus.
   ========================================================================== */

:root {
  /* Palette abgeleitet aus dem Hero-Foto: kühles Nebel-Blaugrau + warmer
     Mantel-/Bankton, ergänzt um Gold- und Korallentöne als "Hoffnungs"-Akzente. */
  --teal: #3D5A6C;
  --teal-dark: #28404E;
  --gold: #D9A441;
  --gold-light: #F0C766;
  --terracotta: #D97B5D;
  --cream: #F8F6F3;
  --cream-alt: #EFEAE1;
  --ink: #2B3238;
  --ink-soft: #5C6570;
  --line: #E3DED3;
  --radius: 14px;
  --max: 1100px;

  /* Basis-Schriftgröße der ganzen Seite. 100% = Browser-Standard (meist 16px).
     Da viele Besucher:innen der Stiftung älter sind, ist hier bewusst größer
     als üblich eingestellt. Einfach diesen einen Wert ändern, um die Schrift
     auf der GESAMTEN Website zu vergrößern oder verkleinern
     (z. B. 100% = kompakter, 125% = noch größer). */
  --base-font-size: 112.5%; /* entspricht ca. 18px statt der üblichen 16px */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: var(--base-font-size);
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--teal-dark);
}

p { margin: 0 0 1em; }

a { color: var(--teal); }

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

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 16px;
}

.logo {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--teal-dark);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--gold); }

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

nav a:hover, nav a:focus-visible {
  background: var(--cream-alt);
  color: var(--teal-dark);
}

nav a.active {
  background: var(--teal);
  color: #fff;
}

/* Eyebrow (kleiner Überschriften-Vorspann), seitenweit verwendet */
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(45, 106, 106, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(45, 106, 106, 0.3); }

.btn-ghost {
  background: transparent;
  color: var(--teal-dark);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--cream-alt); }

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ==========================================================================
   Startseiten-Hero (Foto-Hero mit Text-Overlay)
   ========================================================================== */

.hero { padding: 0; }

.hero-media {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  display: flex;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 38%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--cream) 0%,
    rgba(248, 246, 243, 0.95) 20%,
    rgba(248, 246, 243, 0.62) 42%,
    rgba(248, 246, 243, 0.12) 64%,
    rgba(248, 246, 243, 0) 80%
  );
}

.hero-glow {
  position: absolute;
  top: -8%;
  right: 6%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.4) 0%, rgba(217, 164, 65, 0) 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  min-height: inherit;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 520px;
  padding: 96px 0;
}

.hero-caption {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.75;
}

.hero h1 { font-size: clamp(2rem, 4vw, 2.7rem); }

.hero .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ==========================================================================
   Kompakter Seitenkopf (Unterseiten ohne Foto-Hero)
   ========================================================================== */

.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-bottom: 14px;
}
.page-header .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 0;
}

/* Seitenkopf-Variante mit Bild/Dokument neben dem Text (z. B. Satzung) */
.page-header-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: center;
}

/* "Papier"-Karte für eingescannte Dokumente/Urkunden
.document-card {
/*   background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px; */
/*   box-shadow: 0 16px 30px rgba(43, 50, 56, 0.16); */
  transform: rotate(-1.4deg);
  max-width: 260px;
  margin: 0 auto;
}
.document-card img {
  width: 100%;
  display: block;
  border-radius: 3px;
}
.document-caption {
  text-align: left;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Satzung: Inhaltsverzeichnis & §-Gliederung
   ========================================================================== */

.toc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 12px;
}
.toc-card h2 { font-size: 1.15rem; margin-bottom: 16px; }
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}
.toc-list li { break-inside: avoid; margin-bottom: 10px; }
.toc-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.toc-list a:hover { color: var(--teal); text-decoration: underline; }
.toc-list .toc-num { color: var(--teal-dark); font-weight: 600; margin-right: 6px; }

/* ==========================================================================
   Kontakt & Impressum: Info-Karten
   ========================================================================== */

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 520px;
}

.info-rows {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.info-rows .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.info-rows .value {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
}
.info-rows a { color: var(--teal); text-decoration: none; }
.info-rows a:hover { text-decoration: underline; }

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-row .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-alt);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-alt);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.legal-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section .kicker {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
}
.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.legal-section > p {
  color: var(--ink-soft);
  max-width: 72ch;
}

.legal-list {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  max-width: 72ch;
}
.legal-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--ink-soft);
}
.legal-item .marker {
  flex: 0 0 auto;
  min-width: 1.8em;
  font-weight: 600;
  color: var(--teal-dark);
}
.legal-item .text { flex: 1; }

.legal-sublist {
  list-style: none;
  margin: 12px 0 0;
  padding-left: 32px;
}
.legal-sublist .legal-item { margin-bottom: 12px; }

.legal-bullets {
  margin: 12px 0 16px;
  padding-left: 0;
  list-style: none;
  max-width: 72ch;
}
.legal-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.legal-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.signature-block {
  margin-top: 8px;
  padding: 28px 32px;
  background: var(--cream-alt);
  border-radius: var(--radius);
}
.signature-block p { color: var(--ink-soft); margin-bottom: 0.6em; }
.signature-block p:last-child { margin-bottom: 0; }
.signature-block .place-date { font-weight: 600; color: var(--ink); }
.signature-block .amendment { font-size: 0.9rem; font-style: italic; }

.back-to-top {
  display: inline-block;
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.back-to-top:hover { color: var(--teal); }

/* ==========================================================================
   Sections, Karten, Listen
   ========================================================================== */

section { padding: 56px 0; }

.section-alt {
  background: var(--cream-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 32px;
}

/* Trust-Box: Icon + Text nebeneinander (z. B. Startseite) */
.trust-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.trust-box h2 { margin-bottom: 6px; font-size: 1.4rem; }
.trust-box p:last-child { margin-bottom: 0; }
.trust-box .trust-icon { width: 56px; height: 56px; font-size: 1.6rem; }

/* Trust-Card: Icon über dem Text, eigenständige Karte (z. B. Transparenz-Seite) */
.trust-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
}
.trust-card h2 { font-size: 1.3rem; margin-bottom: 10px; }
.trust-card p:last-child { margin-bottom: 0; }
.trust-card .trust-icon { margin-bottom: 16px; }

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card .tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.97rem; }
.card .signature {
  margin-top: 14px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.card.condolence { border-left: 4px solid var(--terracotta); }
.card.people { border-left: 4px solid var(--teal); }
.card.tip { border-left: 4px solid var(--gold); }
.card.donate { border-left: 4px solid var(--terracotta); }

.people-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.people-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.people-list li:last-child { border-bottom: none; }
.people-list strong { color: var(--ink); }

/* Startseite: Stiftungsgeschichte */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.story-grid p { color: var(--ink-soft); }

.highlight-box {
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
}
.highlight-box h3 { color: #fff; font-size: 1.15rem; margin-bottom: 10px; }
.highlight-box p { color: rgba(255,255,255,0.9); margin-bottom: 0; }

.timeline {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 22px 24px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--cream);
}
.timeline strong { display: block; color: var(--ink); }

/* ==========================================================================
   Transparenz-Seite: Spendenkonto, Gründungsmitglieder, Stifter-Porträt
   ========================================================================== */

.bank-card {
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
}
.bank-card h2 { color: #fff; font-size: 1.3rem; margin-bottom: 18px; }
.bank-lines { display: flex; flex-direction: column; gap: 16px; }
.bank-lines .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 4px;
}
.bank-lines .value {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  word-break: break-word;
}
.bank-name {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.people-heading {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 44px;
}
.people-heading p { color: var(--ink-soft); margin-bottom: 0; }

.founding-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 56px;
}
.founding-card p.intro { padding: 0 4px; color: var(--ink-soft); }
.founding-card img {
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  display: block;
  margin: 16px 0;
}
.founding-caption { padding: 0 4px; font-size: 0.92rem; color: var(--ink-soft); }
.founding-caption strong { color: var(--ink); }
.founding-caption .note {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.85;
}

.bio-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
}
.bio-grid img.portrait {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3 / 4;
  box-shadow: 0 10px 24px rgba(43, 50, 56, 0.14);
}
.bio-grid h3 { font-size: 1.35rem; margin-bottom: 4px; }
.bio-grid .role {
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: 14px;
}
.bio-grid p { color: var(--ink-soft); }
.bio-grid h4 {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  margin: 28px 0 10px;
}

.contact-note {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--cream-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--terracotta);
}
.contact-note p { margin-bottom: 0; color: var(--ink-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 24px;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
footer nav ul { flex-wrap: wrap; }
footer nav a { color: rgba(255,255,255,0.85); }
footer nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   Responsive: Tablet & Smartphone
   ========================================================================== */

@media (max-width: 820px) {
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  nav ul { gap: 2px; }
  nav a { padding: 6px 10px; font-size: 0.9rem; }

  .trust-box { grid-template-columns: 1fr; text-align: left; }
  .story-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-grid img.portrait { width: 140px; aspect-ratio: 3 / 4; }

  .hero-media { min-height: 560px; }
  .hero-photo { object-position: 74% center; }
  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(248, 246, 243, 0.25) 0%,
      rgba(248, 246, 243, 0.55) 42%,
      rgba(248, 246, 243, 0.97) 68%,
      var(--cream) 100%
    );
  }
  .hero-inner { align-items: flex-end; }
  .hero-text { max-width: 100%; padding: 0 0 40px; }

  .page-header-grid { grid-template-columns: 1fr; gap: 28px; }
  .document-card { max-width: 220px; }

  .toc-list { columns: 1; }
  .legal-item { gap: 10px; }
  .legal-sublist { padding-left: 20px; }
}

/* ==========================================================================
   Druckansicht (z. B. für die Satzung)
   ========================================================================== */

@media print {
  header, footer, .toc-card, .back-to-top { display: none; }
  body { background: #fff; }
  .hero-scrim, .hero-glow { display: none; }
  a { color: inherit; text-decoration: none; }
  .legal-section { border-bottom: none; padding: 14px 0; }
  section { padding: 8px 0; }
}
