/* ==========================================================================
   Malereibetrieb Ralph Richter — Design System
   Layout & Rhythmus nach Referenz mcintoshpainters.com.au
   Farbwelt aus dem Kundenlogo (#102C91) — Weiß / Blau
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Marke — direkt aus dem Logo abgeleitet */
  --brand:        #102C91;
  --brand-600:    #0D2478;
  --brand-700:    #0A1C5E;
  --brand-800:    #071445;
  --brand-300:    #4661C4;
  --brand-100:    #E6EAF7;
  --brand-050:    #F4F6FC;

  /* Neutrale */
  --heading:      #16224A;
  --body:         #333333;
  --muted:        #6B7280;
  --line:         #E2E5EE;
  --grey-050:     #F7F8FA;
  --grey-100:     #F1F1F1;
  --grey-200:     #EEEEEE;
  --white:        #FFFFFF;
  --dark:         #1B1F26;
  --dark-2:       #23282D;

  /* Typografie */
  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Maße */
  --container: 1140px;
  --gutter: 24px;
  --header-h: 96px;
  --topbar-h: 40px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
  /* clip statt hidden — hidden würde position: sticky im Header aushebeln */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  /* clip, nicht hidden — hidden macht den Body zum Scroll-Container
     und setzt damit position: sticky im Header außer Kraft */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.is-locked { overflow: hidden; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--brand); color: #fff; }

/* ---------- Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 88px; }
.section--tight { padding-block: 80px; }
.section--grey { background: var(--grey-100); }

/* ---------- Typo-Bausteine (Referenz-Duktus) ---------- */
/* Zweifarbige Überschrift: erste Hälfte dunkel, zweite Hälfte Markenblau */
.h-section {
  font-size: clamp(23px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.14;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--heading);
}
.h-section .accent { color: var(--brand); }

/* Gesperrte Kleinschrift unter der Überschrift */
.eyebrow {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--heading);
  margin-top: 10px;
}

.lead { font-size: 16px; line-height: 1.8; }

/* Pfeil-Textlink der Referenz */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  transition: color .3s var(--ease-out), gap .3s var(--ease-out);
}
.arrow-link::after {
  content: "";
  width: 7px; height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.arrow-link:hover { color: var(--brand); gap: 18px; }
.arrow-link--light { color: #fff; }
.arrow-link--light:hover { color: #fff; opacity: .8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--brand-700);
  transform: translateY(101%);
  transition: transform .4s var(--ease-out);
  z-index: -1;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 44, 145, .28); }
.btn:hover::before { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  padding: 15px 32px;
}
.btn--ghost::before { background: var(--brand); }
.btn--ghost:hover { color: #fff; }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.75);
  padding: 13px 28px;
  font-size: 14px;
  border-radius: 4px;
}
.btn--outline-light::before { background: #fff; }
.btn--outline-light:hover { color: var(--brand); border-color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
  background: var(--brand);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  letter-spacing: .02em;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 30;
}
.topbar .container { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.topbar a { transition: opacity .25s; display: inline-flex; align-items: center; gap: 7px; padding-block: 10px; }
.topbar a:hover { opacity: .75; }
.topbar .sep { opacity: .45; }
.topbar svg { width: 14px; height: 14px; flex: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), height .4s var(--ease-out);
}
.site-header.is-stuck {
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 6px 30px rgba(22, 34, 74, .09);
  height: 78px;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 54px; width: auto; transition: height .4s var(--ease-out); }
.site-header.is-stuck .brand img { height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .01em;
  color: var(--heading);
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--heading);
  position: relative;
  padding-block: 6px;
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .38s var(--ease-out);
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--brand); }

.header-cta {
  flex: none;
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 4px;
}

/* Heller Header — für Unterseiten, deren Seitenkopf blau ist.
   Sobald der Header beim Scrollen andockt, wird er wieder normal. */
