
/* Lokal eingebundene Schriften - keine Verbindung zu Google.
   Die Dateien liegen im Unterordner "fonts" neben dieser HTML-Datei. */

@font-face {
  font-family: 'Caveat';
  src: url('fonts/caveat-variable.woff') format('woff-variations'),
       url('fonts/caveat-variable.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand';
  src: url('fonts/quicksand-variable.woff') format('woff-variations'),
       url('fonts/quicksand-variable.woff') format('woff');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FAF8F7;
  --navy: #1A1D5C;
  --navy-cta: #0B1A59;
  --navy-karte: #1A2E7A;   /* Kontaktkarte, hebt sich vom Abschnitt ab */
  /* Flaechenfarben - fuer Kartenvorderseiten, mit Navy-Schrift darauf */
  --blue: #79A8C8;
  --orange: #EA6E3B;
  --magenta: #C42781;
  /* Textfarben - abgedunkelt, damit Schrift auf Creme lesbar bleibt (4.5:1) */
  --blue-text: #41789E;
  --orange-text: #C64915;
  --magenta-text: #C42781;
  --dot: #D19DA4;
  --text-dark: #33363F;
  --text-muted: #6b6f7a;
  --section-h: 700px;
  --inhalt-max: 960px;   /* einheitliche Breite fuer alle Abschnitte */
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 112.5%;            /* 18 px statt 16 px Grundgroesse */
}

/* Sicherheitsnetz gegen seitliches Verschieben der Seite.
   Bewusst "clip" statt "hidden": "hidden" erzeugt einen eigenen
   Scrollbereich und hebt damit das Kleben der Navigationsleiste auf.
   "clip" schneidet nur ab und laesst position: sticky unberuehrt. */
html, body { overflow-x: clip; max-width: 100%; }

body {
  margin: 0;
  font-family: 'Quicksand', 'Trebuchet MS', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  -webkit-hyphens: auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.script { font-family: 'Caveat', 'Segoe Script', cursive; }

/* Kein Wort darf breiter werden als sein Behaelter */
h1, h2, h3, p, li { overflow-wrap: break-word; }

/* Separator dots between words */
.dot { color: var(--dot); margin: 0 2px; font-weight: 400; white-space: nowrap; }

/* Rufnummer und E-Mail-Adresse nie mitten im Wert umbrechen */
/* Nur die Kontaktangaben selbst, ausdruecklich keine Schaltflaechen */
.contact-line a, .legal-page a[href^="tel:"], .legal-page a[href^="mailto:"] {
  white-space: nowrap;
}


/* ---------- Sprungmarke fuer Tastatur/Screenreader ---------- */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy); color: var(--cream);
  padding: 12px 20px; border-radius: 0 0 6px 0; z-index: 200;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Sticky Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 247, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #EBE4E0;
}

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto; text-decoration: none;
}
.nav-brand img { width: 34px; height: 34px; }
.nav-brand span {
  font-family: 'Caveat', cursive; font-size: 1.35rem;
  color: var(--navy); white-space: nowrap;
}

.nav-links {
  display: flex; align-items: center; justify-content: flex-end;
  flex-wrap: wrap;              /* bricht um, sobald der Platz nicht reicht */
  gap: 2px 4px;
  list-style: none; margin: 0; padding: 0;
  min-width: 0;                 /* sonst schiebt die Leiste die Seite auf */
}

