/* ==========================================================================
   FONTS
   ========================================================================== */

/* aboreto-regular - latin (headings; only weight available) */
@font-face {
  font-family: 'Aboreto';
  src: url('../fonts/aboreto-v2-latin/aboreto-v2-latin-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-v40-latin/playfair-display-v40-latin-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-v40-latin/playfair-display-v40-latin-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-v40-latin/playfair-display-v40-latin-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-v40-latin/playfair-display-v40-latin-500italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-v40-latin/playfair-display-v40-latin-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-v40-latin/playfair-display-v40-latin-600italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-v40-latin/playfair-display-v40-latin-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-v40-latin/playfair-display-v40-latin-700italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}


@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-v12-latin/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-v12-latin/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-v12-latin/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-v12-latin/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* ==========================================================================
   CSS VARIABLES & PALETTE (Soft Lilac & Warm Plum Theme)
   ========================================================================== */
:root {
  --bg-warm-50: #FCFAFD;
  --bg-warm-100: #F5F0F7;
  --bg-beige: #FAF6F7; /* header bar colour */

  /* Pink photo film: dark plum fading into brand pink (hero + parallax images) */
  --film-pink: linear-gradient(rgba(43, 31, 45, 0.75), rgba(221, 170, 233, 0.55));
  --border-warm: #E8DFEC;
  
  --text-main: #2B1F2D;
  --text-muted: #5E4F63;
  --text-hover: #DDAAE9; 
  
  --brand-soft:     #F3E3F9;
  --brand-border:   #E9C2F5;
  --brand-hero:     #C483D6;
  --brand-main:     #DDAAE9;
  --brand-hover:    #FFFFFF;

  /* Form error message */
  --error-bg:       #FDF0F0;
  --error-border:   #E8B4B4;
  --error-text:     #8A2C2C;

  --white:          #FFFFFF;
  --black:          #000000;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Aboreto', Georgia, serif;
  --text-light: #5A5A5A;
  
  --shadow-sm: 0 2px 8px rgba(43, 31, 45, 0.04);
  --shadow-md: 0 8px 24px rgba(43, 31, 45, 0.08);
  --shadow-lg: 0 16px 32px rgba(43, 31, 45, 0.12);

  --header-height: 130px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-warm-50);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none; /* Aboreto has no bold/italic - never fake them */
  color: var(--text-main);
  line-height: 1.25;
}

/* Read by screen readers and search engines, not shown */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
    scroll-margin-top: var(--header-height);
}


/* ==========================================================================
   BUTTONS & UTILITIES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--brand-main);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-hover);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--brand-border);
  color: var(--brand-main);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--brand-main);
  color: var(--white);
}

/* Quiet secondary button: thin border, dark text (readable on white cards) */
.btn-ghost {
  border-color: var(--text-muted);
  color: var(--text-main);
  background-color: transparent;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.btn-ghost:hover {
  border-color: var(--brand-hero);
  background-color: var(--brand-soft);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.badge-sub {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-hero);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   1. NAVIGATION HEADER
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-warm);
  height: var(--header-height);
}

/* Background + blur live on a pseudo-element, not on the header itself: an element
   with backdrop-filter becomes the containing block of its position:fixed
   descendants, and the slide-out mobile menu (inside the header) must stay fixed
   to the screen in every browser. Don't put backdrop-filter, filter, transform or
   overflow on the header - Safari versions disagree on how the menu is then
   positioned and clipped. */
header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(250, 246, 247, 0.95); /* = var(--bg-beige) at 95% */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  position: relative;
}

/* Centered Logo positioning for Desktop */
.brand-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.logo-img {
  height: 115px;
  width: 115px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: transform 0.3s ease;
}

.brand-logo:hover .logo-img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-left,
.nav-right {
  flex: 1;
  min-width: 0; /* keep both halves equal so the wider right group can't push into the logo */
  display: flex;
  align-items: center;
}

/* Left links push right towards the logo */
.nav-left {
  justify-content: flex-end;
  padding-right: 85px; /* Spacing from center line to left links */
  margin-right: 0;
}

/* Right links start left near the logo */
.nav-right {
  justify-content: flex-start;
  padding-left: 85px; /* Matching spacing from center line to right links */
  margin-left: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Nav tabs use the heading font (client request) */
.nav-links a:not(.btn) {
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
}

.nav-links a:hover {
  color: var(--text-hover) !important;
}

/* Mobile Hamburger Button - Hidden on Desktop */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-btn:hover {
  color: var(--text-hover);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--film-pink),
              url('../images/hero/nymphenburg-sandra-walking-hero.webp') center 80% / cover no-repeat; /* 80%: keep Sandra's feet in view on wide screens (crops sky/roof instead) */
  text-align: center;
  color: var(--white);
  padding: 80px 20px;
}

