/* ==========================================================================
   V-R Bau-Service GmbH & Co. KG – Stylesheet
   Farbsystem: OKLCH + Relative Color Syntax + color-mix(in oklch, …)
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 75% 100%;
  src: url("../fonts/roboto-latin-standard-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 75% 100%;
  src: url("../fonts/roboto-latin-ext-standard-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Markenfarben */
  --primary: #fd7000;
  --secondary: #00335d;
  --paper: #fffdfb;

  /* Abgeleitete Farben (Relative Color Syntax) */
  --primary-strong: oklch(from var(--primary) calc(l - 0.14) c h);   /* Text-tauglich auf Weiß */
  --primary-hover: oklch(from var(--primary) calc(l - 0.06) c h);   /* dunkler, damit weiße Schrift lesbar bleibt */
  --secondary-deep: oklch(from var(--secondary) calc(l - 0.07) c h);
  --ink: oklch(from var(--secondary) 0.24 calc(c * 0.8) h);
  --ink-soft: color-mix(in oklch, var(--ink) 72%, var(--paper));

  /* Flächen & Linien (color-mix) */
  --surface: color-mix(in oklch, var(--primary) 5%, var(--paper));
  --surface-cool: color-mix(in oklch, var(--secondary) 5%, var(--paper));
  --tint-primary: color-mix(in oklch, var(--primary) 20%, transparent);
  --tint-primary-soft: color-mix(in oklch, var(--primary) 9%, transparent);
  --line: color-mix(in oklch, var(--secondary) 14%, transparent);
  --line-strong: color-mix(in oklch, var(--secondary) 28%, transparent);
  --on-dark: var(--paper);
  --on-dark-soft: color-mix(in oklch, var(--paper) 74%, var(--secondary));

  /* Form */
  --radius: 10px;
  --radius-sm: calc(var(--radius) * 0.6);
  --shadow: 0 1px 2px color-mix(in oklch, var(--secondary) 10%, transparent),
            0 12px 32px -12px color-mix(in oklch, var(--secondary) 30%, transparent);

  /* Typografie */
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --fs-h4: 1.1875rem;
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --fs-h1: clamp(2.4rem, 1.5rem + 3.8vw, 4.75rem);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --header-h: 76px;

  /* Signatur-Form: Giebel aus dem Logo */
  --gable: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%);

  color-scheme: light;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary-strong); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--secondary); }
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--tint-primary); color: var(--ink); }