.site-header--light:not(.is-stuck) .brand-name,
.site-header--light:not(.is-stuck) .nav a { color: #fff; }
.site-header--light:not(.is-stuck) .brand-sub { color: rgba(255,255,255,.78); }
.site-header--light:not(.is-stuck) .brand img { filter: brightness(0) invert(1); }
.site-header--light:not(.is-stuck) .nav a::after { background: #fff; }
.site-header--light:not(.is-stuck) .nav a:hover { color: #fff; opacity: .82; }
.site-header--light:not(.is-stuck) .nav a.is-active { color: #fff; }
.site-header--light:not(.is-stuck) .burger span { background: #fff; }
.site-header--light:not(.is-stuck) .header-cta {
  background: #fff;
  color: var(--brand);
}
.site-header--light:not(.is-stuck) .header-cta::before { background: var(--brand-100); }
.site-header--light:not(.is-stuck) .header-cta:hover { color: var(--brand-700); box-shadow: 0 12px 28px rgba(0,0,0,.22); }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header .burger.is-open span, .burger.is-open span { background: var(--heading); }

/* Bei offenem Menü ist der Body fixiert — der Header verlöre dadurch
   seine Klebrigkeit. Also explizit an den Viewport pinnen und über
   das Overlay legen, damit das Schließkreuz erreichbar bleibt. */
body.nav-open .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(255,255,255,.97);
  box-shadow: 0 6px 30px rgba(22, 34, 74, .09);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 70;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .5s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--heading);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.btn {
  margin-top: 26px;
  align-self: flex-start;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  padding: 17px 34px;
  border-bottom: 0;
}

/* ==========================================================================
   HERO — Text links, Video rechts (vollständig sichtbar)
   ========================================================================== */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 76px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}

/* Helle Wandtextur, nach rechts weich auslaufend — keine harte Naht */
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--grey-100) center/cover no-repeat;
  z-index: 0;
  -webkit-mask-image: linear-gradient(103deg, #000 46%, transparent 92%);
  mask-image: linear-gradient(103deg, #000 46%, transparent 92%);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 48%, rgba(255,255,255,.62) 100%);
}

.hero .container { position: relative; z-index: 2; }

/* Blauer Abschluss unten links */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  height: 9px;
  background: var(--brand);
  border-radius: 0 9px 9px 0;
  z-index: 3;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.hero__copy { max-width: 620px; }

.hero__kicker {
  font-family: var(--font-head);
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 6px;
}

.hero h1 {
  font-size: clamp(29px, 2.8vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
/* „in" bewusst klein und leiser — Kundenwunsch */
.hero h1 .h1-in {
  text-transform: lowercase;
  font-size: .62em;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--heading);
}

.hero__sub {
  margin-top: 24px;
  max-width: 32rem;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
}

.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; max-width: 560px; }

.hero__trust {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  max-width: 470px;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
}
.hero__trust li { display: flex; align-items: center; gap: 9px; }
.hero__trust svg { width: 17px; height: 17px; color: var(--brand); flex: none; }

/* ---------- Videokarte ---------- */
.hero__media {
  position: relative;
  z-index: 1;
}

/* Blaue Fläche als Akzent hinter der Karte — sitzt am Rahmen und
   beschneidet das Video nicht mehr. */
.player-frame { position: relative; }
.player-frame::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  background: var(--brand);
  border-radius: 4px;
  z-index: 0;
}

/* ==========================================================================
   VIDEO-PLAYER
   ========================================================================== */
.player {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 26px 64px rgba(7,20,69,.28);
  user-select: none;
  -webkit-user-select: none;
}

/* 16:9-Quelle in 16:9-Bühne: das Bild wird nirgends beschnitten */
.player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* --- Poster-Zustand (vor dem ersten Start) --- */
.player__poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: center/cover no-repeat;
  cursor: pointer;
  transition: opacity .45s var(--ease-out), visibility .45s;
}
.player__poster::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(16,44,145,.34) 0%, rgba(7,20,69,.12) 45%, rgba(7,20,69,.55) 100%);
}
.player.is-started .player__poster { opacity: 0; visibility: hidden; }

.player__play {
  position: relative;
  z-index: 1;
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.95);
  color: var(--brand);
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(7,20,69,.34);
  transition: transform .45s var(--ease-out), background .3s;
}
.player__play svg { width: 26px; height: 26px; margin-left: 5px; }
.player__play::before {
  content: "";
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  animation: pulse-ring 2.6s var(--ease-out) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(.86); opacity: .9; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}
.player__poster:hover .player__play { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .player__play::before { animation: none; }
}

.player__label {
  position: absolute;
  left: 24px; bottom: 22px;
  z-index: 1;
  color: #fff;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
  pointer-events: none;
}
.player__label span {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 600;
  opacity: .82;
  text-transform: none;
}

/* --- Klickfläche fürs Doppelklick-Spulen --- */
.player__surface {
  position: absolute;
  inset: 0 0 62px 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  cursor: pointer;
}
.player__seek-zone { position: relative; }

/* Sprung-Anzeige „10 Sekunden" wie bei YouTube */
.player__ripple {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 4px;
  align-content: center;
  color: #fff;
  background: rgba(0,0,0,.42);
  opacity: 0;
  pointer-events: none;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.player__seek-zone--back  .player__ripple { border-radius: 0 50% 50% 0 / 0 50% 50% 0; }
.player__seek-zone--fwd   .player__ripple { border-radius: 50% 0 0 50% / 50% 0 0 50%; }
.player__ripple svg { width: 30px; height: 30px; }
.player__ripple.is-on { animation: seek-flash .6s var(--ease-out); }
@keyframes seek-flash {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  100% { opacity: 0; }
}

/* --- Steuerleiste --- */
.player__ui {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  padding: 30px 14px 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.78) 62%);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.player.is-started .player__ui,
.player.is-paused  .player__ui { opacity: 1; transform: none; pointer-events: auto; }
.player.is-started.is-idle .player__ui { opacity: 0; transform: translateY(6px); }
.player.is-paused .player__ui { opacity: 1 !important; transform: none !important; }

