/* ==========================================================================
   YogaPänz – Grundlagen: Schrift, Farbtoken, Reset, Typografie
   Klare, luftige Gestaltung: leichte Nunito-Überschriften, eckige Flächen,
   viel Weißraum. Farbwelt aus Logo-Grün, beerenroter Studiowand und Holzton.
   ========================================================================== */

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin-var.woff2') format('woff2-variations');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  /* Farben */
  --ink: #1f1a1c;
  --ink-soft: #4d4649;
  --ink-muted: #6a6366;
  --plum: #521d27;
  --plum-tint: #faeff1;
  --leaf: #c9e265;
  --leaf-soft: #e4f0b8;
  --leaf-deep: #4f6610;
  --cream: #faf7f2;
  --sand: #f7f3ec;
  --mist: #f2f7e8;
  --paper: #ffffff;
  --line: #e7e2dc;
  --error: #9a1b2e;
  --error-light: #ffc9d1;
  --ok: #2f6b3a;

  /* Kontextfarben – werden in dunklen Sektionen umgesetzt */
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --bg: var(--paper);
  --rule: var(--line);
  --focus: var(--plum);

  /* Typografie */
  --font-display: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.32rem + 0.65vw, 1.95rem);
  --step-3: clamp(1.8rem, 1.55rem + 1.25vw, 2.7rem);
  --step-4: clamp(2.15rem, 1.7rem + 2.2vw, 3.6rem);
  --step-5: clamp(2.5rem, 1.85rem + 3.2vw, 4.75rem);

  /* Raum */
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  --wrap: 78rem;
  --measure: 38rem;

  /* Formen: klare, eckige Flächen; das Lotusblatt bleibt als kleines Motiv in Listen */
  --petal: 0;
  --petal-sm: 0;
  --radius: 0.125rem;

  /* Fotos: weich gerundetes Blattformat, nur für Bilder */
  --photo-corner: 6rem 0.75rem 6rem 0.75rem;
  --photo-corner-sm: 2.75rem 0.5rem 2.75rem 0.5rem;

  --shadow-soft: 0 1.25rem 3rem -1.5rem rgba(36, 17, 24, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.7;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
  margin: 0 0 var(--space-s);
  color: var(--fg);
}

h1 {
  font-size: var(--step-5);
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.25;
}

h4 {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
}

p,
ul,
ol,
dl,
figure,
table,
blockquote {
  margin: 0 0 var(--space-m);
}

:where(p, li) {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

strong,
b {
  font-weight: 800;
}

small {
  font-size: var(--step--1);
}

blockquote {
  margin-inline: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--space-l) 0;
}

address {
  font-style: normal;
}

/* --- Wiederkehrende Textbausteine ------------------------------------- */

.lead {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 34ch;
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: var(--space-m);
}

.prose > :last-child {
  margin-bottom: 0;
}

.overline {
  display: inline-block;
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-bottom: var(--space-s);
}

.skip-link {
  position: absolute;
  left: var(--space-s);
  top: var(--space-s);
  z-index: 100;
  transform: translateY(-160%);
  background: var(--plum);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--leaf);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Listen mit Lotusblatt statt Punkt */
.leaf-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}

.leaf-list li {
  position: relative;
  padding-left: 2rem;
}

.leaf-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.1rem;
  height: 0.7rem;
  background: var(--leaf);
  border: 1.5px solid var(--ink);
  border-radius: 100% 0 100% 0;
}
