:root {
  --font-heading: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fs-xs: 14px;
  --fs-sm: 15px;
  --fs-base: 16px;
  --fs-md: 18px;
  --lh-tight: 1.05;
  --lh-normal: 1.4;
  --lh-relaxed: 1.6;
  --bg: #ece9e8;
  --text: #111111;
  --text-soft: #555555;
  --text-light: #f6f1eb;
  --muted: var(--text-soft);
  --line: #bdb7b4;
  --line-strong: #111111;
  --line-width: 2px;
  /* Hairline rules (section HR, subtle splits) — thinner than UI outlines */
  --section-rule: 1px solid color-mix(in srgb, var(--line-strong) 12%, var(--line) 88%);
  --accent: #b8956a;
  --accent-strong: #111111;
  --white: #ffffff;
  --max-width: 1200px;
  --section-space: 80px;
  --radius: 6px;
  --control-radius: 999px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  --contact-input-bg: #ded9d5;
  --contact-input-focus: #d4cfca;
  /* Horizontal gutters on .container + safe-area on notched phones */
  --page-pad-x: clamp(16px, 4.2vw, 28px);
  --header-height: 76px;
  /* Primary text buttons (shared padding) */
  --btn-pad-y: 12px;
  --btn-pad-x: 26px;
  --btn-min-height: 48px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-height) + 12px);
  scrollbar-color: rgba(0, 0, 0, 0.24) transparent;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Transparent-style website scrollbar (Firefox: scrollbar-color on html above) */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.24);
  border: 2px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

h1 {
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.95;
}

h2,
h3 {
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

h1,
h2,
h3,
.hero-title,
.hero-banner__title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(34px, 3.5vw, 56px);
  line-height: 1.05;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: max(var(--page-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-pad-x), env(safe-area-inset-right, 0px));
}

.section {
  position: relative;
  padding: var(--section-space) 0;
  border-top: none;
}

.section-head {
  margin-bottom: 22px;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 10px;
  padding: 0;
}

.section-label__text {
  display: block;
  line-height: 1.35;
  max-width: 280px;
}

/* Simple section rule (replace with graphic later if needed) */
.section-divider {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-top: var(--section-rule);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 600;
  margin-bottom: 18px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 40px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 45;
  background: var(--bg);
  backdrop-filter: none;
  border-bottom: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 16px;
}

.site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--control-radius);
  flex-shrink: 0;
  z-index: 60;
}

.site-header__menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.site-header__menu-toggle:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

.site-header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 22px;
  pointer-events: none;
}

