/* =====================================================================
   Mia Beauty Spa — miabeautyspa.at
   Vier bildschirmfüllende Abschnitte, kein Seiten-Scrollen.
   Haltung: Qualität, Erfahrung, Ausstattung.
   Ohne JavaScript fällt alles auf eine normal scrollbare Seite zurück.
   ===================================================================== */

:root {
  --sand-50: #fdfbf9;
  --sand-100: #f8f3ee;
  --sand-200: #f1e8df;
  --sand-300: #e4d5c7;

  --brown-900: #241a15;
  --brown-800: #33241d;
  --brown-700: #4a382e;
  --brown-500: #7a6659;
  --brown-400: #9a8578;

  --rose-700: #8f4f58;
  --rose-600: #a95f68;
  --rose-500: #c1808a;
  --rose-300: #e0b5b0;
  --rose-100: #f6e5e2;

  --gold: #c8a06a;

  --white: #fff;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(36, 26, 21, .06);
  --shadow: 0 8px 30px rgba(36, 26, 21, .10);
  --shadow-lg: 0 24px 60px rgba(36, 26, 21, .22);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  --bar: 70px;              /* Höhe der Kopfleiste */
  --ease: cubic-bezier(.22, .68, .16, 1);
  --tap: 48px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sand-100);
  color: var(--brown-800);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Kein Seiten-Scrollen — aber nur, wenn die Steuerung wirklich läuft. */
html.js, html.js body { height: 100%; overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; color: var(--brown-900); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 7.4vw, 5.4rem); letter-spacing: -.015em; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.02rem; letter-spacing: .005em; }
p { margin: 0; }

a { color: var(--rose-700); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--rose-500); outline-offset: 3px; border-radius: 6px; }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: 12px 18px; background: var(--brown-900); color: var(--sand-100);
  border-radius: var(--radius);
}

/* ------------------------------------------------------------ Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-size: .97rem; font-weight: 600; cursor: pointer; text-align: center;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.99); }

.btn--primary { background: linear-gradient(135deg, var(--rose-600), var(--rose-700)); color: var(--white); box-shadow: var(--shadow); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
/* Lichtreflex beim Überfahren */
.btn--primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost { background: rgba(255,255,255,.72); border-color: var(--sand-300); color: var(--brown-700); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--white); border-color: var(--rose-300); }

.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1.02rem; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------ Kopfleiste */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(253, 251, 249, .78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sand-200);
  transition: background .7s var(--ease), border-color .7s var(--ease);
}

/* Über dem dunklen Abschnitt kippt die Leiste mit — sonst steht dort ein
   grauer Balken. */
body[data-panel='qualitaet'] .topbar {
  background: rgba(30, 21, 17, .62);
  border-bottom-color: rgba(255, 255, 255, .10);
}
body[data-panel='qualitaet'] .brand,
body[data-panel='qualitaet'] .brand-name { color: var(--sand-100); }
body[data-panel='qualitaet'] .nav a { color: rgba(241, 232, 223, .82); }
body[data-panel='qualitaet'] .nav a:hover,
body[data-panel='qualitaet'] .nav a[aria-current='true'] { color: var(--white); }
body[data-panel='qualitaet'] .burger span { background: var(--sand-200); }
body[data-panel='qualitaet'] .dots span { background: rgba(241, 232, 223, .34); }
body[data-panel='qualitaet'] .dots button[aria-current='true'] span {
  background: var(--gold); box-shadow: 0 0 0 4px rgba(200, 160, 106, .22);
}
body[data-panel='qualitaet'] .dots em {
  color: rgba(241, 232, 223, .85) !important;
  text-shadow: 0 1px 3px rgba(20, 14, 11, .9);
}
body[data-panel='qualitaet'] .mobile-nav {
  background: rgba(30, 21, 17, .97);
  border-top-color: rgba(255, 255, 255, .12);
}
body[data-panel='qualitaet'] .mobile-nav a:not(.btn) {
  color: var(--sand-100); border-bottom-color: rgba(255, 255, 255, .12);
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 20px; min-height: var(--bar);
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--brown-900); transition: color .7s var(--ease); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; flex: none; border-radius: 12px;
  background: linear-gradient(140deg, var(--rose-500), var(--rose-700));
  color: var(--white); display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: inherit; transition: color .7s var(--ease); }
.brand-sub {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--brown-400); font-weight: 600;
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nav { display: none; margin-left: auto; gap: 30px; }
.nav a { color: var(--brown-700); font-size: .94rem; font-weight: 500; position: relative; padding: 6px 0; transition: color .7s var(--ease); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--rose-600); transition: right .4s var(--ease);
}
.nav a:hover, .nav a[aria-current='true'] { color: var(--brown-900); text-decoration: none; }
.nav a:hover::after, .nav a[aria-current='true']::after { right: 0; }

.nav-cta { display: none; }

