/* ============================================================
   aediaevum Stiftung — Gemeinsames Stylesheet
   Farbwelt: gedämpftes Blau (Vertrauen), warmes Off-White
   Typografie: Lora (Display, Serif) + Source Sans 3 (Text)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --blau-tief:      #1A2C4E;
  --blau-mittel:    #2E6DA4;
  --blau-hell:      #6FA0CC;
  --flaeche-hell:   #E8F0FA;
  --flaeche-warm:   #F7F5F0;
  --hintergrund:    #FBFAF8;
  --gruen:          #3A7D44;
  --rot:            #B0413E;
  --text-dunkel:    #1F2937;
  --text-mittel:    #4B5563;
  --text-hell:      #8A94A6;
  --gold:           #A98A4C;
  --weiss:          #FFFFFF;

  --serif: 'Lora', Georgia, serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --gap-section: clamp(4rem, 10vw, 9rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-dunkel);
  background: var(--hintergrund);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--blau-tief);
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blau-mittel);
  margin-bottom: 1.1rem;
  display: block;
}

.display-xl {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.05;
  font-weight: 600;
}

.display-l {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  font-weight: 600;
}

.display-m {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.2;
}

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.6;
  color: var(--text-mittel);
  font-weight: 400;
  max-width: 46ch;
}

p { margin: 0 0 1.1em 0; }

.text-body {
  font-size: 1.08rem;
  color: var(--text-mittel);
  max-width: 62ch;
}

.text-small {
  font-size: 0.92rem;
  color: var(--text-hell);
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 44, 78, 0.08);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.nav-brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--blau-tief);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-mittel);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--blau-tief); }

.nav-cta {
  background: var(--blau-tief);
  color: var(--weiss) !important;
  padding: 0.6rem 1.3rem;
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
}

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

section {
  padding-top: var(--gap-section);
  padding-bottom: var(--gap-section);
}

.section-tight { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.bg-tief   { background: var(--blau-tief); color: var(--flaeche-hell); }
.bg-tief h1, .bg-tief h2, .bg-tief h3 { color: var(--weiss); }
.bg-tief .lede { color: rgba(232, 240, 250, 0.82); }
.bg-tief .text-body { color: rgba(232, 240, 250, 0.78); }

.bg-flaeche { background: var(--flaeche-hell); }
.bg-warm { background: var(--flaeche-warm); }

/* ---------- Ornament / Signatur-Element ---------- */

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.ornament-divider svg { opacity: 0.55; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--blau-tief);
  color: var(--weiss);
}

.btn-primary:hover { box-shadow: 0 8px 24px rgba(26, 44, 78, 0.28); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--blau-tief);
  border: 1.5px solid var(--blau-tief);
}

.btn-on-dark {
  background: var(--weiss);
  color: var(--blau-tief);
}

.btn-on-dark:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.25); transform: translateY(-1px); }

/* ---------- Grids & Cards ---------- */

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--weiss);
  border: 1px solid rgba(26,44,78,0.08);
  border-radius: 6px;
  padding: 2.2rem;
}

.stat-number {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 700;
  color: var(--blau-tief);
  line-height: 1;
}

.bg-tief .stat-number { color: var(--weiss); }

.stat-label {
  margin-top: 0.7rem;
  font-size: 0.98rem;
  color: var(--text-mittel);
  max-width: 28ch;
}

.bg-tief .stat-label { color: rgba(232,240,250,0.75); }

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

.site-footer {
  background: var(--blau-tief);
  color: rgba(232,240,250,0.7);
  padding: 3.5rem 0 2.2rem 0;
  font-size: 0.9rem;
}

.site-footer a { color: rgba(232,240,250,0.85); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(232,240,250,0.15);
}

.footer-grid h4 {
  color: var(--weiss);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-weight: 600;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }

.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: rgba(232,240,250,0.5);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */

.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.kicker-line {
  width: 48px; height: 2px; background: var(--gold); margin-bottom: 1.4rem;
}
.center .kicker-line { margin-left: auto; margin-right: auto; }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.divider-line {
  border: none;
  border-top: 1px solid rgba(26,44,78,0.1);
  margin: 0;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: var(--flaeche-hell);
  color: var(--blau-mittel);
}