.site-header__burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__burger span:nth-child(2) {
  opacity: 0;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-header__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-header__overlay.is-visible {
  opacity: 1;
  visibility: visible;
  touch-action: none;
  overscroll-behavior: none;
}

/* Prevent background scroll while mobile menu is open (iOS needs fixed body + JS scroll offset) */
html.nav-open {
  overflow: hidden;
  overflow-x: hidden;
  height: 100%;
  overscroll-behavior: none;
}

body.nav-open {
  overflow: hidden;
  overflow-x: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overscroll-behavior: none;
  touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__burger span,
  .site-header__overlay {
    transition: none;
  }
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 50px;
  flex-shrink: 0;
  padding: 4px 0;
}

.logo__image {
  display: block;
  width: auto;
  max-width: min(288px, 62vw);
  height: 50px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .logo {
    min-height: 48px;
    padding: 2px 0;
  }

  .logo__image {
    max-width: min(240px, 70vw);
    height: 44px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
}

.nav a:hover {
  opacity: 1;
  color: var(--accent);
}

.nav a.btn:hover {
  opacity: 1;
}

@media (min-width: 901px) {
  .site-header__menu-toggle {
    display: none !important;
  }

  .site-header__overlay {
    display: none !important;
  }

  .nav {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    max-height: none;
    padding: 0;
    margin: 0;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  /* Text links only — do not reset .btn or it removes border-bottom and padding from Kontakt */
  .nav a:not(.btn) {
    border-bottom: none;
    padding: 0;
    position: relative;
  }

  .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: color-mix(in srgb, var(--accent) 72%, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
  }

  .nav a:not(.btn):hover::after,
  .nav a:not(.btn):focus-visible::after {
    transform: scaleX(1);
  }

  .nav a.btn {
    width: auto;
    align-self: center;
    flex-shrink: 0;
    border: 1px solid var(--accent-strong);
  }

  .nav a.btn:hover {
    border-bottom: 1px solid var(--accent-strong);
  }
}

@media (max-width: 900px) {
  /*
   * backdrop-filter on an ancestor creates a containing block for position:fixed in some browsers,
   * which breaks the slide-in panel. Use solid background on the bar instead.
   */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding-top: env(safe-area-inset-top, 0px);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* Offset for fixed header (avoids overlap + reduces sticky “rubber band” jitter on mobile). */
  main#top {
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  }

  html {
    overflow-x: hidden;
    scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 12px);
  }

  .hero {
    min-height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px));
  }

  .site-header__menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 120;
  }

  .site-header__overlay {
    display: block;
    pointer-events: none;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .site-header__overlay.is-visible {
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 50;
    width: min(320px, 88vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 20px) max(20px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(236, 233, 232, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .nav.is-open {
    transform: translate3d(0, 0, 0);
  }

  /* Entire bar (logo + toggle) above the drawer so the burger/X is never covered by blur layer. */
  html.nav-open .site-header {
    z-index: 80;
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 16px;
  }

  .nav a.btn {
    margin-top: 20px;
    border: 1px solid var(--accent-strong);
    text-align: center;
    justify-content: center;
    border-bottom: 1px solid var(--accent-strong);
  }

  .nav a:hover {
    opacity: 1;
    color: var(--accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav {
    transition: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-height);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  line-height: 1.25;
  background: var(--accent-strong);
  color: var(--white);
  border: 1px solid var(--accent-strong);
  border-radius: var(--control-radius);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

/* Subtle premium motion: transform only (opacity:0 breaks mobile LCP / NO_LCP). */
@keyframes heroFadeUp {
  from {
    transform: translateY(18px);
  }
  to {
    transform: translateY(0);
  }
}

.hero-banner__content > * {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-banner__content > *:nth-child(1) {
  animation-delay: 80ms;
}

.hero-banner__content > *:nth-child(2) {
  animation-delay: 150ms;
}

.hero-banner__content > *:nth-child(3) {
  animation-delay: 220ms;
}

.hero-banner__content > *:nth-child(4) {
  animation-delay: 290ms;
}

.hero-banner__content > *:nth-child(5) {
  animation-delay: 360ms;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(2px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered inner motion when parent reveals (keeps layout identical) */
.service-row.reveal-on-scroll .service-row__content,
.service-row.reveal-on-scroll .service-row__media {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-row.reveal-on-scroll.is-visible .service-row__content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.service-row.reveal-on-scroll.is-visible .service-row__media {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

.service-row.reveal-on-scroll.is-visible:hover .service-row__media {
  transform: translateY(0) scale(1.02);
}

.service-row:not(.reveal-on-scroll):hover .service-row__media {
  transform: scale(1.02);
}

.gallery-photo.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  filter: none;
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-photo.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

.projects-gallery__nav.reveal-on-scroll {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.12s;
}

.projects-gallery__nav.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-values.reveal-on-scroll .about-values__title {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-values.reveal-on-scroll .about-values__item {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-values.reveal-on-scroll.is-visible .about-values__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.06s;
}

.about-values.reveal-on-scroll.is-visible .about-values__item:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.about-values.reveal-on-scroll.is-visible .about-values__item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.about-values.reveal-on-scroll.is-visible .about-values__item:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.28s;
}

.about-values.reveal-on-scroll.is-visible .about-values__item:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.36s;
}

#vorteile .benefit-row.reveal-on-scroll .benefit-row__title,
#vorteile .benefit-row.reveal-on-scroll .benefit-row__icon {
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#vorteile .benefit-row.reveal-on-scroll.is-visible .benefit-row__title {
  opacity: 1;
  transition-delay: 0.05s;
}

#vorteile .benefit-row.reveal-on-scroll.is-visible .benefit-row__icon {
  opacity: 1;
  transition-delay: 0.12s;
}

.hero {
  padding: 0 0 72px;
  min-height: calc(100vh - var(--header-height, 90px));
  background: #ece9e8;
}

.hero__full {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  min-height: inherit;
}

.hero-banner {
  --hero-scroll: 0;
  position: relative;
  min-height: inherit;
  display: block;
  align-items: stretch;
  background: #ece9e8;
  overflow: hidden;
}

.hero-banner__content {
  position: relative;
  z-index: 2;
  width: 44%;
  max-width: 680px;
  min-width: 0;
  padding-top: clamp(70px, 9vh, 120px);
  padding-right: clamp(24px, 3.5vw, 52px);
  padding-bottom: clamp(30px, 4.2vw, 66px);
  padding-left: clamp(48px, 5vw, 90px);
  display: grid;
  align-content: center;
  gap: 16px;
  background: transparent;
}

.hero-banner__label-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-banner__label-row::after {
  content: "";
  width: min(250px, 34vw);
  height: 1px;
  background: color-mix(in srgb, var(--accent) 45%, var(--text) 55%);
}

.hero-banner__brand {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  color: var(--text);
}

.hero-banner__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: var(--text);
  max-width: 13ch;
}

.hero-banner__eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.15vw, 20px);
  font-weight: var(--fw-regular);
  line-height: 1.66;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
  max-width: 30ch;
}

.hero-banner__quote {
  margin: 4px 0 0;
  position: relative;
  padding-left: 16px;
  font-size: clamp(22px, 1.6vw, 30px);
  line-height: 1.3;
  color: var(--text);
  max-width: 22ch;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--fw-regular);
}

.hero-banner__quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: color-mix(in srgb, var(--accent) 65%, var(--text) 35%);
}

.hero-banner__actions {
  margin-top: 8px;
}

.hero-banner__cta {
  gap: 10px;
}

.hero-banner__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  z-index: 1;
  min-height: 100%;
  overflow: hidden;
  background: #ece9e8;
  pointer-events: none;
}

.hero-banner__visual::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  background:
    linear-gradient(
      90deg,
      #ece9e8 0%,
      rgba(236, 233, 232, 0.95) 25%,
      rgba(236, 233, 232, 0.65) 50%,
      rgba(236, 233, 232, 0) 100%
    );
  z-index: 1;
  pointer-events: none;
}

.hero-banner__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
  transform: scale(1.05)
    translateY(calc((var(--hero-scroll, 0) - 0.5) * -28px));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Was machen wir: Vorher/Nachher compare slider —— */
.projects-strip {
  --projects-gap: 28px;
  /* Slide width is set in JS to match .projects-gallery (one pair visible at a time). */
  --projects-slide: 100%;
  --projects-inner-gap: clamp(10px, 1.8vw, 18px);
  --projects-gallery-max-w: min(1120px, 100%);
  background: transparent;
  margin-top: 20px;
  padding: 28px 0 8px;
}

.projects-strip__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.projects-strip__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(10px, 1.6vw, 14px);
  width: 100%;
  max-width: var(--projects-gallery-max-w);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8px;
}