/* Fortschrittsleiste */
.player__bar {
  position: relative;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.player__bar-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 3px;
  background: rgba(255,255,255,.28);
  overflow: hidden;
  transition: height .18s var(--ease-out);
}
.player__bar:hover .player__bar-track,
.player__bar.is-dragging .player__bar-track { height: 6px; }
.player__bar-buffer,
.player__bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 3px;
}
.player__bar-buffer { background: rgba(255,255,255,.32); }
.player__bar-fill   { background: var(--brand-300); }
.player__bar-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%) scale(0);
  transition: transform .18s var(--ease-out);
  pointer-events: none;
}
.player__bar:hover .player__bar-knob,
.player__bar.is-dragging .player__bar-knob { transform: translateY(-50%) scale(1); }

/* Buttonzeile */
.player__row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.player__btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  opacity: .92;
  transition: opacity .2s, background .2s;
}
.player__btn:hover { opacity: 1; background: rgba(255,255,255,.14); }
.player__btn svg { width: 20px; height: 20px; }
.player__btn--play svg { width: 22px; height: 22px; }
.player__time {
  margin-left: 8px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.player__time i { opacity: .6; font-style: normal; margin: 0 3px; }
.player__spacer { flex: 1; }

/* Lautstärke — Regler fährt beim Hover aus */
.player__volume { display: flex; align-items: center; }
.player__volume input {
  width: 0;
  opacity: 0;
  margin: 0;
  accent-color: #fff;
  cursor: pointer;
  transition: width .25s var(--ease-out), opacity .25s var(--ease-out), margin .25s var(--ease-out);
}
.player__volume:hover input,
.player__volume:focus-within input { width: 74px; opacity: 1; margin: 0 8px 0 2px; }

/* Icons umschalten je nach Zustand */
.player .i-pause, .player .i-unmute { display: none; }
.player.is-playing .i-play  { display: none; }
.player.is-playing .i-pause { display: block; }
.player.is-muted   .i-mute  { display: none; }
.player.is-muted   .i-unmute{ display: block; }

/* Bedienhinweis unter der Karte */
.player__hint {
  position: relative;
  z-index: 1;
  margin: 40px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--heading);
  text-align: right;
  /* verteilt die Zeilen gleichmäßig, statt ein Wort allein zu lassen */
  text-wrap: balance;
}

/* Im Vollbild bleibt das Seitenverhältnis dem Bildschirm überlassen */
.player:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.player:fullscreen video { object-fit: contain; }
.player:fullscreen .player__ui { padding: 40px 26px 20px; }

/* ==========================================================================
   VERTRAUENS-STREIFEN (Awards-Zeile der Referenz)
   ========================================================================== */
.trustbar { padding-block: 74px; background: #fff; }
.trustbar__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 200px;
  align-items: center;
  gap: 60px;
}
.trust-badge {
  border: 2px solid var(--brand);
  border-radius: 6px;
  padding: 20px 22px;
  text-align: center;
}
.trust-badge__num {
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.trust-badge__label {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--heading);
  margin-top: 9px;
}
.trustbar h2 {
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.28;
}
.trustbar .eyebrow { margin-top: 14px; }

