/* ============================================================
   wavebloom – flow · thrive · glow
   Stylesheet, mobile-first (Basis = Handy, ab 720px / 1000px erweitert)
   Farben aus dem Logo; *-ink-Töne sind kontrastgeprüfte Textvarianten.
   Schriften lokal (assets/fonts, SIL Open Font License).
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../assets/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../assets/fonts/nunito-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 1000; font-style: italic; font-display: swap;
}

:root {
  color-scheme: light;
  /* Logo-Farben (Dekor) */
  --flow: #79BBD0;
  --teal: #38848E;
  --thrive: #95BC98;
  --mint: #8ECABC;
  --glow: #F6A16B;
  --glow-deep: #F68F5F;
  /* Textsichere Varianten (Kontrast >= 4.5:1 auf Weiss und auf den Tönungsflächen) */
  --flow-ink: #2F6F86;
  --teal-ink: #2F737C;
  --thrive-ink: #46724B;
  --glow-ink: #A84E26;
  --glow-ink-hover: #8C4020;
  --slate: #4E5D69;
  --ink: #3D4A55;
  /* Flächen */
  --paper: #FAF8F4;
  --sand: #F1EDE5;
  --white: #FFFFFF;
  --flow-tint: #EAF4F8;
  --thrive-tint: #EEF5EE;
  --glow-tint: #FDF1E8;
  --line: #E6E0D5;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 28px rgba(61, 74, 85, 0.09);
  --gutter: 20px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  font-family: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 76px; /* Platz für Handy-Aktionsleiste */
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  color: var(--slate);
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: balance;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.95rem, 7.4vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 5.4vw, 2.3rem); margin-bottom: .55em; }
h3 { font-size: 1.28rem; margin-bottom: .45em; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
strong { font-weight: 750; }
ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }
li::marker { color: var(--teal); }

:focus-visible { outline: 3px solid var(--flow-ink); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--slate); color: var(--white); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--slate);
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.menu-toggle .bars { position: relative; width: 18px; height: 12px; }
.menu-toggle .bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 5px; }
.menu-toggle .bars span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(61, 74, 85, 0.10);
  padding: 8px var(--gutter) 20px;
  display: none;
}
.site-nav.is-open { display: block; }
.no-js .site-nav { display: block; position: static; box-shadow: none; }
.no-js .menu-toggle { display: none; }
.site-nav ul { list-style: none; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 6px;
  border-bottom: 1px solid var(--line);
  color: var(--slate); text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--glow-ink); }
.site-nav a[aria-current="page"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); margin-right: 10px; }
.site-nav .nav-cta {
  justify-content: center; margin-top: 14px; border: 0; border-radius: 999px;
  background: var(--glow-ink); color: var(--white);
}
.site-nav .nav-cta[aria-current="page"] { color: var(--white); }
.site-nav .nav-cta[aria-current="page"]::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  font-weight: 750; font-size: 1rem; line-height: 1.25; text-align: center; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--glow-ink); color: var(--white); }
.btn-primary:hover { background: var(--glow-ink-hover); }
.btn-dark { background: var(--slate); color: var(--white); }
.btn-dark:hover { background: var(--ink); }
.btn-outline { border: 2px solid var(--slate); color: var(--slate); background: transparent; }
.btn-light { background: var(--white); color: var(--slate); }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero Startseite ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--flow-tint) 0%, var(--paper) 78%);
  padding: 28px 0 56px;
}
.hero-grid { display: grid; gap: 22px; }
.hero .quote {
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 420;
  font-size: 1.08rem; color: var(--flow-ink); margin-bottom: .25em;
}
.hero .quote-src { font-size: .85rem; color: var(--slate); margin-bottom: 1.1em; }
.hero h1 { margin-bottom: 0; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 30%;
  border-radius: 46% 54% 42% 58% / 26% 28% 72% 74%;
  box-shadow: var(--shadow);
}
.hero-media::after {
  content: ""; position: absolute; width: 22%; aspect-ratio: 1; right: 4%; top: 2%;
  border-radius: 50%; background: linear-gradient(180deg, #FFB36B, var(--glow-deep));
  box-shadow: 0 0 0 8px var(--paper);
}
.hero .lead { font-size: 1.08rem; }

/* Wellenabschluss */
.wave { display: block; width: 100%; height: 42px; margin-top: -1px; }

/* ---------- Seitenkopf Unterseiten ---------- */
.page-head {
  background: linear-gradient(180deg, var(--flow-tint) 0%, var(--paper) 100%);
  padding: 34px 0 30px;
}
.page-head .eyebrow { margin-bottom: .4em; }
.page-head h1 { margin-bottom: .45em; }
.page-head .lead { font-size: 1.05rem; max-width: 780px; }

.eyebrow {
  display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-ink);
}
.eyebrow.flow { color: var(--flow-ink); }
.eyebrow.thrive { color: var(--thrive-ink); }
.eyebrow.glow { color: var(--glow-ink); }