.burger { margin-left: auto; width: var(--tap); height: var(--tap); display: grid; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 0; }
.burger span { display: block; width: 22px; height: 2px; background: var(--brown-800); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s ease; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex; flex-direction: column;
  padding: 6px 22px 20px; background: rgba(253, 251, 249, .98);
  border-top: 1px solid var(--sand-200);
}
.mobile-nav a:not(.btn) { padding: 15px 2px; color: var(--brown-800); font-weight: 500; border-bottom: 1px solid var(--sand-200); }
.mobile-nav .btn { margin-top: 16px; }

/* Fortschrittsbalken der Kopfleiste */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.progress-fill {
  display: block; height: 100%; width: 25%;
  background: linear-gradient(90deg, var(--rose-500), var(--gold));
  transition: width .7s var(--ease);
}

@media (min-width: 900px) {
  .nav, .nav-cta { display: flex; }
  .burger, .mobile-nav { display: none !important; }
  :root { --bar: 78px; }
}

/* ------------------------------------------------------------ Punktnavigation */

.dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 55; display: none; flex-direction: column; gap: 16px;
}
.dots button {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer; padding: 4px;
  color: var(--brown-400); flex-direction: row-reverse;
}
.dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sand-300); display: block;
  transition: transform .45s var(--ease), background .35s ease, box-shadow .35s ease;
}
.dots em {
  font-style: normal; font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  /* Liegt über dem Hero-Bild — Schattenkante hält es lesbar. */
  text-shadow: 0 1px 3px rgba(248,243,238,.95), 0 0 8px rgba(248,243,238,.7);
  opacity: 0; transform: translateX(8px);
  transition: opacity .35s ease, transform .45s var(--ease);
}
.dots button:hover em { opacity: 1; transform: none; }
.dots button[aria-current='true'] span {
  background: var(--rose-600); transform: scale(1.5);
  box-shadow: 0 0 0 4px var(--rose-100);
}
.dots button[aria-current='true'] em { opacity: 1; transform: none; color: var(--brown-700); }

@media (min-width: 1100px) { .dots { display: flex; } }

/* ------------------------------------------------------------ Deck und Panels */

.deck { position: relative; }

html.js .deck {
  height: 100dvh;
  transition: transform .95s var(--ease);
  will-change: transform;
}

.panel {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--bar) + 26px) 22px 34px;
  overflow: hidden;
}
html.js .panel { height: 100dvh; }
html:not(.js) .panel { min-height: 100dvh; }

.panel-inner {
  width: 100%; max-width: 1240px; margin: 0 auto;
  max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  /* Puffer unten: die Einblend-Verschiebung (24px) soll keinen Überlauf
     erzeugen, sonst scrollt der Inhalt statt umzublättern. */
  padding-bottom: 30px;
  scrollbar-width: thin;
}
.panel-inner::-webkit-scrollbar { width: 5px; }
.panel-inner::-webkit-scrollbar-thumb { background: var(--sand-300); border-radius: 4px; }

.panel--services { background: var(--sand-50); }
.panel--quality  { background: linear-gradient(155deg, var(--brown-800), var(--brown-900)); color: var(--sand-200); }
.panel--book     { background: var(--sand-100); }

/* Hintergrundbild des Startpanels */
.panel-bg { position: absolute; inset: 0; z-index: 0; }
.panel-bg img { width: 100%; height: 100%; object-fit: cover; }
.panel-bg::after {
  content: ''; position: absolute; inset: 0;
  /* Auf das echte, helle Studiobild abgestimmt: links deckend genug für den
     Text, rechts fast frei, damit der Raum sichtbar bleibt. */
  background:
    linear-gradient(180deg, rgba(248,243,238,.52) 0%, rgba(248,243,238,.10) 42%, rgba(248,243,238,.58) 100%),
    linear-gradient(102deg, rgba(248,243,238,.96) 0%, rgba(248,243,238,.88) 26%, rgba(248,243,238,.26) 58%, rgba(248,243,238,0) 84%);
}
html.js .panel--hero .panel-bg img {
  transform: scale(1.12);
  transition: transform 14s linear;
}
html.js .panel--hero.is-active .panel-bg img { transform: scale(1); }

.panel--hero .panel-inner { position: relative; z-index: 1; max-width: 1240px; }

/* ------------------------------------------------------------ Einblenden */

html.js [data-anim] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.js .panel.is-active [data-anim] { opacity: 1; transform: none; }

html.js .panel.is-active [data-anim='1'] { transition-delay: .12s; }
html.js .panel.is-active [data-anim='2'] { transition-delay: .20s; }
html.js .panel.is-active [data-anim='3'] { transition-delay: .28s; }
html.js .panel.is-active [data-anim='4'] { transition-delay: .36s; }
html.js .panel.is-active [data-anim='5'] { transition-delay: .44s; }
html.js .panel.is-active [data-anim='6'] { transition-delay: .52s; }
html.js .panel.is-active [data-anim='7'] { transition-delay: .60s; }
html.js .panel.is-active [data-anim='8'] { transition-delay: .68s; }
html.js .panel.is-active [data-anim='9'] { transition-delay: .76s; }