h1, h2, h3, h4 {
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--secondary);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); line-height: 1.25; font-stretch: 88%; }
p { text-wrap: pretty; max-width: 68ch; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  padding: 0.75rem 1.25rem; background: var(--secondary); color: var(--on-dark);
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--on-dark); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--secondary);
  --btn-fg: var(--on-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.85em 1.4em;
  min-height: 48px;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { color: var(--btn-fg); background: oklch(from var(--btn-bg) calc(l + 0.06) c h); border-color: oklch(from var(--btn-bg) calc(l + 0.06) c h); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary { --btn-bg: var(--primary); --btn-fg: #fff; }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn--ghost { background: transparent; color: var(--secondary); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--tint-primary-soft); color: var(--secondary); border-color: var(--primary); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: color-mix(in oklch, var(--paper) 40%, transparent); }
.btn--ghost-light:hover { background: color-mix(in oklch, var(--paper) 10%, transparent); border-color: var(--paper); color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
}
/* Blur auf Pseudo-Element: backdrop-filter am Header selbst würde
   position:fixed im mobilen Menü auf die Headerhöhe begrenzen */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--secondary); flex: none; }
.brand:hover { color: var(--secondary); }
.brand__mark { width: 56px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-stretch: 80%; font-size: 1.35rem; letter-spacing: 0.01em; }
.brand__legal { font-weight: 700; font-size: 0.8rem; color: var(--primary-strong); margin-top: 0.3rem; letter-spacing: 0.02em; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.6rem 0.85rem;
  border: 0; background: none; border-radius: var(--radius-sm);
  color: var(--secondary); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.site-nav__link:hover { background: var(--tint-primary-soft); color: var(--secondary); }
.site-nav__link[aria-current="page"], .site-nav__link.is-active { box-shadow: inset 0 -3px 0 var(--primary); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.site-nav__chevron { width: 0.9em; height: 0.9em; transition: transform .2s; }
.site-nav__sub-toggle[aria-expanded="true"] .site-nav__chevron { transform: rotate(180deg); }

.site-nav__sub {
  position: absolute; top: calc(100% + 0.6rem); left: 50%; translate: -50% 0;
  width: min(560px, 90vw);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 0.5rem;
  padding: 0.75rem; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav__sub.is-open { opacity: 1; visibility: visible; transform: none; }
.site-nav__sub a {
  display: block; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.3;
}
.site-nav__sub a:hover, .site-nav__sub a[aria-current="page"] { background: var(--tint-primary-soft); color: var(--secondary); }
.site-nav__sub-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 0.35rem; padding-top: 0.35rem; }
.site-nav__sub-all a { font-weight: 700; color: var(--primary-strong); }

.site-nav__actions { display: flex; align-items: center; gap: 1rem; }
.site-nav__phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--secondary); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.site-nav__phone svg { width: 1.1rem; height: 1.1rem; color: var(--primary); }
.site-nav__phone:hover { color: var(--primary-strong); }

.nav-toggle {
  display: none; position: relative;
  width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  position: absolute; left: 50%; width: 22px; height: 2px; margin-left: -11px;
  background: var(--secondary); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--paper);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { border-bottom: 1px solid var(--line); }
  .site-nav__link { width: 100%; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1.125rem; }
  .site-nav__link[aria-current="page"], .site-nav__link.is-active { box-shadow: inset 4px 0 0 var(--primary); border-radius: 0; padding-left: 1rem; }
  .site-nav__sub {
    position: static; translate: none; width: auto; grid-template-columns: 1fr;
    padding: 0 0 0.75rem 0.5rem; border: 0; box-shadow: none; background: none;
    display: none; opacity: 1; visibility: visible; transform: none;
  }
  .site-nav__sub.is-open { display: grid; }
  .site-nav__actions { flex-direction: column; align-items: stretch; }
  .site-nav__phone { justify-content: center; padding: 0.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand__mark { width: 46px; }
  .brand__name { font-size: 1.15rem; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--secondary);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(4rem, 2rem + 7vw, 8rem);
  isolation: isolate;
}
.hero::before { /* Dachlinien aus dem Logo als ruhige Struktur */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(155deg, transparent 0 62%, color-mix(in oklch, var(--paper) 5%, transparent) 62% 100%),
    radial-gradient(120% 90% at 90% 10%, color-mix(in oklch, var(--primary) 14%, transparent), transparent 60%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center;
}
.hero h1 { color: var(--on-dark); font-stretch: 75%; font-weight: 800; }
.hero h1 .hero__company { display: block; color: var(--primary); }
.hero__text { margin-top: 1.5rem; font-size: var(--fs-lg); color: var(--on-dark-soft); max-width: 46ch; }
.hero__visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; width: 100%; }
.hero__gable {
  position: absolute; inset: 0 0 8% 12%;
  clip-path: var(--gable);
  background: var(--primary);
}
.hero__gable img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero__gable::after { /* orangefarbene Traufkante */
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 -10px 0 var(--primary);
  pointer-events: none;
}
.hero__tile {
  position: absolute; width: 42%; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  border: 5px solid var(--secondary);
  box-shadow: 0 18px 40px -16px oklch(0 0 0 / 0.55);
}
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.hero__tile--a { left: 0; bottom: 0; }
.hero__tile--b { right: -4%; top: 44%; width: 34%; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 480px; }
}

/* ---------- Seitentitel (Unterseiten) ---------- */
.page-head {
  background: var(--secondary); color: var(--on-dark);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  position: relative; overflow: hidden; isolation: isolate;
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(155deg, transparent 0 66%, color-mix(in oklch, var(--paper) 5%, transparent) 66% 100%);
}
.page-head h1 { color: var(--on-dark); font-stretch: 75%; }
.page-head .lead { color: var(--on-dark-soft); margin-top: 1rem; }

.breadcrumb { margin-bottom: 1.25rem; font-size: var(--fs-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--on-dark-soft); }
.breadcrumb li + li::before { content: "/"; opacity: 0.5; }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Split-Layouts ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 1.25rem; }
.stack--sm > * + * { margin-top: 0.6rem; }