.projects-gallery__nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  padding: 0 clamp(2px, 0.4vw, 6px);
}

.projects-gallery {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .projects-gallery {
    scroll-behavior: auto;
  }

  .projects-strip .gallery-photo,
  .projects-compare__handle,
  .gallery-compare-card__label {
    transition: none;
  }

  .hero-banner__content > *,
  .reveal-on-scroll {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .hero-banner__visual img {
    transform: none !important;
    transition: none !important;
  }

  .service-row,
  .review-card {
    transform: none !important;
  }

  .service-row.reveal-on-scroll .service-row__content,
  .service-row.reveal-on-scroll .service-row__media,
  .service-row.reveal-on-scroll.is-visible:hover .service-row__media,
  .service-row__media-icon,
  .service-row:hover .service-row__media-icon,
  .service-row__tagline,
  .projects-strip__footer.reveal-on-scroll,
  .projects-gallery__nav.reveal-on-scroll,
  .gallery-photo.reveal-on-scroll,
  .about-values.reveal-on-scroll .about-values__title,
  .about-values.reveal-on-scroll .about-values__item,
  #vorteile .benefit-row.reveal-on-scroll .benefit-row__title,
  #vorteile .benefit-row.reveal-on-scroll .benefit-row__icon {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.projects-gallery::-webkit-scrollbar {
  display: none;
}

.projects-gallery__track {
  display: flex;
  gap: var(--projects-gap);
  width: max-content;
}

.projects-strip .gallery-photo {
  flex: 0 0 var(--projects-slide);
  box-sizing: border-box;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: transparent;
  line-height: 0;
}

.projects-compare__stage {
  --compare-pct: 50;
  --compare-radius: clamp(14px, 2.2vw, 22px);
  position: relative;
  width: 100%;
  height: clamp(240px, 38vw, 500px);
  min-height: 0;
  border-radius: var(--compare-radius);
  overflow: hidden;
  background: transparent;
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.1);
  transition: box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.projects-compare__stage.is-dragging {
  touch-action: none;
  cursor: ew-resize;
}

.projects-strip .gallery-photo.is-active .projects-compare__stage {
  box-shadow: 0 26px 52px rgba(17, 17, 17, 0.12);
}

/* Both layers share the same box; only the mask moves (clip-path), not the images. */
.projects-compare__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.projects-compare__img--before {
  z-index: 1;
}

/* Full-stage stack: Nachher image is fixed; clip-path reveals the right side only. */
.projects-compare__after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  clip-path: inset(0 0 0 calc(var(--compare-pct) * 1%));
  -webkit-clip-path: inset(0 0 0 calc(var(--compare-pct) * 1%));
  border-radius: inherit;
}

