/* ==========================================================================
   Manuela Reimann – Praxis für Psychosomatische Medizin und Psychotherapie
   Design-System „warme Klarheit“ · Projekt Webseite 2026
   Farbwelt: Warmweiß / Leinen / Sand / Nussbaum / Anthrazit
   Typografie: Cormorant Garamond (Serif) + Source Sans 3 (Sans), lokal gehostet
   ========================================================================== */

/* ---- Schriften (woff2 lokal, SIL Open Font License) ---- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-v21-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-v21-latin-500italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
}

/* ---- Grundwerte ---- */
:root {
  --warmweiss: #F7F4EE;
  --leinen:    #E7DFD2;
  --sand:      #D2C2AC;
  --nussbaum:  #6C4D3B;
  --anthrazit: #343536;
  --text-soft: #5c5d5e;
  --linie:     rgba(52, 53, 54, 0.16);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --container: 71rem;
  --prose: 46rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--sand); }

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

a {
  color: var(--nussbaum);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--anthrazit); }

:focus-visible {
  outline: 2px solid var(--nussbaum);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  margin: 0 0 1rem;
}
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.1875rem;
  max-width: var(--prose);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.prose { max-width: var(--prose); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--anthrazit);
  color: var(--warmweiss);
  padding: 0.6rem 1.2rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  color: var(--warmweiss);
}

/* ---- Header ---- */
.site-header {
  background: var(--warmweiss);
  border-bottom: 1px solid var(--linie);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.35rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.1;
}
.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--linie);
  cursor: pointer;
}
.nav-toggle-line {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--anthrazit);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.site-nav a {
  display: inline-block;
  color: var(--anthrazit);
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.site-nav a:hover { color: var(--nussbaum); }
.site-nav a[aria-current="page"] {
  color: var(--nussbaum);
  border-bottom: 2px solid var(--nussbaum);
  padding-bottom: 2px;
}

/* Desktop: Wortmarke zentriert, Navigation als ruhige Zeile darunter */
@media (min-width: 1101px) {
  .brand-row { justify-content: center; }
  .brand { align-items: center; text-align: center; }
  .site-nav { border-top: 1px solid var(--linie); }
  .site-nav ul {
    justify-content: center;
    gap: 2.4rem;
    padding-block: 0.85rem;
  }
}

/* Mobil/Tablet: Wortmarke links, Burger rechts, Navigation als Panel */
@media (max-width: 1100px) {
  .brand-name { font-size: 1.35rem; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.1em; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; border-top: 1px solid var(--linie); }
  .nav-open .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    padding-block: 0.5rem;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.5rem;
  }
  .site-nav li + li { border-top: 1px solid var(--linie); }
  .site-nav a {
    display: block;
    padding-block: 0.85rem;
    font-size: 1.05rem;
  }
  .site-nav a[aria-current="page"] {
    border-bottom: none;
    padding-bottom: 0.85rem;
  }
  .nav-open .nav-toggle-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-open .nav-toggle-line:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---- Buttons & Auszeichnungen ---- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--anthrazit);
  background: transparent;
  border: 1px solid var(--anthrazit);
  padding: 0.75rem 1.6rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  background: var(--nussbaum);
  border-color: var(--nussbaum);
  color: var(--warmweiss);
}
.btn-solid {
  background: var(--anthrazit);
  color: var(--warmweiss);
}
.btn-solid:hover {
  background: var(--nussbaum);
  border-color: var(--nussbaum);
  color: var(--warmweiss);
}

.badge {
  display: inline-block;
  background: var(--sand);
  color: var(--anthrazit);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
}

/* ---- Abschnitte ---- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-leinen { background: var(--leinen); }

.rule {
  width: 3rem;
  border: 0;
  border-top: 2px solid var(--nussbaum);
  margin: 1.6rem 0;
}
.rule-center { margin-inline: auto; }

/* ---- Startseite: Hero ---- */
.hero {
  display: flex;
  align-items: center;
  min-height: 55vh;
  text-align: center;
  padding-block: clamp(4.5rem, 14vh, 9rem);
}
.hero .container { width: 100%; }
.hero h1 {
  font-weight: 500;
  font-size: clamp(2.7rem, 6.5vw, 4.5rem);
  line-height: 1.12;
  margin: 0 0 1.4rem;
}
.hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--text-soft);
  margin: 0;
}

/* ---- Startseite: Leitgedanken ---- */
.leitgedanken {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.leitgedanke h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.leitgedanke h2::before {
  content: "";
  display: block;
  width: 2rem;
  border-top: 2px solid var(--nussbaum);
  margin-bottom: 1rem;
}
.leitgedanke p { margin: 0; }

/* ---- Startseite: Teaser ---- */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.teaser p { max-width: 34rem; }
.teaser .btn { margin-top: 0.9rem; }

.cta { margin-top: 1.4rem; }

.center { text-align: center; }
.center .lead,
.center .prose { margin-inline: auto; }

/* ---- Bild-Platzhalter (werden gegen finale Fotos getauscht) ---- */
.placeholder {
  background: var(--leinen);
  border: 1px solid var(--sand);
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
}
.section-leinen .placeholder { background: var(--warmweiss); }
.placeholder span {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
  padding: 1rem;
}
.placeholder-wide { aspect-ratio: 16 / 9; }
.placeholder-tall { aspect-ratio: 4 / 5; }

/* ---- Eingebaute Fotos ---- */
.foto { width: 100%; }
.foto-zentriert {
  max-width: var(--prose);
  margin-inline: auto;
}
/* Hochformat ruhiger einbinden, damit es neben Text nicht dominiert */
.foto-hoch {
  display: block;
  max-width: 22rem;
  margin-inline: auto;
}

/* ---- Text + Bild nebeneinander ---- */
.media-text {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.media-text > figure { align-self: center; }

/* ---- Unterseiten ---- */
.page-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 {
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin: 0 0 1.2rem;
}
.page-hero .badge { margin-bottom: 1.4rem; }
.page-hero .lead { margin-bottom: 0; }

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  color: var(--nussbaum);
  max-width: var(--prose);
  margin-block: 2rem 0;
}

.subsection + .subsection { margin-top: 2.5rem; }

/* ---- Kontakt ---- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.kontakt-details p { margin-bottom: 1.4rem; }
.kontakt-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.15rem;
}
.kontakt-wert {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
}
.kontakt-wert a { text-decoration: none; color: var(--anthrazit); }
.kontakt-wert a:hover { color: var(--nussbaum); }
.sprechzeit-panel {
  background: var(--leinen);
  border: 1px solid var(--sand);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.sprechzeit-panel h2 { font-size: 1.5rem; }
address { font-style: normal; }

/* ---- Footer ---- */
.site-footer {
  background: var(--leinen);
  border-top: 1px solid var(--sand);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 2.5rem;
  padding-block: 3.25rem 2.5rem;
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.8rem;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.site-footer a { color: var(--anthrazit); }
.site-footer a:hover { color: var(--nussbaum); }
.footer-bottom {
  border-top: 1px solid var(--sand);
  padding-block: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ---- Dezentes Einblenden (nur mit JS aktiv, respektiert reduced motion) ---- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .leitgedanken { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .media-text { grid-template-columns: 1fr; }
  .media-text > figure { order: -1; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: 45vh; }
}
