/*
Theme Name: Beautyroom Soltau
Theme URI: https://beautyroom-soltau.de
Author: Abi
Author URI: https://beautyroom-soltau.de
Description: Custom Theme für Beautyroom Soltau — Brautstyling, Make-up, Hairstyling & Wimpern von Marzia in Soltau. Editorial-Design, reines PHP/HTML/CSS/JS, ohne Page-Builder. Richtet Seiten, Startseite und Menüs beim Aktivieren automatisch ein.
Version: 1.6.3
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beautyroom-soltau
*/

/* ===================================================================
   DESIGN-TOKENS
   =================================================================== */
:root {
  --bg:          #ffffff;
  --beige:       #e3d6ce;
  --beige-soft:  #f4ece6;
  --beige-tint:  #faf6f3;
  --blue:        #cedbe3;
  --blue-tint:   #eef3f6;
  --ink:         #393634;
  --muted:       #726c68;
  --copy:        #57514c;
  --hero-home-title:  #ffffff;
  --hero-home-kicker: #ffffff;
  --hero-home-copy:   #ffffff;
  --hero-page-title:  #393634;
  --hero-page-accent: #726c68;
  --hero-page-kicker: #726c68;
  --hero-page-copy:   #57514c;
  --accent-line: #393634;
  --line:        rgba(57, 54, 52, 0.14);
  --line-soft:   rgba(57, 54, 52, 0.08);
  --accent:      #393634;
  --accent-ink:  #ffffff;
  --radius:      4px;
  --maxw:        1180px;
  --nav-h:       70px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans:    "Jost", system-ui, -apple-system, sans-serif;
  --font-script:  "Pinyon Script", cursive;
}

/* ===================================================================
   RESET / BASE
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
button { font-family: inherit; }
::selection { background: var(--beige); color: var(--ink); }

/* iOS-Zoom-Bug: 16px auf Formularfeldern */
input, select, textarea { font-size: 16px; }

/* Anker-Sprungziele nicht unter der Sticky-Nav verstecken */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Sichtbarer Tastatur-Fokus, ohne Maus-Klicks zu markieren */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===================================================================
   SKIP-LINK (Barrierefreiheit)
   =================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 20px;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ===================================================================
   LAYOUT-HELFER
   =================================================================== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 44px); }
.narrow { max-width: 760px; }
.section { padding: clamp(56px, 8vw, 108px) 0; }
.center { text-align: center; }

.section-head { margin-bottom: clamp(34px, 5vw, 62px); }
.section-head.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-head.spread { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ===================================================================
   TYPOGRAFIE
   =================================================================== */
.h1, .h2, .h3 { text-wrap: balance; }

.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 0.97;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.012em;
  color: var(--ink);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background: var(--accent-line);
  margin-right: 10px;
  vertical-align: middle;
  margin-bottom: 2px;
}
.lead { font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.72; color: var(--copy); margin-top: 16px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

.h1 em,
.h2 em {
  font-style: italic;
  color: var(--muted);
}

em { font-style: italic; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 26px; color: var(--copy); font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px;
  border: 1.5px solid var(--blue); border-radius: 50%;
}

.link-arrow {
  display: inline-block; font-family: var(--font-sans); font-weight: 500; font-size: 14px;
  letter-spacing: 0.02em; color: var(--ink); border-bottom: 1px solid var(--line);
  padding-bottom: 3px; transition: border-color 0.2s;
}
.link-arrow:hover { border-color: var(--accent-line); }

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.btn-lg { padding: 16px 34px; font-size: 13px; }
.btn-sm { padding: 10px 18px; font-size: 11px; }
.btn-block { width: 100%; }

/* ===================================================================
   NAVIGATION
   =================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-soft);
  transition: background 0.32s ease, box-shadow 0.32s ease, color 0.32s ease, backdrop-filter 0.32s ease;
}
.nav-inner {
  padding: 14px clamp(16px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brandmark { display: flex; flex-direction: column; line-height: 0.9; }
.brandmark-script { font-family: var(--font-script); font-size: 30px; color: var(--ink); }
.brandmark-sub { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--blue); padding-left: 4px; }

.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); position: relative; padding: 4px 0; display: inline-block; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--accent-line); transition: width 0.25s; }
.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links li.current-menu-item > a::after,
.nav-links li.current_page_item > a::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.nav-burger span { width: 16px; height: 1.5px; background: var(--ink); display: block; transition: background 0.3s, transform 0.3s ease; }
.nav-burger.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.nav-ig { display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; color: var(--ink); opacity: 0.65; transition: opacity 0.2s, color 0.2s; }
.nav-ig:hover { opacity: 1; color: var(--blue); }

.nav-mobile { display: none; flex-direction: column; padding: 0 clamp(16px, 4vw, 56px) 20px; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em; font-family: var(--font-sans); }
.nav-mobile .btn { margin-top: 14px; border-bottom: 0; }

/* --- Transparente Nav über dem Hero (nur Startseite, vor dem Scrollen) --- */
.nav--home:not(.nav--scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.nav--home:not(.nav--scrolled) .brandmark-script,
.nav--home:not(.nav--scrolled) .nav-links a,
.nav--home:not(.nav--scrolled) .nav-ig { color: #fff; }
.nav--home:not(.nav--scrolled) .brandmark-sub { color: rgba(255, 255, 255, 0.85); }
.nav--home:not(.nav--scrolled) .nav-ig { opacity: 0.9; }
.nav--home:not(.nav--scrolled) .nav-burger { border-color: rgba(255, 255, 255, 0.55); }
.nav--home:not(.nav--scrolled) .nav-burger span { background: #fff; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-burger { display: flex; }
}

.nav--home:not(.nav--scrolled) .nav-mobile.open {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===================================================================
   FOTO-PLATZHALTER
   =================================================================== */
.photo-slot {
  width: 100%; height: 100%;
  background-color: var(--beige-soft);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(57, 54, 52, 0.045) 0, rgba(57, 54, 52, 0.045) 1px,
    transparent 1px, transparent 11px
  );
  box-shadow: inset 0 0 0 1px var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.photo-slot span {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  text-align: center; padding: 0 12px;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.55s ease; }

/* Sanftes Einblenden, sobald ein Foto fertig geladen ist (Klassen setzt JS —
   ohne JS bleiben die Bilder ganz normal sichtbar) */
.photo-slot img.img-fade {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.55s ease;
}
.photo-slot img.img-loaded { opacity: 1; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--ink); color: #fff; padding: clamp(54px, 7vw, 88px) 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-brand-script { font-family: var(--font-script); font-size: 42px; color: #fff; display: block; line-height: 1; }
.footer-brand-sub { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--blue); padding-left: 4px; }
.footer-slogan { margin-top: 16px; color: rgba(255, 255, 255, 0.6); max-width: 280px; font-style: italic; font-family: var(--font-display); font-size: 18px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-size: 14px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.75); transition: color 0.2s; }
.footer-nav a:hover { color: var(--blue); }
.footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-social a { font-size: 14px; color: rgba(255, 255, 255, 0.75); border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 3px; width: fit-content; transition: color 0.2s; }
.footer-social a:hover { color: var(--blue); }
.footer-legal { display: flex; justify-content: space-between; padding-top: 26px; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.45); flex-wrap: wrap; gap: 12px; }
.footer-legal-links { display: flex; gap: 22px; }
.footer-legal-links a:hover { color: var(--blue); }
@media (max-width: 760px) {
  .footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 44px;
  }
  .footer-legal {
    padding-top: 30px;
  }
}
@media (max-width: 480px) {
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 26px;
    line-height: 1.8;
  }
  .footer-legal-links {
    gap: 28px;
  }
}

