/* Holzbau List – Styles v5 mit Kontrast, A–F Features & per-Page Hintergrundbildern */

:root {
  --bg: #F0F0EE; /* Gräulich hell abhebend */
  --bg-alt: #FFFFFF; /* Weiße Karten */
  --text: #1B1B1B;
  --text-muted: #555555;

  --primary: #C59434; /* Goldbraun vom Logo */
  --primary-dark: #A47A29;
  --accent: #D32F2F; /* Rot vom Logo */

  --border: #D0CCC5;

  --card-shadow: 0 8px 20px rgba(0,0,0,0.06);
  --radius-lg: 4px;
  --radius-xl: 4px;
  --transition-fast: 0.25s ease;
}

/* Dark mode entfernt */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

/* Seitenhintergrund rein weiß */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg); /* Bannerfarbe dem Hintergrund angepasst */
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
body.page-home header {
  border-bottom: none;
}
.theme-dark header {
  background: rgba(24,20,18,0.96);
}
header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.brand-logo {
  height: 78px;
  width: auto;
  display: block;
  background: transparent;
  padding: 0.25rem;
  border-radius: 0;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 56px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}
.brand-text span:first-child {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-text span:last-child {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
}
.nav-links a {
  position: relative;
  padding-bottom: 2px;
  color: var(--text);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
  border-radius: 3px;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-mini-info {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-cta {
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--card-shadow);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.2);
}
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text);
}
.nav-theme-toggle {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-mini-info { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-cta { width: 100%; text-align: center; }
  .nav-toggle { display: block; }
  .nav-theme-toggle { align-self: flex-end; }
}

/* Hero */

.hero { padding: 3rem 0 4rem; }
@media (min-width: 900px) { .hero { padding: 4rem 0 5rem; } }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(139, 94, 52, 0.1);
  color: var(--primary-dark);
  margin-bottom: 1.3rem;
}
.theme-dark .hero-badge {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(2.1rem, 3.1vw + 1.2rem, 3.3rem);
  line-height: 1.05;
  margin-bottom: 0.9rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-title span { color: var(--primary); }
.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 35rem;
  margin-bottom: 1.6rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.hero-highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-highlight-icon {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: rgba(139, 94, 52, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.theme-dark .hero-highlight-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.theme-dark .hero-highlight-icon svg {
  stroke: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.4rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border var(--transition-fast), filter 0.15s ease-out;
}
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--primary);
  color: #1B1B1B;
  box-shadow: var(--card-shadow);
}
.theme-dark .btn-primary {
  color: #A14C32;
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #1B1B1B;
}
.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Hero Media */

.hero-media { position: relative; }
.hero-card {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: none;
  border: none;
  color: var(--text);
}
.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.hero-card-title { font-size: 0.95rem; font-weight: 600; }
.hero-card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  background: rgba(139, 94, 52, 0.1);
  color: var(--primary-dark);
}
.theme-dark .hero-card-tag {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.hero-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
}
@media (max-width: 600px) { .hero-card-grid { grid-template-columns: 1fr; } }

