/* =========================================================
   Tanja Martens – Unterseiten (Institut · Praxis · Produkte · Über mich)
   Einheitlicher, ruhiger Look · gleiche Farbwelt wie die Startseite (Welle)
   Statisch HTML/CSS/JS
   ========================================================= */

:root {
  --turq:     #7FB9C8;
  --turq-dk:  #3B8294;
  --turq-deep:#1F5A68;
  --ink:      #26393F;
  --ink-soft: #5A6E75;
  --cream:    #F3EEE2;
  --paper:    #FBF9F4;
  --white:    #FFFFFF;
  --line:     #E4DECF;

  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-name: "Cormorant Garamond", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 24px 50px -30px rgba(31,90,104,0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400; line-height: 1.75;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; color: var(--turq-deep); }
p { margin: 0 0 1.1rem; }
a { color: var(--turq-dk); }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 800px); margin-inline: auto; }

.kicker { font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: var(--turq-dk); margin: 0 0 1rem; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--soft { background: var(--cream); }

.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 300; background: var(--turq-deep); color: #fff; padding: 0.7rem 1.1rem; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--turq-dk); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-body); font-weight: 600; font-size: 1rem; padding: .95rem 1.8rem; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease); }
.btn--primary { background: var(--turq-dk); color: #fff; box-shadow: 0 16px 30px -16px rgba(59,130,148,.8); }
.btn--primary:hover { transform: translateY(-3px); background: var(--turq-deep); }
.btn--ghost { background: transparent; color: var(--turq-dk); border-color: rgba(59,130,148,.4); }
.btn--ghost:hover { background: rgba(59,130,148,.08); border-color: var(--turq-dk); transform: translateY(-3px); }

/* =========================================================
   NAVIGATION (gleich wie Startseite, heller Inhalt-Stil)
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1.25rem, 4vw, 3rem); transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease); }
.nav.is-scrolled { background: rgba(251,249,244,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px -20px rgba(31,90,104,.4); padding-top: .65rem; padding-bottom: .65rem; }
.nav__brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.nav__brand-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.nav__brand-sub { font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); }
.nav__logo { height: 60px; width: auto; display: block; }
.nav.is-scrolled .nav__logo { height: 52px; transition: height .4s var(--ease); }
.nav__links { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); }
.nav__links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; position: relative; }
.nav__links a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0; background: var(--turq-dk); transition: width .3s var(--ease); }
.nav__links a:not(.nav__cta):hover::after,
.nav__links a.is-active:not(.nav__cta)::after { width: 100%; }
.nav__cta { background: var(--turq-dk); color: #fff !important; padding: .5rem 1.15rem; border-radius: 999px; font-weight: 600; transition: transform .3s var(--ease), background .3s var(--ease); }
.nav__cta:hover { transform: translateY(-2px); background: var(--turq-deep); }

/* Hamburger-Knopf: nur auf dem Handy sichtbar (Desktop = ausgeblendet) */
.nav__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav__toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s var(--ease); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   SEITEN-HEADER mit Wellen-Banner (Foto/Welle als Marke)
   ========================================================= */
.pagehead { position: relative; min-height: 56vh; display: flex; align-items: flex-end; padding: 8rem 0 5.5rem; isolation: isolate; overflow: hidden; }
/* Poster als Sofort-/Fallback-Bild (hinter dem Video) */
.pagehead__bg { position: absolute; inset: 0; z-index: -3; background: url("../welle-poster.jpg") center 20% / cover no-repeat; }
/* Endlos-Wellen-Video im Kopf (per JS eingefügt) */
.pagehead__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.pagehead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,41,59,.12) 0%, rgba(7,41,59,.30) 55%, rgba(7,41,59,.68) 100%); }
/* Weicher Wellen-Schwung: Übergang vom Bild in die weiße Seite */
.pagehead::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,48C180,96,360,96,540,64C720,32,900,16,1080,40C1260,64,1380,72,1440,56L1440,101L0,101Z' fill='%23FBF9F4'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.pagehead__inner { color: #fff; position: relative; z-index: 2; }
.pagehead .kicker { color: var(--cream); }
.pagehead__title { font-family: var(--font-name); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.2rem); color: #fff; letter-spacing: .01em; }
.pagehead__lead { color: rgba(243,238,226,.92); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 48ch; margin-top: 1rem; }

/* =========================================================
   INHALTS-BAUSTEINE
   ========================================================= */
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); }
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--turq-deep); }

/* Karten-Raster */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__no { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--turq); color: var(--turq-dk); font-family: var(--font-display); margin-bottom: 1rem; }
.card h3 { font-size: 1.35rem; color: var(--turq-deep); margin-bottom: .5rem; }
.card p { color: var(--ink-soft); margin: 0; }
.card .tag { display: inline-block; margin-top: 1rem; font-size: .78rem; letter-spacing: .04em; color: var(--turq-dk); background: rgba(127,185,200,.16); padding: .25rem .7rem; border-radius: 999px; }

