/* E&L Objektservice – Styles (mobile first) */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../assets/fonts/plus-jakarta-sans-latin-wght.woff2') format('woff2-variations'),
    url('../assets/fonts/plus-jakarta-sans-latin-wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens (gemessen im Logo: Navy #162F47, Grafit #4A4A4A) ---------- */
:root {
  --navy: #162f47;
  --navy-700: #10243a;
  --navy-900: #0b1928;
  --navy-300: #9fb0c2;
  --navy-200: #c9d4df;
  --navy-100: #e4eaf0;
  --navy-50: #f2f5f8;

  --graphite: #4a4a4a;
  --graphite-700: #333333;
  --graphite-500: #5e5e5e;

  --white: #ffffff;
  --surface: #f5f6f7;
  --line: #dfe4ea;

  --text: var(--graphite);
  --heading: var(--navy);

  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgb(11 25 40 / 0.06), 0 2px 8px rgb(11 25 40 / 0.06);
  --shadow-md: 0 2px 4px rgb(11 25 40 / 0.06), 0 12px 32px rgb(11 25 40 / 0.1);

  --gutter: 20px;
  --container: 1200px;
  --header-h: 64px;
  --section-y: clamp(64px, 6vw + 40px, 128px);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 76px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.375rem, 1.55rem + 3.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.875rem, 1.35rem + 2.1vw, 3rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: 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: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sichtbarer Platzhalter für fehlende Angaben (nur im Entwurf) */
.todo {
  background: #fff1a8;
  color: #4a3b00;
  outline: 1px dashed #8a6d00;
  border-radius: 3px;
  padding: 0 0.25em;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-border: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 0.8em 1.4em;
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover {
  --btn-bg: var(--navy-700);
  --btn-border: var(--navy-700);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
}

.btn--ghost:hover {
  --btn-bg: var(--navy-50);
  --btn-border: var(--navy);
}

.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--navy);
  --btn-border: var(--white);
}

.btn--light:hover {
  --btn-bg: var(--navy-100);
  --btn-border: var(--navy-100);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgb(255 255 255 / 0.55);
}

.btn--outline-light:hover {
  --btn-bg: rgb(255 255 255 / 0.1);
  --btn-border: var(--white);
}

.btn--block {
  width: 100%;
}

.btn .icon {
  width: 1.2em;
  height: 1.2em;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}

.link-arrow .icon {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.link-arrow:hover {
  text-decoration: underline;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--navy-50);
}

.icon-btn .icon {
  width: 26px;
  height: 26px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgb(11 25 40 / 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: block;
  flex: none;
  margin-right: auto;
  border-radius: 4px;
}

.brand img {
  width: 136px;
  height: auto;
  aspect-ratio: 480 / 171;
}

@media (min-width: 768px) {
  .brand img {
    width: 164px;
  }
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--graphite-700);
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--navy);
  background: var(--navy-50);
}

.site-header__cta {
  display: none;
}

.menu-toggle {
  margin-right: -8px;
}

@media (min-width: 960px) {
  .main-nav,
  .site-header__cta {
    display: flex;
  }

  .site-header__cta {
    min-height: 46px;
    padding-block: 0.6em;
  }

  .menu-toggle {
    display: none;
  }
}

/* Mobiles Menü (dialog) */
.menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--text);
}

.menu::backdrop {
  background: rgb(11 25 40 / 0.4);
}

.menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom));
}

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  margin-bottom: 16px;
}

.menu__head .brand img {
  width: 136px;
}

.menu nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.menu nav a .icon {
  color: var(--navy-300);
}

.menu__foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}

@media (prefers-reduced-motion: no-preference) {
  .menu[open] {
    animation: menu-in 0.25s var(--ease);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ---------- Dachkontur (wiederkehrendes Element aus dem Logo) ---------- */
.roofline {
  position: relative;
  height: 28px;
  margin-bottom: 28px;
  color: var(--navy-200);
}

.roofline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
}

.roofline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 30px;
  background: currentColor;
  -webkit-mask: url('../assets/brand/roofline.svg') no-repeat left bottom / 100% 100%;
  mask: url('../assets/brand/roofline.svg') no-repeat left bottom / 100% 100%;
}

.roofline--light {
  color: rgb(255 255 255 / 0.28);
}

/* ---------- Sektionen ---------- */
.section {
  padding-block: var(--section-y);
}