.projects-compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--compare-pct) * 1%);
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    #fff 14%,
    #fff 86%,
    rgba(255, 255, 255, 0.55) 100%
  );
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  z-index: 5;
  pointer-events: none;
}

.projects-compare__handle {
  position: absolute;
  top: 50%;
  left: calc(var(--compare-pct) * 1%);
  transform: translate(-50%, -50%);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  cursor: ew-resize;
  border-radius: 50%;
  touch-action: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(6px);
}

.projects-compare__handle-grip {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.projects-compare__handle-grip svg {
  width: 22px;
  height: 22px;
}

.projects-compare__handle:hover {
  transform: translate(-50%, calc(-50% - 2px));
  background: #fff;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.2),
    0 1px 0 #fff inset;
}

.projects-compare__handle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery-compare-card__label {
  position: absolute;
  top: auto;
  bottom: clamp(12px, 2vw, 16px);
  left: clamp(12px, 2vw, 16px);
  z-index: 8;
  pointer-events: none;
  display: inline-block;
  margin: 0;
  padding: 5px 10px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: none;
  background: rgba(17, 17, 17, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.gallery-compare-card__label[hidden] {
  display: inline-block;
  opacity: 0;
  visibility: hidden;
}

.gallery-compare-card__label--before {
  left: clamp(12px, 2vw, 16px);
}

.gallery-compare-card__label--after {
  left: auto;
  right: clamp(12px, 2vw, 16px);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-compare-card__label {
    transition: none;
  }
}

@media (max-width: 900px) {
  .projects-strip {
    --projects-gallery-max-w: 100%;
  }

  .projects-compare__stage {
    --compare-radius: 10px;
    height: clamp(220px, 52vw, 420px);
  }

  .gallery-compare-card__label {
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    padding: 4px 9px;
    font-size: 8px;
  }

  .projects-compare__handle {
    width: 44px;
    height: 44px;
  }

  .projects-gallery__center-btn {
    width: 44px;
    height: 44px;
  }

  .projects-strip__footer {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: left;
    gap: 14px;
  }

  .projects-strip__footer-icon {
    justify-self: start;
  }
}

.projects-gallery__center-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.projects-gallery__center-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-gallery__center-btn__icon svg {
  width: 22px;
  height: 22px;
}

.projects-gallery__center-btn:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.projects-gallery__center-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.projects-strip__footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2.4vw, 22px);
  width: 100%;
  max-width: var(--projects-gallery-max-w);
  margin: clamp(20px, 3vw, 28px) auto 0;
  padding-top: clamp(18px, 2.6vw, 26px);
  border-top: var(--section-rule);
  align-self: center;
}

.projects-strip__footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.projects-strip__footer-icon svg {
  width: 22px;
  height: 22px;
}

.projects-strip__footer-text {
  min-width: 0;
}

.projects-strip__footer-lead {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  color: var(--text);
}

.projects-strip__footer-sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.05vw, 15px);
  font-weight: var(--fw-regular);
  line-height: 1.45;
  color: var(--muted);
}

#vorteile.section {
  padding: 62px 0;
}

#vorteile .section-title {
  margin-bottom: clamp(20px, 2.4vw, 28px);
}

#vorteile .benefits-list {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 0;
}

#vorteile .benefit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #d8d2cf;
  transition: border-color 0.2s ease;
}

#vorteile .benefit-row:first-child {
  border-top: 1px solid #d8d2cf;
}