.seal {
  width: 168px; height: 168px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  justify-self: end;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(16,44,145,.26);
}
.seal span { display: block; }
.seal__top { font-family: var(--font-head); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.seal__mid { font-family: var(--font-head); font-size: 27px; font-weight: 800; line-height: 1.1; margin-block: 6px; }
.seal__bot { font-family: var(--font-head); font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; opacity: .85; }

/* ==========================================================================
   WILLKOMMEN
   ========================================================================== */
.welcome__head { max-width: 60ch; }
.welcome__body { max-width: 68ch; margin-top: 28px; }
.welcome__body p { font-size: 16px; }
.welcome .arrow-link { margin-top: 34px; }

/* ==========================================================================
   LEISTUNGSKARTEN (2 große Bildkarten der Referenz)
   ========================================================================== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.service-card {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 46px 44px 44px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.service-card__img {
  position: absolute; inset: 0;
  z-index: -2;
  background: var(--brand-800) center/cover no-repeat;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-out);
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7,20,69,.20) 0%, rgba(7,20,69,.60) 44%, rgba(7,20,69,.90) 72%, rgba(7,20,69,.95) 100%);
  transition: background .55s var(--ease-out);
}
.service-card:hover .service-card__img { transform: scale(1.09); }
.service-card:hover::after { background: linear-gradient(180deg, rgba(16,44,145,.32) 0%, rgba(10,28,94,.66) 52%, rgba(7,20,69,.92) 100%); }

.service-card h3 {
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}
.service-card p.service-card__eyebrow {
  font-family: var(--font-head);
  line-height: 1.5;
  max-width: none;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 9px;
}
.service-card p {
  margin-top: 22px;
  font-size: 15.5px;
  line-height: 1.78;
  color: rgba(255,255,255,.97);
  max-width: 40ch;
}
.service-card .arrow-link { margin-top: 26px; color: #fff; }

/* ==========================================================================
   WARUM WIR (Bild links, Textblock rechts mit grauer Fläche)
   ========================================================================== */
.why {
  position: relative;
  padding-block: 88px;
  /* So weit ragt das graue Panel über den Container hinaus */
  --bleed: calc((100vw - var(--container)) / 2 + var(--gutter));
}
.why__grid {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 0 58px;
  /* start, nicht center: das graue Panel schiebt sich von unten
     unter das Raster — zentrierter Text rutschte darunter */
  align-items: start;
}
.why__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom-right-radius: 110px;
  z-index: 2;
}
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__media--page { aspect-ratio: 4 / 3; border-bottom-right-radius: 72px; align-self: center; }
.why__content { padding-top: 6px; }
.why__content .lead { margin-top: 26px; }

/* Graue Fläche, die rechts unten hinter dem Bild liegt — wie in der Referenz:
   der Block schiebt sich unter das Bild, sein Text bleibt aber in der
   rechten Spalte, damit die Zeilen nicht zu lang werden. */
.why__panel {
  position: relative;
  margin-top: -200px;
  background: var(--grey-100);
  margin-right: calc(var(--bleed) * -1);
  display: grid;
  /* 100% enthält hier den Anschnitt — den erst abziehen, dann 46 % */
  grid-template-columns: calc((100% - var(--bleed)) * 0.46) 1fr;
  gap: 0 58px;
}
.why__panel::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: 100%;
  width: 62vw;
  background: var(--grey-100);
}
.why__panel-inner {
  grid-column: 2;
  padding: 232px 48px 62px 0;
  max-width: 60ch;
}
.why__list { margin-top: 4px; display: grid; gap: 15px; }
.why__list li {
  position: relative;
  padding-left: 32px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body);
}
.why__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 15px; height: 9px;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}
.why__panel .arrow-link { margin-top: 30px; }

/* Kontaktblock in der Spalte, die unter dem Bild sonst leer bliebe */
.why__aside {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding: 0 40px 66px 0;
}
.why__aside-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 10px;
}
.why__aside-tel {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--heading);
  transition: color .3s var(--ease-out);
}
.why__aside-tel:hover { color: var(--brand); }
.why__aside-text {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--body);
  max-width: 30ch;
}

/* ==========================================================================
   TECHNIK / 5-Spalten-Icongrid
   ========================================================================== */
.technique__intro { max-width: 74ch; margin-top: 38px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 70px;
  border-top: 1px solid var(--line);
}
.feature {
  padding: 40px 28px 46px 0;
  border-right: 1px solid var(--line);
  padding-left: 28px;
}
.feature:first-child { padding-left: 0; }
.feature:last-child { border-right: 0; }
.feature__icon {
  width: 54px; height: 54px;
  color: var(--brand);
  margin-bottom: 26px;
}
.feature__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.feature h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 26px;
  line-height: 1.5;
}
.feature p { font-size: 14.5px; line-height: 1.76; color: var(--body); }

/* ==========================================================================
   PROJEKTE / GALERIE
   ========================================================================== */