.section--surface {
  background: var(--surface);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head p {
  font-size: 1.125rem;
  color: var(--graphite-500);
}

@media (min-width: 960px) {
  .section-head--split {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 48px;
    max-width: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(48px, 5vw, 88px);
}

.hero__grid {
  display: grid;
  gap: 32px;
}

.hero__kicker {
  margin-bottom: 18px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--graphite);
}

.hero__kicker svg {
  display: inline-block;
  width: 26px;
  height: 20px;
  margin-right: 0.35em;
  vertical-align: -4px;
}

.hero__lead {
  margin-top: 20px;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions .btn {
  flex: 1 1 220px;
}

@media (min-width: 560px) {
  .hero__actions .btn {
    flex: 0 0 auto;
  }
}

.hero__media {
  margin-inline: calc(-1 * var(--gutter));
}

.hero__media .ba__stage {
  border-radius: 0;
}

.hero__media-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 14px;
  padding-inline: var(--gutter);
}

.hero__caption {
  font-size: 0.9375rem;
  color: var(--graphite-500);
}

@media (min-width: 640px) {
  .hero__media {
    margin-inline: 0;
  }

  .hero__media .ba__stage {
    border-radius: var(--radius);
  }

  .hero__media-foot {
    padding-inline: 0;
  }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      'text media'
      'actions media';
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    row-gap: 32px;
  }

  .hero__text {
    grid-area: text;
    align-self: end;
  }

  .hero__media {
    grid-area: media;
    align-self: center;
  }

  .hero__actions {
    grid-area: actions;
    align-self: start;
  }
}

/* Vertrauenspunkte */
.trust {
  display: grid;
  gap: 4px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.trust li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

.trust .icon {
  width: 26px;
  height: 26px;
  margin-top: 1px;
  color: var(--navy);
}

.trust strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
}

.trust span {
  font-size: 0.9375rem;
  color: var(--graphite-500);
}

@media (min-width: 768px) {
  .trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
    padding-top: 28px;
    border-bottom: 0;
  }

  .trust li {
    padding: 0;
    border: 0;
  }
}

/* ---------- Vorher-Nachher-Komponente ---------- */
ba-slider {
  display: block;
  container-type: inline-size;
  --ba-pos: 50%;
}

.ba__stage {
  position: relative;
  aspect-ratio: var(--ba-ratio, 4 / 3);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-100);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: ew-resize;
}

.ba__pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba__pane picture,
.ba__img {
  width: 100%;
  height: 100%;
}

.ba__img {
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba__pane--before {
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}

.ba__label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3em 0.7em;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  pointer-events: none;
}

.ba__label--after {
  left: auto;
  right: 12px;
}

.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 0;
  pointer-events: none;
}

.ba__divider::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgb(11 25 40 / 0.18);
}

.ba__handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 50px;
  height: 54px;
  transform: translate(-50%, -54%);
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease);
}

.ba__handle svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 3px 8px rgb(11 25 40 / 0.35));
}

.ba__handle-shape {
  fill: var(--navy);
  stroke: var(--white);
  stroke-width: 3;
  stroke-linejoin: round;
}

.ba__handle-arrows {
  fill: none;
  stroke: var(--white);
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ba__stage:hover .ba__handle,
.ba.is-dragging .ba__handle {
  transform: translate(-50%, -54%) scale(1.06);
}

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.ba__range:focus-visible ~ .ba__divider .ba__handle {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--navy);
}

/* Nebeneinander */
.ba[data-mode='side'] .ba__stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  aspect-ratio: auto;
  background: transparent;
  cursor: auto;
  touch-action: auto;
}

.ba[data-mode='side'] .ba__pane {
  position: relative;
  inset: auto;
  aspect-ratio: 3 / 4;
  clip-path: none;
}

.ba[data-mode='side'] .ba__pane--before {
  order: -1;
}

.ba[data-mode='side'] .ba__label--after {
  left: 12px;
  right: auto;
}

.ba[data-mode='side'] .ba__divider,
.ba[data-mode='side'] .ba__range {
  display: none;
}

@container (min-width: 600px) {
  .ba[data-mode='side'] .ba__pane {
    aspect-ratio: var(--ba-ratio, 4 / 3);
  }
}

/* Umschalter Slider / Nebeneinander (Platz ist reserviert, bis das Skript ihn aktiviert) */
.mode-toggle[data-pending] {
  visibility: hidden;
}

html:not(.js) .mode-toggle {
  display: none;
}

.mode-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius);
  background: var(--navy-50);
  border: 1px solid var(--line);
}