.hero-content {
  max-width: 850px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--brand-main);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Watermark Link */
.hero-watermark {
  position: absolute;
  bottom: 12px;
  right: 18px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  z-index: 10;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
}

.hero-watermark:hover {
  color: var(--brand-main);
  opacity: 1;
  text-decoration: underline;
}

/* Adjust position slightly for mobile screens */
@media (max-width: 768px) {
  .hero-watermark {
    bottom: 8px;
    right: 12px;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   SERVICES & CAROUSEL SECTION
   ========================================================================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 430px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  perspective: 1000px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-card {
  position: absolute;
  width: 320px;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-md);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  user-select: none;
}

.carousel-card .service-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.carousel-card .service-content {
  padding: 20px;
  text-align: center;
}

.carousel-card .service-content h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.carousel-card .service-content ul {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.carousel-card .service-content li {
  margin-bottom: 6px;
  border-bottom: 1px solid var(--bg-warm-100);
  padding-bottom: 6px;
}

.carousel-card .service-content li:last-child {
  border-bottom: none;
}

/* Image Backdrops */
.img-trauung { background-image: url('../images/photos/wedding-rings-flowers-bw.webp'); }
.img-empfang { background-image: url('../images/photos/sandra-singing-blue-dress-terrace-guests-bw.webp'); }
.img-dinner  { background-image: url('../images/photos/wedding-table-setting-bw.webp'); }
.img-taufe   { background-image: url('../images/photos/sandra-smiling-glasses-at-mic-bw.webp'); }
.img-tanz    { background-image: url('../images/stock/wedding-couple-dancing-unsplash-bw.webp'); }
.img-trauerfeier { background-image: url('../images/photos/white-flowers-bw.webp'); }

.carousel-card.active {
  transform: translateX(0) scale(1.08);
  z-index: 10;
  opacity: 1;
  box-shadow: 0 16px 36px rgba(43, 31, 45, 0.15);
  border-color: var(--brand-main);
}

.carousel-card.prev {
  transform: translateX(-58%) scale(0.85);
  z-index: 5;
  opacity: 0.7;
  filter: brightness(92%);
}

.carousel-card.next {
  transform: translateX(58%) scale(0.85);
  z-index: 5;
  opacity: 0.7;
  filter: brightness(92%);
}

.carousel-card.far-prev {
  transform: translateX(-100%) scale(0.65);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.carousel-card.far-next {
  transform: translateX(100%) scale(0.65);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
  background: rgba(221, 170, 233, 0.9);
  color: #0f172a;
  border-color: #ddaae9;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 24px rgba(221, 170, 233, 0.4);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-btn.prev-btn { left: 10px; }
.nav-btn.next-btn { right: 10px; }

.nav-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  z-index: 20;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-warm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 28px;
  border-radius: 6px;
  background-color: var(--brand-main);
}

.services-cta {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Mobile: shorter photo + taller card so every bullet fits (two-line bullets
   like "Würdevoller Gesang für den letzten Abschied" were cut off at 350px) */
@media (max-width: 768px) {
  .carousel-wrapper { height: 420px; }
  .carousel-card { width: 280px; height: 410px; }
  .carousel-card .service-image { height: 140px; }
  .carousel-card.prev { transform: translateX(-40%) scale(0.8); }
  .carousel-card.next { transform: translateX(40%) scale(0.8); }
  .nav-btn { width: 44px; height: 44px; }
  .nav-btn.prev-btn { left: 0; }
  .nav-btn.next-btn { right: 0; }
}

.section-title-test {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  color: var(--brand-hero);
  font-style: italic;
  margin-bottom: 60px;
  font-size: 1.2rem;
  font-family: var(--font-serif);
}

.services-section {
  background-color: var(--bg-warm-50);
  padding-bottom: 40px;
  padding-top: 40px;
  overflow-x: clip; /* side cards peek past the screen edge on mobile */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  background-color: var(--bg-warm-100);
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 30px;
  text-align: center;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-content ul {
  list-style: none;
  color: var(--text-light);
  font-size: 0.95rem;
}

.service-content li {
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
.service-content li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   3. THREE EVENT PILLARS (LEISTUNGEN)
   ========================================================================== */
.pillars-section {
  padding: 100px 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-warm);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pillar-card {
  background-color: var(--bg-warm-50);
  border: 1px solid var(--border-warm);
  border-radius: 20px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-border);
}

.pillar-featured {
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg-warm-50) 100%);
  border: 2px solid var(--brand-border);
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--brand-main);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 9999px;
}

.pillar-icon {
  width: 50px;
  height: 50px;
  background-color: var(--brand-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.pillar-card h3 {
  font-size: 1.6rem;
  margin-bottom: 5px;
}

.pillar-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-hover);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pillar-list {
  list-style: none;
  margin-bottom: 30px;
}

.pillar-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-list li span {
  color: var(--brand-main);
  font-weight: bold;
}

/* ==========================================================================
   PARALLAX DIVIDERS
   ========================================================================== */
.parallax-divider {
  position: relative;
  height: 560px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: var(--film-pink); /* same pink film as the hero (client request) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.parallax-content {
  max-width: 800px;
  z-index: 2;
}

.parallax-quote {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.parallax-bg-1 {
  background-image: url('../images/photos/sandra-hugging-bride-bw.webp');
  /* Client request: heads lower on desktop. Fixed backgrounds are sized to the
     viewport, so align the photo to the top ... */
  background-position: center top;
}

/* ... and on desktop scale it to at least 150% of the screen height (photo is
   1920x1407, so 205vh wide): the faces sit at ~35% of the photo height, which
   moves them towards the middle of the strip. Only the blurred sides get cropped.
   Touch devices use a normal background (reset below). */
@media (min-width: 769px) {
  .parallax-bg-1 {
    background-size: max(100vw, 205vh) auto;
  }
}

.parallax-bg-2 {
  background-image: url('../images/photos/wedding-couple-bouquet-shoes-bw.webp');
}

.parallax-bg-3 {
  background-image: url('../images/photos/wedding-couple-bouquet-tracht-bw.webp');
}

/* Touch devices: iOS Safari (iPad included, at any width) renders fixed backgrounds
   hugely zoomed and blurry, and phones/tablets don't scroll smoothly with them */
@media (hover: none) and (pointer: coarse) {
  .parallax-divider {
    background-attachment: scroll;
  }
  .parallax-bg-1 {
    background-size: cover;
  }
}

/* iPads with a trackpad report hover + fine pointer; this only matches WebKit on iOS */
@supports (-webkit-touch-callout: none) {
  .parallax-divider {
    background-attachment: scroll;
  }
  .parallax-bg-1 {
    background-size: cover;
  }
}

/* Mobile Compatibility Fallback */
@media (max-width: 768px) {
  .parallax-divider {
    background-attachment: scroll;
    height: 200px;
  }
  .parallax-quote {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   4. ADVANTAGES SECTION (B2B & QUALITY)
   ========================================================================== */
.advantages-section {
  padding: 80px 0;
  background-color: var(--bg-warm-100);
  border-bottom: 1px solid var(--border-warm);
}

/* Explicit 4 / 2x2 / 1 columns: auto-fit produced 3 + an orphaned 4th card
   between ~890 and 1200px */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
}

/* Portrait photos (client request) make wide cards very tall: cap the grid width
   in the 2- and 1-column layouts */
@media (max-width: 1200px) {
  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .advantages-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.advantage-card {
  background-color: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-border);
}

.advantage-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4; /* portrait, so the photos aren't cropped to a thin strip (client request) */
  overflow: hidden;
  background-color: var(--bg-warm-50);
}

.advantage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Photos taller than 3:4 still lose a little height: set the focal point per
     image with style="--focus-y: 20%" to keep the face in view */
  object-position: center var(--focus-y, 50%);
  transition: transform 0.5s ease;
}

.advantage-card:hover .advantage-img {
  transform: scale(1.05);
}

.advantage-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.advantage-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.advantage-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   5. AUDIO PREVIEWS SECTION
   ========================================================================== */
.audio-section {
  padding: 100px 0;
  background-color: var(--bg-warm-50);
}

.audio-grid {
  display: grid;
  /* min(): on phones narrower than 320px + margins one column takes the full width
     instead of poking out sideways */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
  max-width: 950px;
  margin: 0 auto;
}

.audio-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 20px 25px;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
}

.audio-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  background-color: var(--bg-warm-100);
  color: var(--brand-main);
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.audio-title {
  font-size: 1.25rem;
  margin-top: 5px;
}

.audio-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

audio {
  width: 100%;
  height: 40px;
  outline: none;
  accent-color: var(--brand-main);
}

.custom-song-box {
  max-width: 600px;
  margin: 40px auto 0 auto;
  background-color: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
}

.custom-song-box h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.custom-song-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   6. ABOUT SECTION
   ========================================================================== */
/* Client requests: on laptops and tablets the whole section fits on one screen
   (below the sticky header) and the photo + card block is centred horizontally and
   vertically. Layout from the client's sketch: a smaller arched photo top right,
   the card offset downwards - it starts below the photo's top and reaches a bit
   below its bottom. Phones (max-width: 700px block) stack photo and card and may
   scroll: there the client prefers a bigger photo that shows the microphone. */
.about-section {
  padding: 40px 0;
  background-color: var(--white);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}

/* Block centred vertically on screens taller than it */
@media (min-width: 701px) {
  .about-section {
    display: flex;
    align-items: center;
    min-height: calc(100svh - var(--header-height));
  }
}

/* Editorial layout: white text card overlapping the arched photo on its left.
   Columns: card only | overlap | photo only, centred as a whole.
   Rows: photo only (--rise) | both | card only (--drop). So the card always starts
   at least --rise below the photo's top and ends exactly --drop below its bottom;
   a taller card (narrow tablets) makes the photo taller with it. */
.about-grid {
  --rise: 110px;
  --drop: 55px;
  /* Photo width: about a third of the row, 340-440px; on short screens small
     enough that photo (6:7) + drop fit below the header (400px floor: phones held
     sideways scroll instead) */
  --photo-w: min(clamp(340px, 37%, 440px), calc((max(100svh - var(--header-height) - 82px, 400px) - var(--drop)) * 6 / 7));
  --overlap: calc(var(--photo-w) * 0.2);
  /* The card takes the remaining width, up to 700px */
  --card-w: min(700px, 100% - var(--photo-w) + var(--overlap));
  display: grid;
  grid-template-columns: calc(var(--card-w) - var(--overlap)) var(--overlap) calc(var(--photo-w) - var(--overlap));
  grid-template-rows: var(--rise) auto var(--drop);
  justify-content: center;
}

.about-img-wrapper {
  grid-column: 2 / 4;
  grid-row: 1 / 3;
  align-self: stretch; /* 6:7, or taller if the card needs it */
}

.about-img-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 6 / 7; /* its natural height while the rows are sized (client's sketch) */
  object-fit: cover;
  /* Head at the top; a taller photo crops the sides: keep face and microphone */
  object-position: 68% 0%;
  /* 999px top radii get scaled down to exactly half the width = a true arch */
  border-radius: 999px 999px 0 0;
  box-shadow: var(--shadow-lg);
}