/* Bild-Mosaik (Dienstleistungen) */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 0.9rem; }
.mosaic__item { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; background: var(--surface-cool); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.mosaic__item--tall { grid-row: span 2; }
.mosaic__item--tall img { aspect-ratio: auto; height: 100%; }
.mosaic__item figcaption {
  position: absolute; left: 0.6rem; bottom: 0.6rem;
  padding: 0.3rem 0.65rem; border-radius: var(--radius-sm);
  background: color-mix(in oklch, var(--secondary) 86%, transparent); color: var(--on-dark);
  font-size: var(--fs-sm); font-weight: 600;
}

/* ---------- Leistungsverzeichnis (Liste der Leistungen) ---------- */
.lv-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.lv-head .lead { margin-top: 1rem; }
.lv { list-style: none; padding: 0; border-top: 2px solid var(--secondary); }
.lv__row {
  display: grid; grid-template-columns: 5.5rem minmax(0, 17rem) minmax(0, 1fr) 2.5rem;
  gap: 1.25rem; align-items: center;
  padding: 1.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: background-color .15s;
}
.lv__row:hover { background: var(--tint-primary-soft); color: var(--ink); }
.lv__row:hover .lv__arrow { background: var(--primary); color: var(--ink); border-color: var(--primary); }
.lv__pos { font-size: var(--fs-sm); font-weight: 700; color: var(--primary-strong); font-variant-numeric: tabular-nums; }
.lv__title { font-weight: 800; font-stretch: 82%; font-size: 1.3rem; line-height: 1.15; color: var(--secondary); }
.lv__text { color: var(--ink-soft); line-height: 1.5; }
.lv__arrow {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--secondary);
  transition: background-color .15s, color .15s, border-color .15s;
}
.lv__arrow svg { width: 1.1rem; height: 1.1rem; }
.lv--media .lv__row { grid-template-columns: 5.5rem 7.5rem minmax(0, 15rem) minmax(0, 1fr) 2.5rem; }
.lv__thumb { width: 7.5rem; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-cool); display: grid; place-items: center; }
.lv__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lv__thumb--empty img { width: 55%; height: auto; opacity: 0.35; }
@media (max-width: 860px) {
  .lv__row, .lv--media .lv__row { grid-template-columns: minmax(0, 1fr) 2.5rem; gap: 0.35rem 1rem; padding-inline: 0.25rem; }
  .lv__pos { grid-column: 1; }
  .lv__title { grid-column: 1; }
  .lv__text { grid-column: 1; }
  .lv__arrow { grid-column: 2; grid-row: 1 / span 3; }
  .lv__thumb { display: none; }
}

