/* Studio Nova Nails – Demo-Seite, leise und edel
   Farben nach Gefühl (kevin-ordner/10-farben-und-gefuehle.md): Puder = Zartheit (Grundton),
   Pflaume = Eleganz (Hauptfarbe), gedämpftes Altrosa = Weiblichkeit (Akzent). Kontraste prüft check.py. */
:root {
  --cream: #f8f4f0;
  --blush: #efe6e1;     /* helle Tönung des Grundtons */
  --rose: #e2d4cd;      /* feine Linien */
  --rose-deep: #93545c; /* Akzent: Schrift und Linien */
  --rose-light: #d8aeb1;/* Akzent auf Pflaume */
  --plum: #3d2433;
  --plum-soft: #574350;
  --fx-accent: #93545c; /* Lesefortschritt oben (Animations-Paket) */
  --white: #ffffff;
  --radius: 2px;
  --shadow: 0 30px 60px -36px rgba(61, 36, 51, 0.45);
  --serif: "Didot", "Bodoni MT", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--plum);
  background: var(--cream);
  line-height: 1.65;
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Demo-Hinweis */
.demo-bar {
  background: var(--plum);
  color: var(--blush);
  text-align: center;
  font-size: 0.8125rem;
  padding: 6px 16px;
  letter-spacing: 0.04em;
}

/* Kopfzeile */
.header {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 22px 0;
}
.header.scrolled {
  /* kein backdrop-filter: würde das feste Handy-Menü in der Kopfzeile einsperren */
  background: var(--cream);
  box-shadow: 0 1px 0 var(--rose);
  padding: 12px 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; letter-spacing: 0.02em; }
.header .logo { margin-right: auto; }
.lang-toggle { border: 1px solid var(--rose); background: transparent; color: var(--plum); border-radius: 2px; font: 600 0.8125rem var(--sans); line-height: 1; letter-spacing: 0.14em; padding: 8px 12px; min-height: 36px; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.lang-toggle:hover { border-color: var(--plum); }
html:not([lang="en"]) .en-only { display: none; }
[hidden] { display: none !important; }
.logo span { color: var(--rose-deep); font-style: italic; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 1rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--rose-deep); transition: width 0.3s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: var(--plum); margin: 6px 0; transition: transform 0.3s, opacity 0.3s; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: 1px solid var(--plum);
  background: var(--plum); color: var(--cream) !important;
  padding: 15px 28px; border-radius: 2px; font: 600 0.8125rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.btn:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn-ghost { background: transparent; color: var(--plum) !important; border: 1px solid var(--plum); }
.btn-ghost:hover { background: var(--plum); color: var(--cream) !important; }
.btn-small { padding: 11px 18px; }

/* Hero */
.hero { position: relative; min-height: 86vh; padding: 60px 0 100px; display: flex; align-items: center; overflow: hidden; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.8125rem; color: var(--rose-deep); font-weight: 600; }
.hero .eyebrow { display: flex; align-items: center; gap: 14px; }
.hero .eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 1.05; margin: 14px 0 22px; }
.hero h1 em { color: var(--rose-deep); }
.hero p.lead { font-size: 1.15rem; color: var(--plum-soft); max-width: 30em; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { margin: 0; aspect-ratio: 4 / 5; max-height: 76vh; outline: 1px solid var(--rose); outline-offset: 14px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Start-Bewegung (02.11.): Foto öffnet sich wie ein Vorhang und zoomt langsam, dahinter schwebt ein Lichtschein */
.hero-photo { overflow: hidden; }
.hero-photo img { clip-path: inset(100% 0 0 0); scale: 1.18; transition: clip-path 1.4s cubic-bezier(.7,0,.2,1) .35s, scale 9s cubic-bezier(.2,.7,.2,1) .35s; }
.hero-photo.visible img { clip-path: inset(0 0 0 0); scale: 1.12; } /* Rest-Zoom deckt die Parallax-Verschiebung ab, sonst wird ein Rand sichtbar */
.hero-glow { position: absolute; z-index: 0; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -12vw; top: -14vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 174, 177, .24), rgba(216, 174, 177, .08) 55%, transparent); filter: blur(30px); pointer-events: none; animation: hero-glow 14s ease-in-out infinite alternate; }
@keyframes hero-glow { to { transform: translate(-6vw, 5vw) scale(1.12); } }
/* Hintergrund-Bewegung (02.11.): feine Nagel-Formen als Haarlinien schweben, Lichtpunkte funkeln. Demo zeigt, was möglich ist. */
.floats { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.floats ~ .container { position: relative; z-index: 1; }
.fl-nail { position: absolute; left: var(--x); top: var(--y); width: 46px; height: 72px; border: 1px solid rgba(147, 84, 92, .5); background: linear-gradient(160deg, rgba(216, 174, 177, .28), rgba(239, 230, 225, .05)); border-radius: 50% 50% 44% 44% / 64% 64% 36% 36%; rotate: var(--r); animation: fl-schweben var(--t) ease-in-out infinite alternate; }
.fl-nail::after { content: ""; position: absolute; left: 22%; right: 22%; top: 10%; height: 26%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-top: 1px solid rgba(147, 84, 92, .4); } /* angedeutete French-Spitze */
.fl-spark { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; animation: fl-funkeln 3.6s ease-in-out var(--t) infinite; opacity: 0; }
.fl-spark::before, .fl-spark::after { content: ""; position: absolute; inset: 6px 0; background: #c8a36a; border-radius: 1px; }
.fl-spark::after { rotate: 90deg; }
@keyframes fl-schweben { from { transform: translateY(-14px) rotate(-6deg); } to { transform: translateY(16px) rotate(8deg); } }
@keyframes fl-funkeln { 0%, 100% { opacity: 0; scale: .4; } 50% { opacity: .8; scale: 1; } }
@media (max-width: 760px) { .fl-nail { width: 30px; height: 48px; } }

@media (prefers-reduced-motion: reduce) {
  .hero-photo img { clip-path: none; scale: 1; transition: none; }
  .hero-glow, .fl-nail { animation: none; }
  .fl-spark { display: none; }
}
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 1px solid var(--rose); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 1px; height: 9px; background: var(--plum-soft); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* Abschnitte */
section { padding: 110px 0; position: relative; }
/* Zahlen-Leiste (Animations-Paket: count) */
section.facts { padding: 40px 0; }
.facts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 56px; text-align: center; color: var(--plum-soft); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; border-block: 1px solid var(--rose); padding: 30px 0; }
.facts-row strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.2rem); color: var(--plum); line-height: 1.1; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; letter-spacing: .01em; font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.15; margin-top: 10px; }
.section-head p { color: var(--plum-soft); margin-top: 14px; }

