/* ==========================================================================
   Bauservice Kuenzer – Stylesheet
   Tokens aus dem Designsystem „Bauservice Kuenzer“ (Fundament):
   Primitive -> Semantik -> Komponente
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, kein Google-CDN) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat Alternates"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-alternates-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Montserrat Alternates"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-alternates-latin-400.woff2") format("woff2"); }

:root {
  /* Primitive */
  --blue-500: #3f67a5;
  --blue-600: #355d9b;
  --blue-700: #1e4a8c;
  --white: #ffffff;
  --grey-50: #f8f8f8;
  --grey-150: #e6e6e6;
  --grey-500: #888888;
  --grey-700: #555555;
  --grey-950: #111111;

  /* Semantik */
  --surface: var(--white);
  --surface-alt: var(--grey-50);
  --ink: var(--grey-950);
  --ink-muted: var(--grey-700);
  --line: var(--grey-150);
  --line-on-blue: rgba(255, 255, 255, 0.28);
  --on-blue: var(--white);
  --brand: var(--blue-600);
  --brand-strong: var(--blue-700);
  --photo-scrim: rgba(15, 20, 30, 0.38);
  --focus-ring: var(--blue-700);

  --font-display: "Montserrat Alternates", "Montserrat", system-ui, sans-serif;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: clamp(48px, 7vw, 96px);
  --space-8: clamp(80px, 10vw, 140px);
  --container: 1170px;
  --gutter: clamp(16px, 4vw, 24px);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 20px 44px rgba(30, 74, 140, 0.18);
  --shadow-float: 0 24px 56px rgba(0, 0, 0, 0.10);
  --stroke-icon: 1.5px;
  --stroke-circle: 1px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pattern-on-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='%23000000' fill-opacity='0.035' d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/svg%3E");
  --pattern-on-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='%23ffffff' fill-opacity='0.07' d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/svg%3E");

  /* Komponente */
  --button-height: 54px;
  --button-bg: var(--brand);
  --button-bg-hover: var(--brand-strong);
  --nav-height: 128px;
  --nav-height-compact: 80px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height-compact); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 700; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { 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: 16px; top: -100px; z-index: 100; background: var(--surface); color: var(--ink); padding: 12px 20px; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-float); }
.skip-link:focus { top: 16px; }

.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: var(--stroke-icon); fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Würfelmuster aus dem Designsystem */
.pattern { background-color: var(--surface-alt); background-image: var(--pattern-on-light); }
.pattern-blue { background-color: var(--brand); background-image: var(--pattern-on-blue); }

/* ---------- Typografie ---------- */
.h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 2.4vw + 14px, 46px); line-height: 1.22; letter-spacing: 0.5px; color: var(--brand-strong); }
.eyebrow { font-family: var(--font-display); font-size: 15px; line-height: 20px; letter-spacing: 0.45em; color: var(--ink-muted); margin-bottom: var(--space-4); }
.intro { font-size: 16px; line-height: 24px; margin-top: var(--space-4); }
.intro strong { color: var(--brand-strong); }
.image-note { margin-top: var(--space-3); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.image-note a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.image-note a:hover { text-decoration-thickness: 2px; }
.section { padding: var(--space-8) 0; }
.section-head { max-width: 720px; margin: 0 auto var(--space-6); text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--button-height); padding: 0 44px; border-radius: var(--radius-pill); border: var(--stroke-circle) solid transparent; font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease-out), box-shadow .2s; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--button-bg); color: var(--on-blue); }
.btn-primary:hover { background: var(--button-bg-hover); box-shadow: 0 10px 24px rgba(30, 74, 140, 0.28); }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: var(--surface-alt); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.btn-muted { background: var(--grey-700); color: var(--on-blue); }
.btn-muted:hover { background: var(--grey-950); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--surface); }
.btn-sm { min-height: 38px; padding: 0 var(--space-4); font-size: 14px; }
.btn-pair { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-pair-center { justify-content: center; margin-top: var(--space-6); padding: 0 var(--gutter); }

/* Pfeil-Buttons */
.arrow { width: 54px; height: 54px; border-radius: var(--radius-circle); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: var(--stroke-circle) solid var(--surface); background: var(--surface); color: var(--ink); padding: 0; transition: background-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.arrow:hover { transform: scale(1.06); }
.arrow:active { transform: scale(0.96); }
.arrow-ghost { background: transparent; color: var(--on-blue); box-shadow: none; }
.arrow-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* Icon-Kreis */
.icon-circle { --size: 96px; width: var(--size); height: var(--size); display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: var(--radius-circle); border: var(--stroke-circle) solid currentColor; color: inherit; transition: background-color .25s, color .25s, border-color .25s; }
.icon-circle .icon { width: 44%; height: 44%; }
.icon-circle-80 { --size: 80px; }
.icon-circle-44 { --size: 44px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-height); color: var(--on-blue); transition: height .35s var(--ease-out), background-color .35s, color .35s, box-shadow .35s; --focus-ring: var(--on-blue); }
.site-header-inner { max-width: 1360px; height: 100%; margin: 0 auto; padding: 0 clamp(16px, 4vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.site-header.is-scrolled, .page-sub .site-header { height: var(--nav-height-compact); background: rgba(255, 255, 255, 0.97); color: var(--ink); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07); --focus-ring: var(--blue-700); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-scrolled, .page-sub .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); } }