.about-photo {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Photographer credit on the photo, like .hero-watermark (no pink film here, so
   a shadow keeps the white text readable on the light blazer) */
.photo-watermark {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transition: color 0.25s ease;
}

.photo-watermark:hover {
  color: var(--brand-main);
  text-decoration: underline;
}

.about-text {
  grid-column: 1 / 3;
  grid-row: 2 / 4;
  align-self: end; /* bottom = grid bottom = photo bottom + --drop */
  position: relative;
  z-index: 1;
  padding: 48px 52px;
  background-color: var(--bg-beige); /* same as the header bar (client request) */
  border: 1px solid var(--border-warm);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}

.about-text h2 {
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  margin: 10px 0 18px;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.about-cta .btn {
  white-space: nowrap; /* wrap whole buttons onto a new line, never their text */
}

/* Mid widths: tighter card so the photo stays the taller element */
@media (min-width: 701px) and (max-width: 1150px) {
  .about-text {
    padding: 36px 40px;
  }
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--border-warm);
}

.stat-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-hero);
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* These two blocks must stay below the base rules above, or those win */
/* Short desktop/landscape-tablet screens (up to iPad Pro 11" landscape, 834px):
   the text card becomes the taller element */
@media (min-width: 701px) and (max-height: 860px) {
  .about-text {
    padding: 30px 32px;
  }

  .about-text h2 {
    margin: 6px 0 12px;
  }

  .about-stats {
    margin-top: 16px;
    padding-top: 16px;
  }

  .about-cta {
    margin-top: 20px;
  }

  .about-cta .btn {
    padding: 12px 20px; /* keeps both buttons on one row in the narrower card */
  }
}

