/* ============================================================
   HUNDSCHELL SCHREINEREI
   ============================================================ */

:root {
  --bg:        #F6F2EB;
  --bg-2:      #EDE8DF;
  --surface:   #FDFAF5;

  --dark:      #1A1710;
  --dark-2:    #242019;
  --dark-3:    #2E2A21;

  --accent:    #B8331A;
  --accent-2:  #CC4B2E;

  --text:      #1C1914;
  --text-2:    #3D3830;
  --text-3:    #6B6257;
  --text-muted:#9C9287;

  --border:    rgba(28,25,20,0.1);
  --border-2:  rgba(28,25,20,0.18);

  --ff: 'Inter', system-ui, sans-serif;

  --nav-h:    76px;
  --pad:      clamp(80px, 10vw, 140px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── Typografie ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-3);
  line-height: 1.75;
  max-width: 480px;
}

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 13px 26px;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-2);
}

.btn-outline {
  border: 1.5px solid var(--border-2);
  color: var(--text-2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  color: rgba(247,243,236,0.8);
  border: 1.5px solid rgba(247,243,236,0.3);
}
.btn-ghost:hover {
  border-color: rgba(247,243,236,0.7);
  color: #fff;
}

.btn-ghost-light {
  color: rgba(247,243,236,0.8);
  border: 1.5px solid rgba(247,243,236,0.3);
}
.btn-ghost-light:hover {
  border-color: #fff;
  color: #fff;
}

/* ── Scroll Reveal ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal="left"]  { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, box-shadow 0.35s;
}

.nav.scrolled {
  background: rgba(253,250,245,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav:not(.scrolled) .nav-logo-img { filter: brightness(0) invert(1); }
.nav:not(.scrolled) .nav-links a { color: rgba(247,243,236,0.85); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav:not(.scrolled) .nav-cta {
  border-color: rgba(247,243,236,0.5) !important;
  color: #fff !important;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  transition: filter 0.3s;
}
.nav-logo-img--footer {
  height: 44px;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 40px);
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 20px !important;
  border: 1.5px solid var(--accent) !important;
  color: var(--accent) !important;
  border-radius: 3px;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent); color: #fff !important; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav:not(.scrolled) .nav-burger span { background: #fff; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed; inset: 0;
  background: var(--surface);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.nav-mobile.open { display: flex; opacity: 1; pointer-events: all; }
.nav-mobile a {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color 0.25s;
}
.nav-mobile a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh; min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 10s ease forwards;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,17,10,0.88) 0%,
    rgba(20,17,10,0.4) 50%,
    rgba(20,17,10,0.1) 100%
  );
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-content {
  position: relative; z-index: 1;
  padding: 0 clamp(20px, 5vw, 60px);
  padding-bottom: clamp(48px, 6vh, 80px);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #F6F2EB;
  margin-bottom: 24px;
  overflow: hidden;
}
.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  animation: lineUp 0.9s var(--ease) forwards;
}
.hero-title-line:nth-child(1) { animation-delay: 0.2s; }
.hero-title-line:nth-child(2) { animation-delay: 0.35s; }
.hero-title-accent {
  animation-delay: 0.5s !important;
  color: var(--accent-2);
}
@keyframes lineUp { to { opacity: 1; transform: translateY(0); } }

.hero-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: rgba(246,242,235,0.65);
  font-weight: 400;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeIn 0.8s 0.65s forwards;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  opacity: 0;
  animation: fadeIn 0.8s 0.8s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-facts {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(246,242,235,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.hero-fact {
  padding: 20px 28px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 3px;
}
.hero-fact:last-child { border-right: none; }
.hero-fact strong {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.hero-fact span {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
}

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.services {
  padding: var(--pad) 0;
  background: var(--bg);
}
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--dark-2);
  overflow: hidden;
  position: relative;
}
.service-card img {
  width: 100%; height: 260px;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.4s, transform 0.6s var(--ease);
  display: block;
}
.service-card:hover img { opacity: 0.5; transform: scale(1.04); }

.service-card-body {
  padding: 22px 24px 28px;
  background: var(--dark-2);
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F6F2EB;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.82rem;
  color: rgba(246,242,235,0.5);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.service-link:hover { color: #fff; }

/* ============================================================
   ÜBER UNS
   ============================================================ */
.about-teaser {
  padding: var(--pad) 0;
  background: var(--surface);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-media img {
  width: 100%; height: 540px;
  object-fit: cover;
  border-radius: 4px;
}

.about-text .section-title { margin-bottom: 28px; }
.about-text p {
  font-size: 0.96rem;
  color: var(--text-3);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text p:last-of-type { margin-bottom: 28px; }

.about-list {
  margin: 0 0 36px;
  border-top: 1px solid var(--border);
}
.about-list li {
  font-size: 0.88rem;
  color: var(--text-2);
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.about-list li::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  padding: var(--pad) 0;
  background: var(--bg-2);
}
.portfolio-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 40px; gap: 32px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 260px;
  gap: 6px;
}
.portfolio-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.portfolio-item:nth-child(2) { grid-column: span 5; }
.portfolio-item:nth-child(3) { grid-column: span 5; }
.portfolio-item:nth-child(4) { grid-column: span 4; }
.portfolio-item:nth-child(5) { grid-column: span 4; }
.portfolio-item:nth-child(6) { grid-column: span 4; }

.portfolio-item {
  position: relative; overflow: hidden;
  cursor: pointer; background: var(--bg-3);
  border-radius: 3px;
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.3s;
}
.portfolio-item:hover img { transform: scale(1.05); opacity: 0.75; }

.portfolio-item-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(20,17,10,0.75), transparent);
  font-size: 0.78rem; font-weight: 600;
  color: rgba(246,242,235,0.9);
  transform: translateY(4px); opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.portfolio-item:hover .portfolio-item-caption { opacity: 1; transform: translateY(0); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--pad) 0;
  background: var(--dark);
}
.testimonials .section-title {
  color: #F6F2EB;
  margin-bottom: 52px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(246,242,235,0.06);
}