/* Leistungen */
.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.service-card {
  border-top: 1px solid var(--rose); padding: 32px 0 40px;
}
/* translate statt transform: transform gehört dem Einblend-Effekt (fx/effekte.js) */

.service-icon { margin-bottom: 18px; }
.service-icon svg { width: 28px; height: 28px; stroke: var(--rose-deep); fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 10px; }
.service-card p { color: var(--plum-soft); font-size: 1rem; }

/* Band mit Parallax */
.band { padding: 0; height: 420px; overflow: hidden; background: var(--plum); color: var(--cream); display: grid; place-items: center; text-align: center; }
.band-bg { position: absolute; inset: -30% 0; background: linear-gradient(rgba(61, 36, 51, .78), rgba(61, 36, 51, .78)), url("bilder/fotos/ruhe.jpg") center / cover;
  will-change: transform; }
.band blockquote { position: relative; font-family: var(--serif); font-size: clamp(1.35rem, 4vw, 2.6rem); font-style: italic; max-width: 22em; padding: 0 16px; }

/* Galerie */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.swatch { text-align: center; }
.swatch img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 16px; }
/* Animations-Paket: Galerie läuft als Laufband (nur mit JS; ohne JS bleibt das Raster oben) */
html.fx-on .gallery-grid[data-fx~="marquee"] {
  display: flex; --fx-gap: 22px; padding-block: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.fx-track > .swatch { width: 220px; }
.swatch h4 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.swatch small { color: var(--plum-soft); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
/* Preise */
.prices { background: var(--white); }
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.price-list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 18px; color: var(--rose-deep); }
.price-row { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--rose); }
.price-row span:first-child { flex: 1; }
.price-row small { color: var(--plum-soft); display: block; font-size: 0.875rem; }
.price-row strong { font-family: var(--serif); font-size: 1.35rem; white-space: nowrap; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { text-align: center; padding: 10px 20px; }
.step { border-top: 1px solid var(--rose); padding-top: 26px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--rose-deep); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--plum-soft); }