.projects { background: var(--grey-100); padding-block: 88px; }
.projects__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 70px;
  align-items: start;
}
.projects__intro .arrow-link { margin-top: 34px; }
.projects__intro p { margin-top: 26px; font-size: 15.5px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery--page { grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* Alle Kacheln im gleichen Format — kein Panorama-Zuschnitt mehr,
   der Köpfe abschneidet (Kundenhinweis) */

/* Hochformat: zwei Rasterzeilen hoch, damit nichts gequetscht wird.
   Die Spezifität muss über .gal-item liegen — das steht weiter unten. */
.gallery .gal-item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery .gal-item--tall img { object-position: center 45%; }

/* Kachel, die statt eines Bildes auf die Google-Bewertungen führt */
.gal-cta {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 34px 38px;
  background: var(--brand);
  color: #fff;
  border-radius: 0;
  transition: background .35s var(--ease-out);
}
.gal-cta:hover { background: var(--brand-600); }
.gal-cta__eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .78;
}
.gal-cta__title {
  font-family: var(--font-head);
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.16;
}
.gal-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}
.gal-cta__link::after {
  content: "";
  width: 7px; height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.gal-cta:hover .gal-cta__link::after { transform: rotate(45deg) translate(3px, -3px); }

/* Hinweiszeile unter dem Raster */
.gallery__note {
  margin: 34px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Credo: Bild des Kunden + eigene Worte ---------- */
.credo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}

/* Bild vollständig, nur leicht abgerundet — eine große Eckenrundung
   würde Bildinhalt wegschneiden. Der blaue Versatz dahinter greift
   das Motiv aus dem Hero auf und bindet das Bild an die Seite. */
.credo__media { margin: 0; }
/* Der blaue Versatz bezieht sich nur auf das Bild — läge er am figure,
   würde die Bildunterschrift darauf zu liegen kommen */
.credo__frame { position: relative; }
.credo__shape {
  position: absolute;
  inset: 26px -26px -26px 26px;
  background: var(--brand);
  border-radius: 4px;
}
/* nur der Bildlink, nicht der Link in der Bildunterschrift */
.credo__frame a { display: block; position: relative; z-index: 1; }
.credo__media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(7, 20, 69, .16);
}
.credo__media figcaption {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  font-size: 12.5px;
  color: var(--muted);
}
.credo__media figcaption a { color: var(--brand); font-weight: 600; }
.credo__media figcaption a:hover { text-decoration: underline; }

.credo__label {
  margin: 30px 0 0;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Zwei Spalten, damit die sechs Punkte kompakt bleiben */
.credo__list {
  margin-top: 16px;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.credo__list li { font-size: 14.5px; }
.credo__list strong { color: var(--heading); font-weight: 700; }

.credo__quote {
  margin: 30px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--brand);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--heading);
}

/* ---------- Team ---------- */
.team {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.team__card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 4px;
  overflow: hidden;
  padding: 34px 0 30px;
}
/* Große Initiale als ruhiger Blickfang statt eines schlecht
   zugeschnittenen Portraits */
.team__initial {
  display: block;
  padding-inline: 28px;
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 800;
  line-height: .9;
  color: var(--brand-100);
  margin-bottom: 18px;
  user-select: none;
}
.team__card h3 {
  padding-inline: 28px;
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
}
.team__role {
  padding-inline: 28px;
  margin: 6px 0 14px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
}
.team__card > p:last-child {
  padding-inline: 28px;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Vorher / Nachher ---------- */
.ba { margin-bottom: 64px; }
.ba__head { max-width: 60ch; margin-bottom: 30px; }
.ba__head p { margin-top: 22px; }
.ba__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.ba__item { position: relative; aspect-ratio: 4 / 3; }
.ba__tag {
  position: absolute;
  left: 0; top: 18px;
  z-index: 2;
  padding: 8px 18px 8px 16px;
  background: rgba(7,20,69,.88);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 0 3px 3px 0;
  line-height: 1;
}
.ba__tag--after { background: var(--brand); }

.gal-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brand-800);
  cursor: pointer;
  display: block;
  line-height: 0;
}
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter .6s var(--ease-out);
}
.gal-item__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, rgba(7,20,69,0) 0%, rgba(7,20,69,.9) 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .45s var(--ease-out);
}
.gal-item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(16,44,145,.34);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.gal-item:hover img { transform: scale(1.09); }
.gal-item:hover::after { opacity: 1; }
.gal-item:hover .gal-item__cap { transform: translateY(0); opacity: 1; }

/* Lightbox Galerie */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(7,16,45,.95);
  backdrop-filter: blur(6px);
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 60px 24px;
  opacity: 0; visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: opacity .45s var(--ease-out), visibility .45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 1000px; text-align: center; transform: scale(.94); transition: transform .5s var(--ease-out); }