.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-overlay {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-photo-overlay strong { color: var(--text); }
.hero-stats {
  display: grid;
  gap: 0.7rem;
  font-size: 0.8rem;
}
.stat {
  padding: 0.7rem 0.8rem;
  border-radius: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  color: var(--text);
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.stat-value {
  font-weight: 700;
  font-size: 1rem;
}

/* Sections */

section { padding: 3rem 0; }
@media (min-width: 900px) { section { padding: 3.5rem 0; } }

.section-header { margin-bottom: 1.8rem; }
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.section-title { font-size: 1.6rem; margin-bottom: 0.4rem; color: var(--text); }
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 32rem;
}

.page-intro {
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.page-intro p { margin-bottom: 0.6rem; }
.page-intro ul { margin: 0 0 0.8rem 1.2rem; }
.page-intro li { margin-bottom: 0.25rem; }

/* Cards / Leistungen */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.6rem;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  border-color: var(--primary);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  background: rgba(139,90,43,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  color: var(--primary);
}
.theme-dark .card-icon {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.card-icon svg {
  width: 28px;
  height: 28px;
}
.icon-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.card-title { font-weight: 600; font-size: 1rem; color: var(--text); }
.card-text { font-size: 0.9rem; color: var(--text-muted); }

/* Ablauf */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.6rem;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-alt);
  border-radius: 0;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.step-index {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: rgba(139,90,43,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.theme-dark .step-index {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Projekte */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.6rem;
}
@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, background 0.25s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}
.project-image {
  position: relative;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-content {
  padding: 1rem 1.1rem 1.1rem;
  font-size: 0.9rem;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.project-title { font-weight: 600; margin-bottom: 0.2rem; color: var(--text); }

/* About & Team - Clean Editorial Style (Keine KI-Kästen, keine störenden Linien) */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 4rem;
  align-items: start;
}
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  display: grid;
  gap: 1.2rem;
  line-height: 1.75;
}

.timeline-intro {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2rem;
}

/* History - Zeitstrahl (Timeline) */
.history-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin: 1.75rem 0 2.5rem;
  padding-left: 2rem;
}

.history-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 2px;
  background: var(--border, #e2e8f0);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
}

.timeline-point {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary, #c9511d);
  box-shadow: 0 0 0 3px rgba(201, 81, 29, 0.15);
  z-index: 1;
}

.timeline-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100%;
}

.timeline-date {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary, #c9511d);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text, #1e293b);
  margin: 0;
}

.timeline-text {
  color: var(--text-muted, #64748b);
  line-height: 1.7;
  font-size: 0.98rem;
}

/* Gütesiegel - Freistehend ohne Boxen */
.about-sidebar {
  position: sticky;
  top: 120px;
}
.seals-subtle-box {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.seals-subtle-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.seals-subtle-grid {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.seal-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 100px;
  max-width: 135px;
}
.seal-item img {
  max-width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  filter: grayscale(15%);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
.seal-item img:hover {
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* ==========================================================================
   Team - Kacheln mit runden Avataren, Hover-Galerie & HD-Großbild
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  background: white !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 2rem 1.5rem !important;
  text-align: center !important;
  border-radius: 4px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease !important;
  height: auto !important;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
}
.team-card:hover {
  background: #fbfbf9 !important;
  border-color: var(--border-light, #e4e2dc) !important;
  transform: translateY(-3px);
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  background: #f0f0ee;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-avatar .team-photo-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.team-avatar .team-photo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.45s ease, transform 0.5s ease;
  pointer-events: none;
}

.team-avatar .team-photo-layer.active {
  opacity: 1;
  pointer-events: auto;
}

.team-card:hover .team-avatar .team-photo-layer.active {
  transform: scale(1.06);
}

/* Dots Indikator unten im Avatar */
.team-photo-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  z-index: 5;
  pointer-events: none;
}

.photo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
}

.photo-dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

.team-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #333;
}
.team-card-role {
  font-size: 0.9rem;
  color: #777;
  font-weight: 500;
}

.team-card--apply {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-decoration: none !important;
  cursor: pointer;
}
.team-card--apply .team-avatar {
  background: #fbfbf9;
  color: #999;
  font-size: 2rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card--apply .team-card-role {
  color: var(--primary, #C59434);
  font-weight: 600;
}

/* ==========================================================================
   HD TEAM GROSSBILD-MODAL (Ohne "Kontakt aufnehmen")
   ========================================================================== */
.team-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.team-modal-backdrop.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.team-modal-dialog {
  background: #ffffff;
  border-radius: 6px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light, #e4e2dc);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s ease;
}

.team-modal-backdrop.active .team-modal-dialog {
  transform: scale(1) translateY(0);
}

.team-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1px solid var(--border-light, #e4e2dc);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: #444444;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}

.team-modal-close:hover {
  color: var(--accent, #D32F2F);
  border-color: var(--accent, #D32F2F);
  transform: rotate(90deg);
}

.team-modal-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 780px) {
  .team-modal-grid {
    grid-template-columns: 1fr;
  }
}

.team-modal-viewer {
  background: #111827;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-big-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  background: #1f2937;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

#teamModalMainImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.team-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.team-modal-nav:hover {
  background: var(--primary, #C59434);
  border-color: var(--primary, #C59434);
}

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

.team-modal-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-thumb-btn {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s ease;
  padding: 0;
  background: transparent;
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumb-btn:hover {
  opacity: 0.85;
}

.modal-thumb-btn.active {
  opacity: 1;
  border-color: var(--primary, #C59434);
}

.team-modal-info {
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #ffffff;
  overflow-y: auto;
}

.team-modal-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary, #C59434);
}

.team-modal-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1b1b1b;
  line-height: 1.2;
}

.team-modal-role {
  font-size: 1rem;
  color: #666666;
  font-weight: 500;
  margin-top: -0.35rem;
}

.team-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-modal-tags .team-tag {
  font-size: 0.78rem;
  padding: 2px 8px;
  background: #f4f3ef;
  border: 1px solid #dfdbd1;
  border-radius: 2px;
  color: #444;
}

.team-modal-bio-wrap {
  margin-top: 0.5rem;
}

.team-modal-bio-wrap h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1b1b1b;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-modal-bio-wrap p {
  color: var(--text-muted, #555555);
  line-height: 1.65;
  font-size: 0.92rem;
  white-space: pre-line;
}

/* Kontakt */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 2rem;
  align-items: flex-start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card, .form-card {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  box-shadow: none;
  border: none;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.contact-line {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.contact-label {
  width: 80px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.contact-value a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

form { display: grid; gap: 0.9rem; }
.form-row { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .form-row--two { grid-template-columns: repeat(2,minmax(0,1fr)); } }

label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.25rem;
  display: inline-block;
  color: var(--text-muted);
}
input, textarea, select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  font: inherit;
  background: var(--bg-alt);
  color: var(--text);
  outline: none;
  transition: border var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.theme-dark input, .theme-dark textarea, .theme-dark select {
  background: rgba(0,0,0,0.1);
  border-color: rgba(255,255,255,0.1);
}
.theme-dark input::placeholder, .theme-dark textarea::placeholder {
  color: rgba(255,255,255,0.4);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
textarea { resize: vertical; min-height: 120px; }
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.map-placeholder {
  margin-top: 0.4rem;
  padding: 0.9rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.02);
}

/* Vorher–Nachher */

.before-after-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.before-after-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}
.before-after-img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.05s;
}
.before-after-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--primary);
  cursor: ew-resize;
}

/* Mobile CTA */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 1rem;
  background: rgba(24,20,18,0.96);
  display: none;
  z-index: 90;
}
.mobile-cta-btn {
  display: block;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: 0.65rem 1.2rem;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
@media (max-width: 768px) {
  .mobile-cta { display: block; }
  footer { padding-bottom: 3rem; }
}

/* Konfigurator */

.config-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.config-grid button {
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 0.85rem;
}
.config-grid button.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
}

/* FAQ */

.faq details {
  background: var(--bg-alt);
  border-radius: 0;
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
  box-shadow: var(--card-shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  float: right;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "–";
}
.faq p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Cookie-Modal Modern */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cookie-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.cookie-modal {
  background: var(--bg-alt);
  color: var(--text);
  border-radius: 0;
  max-width: 580px;
  width: 100%;
  padding: 2.2rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-modal h2 { margin-bottom: 0.8rem; font-size: 1.4rem; }
.cookie-modal p { margin-bottom: 1.5rem; font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; }
.cookie-options {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
.cookie-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.theme-dark .cookie-opt { background: rgba(255,255,255,0.05); }
.cookie-opt-info { flex: 1; margin-right: 1.5rem; }
.cookie-opt-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.15rem; display: block; }
.cookie-opt-desc { font-size: 0.82rem; color: var(--text-muted); display: block; }

/* Switch Toggle styles */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 4px;
}
.theme-dark .slider { background-color: #444; }
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider { background-color: #8B5E34; }
input:checked + .slider:before { transform: translateX(20px); }
input:disabled + .slider { cursor: not-allowed; opacity: 0.5; }

.cookie-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}
.cookie-footer .btn { min-width: 160px; }

/* Cookie Details Collapsible */
.cookie-details-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: 0.4rem;
  display: block;
}
.cookie-details-content {
  display: none;
  padding-top: 0.8rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}
.cookie-details-content.is-open {
  display: block;
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
}
.cookie-table th { text-align: left; opacity: 0.6; font-weight: 500; font-size: 0.75rem; padding-bottom: 0.3rem; }
.cookie-table td { padding: 0.3rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.theme-dark .cookie-table td { border-bottom-color: rgba(255,255,255,0.05); }

/* Lightbox */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}
.lightbox-backdrop.is-visible {
  opacity: 1;
  pointer-events: all;
}
.lightbox-backdrop img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 3px;
}

/* Back to top */

.back-to-top {
  position: fixed;
  left: 1.2rem;
  bottom: 0.8rem;
  border-radius: 3px;
  padding: 0.45rem 0.7rem;
  border: none;
  box-shadow: var(--card-shadow);
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
  z-index: 80;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Scroll-Animation */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--transition-fast), transform 0.6s var(--transition-fast);
  will-change: opacity, transform;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mini-Infos (A) oberhalb Footer */

.mini-info-strip {
  padding: 1.3rem 0 0.4rem;
}
.mini-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.mini-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mini-info-label {
  font-weight: 600;
  color: var(--text);
}

/* Footer */

footer {
  padding: 1.2rem 0 2.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.footer-social {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
}
.footer-note {
  flex-basis: 100%;
  margin-top: -0.25rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
  opacity: 0.9;
}

/* Address Autocomplete Suggestions */
.address-suggestions {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  z-index: 1000;
  left: 0;
  right: 0;
  top: 100%;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  display: none;
}
.address-suggestions.is-visible {
  display: block;
}
.suggestion-item {
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover {
  background: rgba(222, 144, 120, 0.1);
}
.form-row > div {
  position: relative;
}

/* Gradwohl-Style Grid */
.gradwohl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  background: transparent;
  border: none;
}

.gradwohl-card {
  background: white;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.3s ease;
  height: auto;
  text-align: center;
  border-radius: 0;
  overflow: hidden;
}

.gradwohl-card:hover {
  background: #fbfbf9;
}

.gradwohl-skizze {
  width: 100%;
  height: 180px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gradwohl-skizze img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gradwohl-content {
  width: 100%;
}

.gradwohl-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #333;
}

.gradwohl-subtitle {
  font-size: 0.9rem;
  color: #777;
  font-weight: 500;
}

@media (max-width: 900px) {
  .gradwohl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gradwohl-grid { grid-template-columns: 1fr; }
}

.hero-banner-fullwidth {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg, #ffffff);
}

.hero-banner-fullwidth .home-carousel {
  width: 100%;
  max-width: 100%;
  height: 520px;
  max-height: 540px;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-banner-fullwidth .carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.hero-banner-fullwidth .carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  height: 100%;
}

.hero-banner-fullwidth .carousel-slide picture,
.hero-banner-fullwidth .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-banner-fullwidth .home-carousel--fade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.32) 45%,
    rgba(255, 255, 255, 0.72) 75%,
    rgba(255, 255, 255, 0.95) 90%,
    var(--bg, #ffffff) 100%
  );
  z-index: 2;
}

.home-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--bg-alt);
  aspect-ratio: 21 / 9;
  max-height: 440px;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  height: 100%;
}
.carousel-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  color: var(--text);
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 5;
}
.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}
.carousel-btn.prev {
  left: 1.5rem;
}
.carousel-btn.next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .hero-banner-fullwidth .home-carousel {
    height: 280px;
    max-height: 300px;
  }
  .carousel-btn {
    width: 38px;
    height: 38px;
  }
  .carousel-btn.prev {
    left: 0.5rem;
  }
  .carousel-btn.next {
    right: 0.5rem;
  }
}

.leistung-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-alt);
  padding: 2.5rem;
  border: none;
  box-shadow: none;
  border-radius: 4px;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .leistung-detail-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }
}

.leistung-skizze-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 1.5rem;
  border: 1px solid var(--border);
  min-height: 280px;
}
.theme-dark .leistung-skizze-wrap {
  background: #252422;
}
.leistung-skizze-wrap img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.service-photos-section {
  margin: 3.5rem 0;
}

.service-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .service-photos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .service-photos-grid {
    grid-template-columns: 1fr;
  }
}
.service-photo-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border: none;
  box-shadow: none;
  border-radius: 4px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.service-photo-card:hover img {
  transform: scale(1.05);
}
