﻿:root {
  --bg: #f7f8fb;
  --bg-top: #ffffff;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5b6573;
  --brand: #c41e1e;
  --border: #dbe1ea;
  --shadow: 0 12px 30px rgba(18, 28, 45, 0.08);
  --radius: 16px;
  --container: 1200px;
}

[data-theme="dark"] {
  --bg: #0c0c0c;
  --bg-top: #131313;
  --surface: #1a1a1a;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #2e0e0e;
  --brand: #dc2626;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0c;
    --bg-top: #131313;
    --surface: #1a1a1a;
    --text: #f9fafb;
    --muted: #9ca3af;
    --border: #2e0e0e;
    --brand: #dc2626;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  }
}

/* ── Dark-mode navbar: use dark surface, not forced white ── */
[data-theme="dark"] .site-header,
[data-theme="dark"] .site-header.is-scrolled {
  background: color-mix(in srgb, var(--surface), transparent 6%);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .nav-toggle {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .nav-toggle span {
  background: var(--text);
}

[data-theme="dark"] .dark-toggle {
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .dark-toggle:hover {
  background: color-mix(in srgb, var(--surface), white 6%);
}

[data-theme="dark"] .nav-dropdown {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}

[data-theme="dark"] .nav-dropdown a {
  color: var(--text);
}

[data-theme="dark"] .nav-dropdown a:hover {
  background: color-mix(in srgb, var(--brand), transparent 90%);
}

[data-theme="dark"] .nav-dropdown li:first-child a {
  border-bottom-color: var(--border);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header,
  :root:not([data-theme="light"]) .site-header.is-scrolled {
    background: color-mix(in srgb, var(--surface), transparent 6%);
    border-bottom-color: var(--border);
  }

  :root:not([data-theme="light"]) .nav-toggle {
    background: var(--surface);
    border-color: var(--border);
  }

  :root:not([data-theme="light"]) .nav-toggle span {
    background: var(--text);
  }

  :root:not([data-theme="light"]) .dark-toggle {
    color: var(--text);
    border-color: var(--border);
  }

  :root:not([data-theme="light"]) .dark-toggle:hover {
    background: color-mix(in srgb, var(--surface), white 6%);
  }

  :root:not([data-theme="light"]) .nav-dropdown {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.55);
  }

  :root:not([data-theme="light"]) .nav-dropdown a {
    color: var(--text);
  }

  :root:not([data-theme="light"]) .nav-dropdown a:hover {
    background: color-mix(in srgb, var(--brand), transparent 90%);
  }

  :root:not([data-theme="light"]) .nav-dropdown li:first-child a {
    border-bottom-color: var(--border);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  background: radial-gradient(circle at top, var(--bg-top) 0%, var(--bg) 48%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
}

img,
picture {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand), white 15%);
  outline-offset: 2px;
}

/* ── Jobs announcement banner ──────────────────────────── */
.jobs-banner {
  display: block;
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease;
}
.jobs-banner:hover {
  background: color-mix(in srgb, var(--brand), black 14%);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  z-index: 1200;
}

.skip-link:focus {
  top: 0.5rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface), transparent 8%);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Corporate brand accent line at top */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, color-mix(in srgb, var(--brand), transparent 30%) 100%);
  z-index: 1;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 28px rgba(18, 28, 45, 0.11);
  background: color-mix(in srgb, var(--surface), transparent 3%);
}

.header-inner {
  min-height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dark-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}

.dark-toggle:hover {
  background: var(--bg);
}

.dark-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  pointer-events: none;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}

.brand-logo {
  height: 5rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .brand-logo {
    height: 7rem;
  }
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #e53e3e);
  border-radius: 0.6rem;
  box-shadow: var(--shadow);
}

.brand-text {
  font-size: 0.95rem;
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 0 1rem 1rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  border-radius: 0.55rem;
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  transition: color 0.18s ease, background 0.18s ease;
  position: relative;
}

.site-nav a:not([aria-current="page"]):hover {
  background: color-mix(in srgb, var(--text), transparent 93%);
  color: var(--brand);
}

.site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--brand), white 88%);
  color: color-mix(in srgb, var(--brand), black 15%);
  font-weight: 600;
}

