/* Schrift Archivo, lokal gehostet */
@font-face{font-family:'Archivo';font-style:normal;font-weight:100 900;font-display:swap;src:url(../assets/fonts/archivo-latin-ext.woff2?v=a999e009fd) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Archivo';font-style:normal;font-weight:100 900;font-display:swap;src:url(../assets/fonts/archivo-latin.woff2?v=7150c0ec5a) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* YOGA8 – Basis-Stylesheet
   Farben und Typografie folgen dem Design (Archivo, Lila/Flieder, Akzent Pink). */

:root {
  --lilac: #D4BEEF;
  --lilac-deep: #C3A6E8;
  --ink: #2B2B29;
  --plum: #2A0E4F;
  --violet: #541696;
  --accent: #E86785;
  --paper: #F6EEFF;
  --paper-soft: #E9DDF5;
  --max: 1280px;
  --gutter: 40px;
  --section-y: 112px;
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --section-y: 72px; }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--lilac);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--plum); }
a:hover { color: var(--violet); }

img { max-width: 100%; height: auto; display: block; }
/* Logo-<picture> soll das Layout nicht verändern (AVIF mit PNG-Rückfall) */
picture.logo-bild { display: contents; }

h1, h2, h3, h4 { margin: 0; font-weight: 900; text-transform: uppercase; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--plum); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 800;
}
.skip-link:focus { left: 16px; }

/* ---------- Header / Navigation ---------- */
.site-header { padding-top: 20px; position: relative; z-index: 20; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header .wrap { justify-content: flex-end; }
.brand { margin-right: auto; display: block; flex: 0 1 auto; min-width: 0; transition: transform .25s ease; }
.brand img { width: clamp(190px, 34vw, 500px); }
.brand:hover { transform: scale(1.02); }
.brand:focus-visible { outline: 3px solid var(--plum); outline-offset: 6px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 28px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 12px 0;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: var(--plum); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 16px; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; min-height: 44px;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav-toggle { transition: background .2s ease, color .2s ease, border-color .2s ease; }
  .nav-toggle[aria-expanded="true"] { background: var(--plum); border-color: var(--plum); color: var(--paper); }
  .site-nav {
    display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--plum); color: var(--paper); padding: 8px 24px 24px; margin-top: 12px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    color: var(--paper); padding: 16px 0; border-top: 1px solid rgba(246, 238, 255, .35);
    font-weight: 900; font-size: 24px; line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em;
  }
  .site-nav a:not(.btn):first-child { border-top: 0; }
  .site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a.btn { margin-top: 12px; min-height: 56px; background: var(--accent); color: var(--ink); font-weight: 900; font-size: 18px; }
  .site-nav a.btn:hover { background: var(--accent); color: var(--ink); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 34px;
  background: var(--accent); color: var(--ink); font-weight: 900; font-size: 18px;
  text-decoration: none; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); }
.btn.btn-dark { background: var(--plum); color: var(--paper); }
.btn.btn-dark:hover { color: var(--paper); background: var(--violet); }
.btn.btn-small { min-height: 46px; padding: 0 22px; font-size: 16px; font-weight: 800; }
.link-quiet { color: var(--ink); font-weight: 600; font-size: 17px; padding: 12px 0; }
.link-quiet.on-dark { color: var(--paper); font-weight: 800; }
.link-quiet.on-dark:hover { color: var(--accent); }