/* Sprungmarken Flow/Thrive/Glow */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; padding: 0; }
.chips li { margin: 0; }
.chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  color: var(--slate); font-weight: 700; font-size: .95rem; text-decoration: none;
}
.chips a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--teal)); }
.chips .flow { --dot: var(--flow); }
.chips .thrive { --dot: var(--thrive); }
.chips .glow { --dot: var(--glow); }

/* ---------- Sektionen ---------- */
section { padding: 48px 0; }
.section-intro { margin-bottom: 26px; }
.section-intro p { max-width: 680px; }

/* Säulen */
.pillars { display: grid; gap: 18px; }
.pillar {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.pillar img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pillar .pillar-body { padding: 20px 22px 24px; border-top: 5px solid var(--bar, var(--teal)); }
.pillar.flow { --bar: var(--flow); }
.pillar.thrive { --bar: var(--thrive); }
.pillar.glow { --bar: var(--glow); }
.pillar .eyebrow { margin-bottom: .3em; }
.img-top { object-position: 50% 25%; }
.img-center { object-position: 50% 50%; }
.img-low { object-position: 50% 70%; }
.band-media img.img-tall { aspect-ratio: 4 / 4.4; object-position: 50% 45%; }

/* Zielgruppen */
.paths { display: grid; gap: 16px; }
.path-card {
  border-radius: var(--radius); padding: 28px 24px; color: var(--white);
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
}
.path-card h3 { color: var(--white); font-size: 1.5rem; margin: 0; }
.path-card p { margin: 0 0 8px; }
.path-card.privat { background: linear-gradient(140deg, #3F8CA6 0%, var(--teal-ink) 100%); }
.path-card.schule { background: linear-gradient(140deg, var(--teal-ink) 0%, var(--slate) 100%); }
.path-card .btn { align-self: stretch; }

/* Über-mich-Teaser und Über-mich */
.about-grid { display: grid; gap: 28px; }
.portrait {
  width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%;
  border-radius: 50% 50% 46% 54% / 56% 56% 44% 44%; box-shadow: var(--shadow);
}
.fact-box {
  background: var(--white); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow);
}
.fact-box + .fact-box { margin-top: 18px; }
.fact-box h3 { font-size: 1.18rem; }
.inline-photo { border-radius: var(--radius); box-shadow: var(--shadow); margin: 8px 0 22px; aspect-ratio: 4 / 3.4; width: 100%; object-fit: cover; object-position: 50% 30%; }

/* Angebots-Bänder */
.band { border-radius: var(--radius); margin-bottom: 30px; overflow: hidden; }
.band.flow { background: var(--flow-tint); }
.band.thrive { background: var(--thrive-tint); }
.band.glow { background: var(--glow-tint); }
.band-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.band-body { padding: 26px 18px 22px; }
.band-head h2 { margin-bottom: .45em; }
.band-intro { margin-bottom: 1.4em; }
.band .quote-inline { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.12rem; color: var(--slate); }
.band .quote-inline cite { display: block; margin-top: .3em; font-family: "Nunito Sans", sans-serif; font-style: normal; font-size: .85rem; }

.cards { display: grid; gap: 16px; }
.card {
  background: var(--white); border-radius: var(--radius-sm); padding: 22px 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .3em; }
.card .sub { font-style: italic; color: var(--teal-ink); margin-bottom: .8em; }
.card ul { margin-bottom: 1.1em; }
.meta {
  border-top: 1px solid var(--line); margin-top: auto; padding-top: 14px;
  font-size: .95rem; display: grid; gap: 6px;
}
.meta strong { color: var(--slate); }
.card .btn { margin-top: 18px; }

/* Preis-Pakete */
.packages { display: grid; gap: 16px; margin-top: 22px; }
.package {
  background: var(--white); border-radius: var(--radius-sm); padding: 24px 20px;
  text-align: center; box-shadow: var(--shadow); position: relative;
}
.package.featured { border: 2px solid var(--thrive-ink); margin-top: 10px; }
.package .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--thrive-ink); color: var(--white); border-radius: 999px;
  font-size: .8rem; font-weight: 800; padding: 4px 14px; white-space: nowrap;
}
.package h3 { margin-bottom: .3em; }
.package p { margin-bottom: .4em; }
.package .price { font-family: "Fraunces", Georgia, serif; font-size: 1.9rem; color: var(--slate); margin: .3em 0 0; }
.package .per { font-family: "Nunito Sans", sans-serif; font-size: .9rem; }
.package .total { font-weight: 800; color: var(--teal-ink); }
.note { font-size: .95rem; margin-top: 18px; }

