/* ============================================================
   STILISTA Hair and Beauty – Stylesheet
   Farben & Schriften 1:1 nach der Original-Seite
   ============================================================ */

/* ---------- Selbst gehostete Schriften (DSGVO-konform) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/CormorantGaramond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/CormorantGaramond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/CormorantGaramond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/Inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/Inter-600.woff2') format('woff2');
}

/* ---------- Design-Tokens ---------- */
:root {
  --cream: #FBFAF8;
  --ink: #1A1A1A;
  --ink-soft: #4a4a48;
  --gold: #C59F59;
  --gold-dark: #b08d47;
  --border: #EBE7E0;
  --card: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1200px;
  --radius: 16px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout-Helfer ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-intro { max-width: 640px; color: var(--ink-soft); font-size: 17px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: 0.4px;
  padding: 16px 32px;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-dark); box-shadow: 0 10px 24px rgba(197,159,89,.32); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(251,250,248,.35); }
.btn-outline-light:hover { background: rgba(251,250,248,.1); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: rgba(26,26,26,.2); }
.btn-outline-dark:hover { background: rgba(26,26,26,.05); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(251,250,248,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 24px;
}
.brand { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 1px; color: #fff; transition: color .3s; }
.brand small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: 3px; font-weight: 500; opacity: .8; margin-top: -2px; }
.site-header.scrolled .brand { color: var(--ink); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.9); transition: color .2s; }
.site-header.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--gold); }
.nav-cta { padding: 10px 22px; font-size: 14px; }
.nav-toggle { display: none; position: relative; z-index: 120; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .2s ease, background .3s ease; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
/* Hamburger wird beim Öffnen zum X (Schließen-Knopf) */
.nav-toggle.active span { background: var(--ink); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: var(--cream);
  background: var(--ink);
  padding: 140px 0 80px;
  overflow: hidden;
}
/* Ebene 0: dezente Textur */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: url('../images/hero.png');
  background-size: cover; background-position: center;
  opacity: .16;
}
/* Ebene 2: Dunkelverlauf für die Lesbarkeit der Schrift (liegt ÜBER dem Foto) */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(48% 60% at 78% 52%, rgba(197,159,89,.16), transparent 60%),
    linear-gradient(90deg, rgba(16,16,16,.97) 0%, rgba(16,16,16,.9) 32%, rgba(16,16,16,.6) 62%, rgba(16,16,16,.34) 100%);
}
/* Ebene 3: der Text */
.hero .container { position: relative; z-index: 3; }
.hero-content { max-width: 600px; padding: 20px 0; }

/* Ebene 1: das Foto als Hintergrund, rechts, Kanten weich ausgeblendet */
.hero-visual {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.hero-portrait {
  position: absolute; right: -1%; bottom: 0;
  height: 106%; width: auto; max-width: none; display: block;
  /* Weiche Maske: links auslaufend (Richtung Text) + rundum gefedert */
  -webkit-mask-image:
    linear-gradient(100deg, transparent 2%, #000 46%),
    radial-gradient(145% 116% at 74% 50%, #000 55%, transparent 84%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(100deg, transparent 2%, #000 46%),
    radial-gradient(145% 116% at 74% 50%, #000 55%, transparent 84%);
          mask-composite: intersect;
  animation: portraitIn 1.4s cubic-bezier(.2,.7,.2,1) both, floatY 7s ease-in-out 1.4s infinite;
  will-change: transform;
}
/* weicher Gold-Schein hinter dem Foto */
.hero-glow {
  position: absolute; z-index: 0;
  left: 74%; top: 50%; transform: translate(-50%,-50%);
  width: 44%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(197,159,89,.40), rgba(197,159,89,0) 68%);
  filter: blur(20px);
  animation: glowPulse 7s ease-in-out infinite;
}
.hero-badge {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(197,159,89,.5);
  border-radius: 9999px;
  padding: 8px 18px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 1.02;
  max-width: 780px;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-lead { font-size: 20px; font-family: var(--serif); font-style: italic; color: #f1ede6; margin-bottom: 14px; }
.hero-text { font-size: 17px; max-width: 540px; color: rgba(251,250,248,.85); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Zielgruppe / Für wen ---------- */
.target { background: var(--cream); }
.chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.chip {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 9999px; padding: 14px 26px;
  font-size: 16px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.target-note { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-soft); }

/* ---------- Vorteile ---------- */
.benefits { background: #fff; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 56px; }
.benefit {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.benefit:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,26,26,.06); }
.benefit-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(197,159,89,.15); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 10px; }
.benefit p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Vorher / Nachher ---------- */
.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 56px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: #eee;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 18px 14px;
  background: linear-gradient(transparent, rgba(26,26,26,.8));
  color: #fff; font-size: 14px; font-weight: 500;
}

/* ---------- Ablauf ---------- */
.process { background: var(--ink); color: var(--cream); }
.process .eyebrow { color: var(--gold); }
.steps { margin-top: 56px; display: grid; gap: 4px; }
.step {
  display: grid; grid-template-columns: 80px 1fr; gap: 28px; align-items: start;
  padding: 28px 0; border-top: 1px solid rgba(251,250,248,.12);
}
.step:last-child { border-bottom: 1px solid rgba(251,250,248,.12); }
.step-num { font-family: var(--serif); font-size: 42px; color: var(--gold); line-height: 1; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 8px; }
.step p { color: rgba(251,250,248,.7); font-size: 16px; max-width: 620px; }

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq-list { margin-top: 48px; max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--ink);
  padding: 26px 44px 26px 0; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 26px; font-weight: 300; color: var(--gold);
  transition: transform .3s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 0 26px; color: var(--ink-soft); font-size: 16px; max-width: 720px; }

/* ---------- Über Luisa ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
/* 3D-Look für das Porträtfoto */
.about-photo { perspective: 1400px; }
.photo-3d {
  position: relative;
  border-radius: var(--radius);
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
  box-shadow:
    -22px 30px 55px rgba(26,26,26,.30),
    -8px 12px 22px rgba(26,26,26,.18);
  will-change: transform;
}
/* Gold-Rahmen als Tiefenebene dahinter */
.photo-3d::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  transform: translateZ(-60px) scale(.94);
  filter: blur(2px);
  opacity: .85;
}
.photo-3d img {
  position: relative;
  display: block; width: 100%;
  border-radius: var(--radius);
  transform: translateZ(1px);
  backface-visibility: hidden;
}
/* Glanz-Schein oben links für den räumlichen Eindruck */
.photo-3d::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(125deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 42%);
  pointer-events: none;
  transform: translateZ(2px);
}
.about-photo:hover .photo-3d {
  box-shadow:
    -10px 34px 70px rgba(26,26,26,.34),
    0 14px 26px rgba(197,159,89,.22);
}
.about h2 { margin-bottom: 24px; }
.about p { color: var(--ink-soft); font-size: 17px; margin-bottom: 18px; }
.about-quote {
  font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink);
  border-left: 3px solid var(--gold); padding-left: 22px; margin-top: 28px;
}