/* Portrait tablets: same side-by-side layout as the laptop (client request), with
   a more compact card because it is much narrower here */
@media (min-width: 701px) and (max-width: 900px) {
  .about-text {
    padding: 26px 26px 28px;
  }

  .about-text .badge-sub {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
  }

  .about-text h2 {
    font-size: 1.55rem;
    margin: 6px 0 12px;
  }

  .about-stats {
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
  }

  .stat-title {
    font-size: 1.05rem; /* "München & Bayern" on one line */
  }

  .about-text p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .about-cta {
    margin-top: 20px;
  }

  .about-cta .btn {
    flex: 1 1 100%; /* the card is too narrow for both buttons side by side */
    padding: 12px 18px;
  }
}

/* ==========================================================================
   7. GALLERY SECTION (INSTAGRAM: phone mockup + latest posts)
   ========================================================================== */
.instagram-section {
  padding: 100px 0;
  background-color: var(--bg-beige); /* header colour: sets it apart from the Hörproben above (client request) */
  border-top: 1px solid var(--border-warm);
}

.instagram-layout {
  display: grid;
  grid-template-columns: minmax(200px, 290px) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 50px auto 0;
}

.instagram-phone {
  display: block;
  transition: transform 0.3s ease;
}

.instagram-phone:hover {
  transform: translateY(-4px);
}

