/* Unterseiten – gleiche Gestaltung wie die Startseite:
   Schibsted Grotesk, alles klein, Palette „Erdige Wärme“ abgedunkelt, Kreis-Motiv.
   Die Grundfarbe der Seite setzt <body data-key="…">. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --terrakotta: #b87563;
  --salbeigruen: #8c9b7a;
  --ocker: #c0a15d;
  --staubblau: #748e9b;
  --taupe: #95877b;
  --white: #ffffff;

  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 32px);
  --content: 1120px;
}

body[data-key="eltern"]      { --base: var(--terrakotta); }
body[data-key="fachstellen"] { --base: var(--staubblau); }
body[data-key="neutral"]     { --base: var(--taupe); }
body[data-key="kontakt"]     { --base: var(--salbeigruen); }
body[data-key="andrea"]      { --base: var(--taupe); }
body[data-key="bildung"]     { --base: var(--ocker); }

body {
  --bg: color-mix(in oklab, var(--base), black 52%);
  --circle: color-mix(in oklab, var(--base), black 30%);
  --accent: color-mix(in oklab, var(--base), #ffffff 55%);
  --line: rgb(255 255 255 / 0.18);


  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 20px; /* Grundgrösse */
  line-height: 1.55;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* Ring um den Kreis darf auf schmalen Bildschirmen nicht seitlich scrollen lassen */
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: inherit; }

/* ---------- Kopfzeile ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--gutter);
  background: var(--bg);
}

.logo {
  position: relative;
  z-index: 6; /* bleibt über dem geöffneten Hamburger-Menü */
  color: var(--accent);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.logo strong { font-weight: inherit; color: var(--white); }

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 28px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
}

.menu a { text-decoration: none; opacity: 0.85; }
.menu a:hover, .menu a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.menu a[aria-current="page"] { opacity: 1; color: var(--accent); }

/* ---------- Grundraster ---------- */
.section {
  width: min(var(--content), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) 0;
}

.section + .section { border-top: 1px solid var(--line); }

.kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 500;
  font-size: 1em; /* gleich gross wie der Fliesstext */
}

.h2 {
  max-width: 18ch;
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h2 em { font-style: normal; color: var(--accent); }

/* Kurze Zeile unter einem Titel (z. B. Weiterbildung: „durch Wissens- und Selbstkompetenz“) */
.h2-sub {
  margin-top: 10px;
  color: var(--accent);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.3;
}

.text {
  max-width: 58ch;
  color: rgb(255 255 255 / 0.86);
}

/* ---------- Flache Kreise: Farbe über --c ---------- */
.hero-circle,
.dot,
.step-circle { background: var(--c); }

/* ---------- Einstieg: Kreis + Lead ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(40px, 5vw, 72px); /* Platz für den Ring um den Kreis */
}