[data-theme="dark"] .site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--brand), transparent 82%);
  color: color-mix(in srgb, var(--brand), white 30%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-nav a[aria-current="page"] {
    background: color-mix(in srgb, var(--brand), transparent 82%);
    color: color-mix(in srgb, var(--brand), white 30%);
  }
}

.hero {
  position: relative;
  min-height: clamp(28rem, 65vh, 42rem);
  overflow: hidden;
}

.hero-slides {
  position: relative;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background: #ffffff;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
}

.hero-media,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide:has(img[src*="logo_neu_richtig"]) {
  background: #f5f5f5;
}

.hero-slide:has(img[src*="logo_neu_richtig"]) .hero-media img {
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 768px) {
  .hero:has(img[src*="logo_neu_richtig"]) {
    min-height: min(75vw, 100vh);
  }
}

.hero-slide:has(img[src*="schornstein2"]),
.hero-slide:has(img[src*="schornstein3"]),
.hero-slide:has(img[src*="schornstein.jpg"]),
.hero-slide:has(img[src*="schornstein4"]),
.hero-slide:has(img[src*="schornstein5"]),
.hero-slide:has(img[src*="schornstein6"]),
.hero-slide:has(img[src*="geruest.jpg"]) {
  background: #111;
}

.hero-slide:has(img[src*="schornstein2"]) .hero-media img,
.hero-slide:has(img[src*="schornstein3"]) .hero-media img,
.hero-slide:has(img[src*="schornstein.jpg"]) .hero-media img,
.hero-slide:has(img[src*="schornstein4"]) .hero-media img,
.hero-slide:has(img[src*="schornstein5"]) .hero-media img,
.hero-slide:has(img[src*="schornstein6"]) .hero-media img,
.hero-slide:has(img[src*="geruest.jpg"]) .hero-media img {
  object-fit: contain;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 14, 23, 0.85) 10%, rgba(10, 14, 23, 0.45) 60%, rgba(10, 14, 23, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  min-height: clamp(28rem, 65vh, 42rem);
  display: grid;
  align-content: center;
  gap: 1rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.65rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.hero-content p {
  max-width: 62ch;
  margin: 0;
}

.hero-brand-logo {
  width: clamp(220px, 36vw, 480px);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.42));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  min-height: 2.6rem;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:active {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--brand);
}

.btn-primary:hover,
.btn-primary:active {
  background: color-mix(in srgb, var(--brand), black 12%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand), transparent 78%);
}

.btn-secondary {
  color: var(--text);
  border-color: #b8c4ce;
  background: color-mix(in srgb, var(--surface), white 20%);
}

.btn-secondary:hover,
.btn-secondary:active {
  border-color: color-mix(in srgb, var(--brand), var(--border) 58%);
}

[data-theme="dark"] .btn-secondary {
  border-color: var(--border);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-secondary {
    border-color: var(--border);
  }
}

.nav-agb,
.footer-agb {
  font-size: 0.9rem;
}

[data-theme="dark"] .footer-agb {
  border-color: #9ca3af;
  color: #f9fafb;
  background: transparent;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-agb {
    border-color: #9ca3af;
    color: #f9fafb;
    background: transparent;
  }
}

/* ── Nav CTA Button ───────────────────────────────────── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  font-size: 0.88rem;
  padding: 0.4rem 0.7rem;
}

.nav-cta svg {
  flex-shrink: 0;
}

.nav-cta-text {
  display: none;
}

@media (min-width: 480px) {
  .nav-cta-text {
    display: inline;
  }
}

/* ── Nav Dropdown (Leistungen) ────────────────────────── */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  border-radius: 0.55rem;
  padding: 0.3rem 0.65rem;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  text-align: left;
}

.nav-dropdown-toggle:hover {
  background: color-mix(in srgb, var(--text), transparent 93%);
}

.nav-dropdown-chevron {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-item-dropdown.is-open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Spezifität 0,2,1 — überschreibt .site-nav ul (0,1,1) auf Mobile */
.site-nav ul.nav-dropdown {
  display: none;
}

.nav-item-dropdown.is-open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.45rem;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text);
  min-height: 2.4rem;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: color-mix(in srgb, var(--text), transparent 93%);
}