.instagram-phone img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(43, 31, 45, 0.18));
}

.instagram-feed {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.instagram-post {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--brand-soft);
}

.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.instagram-post:hover img,
.instagram-post:focus-visible img {
  transform: scale(1.05);
}

/* Loading placeholders while the feed is fetched */
.instagram-post--placeholder {
  background: linear-gradient(100deg, var(--brand-soft) 40%, var(--bg-warm-100) 50%, var(--brand-soft) 60%);
  background-size: 300% 100%;
  animation: instagram-shimmer 1.4s ease-in-out infinite;
}

@keyframes instagram-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-post--placeholder {
    animation: none;
  }
}

/* Shown instead of the posts until the visitor consents to external media */
.instagram-consent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 32px;
  background-color: var(--white);
  border: 1px dashed var(--brand-border);
  border-radius: 12px;
}

.instagram-consent[hidden] {
  display: none;
}

.instagram-consent p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 46ch;
}

/* No feed configured (or it failed): just the phone mockup + button, centered */
.instagram-layout.is-feedless {
  grid-template-columns: minmax(200px, 290px);
  justify-content: center;
  justify-items: center;
}

.instagram-layout.is-feedless .instagram-grid {
  display: none;
}

.instagram-layout.is-feedless .instagram-feed {
  align-items: center;
}

@media (max-width: 900px) {
  .instagram-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 35px;
  }

  .instagram-phone {
    width: 100%;
    max-width: 230px;
    justify-self: center;
  }

  .instagram-feed {
    align-items: center;
  }

  .instagram-grid {
    gap: 8px;
  }

  .instagram-consent {
    align-items: center;
    text-align: center;
    padding: 24px;
  }
}

/* ==========================================================================
   8. REVIEWS & TESTIMONIALS SECTION (GOOGLE STYLED)
   ========================================================================== */
.reviews-section {
  padding: 80px 0;
  background-color: var(--bg-warm-100);
}

/* Google Top Header Banner */
.google-reviews-header {
  background-color: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-warm);
  padding: 16px 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.google-brand-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.google-logo-img {
  display: block;
}

.badge-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.stars-gold {
  color: #F59E0B;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.rating-score {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.rating-divider {
  color: var(--border-warm);
  margin: 0 4px;
}