.lightbox.is-open figure { transform: scale(1); }
/* 60vh laesst Platz fuer Zaehler, Titel und Beschreibung darunter */
.lightbox img { width: min(92vw, 860px); max-height: 60vh; object-fit: contain; margin-inline: auto; border-radius: 4px; }
/* Bildunterschrift: Zaehler, Titel, Beschreibung */
.lightbox figcaption {
  display: block;
  max-width: 62ch;
  margin: 22px auto 0;
  text-align: left;
  color: rgba(255,255,255,.9);
  font-size: 15px;
}
.lightbox__count {
  display: block;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 9px;
}
.lightbox__title {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.lightbox__desc {
  display: block;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
}
.lightbox__desc[hidden] { display: none; }
.lightbox__close { position: absolute; top: 30px; right: 34px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.lightbox__close:hover { background: rgba(255,255,255,.24); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__nav--prev { left: 30px; }
.lightbox__nav--next { right: 30px; }
.lightbox svg { width: 20px; height: 20px; }

/* ==========================================================================
   KONTAKTFORMULAR auf Markenblau
   ========================================================================== */
.contact-band { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.contact-band::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  background: linear-gradient(104deg, var(--brand-700) 0%, rgba(10,28,94,0) 72%);
  opacity: .5;
}
.contact-band .container { position: relative; z-index: 2; }
.contact-band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  padding-block: 92px;
}
.contact-band h2 { color: #fff; }
.contact-band h2 .accent { color: #A9BAF0; }
.contact-band .eyebrow { color: rgba(255,255,255,.82); }
.contact-band__info { margin-top: 34px; display: grid; gap: 18px; }
.contact-band__info li { display: flex; gap: 15px; align-items: flex-start; font-size: 15.5px; color: rgba(255,255,255,.94); }
.contact-band__info svg { width: 19px; height: 19px; flex: none; margin-top: 4px; opacity: .85; }
.contact-band__info a:hover { text-decoration: underline; }

.form { display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.42);
  color: #fff;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 12px 2px;
  transition: border-color .35s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 62px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.72); }
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.form__submit { justify-self: end; }
.form__note { font-size: 12.5px; color: rgba(255,255,255,.7); letter-spacing: .01em; }

/* ==========================================================================
   BEWERTUNGEN
   ========================================================================== */
/* ==========================================================================
   KUNDENSTIMMEN
   ========================================================================== */
.testimonials { background: var(--grey-100); }
.testimonials__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

/* Gesamtnote als Siegel */
.rating {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.rating:hover { border-color: var(--brand); transform: translateY(-2px); }
.rating__score {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}
.rating__stars { display: flex; gap: 2px; color: #F5A623; }
.rating__stars svg { width: 16px; height: 16px; }
.rating__meta {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* Kundenstimme als Video */
.testimonial-video {
  margin-top: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.testimonial-video__eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.testimonial-video__text {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 22px;
  max-width: 38ch;
}

/* Bewertungskarten */
.testimonial-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  margin: 0;
  padding: 30px 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.testimonial__stars {
  color: #F5A623;
  font-size: 16px;
  letter-spacing: .16em;
  line-height: 1;
  margin-bottom: 16px;
}
.testimonial blockquote {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--body);
  flex: 1;
}
/* Typografische Anfuehrungszeichen direkt gesetzt — CSS-Escapes
   wurden beim Schreiben der Datei falsch aufgeloest */
.testimonial blockquote::before { content: "„"; }
.testimonial blockquote::after  { content: "“"; }
.testimonial figcaption {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--heading);
}
.testimonial figcaption span { font-weight: 500; color: var(--muted); }

.testimonials__note {
  margin: 30px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.testimonials__note a { color: var(--brand); font-weight: 600; }
.testimonials__note a:hover { text-decoration: underline; }

.reviews { padding-block: 80px; }
.reviews h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.reviews__row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.review-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  opacity: .55;
  filter: grayscale(1);
  transition: opacity .35s, filter .35s, transform .35s var(--ease-out);
}
.review-chip:hover { opacity: 1; filter: grayscale(0); transform: translateY(-3px); color: var(--brand); }
.review-chip svg { width: 26px; height: 26px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--dark-2); color: rgba(255,255,255,.72); padding-block: 76px 0; font-size: 14.5px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 1fr 1fr;
  gap: 44px;
}
.site-footer h3 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 26px;
}
.site-footer a { transition: color .28s, padding-left .28s; }
.site-footer a:hover { color: #fff; }
.footer__links { display: grid; gap: 12px; }
.footer__links a:hover { padding-left: 6px; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 13px; align-items: flex-start; line-height: 1.6; }
.footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--brand-300); }
.footer__contact a[href^="mailto"] { white-space: nowrap; font-size: 13.5px; }
.footer__logo { height: 62px; width: auto; margin-bottom: 24px; filter: brightness(0) invert(1); opacity: .95; }
.footer__bar {
  margin-top: 62px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.footer__bar nav { display: flex; gap: 26px; }

/* ==========================================================================
   SEITENKOPF (Unterseiten)
   ========================================================================== */
.page-hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 72px) 0 68px;
  background: var(--brand);
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  background: var(--brand-700);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: .8;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}
.page-hero .eyebrow { color: rgba(255,255,255,.82); margin-top: 14px; }
.breadcrumb { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.68); margin-bottom: 20px; }
.breadcrumb a:hover { color: #fff; }

/* Prosa-Blöcke für Unterseiten */
.prose h2 { font-size: clamp(21px, 2vw, 26px); font-weight: 800; text-transform: uppercase; margin-top: 56px; margin-bottom: 20px; }
.prose h2.h-section { font-size: clamp(23px, 2.2vw, 28px); margin-block: 0; letter-spacing: .005em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 700; margin-top: 36px; margin-bottom: 14px; }
.prose p { font-size: 16px; }
.prose ul { display: grid; gap: 14px; margin: 24px 0 34px; }
.prose ul li { position: relative; padding-left: 32px; font-size: 15.5px; line-height: 1.72; }
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 15px; height: 9px;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}
.prose--narrow { max-width: 58ch; }
.prose ul { max-width: 56ch; }