.nav-dropdown li:first-child a {
  font-weight: 600;
  color: color-mix(in srgb, var(--brand), black 10%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
  padding-bottom: 0.6rem;
}

@media (min-width: 768px) {
  .nav-dropdown-toggle {
    white-space: nowrap;
    width: auto;
  }

  .nav-dropdown-chevron {
    margin-left: 0;
  }

  .nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
  }

  .nav-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 280px;
    z-index: 200;
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  }

  /* Small arrow pointing up from dropdown to toggle */
  .nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    background: var(--surface);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: 1px solid var(--border);
  }

  .nav-item-dropdown:hover .nav-dropdown,
  .nav-item-dropdown:focus-within .nav-dropdown,
  .nav-item-dropdown.is-open .nav-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
}

.carousel-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}

.carousel-arrow.prev {
  left: 0.7rem;
}

.carousel-arrow.next {
  right: 0.7rem;
}

.carousel-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #fff;
}

.section {
  padding: clamp(2.2rem, 5vw, 4.5rem) 0;
}

.section-intro {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface), transparent 10%), transparent 100%);
}

.flow > * + * {
  margin-top: 1rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  padding-left: 0.85rem;
  border-left: 3px solid var(--brand);
}

.text-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--brand);
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card,
.surface-card {
  background: var(--surface);
  border: 1px solid #b8c4ce;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .card,
[data-theme="dark"] .surface-card {
  border-color: var(--border);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card,
  :root:not([data-theme="light"]) .surface-card {
    border-color: var(--border);
  }
}

a.card:hover,
a.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(18, 28, 45, 0.15);
  border-color: color-mix(in srgb, var(--brand), var(--border) 50%);
  text-decoration: none;
}

[data-theme="dark"] a.card:hover,
[data-theme="dark"] a.card:focus-visible {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px color-mix(in srgb, var(--brand), transparent 60%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) a.card:hover,
  :root:not([data-theme="light"]) a.card:focus-visible {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px color-mix(in srgb, var(--brand), transparent 60%);
  }
}

.card p,
.surface-card p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-link p {
  flex-grow: 1;
}

/* Service-Bilder auf Detail-Seiten */
.service-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  transition: transform 0.4s ease;
}

.service-image--natural {
  aspect-ratio: auto;
  height: auto;
  object-fit: unset;
}

/* Karten: picture-Container bestimmt die Größe, img füllt ihn */
.card picture {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}

.card .service-image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}

#team .card picture {
  aspect-ratio: 1 / 1;
}

#leistungen .card,
#leistungen-katalog .card-link,
#team .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

#leistungen .card p,
#leistungen-katalog .card-link p,
#team .card p {
  flex-grow: 1;
}

#leistungen .card:hover .service-image,
#leistungen-katalog .card:hover .service-image {
  opacity: 0.92;
}

#leistungen .card picture {
  aspect-ratio: 3 / 2;
}

@media (min-width: 1024px) {
  #leistungen .card-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  #leistungen .card-link {
    display: grid;
    grid-template-columns: 44% 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0 1.75rem;
    height: auto;
  }

  #leistungen .card-link picture {
    grid-column: 1;
    grid-row: 1 / 4;
    aspect-ratio: 4 / 3;
    margin-bottom: 0;
  }

  #leistungen .card-link h3 {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0.25rem;
  }

  #leistungen .card-link p {
    grid-column: 2;
    grid-row: 2;
  }

  #leistungen .card-link .card-more {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
  }
}

.furan-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.furan-gallery .service-image {
  margin-bottom: 0;
}

.section-contact {
  padding-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.map-embed {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
}

.opening-hours {
  margin: 0;
}

.opening-hours div {
  display: grid;
  grid-template-columns: minmax(2rem, auto) 1fr;
  gap: 0.6rem;
  padding: 0.25rem 0;
}

.opening-hours dt {
  font-weight: 700;
}

.opening-hours dd {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.footer-address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.2rem;
}

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

.legal-page {
  min-height: 100vh;
}

.legal-main {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 2rem);
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  margin-top: 1.2rem;
}

