/* ============================================================
   shared.css — Marie Kemper Praxis
   Gemeinsame Styles für alle Seiten (Start + Unterseiten).
   ============================================================ */

/* ---------- FONTS: selbst gehostet statt über Google Fonts nachgeladen (siehe
   assets/) — spart den externen Request an fonts.googleapis.com/.gstatic.com und
   damit die DSGVO-relevante IP-Übertragung an Google. Jeweils zwei Dateien pro Schnitt
   (latin + latin-ext) genügen für deutsche Umlaute/ß/Anführungszeichen; weitere Schriftsysteme
   (kyrillisch, griechisch, vietnamesisch …) werden hier bewusst nicht mitgeladen. */
@font-face {
  font-family: 'Cactus Classical Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/cactus-classical-serif-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cactus Classical Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/cactus-classical-serif-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* Hanken Grotesk ist ein Variable Font (wght-Achse 100–900, siehe fvar-Tabelle) — der
     zusätzliche 'woff2-variations'-Format-Hint vor dem normalen 'woff2' ist nötig, damit
     z. B. Safari die Gewichts-Achse zuverlässig nutzt statt nur die statische
     Default-Instanz (400) zu rendern, egal welches font-weight angefragt wird. Ohne
     diesen Hint kann Text mit font-weight 500/600 dünner aussehen, als er soll. */
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/hanken-grotesk-latin-ext.woff2') format('woff2-variations'),
       url('assets/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/hanken-grotesk-latin.woff2') format('woff2-variations'),
       url('assets/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bordeaux: #A9542E;   /* Terracotta-Akzent für Buttons, Links, Hervorhebungen, aktive Nav */
  --terracotta: #8F4526; /* Hover-Zustand von bordeaux-Elementen, Footer-Hintergrund */
  --sand: #E9E0D1;       /* warmer Sandton für alternierende Section-Flächen */

  /* Kompatibilitäts-Alias für ältere Klassen, die noch --hellblau referenzieren. */
  --hellblau: var(--sand);
  --hellblau-deep: var(--sand);

  /* Haupttextfarbe: schlichtes Anthrazit. */
  --graphite: #333333;
  --ink: var(--graphite);
  --ink-soft: #6B6B6B;
  --ink-faint: #9a9385; /* gedämpfte Meta-/Platzhalter-Texte */

  /* Fest, cremeweiß — body-Grundfarbe, Kartenflächen, Text auf Akzentflächen. */
  --offwhite: #FAF8F3;

  /* Baustellen-Banner ist entfernt, Variable bleibt auf 0 bestehen, da jede Seite ihre
     Header-Abstandswerte weiterhin über calc(... + var(--banner-height)) berechnet. */
  --banner-height: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', sans-serif;
  background: var(--offwhite);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* ---------- SCROLL-REVEAL: Sektionen blenden beim Scrollen ins Bild ein ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- ARROW-LINK: Textlink mit Pfeil, der beim Hover nach rechts wandert ---------- */
.arrow-link { display: inline-flex; align-items: center; gap: 8px; }
.arrow-link .ar { display: inline-block; transition: transform 0.3s ease; }
.arrow-link:hover .ar { transform: translateX(6px); }

.serif { font-family: 'Cactus Classical Serif', 'Fraunces', serif; font-weight: 400; }

/* ---------- HEADER (fixed, immer mit solidem Hintergrund, schrumpft beim Scrollen) ---------- */
header {
  position: fixed;
  top: var(--banner-height); left: 0; right: 0;
  z-index: 100;
  background: var(--offwhite);
  padding: 26px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
/* .hide (nur mobil, siehe include-partials.js) lässt den Header beim Herunterscrollen
   verschwinden; auf Desktop bleibt er permanent stehen. */
header.hide { transform: translateY(-115%); }
header.scrolled {
  padding: 15px 6vw;
  box-shadow: 0 1px 14px rgba(51,51,51,0.08);
}

.logo {
  font-family: 'Cactus Classical Serif', 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--bordeaux);
  letter-spacing: 0.005em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  transition: color 0.25s ease;
}
.logo:hover { color: var(--terracotta); }
.logo span { color: var(--ink-soft); font-size: 0.95rem; font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3; }

nav.mainnav { display: flex; flex-shrink: 0; gap: 32px; list-style: none; align-items: center; }
nav.mainnav a {
  text-decoration: none;
  color: var(--bordeaux);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color 0.25s ease;
}
nav.mainnav a:hover { border-color: rgba(169,84,46,0.4); }
nav.mainnav a.active { font-weight: 600; border-color: var(--bordeaux); }
nav.mainnav a.cta {
  background: var(--bordeaux);
  color: var(--offwhite);
  padding: 9px 20px;
  border-radius: 24px;
  text-transform: none;
  letter-spacing: 0.01em;
  border-bottom: none;
}
nav.mainnav a.cta:hover { background: var(--terracotta); }
nav.mainnav a.cta.active { font-weight: 500; }

/* ---------- BURGER-MENÜ (mobil) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  nav.mainnav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--offwhite);
    box-shadow: 0 16px 28px rgba(51,51,51,0.14);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav.mainnav.open { max-height: 420px; }
  nav.mainnav a {
    padding: 16px 6vw;
    border-bottom: 1px solid rgba(51,51,51,0.08);
    text-align: center;
  }
  nav.mainnav a.active { border-bottom: 1px solid rgba(51,51,51,0.08); }
  nav.mainnav a.cta {
    align-self: center;
    width: 180px;
    margin: 14px 0;
    padding: 12px 20px;
    border-bottom: none;
  }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-block;
  background: var(--bordeaux);
  color: var(--offwhite);
  padding: 13px 28px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(169,84,46,0.55);
}

.btn-ghost {
  display: inline-block;
  border: 1.5px solid var(--bordeaux);
  color: var(--bordeaux);
  padding: 12px 26px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { background: var(--bordeaux); color: var(--offwhite); }

/* ---------- FOTO-PLATZHALTER: ersetzt <img>, behält Größe/Seitenverhältnis des
   jeweiligen Elternelements bei (dasselbe width:100%;height:100% wie die Fotos). ---------- */
.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(233, 224, 209, 0.4);
  border: 1.5px dashed rgba(169, 84, 46, 0.4);
}
.photo-placeholder span {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 28ch;
}

/* ---------- FOTO-TEILER (z. B. zwischen zwei Abschnitten) ---------- */
.photo-divider {
  position: relative;
  height: clamp(308px, 47.6vw, 532px);
  overflow: hidden;
}
.photo-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- FOOTER (Rostbraun, dreispaltig: Praxis/Kontakt · Seiten · Karte) ---------- */
footer {
  background: var(--terracotta);
  color: var(--offwhite);
  text-align: left;
  padding: 74px 6vw 42px;
  position: relative;
}
footer .footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.4fr;
  gap: 56px;
  align-items: start;
}
footer .logo2 {
  font-family: 'Cactus Classical Serif', 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--offwhite);
  letter-spacing: 0.005em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
