/* ==========================================================================
   stil.css – Erika M. Samer, Psychotherapie für Kinder und Jugendliche
   Inhalt:
   1. Schriften
   2. Farben und Grundwerte
   3. Grundlayout
   4. Kopfbereich und Navigation
   5. Startbereich (Hero) und Seitenbanner
   6. Sprungkacheln (Startseite)
   7. Textblöcke und Bild-Text-Reihen
   8. Anlässe-Liste
   9. Praxis / Lebenslauf / Galerie
   10. Kontaktseite
   11. Kontaktband mit Kacheln
   12. Fußbereich
   13. Rechtstexte
   14. Hintergrundbilder
   15. Mobil
   ========================================================================== */

/* === 1. Schriften === */
@font-face { font-family: "Fraunces"; src: url("schriften/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("schriften/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("schriften/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("schriften/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* === 2. Farben und Grundwerte (aus dem Logo abgeleitet) === */
:root {
  --creme: #faf6f0;
  --sand: #f2ebe0;
  --text: #2d2a26;
  --text-leise: #6b645b;
  --blau: #1f8fd0;
  --gruen: #2f9e6a;
  --gelb: #f4b223;
  --orange: #ec7a2a;
  --rot: #e2432e;
  --dunkel: #24313a;
  --rund: 22px;
  --breite: 1160px;
}

/* === 3. Grundlayout === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--creme); color: var(--text); font: 400 17px/1.7 "Inter", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; margin-top: 1.4em; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.innen { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.leit { font-size: 1.15rem; color: var(--text-leise); }
.quelle { display: block; font-size: .85rem; color: var(--text-leise); }
.knopf { display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--dunkel); color: #fff; text-decoration: none; font-weight: 600; transition: transform .2s, background .2s; }
.knopf:hover { background: var(--blau); transform: translateY(-2px); }
.knopf.hell { background: #fff; color: var(--dunkel); }
.abschnitt { padding: 80px 24px; }
.abschnitt.sand { background: var(--sand); padding-left: 0; padding-right: 0; }

/* === 4. Kopfbereich und Navigation === */
.kopf { position: sticky; top: 0; z-index: 10; background: rgba(250, 246, 240, .94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 0, 0, .05); }
.kopf .innen { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.kopf .logo img { height: 56px; width: auto; }
.navi { display: flex; gap: 30px; }
.navi a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; }
.navi a:hover, .navi a.aktiv { color: var(--orange); border-bottom-color: var(--orange); }
.navi-knopf { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--text); }

/* === 5. Startbereich (Hero) und Seitenbanner === */
.hero, .seitenbanner { position: relative; background-size: cover; background-position: center; color: #fff; }
.hero::before, .seitenbanner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 49, 58, .82), rgba(36, 49, 58, .35)); }
.hero .innen, .seitenbanner .innen { position: relative; }
.hero { padding: 110px 0 120px; }
.hero-text { max-width: 720px; }
.hero h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.hero p { font-size: 1.15rem; opacity: .92; }
.hero .knoepfe { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .knopf { background: var(--orange); }
.hero .knopf.hell { background: #fff; }
.seitenbanner { padding: 120px 0 70px; }
.seitenbanner h1 { margin: 0; }

/* === 6. Sprungkacheln (Startseite) === */
.sprungkacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -44px; position: relative; }
.sprungkacheln a { background: #fff; border-radius: 16px; padding: 24px 20px; text-align: center; text-decoration: none; color: var(--text); font-weight: 600; text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; box-shadow: 0 10px 30px rgba(60, 40, 20, .08); border-bottom: 5px solid var(--blau); transition: transform .2s; }
.sprungkacheln a:nth-child(2) { border-bottom-color: var(--gruen); }
.sprungkacheln a:nth-child(3) { border-bottom-color: var(--gelb); }
.sprungkacheln a:nth-child(4) { border-bottom-color: var(--rot); }
.sprungkacheln a:hover { transform: translateY(-3px); }

/* === 7. Textblöcke und Bild-Text-Reihen === */
.abschnitt.innen { max-width: var(--breite); }
.reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 80px; }
.reihe.links img { order: -1; }
.reihe img { border-radius: var(--rund); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 16px 40px rgba(60, 40, 20, .12); }
.textblock { max-width: 820px; margin-bottom: 70px; }
.aufmacher { border-radius: var(--rund); width: 100%; aspect-ratio: 16 / 7; object-fit: cover; margin-bottom: 70px; }

/* === 8. Anlässe-Liste === */
.anlaesse { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
.anlaesse li { position: relative; padding-left: 26px; }
.anlaesse li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }

/* === 9. Praxis / Lebenslauf / Galerie === */
.ueber { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.ueber .portrait { border-radius: var(--rund); width: 100%; position: sticky; top: 120px; box-shadow: 0 16px 40px rgba(60, 40, 20, .12); }
.zeitleiste { list-style: none; padding: 0; margin: 0 0 20px; border-left: 2px solid #e2d7c6; }
.zeitleiste li { padding: 0 0 16px 24px; position: relative; }
.zeitleiste li::before { content: ""; position: absolute; left: -7px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--blau); }
.zeitleiste b { display: block; color: var(--orange); font-size: .9rem; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; }
.galerie img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.galerie img:nth-child(2) { grid-row: span 2; }
.galerie img:last-child { grid-column: 1 / -1; }

/* === 10. Kontaktseite === */
.kontaktseite { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.kontaktseite .portrait { border-radius: var(--rund); width: 100%; }

/* === 11. Kontaktband mit Kacheln === */
.kontaktband { position: relative; background-size: cover; background-position: center; padding: 90px 0; }
.kontaktband::before { content: ""; position: absolute; inset: 0; background: rgba(36, 49, 58, .55); }
.kacheln { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kachel { position: relative; overflow: hidden; border-radius: var(--rund); padding: 36px 30px; min-height: 190px; color: #fff; font-size: 1.1rem; background-size: cover; background-position: center; background-color: rgba(0, 0, 0, .22); background-blend-mode: multiply; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.kachel span { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; margin-bottom: 10px; position: relative; }
.kachel a { color: #fff; position: relative; overflow-wrap: anywhere; }

/* === 12. Fußbereich === */
.fuss { padding: 26px 0; font-size: .9rem; color: var(--text-leise); }
.fuss .innen { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.fuss a { color: var(--text-leise); margin-left: 18px; }

/* === 13. Rechtstexte === */
.recht { max-width: 860px; padding: 70px 24px 90px; margin: 0 auto; }
.recht h2 { font-size: 1.45rem; margin-top: 1.8em; }
.recht h3 { font-size: 1.15rem; }
.umbrechen a { overflow-wrap: anywhere; }

/* === 14. Hintergrundbilder === */
.bild-hero-start { background-image: url("bilder/hero-start.webp"); }
.bild-banner-praxis { background-image: url("bilder/banner-praxis.webp"); }
.bild-banner-patienteninformation { background-image: url("bilder/banner-patienteninformation.webp"); }
.bild-banner-kontakt { background-image: url("bilder/banner-kontakt.webp"); }
.bild-fuss-start { background-image: url("bilder/fuss-start.webp"); }
.bild-fuss-unterseiten { background-image: url("bilder/fuss-unterseiten.webp"); }
.kachel-1 { background-image: url("bilder/kachel-1.webp"); }
.kachel-2 { background-image: url("bilder/kachel-2.webp"); }
.kachel-3 { background-image: url("bilder/kachel-3.webp"); }

/* === 15. Mobil === */
@media (max-width: 900px) {
  .navi { display: none; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--creme); border-bottom: 1px solid #e8dfd2; }
  .navi.offen { display: flex; }
  .navi a { padding: 14px 24px; border-bottom: 0; }
  .navi-knopf { display: block; }
  .kopf .logo img { height: 46px; }
  .sprungkacheln { grid-template-columns: 1fr 1fr; }
  .reihe, .ueber, .kontaktseite { grid-template-columns: 1fr; gap: 32px; }
  .reihe.links img { order: 0; }
  .ueber .portrait { position: static; max-width: 300px; }
  .kontaktseite .portrait { max-width: 300px; }
  .anlaesse, .kacheln { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .hero { padding: 70px 0 90px; }
  .seitenbanner { padding: 80px 0 50px; }
  .abschnitt { padding: 56px 24px; }
  .reihe { margin-bottom: 56px; }
  .aufmacher { aspect-ratio: 3 / 2; }
}
