/* ============================================================
   PHYSIO PILATES PRAXIS — Andrea Kovarova, Zürich-Affoltern
   Archetyp: Split-Screen — fixe Identitäts-Spalte links,
   Inhalt scrollt rechts. Signatur: scroll-gezeichnete Atemlinie.
   Palette: Alabaster + warmes Kohle + Pflaume (Quiet Studio)
   Typo: Playfair Display (Display-Serif) + Karla (Text)
   ============================================================ */

:root {
  --ink: #211d19;
  --ink-soft: #4a423b;
  --alabaster: #f4efe8;
  --porcelain: #fbf8f4;
  --blush: #e9dcd4;
  --plum: #6e4655;
  --plum-deep: #56333f;
  --line: rgba(33, 29, 25, 0.16);
  --panel-w: 400px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--plum); }
a:hover { color: var(--plum-deep); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
h3 { font-size: 1.4rem; }
h1 em, h2 em { font-style: italic; color: var(--plum); }

.mask-line { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.mask-line > span { display: inline-block; will-change: transform; }

/* ---------- Split-Shell ---------- */
.shell { display: grid; grid-template-columns: var(--panel-w) 1fr; min-height: 100vh; }

/* Linke Identitäts-Spalte (Signatur des Designs) */
.panel {
  position: sticky; top: 0; height: 100vh; align-self: start;
  background: var(--alabaster); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.8rem, 3vh, 2.8rem) clamp(1.6rem, 2.4vw, 2.6rem);
  overflow: hidden;
}
.panel-brand { position: relative; z-index: 1; }
.panel-brand .brand-title { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.12; color: var(--ink); text-decoration: none; display: block; }
.panel-brand .brand-title em { font-style: italic; color: var(--plum); }
.panel-brand p { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.7rem; }
.panel-nav { position: relative; z-index: 1; display: grid; gap: 0.35rem; }
.panel-nav a {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--ink);
  text-decoration: none; padding: 0.28rem 0; display: flex; align-items: baseline; gap: 0.7rem;
  transition: color 0.18s ease, transform 0.18s ease;
}
.panel-nav a i { font-style: normal; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--plum); }
.panel-nav a:hover { color: var(--plum); transform: translateX(6px); }
.panel-nav a[aria-current="page"] { color: var(--plum); font-style: italic; }
.panel-foot { position: relative; z-index: 1; display: grid; gap: 0.9rem; }
.panel-foot .btn { justify-content: center; }
.panel-contact { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }
.panel-contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.panel-contact a:hover { color: var(--plum); border-color: var(--plum); }
/* Atemlinie im Panel */
.panel-breath { position: absolute; inset: auto -40px -30px auto; width: 280px; opacity: 0.5; pointer-events: none; }
.panel-breath path { stroke: var(--plum); stroke-width: 1.4; fill: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.86rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.95rem 1.6rem; border: 1px solid var(--ink); border-radius: 0;
  color: var(--ink); background: transparent; text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--porcelain); }
.btn-solid:hover { background: var(--plum-deep); border-color: var(--plum-deep); color: var(--porcelain); }
.btn-plum { background: var(--plum); border-color: var(--plum); color: var(--porcelain); }
.btn-plum:hover { background: var(--plum-deep); border-color: var(--plum-deep); color: var(--porcelain); }
.btn-ghost:hover { background: var(--ink); color: var(--porcelain); }

/* ---------- Mobile Top-Bar (ersetzt Panel unter 1000px) ---------- */
.mobile-bar {
  display: none; position: sticky; top: 0; z-index: 50;
  background: var(--alabaster); border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.2rem; align-items: center; justify-content: space-between; gap: 1rem;
}
.mobile-bar .brand-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.mobile-bar .brand-title em { font-style: italic; color: var(--plum); }
.mobile-nav { display: none; background: var(--alabaster); border-bottom: 1px solid var(--line); padding: 1rem 1.2rem 1.4rem; }
.mobile-nav.open { display: grid; gap: 0.7rem; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); display: block; }