#vorteile .benefit-row__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.35vw, 30px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
  font-weight: 600;
  transform: translateX(0);
  transition: transform 0.22s ease;
}

#vorteile .benefit-row__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding-right: 6px;
}

#vorteile .benefit-row__icon svg {
  width: 32px;
  height: 32px;
  display: block;
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 72%, var(--text) 28%);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  transform: scale(1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#vorteile .benefit-row:hover .benefit-row__title {
  transform: translateX(6px);
}

#vorteile .benefit-row:hover .benefit-row__icon svg {
  opacity: 1;
  transform: scale(1.08);
}

#dienstleistungen {
  position: relative;
}

#dienstleistungen .section-title {
  margin-bottom: clamp(32px, 4.5vw, 56px);
}

.services-showcase {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
}

.service-row {
  --tilt-rx: 0deg;
  --tilt-ry: 0deg;
  --svc-card-r: clamp(22px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--svc-card-r);
  border: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.72), rgba(246, 243, 239, 0.88));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  transform: translateY(0) rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry));
  transform-style: preserve-3d;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}

.service-row:hover {
  transform: translateY(-2px) rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
}

.service-row--reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.service-row--reverse .service-row__media {
  order: -1;
}

.service-row__content {
  position: relative;
  padding: clamp(22px, 3.8vw, 48px) clamp(22px, 4vw, 44px);
  display: grid;
  align-content: center;
  gap: clamp(12px, 1.8vw, 18px);
}

.service-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* 02 & 04: number then dash, aligned right (mirror of 01 & 03) */
.service-row--reverse .service-row__meta {
  justify-content: flex-end;
  width: 100%;
}

.service-row--reverse .service-row__index {
  order: 1;
}

.service-row--reverse .service-row__rule {
  order: 2;
}

.service-row__rule {
  display: block;
  width: clamp(40px, 7vw, 80px);
  height: 1px;
  background: var(--line);
}

.service-row__index {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  color: var(--accent);
}

.service-row__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.65vw, 38px);
  letter-spacing: 0.01em;
  line-height: 1.08;
  color: var(--text);
  font-weight: 600;
}

.service-row__lede {
  margin: 0;
  max-width: 38em;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.68;
  color: var(--muted);
}

.service-row__media {
  position: relative;
  min-height: clamp(220px, 28vw, 360px);
  overflow: hidden;
  border-radius: 0 var(--svc-card-r) var(--svc-card-r) 0;
}

.service-row--reverse .service-row__media {
  border-radius: var(--svc-card-r) 0 0 var(--svc-card-r);
}

.service-row__media-back {
  position: absolute;
  inset: 0;
}

/* Soft horizontal scrim on real photos: depth + readability toward the text seam */
.service-row--has-photo .service-row__media-back::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.16),
    rgba(0, 0, 0, 0) 58%
  );
}

.service-row--has-photo.service-row--reverse .service-row__media-back::before {
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.16),
    rgba(0, 0, 0, 0) 58%
  );
}

.service-row__media-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-row__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-row__media-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 35%,
    rgba(17, 17, 17, 0.18) 68%,
    rgba(17, 17, 17, 0.52) 100%
  );
}

.service-row__media-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background: repeating-linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.07) 0,
    rgba(255, 255, 255, 0.07) 12px,
    transparent 12px,
    transparent 26px
  );
  pointer-events: none;
}

.service-row__media-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.26), transparent 55%);
}

.service-row--has-photo .service-row__media-fallback::before {
  opacity: 0.28;
}

.service-row__media-footer {
  position: absolute;
  inset-inline: clamp(14px, 2.8vw, 26px);
  bottom: clamp(14px, 2.8vw, 28px);
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 20px);
  z-index: 4;
}

.service-row--reverse .service-row__media-footer {
  justify-content: flex-start;
}

.service-row__tagline {
  margin: 0;
  text-align: right;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.35vw, 15px);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.service-row--reverse .service-row__tagline {
  text-align: left;
}

.service-row__tagline-line {
  display: block;
}

.service-row__media-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: background 0.28s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-row__media-icon svg {
  width: 22px;
  height: 22px;
}

