/* =========================================
   Schreinerei Bärz – Modern Stylesheet
   Clean, modern, editorial
   ========================================= */

/* Inter (Variable Font, lokal gehostet – keine Verbindung zu Google) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Farbpalette – modern, zurückhaltend */
  --c-bg: #ffffff;
  --c-bg-alt: #f6f6f4;
  --c-bg-dark: #0e0e0c;
  --c-surface: #fafaf8;
  --c-ink: #0e0e0c;
  --c-text: #1a1a1a;
  --c-muted: #6b6b6b;
  --c-line: #e6e6e2;
  --c-line-dark: #2a2a28;
  --c-accent: #b85c2a;      /* dezenter Terrakotta-Akzent, sehr sparsam eingesetzt */
  --c-accent-soft: #fdf3ec;
  --c-white: #ffffff;

  /* Typografie – modern, Sans-Serif-fokussiert */
  --f-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;
  --s-32: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 1.5rem;
  --header-h: 76px;
  --topbar-h: 36px;

  /* Effekte */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 14, 12, 0.04), 0 1px 3px rgba(14, 14, 12, 0.06);
  --shadow: 0 4px 16px rgba(14, 14, 12, 0.06), 0 2px 4px rgba(14, 14, 12, 0.04);
  --shadow-lg: 0 24px 60px -12px rgba(14, 14, 12, 0.18);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --t: 0.25s var(--ease);
  --t-slow: 0.5s var(--ease);
}

/* ==================== Reset ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ==================== Typografie ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }

p { margin-bottom: 1rem; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--c-muted); font-weight: 400; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* Specific text emphasis without traditional look */
.highlight { color: var(--c-accent); }

/* ==================== Layout ==================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section { padding: var(--s-24) 0; position: relative; }
.section-tight { padding: var(--s-16) 0; }
.section-head {
  max-width: 720px;
  margin: 0 auto var(--s-12);
  text-align: center;
  position: relative;
}
.section-head::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse at center, rgba(184, 92, 42, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 100px;
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--c-ink);
  color: var(--c-white);
}
.btn-primary:hover {
  background: #2a2a28;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-outline:hover {
  background: var(--c-ink);
  color: var(--c-white);
  border-color: var(--c-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  padding: 0.5rem 0;
  border-radius: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--c-accent); }
.btn .arrow { transition: transform var(--t); width: 16px; height: 16px; }
.btn:hover .arrow { transform: translateX(3px); }

/* ==================== Top Bar ==================== */
.topbar {
  background: var(--c-bg-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}
.topbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar-meta { display: flex; gap: 1.5rem; }
.topbar-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar-cta a { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar a { color: var(--c-white); font-weight: 500; }
.topbar a:hover { color: var(--c-accent); }

/* ==================== Header ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-line);
  transition: border-color var(--t);
}
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.125rem var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}

/* Logo – Wortmarke modern */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  flex-shrink: 0;
}
.logo-mark svg,
.logo-mark img { width: 100%; height: 100%; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-weight: 700; letter-spacing: -0.025em; }
.logo-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: 0.02em;
}

/* ==================== Navigation & Mega Menu ==================== */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-list { display: flex; gap: 0.125rem; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: 8px;
  transition: all var(--t);
}
.nav-link:hover,
.nav-link[aria-expanded="true"],
.nav-link.active {
  background: var(--c-bg-alt);
}
.nav-link .chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--t);
  opacity: 0.6;
}
.nav-item.open .nav-link .chevron { transform: rotate(180deg); opacity: 1; }

.nav-cta { margin-left: 0.5rem; }
.nav-cta .btn { padding: 0.625rem 1.25rem; font-size: 0.9rem; }

/* Mega Menu Panel */
.mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + var(--topbar-h));
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t), transform var(--t), visibility 0s linear var(--t);
  z-index: 90;
}
.nav-item.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--t), transform var(--t), visibility 0s;
}
.mega-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.5rem var(--container-pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.mega-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  margin-bottom: 1rem;
}
.mega-col ul li { margin-bottom: 0.125rem; }
.mega-col ul a {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.625rem 0.75rem;
  margin: 0 -0.75rem;
  color: var(--c-ink);
  border-radius: 10px;
  transition: background var(--t);
}
.mega-col ul a:hover { background: var(--c-bg-alt); }
.mega-link { display: flex; flex-direction: column; min-width: 0; }
.mega-link strong { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.015em; }
.mega-link span {
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-top: 0.125rem;
  line-height: 1.4;
}
.mega-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--c-bg-alt);
  border-radius: 8px;
  color: var(--c-ink);
  transition: all var(--t);
}
.mega-col ul a:hover .mega-icon {
  background: var(--c-ink);
  color: var(--c-white);
}