/* Über mich: Foto + Text */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .about { grid-template-columns: 0.85fr 1.15fr; } }
.about__photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.about__photo-wrap { position: relative; }
.about__photo-cap { font-size: .82rem; color: var(--ink-soft); margin-top: .7rem; }
.quali { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.quali li { padding: .35rem 0 .35rem 1.6rem; position: relative; color: var(--ink); }
.quali li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 8px; height: 8px; border-radius: 50%; background: var(--turq); }

/* Zeitleiste (Werdegang) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.6rem 2.4rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: .5rem; width: 14px; height: 14px; border-radius: 50%; background: var(--turq); border: 3px solid var(--paper); }
.timeline .year { font-family: var(--font-display); color: var(--turq-dk); font-size: 1.05rem; }
.timeline .what { display: block; color: var(--ink); }
.timeline .where { display: block; color: var(--ink-soft); font-size: .9rem; }

/* Hinweis / Disclaimer */
.note { background: rgba(127,185,200,.12); border-left: 3px solid var(--turq); border-radius: 10px; padding: 1.2rem 1.4rem; color: var(--ink-soft); font-size: .95rem; }

/* Institut: Kursprogramm-Katalog (Lernportal-Stil) */
.cat { margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }
.cat__label { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--turq-dk); margin: 0 0 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.card__meta { display: inline-flex; align-items: center; gap: .5rem; margin: .1rem 0 .9rem; font-size: .85rem; font-weight: 600; color: var(--turq-dk); }
.card__meta svg { width: 17px; height: 17px; flex-shrink: 0; }
.card__foot { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.card__link { font-weight: 600; color: var(--turq-dk); text-decoration: none; white-space: nowrap; }
.card__link:hover { color: var(--turq-deep); }

/* Ablauf-Schritte „So funktioniert das Lernportal" */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow); }
.steps .ic { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(127,185,200,.16); color: var(--turq-dk); margin-bottom: .9rem; }
.steps .ic svg { width: 22px; height: 22px; }
.steps h3 { font-size: 1.15rem; color: var(--turq-deep); margin-bottom: .4rem; }
.steps p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* =========================================================
   RECHTSTEXTE (Impressum / Datenschutz)
   ========================================================= */
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--turq-deep); margin: 2.6rem 0 .8rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.12rem; color: var(--turq-dk); margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { margin: 0 0 1.2rem; padding-left: 1.25rem; }
.legal li { margin-bottom: .45rem; }
.legal address { font-style: normal; line-height: 1.9; }
.legal a { color: var(--turq-dk); }
/* Gelb markierte Platzhalter: hier MÜSSEN Tanjas echte Daten rein */
.fillin { background: #FFF3C4; border-bottom: 1px dashed #C9A227; padding: 0 .3rem; border-radius: 3px; color: #6b5400; font-style: normal; }
.legal__hint { background: #FFF8E1; border: 1px solid #EBD27A; border-left: 4px solid #C9A227; border-radius: 12px; padding: 1.2rem 1.4rem; color: #6b5400; margin-bottom: 2.4rem; }
.legal__hint strong { color: #5a4500; }
.legal__date { color: var(--ink-soft); font-size: .9rem; margin-top: 2.6rem; }

/* CTA-Band */
.cta { text-align: center; }
.cta__title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--turq-deep); }
.cta__text { color: var(--ink-soft); max-width: 46ch; margin: 1rem auto 2rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--turq-deep); color: rgba(243,238,226,.8); padding: 3rem 0 2.5rem; font-size: .9rem; }
.footer a { color: rgba(243,238,226,.9); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.footer__brand { font-family: var(--font-display); font-size: 1.2rem; color: #fff; }
.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer .ph { opacity: .6; }
.footer__legal { max-width: 70ch; line-height: 1.6; opacity: .8; border-top: 1px solid rgba(243,238,226,.18); padding-top: 1.2rem; }

/* =========================================================
   REVEAL (sichtbar ohne JS; JS macht sanftes Einblenden)
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav__logo, .nav.is-scrolled .nav__logo { height: 46px; }
  .nav__toggle { display: flex; }
  /* Menü klappt als Panel unter der Leiste auf */
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .4rem clamp(1.25rem, 4vw, 3rem) 1.3rem;
    background: rgba(251,249,244,.97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 22px 34px -22px rgba(31,90,104,.45);
    opacity: 0; transform: translateY(-12px); pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: .95rem .25rem; font-size: 1.05rem; border-bottom: 1px solid rgba(31,90,104,.1); }
  .nav__links a:not(.nav__cta)::after { display: none; }
  .nav__cta { text-align: center; margin-top: .9rem; padding: .85rem; border-bottom: 0; }
  .pagehead { min-height: 44vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
