/* =========================================================
   Malena Alexander – Kinder- & Jugendlichenpsychotherapie
   Mobile First · dezentes Beige mit freundlichem Grün
   ========================================================= */

/* ---------- Selbst gehostete Schriften (DSGVO-konform) ----------
   Keine Verbindung zu Google-Servern. Variable Fonts:
   eine Datei deckt den gesamten Gewichtsbereich ab. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --beige:        #ffffff;  /* Hintergrund */
  --beige-soft:   #f7f5f0;  /* helle Flächen / Karten */
  --beige-deep:   #e6e2d9;  /* Abgrenzungen */
  --green:        #749E84;  /* Akzent (Buttons, Eyebrow) */
  --green-dark:   #44514f;  /* Überschriften & Marke (warmes Teal-Grau) */
  --green-deep:   #638670;  /* dunkles Grün für Button-Hover */
  --ink:          #3f4a49;  /* Fließtext (Teal-Grau) */
  --ink-soft:     #6c716f;  /* Sekundärtext */
  --white:        #ffffff;

  --radius:       16px;
  --shadow:       0 10px 30px rgba(77, 122, 94, 0.12);
  --maxw:         1080px;
  --font-body:    "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head:    "Lato", var(--font-body);
}

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

html { scroll-behavior: smooth; }

/* Offset jump targets so the sticky header doesn't cover headings */
section[id] { scroll-margin-top: 50px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--green-dark);
  margin: 0 0 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.narrow { max-width: 680px; }

.section { padding: 3rem 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige-deep);
}

.page-content {
  overflow-x: clip;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 64px;
}
.hidden { display: none; }

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-dark);
}
.brand:hover { text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-nav a { font-weight: 600; color: var(--ink); }

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--green-deep); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  display: none;
}

@media (max-width: 599px) {
  .btn-primary { display: inline-block; }
}
.btn-primary:hover {
  background: var(--green-deep);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--beige-soft), var(--beige));
  padding: 1.5rem 0 3rem;
}
.hero-inner { display: grid; gap: 2rem; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--green-dark);
  margin: 0 0 0.5em;
}
.lead { font-size: 1.15rem; color: var(--ink); }
.hero-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Porträt */
.hero-portrait { margin: 0; text-align: center; }
.portrait-photo {
  object-fit: cover;
  object-position: center 25%;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
}
.portrait-photo span { font-weight: 700; font-size: 1.1rem; }
.portrait-photo small { color: var(--ink-soft); }
.hero-portrait figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Abwechselnde Sektions-Hintergründe ----------
   Standard ist weiß (Body-Hintergrund). Sektionen mit
   .section--tint bekommen die helle Greige-Fläche.
   Einfach abwechselnd vergeben, dann alterniert es sauber. */
.section--tint { background: var(--beige-soft); }

/* ---------- Über mich / Leistung ---------- */

.service-card {
  background: var(--white);
  border: 1px solid var(--beige-deep);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  Margin-bottom: 1.5rem;
}
.service-card h3 { color: var(--green-dark); }
.service-card p { margin-bottom: 0; }

/* ---------- Foto-Trenner ---------- */
.photo-divider {
  width: 100%;
  padding: 0 1rem 2rem;
}
.photo-divider img {
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 40px;
  mask-image: radial-gradient(ellipse 90% 75% at center, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at center, black 50%, transparent 100%);
}

@media (max-width: 599px) {
  .photo-divider {
    padding: 0 0 0rem;
    margin-inline: -1.25rem;
    width: calc(100% + 2.5rem);
  }
  .photo-divider img {
    border-radius: 0 0 40px 40px;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    object-position: 50% 50%;
    height: 200px;
    object-fit: cover;
  
  }
}

/* ---------- Galerie ---------- */
.gallery-section { background: var(--beige-soft); }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.gallery-item { margin: 0; text-align: center; }
.img-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--beige-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: var(--shadow);
}
.gallery-item figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Kontakt ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