.hero-circle {
  container-type: inline-size;
  display: grid;
  place-items: center;
  width: min(100%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  --c: var(--circle);
  text-align: center;
}

.hero-circle h1 {
  width: 76%;
  color: var(--accent);
  font-weight: 400;
  font-size: 9cqi;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-circle h1 b { font-weight: inherit; color: var(--white); }

.lead {
  max-width: 30ch;
  font-weight: 400;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lead + .text { margin-top: 18px; }

/* ---------- Zitat ---------- */
.quote {
  text-align: center;
}

.quote p {
  max-width: 22ch;
  margin: 0 auto;
  color: var(--accent);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.quote p b { font-weight: inherit; color: var(--white); }

/* ---------- Punkte in Kreisen ---------- */
.dots {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(28px, 3.5vw, 44px);
  padding: 0;
  list-style: none;
}

.dots li { display: grid; gap: 10px; align-content: start; }
.dots li .dot { margin-bottom: 4px; }

.dot {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  --c: var(--circle);
  color: var(--accent);
  font-weight: 500;
  font-size: 18px;
}

.dots h3 { font-weight: 500; font-size: 1.1em; line-height: 1.25; }

/* Badge statt Nummernkreis: Titel in einer runden Pille */
.dots h3.badge {
  justify-self: start;
  margin-bottom: 4px;
  padding: 0.5em 1.05em;
  border-radius: 999px;
  background: var(--circle);
  font-size: 1em;
  line-height: 1.2;
}
.dots p { color: rgb(255 255 255 / 0.78); font-size: 0.9em; line-height: 1.5; }

/* ---------- Zwei Spalten ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.split .text + .text { margin-top: 16px; }

/* ---------- Wirkungsmodell: Treppe aus wachsenden Kreisen ---------- */
.model {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 52px);
  padding: 0;
  list-style: none;
}

.model li { display: grid; gap: 22px; }

/* Text unter den Kreisen mittig, schmal gesetzt – ruhiger Fluss unter der Treppe */
.model li > div:not(.step-circle) {
  max-width: 24ch;
  margin: 0 auto;
  text-align: center;
}

.model li > div:not(.step-circle) h3 { margin-bottom: 6px; }

.step-circle {
  container-type: inline-size;
  display: grid;
  place-items: center;
  align-content: center;
  width: var(--size);
  aspect-ratio: 1;
  /* Kreise unten bündig, damit alle Texte darunter auf einer Linie beginnen
     (Prozent-Abstand oben bezieht sich auf die Spaltenbreite) */
  margin: calc(100% - var(--size)) auto 0;
  border-radius: 50%;
  --c: color-mix(in oklab, var(--base), black calc(40% - var(--i) * 6%));
  text-align: center;
}

.model li:nth-child(1) { --i: 0; --size: 68%; }
.model li:nth-child(2) { --i: 1; --size: 79%; }
.model li:nth-child(3) { --i: 2; --size: 90%; }
.model li:nth-child(4) { --i: 3; --size: 100%; }

.step-circle span {
  color: var(--accent);
  font-weight: 500;
  font-size: max(13px, 9cqi);
  line-height: 1;
}

.step-circle strong {
  margin-top: 6px;
  font-weight: 400;
  font-size: max(18px, 15cqi);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.model h3 {
  color: var(--accent);
  font-weight: 500;
  font-size: 1em;
}

.model p { color: rgb(255 255 255 / 0.82); font-size: 0.9em; line-height: 1.5; }

.model-claim {
  max-width: 34ch;
  margin: clamp(36px, 4.5vw, 56px) auto 0;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.model-claim b { font-weight: inherit; color: var(--accent); }

/* ---------- Kinderrechte: Artikel als kleine Kreise ---------- */
.articles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.articles a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Verlinkte Artikel: beim Darüberfahren gefüllt */
.articles a:hover,
.articles a:focus-visible {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.articles a:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

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

.cta .h2 { margin: 0 auto; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 28px;
  padding: 0.5em 0.5em 0.5em 1.4em;
  border-radius: 999px;
  background: var(--circle);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.button-icon {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}

.button-icon svg { width: 0.95em; height: 0.95em; transition: transform 0.25s ease; }
.button:hover, .button:focus-visible { background: color-mix(in oklab, var(--circle), #ffffff 12%); }
.button:hover svg, .button:focus-visible svg { transform: translateX(3px); }
.button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.contact-line {
  margin-top: 20px;
  color: rgb(255 255 255 / 0.7);
  font-size: 15px;
}

.contact-line a { text-underline-offset: 3px; }

.note {
  max-width: 64ch;
  margin: 0 auto;
  color: rgb(255 255 255 / 0.6);
  font-size: 14px;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 32px var(--gutter) 40px;
  color: rgb(255 255 255 / 0.45);
  font-weight: 500;
  font-size: 13px;
}

.footer a { color: rgb(255 255 255 / 0.75); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Einblenden beim Scrollen (seite.js setzt .is-in) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: calc(var(--d, 0) * 120ms);
}

.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero-circle { margin: 0 auto; width: min(84%, 420px); } /* Platz für den Ring */
  /* Mehr Luft über dem Ring (farbiger Kreis oben nicht unter der Kopfzeile)
     und zwischen Ring und dem Text darunter */
  .hero { padding-top: clamp(76px, 14vw, 100px); row-gap: clamp(92px, 18vw, 120px); }
  .dots { --cols: 2 !important; }
  .model { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .header { padding-top: 20px; padding-bottom: 20px; }
  .dots { --cols: 1 !important; }
  .model { grid-template-columns: 1fr; }
  .model li { grid-template-columns: 112px minmax(0, 1fr); align-items: center; }
  .model li > div:not(.step-circle) { margin: 0; text-align: left; }
  .step-circle { --size: 112px !important; width: 112px; margin: 0; }
}

/* ---------- Rechtliches (Impressum, Datenschutz) ---------- */
.legal-title {
  font-weight: 400;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: clamp(28px, 3.5vw, 44px) 0 0;
}

.facts dt {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 500;
}

.facts dd { margin: 0; }

/* Offizielle Kennungen in ihrer amtlichen Schreibweise (Ausnahme von „alles klein“) */
.as-written { text-transform: none; }
.facts a { text-underline-offset: 3px; }

.legal-blocks {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}

.legal-blocks h2 {
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 500;
  font-size: 1em;
}

.legal-blocks p {
  max-width: 64ch;
  color: rgb(255 255 255 / 0.8);
  font-size: 0.9em;
}

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Kontakt ---------- */
.hero-portrait {
  position: relative;
  overflow: hidden;
}

.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Über mich: Porträt bewusst kleiner als die übrigen Einstiegskreise */
.hero-portrait--small {
  width: min(100%, 320px);
  justify-self: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 36px;
}

.contact-actions .button { margin-top: 0; }

.button-secondary {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* ---------- Über mich: Stationen und Kompetenzen ---------- */
.stations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(28px, 3.5vw, 44px);
}

.station {
  padding-top: 20px;
  border-top: 1px solid var(--accent);
}

.station h3 {
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 500;
  font-size: 1em;
}

.station ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.station li { font-size: 0.9em; line-height: 1.4; }
.station li span { display: block; color: rgb(255 255 255 / 0.6); font-size: 0.88em; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.55em 1.1em;
  border-radius: 999px;
  background: var(--circle);
  font-size: 0.95em;
  line-height: 1;
}

@media (max-width: 900px) {
  .stations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .stations { grid-template-columns: 1fr; }
}

/* ---------- Umlaufbahn um den Einstiegskreis (wie auf der Startseite) ----------
   seite.js legt den Kreis in .orbit, zeichnet den Ring und bewegt die Punkte */
.orbit {
  position: relative;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  overflow: visible;
  pointer-events: none;
}

.orbit-line {
  fill: none;
  stroke: rgb(255 255 255 / 0.3);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.45, 0, 0.2, 1) 0.3s;
}

.orbit-dots {
  fill: #ffffff;
  opacity: 0;
  transition: opacity 1.2s ease 1.4s;
}

/* Farbiger Kreis der Zielgruppe auf dem Ring; --ox/--oy setzt seite.js */
.orbit-orb {
  position: absolute;
  top: calc(50% + var(--oy, 0px));
  left: calc(50% + var(--ox, 0px));
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--base), black 12%);
  box-shadow: 0 0 0 2.5px color-mix(in oklab, var(--base), #ffffff 82%), 0 6px 18px rgb(0 0 0 / 0.25);
  translate: -50% -50%;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.8s ease 1.6s, scale 0.8s ease 1.6s;
  pointer-events: none;
}
.orbit.is-in .orbit-orb { opacity: 1; scale: 1; }
@media (max-width: 640px) { .orbit-orb { width: 26px; height: 26px; } }

.orbit.is-in .orbit-line { stroke-dashoffset: 0; }
.orbit.is-in .orbit-dots { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .orbit-line { stroke-dashoffset: 0; transition: none; }
  .orbit-dots { opacity: 1; transition: none; }
  .orbit-orb { opacity: 1; scale: 1; transition: none; }
}

/* ---------- Anrufen-Button: beim Darüberfahren erscheint die Nummer ----------
   Beide Texte liegen nebeneinander; die Breite wechselt weich über max-width */
.call-swap { display: inline-flex; white-space: nowrap; }

.call-label,
.call-number {
  display: inline-block;
  overflow: hidden;
  transition: max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.call-label  { max-width: 8em;  opacity: 1; }
.call-number { max-width: 0;    opacity: 0; font-variant-numeric: tabular-nums; }

.button-call:hover .call-label,
.button-call:focus-visible .call-label { max-width: 0; opacity: 0; }

.button-call:hover .call-number,
.button-call:focus-visible .call-number { max-width: 9em; opacity: 1; transition-delay: 0.05s; }

@media (prefers-reduced-motion: reduce) {
  .call-label, .call-number { transition: none; }
}

/* ---------- Hinweis nach Klick auf einen E-Mail-Link ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 0.7em 1.2em;
  border-radius: 999px;
  background: var(--white);
  color: var(--bg);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  text-transform: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