.testimonial {
  padding: 40px 36px;
  background: var(--dark);
}
.testimonial p {
  font-size: 0.96rem;
  font-style: italic;
  color: rgba(246,242,235,0.65);
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial cite {
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0; z-index: 0;
}
.cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.25;
}
.cta-overlay {
  position: absolute; inset: 0;
  background: var(--dark);
  opacity: 0.82;
}
.cta-content {
  position: relative; z-index: 1;
  max-width: 600px;
}
.cta-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #F6F2EB;
  margin-bottom: 18px;
}
.cta-content p {
  font-size: 1rem;
  color: rgba(246,242,235,0.55);
  margin-bottom: 36px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-2);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(246,242,235,0.07);
}

.footer-brand p {
  font-size: 0.84rem;
  color: rgba(246,242,235,0.3);
  line-height: 1.7;
  margin: 18px 0 22px;
  max-width: 240px;
}

.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(246,242,235,0.1);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(246,242,235,0.35);
  transition: color 0.25s, border-color 0.25s;
}
.footer-social a:hover { color: #F6F2EB; border-color: rgba(246,242,235,0.3); }

.footer-col h4 {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a {
  font-size: 0.84rem;
  color: rgba(246,242,235,0.35);
  transition: color 0.25s;
}
.footer-col ul a:hover { color: #F6F2EB; }

.footer-col address p {
  font-size: 0.84rem;
  color: rgba(246,242,235,0.35);
  line-height: 1.7; margin-bottom: 8px;
}
.footer-col address a { transition: color 0.25s; }
.footer-col address a:hover { color: #F6F2EB; }
.footer-hours { font-size: 0.78rem !important; margin-top: 4px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; gap: 20px; flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.76rem;
  color: rgba(246,242,235,0.18);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 0.76rem;
  color: rgba(246,242,235,0.25);
  transition: color 0.25s;
}
.footer-links a:hover { color: rgba(246,242,235,0.6); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px;
  width: min(480px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 22px 24px;
  z-index: 5000;
  box-shadow: 0 8px 40px rgba(20,17,10,0.14);
  transform: translateY(120%);
  transition: transform 0.45s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner h3 {
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.cookie-banner p {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cookie-banner p a { color: var(--accent); text-decoration: underline; }

.cookie-options {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.cookie-option {
  display: flex; justify-content: space-between; align-items: center;
}
.cookie-option-label { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.cookie-option-sub { font-size: 0.68rem; color: var(--text-muted); }

.toggle { position: relative; width: 36px; height: 20px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 20px; cursor: pointer; transition: background 0.25s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 12px; height: 12px;
  background: var(--text-muted); border-radius: 50%;
  left: 3px; top: 50%;
  transform: translateY(-50%);
  transition: left 0.25s, background 0.25s;
}
.toggle input:checked + .toggle-slider { background: rgba(184,146,74,0.1); }
.toggle input:checked + .toggle-slider::before { left: calc(100% - 15px); background: var(--accent); }
.toggle input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }

.cookie-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cookie-btn {
  flex: 1; padding: 8px 12px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 4px; text-align: center;
  transition: all 0.2s; white-space: nowrap;
}
.cookie-btn-all { background: var(--accent); color: #fff; }
.cookie-btn-all:hover { background: var(--accent-2); }
.cookie-btn-sel { border: 1.5px solid var(--border-2); color: var(--text-2); }
.cookie-btn-sel:hover { border-color: var(--accent); color: var(--accent); }
.cookie-btn-min { border: 1.5px solid var(--border); color: var(--text-muted); }
.cookie-btn-min:hover { color: var(--text); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,17,10,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: 3px;
  transform: scale(0.95); transition: transform 0.35s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  width: 40px; height: 40px;
  border: 1px solid rgba(246,242,235,0.15);
  border-radius: 50%; color: rgba(246,242,235,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, color 0.25s;
}
.lightbox-close:hover { border-color: rgba(246,242,235,0.4); color: #fff; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 1px solid rgba(246,242,235,0.15);
  border-radius: 50%; color: rgba(246,242,235,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, color 0.25s;
}
.lightbox-nav:hover { border-color: rgba(246,242,235,0.4); color: #fff; }
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }
.lightbox-caption {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%); text-align: center;
}
.lightbox-caption h3 { font-size: 0.9rem; color: rgba(246,242,235,0.6); font-weight: 500; letter-spacing: 0; }

/* ============================================================
   UNTERSEITEN – page-hero, leistungen, galerie, kontakt etc.
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-hero .section-title { margin-bottom: 14px; }
.page-hero p {
  font-size: 1rem;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 520px;
}

/* Leistungen Detailseite */
.services-list { padding: var(--pad) 0; background: var(--bg); }
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.service-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.service-item:hover {
  border-color: var(--border-2);
  box-shadow: 0 6px 24px rgba(20,17,10,0.07);
}
.service-item-img { height: 200px; overflow: hidden; background: var(--bg-2); }
.service-item-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.service-item:hover .service-item-img img { transform: scale(1.04); }
.service-item-body { padding: 22px 26px; }
.service-item h3 { font-size: 1.05rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.service-item p { font-size: 0.86rem; color: var(--text-3); line-height: 1.75; }

/* Galerie */
.gallery-page { padding: var(--pad) 0; background: var(--bg); }
.gallery-masonry { columns: 3; column-gap: 10px; }
.gallery-masonry-item {
  break-inside: avoid; margin-bottom: 10px;
  overflow: hidden; border-radius: 3px;
  cursor: pointer;
}
.gallery-masonry-item img {
  width: 100%; height: auto; display: block;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
.gallery-masonry-item:hover img { transform: scale(1.03); opacity: 0.85; }

.portfolio-filter { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 36px; }
.portfolio-filter button {
  padding: 6px 16px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-3);
  border: 1.5px solid var(--border);
  border-radius: 3px; background: transparent;
  transition: all 0.2s;
}
.portfolio-filter button:hover,
.portfolio-filter button.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Über uns */
.team-section { padding: var(--pad) 0; background: var(--bg-2); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.team-card { border-radius: 4px; overflow: hidden; }
.team-card-img { height: 340px; overflow: hidden; background: var(--bg-2); }
.team-card-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 0.5s var(--ease);
}
.team-card:hover .team-card-img img { transform: scale(1.03); }
.team-card-info {
  background: var(--surface);
  border: 1px solid var(--border); border-top: none;
  padding: 18px 22px;
}
.team-card-name { font-size: 1rem; letter-spacing: -0.03em; margin-bottom: 3px; }
.team-card-role {
  font-size: 0.68rem; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 8px;
}
.team-card-desc { font-size: 0.82rem; color: var(--text-3); line-height: 1.7; }

/* Timeline */
.timeline-section { padding: var(--pad) 0; background: var(--surface); }
.timeline {
  position: relative; max-width: 700px;
  margin: 48px auto 0; padding-left: 32px;
}
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 1px; background: var(--border-2);
}
.timeline-item { margin-bottom: 36px; position: relative; }
.timeline-dot {
  position: absolute; left: -36px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface);
}
.timeline-item-year {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 6px;
}
.timeline-item h4 { font-size: 1rem; margin-bottom: 6px; }
.timeline-item p { font-size: 0.86rem; color: var(--text-3); line-height: 1.75; }

/* Kontakt */
.contact-section { padding: var(--pad) 0; background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info-item {
  margin-bottom: 28px; padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-label {
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.contact-info-value { font-size: 0.9rem; color: var(--text); line-height: 1.7; }
.contact-info-value a { transition: color 0.25s; }
.contact-info-value a:hover { color: var(--accent); }

.contact-hours-row {
  display: flex; justify-content: space-between;
  font-size: 0.84rem; color: var(--text-3);
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.contact-hours-row:last-child { border-bottom: none; }
.contact-hours-row span:last-child { color: var(--text); font-weight: 500; }

/* Formular */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(24px, 4vw, 44px);
}
.contact-form h2 { font-size: 1.5rem; margin-bottom: 6px; }
.contact-form .form-sub { font-size: 0.86rem; color: var(--text-3); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 4px; padding: 11px 14px;
  color: var(--text); font-size: 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,146,74,0.08);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { height: 120px; resize: vertical; }

.form-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.form-checkbox input { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; accent-color: var(--accent); }
.form-checkbox label { font-size: 0.78rem; color: var(--text-3); line-height: 1.6; }
.form-checkbox a { color: var(--accent); text-decoration: underline; }

/* Maps */
.maps-section { padding: var(--pad) 0; background: var(--bg-2); }
.map-consent-wrap {
  border-radius: 4px; overflow: hidden;
  background: var(--surface); min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.map-consent-inner { text-align: center; padding: 48px; max-width: 400px; }
.map-consent-inner h3 { margin-bottom: 10px; }
.map-consent-inner p { font-size: 0.84rem; color: var(--text-3); line-height: 1.75; margin-bottom: 22px; }
.map-consent-inner p a { color: var(--accent); }
.map-iframe-wrap { display: none; }
.map-iframe-wrap.active { display: block; }
.map-iframe-wrap iframe { width: 100%; height: 400px; border: none; display: block; }

/* Impressum / Datenschutz */
.legal-section { padding: var(--pad) 0; background: var(--bg); }
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin: 28px 0 10px; color: var(--text-2); }
.legal-content p { font-size: 0.9rem; color: var(--text-3); line-height: 1.8; margin-bottom: 14px; }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { font-size: 0.9rem; color: var(--text-3); line-height: 1.8; list-style: disc; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --pad: clamp(52px, 8vw, 100px); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media img { height: 400px; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 1px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .portfolio-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .portfolio-item:nth-child(1) { grid-column: span 2; }
  .services-intro { grid-template-columns: 1fr; gap: 16px; }
  .portfolio-head { flex-direction: column; align-items: flex-start; }
  .gallery-masonry { columns: 2; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ÜBER UNS – seitenspezifisch
   ============================================================ */

/* Hero */
.about-page-hero {
  position: relative;
  height: 62vh; min-height: 420px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.about-page-hero-bg {
  position: absolute; inset: 0;
}
.about-page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,17,10,0.85) 0%, rgba(20,17,10,0.35) 65%, transparent 100%);
}
.about-page-hero-content {
  position: relative; z-index: 1;
  padding: 0 clamp(20px, 5vw, 60px) clamp(44px, 6vh, 72px);
  max-width: 1280px; margin: 0 auto; width: 100%;
}
.about-page-hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #F6F2EB;
  margin-bottom: 10px;
}
.about-page-hero-content p {
  font-size: 1rem;
  color: rgba(246,242,235,0.6);
  font-weight: 400;
}

/* Haupttext-Sektion */
.about-main {
  padding: var(--pad) 0;
  background: var(--surface);
}
.about-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-main-img {
  position: relative;
}
.about-main-img img {
  width: 100%; height: 580px;
  object-fit: cover; object-position: top;
  border-radius: 3px; display: block;
}
.about-name-tag {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(20,17,10,0.88) 0%, transparent 100%);
  border-radius: 0 0 3px 3px;
  display: flex; flex-direction: column; gap: 3px;
}
.about-name-tag-name {
  font-size: 1rem; font-weight: 700;
  color: #F6F2EB; letter-spacing: -0.02em;
}
.about-name-tag-role {
  font-size: 0.7rem; color: rgba(246,242,235,0.55);
  letter-spacing: 0.04em;
}

.about-main-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.about-main-text p {
  font-size: 0.96rem;
  color: var(--text-3);
  line-height: 1.85;
  margin-bottom: 18px;
}

.about-facts-row {
  display: flex; gap: 32px;
  margin: 36px 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-fact {
  display: flex; flex-direction: column; gap: 3px;
}
.about-fact strong {
  font-size: 1.8rem; font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent); line-height: 1;
}
.about-fact span {
  font-size: 0.72rem; color: var(--text-muted);
  font-weight: 500;
}

/* Werte */
.about-values {
  padding: var(--pad) 0;
  background: var(--bg);
}
.about-values h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.035em;
  margin-bottom: 52px;
}
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.about-value {
  padding: 36px 36px 36px 0;
  border-right: 1px solid var(--border);
  padding-right: 36px;
}
.about-value:first-child { padding-left: 0; }
.about-value:last-child { border-right: none; padding-right: 0; padding-left: 36px; }
.about-value:nth-child(2) { padding-left: 36px; }
.about-value h3 {
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--text);
}
.about-value h3::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  margin-bottom: 14px;
}
.about-value p {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.8;
}

/* Timeline */
.about-timeline-section {
  padding: var(--pad) 0;
  background: var(--surface);
}
.about-timeline-section h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.035em;
  margin-bottom: 56px;
}
.about-timeline {
  max-width: 720px;
  border-left: 1px solid var(--border-2);
  padding-left: 40px;
  display: flex; flex-direction: column; gap: 0;
}
.about-timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.about-timeline-item:last-child { border-bottom: none; }
.about-timeline-item::before {
  content: '';
  position: absolute;
  left: -44px; top: 36px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}
.about-timeline-year {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); padding-top: 4px;
}
.about-timeline-body h4 {
  font-size: 0.96rem; letter-spacing: -0.02em;
  margin-bottom: 8px; color: var(--text);
}
.about-timeline-body p {
  font-size: 0.85rem; color: var(--text-3); line-height: 1.78;
}

/* Werkstatt-Bild */
.about-werkstatt {
  height: 480px; overflow: hidden;
}
.about-werkstatt img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Responsive */
@media (max-width: 860px) {
  .about-main-grid { grid-template-columns: 1fr; }
  .about-main-img img { height: 420px; }
  .about-values-grid { grid-template-columns: 1fr; }
  .about-value { padding: 28px 0 !important; border-right: none !important; border-bottom: 1px solid var(--border); }
  .about-value:last-child { border-bottom: none; }
  .about-timeline { padding-left: 24px; }
  .about-timeline-item { grid-template-columns: 60px 1fr; gap: 16px; }
  .about-timeline-item::before { left: -28px; }
  .about-werkstatt { height: 300px; }
  .about-facts-row { gap: 20px; }
}

/* ============================================================
   RESPONSIVE (global)
   ============================================================ */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item:nth-child(n) { grid-column: span 1; }
  .gallery-masonry { columns: 1; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .cta-actions { flex-direction: column; align-items: flex-start; }
}