.service-row:hover .service-row__media-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.service-row__media-fallback--house {
  background:
    radial-gradient(ellipse 95% 70% at 8% 88%, rgba(0, 0, 0, 0.32), transparent 55%),
    radial-gradient(ellipse 65% 55% at 88% 12%, rgba(255, 255, 255, 0.2), transparent 52%),
    linear-gradient(148deg, #334858 0%, #5f7588 36%, #8fa0ab 100%);
}

.service-row__media-fallback--window {
  background:
    radial-gradient(ellipse 90% 65% at 12% 85%, rgba(0, 0, 0, 0.28), transparent 58%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(148deg, #245a6e 0%, #3f7d94 38%, #7eb0c4 100%);
}

.service-row__media-fallback--final {
  background:
    radial-gradient(ellipse 88% 62% at 10% 80%, rgba(0, 0, 0, 0.3), transparent 55%),
    radial-gradient(circle at 82% 22%, rgba(255, 230, 200, 0.18), transparent 48%),
    linear-gradient(148deg, #4d3f38 0%, #8a6f5e 40%, #c4a589 100%);
}

.service-row__media-fallback--office {
  background:
    radial-gradient(ellipse 92% 68% at 6% 82%, rgba(0, 0, 0, 0.26), transparent 56%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(148deg, #35463b 0%, #5d7f6d 42%, #8fb8a5 100%);
}

#ueber-uns .section-title {
  margin-bottom: clamp(22px, 3vw, 34px);
}

.about-layout {
  --about-gutter: clamp(30px, 4.2vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: var(--about-gutter);
  align-items: start;
}

.about-copy {
  min-width: 0;
  max-width: 620px;
}

.about-text {
  display: grid;
  gap: 18px;
  font-family: var(--font-body);
  font-size: clamp(17px, 1.05vw, 18px);
  line-height: 1.68;
  color: var(--muted);
}

.about-text p {
  margin: 0;
}

.about-values {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 17, 17, 0.15);
}

.about-values__title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.about-values__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-values__item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, rgba(17, 17, 17, 0.3));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}

.about-collage {
  justify-self: end;
  width: min(100%, 430px);
  padding: 6px 0 0 6px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
}

.about-image {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.about-image--portrait {
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  z-index: 2;
}

.about-image--portrait img {
  object-position: center 14%;
}

.about-image--logo {
  width: min(76%, 250px);
  aspect-ratio: 1;
  margin-top: -92px;
  margin-left: auto;
  margin-right: -18px;
  padding: 0;
  background: #ffffff;
  border-radius: 16px;
  z-index: 3;
}

.about-image--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  box-shadow: none;
}

.about-highlight {
  color: var(--text);
  font-weight: var(--fw-semibold);
  display: inline;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  padding-bottom: 1px;
}

/* Kundenstimmen under «Wer bin ich?» */
.about-reviews {
  margin-top: 42px;
  padding-top: 34px;
  border-top: var(--section-rule);
}

.about-reviews__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0 0 28px;
  color: var(--text);
}

.reviews-static {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.review-card {
  --tilt-rx: 0deg;
  --tilt-ry: 0deg;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  padding: 24px 22px 26px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.045);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry));
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.review-card:hover {
  transform: translateY(-3px) rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.review-card__author {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.review-card__context {
  margin: -4px 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  color: var(--muted);
}

.review-card__stars {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
  line-height: 1;
  margin: 0;
}

.review-card__quote {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  color: var(--muted);
  font-style: normal;
  word-break: break-word;
}

.review-card__quote p {
  margin: 0 0 0.85em;
}

.review-card__quote p:last-child {
  margin-bottom: 0;
}

.reviews-all-cta {
  margin-top: 24px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  position: relative;
}

/* Vertical rule centered between the two columns */
.contact-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: var(--line-width);
  margin-left: calc(var(--line-width) / -2);
  background: var(--line-strong);
  pointer-events: none;
  z-index: 0;
}

.contact-form {
  min-width: 0;
  display: grid;
  gap: 20px;
  align-content: start;
  position: relative;
  z-index: 1;
  padding-right: clamp(28px, 5vw, 56px);
}

.contact-form__notice {
  margin: 0;
  padding: 14px 18px;
  font-size: var(--fs-sm);
  line-height: 1.45;
  border-radius: var(--radius);
}

.contact-form__notice--success {
  background: rgba(255, 255, 255, 0.85);
  border: var(--line-width) solid var(--line-strong);
  color: var(--text);
}

.contact-form__notice--error {
  background: #f5e8e6;
  border: var(--line-width) solid #8a4a42;
  color: #3d1814;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.contact-form__error {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: #8a4a42;
  font-weight: var(--fw-medium);
}

.contact-form__error:not([hidden]) {
  display: block;
}

.contact-form__field.has-error input,
.contact-form__field.has-error textarea {
  background: #f5edeb;
  box-shadow: 0 0 0 2px rgba(138, 74, 66, 0.4);
}

.contact-form__field.has-error input:focus,
.contact-form__field.has-error textarea:focus {
  background: var(--contact-input-focus);
  box-shadow: 0 0 0 2px rgba(138, 74, 66, 0.55);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  background: var(--contact-input-bg);
  min-height: 60px;
  padding: 18px 20px;
  font: inherit;
  font-size: var(--fs-base);
  color: var(--text);
  border-radius: var(--control-radius);
  box-shadow: none;
  transition: background 0.15s ease;
}

.contact-form textarea {
  min-height: unset;
  max-height: min(220px, 40vh);
  resize: vertical;
  line-height: 1.5;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(17, 17, 17, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--contact-input-focus);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 4px;
}

.contact-info {
  min-width: 0;
  position: relative;
  z-index: 1;
  padding-left: clamp(28px, 5vw, 56px);
  border-left: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vw, 40px);
}

.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 22px;
  align-items: start;
}