.brand { display: inline-flex; align-items: center; flex: none; color: inherit; text-decoration: none; line-height: 1; }
.brand-logo { display: block; width: auto; height: 40px; transform-origin: left center; transition: transform .35s var(--ease-out); }
.is-scrolled .brand, .page-sub .brand { color: var(--brand-strong); }
.is-scrolled .brand-logo, .page-sub .brand-logo { transform: scale(0.8); }

.main-nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.main-nav ul a { position: relative; display: inline-block; padding: 10px 0; font-size: 16px; line-height: 20px; font-weight: 500; text-decoration: none; }
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.main-nav ul a:hover::after, .main-nav ul a[aria-current]::after { transform: scaleX(1); }
.nav-mobile-phone { display: none; }

.phone-pill { display: inline-flex; align-items: center; white-space: nowrap; flex: none; gap: var(--space-2); height: 46px; padding: 0 26px; border: 1px solid currentColor; border-radius: var(--radius-pill); font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s; }
.phone-pill .icon { width: 18px; height: 18px; }
.phone-pill:hover { background: var(--on-blue); color: var(--brand-strong); border-color: var(--on-blue); }
.is-scrolled .phone-pill, .page-sub .phone-pill { background: var(--brand); color: var(--on-blue); border-color: var(--brand); }
.is-scrolled .phone-pill:hover, .page-sub .phone-pill:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-blue); }

.menu-toggle { display: none; position: relative; z-index: 2; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: var(--radius-circle); background: transparent; color: inherit; cursor: pointer; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { position: absolute; left: 50%; width: 18px; height: 1.5px; margin-left: -9px; background: currentColor; transition: transform .3s var(--ease-out), opacity .2s; }
.menu-toggle-bars { top: 50%; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.menu-toggle-bars::before { transform: translateY(-6px); }
.menu-toggle-bars::after { transform: translateY(6px); }
.menu-open .menu-toggle-bars { background: transparent; }
.menu-open .menu-toggle-bars::before { transform: rotate(45deg); background: var(--on-blue); }
.menu-open .menu-toggle-bars::after { transform: rotate(-45deg); background: var(--on-blue); }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; place-items: center; min-height: clamp(600px, 100svh, 920px); padding: calc(var(--nav-height) + 24px) var(--gutter) 96px; color: var(--on-blue); text-align: center; overflow: hidden; isolation: isolate; --focus-ring: var(--on-blue); }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: hero-settle 2.4s var(--ease-out) both; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 58% 48% at 50% 54%, rgba(15, 20, 30, 0.46), transparent 72%),
  linear-gradient(180deg, rgba(15, 20, 30, 0.5) 0%, var(--photo-scrim) 30%, var(--photo-scrim) 70%, rgba(15, 20, 30, 0.55) 100%); }