/* ---------- Typografie-Bausteine ---------- */
.eyebrow { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); }
.on-dark .eyebrow, .eyebrow.accent { color: var(--accent); }
.display { margin: 0; font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 6.2vw, 90px); line-height: .96; letter-spacing: -.035em; }
.h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; }
.h2 .violet { color: var(--violet); }
.h2 .plum { color: var(--plum); }
.h2 .accent { color: var(--accent); }
.lead { margin: 0; max-width: 560px; font-size: 21px; line-height: 1.5; text-wrap: pretty; }
.lead-20 { margin: 0; max-width: 520px; font-size: 20px; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ---------- Sektionen ---------- */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); display: flex; flex-direction: column; gap: 64px; }
.section-dark { background: var(--plum); color: var(--paper); }
.section-dark p { color: var(--paper-soft); }
.section-dark a { color: var(--paper); }
.section-dark a:hover { color: var(--accent); }
.section-accent { background: var(--accent); color: var(--ink); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.section-head > * { flex: 1 1 380px; min-width: 0; }
.section-head > .h2 { flex: 1 1 480px; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.grid { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-tight { gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.grid-two { gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }

.cell { border-top: 2px solid currentColor; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.cell h3 { font-size: 26px; letter-spacing: -.01em; }
.cell p { margin: 0; }
.cell .num { font-weight: 900; font-size: 104px; line-height: 1; letter-spacing: -.04em; color: var(--violet); }
.cell .num-small { font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -.04em; color: var(--plum); }
.cell.phase h3 { font-size: 30px; line-height: 1.1; }
.cell.limb { padding-top: 16px; gap: 6px; }
.cell.limb h3 { font-size: 24px; }
.cell.limb p { font-size: 17px; }

/* ---------- Hero ---------- */
.hero { padding-top: 32px; position: relative; }
.hero-logo { width: 100%; max-width: 1200px; }
.hero-body { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; }
.hero-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-visual { flex: 0 1 440px; min-width: 0; position: relative; padding: 0 0 36px 36px; }
.orb {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; position: relative;
  background: var(--plum);
}
/* Mandala als eigene Ebene (1180 x 664 px wie zuvor die Hintergrundgröße), mittig */
.orb::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1180px; height: 664px;
  margin: -332px 0 0 -590px;
  background: url(../assets/img/mandala.jpg?v=dcc9653421) 0 0 / 100% 100% no-repeat;
  /* Moderne Browser laden das kleinere AVIF, ältere bleiben beim JPEG aus der Zeile davor */
  background-image: image-set(url(../assets/img/mandala.avif?v=cf122ee79a) type("image/avif"), url(../assets/img/mandala.jpg?v=dcc9653421) type("image/jpeg"));
  will-change: transform;
}
/* Langsame Wanderbewegung über transform statt background-position (läuft auf der Grafikkarte) */
@keyframes y8drift { from { transform: translate(260px, 60px); } to { transform: translate(-260px, -60px); } }
.orb.y8-drift::before { animation: y8drift 48s ease-in-out infinite alternate; }
.orb canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.badge {
  position: absolute; left: 0; bottom: 0; width: 172px; height: 172px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
}
.badge .badge-label { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.badge .badge-num { font-weight: 900; font-size: 96px; line-height: .9; letter-spacing: -.04em; }
.badge .badge-num.badge-num-small { font-size: 58px; line-height: 1; }
@media (max-width: 720px) {
  .hero-visual { padding: 0 0 28px 28px; }
  .badge { width: 136px; height: 136px; }
  .badge .badge-num { font-size: 74px; }
  .badge .badge-num.badge-num-small { font-size: 44px; }
}

.facts {
  margin-top: 64px; border-top: 2px solid var(--ink); padding: 24px 0 72px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px 48px;
}
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: .01em; }
.facts span { font-size: 16px; }

/* ---------- Claim-Band ---------- */
.claim { margin: 0; padding: 30px var(--gutter); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(22px, 2.8vw, 38px); line-height: 1.15; text-align: center; text-wrap: balance; }

/* ---------- Mandala-Streifen ---------- */
.mandala-strip { height: 200px; background: url(../assets/img/mandala.jpg?v=dcc9653421) 50% 0% / cover no-repeat; opacity: .75;
  background-image: image-set(url(../assets/img/mandala.avif?v=cf122ee79a) type("image/avif"), url(../assets/img/mandala.jpg?v=dcc9653421) type("image/jpeg")); }
@media (max-width: 720px) { .mandala-strip { height: 120px; } }

/* ---------- Kurs-Karten ---------- */
.card { background: var(--plum); color: var(--paper); padding: 44px 44px 40px; display: flex; flex-direction: column; gap: 20px; }
.card h3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--paper-soft); }
.card .rows { margin-top: auto; display: flex; flex-direction: column; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-top: 1px solid var(--paper); }
.card .row:first-child { border-top-width: 2px; }
.card .row strong { font-weight: 800; }
.card .row span { text-align: right; }
.card .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 720px) { .card { padding: 32px 24px 28px; } }

/* ---------- Über ---------- */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; }
.about-photo {
  flex: 0 1 380px; min-width: 0; aspect-ratio: 4 / 5; background: var(--lilac-deep); border: 2px dashed var(--plum);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  color: var(--plum); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 15px;
}
.about-photo picture { display: block; width: 100%; height: 100%; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo.has-img { padding: 0; border: 0; background: var(--plum); overflow: hidden; }
.about-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-copy .h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; }
.about-copy a.inline { align-self: flex-start; font-weight: 800; padding: 12px 0; }
.teacher { margin-top: 8px; max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.teacher dl { margin: 0; }
.teacher dl div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--ink); }
.teacher dl div:first-child { border-top-width: 2px; }
.teacher dt { font-weight: 800; }
.teacher dd { margin: 0; text-align: right; }
@media (max-width: 520px) { .teacher dd { text-align: left; } }

