/* =============================================
   Friseursalon Team Hava - Professional Styles
   ============================================= */

/* CSS Variables */
:root {
  --bg0: #000000;
  --bg1: #0a0a0a;
  --bg2: #111111;
  --gold: #d4af37;
  --gold-light: #e8c963;
  --gold-dark: #b8942e;
  /* Separate "text" gold from the vibrant button/badge gold: in light mode
     the vibrant tone is too pale for body text on white, so headings/links
     use --gold-text while buttons keep the vibrant --gold gradient (with
     black text on top, which has good contrast in both themes). */
  --gold-text: #d4af37;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --border-gold: 1px solid rgba(212, 175, 55, 0.25);
  --border-gold-hover: 1px solid rgba(212, 175, 55, 0.5);
  --bottom-nav-height: 64px;
}

/* Light Theme - warm ivory instead of stark white/gray, kept close in hue
   to the dark theme's gold so both feel like the same brand. */
[data-theme="light"] {
  --bg0: #fffdf9;
  --bg1: #f8f2e6;
  --bg2: #f2ead9;
  --gold: #d4af37;
  --gold-light: #e8c963;
  --gold-dark: #b8942e;
  --gold-text: #8a6a1e;
  --text: #241d12;
  --text-muted: #6b6053;
  --shadow-sm: 0 2px 8px rgba(60, 45, 10, 0.08);
  --shadow-md: 0 8px 24px rgba(60, 45, 10, 0.1);
  --shadow-lg: 0 16px 48px rgba(60, 45, 10, 0.12);
  --border-gold: 1px solid rgba(138, 106, 30, 0.25);
  --border-gold-hover: 1px solid rgba(138, 106, 30, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg0);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Buttons: neutral reset so <button> can be used anywhere an <a> used to be
   (needed for the booking triggers, which now open the in-app sheet). */
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Links */
a {
  color: var(--gold-text);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  padding: 12px 24px;
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   Navigation / Topbar
   ============================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-gold);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  gap: 12px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu a {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  border-radius: 4px;
  position: relative;
  transition: all var(--transition);
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.menu a:hover {
  color: var(--gold-text);
}

.menu a:hover::after {
  transform: scaleX(1);
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Menu Panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--bg1);
  z-index: 1000;
  padding: 80px 24px 24px;
  transition: right var(--transition);
  border-left: var(--border-gold);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.mobile-menu a:hover {
  color: var(--gold-text);
  padding-left: 8px;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

/* The hero is a full-bleed photo and always keeps its own dark vignette
   treatment regardless of site theme - fading it to white in light mode
   looked washed out against a moody portrait photo. */
.hero .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  transition: transform var(--transition);
}

.hero-logo:hover {
  transform: scale(1.03);
}

.hero-logo img {
  max-height: 180px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8));
}

.hero-text {
  position: relative;
  z-index: 3;
  padding: 0 24px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  margin: 0 0 16px 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.hero p {
  margin: 0 0 32px 0;
  color: #d8d4cc;
  font-size: clamp(16px, 2.5vw, 22px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  font-weight: 300;
}

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
  color: #000;
}

.btn:active {
  transform: translateY(0);
}

/* Touch-friendly button */
@media (pointer: coarse) {
  .btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Hero CTA Group */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Outline variant for secondary hero CTA */
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}

/* Hero Hours Box */
.hero-hours {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 18px 24px;
  color: #f5f5f5;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 260px;
  z-index: 2;
}

.hero-hours strong {
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.5px;
}

/* =============================================
   Sections
   ============================================= */
.section {
  padding: 100px 24px;
}

h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--gold-text);
  letter-spacing: 0.5px;
}

.divider {
  height: 3px;
  width: 80px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 20px 0 40px 0;
  border-radius: 2px;
}

/* Grid */
.grid {
  display: grid;
  gap: 40px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =============================================
   Services Section
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg2);
  border: var(--border-gold);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(77%) sepia(41%) saturate(561%) hue-rotate(6deg) brightness(91%) contrast(89%);
}

/* Legacy copy styles (fallback) */
.copy h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.copy p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Service Images */
.service-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: var(--border-gold);
  transition: all var(--transition);
}

.service-images img:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: scale(1.02);
}

/* =============================================
   Gallery
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  border: var(--border-gold);
  background: var(--bg2);
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.02);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: var(--shadow-md);
}

/* Before/After Cards */
.before-after {
  background: var(--bg2);
  border-radius: 12px;
  overflow: hidden;
  border: var(--border-gold);
  transition: all var(--transition);
}