.contact-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.contact-item__address {
  padding-top: 0;
}

.contact-item__icon svg {
  display: block;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}

.contact-item__content p {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: var(--fw-medium);
  color: var(--text);
  line-height: 1.5;
}

.contact-item__content a {
  color: inherit;
  text-decoration: none;
}

.contact-item__content a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-top-strip {
  height: 56px;
  background: var(--bg);
}

.site-footer {
  position: relative;
  background: #332d28;
  color: var(--text-light);
  padding: 52px 0 max(40px, env(safe-area-inset-bottom, 0px));
  border-top: 2px solid #000000;
}

.site-footer-house {
  position: absolute;
  top: 0;
  right: max(20px, calc((100vw - 1200px) / 2 + 20px));
  transform: translateY(-100%);
  width: min(200px, 42vw);
  height: auto;
  color: #332d28;
  pointer-events: none;
}

.site-footer-house rect:not(.site-footer-house__bottom-mask),
.site-footer-house path {
  stroke: #000000;
  stroke-width: 2;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: clamp(34px, 7.2vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.045em;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
}

.footer-instagram-row {
  margin: 0;
}

.footer-instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--text-light);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-instagram-link:hover {
  opacity: 1;
  color: color-mix(in srgb, var(--accent) 72%, var(--text-light) 28%);
}

.footer-instagram-icon {
  display: inline-flex;
  align-items: center;
}

.footer-instagram-icon svg {
  display: block;
}

.footer-contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  row-gap: 12px;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: var(--fw-regular);
  color: #f4eee7;
  line-height: 1.4;
}

.footer-contact-bar__item {
  padding: 0 16px;
}

.footer-contact-bar__item a {
  color: var(--text-light);
  text-decoration: none;
}

.footer-contact-bar__item a:hover {
  text-decoration: underline;
  color: color-mix(in srgb, var(--accent) 68%, var(--text-light) 32%);
  text-underline-offset: 3px;
}

.footer-contact-bar__sep {
  width: 1px;
  height: 1.3em;
  align-self: center;
  background: rgba(255, 245, 236, 0.55);
  flex-shrink: 0;
}

.footer-credit {
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 245, 236, 0.18);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  letter-spacing: 0.02em;
  color: rgba(246, 241, 235, 0.52);
  text-align: center;
}