/* ---------- Kontakt ---------- */
.contact { align-items: flex-start; gap: 36px; }
.contact .display { font-size: clamp(44px, 7.2vw, 104px); }
.contact-grid { width: 100%; max-width: 900px; display: grid; gap: 32px 48px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.contact-grid .cell { padding-top: 16px; gap: 8px; }
.contact-grid .cell h3 { font-size: 22px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- Kontaktformular ---------- */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px 32px; max-width: 900px; width: 100%; }
.form-row { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-row-full { grid-column: 1 / -1; }
.form label { font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; min-height: 56px; padding: 14px 18px; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 14px;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--plum); outline-offset: 2px; }
.form-check { flex-direction: row; align-items: flex-start; gap: 14px; }
.form-check input { width: 24px; height: 24px; margin: 4px 0 0; flex: 0 0 auto; accent-color: var(--plum); }
.form-check label { font-weight: 500; font-size: 16px; letter-spacing: 0; text-transform: none; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form-note { margin: 0; padding: 18px 22px; background: var(--plum); color: var(--paper); border-radius: 14px; font-weight: 600; max-width: 900px; }
.form-note.is-error { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--lilac); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 48px; }
.site-footer .footer-logo { width: 100%; max-width: 620px; }
.footer-row { border-top: 2px solid var(--ink); padding-top: 24px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 64px; }
.footer-row p { margin: 0; font-size: 16px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-row nav a { color: var(--ink); font-weight: 600; font-size: 16px; padding: 12px 0; }
.follow { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; padding: 4px 0; }
.follow:hover { color: var(--plum); }
.follow-icon {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--plum); color: var(--paper);
  /* Farbe weich wechseln, Drehung langsam mit leichtem Nachfedern */
  transition: background-color .45s ease, color .45s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
.follow:hover .follow-icon, .follow:focus-visible .follow-icon { background: var(--accent); color: var(--ink); transform: rotate(-12deg) scale(1.06); }
.follow-text { display: flex; flex-direction: column; line-height: 1.25; }
.follow-text strong { font-weight: 900; font-size: 18px; text-transform: uppercase; letter-spacing: .01em; }
.follow-text span { font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .follow-icon { transition: background-color .3s ease, color .3s ease; }
  .follow:hover .follow-icon { transform: none; }
}
.follow:focus-visible { outline: 3px solid var(--plum); outline-offset: 4px; border-radius: 999px; }

/* ---------- Unterseiten ---------- */
.page-hero { padding-top: 56px; padding-bottom: 0; gap: 24px; }
.page-hero .display { font-size: clamp(40px, 6vw, 84px); }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; letter-spacing: -.01em; margin-top: 48px; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose p, .prose ul { margin: 12px 0 0; }
.prose ul { padding-left: 22px; }
.prose address { font-style: normal; }
.section-top { padding-top: 48px; }
.map-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; padding: 12px 0; }

/* ---------- Animationen (GSAP setzt die Endwerte) ---------- */
@keyframes y8-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes y8-lift { from { transform: translateY(18px); } to { transform: none; } }

/* Nur wenn JavaScript aktiv ist, starten Elemente versteckt (sonst bleiben sie einfach sichtbar) */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(28px); }

  /* Oberer Bereich: sofort per CSS einblenden. Wartet nicht auf GSAP, damit die Seite
     am Handy schnell sichtbar ist (PageSpeed: Largest Contentful Paint). */
  .hero .reveal, .page-hero .reveal {
    opacity: 1; transform: none;
    animation: y8-rise .8s cubic-bezier(.2, .7, .2, 1) both;
  }
  /* Logo und Hauptüberschrift sind von Anfang an sichtbar und gleiten nur leicht nach oben */
  .hero .hero-logo.reveal, .hero .display.reveal, .page-hero h1.reveal { animation-name: y8-lift; }
  .hero-copy > .reveal:nth-child(1), .page-hero > .reveal:nth-child(1) { animation-delay: .06s; }
  .hero-copy > .reveal:nth-child(2), .page-hero > .reveal:nth-child(2) { animation-delay: .12s; }
  .hero-copy > .reveal:nth-child(3), .page-hero > .reveal:nth-child(3) { animation-delay: .2s; }
  .hero-copy > .reveal:nth-child(4) { animation-delay: .28s; }
  .hero-visual.reveal { animation-delay: .2s; }
  .facts > .reveal:nth-child(1) { animation-delay: .32s; }
  .facts > .reveal:nth-child(2) { animation-delay: .4s; }
  .facts > .reveal:nth-child(3) { animation-delay: .48s; }
}

/* WebGL-Mandala weich über die CSS-Ebene blenden */
.orb canvas { opacity: 0; transition: opacity .9s ease; }
.orb canvas.is-ready { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .orb.y8-drift::before { animation: none; }
}

/* ---------- Three.js Hintergrund ---------- */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55; }
.site { position: relative; z-index: 1; }