.before-after:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: var(--shadow-md);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 350px;
}

.before-after-item {
  position: relative;
  overflow: hidden;
}

.before-after-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform var(--transition);
}

.before-after-item:hover img {
  transform: scale(1.05);
}

.before-after-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  padding: 8px 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.label-before {
  background: rgba(0, 0, 0, 0.75);
  color: var(--text-muted);
}

.label-after {
  background: rgba(212, 175, 55, 0.5);
  color: #fff;
}

/* =============================================
   Team Section
   ============================================= */
.team-images {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.team-images img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 16px;
  border: var(--border-gold);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.team-images img:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

/* =============================================
   Instagram Section
   ============================================= */
.instagram-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.instagram-grid-empty {
  display: none;
}

.instagram-tile {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: var(--border-gold);
  transition: all var(--transition);
}

.instagram-tile:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: scale(1.02);
}

.instagram-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instagram-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg2);
  border: var(--border-gold);
  border-radius: 16px;
  transition: all var(--transition);
  max-width: 520px;
}

.instagram-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.instagram-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  color: #fff;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.instagram-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.instagram-card-text strong {
  color: var(--text);
  font-size: 16px;
}

.instagram-card-text span {
  color: var(--text-muted);
  font-size: 13px;
}

.instagram-card-arrow {
  margin-left: auto;
  color: var(--gold-text);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.instagram-card:hover .instagram-card-arrow {
  transform: translateX(4px);
}

/* =============================================
   Contact Section
   ============================================= */
.contact-highlight {
  margin-top: 24px;
  padding: 20px;
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  color: var(--gold-text);
}

/* Map */
.map-container {
  border-radius: 12px;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  border: var(--border-gold);
  box-shadow: var(--shadow-md);
  filter: invert(90%) hue-rotate(180deg);
  z-index: 1;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
  filter: invert(100%) hue-rotate(-180deg);
}

/* =============================================
   Lightbox
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #fff;
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

/* Lightbox Navigation Arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: #fff;
  z-index: 2001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-nav:disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Lightbox Counter */
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Gallery Scroll Indicators */
.gallery-wrapper {
  position: relative;
}

.scroll-indicator {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.9);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #000;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.scroll-indicator:hover {
  background: var(--gold-light);
  transform: translateY(-50%) scale(1.1);
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

.scroll-indicator-left {
  left: 8px;
}

.scroll-indicator-right {
  right: 8px;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Gallery Dots */
.gallery-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  transition: all var(--transition);
}

.gallery-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

/* =============================================
   Job Posting / Karriere Section
   ============================================= */
.job-posting {
  max-width: 800px;
  background: var(--bg2);
  border: var(--border-gold);
  border-radius: 16px;
  padding: 48px;
  position: relative;
}

.job-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #000;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.job-posting h3 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
}

.job-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 32px 0;
}

.job-section {
  margin-bottom: 28px;
}

.job-section h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-text);
  margin: 0 0 12px 0;
}

.job-section p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

.job-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.job-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.job-apply {
  margin-top: 36px;
  padding-top: 28px;
  border-top: var(--border-gold);
}

.job-apply p {
  color: var(--text-muted);
  margin: 0 0 20px 0;
}

.job-apply-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-job {
  font-size: 14px;
  padding: 12px 24px;
}

.btn-job svg {
  width: 16px;
  height: 16px;
}

/* =============================================
   Video Showcase
   ============================================= */
.video-showcase {
  display: flex;
  justify-content: center;
}

.video-showcase video {
  width: 100%;
  max-width: 600px;
  border-radius: 16px;
  border: var(--border-gold);
  box-shadow: var(--shadow-lg);
  background: var(--bg2);
}

/* =============================================
   PWA Install Banner
   ============================================= */