.hero-content { max-width: 760px; }
.hero-title { font-family: var(--font-sans); font-weight: 600; font-size: clamp(32px, 2.6vw + 14px, 52px); line-height: 1.15; letter-spacing: -0.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.hero-text { max-width: 560px; margin: var(--space-4) auto 0; font-size: 16px; line-height: 24px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3); }
.hero .btn-pair { justify-content: center; margin-top: var(--space-5); }
/* Eigener dunkler Grund: über der hellen Fassade läge weißer Text sonst unter 4,5:1 */
.hero-call { display: inline-block; margin-top: var(--space-4); padding: 7px 18px; font-size: 15px; line-height: 22px; background: rgba(15, 20, 30, 0.36); border: 1px solid var(--line-on-blue); border-radius: var(--radius-pill); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.hero-call a { color: inherit; font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-thickness .2s; }
.hero-call a:hover { text-decoration-thickness: 2px; }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ---------- Gewerke-Leiste ---------- */
.trade-strip { background: var(--surface); border-bottom: 1px solid var(--line); padding: 30px 0; }
.trade-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; }
.trade-list li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; line-height: 24px; color: var(--ink-muted); white-space: nowrap; }
.trade-list .icon { color: var(--grey-500); width: 22px; height: 22px; }

/* ---------- Über mich ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.collage { position: relative; aspect-ratio: 540 / 480; }
.collage img { position: absolute; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.collage-tall { left: 0; top: 0; width: 53%; height: 100%; }
.collage-a { left: 55.5%; top: 16%; width: 38%; height: 41%; }
.collage-b { left: 55.5%; top: 59%; width: 44.5%; height: 41%; }
.about-copy p:not(.eyebrow, .image-note) { font-size: 16px; line-height: 25px; margin-top: var(--space-4); }
.about-copy .h2 + p { margin-top: var(--space-5); }
.about-copy strong { color: var(--brand-strong); }
.about-copy .btn { margin-top: var(--space-5); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) var(--space-7); margin-top: var(--space-8); padding-left: 40px; }
.feature { color: var(--brand-strong); max-width: 320px; }
.feature-title { position: relative; font-size: 18px; line-height: 24px; font-weight: 600; margin: var(--space-5) 0 var(--space-3); }
.feature-title::before { content: ""; position: absolute; left: -40px; top: 11px; width: 24px; height: 2px; background: var(--brand-strong); transition: width .4s var(--ease-out); }
.feature:hover .feature-title::before { width: 32px; }
.feature p { color: var(--ink); }

/* ---------- Leistungen auf Foto ---------- */
.service-stage { position: relative; padding: var(--space-8) 0; isolation: isolate; overflow: hidden; }
.stage-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.service-stage .stage-img { object-position: 70% 50%; }
.service-panel { max-width: 700px; padding: var(--space-6); background: var(--brand); color: var(--on-blue); border-radius: var(--radius-md); box-shadow: var(--shadow-float); --focus-ring: var(--on-blue); }
.service-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 1.6vw + 18px, 40px); line-height: 1.2; }
.service-intro { margin: var(--space-4) 0 var(--space-5); font-size: 16px; line-height: 24px; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: var(--space-5); padding: 0 var(--space-3); }
.service-list li { position: relative; padding: 10px 0 10px var(--space-4); font-size: 15px; line-height: 20px; border-bottom: 1px solid var(--line-on-blue); }
.service-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1.5px; background: rgba(255, 255, 255, 0.75); }

