/* Glühwürmchen Yoga. Layout: a pastel opening, then calm white and off-white bands, a deep-toned contact area.
   Serif headings, highly legible body text. Two colour themes (green, purple) share every rule below. */
:root {
  color-scheme: light;
  /* Farbwelt "green" (Standard). "purple" steht direkt darunter. Umschalten in config.js: theme */
  --deep: #1f4435;
  --deep-2: #2c5c48;
  --brand-ink: #2f6a50;
  --brand: #7fb69b;
  --tint: #dcebe2;
  --tint-2: #eef5f0;
  --paper: #f7f8f5;
  --line: #d9e0db;
  --surface: #ffffff;
  --ink: #17212b;
  --ink-soft: #50606d;
  --gold: #e9bd4f;
  --gold-soft: #f8edcc;
  --night: var(--deep);
  --night-2: var(--deep-2);
  --accent: var(--brand-ink);
  --mist: var(--tint-2);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
  --radius: 14px;
}
:root[data-theme="purple"] {
  --deep: #352b57;
  --deep-2: #4a3d78;
  --brand-ink: #5d4c9a;
  --brand: #a597d6;
  --tint: #e6e0f5;
  --tint-2: #f3f0fa;
  --paper: #f8f7fb;
  --line: #dedbe8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.1875rem; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; max-width: 62ch; }
p, li, h1, h2, h3, legend { overflow-wrap: break-word; }
.legal { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
section { padding: 72px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.lead { font-size: 1.28rem; color: var(--ink-soft); }
.mt { margin-top: 12px; }
.note { margin-top: 24px; font-size: 1rem; color: var(--ink-soft); max-width: 74ch; }
.eyebrow { font-weight: 700; color: var(--accent); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.86rem; }
.hint { font-size: 0.95rem; color: var(--ink-soft); font-weight: 400; }

/* Buttons */
.btn { display: inline-block; font: 700 1.1rem var(--font-body); padding: 14px 24px; border-radius: 10px; border: 2px solid var(--night); background: var(--night); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.btn:hover { background: var(--night-2); border-color: var(--night-2); }
.btn.ghost { background: transparent; color: var(--night); }
.btn.ghost:hover { background: var(--surface); border-color: var(--night); }
.btn.small { font-size: 1rem; padding: 9px 18px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.linklike { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: var(--ink); }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { font: 600 1.3rem var(--font-display); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo { width: 40px; height: 40px; flex: none; }
nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 1.05rem; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
nav.main a:not(.btn):hover { background: var(--mist); }
nav.main a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
nav.main .btn { margin-left: 10px; white-space: nowrap; }
@media (max-width: 760px) { nav.main { width: 100%; overflow-x: auto; padding-bottom: 6px; } }

/* Start */
.hero { background: var(--tint); padding: 72px 0 80px; border-bottom: 1px solid var(--line); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; }
.callme { color: var(--ink-soft); font-size: 1.08rem; }
.callme a { font-weight: 700; white-space: nowrap; }
.hero-art { position: relative; width: 100%; max-width: 340px; justify-self: center; }
.hero-art.portrait { max-width: 290px; }
.hero-art.portrait svg, .hero-art.portrait .photo { width: 100%; aspect-ratio: 1; height: auto; border-radius: 50%; box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px var(--brand); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Sub pages */
.subhero { padding: 56px 0 60px; background: var(--surface); border-bottom: 1px solid var(--line); }
.subhero.slim { padding: 52px 0 36px; }
.subhero .hero-art { max-width: 300px; }
.disc { position: absolute; left: 50%; top: 4%; width: 84%; aspect-ratio: 1; margin-left: -42%; border-radius: 50%; background: var(--tint); }
.pose { position: relative; width: 100%; height: auto; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero-art { max-width: 220px; justify-self: start; } .hero-art.portrait { max-width: 180px; } }

/* Audience cards */
.aud-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.aud-card { display: flex; align-items: center; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.aud-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(20, 38, 58, 0.08); }
.aud-card svg { height: 150px; width: auto; flex: none; }
.aud-card div { display: flex; flex-direction: column; gap: 8px; }
.aud-card p { color: var(--ink-soft); font-size: 1.06rem; }
.aud-card .meta, .offer .meta { color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.more { font-weight: 700; margin-top: 2px; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 900px) { .aud-cards { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .aud-card { flex-direction: column; align-items: flex-start; } .aud-card svg { height: 120px; } }

/* Offers */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.offer ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
@media (max-width: 900px) { .offers { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: "0" counter(step); font: 600 1.5rem var(--font-display); color: var(--accent); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Day timeline */
.dayline-scroll { overflow-x: auto; margin-top: 28px; padding-bottom: 6px; }
.dayline { min-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.hours { position: relative; display: grid; grid-template-columns: repeat(11, 1fr); margin-left: 190px; font-size: 0.92rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours span:last-child { position: absolute; right: 0; top: 0; }
.lane { display: grid; grid-template-columns: 190px 1fr; align-items: center; }
.lane b { font: 600 1.05rem var(--font-display); padding-right: 14px; }
.track { display: grid; grid-template-columns: repeat(22, 1fr); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 11)), var(--mist); border-radius: 10px; min-height: 56px; padding: 6px 0; }
.track i { grid-column: var(--s) / var(--e); grid-row: 1; font-style: normal; font-size: 0.9rem; line-height: 1.2; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px 6px; margin: 0 2px; border-radius: 7px; background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); overflow: hidden; }
.track i.yoga { background: var(--gold-soft); color: var(--ink); font-weight: 700; border-color: var(--gold); }
.track i.alt { background: var(--night); color: #fff; border-color: var(--night); }

/* Benefits and tick lists */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 28px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; max-width: 50ch; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 13px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 820px) { .benefits { grid-template-columns: 1fr; gap: 32px; } }

/* Reviews */
.reviews { padding: 56px 0; }
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.score { font-weight: 700; color: var(--ink-soft); }
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; font-size: 1.1rem; }
.review figcaption { font-size: 0.98rem; color: var(--ink-soft); margin-top: auto; }
.stars-row { display: flex; gap: 2px; }
.stars-row svg { width: 20px; height: 20px; fill: #cfd4d8; }
.stars-row svg.on { fill: var(--gold); }
.invite { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.invite p { max-width: 60ch; }
@media (max-width: 900px) { .review-list { grid-template-columns: 1fr; } }

/* Feedback page */
.fb-section { padding-top: 36px; }
.stars { display: flex; gap: 6px; }
.stars label { cursor: pointer; padding: 4px; border-radius: 8px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars svg { width: 46px; height: 46px; fill: #cfd4d8; transition: fill .12s ease; }
.stars label.on svg { fill: var(--gold); }
.stars label:hover svg { fill: #f0c964; }
.stars input:focus-visible + svg { outline: 3px solid var(--brand-ink); outline-offset: 2px; border-radius: 6px; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choices label { font-weight: 400; display: flex; align-items: center; gap: 10px; }
.choices input { width: 22px; height: 22px; accent-color: var(--night); flex: none; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.quals { list-style: none; padding: 22px 24px; margin: 0; display: flex; flex-direction: column; gap: 12px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.quals li { padding-left: 20px; position: relative; }
.quals li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.quals strong { color: var(--ink); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 28px; } }

/* Try it: breathing and poses */
.try { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.breath-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin-top: 30px; }
.breath-stage { display: flex; align-items: center; justify-content: center; min-height: 250px; }
.breath-ring { width: 130px; height: 130px; border-radius: 50%; background: var(--gold); color: var(--ink); box-shadow: 0 0 0 14px rgba(233, 189, 79, 0.25), 0 0 44px 20px rgba(233, 189, 79, 0.25); display: flex; align-items: center; justify-content: center; font: 600 1.15rem var(--font-display); transition: transform 4s ease-in-out; }
.breath-ring.in { transform: scale(1.5); }
.breath-ring.out { transform: scale(1); transition-duration: 6s; }
.poses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.poses figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.poses svg { height: 170px; width: auto; align-self: center; }
.poses figcaption { display: flex; flex-direction: column; gap: 6px; }
.poses h3 { font-size: 1.15rem; }
.poses p { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 980px) { .poses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .breath-grid { grid-template-columns: 1fr; padding: 22px; } .breath-stage { min-height: 220px; } }
@media (max-width: 520px) { .poses { grid-template-columns: 1fr; } .poses figure { flex-direction: row; align-items: center; } .poses svg { height: 120px; flex: none; } }

/* Map */
.map-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: center; }
.regions { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.regions li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 16px; font-weight: 700; }
.map svg { width: 100%; height: auto; border-radius: var(--radius); background: var(--tint-2); border: 1px solid var(--line); }
.map .land { fill: var(--surface); stroke: var(--line); stroke-width: 1; stroke-linejoin: round; }
.map .home { fill: var(--tint); stroke: var(--brand); stroke-width: 1.5; stroke-linejoin: round; }
.map .dot { fill: var(--night); stroke: #fff; stroke-width: 3; }
.map .ring { fill: var(--gold); opacity: 0.55; transform-box: fill-box; transform-origin: center; }
.map text { font: 700 20px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
@media (max-width: 860px) { .map-grid { grid-template-columns: 1fr; } }

/* Prices */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan p { font-size: 1.02rem; color: var(--ink-soft); }
.plan .amount { font: 600 2rem var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 6px; }
.plan .per { font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.plan.main { border: 2px solid var(--night); }
.plan .tag { position: absolute; top: -14px; left: 16px; background: var(--night); color: #fff; font-weight: 700; font-size: 0.85rem; padding: 3px 12px; border-radius: 6px; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; margin-top: 28px; }
.faq div { display: flex; flex-direction: column; gap: 6px; }
.faq p { color: var(--ink-soft); }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* Contact and forms */
.contact { background: var(--night); color: #f2f5f8; }
.contact h2 { color: #fff; }
.contact .lead { color: #dbe6e0; }
.contact-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 44px; }
.contact-grid > * { min-width: 0; }
.direct { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 14px; font-size: 1.25rem; }
.direct span { display: block; font-size: 0.95rem; color: #dbe6e0; }
.direct a { color: #fff; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
form.plain { border: 1px solid var(--line); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend { font: 600 1.18rem var(--font-display); padding: 0; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--night); color: #fff; align-items: center; justify-content: center; font: 700 0.95rem var(--font-body); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 700; font-size: 1.02rem; }
input[type="text"], select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #84918c; border-radius: 8px; padding: 12px 14px; width: 100%; }
input[type="text"]:hover, select:hover, textarea:hover { border-color: var(--ink); }
textarea { min-height: 78px; resize: vertical; }
.form-error { color: #a12626; font-weight: 700; }
.result { background: var(--gold-soft); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.result pre { white-space: pre-wrap; font: inherit; font-size: 1rem; background: #fff; border-radius: 8px; padding: 14px; margin: 0; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } form { padding: 18px; } }

/* Choice buttons: audience, days, times */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .cal-days button, .cal-slots button, .cal-nav button { font: inherit; cursor: pointer; border: 1.5px solid #84918c; background: #fff; color: var(--ink); border-radius: 8px; min-height: 48px; }
.seg button { padding: 8px 16px; font-weight: 700; }
.seg button:hover, .cal-days button:hover:not(:disabled), .cal-slots button:hover, .cal-nav button:hover:not(:disabled) { border-color: var(--ink); }
.seg button[aria-pressed="true"], .cal-days button[aria-pressed="true"], .cal-slots button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; font-weight: 700; }
.cal-days button[aria-pressed="true"] small { color: #dbe6e0; }
.cal { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cal-nav strong { font: 600 1.08rem var(--font-display); text-align: center; }
.cal-nav button { width: 48px; font-size: 1.5rem; line-height: 1; }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cal-days button { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; line-height: 1.2; }
.cal-days button small { font-size: 0.85rem; color: var(--ink-soft); }
.cal-days button b { font: 700 1.3rem var(--font-body); font-variant-numeric: tabular-nums; }
.cal-days button:disabled { background: transparent; border-style: dashed; color: #9aa5a0; cursor: default; }
.cal-days button:disabled small { color: #9aa5a0; }
.cal-slots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 48px; }
.cal-slots button { padding: 8px 16px; font-variant-numeric: tabular-nums; }
.cal-slots span { color: var(--ink-soft); font-size: 1rem; }
.cal-picked { background: var(--gold-soft); border-radius: 8px; padding: 10px 14px; font-weight: 700; max-width: none; }
.cal-picked .linklike { font-weight: 400; margin-left: 6px; }

/* Footer */
footer { padding: 30px 0 44px; font-size: 1rem; color: var(--ink-soft); background: var(--surface); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; font: 600 1.1rem var(--font-display); color: var(--ink); }
.foot-brand small { display: block; font: 400 0.95rem var(--font-body); color: var(--ink-soft); }
footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 72px; }
.legal h1 { font-size: 2.2rem; margin: 18px 0 8px; }
.legal h2 { font-size: 1.4rem; margin: 34px 0 8px; }
.legal p, .legal ul { margin: 0 0 12px; max-width: none; }
.legal ul { padding-left: 1.2em; }
.legal .todo { background: var(--gold-soft); border-radius: 4px; padding: 0 5px; }

/* Motion: only when html has class "anim" (set by app.js; off with features.animations = false) */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.anim .reveal:not(.in) { opacity: .4; transform: translateY(14px); }
.anim .map .ring { animation: ping 3.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .reveal, .breath-ring, .aud-card, .stars svg { transition: none; }
}