.pwa-banner {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% - 32px);
  max-width: 520px;
  padding: 16px 20px;
  background: var(--bg2);
  border: var(--border-gold);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-banner.visible {
  bottom: 24px;
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pwa-banner-text strong {
  font-size: 15px;
  color: var(--text);
}

.pwa-banner-text span {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* iOS Safari never fires beforeinstallprompt, so it gets manual
   instructions instead of the "Installieren" button (toggled in app.js). */
.pwa-banner-copy-ios {
  display: none;
  white-space: normal;
}

.pwa-banner-copy-ios svg {
  vertical-align: -3px;
  margin: 0 2px;
}

.pwa-banner.ios-instructions .pwa-banner-copy-default {
  display: none;
}

.pwa-banner.ios-instructions .pwa-banner-copy-ios {
  display: inline;
}

.pwa-banner.ios-instructions .pwa-banner-install {
  display: none;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-banner-install {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #000;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
}

.pwa-banner-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.pwa-banner-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}

.pwa-banner-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

[data-theme="light"] .pwa-banner-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pwa-banner {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* =============================================
   Impressum Section
   ============================================= */
.impressum-section {
  padding: 60px 24px;
  background: rgba(255, 255, 255, 0.02);
}

.impressum-section .copy {
  font-size: 14px;
  color: var(--text-muted);
}

.impressum-section p {
  margin: 0 0 16px 0;
}

/* =============================================
   Legal Pages (Datenschutz, etc.)
   ============================================= */
.legal-page {
  padding: 120px 24px 60px;
  min-height: 80vh;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold-text);
  margin-bottom: 16px;
}

.legal-content {
  max-width: 800px;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  margin: 40px 0 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.legal-content h2:first-of-type {
  margin-top: 24px;
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text);
  margin: 24px 0 12px;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  text-decoration: none;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  border-top: var(--border-gold);
  padding: 32px 0;
  background: rgba(0, 0, 0, 0.95);
  margin-top: 40px;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.foot p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-text);
}

.footer-social {
  display: flex;
  align-items: center;
}

.to-top {
  color: var(--gold-text);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.to-top:hover {
  transform: translateY(-2px);
}

/* =============================================
   Theme Toggle Button
   ============================================= */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--text);
  transition: all var(--transition);
  margin-right: 8px;
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-text);
  background: rgba(212, 175, 55, 0.1);
}

/* In dark mode (default): show sun icon, hide moon */
.theme-toggle .icon-sun {
  display: block;
}
.theme-toggle .icon-moon {
  display: none;
}

/* In light mode: show moon icon, hide sun */
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.15);
}

/* =============================================
   Light Theme Overrides
   ============================================= */
[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .menu a {
  color: var(--text);
}

[data-theme="light"] .menu-toggle span {
  background: var(--text);
}

[data-theme="light"] .mobile-menu-overlay.active {
  background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .mobile-menu {
  background: var(--bg1);
  border-left: var(--border-gold);
}

[data-theme="light"] .mobile-menu a {
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] #map {
  filter: none;
}

[data-theme="light"] .leaflet-marker-icon,
[data-theme="light"] .leaflet-marker-shadow {
  filter: none;
}

[data-theme="light"] .footer {
  background: var(--bg1);
}

[data-theme="light"] .impressum-section {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .label-before {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

[data-theme="light"] .icon {
  filter: brightness(0) saturate(100%) sepia(60%) saturate(600%) hue-rotate(15deg) brightness(60%);
}

/* =============================================
   Nav Booking CTA
   ============================================= */
.menu-booking {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #000 !important;
  border-radius: 20px;
  padding: 6px 18px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.menu-booking::after {
  display: none !important;
}

.menu-booking:hover {
  color: #000 !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.mobile-menu-booking {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #000 !important;
  border-radius: 8px;
  margin-top: 16px;
  padding: 14px 0 !important;
  font-weight: 600;
  text-align: center;
  border-bottom: none !important;
}

.mobile-menu-booking:hover {
  color: #000 !important;
  padding-left: 0 !important;
}

/* =============================================
   Contact Booking Button
   ============================================= */
.btn-contact-booking {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

/* =============================================
   Booking Sheet (in-app Planity embed)
   ============================================= */
.booking-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--bg0);
  flex-direction: column;
}

.booking-sheet.active {
  display: flex;
}

.booking-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  border-bottom: var(--border-gold);
  background: var(--bg1);
  flex-shrink: 0;
}

.booking-sheet-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-text);
}

.booking-sheet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-sheet-external,
.booking-sheet-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  transition: all var(--transition);
}

.booking-sheet-external:hover,
.booking-sheet-close:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-text);
}

.booking-sheet-body {
  position: relative;
  flex: 1;
  min-height: 0;
}

.booking-sheet-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.booking-sheet-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg0);
  color: var(--text-muted);
  font-size: 14px;
  transition: opacity var(--transition);
}

.booking-sheet-loading.done {
  opacity: 0;
  pointer-events: none;
}

.booking-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.booking-sheet-fallback {
  position: absolute;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.9);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 13px;
  border: var(--border-gold);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.booking-sheet-fallback a {
  font-weight: 600;
}

[data-theme="light"] .booking-sheet-fallback {
  background: rgba(255, 255, 255, 0.95);
}

/* =============================================
   App Views (Start / Galerie / Kontakt)
   ============================================= */