/* Notiz-Zeile innerhalb einer Kontakt-Karte */
.contact-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Erstkontakt-Hinweis als eigener Karten-Block */
.contact-hint {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1px solid var(--beige-deep);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.contact-hint h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.contact-hint > p { margin: 0; }
.contact-info {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}
.contact-info li { margin-bottom: 0.35rem; }
.contact-hint-foot {
  font-weight: 600;
  color: var(--green-dark);
}
.contact-list li {
  background: var(--white);
  border: 1px solid var(--beige-deep);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.contact-list span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.contact-list address { font-style: normal; }

.contact-list li { position: relative; }

.maps-link {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  display: flex;
  align-items: center;
  padding: 0.2rem;
}
.maps-link:hover { color: var(--green-deep); }

/* ---------- Footer / Impressum ---------- */
.site-footer {
  background: var(--green);
  color: #ffffff;
  padding: 2.5rem 0 1.5rem;
}
.site-footer strong {
  display: block;
  font-family: var(--font-head);
  color: var(--white);
  margin-bottom: 0.4rem;
}
.site-footer p { font-size: 0.9rem; color: #ffffff; }
.footer-hours { font-size: 0.78rem; color: #ffffff; }
.footer-inner { display: grid; gap: 1.75rem; }

.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { color: #ffffff; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--white); }

/* Phone/email links in footer text look like plain text */
.site-footer p a { color: inherit; text-decoration: none; }
.site-footer p a:hover { color: var(--white); }

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #ffffff;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal { padding: 2.5rem 0 4rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}
.legal p { color: var(--ink); }
.legal .muted { color: var(--ink-soft); font-size: 0.9rem; }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* =========================================================
   Timeline – Behandlungsverlauf
   ========================================================= */

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.25rem 0;
}

/* Durchgehende vertikale Linie */
.timeline::before {
  content: '';
  position: absolute;
  left: 11px; /* Mitte der 24px-Spalte: 24/2 - 1px (halbe Linienbreite) */
  top: calc(1.5rem + 6px);   /* Mitte des ersten Punkts */
  bottom: calc(1.5rem + 6px); /* Mitte des letzten Punkts */
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--beige-deep) 6%,
    var(--beige-deep) 94%,
    transparent 100%
  );
  border-radius: 1px;
  z-index: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-left {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--beige-deep);
  flex-shrink: 0;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
}

.timeline-dot.active {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.4);
  animation: tl-pulse 2.4s ease-in-out infinite;
}

@keyframes tl-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(116, 158, 132, 0.18), 0 0 0 0px rgba(116, 158, 132, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(116, 158, 132, 0.06), 0 0 12px 2px rgba(116, 158, 132, 0.12);
  }
}

/* Hinweise-Block unterhalb des Zeitstrahls – gleiche Hierarchie, kein Punkt */
.timeline-notes {
   /* padding-left: calc(24px + 1rem); /* fluchtet mit .timeline-content */
  padding-top: 1.75rem;
}

.timeline-notes ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
}

.timeline-notes ul li {
  margin-bottom: 0.3rem;
}

.timeline-content {
  padding-bottom: 0.5rem;
}

.timeline-content h3 {
  margin-top: 1.25rem; /* vertical alignment with dot */
}

.timeline-content p,
.timeline-content ul {
  color: var(--ink);
}

.timeline-content ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.timeline-content ul li {
  margin-bottom: 0.3rem;
}

/* Trennlinie zwischen Items (außer letztem) */
.timeline-item:not(:last-child) .timeline-content {
  border-bottom: 1px solid var(--beige-deep);
  padding-bottom: 1.75rem;
}

/* =========================================================
   Tablet / Desktop
   ========================================================= */
@media (min-width: 720px) {
  h1 { font-size: 2.6rem; }
  .hero-title { font-size: 2.6rem; }
  h2 { font-size: 1.9rem; }

  .section { padding: 4.5rem 0; }

  .hero { padding: 4rem 0 4.5rem; }
  .header-inner,
  .hero-inner {
    max-width: 1000px;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 550px) auto;
    justify-content: flex-end;
    align-items: center;
    gap: 4rem;
  }
  .hero-text { order: 1; }
  .hero-portrait { order: 2; }

  .gallery { grid-template-columns: repeat(3, 1fr); }

  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}