/* ------------------------------------------------------------ Start */

.eyebrow {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .24em;
  font-weight: 700; color: var(--rose-700); margin-bottom: 18px;
}
.panel--quality .eyebrow { color: var(--rose-300); }

.panel--hero h1 { max-width: 15ch; }
.panel--hero h1 .line { display: block; overflow: hidden; }
.panel--hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--rose-700), var(--gold) 55%, var(--rose-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% 100%;
}
html.js .panel--hero.is-active h1 em { animation: shimmer 7s var(--ease) 1.1s infinite; }
@keyframes shimmer {
  0%, 72% { background-position: 0% 50%; }
  100%    { background-position: 100% 50%; }
}

.panel--hero .lead { margin-top: 22px; font-size: clamp(1.02rem, 1.9vw, 1.2rem); color: var(--brown-700); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.marks {
  list-style: none; margin: 46px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 14px 46px;
}
.marks li { display: flex; flex-direction: column; position: relative; padding-left: 16px; }
.marks li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.marks strong { font-size: .96rem; color: var(--brown-900); letter-spacing: .01em; }
.marks span { font-size: .82rem; color: var(--brown-400); }

/* Weiter-Hinweis */
.hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--brown-400); padding: 8px 16px;
}
.hint-line { width: 1px; height: 30px; background: linear-gradient(var(--sand-300), var(--rose-500)); }
.hint-text { font-size: .68rem; text-transform: uppercase; letter-spacing: .22em; font-weight: 600; }
html.js .hint { animation: hint 2.6s var(--ease) infinite; }
@keyframes hint {
  0%, 100% { transform: translate(-50%, 0); opacity: .75; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ------------------------------------------------------------ Leistungen */

.panel-head { margin-bottom: 34px; }
.panel-head--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.panel-lead { margin-top: 14px; color: var(--brown-500); }


.panel-note {
  margin-top: 26px; text-align: center;
  font-size: .9rem; color: var(--brown-400);
}

/* ------------------------------------------------------------ Qualität */

.panel--quality h2, .panel--quality h3 { color: var(--white); }

.quality-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 940px) { .quality-grid { grid-template-columns: .8fr 1fr; gap: 60px; } }

.quality-media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.quality-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
html.js .panel--quality.is-active .quality-media img {
  animation: slowzoom 18s var(--ease) infinite alternate;
}
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.07); } }

.pillars { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; counter-reset: p; }
.pillars li { position: relative; padding-left: 52px; counter-increment: p; }
.pillars li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  color: var(--gold);
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(200, 160, 106, .38);
  display: grid; place-items: center;
}
.pillars h3 { margin-bottom: 5px; }
.pillars p { font-size: .93rem; color: rgba(241, 232, 223, .74); line-height: 1.55; }

.panel--quality .actions { margin-top: 34px; }

/* ------------------------------------------------------------ Buchen */

.book-grid { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; }
@media (min-width: 700px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }

.book-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg); padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.book-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 200px at 50% -10%, rgba(200,160,106,.14), transparent 70%);
  opacity: 0; transition: opacity .5s ease;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.book-card:hover::after { opacity: 1; }

.book-card h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: -.01em; }
.book-address { margin-top: 6px; font-size: .9rem; color: var(--brown-400); }


.book-contact {
  margin-top: 14px; font-size: .84rem; color: var(--brown-400);
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.book-contact a { color: var(--brown-500); }
.book-contact a:hover { color: var(--rose-700); }

.pay-note {
  display: inline-block; margin-bottom: 10px;
  padding: 5px 14px; border-radius: var(--radius-pill);
  background: var(--sand-200); color: var(--brown-500);
  font-size: .78rem; letter-spacing: .01em;
}

.book-hours { margin: 16px 0 20px; display: grid; gap: 7px; font-size: .89rem; }
.book-hours > div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 7px; border-bottom: 1px solid var(--sand-200); }
.book-hours > div:last-child { border-bottom: 0; padding-bottom: 0; }
.book-hours dt { color: var(--brown-500); margin: 0; }
.book-hours dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--brown-900); font-weight: 500; }
.book-hours .closed { color: var(--brown-400); font-weight: 400; }

.book-map { display: inline-block; margin-top: 14px; font-size: .84rem; color: var(--brown-400); }
.book-map:hover { color: var(--rose-700); }

.panel-foot { margin-top: 32px; text-align: center; font-size: .87rem; color: var(--brown-400); }
.panel-legal { margin-top: 10px !important; font-size: .78rem; }
.panel-foot a { color: var(--rose-700); }

/* ------------------------------------------------------------ Rücksicht auf Bewegungsempfindlichkeit */

@media (prefers-reduced-motion: reduce) {
  html.js .deck { transition: none; }
  html.js [data-anim] { opacity: 1; transform: none; transition: none; }
  html.js .hint, html.js .panel--hero.is-active h1 em,
  html.js .panel--quality.is-active .quality-media img { animation: none; }
  html.js .panel--hero .panel-bg img { transform: none; transition: none; }
  .btn, .book-card, .brand-mark { transition: none; }
  .btn:hover, .book-card:hover { transform: none; }
}