/* ---------- CTA-Band ---------- */
.cta { background: var(--primary); color: var(--ink); overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.cta h2 { color: var(--secondary-deep); font-stretch: 75%; }
.cta p { margin-top: 1rem; font-size: var(--fs-lg); color: color-mix(in oklch, var(--ink) 88%, var(--primary)); }
.cta .btn-row { margin-top: 1.75rem; }
/* Ghost-Button auf orangem Grund: volle Kontur + dunkles Navy statt transparenter Linie */
.cta .btn--ghost { color: var(--secondary-deep); border-color: var(--secondary-deep); background: color-mix(in oklch, var(--paper) 18%, transparent); }
.cta .btn--ghost:hover { color: #fff; background: var(--secondary-deep); border-color: var(--secondary-deep); }
.cta__media { position: relative; align-self: stretch; min-height: 260px; }
.cta__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: var(--gable); border-radius: 0 0 var(--radius) var(--radius);
}
.cta--compact .cta__grid { grid-template-columns: 1fr auto; }
@media (max-width: 860px) {
  .cta__grid, .cta--compact .cta__grid { grid-template-columns: 1fr; }
  .cta__media { min-height: 240px; }
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--secondary); color: var(--on-dark); border-radius: var(--radius);
}
.contact-card h3 { color: var(--on-dark); }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.9rem; align-items: start; }
.contact-list__icon {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm);
  background: color-mix(in oklch, var(--primary) 22%, transparent); color: var(--primary);
}
.contact-list__icon svg { width: 1.2rem; height: 1.2rem; }
.contact-list__label { display: block; font-size: var(--fs-sm); color: var(--on-dark-soft); }
.contact-list a, .contact-list strong { color: var(--on-dark); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--primary); text-decoration: underline; }
.contact-card .btn-row { margin-top: auto; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.tile {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  text-decoration: none; color: var(--ink);
}
.tile__icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--tint-primary); color: var(--primary-strong); margin-bottom: 0.5rem; }
.tile__icon svg { width: 1.2rem; height: 1.2rem; }
.tile__label { font-size: var(--fs-sm); color: var(--ink-soft); }
.tile__value { font-weight: 700; color: var(--secondary); font-size: 1.1rem; overflow-wrap: anywhere; }
a.tile:hover { border-color: var(--primary); background: var(--tint-primary-soft); color: var(--ink); }

/* ---------- Karte (OpenStreetMap / Leaflet, Zwei-Klick) ---------- */
.map {
  position: relative; min-height: 420px; height: 100%;
  border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px),
    var(--surface-cool);
  border: 1px solid var(--line);
}
.map__canvas { position: absolute; inset: 0; }
.map__consent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem;
  padding: 2rem; text-align: center;
}
.map__consent p { max-width: 42ch; font-size: var(--fs-sm); color: var(--ink-soft); }
.map__pin { width: 3.5rem; color: var(--primary); }
.map__remember { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--ink-soft); cursor: pointer; }
.map__remember input { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }
.map.is-loaded .map__consent { display: none; }
.map .leaflet-container { font-family: var(--font); background: var(--surface-cool); }
.map .leaflet-control-attribution a { color: var(--secondary); }
.map-marker { background: none; border: 0; }
.map-marker svg { width: 44px; height: 52px; filter: drop-shadow(0 6px 8px oklch(0 0 0 / 0.3)); }
.leaflet-popup-content-wrapper { border-radius: var(--radius); }
.leaflet-popup-content { font-family: var(--font); line-height: 1.45; margin: 0.9rem 1.1rem; }
.leaflet-popup-content strong { color: var(--secondary); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq { border-top: 2px solid var(--secondary); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0.25rem; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.125rem; color: var(--secondary); line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--primary-strong); }
.faq__icon {
  flex: none; position: relative; width: 2rem; height: 2rem; border-radius: var(--radius-sm);
  background: var(--tint-primary-soft);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--primary-strong); border-radius: 2px; transition: transform .2s;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item[open] .faq__icon { background: var(--primary); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--ink); }
.faq__answer { padding: 0 0.25rem 1.5rem; color: var(--ink-soft); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .25s, content-visibility .25s allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
}

