/* ═══════════════════════════════════════════════════════════
   SCHREINEREI NOAH — Design System
   Handwerk für Generationen
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Primary palette — NOAH amber */
  --primary: #DC7E27;
  --primary-hover: #E8923A;
  --primary-dark: #B5651A;
  --primary-glow: rgba(220, 126, 39, 0.15);

  /* Warm neutrals */
  --cream: #FAF3E8;
  --cream-dark: #F0E6D4;
  --warm-white: #FFFDF8;
  --sand: #E8DCC8;

  /* Dark tones — warm brown */
  --dark: #2D1B0F;
  --dark-warm: #3D2818;
  --dark-medium: #573F25;
  --dark-light: #6B5235;

  /* Text */
  --text: #2C2218;
  --text-light: #6B5B4B;
  --text-on-dark: #F0E6D4;
  --text-muted: #9A8A7A;

  /* Accents */
  --accent-green: #4A7C59;
  --accent-gold: #B8860B;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(43, 29, 14, 0.08);
  --shadow-md: 0 8px 32px rgba(43, 29, 14, 0.12);
  --shadow-lg: 0 16px 48px rgba(43, 29, 14, 0.16);
  --shadow-glow: 0 8px 32px rgba(220, 126, 39, 0.25);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--primary-hover);
}

ul, ol { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 0.6rem; }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  max-width: 70ch;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  max-width: none;
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  margin-bottom: 2.5rem;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background: var(--dark);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--cream);
}

.section--dark p {
  color: var(--text-on-dark);
}

.section--cream {
  background: var(--cream-dark);
}

.text-center { text-align: center; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(61, 40, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(220, 126, 39, 0.2);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.navbar.scrolled {
  background: rgba(61, 40, 24, 0.98);
  box-shadow: 0 4px 24px rgba(43, 29, 14, 0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.nav-logo::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 21px;
  width: 100vw;
  height: 7px;
  background: #dc1a27;
  pointer-events: none;
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-hover);
  border-radius: 2px;
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-hover);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Navbar Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 180px;
  background: var(--dark);
  border: 1px solid var(--dark-medium);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}

@media (hover: hover) and (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-on-dark);
  white-space: nowrap;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.nav-dropdown-menu a:hover {
  background: var(--dark-medium);
  color: var(--primary-hover);
}

/* Tisch Section — Text above, photos side-by-side */
.tisch-text {
  margin-bottom: 2.5rem;
}

.tisch-text h2 {
  margin-bottom: 1rem;
}

.tisch-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.tisch-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.tisch-duo__photo,
.tisch-duo__skizze {
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.tisch-duo__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.tisch-duo__skizze img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
}

.skizze-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

.tisch-photo-caption {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
  text-align: center;
}

.tisch-photo-caption em {
  font-style: normal;
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--cream) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: all var(--duration) var(--ease) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  transition: all var(--duration) var(--ease);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--cream);
  box-shadow: 0 4px 16px rgba(220, 126, 39, 0.3);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background: rgba(43, 29, 14, 0.35);
  color: var(--cream);
  border: 2px solid rgba(250, 243, 232, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn--outline:hover {
  background: var(--cream);
  color: var(--primary);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--dark);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--dark-medium);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--cream);
  color: var(--primary);
}

.btn--white:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 140px; /* navbar height + breathing room */
  padding-bottom: 4rem;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    linear-gradient(
      to right,
      rgba(43, 29, 14, 0.92) 0%,
      rgba(43, 29, 14, 0.75) 40%,
      rgba(43, 29, 14, 0.45) 70%,
      rgba(181, 101, 26, 0.3) 100%
    ),
    linear-gradient(
      to top,
      rgba(43, 29, 14, 0.6) 0%,
      transparent 40%
    );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
}

.hero h1 em {
  color: var(--primary-hover);
  font-style: normal;
}

.hero p {
  color: var(--text-on-dark);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 550px;
}

/* Sub-page hero (shorter) */
.hero--sub {
  min-height: 70vh;
  padding-top: clamp(120px, 15vh, 160px);
  align-items: flex-start;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: 1.75rem;
}

.card-body h3 {
  margin-bottom: 0.75rem;
}

.card-body p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* ── Services Grid ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card .card-img {
  height: 280px;
}