/* ------------------------------------------------------------ Rechtstexte (eigene, scrollbare Seiten) */

.legal { padding: calc(var(--bar) + 40px) 22px 60px; }
.legal .wrap { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin-bottom: 26px; }
.legal h2 { font-size: 1.24rem; font-family: var(--font); font-weight: 600; margin-top: 34px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--brown-700); font-size: .96rem; }
.legal p + p { margin-top: 13px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal-foot { border-top: 1px solid var(--sand-200); padding: 20px 22px; text-align: center; font-size: .82rem; color: var(--brown-400); }


/* ------------------------------------------------------------ Kompakt auf kleinen Schirmen */

@media (max-width: 900px) {
  .panel { padding: calc(var(--bar) + 18px) 18px 22px; }
  .panel-head { margin-bottom: 22px; }

  .panel-note { margin-top: 16px; font-size: .82rem; }

  /* Das Motiv ist schmückend — auf dem Telefon zählt die Aussage. */
  .quality-media { display: none; }
  .pillars { gap: 16px; margin-top: 22px; }
  .pillars li { padding-left: 46px; }
  .pillars li::before { width: 32px; height: 32px; font-size: .95rem; }
  .pillars p { font-size: .87rem; line-height: 1.45; }
  .panel--quality .actions { margin-top: 24px; }

  .book-grid { gap: 12px; }
  .book-card { padding: 20px 18px 18px; }
  .book-card h3 { font-size: 1.4rem; }
  .book-hours { margin: 12px 0 14px; gap: 5px; font-size: .84rem; }
    .book-contact { margin-top: 10px; font-size: .8rem; }
  .pay-note { font-size: .74rem; padding: 4px 12px; }
  .panel-foot { margin-top: 20px; font-size: .82rem; }

  .marks { margin-top: 30px; gap: 10px 26px; }
  .panel--hero .lead { margin-top: 16px; }
  .actions { margin-top: 26px; }
}

/* Sehr niedrige Schirme: noch strenger */
@media (max-height: 700px) and (max-width: 900px) {
  h1 { font-size: clamp(2.1rem, 8.5vw, 3rem); }
  .marks { display: none; }
  .hint { display: none; }
}


/* ------------------------------------------------------------ Wisch-Karussell (Telefon)
   Sechs Karten passen vertikal auf kein Telefon. Statt zu scrollen wandern
   sie waagrecht — das hält den Abschnitt bildschirmhoch. */

@media (max-width: 699px), (max-height: 560px) {
  .book-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    margin-inline: -18px;          /* randlos anschneiden */
    padding-inline: 18px;
  }
  .book-grid::-webkit-scrollbar { display: none; }

  .book-grid > .book-card {
    flex: 0 0 84%;
    scroll-snap-align: center;
    min-width: 0;
  }

  /* Angeschnittene Nachbarkarte signalisiert: hier geht es weiter. */
  .book-grid > .book-card:last-child { margin-right: 18px; }

  .swipe-hint { display: flex; }
}

.swipe-hint {
  display: none;
  align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .16em;
  font-weight: 600; color: var(--brown-400);
}
.swipe-hint::before,
.swipe-hint::after { content: ''; width: 18px; height: 1px; background: var(--sand-300); }
html.js .swipe-hint em { font-style: normal; animation: nudge 2.4s var(--ease) infinite; display: inline-block; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}


/* ------------------------------------------------------------ Niedrige Fenster
   Laptops mit 720px Höhe und kleine Telefone: Abstände straffen, damit die
   Abschnitte weiterhin auf einen Bildschirm passen. */

@media (max-height: 780px) and (min-width: 900px) {
  .panel { padding: calc(var(--bar) + 18px) 22px 22px; }
  .panel-head { margin-bottom: 20px; }
  .panel-head--center .panel-lead { display: none; }
  .panel-note { margin-top: 16px; }
  .book-card { padding: 22px 22px 18px; }
  .book-hours { margin: 14px 0 16px; gap: 5px; }
  .panel-foot { margin-top: 18px; }
  .pillars { gap: 16px; margin-top: 22px; }
  .marks { margin-top: 30px; }
  .actions { margin-top: 26px; }
}