.legal-content h1 {
  margin-top: 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.contact-layout > article:first-child {
  border: 1px solid #b8c4ce;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

[data-theme="dark"] .contact-layout > article:first-child {
  border-color: var(--border);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact-layout > article:first-child {
    border-color: var(--border);
  }
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.5rem;
}

.form-grid label {
  font-weight: 600;
}

.form-control {
  width: 100%;
  min-height: 2.6rem;
  border: 1px solid #b8c4ce;
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .form-control {
  border-color: var(--border);
  background: #111111;
  color: var(--text);
}

[data-theme="dark"] .drop-zone {
  border-color: color-mix(in srgb, var(--brand), transparent 40%);
  background: #141414;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-control {
    border-color: var(--border);
    background: #111111;
    color: var(--text);
  }
  :root:not([data-theme="light"]) .drop-zone {
    border-color: color-mix(in srgb, var(--brand), transparent 40%);
    background: #141414;
  }
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand), transparent 82%);
}

textarea.form-control {
  min-height: 8rem;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6573' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.captcha-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.captcha-row img {
  border: 1px solid var(--border);
  border-radius: 0.4rem;
}

.captcha-input {
  max-width: 12rem;
}

.form-error {
  margin: 0;
  color: #b42318;
  font-weight: 600;
}

.form-hint {
  margin: 0;
  color: var(--muted);
}