.reviews-count {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.btn-write-review {
  background-color: var(--white);
  color: var(--text-main);
  border: 1px solid #D1D5DB;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-write-review:hover {
  background-color: var(--bg-warm-50);
  border-color: var(--text-muted);
}

/* Review Cards Carousel Wrapper */
.reviews-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.reviews-track {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  /* No left padding: the first card has to start exactly on its snap point. With
     5px the browser scrolled the track 5px right after load (to the same position
     the cards have now), and on mobile Chrome counts that as a user scroll and stops
     measuring LCP (PageSpeed: NO_LCP). */
  padding: 10px 5px 20px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.reviews-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Individual Google Review Card */
.google-review-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 290px;
  scroll-snap-align: start;
  background-color: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-warm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.google-review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
}

.avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Live reviews: fallback when a Google profile picture is missing or fails to load */
.avatar-initial {
  background-color: var(--brand-hero);
}

.bg-purple { background-color: #7C3AED; }
.bg-pink   { background-color: #DB2777; }
.bg-blue   { background-color: #2563EB; }

.user-meta .user-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.user-meta .review-date {
  font-size: 0.8rem;
  color: #9CA3AF;
  display: block;
  margin-top: 2px;
}

.review-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  display: flex;
  align-items: center;
}

/* Truncate review text to 3 lines by default */
.review-body {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Live reviews are plain text: keep the reviewer's own line breaks */
.review-body--live {
  white-space: pre-line;
}

/* Expanded state when clicking "Weiterlesen" */
.google-review-card.is-expanded .review-body {
  display: block;
  overflow: visible;
}

/* "Weiterlesen / Ausblenden" Button styling */
.btn-toggle-review {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: #9CA3AF;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
  align-self: flex-start;
  transition: opacity 0.2s ease;
}

.btn-toggle-review:hover {
  text-decoration: underline;
  color: var(--black);
}

/* Hint below the slider while external content is not allowed: explains that the
   cards are a built-in selection and offers to load the current reviews */
.reviews-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  text-align: center;
}

.reviews-consent[hidden] {
  display: none;
}

.reviews-consent p {
  max-width: 78ch;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Carousel Side Navigation Buttons */
.reviews-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--border-warm);
  color: var(--text-main);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.reviews-nav-btn:hover {
  background-color: var(--brand-main);
  color: var(--white);
  border-color: var(--brand-main);
}

.reviews-nav-btn.prev { left: -18px; }
.reviews-nav-btn.next { right: -18px; }

/* The narrowest phones have a 16px page margin: keep the arrows inside the screen */
@media (max-width: 359px) {
  .reviews-nav-btn.prev { left: -12px; }
  .reviews-nav-btn.next { right: -12px; }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .google-review-card {
    flex: 0 0 calc(50% - 10px);
  }
}

/* ==========================================================================
   9. PROCESS SECTION (ANFRAGE & ABLAUF: numbered <details> accordion)
   ========================================================================== */
.process-section {
  padding: 100px 0;
  background-color: var(--white);
  border-top: 1px solid var(--border-warm);
}

.process-list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

.process-list > li {
  position: relative;
  padding-bottom: 16px;
}

/* Timeline line connecting the number circles */
.process-list > li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 44px; /* border 1px + padding 20px + half the 48px circle - half the line */
  top: 40px;
  bottom: -40px;
  width: 2px;
  background-color: var(--brand-border);
}

.process-step {
  position: relative; /* above the timeline line */
  background-color: var(--bg-warm-50);
  border: 1px solid var(--border-warm);
  border-radius: 16px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.process-step[open] {
  background-color: var(--white);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
}

.process-step summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
}

.process-step summary::-webkit-details-marker {
  display: none;
}

.process-step summary:focus-visible {
  outline: 2px solid var(--brand-hero);
  outline-offset: 2px;
}

.process-num {
  flex: 0 0 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--brand-soft);
  border: 1px solid var(--brand-border);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-main);
  transition: background-color 0.25s ease;
}

.process-step[open] .process-num,
.process-step summary:hover .process-num {
  background-color: var(--brand-main);
}

.process-title {
  flex: 1;
  min-width: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

/* Plus that turns into a minus when open */
.process-icon {
  position: relative;
  flex: 0 0 16px;
  height: 16px;
}

.process-icon::before,
.process-icon::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--text-muted);
  transition: transform 0.25s ease;
}

.process-icon::after {
  transform: rotate(90deg);
}

.process-step[open] .process-icon::after {
  transform: rotate(0deg);
}

.process-body {
  padding: 0 52px 20px 88px; /* text lines up with the step title */
  color: var(--text-muted);
  line-height: 1.7;
}

.process-body a {
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: var(--brand-hero);
  text-underline-offset: 3px;
}

/* Smooth open/close where supported (Chromium 131+); other browsers just toggle */
@supports selector(::details-content) {
  .process-step {
    interpolate-size: allow-keywords;
  }

  .process-step::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
  }

  .process-step[open]::details-content {
    block-size: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-step::details-content {
    transition: none;
  }
}

@media (max-width: 600px) {
  .process-section {
    padding: 70px 0;
  }

  .process-list > li:not(:last-child)::before {
    left: 36px; /* border 1px + padding 16px + half the 40px circle - half the line */
  }

  .process-step summary {
    gap: 14px;
    padding: 14px 16px;
  }

  .process-num {
    flex-basis: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .process-title {
    font-size: 1rem;
  }

  .process-body {
    padding: 0 16px 18px 70px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   10. CONTACT SECTION & FORM
   ========================================================================== */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-warm-100);
  border-top: 1px solid var(--border-warm);
}

.contact-box {
  max-width: 850px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 24px;
  padding: 50px;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px; /* vertical spacing comes from .form-group's margin, also when stacked on mobile */
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  background-color: var(--bg-warm-50);
  border: 1px solid var(--border-warm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-main);
  transition: border-color 0.25s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-main);
}

/* Honeypot field: off-screen rather than display:none, which some bots skip */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.form-privacy {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.form-privacy a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background-color: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--text-main);
  text-align: center;
  white-space: pre-line;
}

.form-status.is-error {
  background-color: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-text);
}

/* Thank-you message that replaces the form after sending */
.contact-success {
  padding: 16px 0 8px;
  text-align: center;
  animation: contact-success-in 0.5s ease both;
}