.mode-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 40px;
  padding: 0.4em 0.85em;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--graphite);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.mode-toggle button[aria-pressed='true'] {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.mode-toggle .icon {
  width: 18px;
  height: 18px;
}

/* ---------- Leistungen ---------- */
.services {
  display: grid;
  gap: 24px;
}

.service-feature {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--navy-100);
}

.service-feature__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-feature__media:hover img {
  transform: scale(1.03);
}

.service-feature__body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px 24px 32px;
}

.service-feature__body .icon {
  width: 34px;
  height: 34px;
  color: var(--white);
}

.service-feature h3 {
  color: var(--white);
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
}

.service-feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-feature__tags li {
  padding: 0.35em 0.8em;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
}

.service-feature .link-arrow {
  margin-top: 6px;
  color: var(--white);
}

.service-feature :focus-visible {
  outline-color: var(--white);
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy-50);
  color: var(--navy);
}

.service__icon .icon {
  width: 26px;
  height: 26px;
}

.service h3 {
  align-self: center;
}

.service > p {
  grid-column: 2;
  color: var(--graphite-500);
}

@media (min-width: 960px) {
  .services {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .service-list {
    border-top: 0;
  }

  .service:first-child {
    padding-top: 0;
  }

  .service-feature__body {
    padding: 32px 36px 40px;
  }
}

/* ---------- Ergebnisse ---------- */
.results {
  background: var(--navy-50);
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  padding: 0.45em 1em;
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--navy);
}

.chip[aria-pressed='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.chip .icon {
  width: 18px;
  height: 18px;
}

.gallery-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

/* Drei Spalten: Querformat-Paare stehen in projects.js vorne, Hochformat-Paare danach → gleich hohe Reihen */
@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.work-card__media {
  position: relative;
}

.work-card__media .ba__stage {
  border-radius: 0;
}

.work-card__media .ba[data-mode='side'] .ba__stage {
  gap: 2px;
}

.work-card__single {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-100);
}

.work-card__single picture,
.work-card__single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
}

.work-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--graphite-500);
}

.work-card__meta .icon {
  width: 18px;
  height: 18px;
  color: var(--navy);
}

.work-card__title {
  font-size: 1.3125rem;
}

.work-card__caption {
  color: var(--graphite-500);
}

.work-card__open {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  margin-top: auto;
  padding-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.work-card__open:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.work-card__expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.94);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.work-card__expand:hover {
  background: var(--white);
}

.work-card__expand .icon {
  width: 22px;
  height: 22px;
}

.results__cta {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--navy-100);
}

.results__cta h3 {
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
}

.results__cta p {
  margin-top: 8px;
  color: var(--graphite-500);
}

@media (min-width: 768px) {
  .results__cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 36px 40px;
  }
}

.img-missing {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  font-size: 0.9375rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1180px, 100%);
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--text);
}

.lightbox::backdrop {
  background: rgb(11 25 40 / 0.86);
}

.lightbox__inner {
  display: grid;
  gap: 14px;
  padding: 12px var(--gutter) calc(16px + env(safe-area-inset-bottom));
}

.lightbox__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lightbox__meta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--graphite-500);
}

.lightbox__title {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
}

.lightbox__head .icon-btn {
  margin: -4px -10px 0 0;
}

.lightbox__media ba-slider,
.lightbox__media .lightbox__single {
  max-width: calc((100dvh - 230px) * var(--ba-ratio-f, 1.333));
  margin-inline: auto;
}

.lightbox__single {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.lightbox__single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__caption {
  color: var(--graphite-500);
}

.lightbox__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox__pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox__count {
  min-width: 4.5ch;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--graphite);
}

.lightbox__pager .icon-btn {
  border: 1px solid var(--navy-200);
}

@media (min-width: 768px) {
  .lightbox {
    max-height: calc(100dvh - 48px);
    border-radius: var(--radius);
  }

  .lightbox__inner {
    padding: 20px 28px 24px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] {
    animation: lightbox-in 0.25s var(--ease);
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
}

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 6px 18px;
  padding-bottom: 32px;
}

.step::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 4px;
  width: 2px;
  background: var(--navy-200);
}

.step:last-child {
  padding-bottom: 0;
}

.step:last-child::before {
  display: none;
}

.step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--navy);
  color: var(--navy);
  background: var(--white);
  font-weight: 800;
  font-size: 1.125rem;
}

.step h3 {
  align-self: center;
}

.step > p {
  grid-column: 2;
  color: var(--graphite-500);
}

.step--result .step__num {
  background: var(--navy);
  color: var(--white);
}

