/* ==========================================================================
   Psychotherapie am Salzhof — Stylesheet
   Ruhiges, warmes Design: Creme, Walnussbraun, Salbeigrün, Alt-Rosa.
   ========================================================================== */

/* Lokal eingebundene Schriften (keine externen Google-Fonts-Requests –
   dadurch werden keine Besucher-IPs an Google übertragen, siehe Hinweis
   in datenschutz.html). Beide sind Variable Fonts, ein Schnitt deckt den
   jeweils genutzten Gewichtsbereich ab. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/work-sans-variable.woff2") format("woff2");
}

:root {
  /* Farbpalette (siehe Recherche.md, Abschnitt "Gestaltungskonzept") */
  --color-cream: #F8F3EA;        /* Grundton Hintergrund */
  --color-cream-deep: #EFE6D5;   /* zweiter, etwas dunklerer Flächenton */
  --color-walnut: #3B2E22;       /* Überschriften, Fließtext, Footer */
  --color-walnut-soft: #6B5A47;  /* sekundärer Text */
  --color-sage: #93A17E;         /* Hauptakzent (Flächen, Rahmen, Punkte – nicht für Fließtext) */
  --color-sage-deep: #6E7D5B;    /* Hover/aktiv-Zustand für Sage-Flächen/Rahmen */
  --color-sage-text: #55613F;    /* abgedunkelte Sage-Variante mit ausreichendem Kontrast für Text */
  --color-rose: #E3C7C2;         /* zarter zweiter Akzent, sehr zurückhaltend */
  --color-stone: #DCD4C4;        /* neutrale Flächen, Rahmen, Trennlinien */
  --color-white: #FFFFFF;

  /* Typografie */
  --font-heading: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Abstände */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.75rem;
  --space-l: 3rem;
  --space-xl: 5rem;
  --space-xxl: 7rem;

  /* Layout */
  --content-max: 1160px;
  --content-narrow: 760px;
  --radius: 4px;
}

/* ---- Reset & Basis ------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--color-walnut);
  margin: 0 0 var(--space-s);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 var(--space-s); }

a {
  color: var(--color-walnut);
  text-decoration-color: var(--color-sage-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--color-sage-text); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-sage-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { padding-left: 1.25em; }

/* Skip-Link für Tastaturnutzung */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-walnut);
  color: var(--color-cream);
  padding: 0.6em 1.1em;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---- Layout-Hilfsklassen ------------------------------------------------ */

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

.container--narrow {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

/* Schmale Textspalte, bündig mit dem breiten Container (nicht zentriert) */
.container--narrow > * {
  max-width: calc(var(--content-narrow) - 2 * var(--space-m));
}

.section {
  padding-block: var(--space-xl);
}

.section--deep {
  background: var(--color-cream-deep);
}

.section--walnut {
  background: var(--color-walnut);
  color: var(--color-cream);
}

.section--walnut h1,
.section--walnut h2,
.section--walnut h3 {
  color: var(--color-cream);
}

.section-intro {
  max-width: 640px;
  margin-bottom: var(--space-l);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-sage-text);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--color-stone);
  margin: var(--space-l) 0;
}

.text-muted { color: var(--color-walnut-soft); }

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

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) 0.9rem;
}

.btn-primary {
  background: var(--color-walnut);
  color: var(--color-cream);
}

.btn-primary:hover {
  background: var(--color-sage-text);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-walnut);
  border-color: var(--color-walnut-soft);
}

.btn-ghost:hover {
  border-color: var(--color-sage-deep);
  color: var(--color-sage-text);
}

.section--walnut .btn-primary {
  background: var(--color-cream);
  color: var(--color-walnut);
}

.section--walnut .btn-primary:hover {
  background: var(--color-sage);
  color: var(--color-walnut);
}

.section--walnut .btn-ghost {
  color: var(--color-cream);
  border-color: rgba(248, 243, 234, 0.45);
}

.section--walnut .btn-ghost:hover {
  border-color: var(--color-sage);
  color: var(--color-sage);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-stone);
}

.nav-bar {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-m);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-walnut);
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
}

.site-logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-walnut-soft);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-stone);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-walnut);
  position: relative;
  transition: background 0.15s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--color-walnut);
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }

.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-walnut-soft);
  padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-walnut);
  border-bottom-color: var(--color-sage);
}

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-stone);
    box-shadow: 0 8px 18px -12px rgba(59, 46, 34, 0.35);
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-s) var(--space-m) var(--space-m);
  }

  .main-nav a {
    display: block;
    padding: 0.75em 0.2em;
    border-bottom: 1px solid var(--color-stone);
  }

  .main-nav a[aria-current="page"] { border-bottom-color: var(--color-stone); }
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  gap: var(--space-l);
  align-items: center;
  padding-block: var(--space-xl);
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    padding-block: var(--space-xxl);
  }
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-figure--tall img { aspect-ratio: 2 / 3; }

/* ---- Bild-/Textblöcke, Grids -------------------------------------------- */

.split {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
  }
  .split--reverse .split-figure { order: 2; }
}

.split-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.split-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

figcaption {
  font-size: 0.85rem;
  color: var(--color-walnut-soft);
  margin-top: 0.6em;
}

.split-figure--landscape img {
  aspect-ratio: 4 / 3;
}

.split-figure--tall img {
  aspect-ratio: 2 / 3;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-m);
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery--landscape img { aspect-ratio: 4 / 3; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-m);
}

.card-grid--two {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .card-grid--two { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius);
  padding: var(--space-m);
}

.card h3 { margin-bottom: 0.3em; }

/* ---- Team ---------------------------------------------------------------- */

.team-card {
  background: var(--color-white);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius);
  overflow: hidden;
}

.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-bottom: 1px solid var(--color-stone);
}

.team-card-body { padding: var(--space-m); }

.team-name {
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  margin-bottom: 0.15em;
}

.team-title {
  color: var(--color-walnut-soft);
  font-size: 0.95rem;
  margin-bottom: var(--space-s);
}

.method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-bottom: var(--space-s);
  padding: 0;
  list-style: none;
}

.method-tags li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-sage-text);
  background: rgba(147, 161, 126, 0.18);
  padding: 0.3em 0.7em;
  border-radius: 999px;
}

/* ---- Tabellen (Sprechzeiten, Kostenübernahme) --------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-s) 0 var(--space-m);
}

caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.5em;
}

th, td {
  text-align: left;
  padding: 0.7em 0.9em;
  border-bottom: 1px solid var(--color-stone);
  vertical-align: top;
}

th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-walnut-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Info-/Hinweis-Boxen ------------------------------------------------- */

.notice {
  border: 1px solid var(--color-stone);
  border-left: 4px solid var(--color-sage);
  background: var(--color-cream-deep);
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius);
  margin: var(--space-m) 0;
}

.notice--legal {
  border-left-color: var(--color-rose);
  background: rgba(227, 199, 194, 0.18);
}

.notice p:last-child { margin-bottom: 0; }

/* ---- Ablauf-Schritte & Sprechzeiten (Termine) ------------------------------ */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
}

.step {
  border-left: 2px solid var(--color-sage);
  padding-left: var(--space-m);
}

.step-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-sage-text);
  margin-bottom: var(--space-s);
}

.time-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-walnut-soft);
  margin-bottom: 0.3em;
}

.time {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.1;
  color: var(--color-walnut);
}

.step .time-label { margin-bottom: 0.7em; }
.step .time + p { margin-top: var(--space-s); }
.step h3 + p + h3 { margin-top: var(--space-m); }

/* ---- Karte (Klick-zum-Laden) ---------------------------------------------- */

.map-embed {
  border: 1px solid var(--color-stone);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: var(--space-m);
}

.map-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
}

.map-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--color-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-s);
  padding: var(--space-l);
}

.map-placeholder p {
  max-width: 30em;
  margin: 0;
  color: var(--color-walnut-soft);
  font-size: 0.9rem;
}

/* ---- Kontakt-Kacheln ------------------------------------------------------ */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-s);
}

.contact-list a { font-weight: 600; }

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

.site-footer {
  background: var(--color-walnut);
  color: var(--color-cream-deep);
  padding-block: var(--space-l);
}

.site-footer a {
  color: var(--color-cream-deep);
  text-decoration-color: var(--color-sage);
}

.site-footer a:hover { color: var(--color-white); }

.footer-grid {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

.footer-grid h2 {
  color: var(--color-cream);
  font-size: 1.05rem;
  margin-bottom: 0.6em;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5em;
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(248, 243, 234, 0.15);
  font-size: 0.85rem;
  color: var(--color-stone);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 1.5em;
  justify-content: space-between;
}