/* CTA-Band */
.cta-strip {
  background: linear-gradient(140deg, var(--teal-ink), var(--slate));
  color: var(--white); border-radius: var(--radius); padding: 34px 22px; text-align: left;
}
.cta-strip h2 { color: var(--white); }
.cta-strip p { margin-bottom: 1.3em; max-width: 640px; }
.cta-wrap { padding: 8px 0 48px; }

/* Kontakt */
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
}
.contact-card .icon {
  flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glow-tint); color: var(--glow-ink);
}
.contact-card .icon svg { width: 24px; height: 24px; }
.contact-card .label { display: block; font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.contact-card .value { display: block; font-size: 1.12rem; font-weight: 750; color: var(--teal-ink); word-break: break-word; }
.topic-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.topic-list li { margin: 0; }
.topic-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line); color: var(--slate);
  font-weight: 700; text-decoration: none;
}
.topic-list a::after { content: "→"; color: var(--glow-ink); font-weight: 800; }
.topic-list a:hover { border-color: var(--glow); }

/* Rechtstexte */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal h2:first-child { margin-top: 0; }
.legal address { font-style: normal; margin-bottom: 1em; }

/* Footer */
.site-footer { background: var(--sand); padding: 40px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; gap: 26px; }
.footer-logo { width: 190px; height: auto; margin-bottom: 10px; }
.site-footer h2 { font-family: "Nunito Sans", sans-serif; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: .7em; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .2em; }
.site-footer a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--teal-ink); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; font-size: .88rem; }

/* Handy-Aktionsleiste */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 244, 0.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.action-bar .btn { min-height: 48px; padding: 10px 12px; font-size: .98rem; }

/* 404 */
.notfound { text-align: center; padding: 70px 0; }
.notfound img { width: 200px; margin: 0 auto 24px; }

/* ============ ab 720px (grosses Handy quer / Tablet) ============ */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  section { padding: 64px 0; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-block { display: inline-flex; width: auto; }
  .paths { grid-template-columns: 1fr 1fr; }
  .path-card .btn { align-self: flex-start; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .packages { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .package.featured { margin-top: 0; }
  .band-body { padding: 36px 34px 34px; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .topic-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .cta-strip { padding: 48px 44px; text-align: center; }
  .cta-strip p { margin-left: auto; margin-right: auto; }
  .hero-media { max-width: 460px; width: 100%; justify-self: center; }
}

/* ============ ab 1000px (Desktop) ============ */
@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; font-size: 1.08rem; }
  .action-bar { display: none; }
  .brand img { height: 50px; }
  .menu-toggle { display: none; }
  .site-nav, .no-js .site-nav {
    display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0;
  }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav a { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; font-size: .98rem; }
  .site-nav a:hover { background: var(--white); }
  .site-nav a[aria-current="page"]::before { width: 6px; height: 6px; margin-right: 8px; }
  .site-nav .nav-cta { margin: 0 0 0 8px; padding: 0 20px; }
  .site-nav .nav-cta:hover { background: var(--glow-ink-hover); }

  .pillars { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
  .hero-text { grid-column: 1; grid-row: 1; }
  .hero-media { grid-column: 2; grid-row: 1 / span 2; max-width: none; }
  .hero-more { grid-column: 1; grid-row: 2; }
  .hero .quote { font-size: 1.3rem; }
  .hero .lead { font-size: 1.15rem; }

  .page-head { padding: 56px 0 44px; }

  .about-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
  .about-grid.text-first { grid-template-columns: 1.3fr .9fr; align-items: start; }
  .band { display: grid; grid-template-columns: 1fr; }
  .band-top { display: grid; grid-template-columns: 1.25fr .75fr; }
  .band-top .band-media { order: 2; }
  .band-top .band-media { position: relative; min-height: 340px; }
  .band-top .band-media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .band-body { padding: 44px 48px 40px; }
  .band-rest { padding: 0 48px 44px; }
}
@media (max-width: 999px) {
  .band-rest { padding: 0 18px 22px; }
}
@media (min-width: 720px) and (max-width: 999px) {
  .band-rest { padding: 0 34px 34px; }
}

/* Hilfsklassen */
.mt { margin-top: 1.2em; }
.spaced { margin-top: 26px; }