.step--result .step__box {
  grid-column: 2;
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--navy-100);
}

.step--result .step__box p {
  color: inherit;
}

.step--result .link-arrow {
  color: var(--white);
}

.step--result :focus-visible {
  outline-color: var(--white);
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  .step {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
    padding: 0;
  }

  .step::before {
    left: 60px;
    right: -20px;
    top: 23px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .step h3,
  .step > p,
  .step--result .step__box {
    grid-column: 1;
  }

  .step h3 {
    margin-top: 6px;
  }

  .step--result .step__box {
    margin-top: 0;
  }
}

/* ---------- Über uns ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.about__text {
  display: grid;
  gap: 18px;
  align-content: start;
  max-width: 640px;
}

.about__text p {
  font-size: 1.125rem;
}

/* Kontaktkarte statt Porträt: füllt die zweite Spalte, bis es ein Foto gibt */
.about__card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 4px;
  padding: 32px 28px 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--navy-100);
  box-shadow: var(--shadow-md);
}

.about__mark {
  position: absolute;
  right: -36px;
  bottom: -28px;
  width: 220px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.07;
  pointer-events: none;
}

.about__card > :not(.about__mark) {
  position: relative;
}

.about__card-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-300);
}

.about__card-name {
  margin-top: 4px;
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
}

.about__card-role {
  color: var(--navy-200);
}

.about__facts {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.about__facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
}

@media (min-width: 480px) {
  .about__facts div {
    grid-template-columns: 8em minmax(0, 1fr);
    gap: 12px;
  }
}

.about__facts dt {
  font-weight: 700;
  color: var(--white);
}

.about__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.about__facts a {
  color: var(--white);
  text-decoration-color: rgb(255 255 255 / 0.4);
  text-underline-offset: 3px;
}

.about__facts a:hover {
  text-decoration-color: currentColor;
}

.about__cta {
  justify-self: start;
  margin-top: 24px;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 72px;
  }

  .about__card {
    padding: 40px 36px 36px;
  }
}

/* ---------- Kontakt ---------- */
.contact {
  background: var(--navy);
  color: var(--navy-100);
}

.contact h2 {
  color: var(--white);
}

.contact :focus-visible {
  outline-color: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.contact__intro {
  display: grid;
  gap: 20px;
  align-content: start;
}

.contact__intro > p {
  font-size: 1.125rem;
}

.contact__direct {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.contact__direct .btn {
  justify-content: flex-start;
}

.contact__direct .btn span {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.contact__note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.16);
}

.contact__note .icon {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.contact__note a {
  color: var(--white);
}

.contact__note p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact__hours {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9375rem;
}

.contact__hours > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
  }
}

/* Formular */
.form-card {
  padding: 24px 20px 28px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-md);
}

.form-card :focus-visible {
  outline-color: var(--navy);
}

@media (min-width: 768px) {
  .form-card {
    padding: 36px 36px 40px;
  }
}

.form {
  display: grid;
  gap: 20px;
}

.form__title {
  font-size: 1.375rem;
}

/* Wahl WhatsApp / E-Mail im Anfrage-Helfer */
.channel {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.channel__legend {
  margin-bottom: 8px;
  padding: 0;
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--navy);
}

.channel__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--navy-50);
  border: 1px solid var(--line);
}

.channel__option {
  position: relative;
  cursor: pointer;
}

.channel__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.channel__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  border-radius: var(--radius-sm);
  color: var(--graphite);
  font-weight: 700;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.channel__option input:checked + span {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.channel__option input:focus-visible + span {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* Vorschau der WhatsApp-Nachricht (Sprechblase in Logo-Farben) */
html:not(.js) .form__preview {
  display: none;
}

.form__preview {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.form__preview-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--graphite-500);
}

.form__preview-bubble {
  justify-self: end;
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 12px 12px 4px 12px;
  background: var(--navy-100);
  color: var(--graphite-700);
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field legend {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.975rem;
}

.field .optional {
  font-weight: 500;
  color: var(--graphite-500);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid #8f9aa6;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--graphite-700);
  font: inherit;
  font-size: 1rem;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23162F47' stroke-width='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 14px center;
  background-size: 20px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--navy);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

.field__hint {
  font-size: 0.875rem;
  color: var(--graphite-500);
}

.field__error {
  display: flex;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #9b1c1c;
}

.field [aria-invalid='true'] {
  border-color: #9b1c1c;
}

.field--check {
  grid-template-columns: 26px 1fr;
  align-items: start;
  gap: 4px 12px;
}

.field--check input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--navy);
}