@media (max-height: 680px) and (max-width: 900px) {
  .panel-head--center .panel-lead { display: none; }
  .panel-head { margin-bottom: 14px; }
  .eyebrow { margin-bottom: 8px; font-size: .66rem; }
  h2 { font-size: 1.55rem; }

  .book-card { padding: 14px 14px 12px; }
  .book-card h3 { font-size: 1.2rem; }
  .book-address { font-size: .8rem; }
    .book-hours { margin: 10px 0 12px; font-size: .78rem; gap: 4px; }
  .book-hours > div { padding-bottom: 4px; }
  .btn--lg { min-height: 46px; font-size: .92rem; }
  .book-contact { margin-top: 8px; }
  .panel-foot { margin-top: 12px; font-size: .76rem; }
  .pay-note { margin-bottom: 7px; }

  .pillars { gap: 12px; margin-top: 16px; }
  .pillars li { padding-left: 40px; }
  .pillars li::before { width: 28px; height: 28px; font-size: .85rem; }
  .pillars h3 { font-size: .95rem; }
  .pillars p { font-size: .82rem; line-height: 1.4; }
  .panel--quality .actions { margin-top: 18px; }

  /* Der Wisch-Hinweis kostet auf sehr niedrigen Schirmen den letzten Platz —
     die angeschnittene Nachbarkarte zeigt ohnehin, dass es weitergeht. */
  .swipe-hint { display: none; }
  .panel-legal { margin-top: 6px !important; }
  /* Der Barzahlungs-Hinweis bleibt sichtbar — er ist praktisch wichtig.
     Die Pixel kommen stattdessen aus Zeilenabständen. */
  .pay-note { font-size: .7rem; padding: 3px 10px; margin-bottom: 5px; }
  .book-contact { font-size: .76rem; margin-top: 6px; }
  .book-hours { margin: 8px 0 10px; font-size: .76rem; gap: 3px; }
  .book-hours > div { padding-bottom: 3px; }
  }


/* Reihenfolge: die Sichtbarkeit des Wisch-Hinweises muss nach der Basisregel
   stehen, sonst überschreibt display:none die Media-Query. */
@media (max-width: 699px), (max-height: 560px) {
  .swipe-hint { display: flex; }
}
/* Auf der Bühne wird ebenfalls seitlich gewischt — aber nur dort, wo es
   auch eine Wischgeste gibt. Am Rechner wäre der Hinweis eine Lüge. */
@media (hover: none) and (orientation: portrait) {
  .panel--services .swipe-hint { display: flex; }
}


/* =====================================================================
   Bewegung, Ausbaustufe 2026-08-04
   Gewählt: 1A Hero-Video · 2B Lichtkegel · 2C Zeilen · 2D Kante
            3A Kaskade · 3B magnetischer Knopf · 3C Zähler · 3D Puls
   Alles über transform und opacity, damit die Grafikeinheit rechnet.
   ===================================================================== */

/* ---------------------------------------------- 1A · Hero-Video */

.panel-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.panel-bg-video[data-playing='true'] { opacity: 1; }
/* Solange das Video nicht läuft, trägt das Standbild. */
.panel-bg-still { transition: opacity .9s var(--ease); }
.panel-bg:has(.panel-bg-video[data-playing='true']) .panel-bg-still { opacity: 0; }

/* ---------------------------------------------- 2B · Lichtkegel */


/* Ohne Zeigergerät gibt es kein Überfahren. Grundzustand: alles sichtbar —
   auch ohne JavaScript. Läuft die Steuerung, übernimmt die zentrierte Karte
   im Karussell die Rolle des Zeigers (.is-focus). */
@media (hover: none), (max-height: 560px) {
  /* Die angeschnittene Nachbarkarte tritt zurück, die zentrierte hebt sich. */
  html.js .book-grid.js-focus .book-card:not(.is-focus) {
    transform: scale(.97); opacity: .78;
    transition: transform .5s var(--ease), opacity .5s var(--ease);
  }
}

/* Antippen soll spürbar sein */
@media (hover: none) {
  .book-card:active { transform: scale(.985); }
  .btn:active { transform: scale(.97); }
}


/* ---------------------------------------------- 3A · Kaskade verstärkt */

html.js [data-anim] { transform: translateY(26px) scale(.994); }
html.js .panel.is-active [data-anim] { transform: none; }

/* ---------------------------------------------- 3B · magnetischer Knopf */

.book-card .btn--primary { will-change: transform; }


/* ---------------------------------------------- 3D · Punktnavigation atmet */