/* Terminbuchung */
.booking { background: var(--blush); }
.booking-card { background: var(--white); border: 1px solid var(--rose); padding: 44px; max-width: 860px; margin: 0 auto; }
.booking-steps { display: flex; gap: 8px; margin-bottom: 30px; }
.booking-steps li { list-style: none; flex: 1; height: 1px; background: var(--rose); transition: background 0.4s; }
.booking-steps li.active { background: var(--plum); height: 2px; }
.form-step { display: none; animation: stepIn 0.45s ease; }
.form-step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.form-step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 20px; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; }
.option label { display: block; padding: 16px 18px; border: 1px solid var(--rose); border-radius: 2px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.option label small { display: block; color: var(--plum-soft); }
.option input:checked + label { border-color: var(--plum); background: var(--cream); }
.option input:focus-visible + label { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--plum-soft); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--rose); border-radius: 0; font: inherit; color: inherit; background: transparent; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--plum); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 8px; }
.slot { padding: 10px 0; border-radius: 2px; border: 1px solid var(--rose); background: var(--white); font: inherit; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.slot:hover:not(:disabled) { border-color: var(--rose-deep); }
.slot.selected { background: var(--plum); border-color: var(--plum); color: var(--white); }
.slot:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.hint { color: var(--plum-soft); font-size: 0.875rem; margin-top: 10px; }
.error { color: #b23a48; font-size: 0.875rem; margin-top: 10px; min-height: 1.2em; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.check { display: flex; gap: 10px; font-size: 0.875rem; color: var(--plum-soft); align-items: flex-start; }
.check input { margin-top: 4px; accent-color: var(--rose-deep); }
.summary { background: var(--cream); border-left: 2px solid var(--rose-deep); padding: 20px 22px; margin-bottom: 20px; }
.summary div { display: flex; justify-content: space-between; padding: 4px 0; gap: 12px; }
.done { text-align: center; padding: 20px 0; }
.done .tick { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; border: 1px solid var(--rose-deep); display: grid; place-items: center; }
.done .tick svg { width: 40px; stroke: var(--rose-deep); stroke-width: 1.5; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; }
.done.active .tick svg { animation: draw 0.7s 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card { border-top: 1px solid var(--plum); padding: 26px 0; }
.contact-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 12px; color: var(--rose-deep); }
.contact-card table { width: 100%; border-collapse: collapse; }
.contact-card td { padding: 3px 0; }
.contact-card td:last-child { text-align: right; }

/* Fußzeile */
.footer { background: var(--plum); color: var(--rose-light); padding: 50px 0 30px; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer .logo { color: var(--cream); }
.footer .logo span { color: var(--rose-light); }
.footer nav a { color: var(--cream); }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer small { width: 100%; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(216, 174, 177, .25); }

/* Einblend-Animationen beim Scrollen */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.zoom { transform: scale(0.96); }
.reveal.visible { opacity: 1; transform: none; }

/* Rechtstexte */
.legal { padding: 70px 0 100px; }
.legal .container { max-width: 780px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 26px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 34px 0 10px; color: var(--rose-deep); }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal .note { background: var(--blush); border-left: 2px solid var(--rose-deep); padding: 16px 20px; margin-bottom: 30px; font-size: 0.875rem; }
.ph { background: #fff3c4; padding: 0 4px; border-radius: 4px; }

/* Handy */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-photo { aspect-ratio: 4 / 3; outline-offset: 8px; margin: 0 8px; }
  .scroll-hint { display: none; }
  .service-grid, .steps, .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .price-wrap { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw); flex-direction: column; justify-content: center;
    background: var(--cream); border-left: 1px solid var(--rose);
    transform: translateX(100%); transition: transform 0.4s, visibility 0.4s; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .menu-toggle { position: relative; z-index: 60; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  section { padding: 80px 0; }
  .booking-card { padding: 28px 20px; }
  .option-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Rechtsseiten am Handy: Termin-Knopf weicht dem Sprachknopf, das Logo führt zur Startseite */
@media (max-width: 480px) {
  .nav[style] { display: none; }
}