/* ── Vorteile (Benefits) Grid ─────────────────────────────── */
.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.vorteil-item {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--warm-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

.vorteil-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.vorteil-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: var(--primary-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.vorteil-item h4 {
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.vorteil-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0 auto;
}

/* ── Ablauf (Process Steps) ───────────────────────────────── */
.ablauf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.ablauf-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  z-index: 0;
}

.ablauf-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.ablauf-number {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: var(--primary);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.section--dark .ablauf-number {
  background: var(--primary-hover);
}

.ablauf-step h4 {
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.ablauf-step p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0 auto;
  max-width: 280px;
}

.section--dark .ablauf-step p {
  color: var(--text-on-dark);
  opacity: 0.8;
}

/* ── About / Split Section ────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.split-text h2 {
  margin-bottom: 1rem;
}

.split-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.value-item .icon {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Testimonial Marquee ─────────────────────────────────── */
.testimonial-section {
  overflow: hidden;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-card {
  flex-shrink: 0;
  width: 420px;
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.marquee-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.marquee-card::before {
  content: '«';
  position: absolute;
  top: 0.6rem;
  right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  color: var(--primary-glow);
  line-height: 1;
  pointer-events: none;
}

.marquee-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.marquee-card p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}

.marquee-author {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.marquee-context {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

@media (max-width: 600px) {
  .marquee-card {
    width: 300px;
    padding: 1.5rem;
  }

  .marquee-track {
    gap: 1.25rem;
  }
}

/* ── Adressen (Gute Adressen) Grid ───────────────────────── */
.adressen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.adresse-card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--duration) var(--ease);
  border-top: 3px solid var(--primary);
}

.adresse-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.adresse-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.adresse-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--primary-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
}

.adresse-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.adresse-card p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
}

.adresse-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: all var(--duration) var(--ease);
}

.adresse-link:hover {
  border-bottom-color: var(--primary);
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .adressen-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .adresse-card {
    padding: 1.5rem;
  }
}

/* ── Gallery Grid ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 29, 14, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 1100px);
  width: 100%;
  transform: scale(0.93);
  transition: transform 0.3s var(--ease);
}

.lightbox--open .lightbox__inner {
  transform: scale(1);
}

.lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  display: block;
}

.lightbox__caption {
  margin-top: 1.25rem;
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  text-align: center;
  max-width: 60ch;
  opacity: 0.85;
  line-height: 1.5;
}

.lightbox__counter {
  margin-top: 0.5rem;
  color: var(--primary-hover);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox__close {
  position: fixed;
  top: 1.5rem;
  right: 1.75rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox__close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.lightbox__arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.lightbox__arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.lightbox__arrow--prev { left: 1.5rem; }
.lightbox__arrow--next { right: 1.5rem; }

@media (max-width: 600px) {
  .lightbox__arrow--prev { left: 0.5rem; }
  .lightbox__arrow--next { right: 0.5rem; }
  .lightbox__arrow { width: 40px; height: 40px; font-size: 1.1rem; }
}


/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-hover));
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.cta-banner h2 {
  color: var(--cream);
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: var(--text-on-dark);
  opacity: 0.9;
  margin: 0 auto 2rem;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ── Contact Form ─────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--warm-white);
  color: var(--text);
  transition: border-color var(--duration) var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  line-height: 1.4;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0.15rem 0 0 0;
  padding: 0;
  flex-shrink: 0;
  border: 2px solid var(--sand);
  accent-color: var(--primary);
  cursor: pointer;
}

.form-checkbox em {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(26, 20, 16, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(30px) scale(0.95);
  transition: transform var(--duration) var(--ease);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-header h3 {
  font-size: 1.4rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color var(--duration) var(--ease);
  padding: 0.25rem;
}

.modal-close:hover {
  color: var(--primary);
}

.modal .btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

/* ── Map Section ──────────────────────────────────────────── */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #3D2818;
  color: var(--text-on-dark);
  padding: 4rem 0 2rem;
}

.footer-logo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0.5rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  color: var(--cream);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.footer-brand h3 span {
  color: var(--primary-hover);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: var(--primary-hover);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact a,
.footer-contact span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact a:hover {
  color: var(--primary-hover);
}

.footer-bottom {
  border-top: 1px solid var(--dark-medium);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--primary-hover);
}