.dots button[aria-current='true'] span::after {
  content: ''; position: absolute; inset: -7px;
  border-radius: 50%; border: 1.5px solid rgba(169,95,104,.45);
  animation: dot-puls 2.4s var(--ease) infinite;
}
.dots span { position: relative; }
@keyframes dot-puls {
  0%   { transform: scale(.8);  opacity: .85; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------------------------------------------- Rücksicht */

@media (prefers-reduced-motion: reduce) {
  .panel-bg-video { display: none; }
  .dots button[aria-current='true'] span::after { animation: none; }
  .book-card .btn--primary { transform: none !important; }
}


/* =====================================================================
   Flache Fenster: Telefon im Querformat, kleines Tablet quer.
   Höhe ist hier der Engpass, nicht die Breite — deshalb greift diese
   Stufe unabhängig davon, ob das Fenster breit ist.
   ===================================================================== */

@media (max-height: 560px) {
  :root { --bar: 56px; }

  .panel { padding: calc(var(--bar) + 12px) 18px 14px; }
  .panel-head { margin-bottom: 12px; }
  .panel-head--center .panel-lead { display: none; }
  .eyebrow { margin-bottom: 7px; font-size: .62rem; letter-spacing: .18em; }

  h1 { font-size: clamp(1.5rem, 4.4vw, 2.2rem); }
  h2 { font-size: clamp(1.25rem, 3.2vw, 1.7rem); }

  /* Start */
  .panel--hero .lead { margin-top: 10px; font-size: .86rem; }
  .actions { margin-top: 14px; }
  .marks, .hint, .swipe-hint { display: none; }
  .btn--lg { min-height: 42px; padding: 0 22px; font-size: .88rem; }

  .panel-note { margin-top: 10px; font-size: .74rem; }

  /* Qualität — das Motiv weicht, die Aussage bleibt */
  .quality-media { display: none; }
  .quality-grid { grid-template-columns: 1fr; gap: 0; }
  .pillars { gap: 9px; margin-top: 12px; }
  .pillars li { padding-left: 38px; }
  .pillars li::before { width: 26px; height: 26px; font-size: .78rem; }
  .pillars h3 { font-size: .88rem; }
  .pillars p { font-size: .77rem; line-height: 1.35; }
  .panel--quality .actions { margin-top: 14px; }

  /* Standorte */
  .book-grid > .book-card { flex-basis: 48%; }
  .book-card { padding: 14px 14px 12px; }
  .book-card h3 { font-size: 1.15rem; }
  .book-address { font-size: .76rem; }
  .book-hours { margin: 9px 0 10px; gap: 3px; font-size: .74rem; }
  .book-hours > div { padding-bottom: 3px; }
  .book-contact { margin-top: 7px; font-size: .72rem; }
  .pay-note { font-size: .68rem; padding: 3px 9px; margin-bottom: 5px; }
  .panel-foot { margin-top: 9px; font-size: .72rem; }
  .panel-legal { margin-top: 5px !important; font-size: .68rem; }

  .dots { display: none; }
}

/* ---------------------------------------------- Randabblendung bei Überlauf
   Wenn ein Abschnitt doch scrollen muss, soll man das sehen. */

.panel-inner[data-scrollable='true'] {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 34px), transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 34px), transparent 100%);
}
.panel-inner[data-scrollable='end'] { -webkit-mask-image: none; mask-image: none; }


/* Sehr flach (Telefon quer): letzte Reserve. Der Impressum-Link bleibt
   sichtbar — er ist Pflicht, nicht Dekoration. */
@media (max-height: 460px) {
  .panel-head { margin-bottom: 8px; }
  h2 { font-size: 1.15rem; }
  .eyebrow { display: none; }

  .pillars { gap: 7px; margin-top: 10px; }
  .pillars p { font-size: .74rem; }

  .book-card { padding: 11px 12px 10px; }
  .book-card h3 { font-size: 1rem; }
  .book-address { font-size: .72rem; }
  .book-hours { margin: 7px 0 8px; font-size: .7rem; gap: 2px; }
  .book-hours > div { padding-bottom: 2px; }
  .btn--lg { min-height: 38px; font-size: .82rem; }
  .book-contact { margin-top: 5px; font-size: .68rem; }
  .pay-note { margin-bottom: 4px; font-size: .64rem; }
  .panel-foot { margin-top: 6px; font-size: .68rem; }
  .panel-legal { margin-top: 3px !important; font-size: .64rem; }
}


/* =====================================================================
   Hero-Slogans — fünf Sätze, je vier Sekunden, im Takt des Videos.
   Kein simples Umschalten: die Wörter steigen gestaffelt aus einer Maske
   auf, stehen still, und ziehen als Ganzes nach oben ab.
   ===================================================================== */

.slogans {
  display: grid;                 /* alle Sätze im selben Feld, kein Springen */
  align-items: end;
  min-height: 2.1em;             /* Höhe der längsten Zeile, damit nichts hüpft */
  max-width: 15ch;
}
.slogans .slogan { grid-area: 1 / 1; }

@media (min-width: 700px) { .slogans { max-width: 17ch; } }

.slogan {
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .8s var(--ease), filter .6s var(--ease);
  transform: translateY(-.16em);
  filter: blur(3px);
}
.slogan.is-on {
  opacity: 1; transform: none; filter: none;
  pointer-events: auto;
}

/* Wortweiser Aufstieg aus der Maske */
.slogan .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .06em;         /* Unterlängen nicht abschneiden */
}
.slogan .w i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform .82s var(--ease);
}
.slogan.is-on .w i { transform: none; }

/* Staffelung: jedes Wort 65 ms später */
.slogan .w:nth-child(1) i { transition-delay: .02s; }
.slogan .w:nth-child(2) i { transition-delay: .085s; }
.slogan .w:nth-child(3) i { transition-delay: .15s; }
.slogan .w:nth-child(4) i { transition-delay: .215s; }
.slogan .w:nth-child(5) i { transition-delay: .28s; }
.slogan .w:nth-child(6) i { transition-delay: .345s; }