/* ---------- Rechte Inhalts-Spalte ---------- */
.content { min-width: 0; }
.section { padding: clamp(3.6rem, 8vh, 6.5rem) clamp(1.4rem, 5vw, 4.5rem); position: relative; }
.section-tag { display: flex; align-items: center; gap: 0.8rem; font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--plum); margin-bottom: 1.4rem; }
.section-tag::before { content: ""; width: 34px; height: 1px; background: var(--plum); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 38rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0 clamp(1.4rem, 5vw, 4.5rem); }

/* Atemlinien-Trenner (wird beim Scrollen gezeichnet) */
.breathline { display: block; width: min(520px, 80%); margin: 0 auto; padding: 1.6rem 0 0.4rem; }
.breathline path { stroke: var(--plum); stroke-width: 1.3; fill: none; opacity: 0.65; }

/* ---------- Hero ---------- */
.hero { min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero-label { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--plum); margin-bottom: 1.6rem; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 3.2rem; }
.hero-meta div { border-top: 1px solid var(--line); padding-top: 0.8rem; min-width: 130px; }
.hero-meta b { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; display: block; }
.hero-meta span { font-size: 0.82rem; color: var(--ink-soft); }
.hero-figure { position: absolute; right: clamp(1.4rem, 5vw, 4.5rem); top: 50%; transform: translateY(-50%); width: clamp(200px, 24vw, 330px); }
.hero-figure .media-ph { aspect-ratio: 3/4.2; }

/* Medien-Platzhalter (Higgsfield/Fotos) */
.media-ph {
  background: linear-gradient(160deg, var(--blush), var(--alabaster));
  border: 1px solid var(--line); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 0.82rem; letter-spacing: 0.06em; line-height: 1.5; padding: 1rem;
}

/* ---------- Philosophie ---------- */
.philo { background: var(--alabaster); }
.philo blockquote { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-style: italic; line-height: 1.3; max-width: 26ch; }
.philo cite { display: block; font-style: normal; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum); margin-top: 1.4rem; }

/* ---------- Angebots-Index (editoriale Liste) ---------- */
.offer-list { border-top: 1px solid var(--line); margin-top: 1.4rem; }
.offer-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: baseline;
  padding: 1.5rem 0.2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: background 0.18s ease, padding-left 0.18s ease;
}
.offer-row:hover { background: rgba(110, 70, 85, 0.05); padding-left: 0.9rem; color: var(--ink); }
.offer-row i { font-style: italic; font-family: var(--font-display); color: var(--plum); font-size: 1.05rem; min-width: 2.2rem; }
.offer-row h3 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); font-weight: 500; }
.offer-row p { grid-column: 2; font-size: 0.95rem; color: var(--ink-soft); max-width: 34rem; }
.offer-row .offer-note { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); white-space: nowrap; }

/* Karten für Detailseiten */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.detail-card { border: 1px solid var(--line); background: var(--porcelain); padding: 1.5rem 1.5rem 1.6rem; }
.detail-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.detail-card p { font-size: 0.93rem; color: var(--ink-soft); }
.detail-card .price { display: block; margin-top: 0.9rem; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--plum); }

/* ---------- Pilates-Sektion ---------- */
.pilates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.pilates-grid .media-ph { aspect-ratio: 4/4.6; }
.kurs-card { border: 1px solid var(--ink); margin-top: 1.8rem; }
.kurs-card dl { display: grid; }
.kurs-row { display: grid; grid-template-columns: 1fr 1.4fr; padding: 0.85rem 1.3rem; border-bottom: 1px solid var(--line); }
.kurs-row:last-of-type { border-bottom: 1px solid var(--ink); }
.kurs-row dt { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); align-self: center; }
.kurs-row dd { font-family: var(--font-display); font-size: 1.15rem; }
.kurs-card .btn { margin: 1.2rem 1.3rem 1.4rem; }

