/* ============================================================
   Praxis für Psychotherapie – Stylesheet
   Warm & natürliches Design: Creme, Salbeigrün, Terrakotta
   ============================================================ */

/* ---------- Farben & Grundwerte (ein Ort zum Anpassen) ---------- */
:root {
  --bg: #FAF6F0;            /* warmer Creme-Hintergrund */
  --surface: #FFFFFF;       /* Karten & Kontakt-Box */
  --text: #3E3A34;          /* warmer Dunkelgrau-Text */
  --text-muted: #6E675D;    /* sekundärer Text */
  --primary: #356F6E;       /* dunkles Teal-Blau (abgeleitet von #62AAA9) – Überschriften, Links */
  --primary-soft: #62AAA9;  /* helles Teal-Blau – dekorative Flächen */
  --band-bg: #E8F1F0;       /* helles Teal-Band hinter dem Zitat */
  --accent: #A8A17B;        /* warmes Braun – dekorative Akzente */
  --accent-strong: #6E6848; /* dunkleres Braun – Buttons */
  --border: #E8E0D5;        /* feine Linien */
  --header-bg: #3A7574;     /* tieferes Teal-Blau für Header & Footer (Kontrast) */
  --header-text: #FAF6F0;   /* helle Schrift auf Header/Footer */
  --radius: 14px;
  --shadow: 0 6px 24px rgba(62, 58, 52, 0.08);

  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

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

html {
  /* Sanftes Scrollen zu Ankern, mit Abstand für den fixierten Header */
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px – angenehm lesbar */
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}
h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.2rem;
}

a {
  color: var(--primary);
}

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

/* Sichtbarer Fokus für Tastaturnutzer (Barrierefreiheit) */
:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Auf dem blauen Header/Footer wäre der braune Fokus-Ring unsichtbar */
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--header-text);
}

::selection {
  background: rgba(168, 161, 123, 0.25);
}

/* ---------- Layout-Helfer ---------- */
.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Für lesbaren Text (empfohlene Zeilenlänge ~60–70 Zeichen) */
.section .container {
  max-width: 820px;
}

/* ---------- Skip-Link (Barrierefreiheit) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--header-text); /* Creme-Pille, sichtbar auf dem blauen Header */
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(46, 93, 92, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--header-text);
}

.brand-logo {
  width: 32px;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--header-text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--header-text);
  text-decoration: none;
  font-size: 0.95rem;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ---------- Kleine Kapitel-Überschrift über jeder <h2> ---------- */
.overline {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 4.5rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(98, 170, 169, 0.1),
    transparent 70%
  );
}

.hero h1 {
  max-width: 22ch; /* Kopfzeile bleibt pro Zeile kurz */
  margin-inline: auto;
}

.hero-text {
  max-width: 62ch;
  margin-inline: auto;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 1.8rem;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.button:hover {
  background: #5a543c;
  transform: translateY(-2px);
}

/* ---------- Abschnitte ---------- */
.section {
  padding-block: 4rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ---------- Methoden-Karten ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.method-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.method-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.method-card p:last-child {
  margin-block-end: 0;
}

/* Tagline in den Angebots-Karten (Ansatz-Sektion) */
.method-card .card-tagline {
  margin-block: 0 0.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-strong);
}

/* ---------- Schwerpunkt-Band mit Zitat ---------- */
.schwerpunkt {
  background: var(--band-bg);
  border-block: 1px solid var(--border);
}

blockquote {
  margin: 2.5rem 0 0;
  padding-left: 1.75rem;
  border-left: 4px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--primary);
}

/* ---------- Kontakt ---------- */
.kontakt {
  text-align: center;
}

.contact-card {
  max-width: 460px;
  margin-inline: auto;
  margin-top: 2rem;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  font-style: normal; /* <address> stellt sonst kursiv dar */
}

.contact-card p {
  margin-bottom: 0.5rem;
}

.contact-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem !important;
}

.contact-card a {
  color: var(--primary);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
address {
  font-style: normal; /* <address> stellt sonst kursiv dar */
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
}

.back-link:hover {
  color: var(--accent-strong);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  padding-block: 2rem;
  background: var(--header-bg);
  color: var(--header-text);
  border-top: 1px solid rgba(46, 93, 92, 0.4);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--header-text);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

/* ---------- Responsive (mobile zuerst angepasst) ---------- */
@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  /* Auf kleinen Screens ist der umbrechende Header zu hoch zum Anheften */
  .site-header {
    position: static;
  }

  html {
    scroll-padding-top: 1rem;
  }

  .header-inner {
    justify-content: center;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
    gap: 1rem 1.25rem;
  }

  .hero {
    padding-block: 3rem 2.5rem;
  }

  .section {
    padding-block: 3rem;
  }
}

/* ---------- Für Nutzer, die weniger Bewegung möchten ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