.contact-success:focus {
  outline: none; /* focused by script only, so screen readers read it */
}

.contact-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 28px;
  border-radius: 50%;
  background-color: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand-hero);
}

.contact-success-text {
  max-width: 32ch;
  margin: 0 auto 28px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.45;
  color: var(--text-main);
  text-wrap: balance;
}

.contact-success-sign {
  margin-bottom: 36px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-success-sign span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text-main);
}

.contact-success-again {
  padding: 6px 4px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.contact-success-again:hover {
  color: var(--text-main);
}

@keyframes contact-success-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-success {
    animation: none;
  }
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
footer {
  background-color: var(--bg-warm-50);
  color: var(--text-main);
  padding: 60px 0 30px 0;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
  display: block;
}

.footer-logo-img {
  height: 160px;
  width: 160px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
  transform: scale(1.05);
}

.footer-contact p {
  font-size: 0.9rem;
  color:var(--text-main);
  margin-bottom: 4px;
}

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

.footer-links a {
  color: var(--text-main);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--brand-hero);
}

/* "Cookie-Einstellungen" is a <button> (opens the consent dialog) styled like the links */
.footer-link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  transition: color 0.25s ease;
}

.footer-link-button:hover {
  color: var(--brand-hero);
}

.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-main);
  margin-top: 30px;
}

/* Footer Responsive Layout for Mobile */
@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: center; /* everything centred on mobile (client request) */
    text-align: center;
    gap: 25px;
  }

  .footer-logo-img {
    height: 110px;
    width: 110px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
}

.social-links a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-smoke);
  transition: all 0.3s ease;
  position: relative;
}

.social-links a::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-links a:hover {
  background: var(--brand-main);
  color: white;
  transform: translateY(-5px) scale(1.1);
}

.social-links a:hover::before {
  opacity: 0.3;
}

.social-links svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-links a:hover svg {
  transform: scale(1.1);
}

/* ==========================================================================
   LEGAL PAGES (Impressum & Datenschutz)
   ========================================================================== */
.legal-box {
  max-width: 850px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 24px;
  padding: 50px;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-lg);
}

.legal-box .legal-title {
  font-size: 2.5rem;
  margin-top: 5px;
}

/* 404 page (404.html): same card, centred, at least one screen tall */
.not-found-section {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: 60px 0;
  background-color: var(--bg-warm-100);
}

.not-found-box {
  max-width: 640px;
  text-align: center;
}

.not-found-box p {
  max-width: 44ch;
  margin: 16px auto 32px;
  color: var(--text-muted);
  line-height: 1.7;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Long German words ("Pflichtinformationen") in Aboreto's wide caps are wider than
   the narrowest phones: hyphenate them, break them as a last resort */
.legal-box h2,
.legal-box h3 {
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .legal-box {
    padding: 30px 20px;
  }

  .legal-box .legal-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   COOKIE CONSENT (theme for assets/vendor/cookieconsent, loaded before this file)
   ========================================================================== */
#cc-main {
  --cc-font-family: var(--font-sans);
  --cc-bg: var(--white);
  --cc-primary-color: var(--text-main);
  --cc-secondary-color: var(--text-muted);
  --cc-link-color: var(--brand-hero);
  --cc-modal-border-radius: 16px;
  --cc-btn-border-radius: 9999px;

  /* Both choices look identical (equalWeightButtons); dark plum keeps the text readable */
  --cc-btn-primary-bg: var(--text-main);
  --cc-btn-primary-border-color: var(--text-main);
  --cc-btn-primary-color: var(--white);
  --cc-btn-primary-hover-bg: var(--brand-hero);
  --cc-btn-primary-hover-border-color: var(--brand-hero);
  --cc-btn-primary-hover-color: var(--text-main);
  --cc-btn-secondary-bg: var(--bg-warm-100);
  --cc-btn-secondary-border-color: var(--border-warm);
  --cc-btn-secondary-color: var(--text-main);
  --cc-btn-secondary-hover-bg: var(--brand-soft);
  --cc-btn-secondary-hover-border-color: var(--brand-border);
  --cc-btn-secondary-hover-color: var(--text-main);

  --cc-toggle-on-bg: var(--brand-hero);
  --cc-toggle-readonly-bg: var(--border-warm);
  --cc-separator-border-color: var(--border-warm);
  --cc-cookie-category-block-bg: var(--bg-warm-50);
  --cc-cookie-category-block-border: var(--border-warm);
  --cc-cookie-category-block-hover-bg: var(--bg-warm-100);
  --cc-cookie-category-block-hover-border: var(--brand-border);
  --cc-footer-bg: var(--bg-warm-100);
  --cc-footer-border-color: var(--border-warm);
}

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */
/* Short desktop/laptop windows: compact hero so it fits the first screen
   (buttons + Sandra's feet in the photo visible without scrolling) */
@media (min-width: 1025px) and (max-height: 900px) {
  .hero {
    padding: 36px 20px;
  }

  .hero-badge {
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 2.6rem;
    margin-bottom: 14px;
  }

  .hero p {
    margin-bottom: 24px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 96px;
  }

  /* Portrait screens crop the photo's sides. The x value sets where Sandra sits:
     lower = further right on screen. Client wants her face well right of centre
     (~80% of the width); the tip of her front shoe may be cut off */
  .hero {
    background-position: 80% 80%;
  }

  .nav-wrapper {
    height: var(--header-height);
    justify-content: flex-end;
    position: relative;
  }

  .brand-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 1001;
  }

  .logo-img {
    height: 80px;
    width: 80px;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    z-index: 1001;
  }

  /* Slide-out menu, fixed to the screen. Closed = moved out with a transform and
     hidden (not right: -100%): an off-screen transform never widens the page, and
     hidden links can't be reached by keyboard or screen readers */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    visibility: hidden;
    height: 100vh;
    height: 100dvh;
    width: 80%;
    max-width: 320px;
    background-color: var(--bg-warm-100);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu.mobile-menu-open {
    transform: none;
    visibility: visible;
    transition: transform 0.3s ease-in-out, visibility 0s;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1.2rem;
    flex: none;
  }

  .nav-left, .nav-right {
    padding: 0;
    margin: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    font-size: 1.05rem;
    display: block;
    width: 100%;
  }
}