/* ---------- Über mich ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.about-grid .media-ph { aspect-ratio: 3/3.8; position: sticky; top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.6rem; }
.chip { border: 1px solid var(--line); padding: 0.4rem 0.95rem; font-size: 0.84rem; border-radius: 999px; background: var(--porcelain); }
.about-quote { font-family: var(--font-display); font-style: italic; font-size: 1.45rem; line-height: 1.4; color: var(--plum-deep); border-left: 2px solid var(--plum); padding-left: 1.3rem; margin: 1.6rem 0; }

/* ---------- Stimmen ---------- */
.voices { background: var(--ink); color: var(--alabaster); }
.voices .section-tag { color: var(--blush); }
.voices .section-tag::before { background: var(--blush); }
.voices h2 { color: var(--porcelain); }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.4rem; }
.voice-card { border: 1px solid rgba(244, 239, 232, 0.22); padding: 1.8rem 1.9rem; display: flex; flex-direction: column; gap: 1.1rem; }
.voice-card blockquote { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; line-height: 1.45; }
.voice-card cite { font-style: normal; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blush); }
.voice-score { display: flex; flex-wrap: wrap; gap: 2rem; align-items: baseline; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(244, 239, 232, 0.22); }
.voice-score b { font-family: var(--font-display); font-size: 2.4rem; color: var(--porcelain); }
.voice-score span { font-size: 0.85rem; color: rgba(244, 239, 232, 0.7); max-width: 26rem; }

/* ---------- Booking-Sektion (Startseite) ---------- */
.booking { background: var(--blush); }
.booking-inner { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.8rem, 4vw, 3rem); align-items: center; }
.booking-inner h2 { max-width: 16ch; }
.booking-inner p { margin-top: 1rem; color: var(--ink-soft); max-width: 30rem; }
.booking-box { border: 1px solid var(--ink); background: var(--porcelain); padding: 2rem; display: grid; gap: 0.9rem; }
.booking-box .btn { justify-content: center; }
.booking-box small { text-align: center; color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3rem); align-items: start; margin-top: 2rem; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.contact-list strong { display: block; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--plum); margin-bottom: 0.25rem; }
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--plum); border-color: var(--plum); }
.map-card { border: 1px solid var(--line); }
.map-card iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Booking-Seite ---------- */
.booking-card { border: 1px solid var(--ink); background: var(--porcelain); padding: clamp(1.8rem, 4vw, 2.8rem); max-width: 44rem; }
.booking-card p { margin: 0.9rem 0 1.5rem; color: var(--ink-soft); }
.booking-alt { margin-top: 1.5rem; font-size: 0.92rem; color: var(--ink-soft); }
.booking-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.2rem; max-width: 54rem; }
.booking-step { border-top: 1px solid var(--ink); padding-top: 0.9rem; font-size: 0.92rem; color: var(--ink-soft); }
.booking-step b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-bottom: 0.35rem; }

/* ---------- Footer (rechte Spalte) ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.2rem clamp(1.4rem, 5vw, 4.5rem) 2.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem; color: var(--ink-soft); }
.footer a { color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .panel { display: none; }
  .mobile-bar { display: flex; }
  .hero { min-height: 0; padding-top: 3.2rem; }
  .hero-figure { position: static; transform: none; width: min(320px, 70%); margin: 2.4rem 0 0; }
  .pilates-grid, .about-grid, .voice-grid, .booking-inner, .contact-grid { grid-template-columns: 1fr; }
  .about-grid .media-ph { position: static; max-width: 360px; }
  .booking-steps { grid-template-columns: 1fr; }
  .offer-row { grid-template-columns: auto 1fr; }
  .offer-row .offer-note { grid-column: 2; justify-self: start; white-space: normal; }
}

/* Feinschliff für schmale Handys */
@media (max-width: 480px) {
  h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .section { padding: 3rem 1.2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .booking-box .btn { width: 100%; justify-content: center; }
  .hero-meta { gap: 1.2rem; margin-top: 2.4rem; }
  .hero-figure { width: 100%; max-width: 300px; }
  .offer-row { gap: 0.9rem; padding: 1.2rem 0.2rem; }
  .voice-card { padding: 1.4rem 1.5rem; }
  .voice-card blockquote { font-size: 1.15rem; }
  .booking-box { padding: 1.4rem; }
  .kurs-row { grid-template-columns: 1fr; gap: 0.1rem; padding: 0.75rem 1.1rem; }
  .philo blockquote { font-size: 1.45rem; }
  .btn { padding: 0.85rem 1.2rem; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