.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.view-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px calc(32px + var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

.gallery-chapters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 4px 0 28px;
  scrollbar-width: none;
}

.gallery-chapters::-webkit-scrollbar {
  display: none;
}

.chapter-tab {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 20px;
  border: var(--border-gold);
  background: var(--bg2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition);
}

.chapter-tab.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #000;
  border-color: transparent;
}

.gallery-chapter-panel {
  display: none;
}

.gallery-chapter-panel.active {
  display: block;
}

.chapter-panel-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text);
  margin: 0 0 16px;
}

/* =============================================
   Bottom App Navigation (mobile PWA)
   ============================================= */
.bottom-nav {
  display: none;
}

/* =============================================
   Animations
   ============================================= */
.revealable {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.revealable.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for children */
.revealable.reveal .service-card:nth-child(1) { animation-delay: 0.1s; }
.revealable.reveal .service-card:nth-child(2) { animation-delay: 0.2s; }
.revealable.reveal .service-card:nth-child(3) { animation-delay: 0.3s; }

/* =============================================
   Responsive - Tablet
   ============================================= */
@media (max-width: 900px) {
  .grid.two {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    background-attachment: scroll;
  }
}

/* =============================================
   Responsive - Mobile
   ============================================= */
@media (max-width: 700px) {
  /* Show mobile menu elements */
  .menu-toggle {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  /* Hide desktop menu */
  .menu {
    display: none;
  }

  .topbar .container {
    justify-content: flex-end;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  /* Hero adjustments */
  .hero {
    min-height: 100svh;
    background-attachment: scroll;
  }

  .hero-logo {
    top: 15px;
    right: 15px;
  }

  .hero-logo img {
    max-height: 100px;
  }

  .hero-hours {
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: none;
    padding: 14px 18px;
    font-size: 14px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 14px;
  }

  .hero-cta {
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Sections */
  .section {
    padding: 60px 16px;
  }

  /* Leave room for the fixed bottom app nav */
  .footer {
    padding-bottom: calc(32px + var(--bottom-nav-height) + env(safe-area-inset-bottom));
  }

  .divider {
    margin: 16px 0 32px 0;
  }

  /* Gallery horizontal scroll */
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-grid img,
  .gallery-grid .before-after {
    flex: 0 0 85%;
    scroll-snap-align: center;
    height: 320px;
  }

  .before-after-grid {
    height: 320px;
  }

  /* Instagram grid: 3-across, Instagram-style */
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .instagram-tile {
    border-radius: 0;
    border: none;
  }

  /* Team image */
  .team-images img {
    max-width: 100%;
  }

  /* Map */
  #map {
    height: 300px;
  }

  /* Video */
  .video-showcase video {
    max-width: 100%;
    border-radius: 12px;
  }

  /* PWA Banner sits above the bottom app nav */
  .pwa-banner.visible {
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 12px);
  }

  /* Hide only the (nowrap) default subtitle to save space - the iOS
     instructions span wraps and stays visible, since it's the whole point
     of the banner on phones that never fire beforeinstallprompt. */
  .pwa-banner-text .pwa-banner-copy-default {
    display: none;
  }

  /* Job Posting */
  .job-posting {
    padding: 28px 20px;
  }

  .job-apply-links {
    flex-direction: column;
  }

  .btn-job {
    justify-content: center;
  }

  /* Footer */
  .foot {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  /* Mobile Lightbox Navigation */
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-counter {
    bottom: 15px;
    padding: 6px 12px;
    font-size: 13px;
  }

  /* Mobile Scroll Indicators */
  .scroll-indicator {
    display: flex;
    width: 36px;
    height: 36px;
  }

  .scroll-indicator svg {
    width: 18px;
    height: 18px;
  }

  /* Gallery Dots on Mobile */
  .gallery-dots {
    display: flex;
  }

  /* Make gallery images tappable */
  .gallery-grid img,
  .gallery-grid .before-after {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* Bottom App Navigation */
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: var(--border-gold);
    justify-content: space-around;
    align-items: center;
  }

  [data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.94);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
  }

  .bottom-nav-item.active {
    color: var(--gold-text);
  }

  .bottom-nav-book {
    color: #000;
    margin-top: -26px;
  }

  .bottom-nav-book-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--bg0);
  }

  [data-theme="light"] .bottom-nav-book-icon {
    border-color: var(--bg0);
  }

  .bottom-nav-book span:last-child {
    color: var(--gold-text);
    font-weight: 600;
  }
}

/* =============================================
   Reduced Motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