.footer-credit__link {
  color: rgba(246, 241, 235, 0.66);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-credit__link:hover {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1024px) {
  .reviews-static {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-copy {
    max-width: 100%;
  }

  .about-collage {
    justify-self: start;
    width: min(100%, 420px);
    padding-left: 0;
  }

  .about-image--portrait {
    width: min(84vw, 340px);
  }

  .about-image--logo {
    width: min(66vw, 250px);
    margin-top: -48px;
  }

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

  .contact-form,
  .contact-info {
    width: 100%;
    max-width: none;
  }

  .hero-banner__content {
    width: 52%;
    max-width: 620px;
    padding-left: clamp(28px, 4vw, 56px);
    padding-right: clamp(20px, 3vw, 40px);
  }

  .hero-banner__visual {
    width: 58%;
  }

  .contact-grid::before {
    display: none;
  }

  .contact-form {
    padding-right: 0;
  }

  .contact-info {
    padding-left: 0;
    padding-top: 28px;
    margin-top: 8px;
    border-top: var(--section-rule);
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
    --section-space: 52px;
  }

  .site-header__inner {
    min-height: var(--header-height);
  }

  #vorteile.section {
    padding: 52px 0;
  }

  #vorteile .section-title {
    margin-bottom: 16px;
  }

  #vorteile .benefit-row {
    column-gap: 10px;
    padding: 14px 0;
  }

  #vorteile .benefit-row__title {
    font-size: clamp(24px, 7.2vw, 30px);
  }

  #vorteile .benefit-row__icon {
    width: 32px;
    height: 32px;
    padding-right: 4px;
  }

  #vorteile .benefit-row__icon svg {
    width: 28px;
    height: 28px;
  }

  .section {
    padding: var(--section-space) 0;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .section-title {
    margin-bottom: 14px;
  }

  .hero {
    padding-top: 0;
    min-height: auto;
  }

  .hero__full,
  .hero-banner {
    min-height: auto;
  }

  .hero-banner {
    display: grid;
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .hero-banner__content {
    width: 100%;
    min-width: 0;
    padding: 24px 20px 26px;
    gap: 12px;
  }

  .hero-banner__label-row::after {
    width: 36vw;
  }

  .hero-banner__brand {
    font-size: 18px;
  }

  .hero-banner__title {
    font-size: clamp(36px, 12vw, 52px);
    line-height: 0.98;
    max-width: 100%;
  }

  .hero-banner__eyebrow {
    font-size: 18px;
    max-width: 100%;
  }

  .hero-banner__quote {
    font-size: 24px;
    max-width: 100%;
  }

  .hero-banner__cta {
    width: 100%;
    justify-content: center;
  }

  .hero-banner__visual {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: clamp(232px, 46vh, 540px);
  }

  .hero-banner__visual::before {
    inset: 0;
    background:
      linear-gradient(
        180deg,
        rgba(236, 233, 232, 0.95) 0%,
        rgba(236, 233, 232, 0.6) 35%,
        rgba(236, 233, 232, 0.25) 58%,
        rgba(236, 233, 232, 0.08) 78%,
        rgba(236, 233, 232, 0) 100%
      );
  }

  .hero-banner__visual img {
    object-fit: cover;
    object-position: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  #vorteile .benefit-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .service-row,
  .service-row--reverse {
    grid-template-columns: 1fr;
  }

  /* Stacked: keep a hint of asymmetry without fighting the image strip */
  .service-row:not(.service-row--reverse) {
    border-radius: clamp(12px, 3.2vw, 18px) clamp(22px, 5vw, 30px) clamp(22px, 5vw, 30px) clamp(12px, 3.2vw, 18px);
  }

  .service-row--reverse {
    border-radius: clamp(22px, 5vw, 30px) clamp(12px, 3.2vw, 18px) clamp(12px, 3.2vw, 18px) clamp(22px, 5vw, 30px);
  }

  .service-row--reverse .service-row__media {
    order: 0;
    border-radius: clamp(20px, 5vw, 28px) clamp(20px, 5vw, 28px) 0 0;
  }

  .service-row__content {
    padding: 22px 20px 24px;
  }

  .service-row__title {
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.12;
  }

  .service-row__media {
    min-height: 180px;
    border-radius: 0 0 clamp(20px, 5vw, 28px) clamp(20px, 5vw, 28px);
  }

  .about-layout {
    gap: 18px;
  }

  .about-collage {
    width: 100%;
    max-width: 320px;
    justify-self: center;
    padding-top: 0;
  }

  .about-image--portrait,
  .about-image--logo {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .about-image--portrait {
    aspect-ratio: 4 / 5;
  }

  .about-image--logo {
    margin-top: 14px;
    max-width: min(100%, 280px);
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 1;
  }

  .about-reviews {
    margin-top: 28px;
    padding-top: 24px;
  }

  .site-footer-house {
    right: 16px;
    width: min(160px, 48vw);
  }

  .footer-contact-bar {
    flex-direction: column;
    gap: 8px;
  }

  .footer-contact-bar__sep {
    display: none;
  }

  .footer-contact-bar__item {
    padding: 0;
  }
}

@media (max-width: 540px) {
  #vorteile .benefits-list {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  #vorteile .benefit-row {
    padding-bottom: 14px;
  }
}