/* Abgang: geschlossen nach oben, kein Nachzappeln */
.slogan.is-out { opacity: 0; transform: translateY(-.22em); filter: blur(4px); }
.slogan.is-out .w i { transform: translateY(-40%); transition-duration: .6s; transition-delay: 0s; }

/* Der letzte Satz nennt den Namen — der bekommt den Goldakzent */
.slogan[data-i='4'] { color: var(--brown); }
.slogan[data-i='4'] .w:nth-child(n+3) i {
  background: linear-gradient(100deg, var(--rose-700), var(--gold) 60%, var(--rose-600));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* Ohne JavaScript steht der erste Satz einfach da */
html:not(.js) .slogan { opacity: 0; }
html:not(.js) .slogan.is-on { opacity: 1; }
html:not(.js) .slogan .w i { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .slogan, .slogan .w i { transition: none !important; filter: none !important; }
  .slogan.is-out { transform: none; }
  .slogan .w i { transform: none !important; }
}


/* =====================================================================
   Leistungen — ein Inhalt, zwei Fassungen.
   Telefon: eine Behandlung füllt die Fläche, Bild und Text ziehen im Takt
            auf. Rechner: alle sechs als Liste, daneben das Bild der
            gerade gewählten.
   Ohne JavaScript bleibt eine schlichte Kachelliste übrig — lesbar,
   vollständig, ohne Steuerung.
   ===================================================================== */

.leistungen { list-style: none; margin: 0; padding: 0; position: relative; }
.leistung   { position: relative; }
.leistung-bild { display: block; position: relative; overflow: hidden; }
.leistung-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.leistung-nr {
  display: block; font-family: var(--serif); font-weight: 600; color: var(--rose-300);
}
.leistung-text .zeile   { display: block; overflow: hidden; }
.leistung-text .zeile i { display: block; font-style: normal; }

/* --- Grundfassung: Kacheln ----------------------------------------- */
.leistungen { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .leistungen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .leistungen { grid-template-columns: repeat(3, 1fr); } }

.leistung {
  overflow: hidden; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--sand-200);
  box-shadow: var(--shadow-sm);
}
.leistung-bild     { aspect-ratio: 4 / 3; }
.leistung-koerper  { padding: 16px 18px 18px; }
.leistung-nr       { font-size: 1.05rem; margin-bottom: 4px; }
.leistung h3       { font-size: 1rem; margin-bottom: 6px; }
.leistung-text     { font-size: .88rem; color: var(--brown-500); line-height: 1.5; }

/* --- Fortschritt: wie viele Behandlungen noch kommen ---------------- */
.leistungs-takt { display: none; }
html.js .leistungs-takt { display: flex; gap: 5px; position: absolute; z-index: 4; }
.leistungs-takt b {
  flex: 1; height: 2px; border-radius: 2px; overflow: hidden;
  background: rgba(255, 255, 255, .3);
}
.leistungs-takt b s { display: block; height: 100%; width: 0; background: var(--gold); }
.leistungs-takt b.laeuft s { width: 100%; transition: width var(--takt, 4.6s) linear; }
.leistungs-takt b.fertig s { width: 100%; }

/* ====================== Hochformat und flach: Bühne ================ */

@media (max-width: 699px), (max-height: 560px), (orientation: portrait) {
  /* Der Abschnitt ist ein zentrierter Flex-Kasten; ohne ausdrückliches
     Strecken bekommt der Inhalt nur seine Eigenhöhe — und die Bühne, deren
     Kinder allesamt absolut liegen, wäre null Pixel hoch. */
  html.js .panel--services .panel-inner {
    display: flex; flex-direction: column;
    align-self: stretch; height: 100%;
  }

  html.js .leistungen {
    display: block; flex: 1 1 auto; min-height: 150px; gap: 0;
    border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
    background: var(--brown-900); box-shadow: var(--shadow-lg);
  }
  html.js .leistung {
    position: absolute; inset: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    opacity: 0; pointer-events: none;
    transition: opacity 1s var(--ease);
  }
  html.js .leistung.is-an { opacity: 1; pointer-events: auto; }

  /* Langsame Fahrt ins Bild — dieselbe Ruhe wie im Hero-Video. */
  html.js .leistung-bild { position: absolute; inset: 0; aspect-ratio: auto; }
  html.js .leistung-bild img { transform: scale(1.13); transition: transform 7s linear; }
  html.js .leistung.is-an .leistung-bild img { transform: none; }
  html.js .leistung-bild::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top,
      rgba(20,13,10,.94) 0%, rgba(20,13,10,.7) 32%,
      rgba(20,13,10,.1) 66%, rgba(20,13,10,.34) 100%);
  }

  html.js .leistung-koerper {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 20px 18px 26px; color: #fff;
  }
  html.js .leistung-nr {
    font-size: .74rem; letter-spacing: .14em; color: var(--gold); margin-bottom: 3px;
  }
  html.js .leistung h3 {
    font-family: var(--serif); font-weight: 500; font-size: 1.34rem;
    line-height: 1.14; margin-bottom: 7px; color: #fff;
  }
  html.js .leistung-text { font-size: .82rem; line-height: 1.55; color: rgba(255,255,255,.85); }

  /* Der Text zieht gestaffelt nach, statt mit dem Bild zu erscheinen. */
  html.js .leistung .leistung-nr,
  html.js .leistung h3 {
    transform: translateY(16px); opacity: 0;
    transition: transform .85s var(--ease), opacity .7s var(--ease);
  }
  html.js .leistung.is-an .leistung-nr { transform: none; opacity: 1; transition-delay: .12s; }
  html.js .leistung.is-an h3           { transform: none; opacity: 1; transition-delay: .2s; }
  html.js .leistung-text .zeile i { transform: translateY(112%); transition: transform .9s var(--ease); }
  html.js .leistung.is-an .leistung-text .zeile:nth-child(1) i { transform: none; transition-delay: .3s; }
  html.js .leistung.is-an .leistung-text .zeile:nth-child(2) i { transform: none; transition-delay: .38s; }

  html.js .leistungs-takt { left: 18px; right: 18px; bottom: 11px; }
}