.nav-links a {
  display: block; padding: 8px 12px; border-radius: 20px;
  font-size: 0.92rem; font-weight: 600; white-space: nowrap;
  color: var(--text-dark);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { border-bottom-color: currentColor; }
.nav-links a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.nav-links a.nav-coaching:hover { color: var(--blue-text); }
.nav-links a.nav-supervision:hover { color: var(--orange-text); }
.nav-links a.nav-orga:hover { color: var(--magenta-text); }

.nav-links a.nav-cta {
  border: 1.5px solid var(--navy); color: var(--navy);
  padding: 7px 16px; margin-left: 6px;
}
.nav-links a.nav-cta:hover {
  background: var(--navy); color: var(--cream); border-bottom-color: var(--navy);
}

/* Anker nicht unter der Leiste verstecken */
.band { scroll-margin-top: 68px; }

/* ---------- Equal-height sections ---------- */
.band {
  min-height: var(--section-h);
  padding: 72px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ---------- 1. Intro ---------- */
.hero { text-align: center; }
.hero .logo { width: 120px; height: 120px; margin: 0 auto 16px; }

.hero h1.script {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); color: var(--navy);
  margin: 0 0 8px; font-weight: 600;
}

.hero .tagline {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  margin: 0 0 32px; line-height: 1.5;
  hyphens: none;                /* keine Trennung, lieber umbrechen */
}
/* Die drei Begriffe bleiben jeweils zusammen und wandern als Ganzes
   in die naechste Zeile. */
.hero .tagline span { white-space: nowrap; }
.hero .tagline .t-coaching { color: var(--blue); }
.hero .tagline .t-supervision { color: var(--orange); }
.hero .tagline .t-orga { color: var(--magenta); }

.hero .zielgruppe {
  font-size: 0.98rem; color: var(--text-muted);
  margin: -18px auto 36px; max-width: 520px; hyphens: none;
}

.hero .intro {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); max-width: 560px;
  margin: 0 auto 40px; color: var(--text-dark); line-height: 1.6;
}

/* ---------- Buttons ---------- */
a.btn-outline {
  white-space: normal;          /* darf immer umbrechen */
  overflow-wrap: break-word;
}

.btn-outline {
  display: inline-block; padding: 16px 32px;
  border: 1.5px solid var(--navy); border-radius: 40px;
  color: var(--navy); font-weight: 600;
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.1rem);
  hyphens: none; max-width: 100%;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-outline:focus-visible { outline: 3px solid var(--dot); outline-offset: 3px; }
.btn-outline.on-dark { border-color: var(--cream); color: var(--cream); }
.btn-outline.on-dark:hover { background: var(--cream); color: var(--navy-cta); }

/* ---------- 2-4. Angebotsbereiche: Karten auf cremefarbenem Grund ---------- */
.offer-band { color: var(--text-dark); }

.offer-band h2 {
  font-weight: 500; font-size: clamp(1.4rem, 0.8rem + 2.6vw, 3.1rem);
  letter-spacing: 1.5px; margin: 0 0 12px; text-align: center;
  line-height: 1.15;
  hyphens: manual;              /* nur an der gesetzten Wortfuge trennen */
  overflow-wrap: break-word;    /* Notbremse, falls es dennoch nicht passt */
  max-width: var(--inhalt-max); width: 100%;
}
.offer-band.coaching h2 { color: var(--blue-text); }
.offer-band.supervision h2 { color: var(--orange-text); }
.offer-band.orga h2 { color: var(--magenta-text); }

.offer-formate {
  text-align: center; color: var(--text-muted); hyphens: none;
  font-size: 0.95rem; margin: 0 0 40px;
  max-width: var(--inhalt-max); width: 100%;
}

/* ---- Die Karte ---- */
.karte {
  width: 100%; max-width: 540px; min-width: 0;
  aspect-ratio: 148 / 105;
  perspective: 1500px;
  margin: 0 auto;
}
.karte:focus { outline: none; }

.karte-innen {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.05, 0.2, 1);
  border-radius: 8px;
}
.karte:focus-visible .karte-innen { outline: 3px solid var(--navy); outline-offset: 6px; }

.seite {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 8px; padding: 32px 36px;
  display: flex; flex-direction: column;
  box-shadow: 0 22px 40px rgba(0,0,0,0.16), 0 6px 14px rgba(0,0,0,0.10);
}

/* Vorderseite: Markenfarbe, Zitat in Navy */
.vorne {
  align-items: center; justify-content: center; gap: 18px;
  text-align: center; color: var(--navy-cta);
}
.coaching .vorne { background: var(--blue); }
.supervision .vorne { background: var(--orange); }
.orga .vorne { background: var(--magenta); }