.info-card {
  background: var(--grey-100);
  padding: 42px 40px;
  border-left: 4px solid var(--brand);
}
.info-card h3 { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); margin-bottom: 20px; }
.info-card ul { display: grid; gap: 13px; }
.info-card li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; }
.info-card svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--brand); }

.map-wrap {
  position: relative;
  background: var(--grey-100);
  min-height: 460px;
}
/* Platzhalter, bis das iframe geladen ist */
.map-wrap::after {
  content: "Karte wird geladen …";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-embed {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
  filter: grayscale(.25);
  /* transparent, damit der Platzhalter darunter sichtbar bleibt,
     bis OpenStreetMap seine eigene Fläche zeichnet */
  background: transparent;
}

/* ==========================================================================
   SCROLL-ANIMATIONEN
   ========================================================================== */

/* Basis-Reveal */
[data-anim] { opacity: 0; will-change: opacity, transform, filter; }

[data-anim="up"]      { transform: translateY(38px); transition: opacity .95s var(--ease-out), transform .95s var(--ease-out); }
[data-anim="fade"]    { transition: opacity 1.1s var(--ease-out); }
[data-anim="left"]    { transform: translateX(-46px); transition: opacity .95s var(--ease-out), transform .95s var(--ease-out); }
[data-anim="right"]   { transform: translateX(46px);  transition: opacity .95s var(--ease-out), transform .95s var(--ease-out); }
[data-anim="zoom"]    { transform: scale(.94); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }

/* Der gewünschte Effekt: Schrift startet unscharf/ausgeblasst und „füllt sich" beim Scrollen */
[data-anim="blur"] {
  filter: blur(13px);
  transform: translateY(24px);
  transition: opacity 1.15s var(--ease-out), filter 1.15s var(--ease-out), transform 1.15s var(--ease-out);
}

[data-anim].is-in {
  opacity: 1;
  transform: none;
  filter: none;
  /* zwingend zurücksetzen: ein stehengebliebenes will-change: transform
     macht das Element zum Containing Block und würde den fixierten
     Video-Player aus der Bildschirmmitte schieben */
  will-change: auto;
}

/* Wort-für-Wort-Füllung großer Überschriften */
.fill-text { display: inline; }
.fill-text .w {
  display: inline-block;
  opacity: .16;
  filter: blur(5px);
  transform: translateY(14px);
  transition: opacity .8s var(--ease-out), filter .8s var(--ease-out), transform .8s var(--ease-out);
}
.fill-text.is-in .w { opacity: 1; filter: blur(0); transform: none; }

/* Blaue Wischblende über Bildern */
.reveal-img { position: relative; overflow: hidden; }
.reveal-img::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--brand);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1.05s var(--ease-in-out);
  z-index: 3;
}
.reveal-img.is-in::after { transform: scaleX(0); }

/* Zähler */
.count { font-variant-numeric: tabular-nums; }

/* Sanfter Parallax-Hook */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-anim], .fill-text .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .reveal-img::after { transform: scaleX(0) !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .hero__grid { gap: 42px; }
  /* Der Container hat hier keinen Seitenrand mehr — der Versatz muss
     nach innen wandern, sonst klebt das Blau an der Fensterkante */
  .player-frame::before { inset: 20px 0 -20px 20px; }
  .trustbar__grid { grid-template-columns: 220px 1fr 170px; gap: 40px; }
  .seal { width: 148px; height: 148px; }
  .projects__grid { grid-template-columns: 290px 1fr; gap: 46px; }
}

@media (max-width: 1024px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .section { padding-block: 84px; }
  .why { padding-block: 84px; }
  .projects { padding-block: 84px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { border-bottom: 1px solid var(--line); }
  .feature:nth-child(2n) { border-right: 0; }
  .feature:nth-child(2n+1) { padding-left: 0; }
  .feature:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }

  .why__grid { grid-template-columns: 1fr; gap: 44px; }
  .credo__grid { grid-template-columns: 1fr; gap: 46px; }
  /* gestapelt wuerde das Bild sonst breiter als am Desktop, und der
     blaue Versatz stiesse an den Fensterrand */
  .credo__media { max-width: 640px; }
  .why__media { aspect-ratio: 16 / 10; border-bottom-right-radius: 80px; }
  .why__panel { margin-right: 0; margin-top: 44px; grid-template-columns: 1fr; }
  .why__panel-inner { grid-column: 1; padding: 46px 44px 48px; max-width: none; }
  .why__aside { grid-row: auto; align-self: auto; padding: 0 44px 48px; }
  .why__panel::before { display: none; }

  .projects__grid { grid-template-columns: 1fr; gap: 44px; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-video { grid-template-columns: 1fr; gap: 30px; }
  .testimonial-video__text { max-width: none; }
  .contact-band__grid { grid-template-columns: 1fr; gap: 52px; padding-block: 78px; }
  .contact-band::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 44px; }
}