/* ---------- Einsatzbereiche ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.cap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; aspect-ratio: 220 / 245; padding: var(--space-3); background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); font-size: 18px; line-height: 24px; text-align: center; transition: background-color .25s, color .25s, transform .3s var(--ease-out), box-shadow .3s; }
.cap:hover { background: var(--brand); color: var(--on-blue); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

/* ---------- Schwerpunkte-Karussell ---------- */
.projects { overflow: hidden; }
.carousel { --slide-w: min(800px, calc(100vw - 220px)); --gap: 40px; position: relative; touch-action: pan-y; }
.carousel-track { display: grid; }
.carousel-slide { grid-area: 1 / 1; justify-self: center; width: var(--slide-w); transform: translateX(calc(var(--o, 0) * (var(--slide-w) + var(--gap)))); transition: transform .7s var(--ease-out), opacity .7s var(--ease-out), visibility 0s linear 0s; }
/* Nachbarfolien: nur das Bild abblenden und die Karte ausblenden. Halbtransparenter Text fiele unter 4,5:1. */
.carousel-slide[data-pos="near"] .project-img { opacity: 0.5; }
.carousel-slide .project-img, .carousel-slide .project-card { transition: opacity .7s var(--ease-out), visibility 0s linear 0s; }
.carousel-slide[data-pos="near"] .project-card,
.carousel-slide[data-pos="far"] .project-card { opacity: 0; visibility: hidden; transition: opacity .7s var(--ease-out), visibility 0s linear .7s; }
.carousel-slide[data-pos="far"] { opacity: 0; visibility: hidden; transition: transform .7s var(--ease-out), opacity .7s var(--ease-out), visibility 0s linear .7s; }
.carousel-slide.no-anim, .carousel-slide.no-anim .project-img, .carousel-slide.no-anim .project-card { transition: none; }
html:not(.js) .carousel-track { gap: var(--space-6); }
html:not(.js) .carousel-slide { grid-area: auto; transform: none; }
html:not(.js) .carousel-controls, html:not(.js) .quote-nav { display: none; }
.carousel-slide[data-pos="near"] { cursor: pointer; }

.project { position: relative; padding-bottom: 80px; }
.project-img { width: 100%; aspect-ratio: 800 / 440; object-fit: cover; border-radius: var(--radius-md); background: var(--surface-alt); }
.project-card { position: absolute; left: 20px; right: 20px; bottom: 0; padding: 32px var(--space-5) var(--space-5); background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-float); }
.project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.project-title { font-size: 22px; line-height: 28px; font-weight: 700; margin-bottom: var(--space-2); }
.project-meta { font-size: 14px; line-height: 20px; color: var(--brand-strong); margin-bottom: var(--space-4); }
.project-meta span { margin: 0 var(--space-2); }

.carousel-controls { position: absolute; inset: calc(var(--slide-w) * 0.275 - 27px) 0 auto; height: 0; pointer-events: none; }
.carousel-controls .arrow { position: absolute; top: 0; pointer-events: auto; }
.carousel-controls .arrow-prev { left: calc((100% - var(--slide-w)) / 4 - var(--gap) / 2 - 27px); }
.carousel-controls .arrow-next { right: calc((100% - var(--slide-w)) / 4 - var(--gap) / 2 - 27px); }

