/* Don Bosco International – Interimsseite
   Schrift (Albert Sans) lokal eingebunden (keine Verbindung zu Google). Lizenz: SIL OFL, siehe /fonts */

@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/albert-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/albert-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/albert-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/albert-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Markenfarben aus dem Brief */
  --lila: #5d328a;
  --lila-dunkel: #47256b;
  --lila-hell: #efe9f5;
  --blau: #00649b;
  --creme: #f6f5ed;
  --graublau: #dde5ea;
  --graublau-tief: #cdd8df;

  /* Text und Linien (aus der Claude-Vorlage, warm getönt) */
  --ink: #1f1d24;
  --body: #3b3940;
  --muted: #65626b;
  --hairline: #d9d5c9;
  --weiss: #ffffff;

  --sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --text: 680px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--lila); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lila-dunkel); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 3px; }

strong { color: var(--ink); font-weight: 700; }

h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.4rem); line-height: 1.12; }
h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 700; line-height: 1.35; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--weiss); padding: 8px 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lila);
  margin-bottom: 14px;
}

/* ---------- Kopf ---------- */
.kopf { background: var(--graublau); padding: clamp(32px, 5vw, 72px) 0 clamp(8px, 2vw, 24px); }
/* Wortmarke links in der Inhaltsflucht, Logo groß rechts, beides auf gleicher Mitte */
.kopf .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.marke { text-decoration: none; display: block; }
.marke picture { display: block; }
.marke-name {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  color: var(--lila);
  letter-spacing: -0.01em;
}
.marke-claim { display: block; width: clamp(250px, 44vw, 530px); margin-top: 8px; }
.logo { width: clamp(120px, 24vw, 340px); flex-shrink: 0; }
.welle.kopf-welle { margin-bottom: -1px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 100px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero .foto { margin-top: 10px; }
.hero h1 em { font-style: normal; color: var(--lila); }
.hero .lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.55; margin-top: 24px; max-width: 34em; }
.beruhigung {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--lila);
  background: var(--graublau);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: 1.0625rem;
}

/* Foto mit weißem Rand wie im Brief */
.foto { margin: 0; }
.foto .rahmen {
  background: var(--weiss);
  padding: clamp(8px, 1.2vw, 12px);
  box-shadow: 0 1px 2px rgba(31, 29, 36, 0.06), 0 12px 32px -12px rgba(31, 29, 36, 0.22);
  transform: rotate(1.2deg);
}
.foto.links .rahmen { transform: rotate(-1.2deg); }
.foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.foto figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 14px; text-align: right; }
.foto.links figcaption { text-align: left; }
/* Link zu donbosco.de mit Logo, unter dem Freetown-Foto */
.partner { display: flex; align-items: center; gap: 20px; margin-top: clamp(32px, 4vw, 48px); padding: 20px 24px; background: var(--creme); border-radius: var(--radius); text-decoration: none; color: var(--body); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.partner:hover { color: var(--body); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(31, 29, 36, 0.35); }
.partner picture { flex: 0 0 84px; }
.partner img { width: 84px; height: auto; }
.partner span { font-size: 0.9375rem; line-height: 1.5; }
.partner strong { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 4px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.abschnitt.blau { background: var(--graublau); }
.abschnitt.weiss { background: var(--weiss); }
.welle { display: block; width: 100%; height: clamp(24px, 4vw, 48px); }
.welle path { fill: var(--graublau); }
.welle.unten { transform: scaleY(-1); }
.abschnitt-kopf { max-width: var(--text); margin-bottom: clamp(32px, 4vw, 48px); }
.abschnitt-kopf p { margin-top: 16px; font-size: 1.125rem; }

.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.fliesstext { max-width: var(--text); }
.fliesstext p { font-size: 1.0625rem; }

/* ---------- Was bleibt / was neu ist ---------- */
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 56px); }
.karte { background: var(--creme); border-radius: var(--radius); padding: 24px; border: 1px solid rgba(31, 29, 36, 0.06); }
.karte h3 { margin-bottom: 8px; }
.karte p { font-size: 0.98rem; color: var(--body); }