@media (max-width: 900px) {
  /* Hero stapelt: erst Text, darunter das Video */
  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { max-width: none; }
  .hero__bg {
    -webkit-mask-image: linear-gradient(#000 62%, transparent 98%);
    mask-image: linear-gradient(#000 62%, transparent 98%);
  }
  .hero h1 { font-size: clamp(29px, 7.6vw, 44px); }
  .hero__kicker { font-size: 15px; letter-spacing: .07em; }
  /* Der blaue Versatz würde am Rand herausragen — hier nach innen */
  .player-frame::before { inset: 16px 0 -16px 16px; }
  .player__hint { text-align: left; margin-top: 32px; }
  .player__play { width: 68px; height: 68px; }
  .player__play svg { width: 22px; height: 22px; }
  .trustbar__grid { grid-template-columns: 1fr; gap: 34px; text-align: center; justify-items: center; }
  .seal { justify-self: center; }
  .service-cards { grid-template-columns: 1fr; gap: 20px; }
  .testimonials__head { flex-direction: column; align-items: flex-start; }
  .service-card { min-height: 440px; padding: 38px 32px 36px; }
  /* Ab hier ist die Karte flacher, der Textblock sitzt also höher —
     der Verlauf muss entsprechend früher dunkel werden */
  .service-card::after {
    background: linear-gradient(180deg, rgba(7,20,69,.30) 0%, rgba(7,20,69,.72) 30%, rgba(7,20,69,.93) 58%, rgba(7,20,69,.96) 100%);
  }
  .service-card:hover::after {
    background: linear-gradient(180deg, rgba(16,44,145,.38) 0%, rgba(10,28,94,.78) 30%, rgba(7,20,69,.95) 58%, rgba(7,20,69,.97) 100%);
  }
  /* Drei schmale Spalten wären hier zu eng — untereinander lesbarer */
  .team { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery--page { grid-template-columns: repeat(2, 1fr); }
  .gal-cta { grid-column: span 2; }
}

@media (max-width: 680px) {
  :root { --header-h: 76px; --gutter: 20px; }
  .topbar { font-size: 11.5px; height: auto; padding-block: 9px; }
  .topbar .container { justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
  .section { padding-block: 62px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .hero__kicker { font-size: 15px; letter-spacing: .06em; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { border-right: 0; padding-left: 0; padding-block: 30px 34px; }
  .form__row { grid-template-columns: 1fr; gap: 22px; }
  .credo__list { grid-template-columns: 1fr; }
  /* der Versatz wuerde sonst am Fensterrand kleben */
  .credo__shape { inset: 18px 0 -18px 18px; }
  .credo__media figcaption { margin-top: 28px; }
  .gallery, .gallery--page { grid-template-columns: 1fr; }
  .gallery .gal-item--tall { grid-row: span 1; aspect-ratio: 3 / 4; }
  .gal-cta { grid-column: span 1; padding: 30px 26px; }
  .ba__pair { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 38px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .reviews__row { gap: 30px; }
  .team { grid-template-columns: 1fr; }
  .why__panel { padding: 0; }
  .why__panel-inner { padding: 38px 26px 42px; }
  .info-card { padding: 32px 26px; }
  /* Steuerleiste kompakter, damit alles in eine Zeile passt */
  .player__ui { padding: 26px 8px 6px; }
  .player__btn { width: 34px; height: 34px; }
  .player__time { font-size: 11.5px; margin-left: 4px; }
  /* Nur der Schieberegler geht, der Ton-Schalter bleibt bedienbar */
  .player__volume input { display: none; }
  .player__label { left: 18px; bottom: 18px; font-size: 11px; letter-spacing: .15em; }
  .player__surface { inset: 0 0 54px 0; }
  .lightbox__nav { width: 46px; height: 46px; top: auto; bottom: 16px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 62px); }
  .lightbox__nav--next { right: calc(50% - 62px); }
  .lightbox figure { max-width: 100%; }
  .lightbox { padding: 76px 18px 24px; align-content: start; overflow-y: auto; }
  .lightbox img { max-height: 46vh; }
  .lightbox figcaption { margin-top: 18px; font-size: 14px; }
  .lightbox__desc { font-size: 13.5px; }
  .page-hero { padding: calc(var(--header-h) + 40px) 0 44px; }
  .footer__links a { display: block; padding-block: 9px; }
}