/* Featured column */
.mega-feature {
  position: relative;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: 16px;
  padding: 1.75rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.mega-feature::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 100%;
  background: radial-gradient(circle, rgba(184, 92, 42, 0.4), transparent 60%);
}
.mega-feature > * { position: relative; }
.mega-feature .eyebrow { color: var(--c-accent); margin-bottom: 0.75rem; }
.mega-feature .eyebrow::before { background: var(--c-accent); }
.mega-feature h3 { color: var(--c-white); font-size: 1.5rem; margin-bottom: 0.75rem; }
.mega-feature p { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 1.25rem; line-height: 1.5; }
.mega-feature .btn {
  background: var(--c-white);
  color: var(--c-ink);
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  align-self: flex-start;
}

/* Mobile burger */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--c-ink);
  transition: transform var(--t), opacity var(--t);
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==================== Hero ==================== */
.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 7rem);
  position: relative;
  background: var(--c-bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}
.hero h1 .accent {
  color: var(--c-accent);
  font-style: normal;
}
.hero .lead {
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
  max-width: 540px;
}
.stat-num {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1;
  display: block;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-top: 0.375rem;
  display: block;
}

/* Hero visual – integrated, atmospheric composition (no box) */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
}

/* Ambient floating accent dots */
.hero-dots {
  position: absolute;
  inset: -10% -8%;
  pointer-events: none;
  z-index: 1;
}
.hero-dots span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0;
  animation: hero-dot-drift 14s ease-in-out infinite;
}
.hero-dots span:nth-child(1)  { left: 8%;  top: 12%; animation-delay: -0.5s; animation-duration: 13s; }
.hero-dots span:nth-child(2)  { left: 92%; top: 8%;  width: 3px; height: 3px; background: var(--c-ink); animation-delay: -2.5s; animation-duration: 15s; }
.hero-dots span:nth-child(3)  { left: 24%; top: 30%; width: 3px; height: 3px; animation-delay: -4.0s; animation-duration: 12s; }
.hero-dots span:nth-child(4)  { left: 78%; top: 26%; animation-delay: -6.0s; animation-duration: 14s; }
.hero-dots span:nth-child(5)  { left: 4%;  top: 56%; width: 4px; height: 4px; background: var(--c-ink); animation-delay: -1.5s; animation-duration: 13s; }
.hero-dots span:nth-child(6)  { left: 88%; top: 52%; animation-delay: -3.5s; animation-duration: 16s; }
.hero-dots span:nth-child(7)  { left: 14%; top: 78%; width: 3px; height: 3px; animation-delay: -5.5s; animation-duration: 12s; }
.hero-dots span:nth-child(8)  { left: 70%; top: 84%; animation-delay: -7.0s; animation-duration: 15s; }
.hero-dots span:nth-child(9)  { left: 50%; top: 4%;  width: 3px; height: 3px; animation-delay: -2.0s; animation-duration: 14s; }
.hero-dots span:nth-child(10) { left: 46%; top: 96%; width: 3px; height: 3px; background: var(--c-ink); animation-delay: -4.5s; animation-duration: 13s; }
.hero-dots span:nth-child(11) { left: 96%; top: 70%; width: 4px; height: 4px; animation-delay: -8.0s; animation-duration: 12s; }
.hero-dots span:nth-child(12) { left: 32%; top: 60%; width: 3px; height: 3px; animation-delay: -6.5s; animation-duration: 16s; }

/* Stacked colored bars composition – content-bearing */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.plank {
  position: absolute;
  border-radius: 6px;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  box-shadow:
    0 24px 50px -18px rgba(20, 14, 10, 0.32),
    0 6px 16px -8px rgba(20, 14, 10, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  animation: plank-float 8s ease-in-out infinite;
  transform: rotate(var(--rot, 0deg));
  will-change: transform;
}
.plank::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 35%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
.plank-eyebrow {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
}
.plank-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #fff;
  position: relative;
  z-index: 1;
}