/* Large portrait tablets (iPad Pro 12.9"/13", 1024-1032px wide; from 1000px) also
   crop the photo's sides. 62% puts her face right of the centred heading; her front
   leg/foot is partly cut off (OK'd by the user) */
@media (min-width: 1000px) and (orientation: portrait) {
  .hero {
    background-position: 62% 80%;
  }
}

@media (max-width: 600px) {
  /* Phones are narrower relative to the photo: same goal as the 1024px rule */
  .hero {
    background-position: 84% 80%;
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-box {
    padding: 30px;
  }
}

@media (max-width: 700px) {
  /* Phones: arched photo on top, card below it. The photo is exactly as wide and
     as tall as the card (client request): two equal grid rows, sized by the card
     alone because the image is taken out of the flow. The section is taller than
     one screen here. */
  .about-section {
    padding: 20px 0 0; /* the card's -24px shift leaves the bottom spacing */
  }
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 1fr;
    align-items: stretch;
    justify-items: center;
  }
  .about-img-wrapper,
  .about-text {
    grid-column: 1;
    width: 100%;
    max-width: 560px;
  }
  .about-img-wrapper {
    grid-row: 1;
  }
  .about-photo {
    width: 100%;
    height: 100%;
  }
  .about-img-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-position: 68% center; /* the sides get cropped: keep face and microphone */
  }
  /* Bottom left, on the blazer: bottom right would sit on her hand and the microphone */
  .photo-watermark {
    right: auto;
    left: 16px;
    bottom: 36px; /* above the card's overlap */
  }
  .about-text {
    grid-row: 2;
    top: -24px; /* small overlap: the card covers the photo's bottom edge */
    margin: 0;
    padding: 20px 20px 22px;
  }
  .about-text .badge-sub {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
  }
  .about-text h2 {
    font-size: 1.45rem;
    margin: 4px 0 10px;
  }
  .about-text p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0;
  }
  .about-stats {
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
  }
  .stat-title {
    font-size: 1.15rem;
  }
  .about-cta {
    gap: 10px;
    margin-top: 16px;
  }
  .about-cta .btn {
    flex: 1 1 200px; /* equal widths side by side, full width once they wrap */
    padding: 11px 18px;
  }
}

/* Shorter phones: no stats row, to keep the section from getting even longer
   (client OK'd hiding it on short phones only; tall phones and tablets keep it) */
@media (max-width: 700px) and (max-height: 820px) {
  .about-stats {
    display: none;
  }
}

/* Shortest phones (iPhone SE size): slightly smaller text */
@media (max-width: 700px) and (max-height: 700px) {
  .about-text h2 {
    font-size: 1.3rem;
  }
  .about-text p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  /* Aboreto's wide caps: long words like "Verfügbarkeit" overflow narrow cards */
  .section-title {
    font-size: clamp(1.6rem, 7.5vw, 2.25rem);
  }

  .mobile-cta {
    display: block;
    margin-top: auto;
    padding-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .mobile-cta a.btn.btn-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
}