.field--check label {
  font-weight: 500;
  color: var(--graphite);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.field--check .field__error {
  grid-column: 2;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form__status:empty {
  display: none;
}

.form__status--success {
  background: var(--navy-50);
  color: var(--navy);
  border: 1px solid var(--navy-200);
}

.form__status--error {
  background: #fdf0f0;
  color: #8a1818;
  border: 1px solid #efc5c5;
}

.form__legal {
  font-size: 0.875rem;
  color: var(--graphite-500);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 32px;
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 0.975rem;
}

.site-footer__grid {
  display: grid;
  gap: 32px;
}

.site-footer .brand img {
  width: 168px;
}

.site-footer h2 {
  margin-bottom: 10px;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--graphite);
}

.site-footer ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--graphite-700);
}

.site-footer a:hover {
  color: var(--navy);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--graphite-500);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* ---------- Mobile Aktionsleiste ---------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgb(11 25 40 / 0.08);
  transition: transform 0.3s var(--ease);
}

.action-bar .btn {
  flex: 1;
  min-height: 50px;
  padding-inline: 0.8em;
}

.action-bar.is-hidden {
  transform: translateY(110%);
}

body.has-action-bar {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

@media (min-width: 960px) {
  .action-bar {
    display: none;
  }

  body.has-action-bar {
    padding-bottom: 0;
  }
}

/* Hinweis „E-Mail-Adresse kopiert“ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 60;
  width: min(440px, calc(100% - 2 * var(--gutter)));
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 960px) {
  .toast {
    bottom: 32px;
  }
}

/* ---------- Rechtsseiten ---------- */
.draft-banner {
  padding: 14px 0;
  background: #fff1a8;
  color: #4a3b00;
  border-bottom: 2px dashed #8a6d00;
  font-weight: 700;
  font-size: 0.9375rem;
}

.legal {
  padding-block: clamp(40px, 5vw, 80px) var(--section-y);
}

.legal__body {
  max-width: 760px;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

.legal h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  margin-bottom: 32px;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 1.375rem;
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 1.0625rem;
}

.legal p,
.legal ul {
  margin: 0 0 14px;
}

.legal address {
  font-style: normal;
}

/* ---------- Logo-Intro (Haus zeichnet sich, Schrift wischt ein, Vorhang fährt hoch) ---------- */
.intro-screen {
  display: none;
}

/* Ablauf: Wände wachsen gleichzeitig hoch (0–0,8 s) → Schornstein springt (0,7 s) →
   Schrift gleitet ein (0,75 s) → Logo hebt ab, Vorhang zieht hoch (1,4–2,0 s) */
.is-intro .intro-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--white);
  pointer-events: none;
  will-change: transform;
  animation: intro-curtain 0.6s cubic-bezier(0.76, 0, 0.24, 1) 1.45s forwards;
}

.intro-screen__logo {
  position: relative;
  width: min(300px, 72vw);
  will-change: transform, opacity;
  animation:
    intro-logo-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both,
    intro-logo-out 0.4s cubic-bezier(0.55, 0, 1, 0.45) 1.4s forwards;
}

/* Vom Logo-Bild ist nur die Schrift sichtbar; das Haus kommt aus dem SVG darüber */
.intro-screen__logo img {
  width: 100%;
  height: auto;
  clip-path: inset(0 100% 0 44.5%);
  transform: translateX(-14px);
  opacity: 0;
  animation: intro-text 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

/* Liegt exakt über der Hausmarke im Logo-PNG */
.intro-screen__house {
  position: absolute;
  left: 0.67%;
  top: 1.875%;
  width: 41.7%;
  height: 91.6%;
  overflow: visible;
}

.intro-screen__trace {
  fill: none;
  stroke: #fff;
  stroke-width: 84;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: intro-draw 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.05s forwards;
}

.intro-screen__chimney {
  opacity: 0;
  transform: translateY(18px);
  transform-box: fill-box;
  animation: intro-chimney 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
}

@keyframes intro-logo-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
}

@keyframes intro-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes intro-chimney {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes intro-text {
  to {
    clip-path: inset(0 0 0 44.5%);
    transform: none;
    opacity: 1;
  }
}

@keyframes intro-logo-out {
  to {
    opacity: 0;
    transform: translateY(-28px);
  }
}

@keyframes intro-curtain {
  to {
    transform: translateY(-100%);
  }
}

/* ---------- Einblenden beim Scrollen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

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