footer .logo2 span {
  display: block;
  flex-basis: 100%;
  color: rgba(250,248,243,0.72);
  font-size: 0.72rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.5;
  margin-top: 8px;
}
footer .footer-col-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(250,248,243,0.72);
  margin-bottom: 18px;
}
footer nav.footnav { display: flex; flex-direction: column; gap: 13px; list-style: none; }
footer nav.footnav a { color: var(--offwhite); text-decoration: none; font-size: 0.92rem; transition: color 0.25s ease; }
footer nav.footnav a:hover { color: #FFFFFF; }
footer .contact-line { font-size: 0.92rem; margin-bottom: 7px; }
footer .contact-line a { color: var(--offwhite); text-decoration: none; transition: color 0.25s ease; }
footer .contact-line a:hover { color: #FFFFFF; }
footer .footer-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}
footer .footer-map { width: 100%; height: 160px; border: 0; display: block; }
footer .footer-address-placeholder {
  font-size: 0.86rem;
  color: rgba(250,248,243,0.72);
  margin-top: 12px;
}
footer .footer-address-placeholder a {
  color: var(--offwhite);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}
footer .footer-address-placeholder a:hover { color: #FFFFFF; }
footer .footer-bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
footer .legal { font-size: 0.74rem; color: rgba(250,248,243,0.72); }
footer nav.footlegal { display: flex; gap: 18px; list-style: none; }
footer nav.footlegal a { color: rgba(250,248,243,0.72); text-decoration: none; font-size: 0.74rem; }
footer nav.footlegal a:hover { color: #FFFFFF; }

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