/* ---------- Termine ---------- */
.termine { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.termin {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 8px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.termin-datum { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; font-size: 1.6rem; line-height: 1.1; color: var(--lila); font-variant-numeric: tabular-nums; }
.termin h3 { margin-bottom: 6px; }
.termin p { color: var(--body); max-width: 36em; }
.termin-marke {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--lila-hell); color: var(--lila);
}
.termin-marke:empty { display: none; }
.termin.vorbei .termin-datum, .termin.vorbei h3 { color: var(--muted); }
.termin.vorbei .termin-marke { background: #ebe8df; color: var(--muted); }

/* ---------- Kontaktkasten ---------- */
.kasten { background: var(--weiss); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); border: 1px solid rgba(31, 29, 36, 0.06); }
.kasten h3 { font-size: 1.4rem; letter-spacing: -0.015em; margin-bottom: 12px; }
/* Daten | Dauerauftrag nebeneinander, Kontakt darunter links */
.kaesten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.adresse { font-style: normal; line-height: 1.6; }
.konto { margin: 20px 0; font-variant-numeric: tabular-nums; }
.knopf {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 13px 22px;
  background: var(--lila); color: var(--weiss);
  border-radius: 999px; text-decoration: none; font-weight: 500;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.knopf:hover { background: var(--lila-dunkel); color: var(--weiss); }
.knopf:active { transform: scale(0.98); }
.knopf svg { width: 18px; height: 18px; }
.klein { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Dank ---------- */
.dank .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.unterschrift { width: 220px; margin: 28px 0 8px; }
.signatur-name { font-weight: 700; color: var(--ink); }
.signatur-rolle { font-size: 0.9375rem; color: var(--muted); }
.signatur-rolle span { color: var(--lila); }

/* Nach Ablauf per data-bis ausgeblendete Elemente */
[data-bis][hidden] { display: none !important; }

/* ---------- Fuß ---------- */
.fuss { background: var(--lila); color: #e4d9ef; padding: 56px 0 40px; font-size: 0.9375rem; }
.fuss a { color: var(--weiss); text-decoration: none; }
.fuss a:hover { color: var(--weiss); text-decoration: none; opacity: 0.8; }
.fuss-raster { display: grid; grid-template-columns: auto auto 1fr; gap: 32px 72px; }
.fuss-kontakt { justify-self: end; }
.fuss h3 { color: var(--weiss); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; margin-bottom: 12px; }
.fuss p { margin: 0; line-height: 1.7; }
.fuss-unten { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.fuss-unten nav { display: flex; gap: 20px; }

/* ---------- Rechtstexte ---------- */
.recht { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.recht .wrap { max-width: calc(var(--text) + 2 * var(--gutter)); }
.recht h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 32px; }
.recht h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.recht h3 { margin: 28px 0 8px; }
.recht ul { padding-left: 1.2em; margin: 0 0 1em; }
.recht li { margin-bottom: 6px; }
.zurueck { display: inline-block; margin-bottom: 28px; font-weight: 500; text-decoration: none; }
.zurueck:hover { text-decoration: underline; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .hero .wrap, .zwei, .dank .wrap { grid-template-columns: minmax(0, 1fr); }
  .karten { grid-template-columns: minmax(0, 1fr); }
  .kaesten { grid-template-columns: minmax(0, 1fr); }
  .fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss-kontakt { justify-self: start; }
  .termin { grid-template-columns: minmax(0, 1fr) auto; }
  .termin-datum { grid-column: 1; }
  .termin-marke { grid-column: 2; grid-row: 1; }
  .termin > div { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .kopf .wrap { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .logo { width: 120px; }
  .fuss-raster { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .welle { display: none; }
  body { background: #fff; }
}