/* ======================== Querformat: Register ===================== */

@media (min-width: 700px) and (min-height: 561px) and (orientation: landscape) {
  html.js .leistungen {
    --spalte: 44%;
    --luecke: clamp(26px, 3.4vw, 52px);
    display: block; min-height: 330px;
    padding-left: calc(var(--spalte) + var(--luecke));
  }
  html.js .leistung {
    position: static; overflow: visible; cursor: pointer;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    border-bottom: 1px solid rgba(36, 26, 21, .1);
  }
  html.js .leistung:last-child { border-bottom: 0; }

  /* Alle Bilder liegen übereinander in der linken Spalte und blenden um. */
  html.js .leistung-bild {
    position: absolute; left: 0; top: 0; width: var(--spalte); height: 100%;
    aspect-ratio: auto; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); opacity: 0;
    transition: opacity .85s var(--ease);
  }
  html.js .leistung.is-an .leistung-bild { opacity: 1; }
  html.js .leistung-bild::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 74px;
    background: linear-gradient(to top, rgba(20, 13, 10, .5), transparent);
  }
  html.js .leistung-bild img { transform: scale(1.08); transition: transform 7s linear; }
  html.js .leistung.is-an .leistung-bild img { transform: none; }

  html.js .leistung-koerper {
    padding: 11px 0; display: grid;
    grid-template-columns: auto minmax(0, 1fr); column-gap: 1em;
  }
  html.js .leistung-nr {
    grid-column: 1; grid-row: 1; margin: 0; padding-top: .42em;
    font-size: .78rem; letter-spacing: .1em; color: var(--brown-400);
    transition: color .5s var(--ease);
  }
  html.js .leistung h3 {
    grid-column: 2; grid-row: 1; margin: 0;
    font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2;
    color: var(--brown-500);
    transition: color .5s var(--ease), transform .55s var(--ease);
  }
  html.js .leistung-text {
    grid-column: 2; grid-row: 2;
    font-size: .87rem; line-height: 1.55; color: var(--brown-500);
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height .65s var(--ease), opacity .5s var(--ease), margin-top .5s var(--ease);
  }
  html.js .leistung.is-an .leistung-nr   { color: var(--gold); }
  html.js .leistung.is-an h3             { color: var(--brown-900); transform: translateX(4px); }
  html.js .leistung.is-an .leistung-text { max-height: 6.5em; opacity: 1; margin-top: 5px; }

  html.js .leistungs-takt { left: 16px; bottom: 14px; width: calc(var(--spalte) - 32px); }
}

/* Sehr niedrige Fenster: die Bühne bleibt, nur straffer. */
@media (max-height: 560px) {
  html.js .leistung-koerper { padding: 14px 15px 18px; }
  html.js .leistung h3      { font-size: 1.1rem; margin-bottom: 4px; }
  html.js .leistung-text    { font-size: .76rem; line-height: 1.45; }
  html.js .leistung-nr      { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .leistung, html.js .leistung-bild, html.js .leistung-bild img,
  html.js .leistung-nr, html.js .leistung h3, html.js .leistung-text,
  html.js .leistung-text .zeile i, .leistungs-takt b s {
    transition: none !important;
  }
  html.js .leistung-bild img, html.js .leistung-nr,
  html.js .leistung h3, html.js .leistung-text .zeile i {
    transform: none !important; opacity: 1;
  }
}

/* Große Bühne: Tablet im Hochformat hat Platz für größere Schrift. */
@media (orientation: portrait) and (min-width: 700px) and (min-height: 561px) {
  html.js .leistung-koerper { padding: 30px 32px 38px; }
  html.js .leistung-nr      { font-size: .82rem; margin-bottom: 6px; }
  html.js .leistung h3      { font-size: 2rem; margin-bottom: 10px; }
  html.js .leistung-text    { font-size: .98rem; max-width: 46ch; }
  html.js .leistungs-takt   { left: 30px; right: 30px; bottom: 15px; }
}