.plank-1 {
  --rot: -1.5deg;
  width: 72%; height: 18%;
  top: 6%; left: 4%;
  background: linear-gradient(135deg, #c96a35 0%, #a04e22 100%);
  animation-delay: -0.5s; animation-duration: 7.5s;
}
.plank-2 {
  --rot: 1deg;
  width: 64%; height: 18%;
  top: 29%; left: 22%;
  background: linear-gradient(135deg, #2a2520 0%, #14110e 100%);
  animation-delay: -2.5s; animation-duration: 8.5s;
}
.plank-3 {
  --rot: -1deg;
  width: 76%; height: 18%;
  top: 52%; left: 2%;
  background: linear-gradient(135deg, #6a7556 0%, #4d5638 100%);
  animation-delay: -4.5s; animation-duration: 9s;
}
.plank-4 {
  --rot: 1.5deg;
  width: 60%; height: 18%;
  top: 75%; left: 26%;
  background: linear-gradient(135deg, #7c5436 0%, #5a3823 100%);
  animation-delay: -1.5s; animation-duration: 7.5s;
}

/* Hero ambient lighting (illuminates the whole section) */
.hero {
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 65%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(184, 92, 42, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: hero-light-breathe 16s ease-in-out infinite;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(184, 92, 42, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: hero-light-breathe 20s ease-in-out infinite reverse;
}
.hero .container { position: relative; z-index: 1; }

/* Hero animations */
@keyframes plank-float {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50%      { transform: rotate(var(--rot, 0deg)) translateY(-7px); }
}
@keyframes hero-dot-drift {
  0%   { transform: translate(0, 0) scale(0.4); opacity: 0; }
  15%  { opacity: 0.7; }
  85%  { opacity: 0.7; }
  100% { transform: translate(14px, -34px) scale(1); opacity: 0; }
}
@keyframes hero-light-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .plank,
  .hero-dots span,
  .hero::before,
  .hero::after {
    animation: none !important;
  }
  .hero-dots span { opacity: 0.6; }
}

/* ==================== Trust strip ==================== */
.trust-strip {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 1.5rem 0;
}
.trust-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text);
}
.trust-item svg { color: var(--c-accent); flex-shrink: 0; }

/* ==================== Services Grid ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.service-card {
  position: relative;
  background: var(--c-bg);
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--c-line);
  transition: all var(--t);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-ink);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--c-bg-alt);
  color: var(--c-ink);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  transition: all var(--t);
}
.service-card:hover .service-icon {
  background: var(--c-ink);
  color: var(--c-white);
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--c-muted); flex-grow: 1; margin-bottom: 1.25rem; font-size: 0.9375rem; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--c-ink);
  margin-top: auto;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 0.25rem;
  align-self: flex-start;
}
.service-link svg { transition: transform var(--t); width: 14px; height: 14px; }
.service-card:hover .service-link svg { transform: translateX(3px); }
.service-card:hover .service-link { border-bottom-color: var(--c-ink); }

/* ==================== About / Tradition Section ==================== */
.about-section {
  background: var(--c-bg-alt);
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -8%;
  width: 45%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(184, 92, 42, 0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.about-section::after {
  content: "";
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(184, 92, 42, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.about-section .container { position: relative; z-index: 1; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { color: var(--c-muted); font-size: 1.0625rem; }

.about-features { display: grid; gap: 1.25rem; margin-top: 2rem; }
.about-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--c-line);
}
.about-feature:last-child { border-bottom: 1px solid var(--c-line); }
.about-feature-num {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: 0.05em;
  padding-top: 0.25rem;
}
.about-feature h4 { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.about-feature p { color: var(--c-muted); font-size: 0.9375rem; margin: 0; }

/* Stats card */
.stats-card {
  background: var(--c-ink);
  color: var(--c-white);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.stats-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 100%;
  background: radial-gradient(circle, rgba(184, 92, 42, 0.4), transparent 60%);
}
.stats-card > * { position: relative; }
.stats-card .eyebrow { color: var(--c-accent); }
.stats-card h3 { color: var(--c-white); font-size: 1.75rem; margin-bottom: 2rem; max-width: 380px; }
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-big { font-size: 3rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--c-white); }
.stat-big-label { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.5rem; }

/* ==================== Process / Steps ==================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.process-step { position: relative; padding-top: 4rem; }
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--c-bg-alt);
  letter-spacing: -0.04em;
  z-index: -1;
}
.process-step h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.process-step p { color: var(--c-muted); font-size: 0.9375rem; }

/* ==================== Gallery ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 0.75rem;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--c-bg-alt);
}
.gallery-item .gallery-bg {
  position: absolute;
  inset: 0;
  transition: transform var(--t-slow);
}
.gallery-item:hover .gallery-bg { transform: scale(1.04); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 14, 12, 0.85), transparent 50%);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--c-white);
  opacity: 0;
  transition: opacity var(--t);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}
.gallery-overlay h4 { color: var(--c-white); font-size: 1.125rem; }

/* gallery image placeholders – modern neutral gradients */
.gallery-bg.bg-1 { background: linear-gradient(135deg, #d9cfc1, #8a7a66); }
.gallery-bg.bg-2 { background: linear-gradient(135deg, #b85c2a, #6e3818); }
.gallery-bg.bg-3 { background: linear-gradient(135deg, #2a2a28, #555350); }
.gallery-bg.bg-4 { background: linear-gradient(135deg, #c4b59e, #6b5a44); }
.gallery-bg.bg-5 { background: linear-gradient(135deg, #1a1a1a, #404040); }
.gallery-bg.bg-6 { background: linear-gradient(135deg, #e2d5c0, #a08b6e); }
.gallery-bg.bg-7 { background: linear-gradient(135deg, #8a6f54, #3d2f23); }
.gallery-bg.bg-8 { background: linear-gradient(135deg, #d6cfc4, #7c6f5e); }
.gallery-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 80px);
}

.gallery-grid { justify-content: center; }
.gallery-item.large { grid-column: span 6; grid-row: span 2; }
.gallery-item.medium { grid-column: span 3; grid-row: span 2; }
.gallery-item.small { grid-column: span 3; }
.gallery-item.wide { grid-column: span 6; }

/* ==================== Testimonials ==================== */
.testimonials-section {
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(184, 92, 42, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.testimonials-section .container { position: relative; z-index: 1; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: var(--c-bg-alt);
  padding: 2rem;
  border-radius: 16px;
  position: relative;
}
.testimonial-stars { color: var(--c-accent); margin-bottom: 1rem; font-size: 0.95rem; }
.testimonial-text {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--c-ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-white);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.875rem;
}
.testimonial-name {
  font-weight: 600;
  color: var(--c-ink);
  font-size: 0.9375rem;
  line-height: 1.2;
}
.testimonial-role { font-size: 0.8125rem; color: var(--c-muted); }

/* ==================== CTA Section ==================== */
.cta-section {
  background: var(--c-ink);
  color: var(--c-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(184, 92, 42, 0.25), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(184, 92, 42, 0.15), transparent 50%);
}
.cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-section h2 { color: var(--c-white); margin-bottom: 1rem; }
.cta-section .eyebrow { color: var(--c-accent); }
.cta-section p { font-size: 1.125rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-primary { background: var(--c-white); color: var(--c-ink); }
.cta-section .btn-primary:hover { background: var(--c-bg-alt); }
.cta-section .btn-outline { color: var(--c-white); border-color: rgba(255,255,255,0.3); }
.cta-section .btn-outline:hover { background: var(--c-white); color: var(--c-ink); border-color: var(--c-white); }

/* ==================== Footer ==================== */
.site-footer {
  background: var(--c-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4.5rem 0 1.5rem;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand .logo-name { color: var(--c-white); }
.footer-brand p { margin-top: 1.25rem; max-width: 320px; font-size: 0.9rem; line-height: 1.55; color: rgba(255,255,255,0.6); }

.footer-col h5 {
  color: var(--c-white);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col a { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.footer-col a:hover { color: var(--c-white); }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact-item svg {
  color: var(--c-accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255, 255, 255, 0.5); }
.footer-legal a:hover { color: var(--c-white); }

/* ==================== Page Header ==================== */
.page-header {
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-line);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(184, 92, 42, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: hero-light-breathe 18s ease-in-out infinite;
}
.page-header::after {
  content: "";
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: 40%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(184, 92, 42, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: hero-light-breathe 22s ease-in-out infinite reverse;
}
.page-header .container { position: relative; z-index: 1; }
.page-header-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 4rem;
  align-items: center;
}
.page-header-inner { max-width: 600px; }
.page-header h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin-bottom: 1rem; }
.page-header .lead { max-width: 560px; }

.page-header-visual {
  position: relative;
  aspect-ratio: 5/6;
  max-width: 440px;
  width: 100%;
  margin-left: auto;
}

/* ==================== Service Illustrations ==================== */
.service-illustration {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4%;
}
.service-illustration svg {
  width: 100%;
  height: 100%;
  color: var(--c-ink);
  overflow: visible;
}
.service-illustration .draw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  pathLength: 100;
  animation: svc-draw 1.6s ease-out forwards;
  animation-delay: var(--draw-delay, 0s);
}
.service-illustration .accent { color: var(--c-accent); }
.service-illustration .accent-stroke { stroke: var(--c-accent); }
.service-illustration .accent-fill { fill: var(--c-accent); }

.svc-float {
  animation: svc-float 6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.svc-spin {
  animation: svc-spin 28s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.svc-spin-rev {
  animation: svc-spin 22s linear infinite reverse;
  transform-box: fill-box;
  transform-origin: center;
}
.svc-pulse-1, .svc-pulse-2, .svc-pulse-3 {
  animation: svc-pulse 3.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.svc-pulse-2 { animation-delay: -1.2s; }
.svc-pulse-3 { animation-delay: -2.4s; }

@keyframes svc-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes svc-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes svc-spin {
  to { transform: rotate(360deg); }
}
@keyframes svc-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.35; }
  50%      { transform: scale(1.05); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .service-illustration .draw,
  .svc-float, .svc-spin, .svc-spin-rev,
  .svc-pulse-1, .svc-pulse-2, .svc-pulse-3 {
    animation: none !important;
  }
  .service-illustration .draw { stroke-dashoffset: 0; }
}

@media (max-width: 1024px) {
  .page-header-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-header-visual { max-width: 500px; aspect-ratio: 4/3; margin: 0 auto; }
}
.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
  color: var(--c-muted);
  align-items: center;
}
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-ink); }
.breadcrumbs span { opacity: 0.5; }
.breadcrumbs .current { color: var(--c-ink); font-weight: 500; }

/* ==================== Contact Page ==================== */
.contact-section { padding: var(--s-16) 0 var(--s-24); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-block {
  position: sticky;
  top: calc(var(--header-h) + var(--topbar-h) + 2rem);
}
.contact-info-block .eyebrow { padding-left: 0; }
.contact-info-block h2 { margin-bottom: 1rem; }
.contact-info-block > p { color: var(--c-muted); margin-bottom: 2rem; }

.contact-info-list { display: grid; gap: 0.5rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  transition: all var(--t);
}
.contact-info-item:hover {
  border-color: var(--c-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.contact-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--c-bg-alt);
  color: var(--c-ink);
  display: grid;
  place-items: center;
}
.contact-info-label {
  font-size: 0.75rem;
  color: var(--c-muted);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.contact-info-value {
  font-size: 1rem;
  color: var(--c-ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.contact-info-value a { color: var(--c-ink); }
.contact-info-value a:hover { color: var(--c-accent); }

/* Form */
.contact-form-wrap {
  background: var(--c-bg);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
}
.form-group label .req { color: var(--c-accent); }
.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  transition: all var(--t);
}
.form-control:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 4px rgba(14, 14, 12, 0.05);
}
.form-control::placeholder { color: #b8b8b8; }
textarea.form-control { min-height: 140px; resize: vertical; }

.form-checkbox { display: flex; align-items: flex-start; gap: 0.625rem; margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--c-muted); }
.form-checkbox input {
  margin-top: 0.2rem;
  accent-color: var(--c-ink);
  width: 16px;
  height: 16px;
}
.form-success {
  background: #e9f5ec;
  border: 1px solid #b6d8c2;
  color: #2d6b3f;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: none;
  font-size: 0.9rem;
  scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 1rem);
}
.form-error {
  background: #fbecea;
  border: 1px solid #e8bdb6;
  color: #8a2d22;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: none;
  font-size: 0.9rem;
  scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 1rem);
}
.form-error a { color: inherit; font-weight: 600; text-decoration: underline; }
/* :target = Rückmeldung ohne JavaScript (Weiterleitung von kontakt.php) */
.form-success.show, .form-success:target,
.form-error.show, .form-error:target { display: block; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.chip {
  padding: 0.5rem 1rem;
  background: var(--c-bg);
  border: 1.5px solid var(--c-line);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--t);
}
.chip:hover { border-color: var(--c-ink); }
.chip.selected {
  background: var(--c-ink);
  color: var(--c-white);
  border-color: var(--c-ink);
}

/* Map */
.map-wrap {
  margin-top: 5rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  position: relative;
  aspect-ratio: 21/9;
  background: var(--c-bg-alt);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ==================== Service Detail Sections ==================== */
.detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: var(--s-16) 0;
}
.detail-section + .detail-section {
  border-top: 1px solid var(--c-line);
}
.detail-section.reverse > .detail-image { order: 2; }
.detail-image {
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--c-bg-alt);
  position: relative;
}
.detail-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a2a28, #0e0e0c);
}
.detail-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 60px);
}
.detail-content .eyebrow { padding-left: 0; }
.detail-content h2 { margin-bottom: 1.25rem; }
.detail-features { margin-top: 2rem; }
.detail-feature {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
}
.detail-feature-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-white);
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}

/* ==================== FAQ / Accordion ==================== */
.faq-section { padding: var(--s-16) 0; border-top: 1px solid var(--c-line); }
.faq-head { max-width: 720px; margin-bottom: 3rem; }
.faq-head h2 { margin-bottom: 1rem; }
.faq-head p { color: var(--c-muted); font-size: 1.0625rem; }
.faq-list { display: grid; gap: 0.75rem; max-width: 880px; }
.faq-item {
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-bg);
  transition: border-color var(--t), box-shadow var(--t);
}
.faq-item[open] { border-color: var(--c-ink); box-shadow: var(--shadow-sm); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
  transform: rotate(45deg);
  transition: transform var(--t);
  margin-top: -4px;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-answer { padding: 0 1.5rem 1.5rem; color: var(--c-text); font-size: 0.9875rem; line-height: 1.65; }
.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ==================== Related Services (Cross-Linking) ==================== */
.related-section { padding: var(--s-16) 0; background: var(--c-bg-alt); }
.related-head { max-width: 720px; margin-bottom: 2.5rem; }
.related-head h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.75rem; }
.related-head p { color: var(--c-muted); }

/* ==================== Info Grid (Materialien / Leistungsumfang) ==================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.info-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 1.5rem;
}
.info-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.9375rem; color: var(--c-muted); margin: 0; }
.info-card ul { margin-top: 0.5rem; }
.info-card ul li {
  font-size: 0.9375rem;
  color: var(--c-text);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--c-line);
}
.info-card ul li:last-child { border-bottom: none; }

.info-section { padding: var(--s-16) 0; border-top: 1px solid var(--c-line); }
.info-section-head { max-width: 720px; margin-bottom: 1rem; }
.info-section-head h2 { margin-bottom: 1rem; }
.info-section-head p { color: var(--c-muted); font-size: 1.0625rem; }

/* ==================== Legal Pages (Impressum, Datenschutz) ==================== */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--topbar-h) + 2rem);
  border-left: 1px solid var(--c-line);
  padding-left: 1.25rem;
}
.legal-toc-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  margin-bottom: 0.875rem;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-toc ol li {
  counter-increment: toc;
  font-size: 0.875rem;
  line-height: 1.4;
}
.legal-toc ol li a {
  color: var(--c-muted);
  display: block;
  padding: 0.15rem 0;
  transition: color var(--t);
}
.legal-toc ol li a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--c-line);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  margin-right: 0.5rem;
  font-size: 0.75rem;
}
.legal-toc ol li a:hover { color: var(--c-ink); }
.legal-toc ol li a:hover::before { color: var(--c-accent); }

.legal-content { font-size: 0.9875rem; line-height: 1.7; color: var(--c-text); }
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
  scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 1.5rem);
}
.legal-content > h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 {
  font-size: 1.0625rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul, .legal-content ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content ul li, .legal-content ol li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}
.legal-content a { color: var(--c-accent); border-bottom: 1px solid transparent; transition: border-color var(--t); word-break: break-word; }
.legal-content a:hover { border-bottom-color: var(--c-accent); }
.legal-content strong { font-weight: 600; color: var(--c-ink); }

.legal-card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}
.legal-card p { margin-bottom: 0.5rem; }
.legal-card p:last-child { margin-bottom: 0; }

.legal-note {
  background: var(--c-accent-soft);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  color: var(--c-text);
}
.legal-note strong { display: block; margin-bottom: 0.25rem; color: var(--c-ink); }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
  font-size: 0.8125rem;
  color: var(--c-muted);
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-toc { position: relative; top: 0; border-left: none; border-top: 1px solid var(--c-line); padding: 1.25rem 0 0; }
  .legal-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.35rem 1rem; }
}

/* ==================== Mobile / Responsive ==================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 5/4; }
  .plank-title { font-size: 1rem; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-block { position: relative; top: 0; }
  .mega-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .detail-section { grid-template-columns: 1fr; gap: 2rem; }
  .detail-section.reverse > .detail-image { order: 0; }

  .gallery-grid { grid-auto-rows: 150px; }
  .gallery-item.large { grid-column: span 12; }
  .gallery-item.medium { grid-column: span 6; }
  .gallery-item.small { grid-column: span 6; }
  .gallery-item.wide { grid-column: span 12; }
}

@media (max-width: 768px) {
  .topbar-meta { display: none; }
  .topbar-inner { justify-content: center; font-size: 0.75rem; }
  .nav-cta { display: none; }
  .burger { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 90%;
    max-width: 360px;
    background: var(--c-bg);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--t-slow);
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-item { width: 100%; }
  .nav-link {
    padding: 1rem 0;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid var(--c-line);
    border-radius: 0;
    font-size: 1.0625rem;
  }
  .mega-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    opacity: 1;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-slow);
  }
  .nav-item.open .mega-menu { visibility: visible; max-height: 2400px; }
  .mega-inner { grid-template-columns: 1fr; padding: 1rem 0; gap: 1.5rem; }
  .mega-feature { display: none; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 14, 12, 0.5);
    backdrop-filter: blur(4px);
    z-index: 94;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), visibility 0s linear var(--t);
  }
  .nav-overlay.open { opacity: 1; visibility: visible; transition: opacity var(--t), visibility 0s; }

  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .stat-num { font-size: 1.75rem; }
  .stats-row { grid-template-columns: 1fr; }

  .process-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 1.5rem; }

  section { padding: 4rem 0; }
  .trust-inner { justify-content: center; gap: 1.5rem; }
}

/* ==================== Scroll animations ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== Blog / Werkstatt-Journal ==================== */

/* Shared "image" backgrounds (gradient placeholders, same palette as gallery) */
.blog-feature-bg,
.blog-card-bg,
.article-hero-image {
  background: linear-gradient(135deg, #d9cfc1, #8a7a66);
  position: relative;
  overflow: hidden;
}
.blog-feature-bg::after,
.blog-card-bg::after,
.article-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
.blog-feature-bg.bg-1, .blog-card-bg.bg-1, .article-hero-image.bg-1 { background: linear-gradient(135deg, #d9cfc1, #8a7a66); }
.blog-feature-bg.bg-2, .blog-card-bg.bg-2, .article-hero-image.bg-2 { background: linear-gradient(135deg, #b85c2a, #6e3818); }
.blog-feature-bg.bg-3, .blog-card-bg.bg-3, .article-hero-image.bg-3 { background: linear-gradient(135deg, #2a2a28, #555350); }
.blog-feature-bg.bg-4, .blog-card-bg.bg-4, .article-hero-image.bg-4 { background: linear-gradient(135deg, #c4b59e, #6b5a44); }
.blog-feature-bg.bg-5, .blog-card-bg.bg-5, .article-hero-image.bg-5 { background: linear-gradient(135deg, #1a1a1a, #404040); }
.blog-feature-bg.bg-6, .blog-card-bg.bg-6, .article-hero-image.bg-6 { background: linear-gradient(135deg, #e2d5c0, #a08b6e); }
.blog-feature-bg.bg-7, .blog-card-bg.bg-7, .article-hero-image.bg-7 { background: linear-gradient(135deg, #8a6f54, #3d2f23); }
.blog-feature-bg.bg-8, .blog-card-bg.bg-8, .article-hero-image.bg-8 { background: linear-gradient(135deg, #d6cfc4, #7c6f5e); }

/* Tag pill */
.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 3px rgba(14,14,12,0.08);
}
.blog-tag.inline {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  box-shadow: none;
  margin-bottom: 1rem;
}

/* Featured article */
.blog-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  transition: all var(--t);
  text-decoration: none;
  color: inherit;
}
.blog-feature:hover {
  border-color: var(--c-ink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.blog-feature-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.blog-feature-visual .blog-feature-bg {
  position: absolute;
  inset: 0;
  transition: transform var(--t-slow);
}
.blog-feature:hover .blog-feature-bg { transform: scale(1.04); }
.blog-feature-visual .blog-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
}
.blog-feature-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}
.blog-feature-content .eyebrow { color: var(--c-accent); margin-bottom: 0.5rem; }
.blog-feature-content h2 {
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.blog-feature-content p {
  color: var(--c-muted);
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
}
.blog-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 0.35rem;
  align-self: flex-start;
  margin-top: 0.5rem;
  transition: all var(--t);
}
.blog-feature-link svg { width: 16px; height: 16px; transition: transform var(--t); }
.blog-feature:hover .blog-feature-link { border-bottom-color: var(--c-ink); }
.blog-feature:hover .blog-feature-link svg { transform: translateX(4px); }

/* Meta lines */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-bottom: 1rem;
}
.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.blog-meta-item svg { opacity: 0.7; }
.blog-meta-dot { opacity: 0.4; }

/* Filter chips */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
}
.blog-filter {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t);
}
.blog-filter:hover {
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.blog-filter.is-active {
  background: var(--c-ink);
  color: var(--c-white);
  border-color: var(--c-ink);
}

/* Blog card grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--t);
  display: flex;
}
.blog-card:hover {
  border-color: var(--c-ink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.blog-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
}
.blog-card-visual {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card-visual .blog-card-bg {
  position: absolute;
  inset: 0;
  transition: transform var(--t-slow);
}
.blog-card:hover .blog-card-bg { transform: scale(1.05); }
.blog-card-visual .blog-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}
.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.5rem;
}
.blog-card-content h3 {
  font-size: 1.1875rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.blog-card-content p {
  color: var(--c-muted);
  font-size: 0.9375rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}
.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 0.25rem;
  align-self: flex-start;
  margin-top: auto;
  transition: all var(--t);
}
.blog-card-cta svg { width: 14px; height: 14px; transition: transform var(--t); }
.blog-card:hover .blog-card-cta svg { transform: translateX(3px); }
.blog-card:hover .blog-card-cta { border-bottom-color: var(--c-ink); }

/* ==================== Article (single post) ==================== */
.article-header {
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-line);
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(184, 92, 42, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.article-header .container { position: relative; z-index: 1; }
.article-header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.03em;
}
.article-header .lead {
  max-width: 720px;
  margin-bottom: 1.5rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line);
  font-size: 0.875rem;
  color: var(--c-muted);
}
.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.article-meta-item svg { opacity: 0.7; }

.article-hero-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  margin: 2.5rem 0 1rem;
  box-shadow: var(--shadow);
}

.article-body { padding: 3rem 0 5rem; }
.article-body .container-narrow {
  max-width: 760px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-text);
}
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  margin: 2.75rem 0 1rem;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}
.article-body h4 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.article-body em { font-style: italic; color: var(--c-ink); }
.article-body strong { color: var(--c-ink); font-weight: 600; }
.article-body a {
  color: var(--c-accent);
  border-bottom: 1px solid currentColor;
}
.article-body a:hover { color: var(--c-ink); }

.article-intro {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--c-text);
  font-weight: 400;
  border-left: 3px solid var(--c-accent);
  padding-left: 1.25rem;
  margin: 0 0 2rem !important;
}

.article-list {
  margin: 1rem 0 1.5rem;
  padding-left: 0;
}
.article-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
  list-style: none;
}
.article-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.article-list.checked li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: none;
  border: 2px solid var(--c-accent);
  border-top: 0;
  border-right: 0;
  border-radius: 0;
  transform: rotate(-45deg) translateY(2px);
  top: 0.4rem;
  left: 0;
}

.article-quote {
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  background: var(--c-bg-alt);
  border-left: 4px solid var(--c-accent);
  border-radius: 8px;
}
.article-quote p {
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--c-ink);
  margin-bottom: 0.75rem;
}
.article-quote cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--c-muted);
}
.article-quote cite::before {
  content: "— ";
}

.article-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.article-feature {
  padding: 1.25rem 1.25rem 1.25rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  transition: border-color var(--t);
}
.article-feature:hover { border-color: var(--c-ink); }
.article-feature h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--c-ink);
}
.article-feature p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.55;
  margin: 0;
}

.article-callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--c-accent-soft);
  border-radius: 12px;
  margin: 2rem 0;
  align-items: flex-start;
}
.article-callout-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: 50%;
}
.article-callout p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  color: var(--c-text);
}

/* Author block */
.article-author-section {
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--c-line);
}
.article-author {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  background: var(--c-bg-alt);
  border-radius: 16px;
}
.article-author-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}
.article-author-info .eyebrow {
  color: var(--c-accent);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}