.vorne p.script {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem);
  line-height: 1.25; margin: 0; hyphens: none;
}
.vorne .card-logo {
  display: block; width: 46px; height: 46px;
  background: center / contain no-repeat;
}

/* Eigene Klasse - die Regel oben gilt nur innerhalb von .vorne */
.kontakt-karte .karte-logo { width: 56px; height: 56px; object-fit: contain; }

.dreh-hinweis {
  position: absolute; bottom: 16px; right: 18px;
  display: flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px;
  color: var(--navy-cta); hyphens: none;
  background: rgba(255,255,255,0.78);
  padding: 5px 11px 5px 12px; border-radius: 20px;
}
.dreh-hinweis::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid currentColor; border-top-color: transparent;
}

/* Rueckseite: hell, hoher Kontrast fuer den Fliesstext */
.hinten {
  transform: rotateY(180deg);
  background: #fff; color: var(--text-dark);
  justify-content: center; border: 1px solid #EDE6E2;
}
.hinten::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 6px; border-radius: 8px 8px 0 0;
}
.coaching .hinten::before { background: var(--blue); }
.supervision .hinten::before { background: var(--orange); }
.orga .hinten::before { background: var(--magenta); }

.hinten p {
  margin: 0 auto 14px;          /* schmalere Spalte, mittig in der Karte */
  max-width: 420px; width: 100%;
  font-size: 0.94rem; line-height: 1.62;
  text-align: left; text-wrap: pretty;
}
.hinten p:last-child { margin: 0 auto; }
.hinten p.fuer { color: var(--text-muted); font-size: 0.9rem; }

/* Drehen nur, wo es echtes Ueberfahren gibt */
@media (hover: hover) and (min-width: 861px) {
  .karte:hover .karte-innen,
  .karte:focus-visible .karte-innen { transform: rotateY(180deg); }
}

/* Ohne Mauszeiger: beide Seiten untereinander */
@media not all and (hover: hover), (max-width: 860px) {
  .karte { aspect-ratio: auto; perspective: none; }
  .karte-innen {
    transform: none !important; transform-style: flat;
    display: grid; gap: 20px;
    /* Ohne minmax(0, 1fr) darf die Rasterspalte breiter werden als die
       Karte, sobald der Text ein langes Wort enthaelt. */
    grid-template-columns: minmax(0, 1fr);
  }
  .seite { position: static; backface-visibility: visible; min-width: 0; }
  .vorne { aspect-ratio: 148 / 105; }
  .hinten { transform: none; padding-top: 34px; }
  .dreh-hinweis { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .karte-innen { transition: none; }
}

/* ---- Themenzeilen unter der Karte ---- */
.offer-tags {
  margin: 36px 0 0; text-align: center; hyphens: none;
  font-weight: 600; font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  max-width: var(--inhalt-max); width: 100%;
}
.offer-band.coaching .offer-tags { color: var(--blue-text); }
.offer-band.supervision .offer-tags { color: var(--orange-text); }
.offer-band.orga .offer-tags { color: var(--magenta-text); }

.offer-tags .hint {
  display: block; font-family: 'Caveat', cursive; font-weight: 500;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  margin: 8px 0 0; color: var(--text-muted);
}

/* ---------- 5. About ---------- */
.about h2.script {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  color: var(--navy); margin: 0 0 28px;
}
.about-inner { max-width: var(--inhalt-max); width: 100%; }
.about-layout { display: flex; gap: 44px; align-items: stretch; flex-wrap: wrap; }

.about-photo {
  flex: 0 0 290px; width: 290px;
  align-self: stretch;          /* begleitet den Text ueber die volle Hoehe */
  min-height: 340px; height: auto;
  border-radius: 6px; object-fit: cover;
  object-position: center 18%;  /* haelt das Gesicht oben im Ausschnitt */
  box-shadow: 0 16px 30px rgba(0,0,0,0.13), 0 4px 10px rgba(0,0,0,0.08);
}
.about-copy { flex: 1 1 360px; max-width: 620px; }
.about-copy p {
  margin: 0 0 20px; text-align: left; text-wrap: pretty;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem); line-height: 1.7;
}
.verband {
  display: flex; align-items: center; gap: 18px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid #E8E1DC;
}
.verband-logo {
  flex: 0 0 auto; width: 84px; height: 84px;
  object-fit: contain;
}
.verband p {
  margin: 0; font-size: 0.85rem; line-height: 1.5;
  color: var(--text-muted); text-align: left;
}