.form-success-banner {
  background: color-mix(in srgb, #16a34a, white 88%);
  border: 1px solid color-mix(in srgb, #16a34a, white 55%);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: #14532d;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-success-banner p {
  margin: 0;
  font-weight: 600;
}

[data-theme="dark"] .form-success-banner {
  background: color-mix(in srgb, #16a34a, transparent 82%);
  border-color: color-mix(in srgb, #16a34a, transparent 55%);
  color: #4ade80;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-success-banner {
    background: color-mix(in srgb, #16a34a, transparent 82%);
    border-color: color-mix(in srgb, #16a34a, transparent 55%);
    color: #4ade80;
  }
}

.form-error-banner {
  background: color-mix(in srgb, #dc2626, white 90%);
  border: 1px solid color-mix(in srgb, #dc2626, white 60%);
  border-radius: 0.55rem;
  padding: 0.75rem 1rem;
  color: #7f1d1d;
}

.form-error-banner p {
  margin: 0;
  font-weight: 600;
}

[data-theme="dark"] .form-error-banner {
  background: color-mix(in srgb, #dc2626, transparent 82%);
  border-color: color-mix(in srgb, #dc2626, transparent 55%);
  color: #fca5a5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-error-banner {
    background: color-mix(in srgb, #dc2626, transparent 82%);
    border-color: color-mix(in srgb, #dc2626, transparent 55%);
    color: #fca5a5;
  }
}

.contact-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

@media (min-width: 480px) {
  .brand-text {
    font-size: 1rem;
  }

  .carousel-arrow.prev {
    left: 1rem;
  }

  .carousel-arrow.next {
    right: 1rem;
  }
}

@media (min-width: 768px) {
  .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
    padding: 0;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav ul {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.15rem;
  }

  /* Dropdown überschreibt die .site-nav ul Resets */
  .site-nav ul.nav-dropdown {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.5rem;
    flex-wrap: unset;
    justify-content: unset;
    align-items: unset;
    gap: unset;
  }

  .site-nav a {
    min-height: 2.2rem;
    padding-inline: 0.55rem;
    font-size: 0.92rem;
    border-radius: 0.45rem;
  }

  /* Desktop: active page gets a brand underline instead of background pill */
  .site-nav a[aria-current="page"] {
    background: transparent;
    color: var(--brand);
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--brand);
    border-radius: 0;
  }

  [data-theme="dark"] .site-nav a[aria-current="page"],
  :root:not([data-theme="light"]) .site-nav a[aria-current="page"] {
    background: transparent;
    color: var(--brand);
    box-shadow: inset 0 -2px 0 var(--brand);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .site-nav a {
    font-size: 0.95rem;
    padding-inline: 0.65rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-intro .flow {
    max-width: 78ch;
  }
}

@media (min-width: 1280px) {
  .hero-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .site-nav ul {
    gap: 0.35rem;
  }
}

/* ── Testimonials ────────────────────────────────────── */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid #b8c4ce;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

[data-theme="dark"] .testimonial-card {
  border-color: var(--border);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .testimonial-card {
    border-color: var(--border);
  }
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.testimonial-text {
  margin: 0;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
}

.testimonial-author {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

.testimonial-cta {
  text-align: center;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Hero-Telefon ─────────────────────────────────────── */

.hero-phone {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.1rem;
}

/* ── Cookie-Consent Karte ────────────────────────────── */

.map-consent-banner {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--bg), white 30%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.map-consent-inner {
  max-width: 36ch;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-consent-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.map-consent-inner a {
  color: var(--brand);
  text-underline-offset: 3px;
}

/* ── Jobs-Formular ────────────────────────────────────── */

.jobs-apply-form {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.jobs-apply-form h2 {
  margin-top: 0;
}

/* ── Upload / Drop-Zonen ─────────────────────────────── */

.upload-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand), white 97%);
  padding: 1.25rem 1.25rem 1.5rem;
  display: grid;
  gap: 1.1rem;
}

[data-theme="dark"] .upload-section {
  background: color-mix(in srgb, var(--brand), transparent 92%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .upload-section {
    background: color-mix(in srgb, var(--brand), transparent 92%);
  }
}

.upload-section-header {
  display: grid;
  gap: 0.2rem;
}

.upload-section-title {
  font-weight: 700;
  margin: 0;
}

.upload-section-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.drop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.drop-zone {
  position: relative;
  border: 2px dashed #b8c4ce;
  border-radius: 0.65rem;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  gap: 0.75rem;
  transition: border-color 0.18s ease, background 0.18s ease;
  min-height: 9rem;
}

.drop-zone:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand), white 94%);
}

.drop-zone--dragover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand), white 90%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand), transparent 78%);
}

.drop-zone--wide {
  grid-column: 1 / -1;
  min-height: 7rem;
  padding: 1.1rem 1rem;
}

.drop-zone-input {
  display: none;
}

.drop-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

.drop-zone-icon {
  color: var(--muted);
  transition: color 0.18s ease;
}

.drop-zone:hover .drop-zone-icon,
.drop-zone--dragover .drop-zone-icon {
  color: var(--brand);
}

.drop-zone-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.drop-zone-cta {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.drop-zone-cta em {
  font-style: normal;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* State: file(s) selected */
.drop-zone--has-files .drop-zone-inner {
  display: none;
}

.drop-zone--has-files {
  border-style: solid;
  border-color: color-mix(in srgb, var(--brand), white 55%);
  background: color-mix(in srgb, var(--brand), white 94%);
  justify-content: flex-start;
  padding: 0.85rem 0.9rem;
}

.drop-zone-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.drop-zone-file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--brand), white 65%);
  border-radius: 0.45rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.875rem;
  color: var(--brand);
}

.drop-zone-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
}

.drop-zone-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.drop-zone-remove:hover {
  color: #b42318;
  background: color-mix(in srgb, #b42318, white 90%);
}

.required-star {
  color: #b42318;
  font-weight: 700;
}

.drop-zone--error {
  border-color: #b42318 !important;
  background: color-mix(in srgb, #b42318, white 96%) !important;
}

.drop-zone-error {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: #b42318;
  font-weight: 500;
  text-align: center;
}

.upload-optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.875em;
}

@media (max-width: 520px) {
  .drop-grid {
    grid-template-columns: 1fr;
  }
  .drop-zone--wide {
    grid-column: auto;
  }
}

/* ── Service-Detail Beschreibung ─────────────────────── */

.service-desc {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.service-desc + .service-desc {
  margin-top: 0.75rem;
}

.service-highlight {
  background: color-mix(in srgb, var(--brand), white 92%);
  border-left: 3px solid var(--brand);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  color: color-mix(in srgb, var(--brand), black 20%);
  font-weight: 600;
}

[data-theme="dark"] .service-highlight {
  background: color-mix(in srgb, var(--brand), transparent 85%);
  color: color-mix(in srgb, var(--brand), white 30%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .service-highlight {
    background: color-mix(in srgb, var(--brand), transparent 85%);
    color: color-mix(in srgb, var(--brand), white 30%);
  }
}

/* ── WebP picture-Elemente ────────────────────────────── */

.hero-media picture,
picture.hero-media {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Reduced Motion ──────────────────────────────────── */

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

/* Leistungen Emblem */
.leistungen-emblem-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.leistungen-emblem {
  width: clamp(90px, 14vw, 150px);
  height: auto;
  transform: rotate(-3deg);
  filter: drop-shadow(0 6px 22px rgba(0,0,0,0.3));
}
@keyframes emblem-wobble {
  0%,100%{transform:rotate(-3deg) scale(1)}
  40%{transform:rotate(1deg) scale(1.06)}
  70%{transform:rotate(-6deg) scale(1.03)}
}
.leistungen-emblem-wrap:hover .leistungen-emblem {
  animation: emblem-wobble 0.65s ease;
}

/* Leistungen-Accordion */
.leistungen-accordion {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}
.leistungen-accordion details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.leistungen-accordion details[open] {
  box-shadow: 0 14px 36px rgba(18,28,45,0.13);
  border-color: color-mix(in srgb, var(--brand), var(--border) 45%);
}
.leistungen-accordion summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  gap: 1rem;
  user-select: none;
  border-radius: var(--radius);
}
.leistungen-accordion summary::-webkit-details-marker { display: none; }
.leistungen-accordion summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.leistungen-accordion details[open] summary::after { transform: rotate(45deg); }
.leistungen-accordion summary:hover {
  background: color-mix(in srgb, var(--brand), transparent 95%);
}
.accordion-content {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}
.accordion-content ul {
  margin: 0.8rem 0 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.4rem;
}
.accordion-content li {
  color: var(--muted);
  line-height: 1.65;
}
.accordion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: color-mix(in srgb, var(--brand), white 88%);
  color: color-mix(in srgb, var(--brand), black 15%);
  border: 1px solid color-mix(in srgb, var(--brand), white 70%);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .accordion-badge {
  background: color-mix(in srgb, var(--brand), transparent 82%);
  color: color-mix(in srgb, var(--brand), white 40%);
  border-color: color-mix(in srgb, var(--brand), transparent 60%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .accordion-badge {
    background: color-mix(in srgb, var(--brand), transparent 82%);
    color: color-mix(in srgb, var(--brand), white 40%);
    border-color: color-mix(in srgb, var(--brand), transparent 60%);
  }
}

/* ── Catalog accordion (Leistungsseite) ─────────────────────────────────── */
.cat-accordion { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.cat-accordion-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cat-accordion-item[open] { box-shadow: 0 14px 36px rgba(18,28,45,0.13); border-color: color-mix(in srgb, var(--brand), white 60%); }
.cat-accordion-item > summary {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1.25rem 0.75rem 0.75rem;
  cursor: pointer; list-style: none;
}
.cat-accordion-item > summary::-webkit-details-marker { display: none; }
.cat-accordion-item > summary::after { content: '+'; font-size: 1.5rem; color: var(--brand); margin-left: auto; flex-shrink: 0; transition: transform 0.2s ease; }
.cat-accordion-item[open] > summary::after { transform: rotate(45deg); }
.cat-img { width: clamp(72px, 18vw, 150px); height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.4rem; flex-shrink: 0; }
.cat-info { display: flex; flex-direction: column; gap: 0.2rem; }
.cat-title { font-weight: 700; font-size: 1.05rem; }
.cat-desc { font-size: 0.88rem; color: var(--text-muted, #666); }
.cat-actions { margin-top: 1rem; }

/* ── Service sub-items (Detailseite) ─────────────────────────────────────── */
.service-subitems { margin: 1.25rem 0; padding: 1rem 1.25rem; background: color-mix(in srgb, var(--brand), white 94%); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; }
.service-subitems h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; color: color-mix(in srgb, var(--brand), black 10%); }
.service-subitems ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.service-subitems li { font-size: 0.93rem; }
[data-theme="dark"] .service-subitems { background: color-mix(in srgb, var(--brand), transparent 87%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .service-subitems { background: color-mix(in srgb, var(--brand), transparent 87%); } }

/* ── Vorher/Nachher Galerie-Seite ─────────────────────── */
.vn-gallery {
  display: grid;
  gap: 2.5rem;
}

.vn-gallery-title {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--brand);
}

.vn-gallery-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.vn-gallery-images .vn-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}

@media (min-width: 768px) {
  .vn-gallery-images .vn-item img {
    aspect-ratio: 16 / 10;
  }
}

/* ── Hafenschule kombinierte Ansicht ─────────────────── */
.vn-hafenschule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 0.75rem;
}

.vn-hs-v1 { grid-column: 1; grid-row: 1; }
.vn-hs-v2 { grid-column: 1; grid-row: 2; }
.vn-hs-v3 { grid-column: 1; grid-row: 3; }
.vn-hs-n  { grid-column: 2; grid-row: 1 / 4; }

.vn-hafenschule .vn-item img {
  width: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}

.vn-hs-v1 img,
.vn-hs-v2 img,
.vn-hs-v3 img {
  aspect-ratio: 4 / 3;
}

.vn-hs-n img {
  height: 100%;
  aspect-ratio: auto;
}

/* ── Handwerker-Block ─────────────────────────────────── */
.handwerker-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.handwerker-block h3 {
  padding-left: 0.85rem;
  border-left: 3px solid var(--brand);
  margin-bottom: 1rem;
}

.handwerker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.handwerker-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}

@media (min-width: 640px) {
  .handwerker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Team Foto Wrapper ────────────────────────────────── */
.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 15%;
}

.team-photo-wrap .team-photo--shift {
  object-position: center 28%;
}

.team-photo-wrap .team-photo--dagmar {
  object-position: center 75%;
}

/* ── Team-Rolle ───────────────────────────────────────── */
.team-role {
  display: inline-block;
  background: color-mix(in srgb, var(--brand), white 88%);
  color: color-mix(in srgb, var(--brand), black 15%);
  border: 1px solid color-mix(in srgb, var(--brand), white 70%);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Vorher / Nachher ─────────────────────────────────── */
.vn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.vn-pair {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0.85rem;
}

.vn-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.vn-item {
  position: relative;
}

.vn-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

.vn-label {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.vn-label--nachher {
  background: var(--brand);
}

.maurer-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.maurer-img-grid img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

.service-image[src*="Furan.jpg"],
.card-link picture img[src*="Furan.jpg"] {
  object-position: center bottom;
}

.vn-caption {
  margin: 0.7rem 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .vn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── vn-item: needs position relative for absolute labels ─ */
.vn-item {
  position: relative;
}

/* ── Carousel: Cross-fade progress bar ────────────────── */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.2);
}

.carousel-progress-bar {
  height: 100%;
  width: 0;
  background: var(--brand);
}

.carousel-progress-bar.is-running {
  animation: carousel-progress 7s linear forwards;
}

@keyframes carousel-progress {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── Breadcrumb ───────────────────────────────────────── */
.breadcrumb {
  margin-bottom: 1.25rem;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin: 0 0.35rem;
  color: var(--muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb li:last-child {
  color: var(--text);
  font-weight: 600;
}

/* ── Card "Mehr erfahren" arrow ───────────────────────── */
.card-more {
  display: block;
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.01em;
  transition: gap 0.15s;
}

a.card:hover .card-more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── cat-img: responsive thumbnail ───────────────────── */
.cat-img {
  width: clamp(72px, 18vw, 150px);
  height: auto;
  aspect-ratio: 4 / 3;
}

/* ── Map consent: match adjacent card height ──────────── */
.contact-grid .surface-card:has(.map-embed),
.contact-grid .surface-card:has(.map-consent-banner) {
  display: flex;
  flex-direction: column;
}

.map-embed,
.map-consent-banner {
  flex: 1;
  min-height: 260px;
}

/* ── Submit button spinner ────────────────────────────── */
.btn-spinner {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  vertical-align: middle;
  margin-left: 0.35rem;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Home emblem badge ────────────────────────────────── */
.emblem-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
  margin-top: 1rem;
  margin-bottom: 0;
  pointer-events: none;
}

.emblem-badge {
  width: clamp(80px, 14vw, 140px);
  height: auto;
  transform: rotate(-3deg);
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.35));
  pointer-events: auto;
}

.emblem-wrapper a {
  pointer-events: auto;
  display: block;
}

.emblem-wrapper:hover .emblem-badge {
  animation: emblem-wobble 0.65s ease;
}

@media (max-width: 767px) {
  .emblem-wrapper {
    margin-top: 3.5rem;
  }
}

/* ── Globaler Cookie-Consent-Banner ──────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
  animation: cookie-slide-up 0.3s ease;
}

.cookie-banner--hide {
  animation: cookie-slide-down 0.3s ease forwards;
}

@keyframes cookie-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes cookie-slide-down {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}

.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text);
}

.cookie-banner-text strong {
  display: block;
  margin-bottom: 0.25rem;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.cookie-banner-text a {
  color: var(--brand);
  text-underline-offset: 3px;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }
}