/* ---------- Partner ---------- */
.partners { background: #fff; text-align: center; padding: 64px 0; }
.partner-logos { display: flex; flex-wrap: wrap; gap: 48px; justify-content: center; align-items: center; margin-top: 28px; }
.partner-logos span { font-family: var(--serif); font-size: 26px; color: var(--ink-soft); opacity: .75; }

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); color: var(--cream); }
.contact .eyebrow { color: var(--gold); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; margin-top: 48px; align-items: start; }
.contact-info h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-bottom: 24px; }
.info-block { margin-bottom: 26px; }
.info-block .label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.info-block a, .info-block p { color: #f1ede6; font-size: 17px; }
.info-block a:hover { color: var(--gold); }
.hours { display: grid; grid-template-columns: auto auto; gap: 6px 24px; justify-content: start; font-size: 15px; color: rgba(251,250,248,.85); }
.hours span:nth-child(even) { text-align: right; }
.hours .closed { color: rgba(251,250,248,.5); }

/* ---------- Formular ---------- */
.contact-form { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 40px; }
.contact-form h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 6px; }
.contact-form .form-sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field label .req { color: var(--gold); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; }
.form-consent { font-size: 12px; color: var(--ink-soft); margin-top: 14px; line-height: 1.5; }
.form-consent a { color: var(--gold-dark); text-decoration: underline; }
.form-status { margin-top: 16px; font-size: 15px; font-weight: 500; text-align: center; display: none; }
.form-status.ok { display: block; color: #2e7d32; }
.form-status.err { display: block; color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: #141414; color: rgba(251,250,248,.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 15px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(251,250,248,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(251,250,248,.5);
}
.footer-bottom a { text-decoration: underline; }

/* ---------- Floating Call Button (Mobil) ---------- */
.fab-call {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(197,159,89,.45);
}
.fab-call svg { width: 26px; height: 26px; }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 140px 24px 96px; }
.legal a.back { color: var(--gold-dark); font-size: 14px; font-weight: 500; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 48px); margin: 20px 0 32px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 36px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal .todo { background: #fff7e6; border: 1px solid #f0d9a8; color: #8a6d20; padding: 2px 8px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.legal .lead-back { margin-bottom: 8px; }

/* ============================================================
   Bewegung: Hero-Eintritt, Keyframes & Scroll-Reveal
   ============================================================ */

/* Hero-Text nacheinander einblenden */
.hero-content > * { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-content > .hero-badge  { animation-delay: .10s; }
.hero-content > h1           { animation-delay: .20s; }
.hero-content > .hero-lead   { animation-delay: .38s; }
.hero-content > .hero-text   { animation-delay: .50s; }
.hero-content > .hero-actions{ animation-delay: .62s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes portraitIn {
  from { opacity: 0; transform: translateY(40px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
@keyframes glowPulse {
  0%,100% { opacity: .75; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: 1;   transform: translate(-50%,-50%) scale(1.06); }
}

/* Scroll-Reveal: Elemente gleiten beim Sichtbarwerden herein.
   Nur aktiv, wenn JS die Klasse .motion setzt (sonst alles normal sichtbar). */
.motion .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.motion .reveal.in { opacity: 1; transform: none; }

/* dezente Varianten */
.motion .reveal-left  { transform: translateX(-38px); }
.motion .reveal-right { transform: translateX(38px); }
.motion .reveal-left.in, .motion .reveal-right.in { transform: none; }

/* animierte Gold-Linie unter den Rubrik-Labels (passend zur „fließenden" Optik) */
.eyebrow { position: relative; }
.motion .eyebrow.reveal::after {
  content: ""; position: absolute; left: 0; bottom: -8px;
  height: 2px; width: 0; background: var(--gold);
  transition: width .9s ease .25s;
}
.motion .eyebrow.reveal.in::after { width: 46px; }

@media (prefers-reduced-motion: reduce) {
  .hero-content > *, .hero-portrait, .hero-glow { animation: none !important; }
  .motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 116px 0 0; }
  .hero-content { max-width: none; padding: 8px 0 32px; }
  /* Foto zentriert hinter dem Text, oben weich ausgeblendet */
  .hero-portrait {
    height: auto; width: 122%; right: auto; left: 50%; margin-left: -61%; bottom: 0;
    /* nur oben weich ausblenden – unten bleibt der Körper voll sichtbar und schließt am Weiß an */
    -webkit-mask-image: linear-gradient(180deg, transparent 2%, #000 30%);
            mask-image: linear-gradient(180deg, transparent 2%, #000 30%);
    -webkit-mask-composite: source-over;
            mask-composite: add;
    /* kein Dauer-Schweben auf dem Handy – Foto bleibt fest am unteren Rand */
    animation: portraitIn 1s cubic-bezier(.2,.7,.2,1) both;
  }
  .hero::after {
    background:
      radial-gradient(70% 40% at 50% 82%, rgba(197,159,89,.16), transparent 62%),
      linear-gradient(180deg, rgba(16,16,16,.9) 0%, rgba(16,16,16,.66) 40%, rgba(16,16,16,.5) 70%, rgba(16,16,16,.4) 100%);
  }
  .hero-glow { left: 50%; top: 72%; width: 70%; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 420px; margin: 0 auto; perspective: none; }
  /* 3D-Effekt auf Handys flach schalten – behebt iOS-Safari-Bug, bei dem das Foto unsichtbar wird */
  .photo-3d {
    transform: none;
    transform-style: flat;
    box-shadow: -10px 18px 40px rgba(26,26,26,.22);
  }
  .photo-3d::before { transform: none; opacity: 0; }
  .photo-3d img { transform: none; backface-visibility: visible; }
  .photo-3d::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 72px 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; z-index: 110;
    height: 100vh; height: 100dvh; width: min(84vw, 340px);
    background: var(--cream);
    flex-direction: column; align-items: stretch; justify-content: center;
    gap: 2px; padding: 96px 32px 40px;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    box-shadow: -24px 0 60px rgba(26,26,26,.28);
  }
  .nav-links.open { transform: translateX(0); }
  /* Menüpunkte gleiten beim Öffnen nacheinander sanft herein */
  .nav-links a { opacity: 0; transform: translateX(18px); }
  .nav-links.open a { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease, color .2s; }
  .nav-links.open a:nth-child(1) { transition-delay: .10s; }
  .nav-links.open a:nth-child(2) { transition-delay: .15s; }
  .nav-links.open a:nth-child(3) { transition-delay: .20s; }
  .nav-links.open a:nth-child(4) { transition-delay: .25s; }
  .nav-links.open a:nth-child(5) { transition-delay: .30s; }
  .nav-links.open a:nth-child(6) { transition-delay: .35s; }
  .nav-links.open a:nth-child(7) { transition-delay: .40s; }
  .nav-links a:not(.nav-cta) {
    color: var(--ink) !important;
    font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: .3px;
    padding: 15px 4px; border-bottom: 1px solid var(--border);
  }
  .nav-links .nav-cta { margin-top: 26px; text-align: center; font-size: 16px; padding: 14px 22px; }
  /* Abgedunkelter Hintergrund – Tippen schließt das Menü */
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 95;
    background: rgba(22,20,16,.5);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  .step { grid-template-columns: 56px 1fr; gap: 18px; }
  .step-num { font-size: 32px; }
  .contact-form { padding: 28px 22px; }
  .fab-call { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
}