.about-credentials {
  font-size: 0.92rem !important; color: var(--text-muted);
  text-align: left !important; hyphens: none;
}


/* ---------- 6. Closing CTA ---------- */
.closing { background: var(--navy-cta); color: var(--cream); text-align: center; }
.kontakt-karte {
  width: 100%; max-width: 480px;
  aspect-ratio: 148 / 105;
  background: var(--navy-karte);
  border: 1.5px solid rgba(250,248,247,0.55);
  border-radius: 8px;
  margin: 0 0 34px;
  padding: 26px 30px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  box-shadow: 0 20px 38px rgba(0,0,0,0.30), 0 6px 14px rgba(0,0,0,0.20);
}

.closing h2 {
  font-weight: 600;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
  line-height: 1.25; margin: 0;
  color: var(--cream); hyphens: none; text-align: center;
}

.closing-text {
  max-width: 560px; margin: 0 0 36px;
  text-align: left; color: rgba(250,248,247,0.88);
}
.closing-text p {
  margin: 0 0 16px; text-wrap: pretty;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.08rem); line-height: 1.7;
}
.closing-text p:last-child { margin: 0; }
.closing .vertraulich {
  /* Gleiche Breite und gleiche linke Kante wie der Ablauftext darueber:
     beide sind Fliesstext und teilen sich eine Achse. */
  max-width: 560px; margin: 26px 0 0;
  font-size: 0.86rem; line-height: 1.6;
  color: rgba(250,248,247,0.62);   /* bewusst zurueckgenommen */
  text-align: left; text-wrap: pretty;
}

.closing .contact-line { margin: 28px 0 0; font-size: 1.05rem; hyphens: none; }
.closing .contact-line a { text-decoration: underline; }

/* ---------- Footer: light, separated from CTA ---------- */
footer.site-footer {
  background: var(--cream);
  color: var(--text-muted);
  border-top: 1px solid #E6DFDA;
  text-align: center;
  padding: 32px 24px;
  font-size: 0.9rem;
}
footer.site-footer .legal-links a {
  margin: 0 14px; color: var(--navy); font-weight: 600;
}
footer.site-footer .legal-links a:hover { text-decoration: underline; }
footer.site-footer .copyright { margin: 10px 0 0; font-size: 0.85rem; }

/* ---------- Legal pages ---------- */
/* ---------- Fehlerseite ---------- */
.fehler { text-align: center; }
.fehler .logo { width: 96px; height: 96px; margin: 0 auto 24px; }
.fehler h1.script {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  color: var(--navy); margin: 0 0 20px; hyphens: none;
}
.fehler p {
  max-width: 460px; margin: 0 auto 16px;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
}
.fehler .btn-outline { margin-top: 20px; }