/* ---------- Versprechen ---------- */
.quote-stage { position: relative; padding: var(--space-8) var(--gutter); isolation: isolate; overflow: hidden; color: var(--on-blue); --focus-ring: var(--on-blue); }
.quote-stage .stage-img { object-position: 50% 60%; }
.stage-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 20, 30, 0.5), rgba(15, 20, 30, 0.42) 50%, rgba(15, 20, 30, 0.6)); }
.quote { max-width: 620px; margin: 0 auto; text-align: center; }
.quote .h2 { color: var(--on-blue); }
.quote-author { margin-top: var(--space-5); }
.quote-name { display: block; font-size: 18px; line-height: 24px; font-weight: 500; }
.quote-role { display: block; margin-top: var(--space-1); font-size: 14px; line-height: 20px; font-weight: 600; opacity: 0.9; }
.quote-slides { display: grid; margin-top: var(--space-5); }
.quote-slide { grid-area: 1 / 1; font-size: 17px; line-height: 28px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js .quote-slide { opacity: 0; visibility: hidden; transform: translateY(8px); }
.js .quote-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.quote-nav { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-5); }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.gallery-grid li { overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gallery-grid li:hover img { transform: scale(1.05); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); height: 100%; padding: 48px var(--space-4); background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); text-align: center; text-decoration: none; transition: background-color .25s, color .25s, transform .3s var(--ease-out), box-shadow .3s; }
.contact-card .icon-circle { --size: 80px; margin-bottom: var(--space-2); }
.contact-label { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-muted); transition: color .25s; }
.contact-value { font-size: 18px; line-height: 26px; font-weight: 600; overflow-wrap: anywhere; }
.contact-card:hover { background: var(--brand); color: var(--on-blue); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.contact-card:hover .contact-label { color: var(--on-blue); }
.contact-card:active { transform: translateY(-1px); }
/* Google-Profil und Bewertung: einfache Links, nichts eingebettet (siehe Datenschutz, Abschnitt 5) */
.contact-google { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-6); text-align: center; }
.contact-google-text { max-width: 500px; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.contact-google-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.contact-google .btn { background: var(--surface); }
.contact-google .btn:hover { background: var(--ink); }
.contact-google .icon { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.site-footer { color: var(--on-blue); text-align: center; padding: var(--space-8) 0 var(--space-6); --focus-ring: var(--on-blue); }
.footer-brand { display: inline-block; text-decoration: none; }
.footer-brand img { display: block; width: auto; height: clamp(112px, 6vw + 64px, 150px); }
.footer-tag { font-family: var(--font-display); font-size: 20px; line-height: 28px; margin: var(--space-4) 0 var(--space-6); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; row-gap: var(--space-2); font-size: 16px; }
.footer-nav a { text-decoration: none; padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease-out); }
.footer-nav a:hover { background-size: 100% 1px; }
.footer-nav a + a::before { content: "|"; display: inline-block; margin: 0 22px; opacity: 0.7; }
.footer-copy { font-size: 14px; line-height: 20px; margin: var(--space-4) 0 var(--space-5); }
.footer-contact { display: flex; justify-content: center; gap: var(--space-2); }
.footer-contact .icon-circle { text-decoration: none; }
.footer-contact .icon-circle:hover { background: var(--on-blue); color: var(--brand-strong); border-color: var(--on-blue); }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-band { padding: calc(var(--nav-height-compact) + var(--space-6)) var(--gutter) var(--space-6); color: var(--on-blue); text-align: center; }
.page-band .eyebrow { color: var(--on-blue); opacity: 0.9; }
.page-band h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 2.4vw + 18px, 52px); line-height: 1.2; }
.legal { max-width: 800px; padding-top: var(--space-7); padding-bottom: var(--space-8); }
.legal h2 { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--brand-strong); margin: var(--space-5) 0 var(--space-3); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 16px; line-height: 24px; font-weight: 700; margin: var(--space-4) 0 var(--space-2); }
.legal p, .legal li { font-size: 16px; line-height: 26px; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: var(--space-3); }
.legal ul { list-style: disc; padding-left: 22px; margin-top: var(--space-2); }
.legal a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal a:hover { text-decoration-thickness: 2px; }
.legal address { font-style: normal; }
.notfound .btn-pair { margin-top: var(--space-5); }
.legal .note { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; line-height: 22px; }