/* ---------- Werte (Über uns) — Fenster-Symbol aus dem Logo ---------- */
.values { list-style: none; padding: 0; display: grid; gap: 1rem; }
.values li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.9rem; align-items: start; }
.values__window {
  width: 1.3rem; height: 1.3rem; margin-top: 0.25rem;
  background:
    linear-gradient(var(--paper), var(--paper)) center / 100% 2px no-repeat,
    linear-gradient(var(--paper), var(--paper)) center / 2px 100% no-repeat,
    var(--primary);
  border-radius: 2px;
}
.values strong { color: var(--secondary); }
.logo-card {
  display: grid; place-items: center; padding: clamp(2rem, 1rem + 4vw, 4rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.logo-card img { width: min(100%, 380px); }

/* ---------- Dienstleistung (Detail) ---------- */
.service-media { position: relative; }
.service-media__frame { aspect-ratio: 5 / 4; clip-path: var(--gable); background: var(--primary); position: relative; }
.service-media__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-media__frame--empty {
  display: grid; place-items: center; padding-top: 12%;
  background: var(--surface-cool);
}
.service-media__frame--empty img { position: static; width: 46%; height: auto; opacity: 0.9; }
.service-media__base { height: 10px; background: var(--primary); border-radius: 0 0 var(--radius) var(--radius); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin-top: 1.5rem; }
.chips li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  background: color-mix(in oklch, var(--paper) 12%, transparent); color: var(--on-dark);
  font-weight: 600; font-size: var(--fs-sm);
}
.chips svg { width: 1rem; height: 1rem; color: var(--primary); }

/* ---------- Formular ---------- */
.form-card {
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.form__field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.form label, .form legend { font-weight: 600; color: var(--secondary); font-size: 0.95rem; }
.form__req { color: var(--primary-strong); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form textarea { min-height: 160px; resize: vertical; }
.form select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300335d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 1.1rem;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--tint-primary);
}
.form input:user-invalid, .form textarea:user-invalid, .form select:user-invalid { border-color: oklch(0.55 0.2 27); }
.form__check { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; font-weight: 400 !important; color: var(--ink) !important; font-size: 0.95rem; }
.form__check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--primary); }
.form__hint { font-size: var(--fs-sm); color: var(--ink-soft); }
.form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.notice {
  display: none; grid-column: 1 / -1;
  padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 600;
}
.notice.is-visible { display: block; }
.notice--ok { background: color-mix(in oklch, oklch(0.62 0.15 150) 14%, transparent); color: oklch(0.36 0.1 150); border: 1px solid color-mix(in oklch, oklch(0.62 0.15 150) 40%, transparent); }
.notice--error { background: color-mix(in oklch, oklch(0.6 0.2 27) 12%, transparent); color: oklch(0.42 0.16 27); border: 1px solid color-mix(in oklch, oklch(0.6 0.2 27) 40%, transparent); }

/* ---------- Rechtstexte ---------- */
.legal > * { max-width: 78ch; }
.legal h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.25rem; margin-top: 2rem; font-stretch: 85%; }
.legal p, .legal ul, .legal address { margin-top: 0.85rem; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.3rem; }
.legal li::marker { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary-deep); color: var(--on-dark-soft); padding-top: clamp(3.5rem, 2rem + 4vw, 5.5rem); font-size: 0.975rem; }
.site-footer a:not(.btn) { color: var(--on-dark); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--primary); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .brand { color: var(--on-dark); }
.footer__brand .brand__mark { width: 64px; padding: 6px; background: var(--paper); border-radius: var(--radius-sm); }
.footer__brand .brand__legal { color: var(--primary); }
.footer__brand p { margin-top: 1.25rem; max-width: 38ch; }
.footer__brand .btn { margin-top: 1.5rem; }
.footer__col h2 { font-size: 1.125rem; font-stretch: 85%; color: var(--on-dark); margin-bottom: 1rem; letter-spacing: 0; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer__col address { font-style: normal; display: grid; gap: 0.55rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); padding-block: 1.5rem;
  border-top: 1px solid color-mix(in oklch, var(--paper) 14%, transparent);
  font-size: var(--fs-sm);
}

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound .btn-row { justify-content: center; }
.notfound__mark { width: 160px; margin: 0 auto 2rem; }
.notfound p { margin-inline: auto; }

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .cta, .map, .nav-toggle { display: none !important; }
  .hero, .page-head { background: none; color: #000; }
  .hero h1, .page-head h1 { color: #000; }
}