/* ===================================================================
   MOBILE BUCHUNGSLEISTE (fixiert am unteren Rand, nur kleine Screens)
   Der Footer reserviert dafür auf Mobil bereits Platz (padding-bottom).
   =================================================================== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  gap: 10px;
  align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 var(--line-soft), 0 -10px 30px -18px rgba(57, 54, 52, 0.25);
}
.mobile-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}
.mobile-cta-main {
  flex: 1;
  min-height: 46px;
}
@media (max-width: 760px) {
  .mobile-cta-bar { display: flex; }
}

/* Scroll-to-Top Button (nur Handy) — taucht auf, sobald man runterscrollt.
   Sitzt über der Buchungsleiste, rechts gegenüber dem Cookie-Button. */
.scroll-to-top {
  display: none;
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom));
  right: 14px;
  width: 46px;
  height: 46px;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 95;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(57, 54, 52, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.2s;
  pointer-events: none;
}
.scroll-to-top svg { width: 20px; height: 20px; stroke: var(--accent-ink); stroke-width: 2.5; }
.scroll-to-top:hover { background: var(--blue); }
.scroll-to-top:hover svg { stroke: var(--ink); }
@media (max-width: 760px) {
  .scroll-to-top { display: flex; }
  .scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ===================================================================
   ANIMATIONEN
   =================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-ed-content {
    animation: heroReveal 1s cubic-bezier(0.2, 0.75, 0.2, 1) 0.15s both;
  }

  .motion-ready .motion-item {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition:
      opacity 0.72s cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 0.72s cubic-bezier(0.2, 0.7, 0.2, 1),
      box-shadow 0.24s ease,
      border-color 0.24s ease;
    will-change: opacity, transform;
  }

  .motion-ready .motion-item.is-visible {
    opacity: 1;
    transform: none;
  }

  .motion-ready .motion-delay-1 { transition-delay: 0.06s; }
  .motion-ready .motion-delay-2 { transition-delay: 0.12s; }
  .motion-ready .motion-delay-3 { transition-delay: 0.18s; }
  .motion-ready .motion-delay-4 { transition-delay: 0.24s; }
  .motion-ready .motion-delay-5 { transition-delay: 0.3s; }
  .motion-ready .motion-delay-6 { transition-delay: 0.36s; }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Kein klebriger Hover auf Touch-Geräten */
@media (hover: none) {
  .btn:hover { transform: none; }
  .nav-links a:hover::after { width: 0; }
}

/* ===================================================================
   RESPONSIVE — GLOBAL
   =================================================================== */
@media (max-width: 768px) {
  .section { padding: clamp(40px, 7vw, 72px) 0; }
  .section-head { margin-bottom: clamp(24px, 4vw, 44px); }
}
@media (max-width: 540px) {
  .motion-ready .motion-item {
    transform: translate3d(0, 16px, 0);
    transition-duration: 0.58s;
  }

  .section { padding: 44px 0; }
  .section-head { margin-bottom: 24px; }
  .h2 { font-size: clamp(26px, 7vw, 44px); }
}
@media (max-width: 390px) {
  .nav-inner { padding: 12px 14px; }
  /* Nur horizontal — Shorthand würde das vertikale Padding von
     .footer-grid/.footer-legal (haben auch .wrap) auf 0 setzen */
  .wrap { padding-left: 14px; padding-right: 14px; }
}