.legal-page { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.legal-page .back-link {
  display: inline-block; margin-bottom: 32px; font-weight: 600;
  color: var(--navy); border-bottom: 1.5px solid var(--navy);
}
.legal-page h1.script {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  color: var(--navy); margin: 0 0 32px;
}
.legal-page h2 { font-size: 1.15rem; color: var(--navy); margin: 36px 0 12px; }
.legal-page p { margin: 0 0 14px; text-align: left; text-wrap: pretty; }

/* ---------- Responsive ---------- */

/* Tablet / small laptop */
@media (max-width: 1024px) {
  :root { --section-h: 560px; }
  .band { padding: 64px 32px; }
}

/* Portrait tablet & large phone: stack card above text */
@media (max-width: 860px) {
  :root { --section-h: 0px; }
  .band { padding: 56px 24px; }
  .offer-band h2 { margin-bottom: 32px; }
  .about-layout { flex-direction: column; align-items: center; }
  .about-photo {
    margin: 0 auto; align-self: center;
    width: 250px; aspect-ratio: 3 / 4; min-height: 0;
    object-position: center 20%;
  }
  .about-copy { flex: 1 1 auto; width: 100%; }
  .nav-brand span { display: none; }
  .nav-inner { gap: 12px; padding: 8px 16px; }
}

@media (max-width: 620px) {
  html { font-size: 106.25%; /* 17px */ }
  .nav-brand { display: none; }
  .nav-inner { justify-content: center; padding: 5px 10px; }
  .nav-links { justify-content: center; }
  .nav-links a { padding: 6px 8px; font-size: 0.84rem; }
  .nav-links a.nav-cta { display: none; }
  .band { scroll-margin-top: 84px; }
  .band { padding: 48px 20px; }
  .offer-band h2 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.2rem); }
  .hero .logo { width: 96px; height: 96px; }
  /* Auf Telefonen als breite Schaltflaeche - der Text darf dann umbrechen */
  .btn-outline {
    display: block; width: 100%; max-width: 340px;
    padding: 14px 18px; line-height: 1.35;
    text-align: center; box-sizing: border-box;
  }
  .dot { margin: 0 1px; }
  .closing h2 { max-width: none; }
  /* Kontaktzeile bewusst untereinander statt an der Grenze umbrechen */
  .closing .contact-line {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
  }
  .closing .contact-line .dot { display: none; }
}

/* Small phone: separators on their own lines read better than wrapped mid-phrase */
@media (max-width: 430px) {
  html { font-size: 100%; }
  .offer-tags .dot { display: block; margin: 4px 0; }
  .band { padding: 44px 16px; }
  .legal-page { padding: 56px 16px 72px; }
  footer.site-footer .legal-links a { display: inline-block; margin: 4px 10px; }
}

/* ---------- Druckansicht ---------- */
@media print {
  @page { margin: 18mm 16mm; }

  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }

  /* Bildschirmelemente, die auf Papier nichts verloren haben */
  .site-nav, .skip-link, .dreh-hinweis, .btn-outline { display: none; }

  /* Keine vollflaechigen Farben aufs Papier */
  .band { min-height: 0; padding: 0 0 14mm; display: block; }
  .closing, footer.site-footer { background: #fff; color: #000; }
  .closing .vertraulich, .closing .contact-line,
  .offer-band h2, .about h2, .legal-page h1 { color: #000; }

  /* Karten flach ausgeben: beide Seiten untereinander, ohne Drehung */
  .karte { aspect-ratio: auto; perspective: none; width: 100%; max-width: none; }
  .karte-innen { transform: none !important; transform-style: flat; display: block; }
  .seite {
    position: static; backface-visibility: visible; transform: none;
    box-shadow: none; border: 1px solid #999; border-radius: 4px;
    padding: 8mm; margin-bottom: 5mm;
  }
  .vorne { aspect-ratio: auto; color: #000; background: #fff !important; }
  .kontakt-karte {
    aspect-ratio: auto; background: #fff !important; color: #000;
    border: 1px solid #999; box-shadow: none; padding: 8mm; max-width: none;
  }
  .kontakt-karte h2 { color: #000; }
  .hinten::before { display: none; }
  .hinten p { max-width: none; }
  .card-logo, .karte-logo { filter: grayscale(1); }

  /* Papier kennt keine Verweise - Adressen ausschreiben */
  a { color: #000; text-decoration: none; }
  .contact-line a::after { content: " (" attr(href) ")"; font-size: 9pt; }

  /* Nicht mitten in einem Abschnitt umbrechen */
  section, .karte, .about-layout { break-inside: avoid; page-break-inside: avoid; }
  h1, h2 { break-after: avoid; page-break-after: avoid; }

  img { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