/* ---------- Einblend-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .cap { gap: 24px; font-size: 16px; }
  .cap .icon-circle { --size: 80px; }
}

@media (max-width: 1099px) {
  :root { --nav-height: 92px; --nav-height-compact: 72px; }
  .brand-logo { height: 34px; }
  .is-scrolled .brand-logo, .page-sub .brand-logo { transform: scale(0.88); }
  .menu-toggle { display: inline-flex; }
  .site-header-inner { gap: var(--space-3); }
  .brand { margin-right: auto; }
  .main-nav { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; justify-content: safe center; align-items: center; gap: var(--space-5); padding: calc(var(--nav-height) + 8px) var(--gutter) var(--space-5); overflow-y: auto; overscroll-behavior: contain; color: var(--on-blue); background-color: var(--brand); background-image: var(--pattern-on-blue); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility 0s linear .3s; --focus-ring: var(--on-blue); }
  .menu-open .main-nav { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-out); }
  .main-nav ul { flex-direction: column; align-items: center; gap: var(--space-3); }
  .main-nav ul a { font-family: var(--font-display); font-weight: 300; font-size: 30px; line-height: 40px; }
  .nav-mobile-phone { display: inline-flex; }
  .menu-open .menu-toggle { color: var(--on-blue); border-color: var(--on-blue); }
  .menu-open .brand { position: relative; z-index: 2; color: var(--on-blue); }
  .menu-open .phone-pill { visibility: hidden; }
  .site-header.is-scrolled, .page-sub .site-header { backdrop-filter: none; background: rgba(255, 255, 255, 0.98); }
  .menu-open .site-header { background: transparent; box-shadow: none; --focus-ring: var(--on-blue); }
}

@media (max-width: 1099px) and (max-height: 520px) {
  .main-nav { gap: var(--space-3); }
  .main-nav ul { gap: 0; }
  .main-nav ul a { font-size: 24px; line-height: 34px; }
}

@media (max-width: 991px) {
  /* Sieben Links passen erst ab ~980 px in eine Zeile: darunter ohne Trennstriche, sonst beginnt die zweite Zeile mit „|“ */
  .footer-nav { column-gap: 22px; }
  .footer-nav a + a::before { content: none; }
  .about-grid { grid-template-columns: 1fr; }
  .collage { max-width: 560px; width: 100%; margin: 0 auto; }
  .features { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .feature { max-width: none; }

  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap { aspect-ratio: auto; flex-direction: row; justify-content: flex-start; gap: var(--space-3); padding: 18px 20px; text-align: left; }
  .cap .icon-circle { --size: 56px; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .contact-card { padding: 36px var(--space-4); }
}

@media (max-width: 899px) {
  .carousel { --slide-w: calc(100vw - 2 * var(--gutter)); --gap: 16px; }
  .carousel-slide[data-pos="near"] { opacity: 0; visibility: hidden; transition: transform .7s var(--ease-out), opacity .7s var(--ease-out), visibility 0s linear .7s; }
  .carousel-controls { position: static; height: auto; display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-4); pointer-events: auto; }
  .carousel-controls .arrow { position: static; border-color: var(--line); box-shadow: none; }
  .carousel-controls .arrow:hover { border-color: var(--ink); }
  .project { padding-bottom: 0; }
  .project-card { position: relative; left: auto; right: auto; margin: -36px 12px 0; padding: var(--space-4); }
}

@media (max-width: 767px) {
  .phone-pill { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .phone-pill span { display: none; }
  .hero { padding-bottom: 72px; min-height: clamp(560px, 92svh, 760px); }
  .hero-scrim::after { content: ""; position: absolute; inset: 0; background: rgba(15, 20, 30, 0.26); }
  .hero .btn-pair { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .trade-strip { padding: 24px 0; }
  .trade-list { gap: 14px 22px; }
  .trade-list li { font-size: 16px; }
  .eyebrow { letter-spacing: 0.28em; }
  .service-stage { padding: 0 0 var(--space-7); }
  .service-stage .stage-img { position: relative; inset: auto; height: 320px; z-index: auto; }
  .service-panel { position: relative; margin-top: -96px; padding: var(--space-5) var(--space-4); }
  .service-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; padding: 0; }
  .project-card { display: flex; flex-direction: column; }
  .project-head { display: contents; }
  .project-head .btn { order: 2; align-self: flex-start; margin-top: var(--space-4); }
  .contact-card { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-3); row-gap: 2px; align-items: center; padding: 20px; text-align: left; }
  .contact-card .icon-circle { --size: 56px; grid-row: 1 / span 2; margin: 0; }
  .contact-label { align-self: end; }
  .contact-value { align-self: start; font-size: 16px; line-height: 22px; }
  .contact-value br { display: none; }
}

@media (max-width: 479px) {
  .br-desktop { display: none; }
  .cap { flex-direction: column; justify-content: center; gap: 12px; padding: 20px 12px; text-align: center; font-size: 15px; line-height: 20px; }
  .cap .icon-circle { --size: 52px; }
  .btn { padding: 0 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