.footer-bottom a.footer-credit {
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer-bottom a.footer-credit:hover {
  opacity: 1;
  color: var(--primary-hover);
}

/* ── Scroll Animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid,
  .vorteile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  /* Mobile Nav */
  .nav-toggle { display: flex; }

  .nav-logo img { height: 42px; width: auto; }
  .nav-logo::before { top: 17px; height: 6px; }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 999;
    background: rgba(26, 20, 16, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.5rem 2rem;
    gap: 0.25rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
    pointer-events: none;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links > a {
    display: block;
    width: 100%;
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Mobile dropdown — tap to expand */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-trigger {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.5rem !important;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-dropdown-trigger i {
    font-size: 0.9rem !important;
    margin-left: auto !important;
    transition: transform 0.25s var(--ease);
  }

  .nav-dropdown.open .nav-dropdown-trigger i {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1.25rem;
    min-width: auto;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.3s var(--ease), opacity 0.2s var(--ease);
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 240px;
    opacity: 1;
    visibility: visible;
  }

  .nav-dropdown-menu a {
    display: block;
    padding: 0.7rem 0.5rem;
    font-size: 0.95rem;
    color: var(--text-on-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-dropdown-menu a:last-child {
    border-bottom: none;
  }

  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a:active {
    background: none;
    color: var(--primary-hover);
  }

  /* Hide underline animation on mobile (visual noise in stacked list) */
  .nav-links a::after { display: none; }

  /* Stacks */
  .services-grid,
  .vorteile-grid,
  .ablauf-steps {
    grid-template-columns: 1fr;
  }

  .ablauf-steps::before {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split--reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero { min-height: 90vh; }
  .hero--sub { min-height: 60vh; }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .testimonial-card { padding: 2rem 1.5rem; }
  .modal { padding: 1.75rem; }

  /* Tighter navbar on phones */
  .nav-logo img { height: 36px; }
  .nav-logo::before { top: 14px; height: 5px; }
  .navbar .container { padding-left: 1rem; padding-right: 1rem; }
}

/* ── Page-specific: Content section with rich text ────────── */
.content-section h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content-section p {
  margin-bottom: 1rem;
}

.content-section ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-section ul li {
  list-style: disc;
  margin-bottom: 0.4rem;
  color: var(--text-light);
}

/* ── Problem Section ──────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.problem-grid .problem-text h3 {
  margin-bottom: 1rem;
}

.problem-grid .problem-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Contact Info Split ───────────────────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item .icon {
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--text-light);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
}

/* ── Impressum ────────────────────────────────────────────── */
.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ── Problem Grid (waben.html) ────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.problem-text h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.problem-text p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

/* ── Hexagon Image Frame ───────────────────────────────────── */
.hex-frame {
  width: 420px;
  max-width: 100%;
  aspect-ratio: 1 / 1.1547;           /* width : height = 1 : √3/√(3/4) keeps flat-top hex */
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--sand);
}

.hex-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ── Lösung Preview Photo Strip (waben.html) ──────────────── */
.loesung-preview {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  height: 440px;
  margin: 0 0 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.loesung-preview__main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Single-image variant — spans full width */
.loesung-preview__main--solo {
  grid-column: 1 / -1;
  height: 420px;
}

/* Three-image equal grid */
.loesung-preview--three {
  grid-template-columns: repeat(3, 1fr);
  height: 340px;
}

.loesung-preview--three > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loesung-preview__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.loesung-preview__side img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  display: block;
  min-height: 0;
}

@media (max-width: 768px) {
  .loesung-preview {
    grid-template-columns: 1fr;
    height: auto;
  }

  .loesung-preview__main {
    height: 260px;
  }

  .loesung-preview__side {
    flex-direction: row;
    height: 160px;
  }

  .loesung-preview__side img {
    height: 100%;
  }
}

@media (max-width: 768px) {
  .tisch-duo {
    grid-template-columns: 1fr;
  }
}

/* ── Legal Content (Datenschutz / Impressum) ─────────────── */
.legal-content h1 {
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--sand);
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.legal-content ul {
  color: var(--text-light);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.7;
}

.legal-content ul li {
  margin-bottom: 0.25rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--primary-hover);
}

/* ── Honeypot (Spamschutz) — für Menschen unsichtbar ──────── */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