.article-author-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.4rem;
}
.article-author-info p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 880px) {
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature-visual { min-height: 260px; aspect-ratio: 16/10; }
  .blog-feature-content { padding: 2rem 1.5rem; }
  .article-author { flex-direction: column; text-align: center; gap: 1rem; padding: 1.5rem; }
  .article-header { padding: 3.5rem 0 2.5rem; }
  .article-body { padding: 2rem 0 4rem; }
  .article-intro { font-size: 1.0625rem; padding-left: 1rem; }
  .article-quote { padding: 1.25rem 1.25rem; }
  .blog-filters { gap: 0.4rem; }
  .blog-filter { padding: 0.45rem 0.9rem; font-size: 0.8125rem; }
}

/* ==================== Accessibility ==================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ==================== Projekt-Galerie (echte Fotos) ==================== */

/* Foto in den Masonry-Items (Homepage) */
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery-item:hover img { transform: scale(1.04); }

/* Gleichmäßiges Foto-Raster (Galerieseite + Leistungsseiten) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}
.photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photo-item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--c-bg-alt);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.photo-item:hover img { transform: scale(1.05); }
.photo-item:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.photo-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 14, 12, 0.86) 0%, rgba(14, 14, 12, 0.1) 46%, transparent 66%);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--c-white);
  opacity: 0;
  transition: opacity var(--t);
}
.photo-item:hover .photo-item-overlay,
.photo-item:focus-visible .photo-item-overlay { opacity: 1; }
.photo-item-overlay span {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.2rem;
}
.photo-item-overlay h4 { color: var(--c-white); font-size: 1rem; line-height: 1.3; }
.photo-item-zoom {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14, 14, 12, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--t), transform var(--t);
}
.photo-item:hover .photo-item-zoom { opacity: 1; transform: scale(1); }
.photo-item.is-hidden { display: none; }

/* Filter-Leiste */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.gallery-filter {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.gallery-filter:hover { border-color: var(--c-ink); color: var(--c-ink); }
.gallery-filter.active {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
}
.gallery-filter .count { opacity: 0.5; margin-left: 0.3rem; }
.gallery-empty {
  display: none;
  text-align: center;
  color: var(--c-muted);
  padding: 3rem 0;
}

/* Foto im detail-image-Platzhalter der Leistungsseiten */
.detail-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-image:has(img)::before,
.detail-image:has(img)::after { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 8, 7, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: #1a1a1a;
}
.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  max-width: 600px;
}
.lightbox-caption .lb-cat {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  margin-bottom: 0.25rem;
}
.lightbox-caption .lb-title {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.lightbox-btn {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t);
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .photo-grid,
  .photo-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .lightbox-btn { width: 40px; height: 40px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.6rem; right: 0.6rem; }
}
