:root {
  --blue-950: #061b3a;
  --blue-900: #082754;
  --blue-800: #0b3f8a;
  --blue-700: #0d56b7;
  --blue-600: #1267d8;
  --blue-100: #eaf3ff;
  --text: #061b3a;
  --muted: #51627a;
  --line: #d8e2ee;
  --page: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(6, 27, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 78% 10%, rgba(18, 103, 216, 0.10), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--page) 42%, #ffffff 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(6, 27, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 27, 58, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.55), transparent);
}

body::after {
  content: "";
  position: fixed;
  left: 30px;
  right: 30px;
  top: 18px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-700), transparent 24%, transparent 76%, var(--blue-700));
  opacity: 0.45;
  pointer-events: none;
}

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

/* GLOBAL HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  font-size: 27px;
  line-height: 1;
  letter-spacing: 7px;
  font-weight: 500;
  color: var(--blue-950);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: #42536b;
  white-space: nowrap;
}

.nav a {
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--blue-700);
}


/* DROPDOWN NAVIGATION */

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.62;
}

.dropdown-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  min-width: 235px;
  padding: 10px;
  border: 1px solid rgba(6, 27, 58, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(6, 27, 58, 0.14);
  backdrop-filter: blur(18px);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 200;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #344960;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  color: var(--blue-700);
  background: rgba(18, 103, 216, 0.08);
}

.dropdown-label {
  display: block;
  padding: 8px 12px 7px;
  color: #8392a5;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-pill {
  border: 1px solid rgba(6, 27, 58, 0.22);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--blue-950) !important;
  background: #ffffff;
}

.contact-pill:hover,
.contact-pill.active {
  background: var(--blue-950);
  color: #ffffff !important;
  border-color: var(--blue-950);
}

/* LANGUAGE */

.lang {
  display: flex;
  gap: 7px;
  margin-left: 6px;
}

.lang a {
  font-size: 11px;
  letter-spacing: 1px;
  border: 1px solid rgba(6, 27, 58, 0.18);
  border-radius: 999px;
  padding: 6px 9px;
  color: #50627b;
  background: #ffffff;
}

.lang a.active {
  background: var(--blue-700);
  color: #ffffff;
  border-color: var(--blue-700);
}

/* LOCAL SECTION NAV */

.local-nav {
  position: sticky;
  top: 73px;
  z-index: 45;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.local-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 13px 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
}

.local-title {
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--blue-700);
  margin-right: 8px;
  font-weight: 700;
}

.local-inner a {
  font-size: 14px;
  color: #3f5168;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.local-inner a:hover,
.local-inner a.active {
  color: var(--blue-700);
  border-bottom-color: var(--blue-700);
}

/* HERO */

.construction-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -6px 0 26px;
  padding: 10px 18px;
  border: 1px solid rgba(13, 86, 183, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(6, 27, 58, 0.07);
}


.hero {
  position: relative;
  max-width: 1180px;
  margin: 34px auto 54px;
  padding: 58px 56px 64px;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: 46px;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 45%, rgba(255,255,255,0.78) 56%, rgba(255,255,255,0.10) 72%),
    linear-gradient(135deg, #dfeeff 0%, #ffffff 30%, #c7d7e7 58%, #8da6bc 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 49%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.86), rgba(255,255,255,0.05) 30%),
    linear-gradient(90deg, rgba(6,27,58,0.08) 1px, transparent 1px),
    linear-gradient(rgba(6,27,58,0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f9fbff, #d8e6f4 42%, #b7c6d4 100%);
  background-size: auto, 56px 56px, 56px 56px, auto;
  opacity: 0.95;
}

/* Decorative hero mascot removed */
.hero::after {
  display: none;
}

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

.hero.center {
  text-align: center;
  min-height: calc(100vh - 77px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 34px;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-top: 0;
  margin-bottom: 0;
}

.hero.center::before,
.hero.center::after {
  display: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--blue-950);
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
  max-width: 820px;
}

.hero p {
  font-size: 22px;
  line-height: 1.48;
  color: #152a47;
  max-width: 710px;
  margin: 0 0 30px;
}

.hero.center p {
  margin-left: auto;
  margin-right: auto;
  color: #31465f;
}

/* BUTTONS */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero.center .buttons {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(6, 27, 58, 0.22);
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 15px;
  min-height: 44px;
  color: var(--blue-950);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(6,27,58,0.06);
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(6,27,58,0.12);
}

.btn.primary {
  background: var(--blue-700);
  color: #ffffff;
  border-color: var(--blue-700);
}

/* CONTENT */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 34px 90px;
}

.clean-note {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px;
  background: #ffffff;
  color: #18304f;
  box-shadow: 0 14px 38px rgba(6, 27, 58, 0.07);
}

.dev-notice {
  margin-top: 28px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(6, 27, 58, 0.45);
}

/* FOOTER */

.footer {
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 26px 34px;
  color: rgba(6, 27, 58, 0.48);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .header-inner {
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px 18px;
  }

  .logo {
    font-size: 24px;
  }

  .local-nav {
    top: 121px;
  }

  .hero {
    grid-template-columns: 1fr;
    margin: 24px 20px 44px;
    padding: 46px 34px 320px;
    min-height: auto;
  }

  .hero::before {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 270px;
  }


  .hero h1 {
    font-size: clamp(38px, 7vw, 52px);
  }

  .hero p {
    font-size: 20px;
  }
}

@media (max-width: 620px) {
  body::after {
    left: 18px;
    right: 18px;
  }

  .header-inner,
  .local-inner,
  .section,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .logo {
    font-size: 19px;
    letter-spacing: 4px;
  }

  .nav {
    font-size: 13px;
  }

  .local-nav {
    top: 116px;
  }

  .local-inner {
    gap: 16px;
  }

  .hero {
    margin: 18px 14px 36px;
    padding: 38px 24px 280px;
    border-radius: 20px;
  }

  .hero.center {
    min-height: auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  .eyebrow {
    letter-spacing: 4px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.12;
  }

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

  .buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero.center .buttons {
    align-items: center;
  }

  .btn {
    width: auto;
  }
}



/* GLITCH LOGO + ELECTRIC FUZZ — LIGHT HEADER ADAPTED
   Motion behavior is based on the approved dark-background test:
   - idle glitch burst every 6s
   - hover: fast electric fuzz + stronger glitch layers
   - HUMMMM sound stays in assets/glitch-hum.js
*/
.logo.glitch-logo {
  position: relative;
  display: inline-block;
  color: #07162f;
  cursor: pointer;
  user-select: none;
  isolation: isolate;
  white-space: nowrap;
  animation: logo-glitch-idle 6s infinite;
  will-change: transform, text-shadow;
  text-shadow: none;
}

.logo.glitch-logo::before,
.logo.glitch-logo::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  will-change: transform, clip-path, opacity;
}

.logo.glitch-logo::before {
  color: #006eff;
  transform: translateX(-4px);
  clip-path: inset(0 0 55% 0);
  animation: glitch-blue 6s infinite;
}

.logo.glitch-logo::after {
  color: #00bfff;
  transform: translateX(4px);
  clip-path: inset(45% 0 0 0);
  animation: glitch-cyan 6s infinite;
}

.logo.glitch-logo:hover,
.logo.glitch-logo:focus-visible {
  animation: electric-fuzz 0.075s infinite;
  color: #07162f;
  text-shadow:
    1px 0 rgba(0, 110, 255, 0.45),
   -1px 0 rgba(0, 191, 255, 0.35);
}

.logo.glitch-logo:hover::before,
.logo.glitch-logo:focus-visible::before,
.logo.glitch-logo:hover::after,
.logo.glitch-logo:focus-visible::after {
  opacity: 0.9;
  filter: none;
  animation-duration: 0.7s;
}

@keyframes logo-glitch-idle {
  0%, 91%, 96%, 100% {
    transform: none;
    text-shadow: none;
  }

  92% {
    transform: translateX(1px);
    text-shadow: 4px 0 rgba(0, 110, 255, 0.45);
  }

  93% {
    transform: translateX(-1px);
    text-shadow: -4px 0 rgba(0, 191, 255, 0.38);
  }

  94% {
    transform: translateX(1px);
    text-shadow:
      4px 0 rgba(0, 110, 255, 0.42),
     -4px 0 rgba(0, 191, 255, 0.32);
  }

  95% {
    transform: none;
    text-shadow: none;
  }
}

@keyframes glitch-blue {
  0%, 91%, 96%, 100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  92% {
    opacity: 0.85;
    transform: translate(-4px, -1px);
    clip-path: inset(0 0 70% 0);
  }

  93% {
    opacity: 0.55;
    transform: translate(4px, 1px);
    clip-path: inset(20% 0 50% 0);
  }

  94% {
    opacity: 0.9;
    transform: translate(-4px, 0);
    clip-path: inset(55% 0 20% 0);
  }

  95% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes glitch-cyan {
  0%, 91%, 96%, 100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  92% {
    opacity: 0.65;
    transform: translate(4px, 1px);
    clip-path: inset(50% 0 15% 0);
  }

  93% {
    opacity: 0.9;
    transform: translate(-4px, -1px);
    clip-path: inset(10% 0 65% 0);
  }

  94% {
    opacity: 0.55;
    transform: translate(4px, 0);
    clip-path: inset(75% 0 5% 0);
  }

  95% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes electric-fuzz {
  0% {
    transform: translate(0, 0) skewX(0deg);
  }

  15% {
    transform: translate(-0.8px, 0.4px) skewX(-0.4deg);
  }

  30% {
    transform: translate(0.7px, -0.5px) skewX(0.5deg);
  }

  45% {
    transform: translate(-0.5px, -0.7px) skewX(-0.3deg);
  }

  60% {
    transform: translate(0.9px, 0.6px) skewX(0.4deg);
  }

  75% {
    transform: translate(-0.6px, 0.3px) skewX(-0.2deg);
  }

  100% {
    transform: translate(0, 0) skewX(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo.glitch-logo,
  .logo.glitch-logo::before,
  .logo.glitch-logo::after,
  .logo.glitch-logo:hover,
  .logo.glitch-logo:focus-visible {
    animation: none;
  }
}



/* MOBILE CLICK DROPDOWNS + NO HORIZONTAL OVERFLOW */
.nav-item.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .site-header,
  .header-inner,
  .nav {
    max-width: 100vw;
  }

  .nav {
    position: relative;
    overflow: visible;
  }

  .nav-item {
    position: relative;
  }

  .dropdown-menu {
    position: fixed;
    left: 50%;
    top: var(--dropdown-top, 142px);
    width: min(360px, calc(100vw - 28px));
    min-width: 0;
    max-width: calc(100vw - 28px);
    max-height: min(58vh, 420px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    z-index: 1000;
    transform: translateX(-50%) translateY(8px);
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-item:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
  }

  .nav-item.is-open .dropdown-menu,
  .nav-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .dropdown-menu a,
  .dropdown-label {
    white-space: normal;
  }

  .hero {
    max-width: calc(100vw - 28px);
    overflow: hidden;
  }

  .hero h1,
  .hero p {
    overflow-wrap: break-word;
  }
}

@media (max-width: 620px) {
  .dropdown-menu {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    border-radius: 18px;
  }

  .logo {
    max-width: calc(100vw - 40px);
  }
}




/* IMMOBILIEN SERVICE DETAIL CONTENT */
.service-detail {
  max-width: 1180px;
  margin: -10px auto 76px;
  padding: 0 34px;
}

.service-detail-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(6, 27, 58, 0.08);
  overflow: hidden;
}

.service-detail-intro {
  padding: 38px 42px 30px;
  border-bottom: 1px solid var(--line);
}

.service-detail-kicker {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.service-detail h2 {
  margin: 0 0 16px;
  color: var(--blue-950);
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.service-detail p {
  margin: 0;
  color: #203652;
  font-size: 18px;
  line-height: 1.62;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.service-detail-block {
  padding: 30px 32px 34px;
  border-right: 1px solid var(--line);
}

.service-detail-block:last-child {
  border-right: 0;
}

.service-detail-block h3 {
  margin: 0 0 16px;
  color: var(--blue-950);
  font-size: 22px;
  line-height: 1.18;
}

.service-detail-block ul,
.service-detail-block ol {
  margin: 0;
  padding-left: 20px;
  color: #263b58;
  font-size: 16px;
  line-height: 1.6;
}

.service-detail-block li + li {
  margin-top: 8px;
}

.service-detail-cta {
  padding: 30px 42px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background:
    linear-gradient(90deg, rgba(234,243,255,0.90), rgba(255,255,255,0.92)),
    linear-gradient(135deg, #ffffff, #dcecff);
}

.service-detail-cta p {
  max-width: 720px;
  font-size: 18px;
  color: #18304f;
}

@media (max-width: 980px) {
  .service-detail {
    margin-top: -10px;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-detail-block:last-child {
    border-bottom: 0;
  }

  .service-detail-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .service-detail {
    padding-left: 14px;
    padding-right: 14px;
    margin-bottom: 50px;
  }

  .service-detail-card {
    border-radius: 20px;
  }

  .service-detail-intro,
  .service-detail-block,
  .service-detail-cta {
    padding-left: 24px;
    padding-right: 24px;
  }

  .service-detail p {
    font-size: 17px;
  }
}

/* FINAL UNIFIED LAYOUT V35 */

/* Footer pinned to bottom when content is short */
html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.footer {
  margin-top: auto !important;
  flex-shrink: 0;
}

/* Unified hero for all standard pages */
.hero:not(.center) {
  width: min(1440px, calc(100vw - 32px));
  max-width: none;
  min-height: 270px;
  height: auto;
  margin: 18px auto 0;
  padding: 38px 44px;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(580px, 1.25fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 56px;
  overflow: hidden;
}

.hero:not(.center) .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 14px;
  align-self: end;
  font-size: 12px;
  letter-spacing: 5px;
}

.hero:not(.center) p {
  grid-column: 1;
  grid-row: 2;
  max-width: 620px;
  margin: 0;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.38;
}

.hero:not(.center) .buttons {
  grid-column: 1;
  grid-row: 3;
  margin-top: 22px;
  align-self: start;
  justify-content: flex-start;
}

.hero:not(.center) h1 {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 3.45vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero.center {
  min-height: calc(100vh - 150px);
}

/* Unified card grids: same width as Hero, same card format everywhere */
.service-image-grid,
.service-image-grid--compact {
  width: min(1440px, calc(100vw - 32px));
  max-width: none;
  margin: 32px auto 58px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* All service cards share one size/aspect ratio, including Immobilien */
.service-image-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 0.82;
  height: auto;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(6, 27, 58, 0.08);
  box-shadow: 0 16px 40px rgba(6, 27, 58, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.service-image-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(6, 27, 58, 0.14);
  filter: saturate(1.03) contrast(1.02);
}

.service-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-image-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.94) 64%, #ffffff 100%);
  pointer-events: none;
}

.service-card-title {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-950);
  font-size: clamp(24px, 1.65vw, 31px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: right;
}

.service-card-arrow {
  color: var(--blue-700);
  font-weight: 500;
}

/* Cards with descriptions for non-Immobilien sections */
.service-image-card--text::after {
  height: 64%;
}

.service-card-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.service-image-card--text .service-card-title {
  position: static;
  justify-content: flex-start;
  text-align: left;
  font-size: clamp(20px, 1.35vw, 25px);
}

.service-card-desc {
  display: block;
  color: #263b58;
  font-size: clamp(13px, 0.85vw, 15px);
  line-height: 1.35;
  max-width: 95%;
}

/* Service detail text pages */
.service-detail {
  max-width: 1180px;
  margin: 28px auto 76px;
  padding: 0 34px;
}

@media (max-width: 1180px) {
  .service-image-grid,
  .service-image-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero:not(.center) {
    width: auto;
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin: 24px 20px 0;
    padding: 42px 34px 280px;
    row-gap: 0;
  }

  .hero:not(.center) .eyebrow,
  .hero:not(.center) p,
  .hero:not(.center) .buttons,
  .hero:not(.center) h1 {
    grid-column: 1;
    grid-row: auto;
  }

  .hero:not(.center) h1 {
    margin-top: 28px;
    font-size: clamp(36px, 7vw, 48px);
  }

  .service-image-grid,
  .service-image-grid--compact {
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 26px 20px 60px;
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .hero:not(.center) {
    margin: 18px 14px 0;
    padding: 34px 24px 250px;
  }

  .hero:not(.center) p {
    font-size: 18px;
  }

  .hero:not(.center) h1 {
    font-size: clamp(32px, 9.4vw, 40px);
  }

  .service-image-grid,
  .service-image-grid--compact {
    grid-template-columns: 1fr;
    margin: 22px 14px 48px;
    gap: 16px;
  }

  .service-image-card {
    aspect-ratio: 1 / 0.86;
    border-radius: 22px;
  }

  .service-card-title,
  .service-image-card--text .service-card-title {
    font-size: 26px;
  }

  .service-card-desc {
    font-size: 14px;
  }

  .service-detail {
    margin-top: 22px;
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* FINAL FIX V36 — preserve Video card aspect ratio + desktop image zoom */
.service-image-card {
  aspect-ratio: 452 / 514 !important; /* reference: Video card asset ratio, do not make horizontal */
  height: auto !important;
  min-height: 0 !important;
}

.service-image-card img {
  transition: transform 0.35s ease;
  transform-origin: center center;
  will-change: transform;
}

/* Image zoom only on desktop / hover-capable devices */
@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  .service-image-card:hover img {
    transform: scale(2);
  }
}

/* Keep mobile/tablet stable: no zoom and same card ratio */
@media (max-width: 980px) {
  .service-image-card:hover img {
    transform: none;
  }
}


/* FINAL V40 — compact centered hero, desktop hover scale 1.5 */
.hero:not(.center) {
  min-height: 162px !important;
  height: auto !important;
  padding: 24px 36px !important;
  align-items: center !important;
}

.hero:not(.center) .eyebrow {
  align-self: center !important;
  margin: 0 0 8px !important;
  font-size: 11px !important;
}

.hero:not(.center) p {
  align-self: center !important;
  font-size: clamp(15px, 1.05vw, 17px) !important;
  line-height: 1.34 !important;
}

.hero:not(.center) .buttons {
  margin-top: 16px !important;
}

.hero:not(.center) h1 {
  align-self: center !important;
  justify-self: start !important;
  font-size: clamp(30px, 2.55vw, 41px) !important;
  line-height: 1.08 !important;
  max-width: 760px !important;
}

.hero.center {
  text-align: center !important;
  min-height: calc(100vh - 150px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero.center h1 {
  text-align: center !important;
  font-size: clamp(42px, 5vw, 64px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero.center p {
  text-align: center !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: clamp(18px, 1.65vw, 25px) !important;
}

.hero-subline {
  margin-top: -14px !important;
  color: #51627a !important;
  font-size: clamp(15px, 1.15vw, 18px) !important;
}

/* Desktop zoom requested: image scale 1.5 only */
@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  .service-image-card:hover img {
    transform: scale(1.5) !important;
  }
}

@media (max-width: 980px) {
  .hero:not(.center) {
    min-height: auto !important;
    padding: 32px 28px 220px !important;
  }

  .hero:not(.center) h1 {
    font-size: clamp(32px, 6.4vw, 42px) !important;
    margin-top: 22px !important;
  }

  .service-image-card:hover img {
    transform: none !important;
  }
}

@media (max-width: 620px) {
  .hero:not(.center) {
    padding: 30px 22px 210px !important;
  }
}


/* FINAL V44 — smooth service card gradient 80% to 0%, no solid white band */
.service-image-card::after,
.service-image-card--text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(255,255,255,.80) 0%,
    rgba(255,255,255,.62) 22%,
    rgba(255,255,255,.38) 48%,
    rgba(255,255,255,.16) 72%,
    rgba(255,255,255,0) 100%
  ) !important;
}


/* DIGITAL TWINS FULL LANDING V45 */
.dt-landing {
  width: min(1320px, calc(100vw - 48px));
  margin: 0 auto;
}

.dt-hero-section,
.dt-section,
.dt-final-cta {
  width: 100%;
  margin: 0 auto;
  padding: 72px 56px;
  background: rgba(255,255,255,.60);
  border-left: 1px solid rgba(170,197,225,.55);
  border-right: 1px solid rgba(170,197,225,.55);
  border-top: 1px solid rgba(170,197,225,.55);
}

.dt-hero-section {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 38px;
  align-items: center;
  min-height: 560px;
  border-radius: 28px 28px 0 0;
}

.dt-final-cta {
  display: grid;
  place-items: center;
  min-height: 340px;
  text-align: center;
  border-bottom: 1px solid rgba(170,197,225,.55);
  border-radius: 0 0 28px 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(238,246,255,.88));
}

.dt-final-cta > div {
  max-width: 860px;
}

.dt-section-head {
  max-width: 900px;
  margin-bottom: 32px;
}

.dt-section-head.narrow {
  max-width: 760px;
}

.dt-landing h1 {
  margin: 0 0 24px;
  color: var(--blue-950, #071d42);
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.dt-landing h2 {
  margin: 0 0 18px;
  color: var(--blue-950, #071d42);
  font-size: clamp(36px, 4.7vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.dt-landing h3 {
  margin: 0 0 10px;
  color: var(--blue-950, #071d42);
  font-size: 22px;
  line-height: 1.15;
}

.dt-landing p {
  font-size: 19px;
  line-height: 1.55;
}

.dt-landing .lead {
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.28;
  font-weight: 800;
}

.dt-landing .blue {
  color: var(--blue-700, #0b66e4);
}

.dt-image-slot,
.thumb-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7890ad;
  font-weight: 800;
  line-height: 1.45;
  border: 1px dashed #9ebce0;
  background:
    linear-gradient(140deg, rgba(255,255,255,.72), rgba(221,236,255,.72)),
    repeating-linear-gradient(90deg, rgba(4,40,90,.08) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(4,40,90,.06) 0 1px, transparent 1px 52px);
}

.dt-image-slot {
  border-radius: 24px;
}

.dt-hero-image {
  min-height: 480px;
}

.dt-cards {
  display: grid;
  gap: 24px;
}

.dt-cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dt-cards.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dt-cards article,
.dt-side-notes article,
.dt-mini-list article,
.dt-process-grid article {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(207,224,244,.95);
  border-radius: 22px;
  padding: 28px;
}

.dt-cards p,
.dt-side-notes p,
.dt-mini-list p {
  font-size: 16px;
}

.dt-experience-layout {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 22px;
  align-items: center;
  margin-top: 34px;
}

.dt-side-notes {
  display: grid;
  gap: 18px;
}

.dt-main-image {
  min-height: 520px;
}

.dt-benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  margin-top: 34px;
  background: rgba(207,224,244,.95);
  border: 1px solid rgba(207,224,244,.95);
  border-radius: 24px;
  overflow: hidden;
}

.dt-benefit-strip div {
  padding: 28px;
  background: rgba(255,255,255,.88);
  text-align: center;
}

.dt-benefit-strip p {
  font-size: 16px;
}

.dt-street-view {
  margin: 28px 0 0;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(90deg,#eef5ff,#f7fbff);
  color: var(--blue-700, #0b66e4);
  text-align: center;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}

.dt-process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
  margin-top: 34px;
  align-items: stretch;
}

.dt-process-grid article {
  display: flex;
  flex-direction: column;
  min-height: 470px;
  min-width: 0;
  padding: 22px;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border: 3px solid var(--blue-700, #0b66e4);
  border-radius: 50%;
  color: var(--blue-700, #0b66e4);
  font-size: 22px;
  font-weight: 800;
}

.dt-process-grid article h3 {
  min-height: 58px;
}

.dt-process-grid article p {
  flex: 1 1 auto;
  font-size: 15px;
}

.thumb-slot {
  width: 100%;
  height: 150px;
  margin-top: auto;
  border-radius: 16px;
  font-size: 14px;
}

.dt-split-head {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 52px;
  align-items: start;
}

.dt-mini-list {
  display: grid;
  gap: 16px;
}

.dt-before-after {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.dt-before-after-image {
  min-height: 320px;
}

.dt-style-strip {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(207,224,244,.95);
  border-radius: 22px;
  background: #eef5ff;
  text-align: center;
}

.dt-style-strip div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
  color: var(--blue-950, #071d42);
  font-weight: 800;
}

@media (max-width: 980px) {
  .dt-landing {
    width: calc(100vw - 28px);
  }

  .dt-hero-section,
  .dt-section,
  .dt-final-cta {
    padding: 42px 24px;
  }

  .dt-hero-section,
  .dt-experience-layout,
  .dt-split-head {
    grid-template-columns: 1fr;
  }

  .dt-cards.three,
  .dt-cards.six,
  .dt-benefit-strip,
  .dt-process-grid,
  .dt-style-strip div {
    grid-template-columns: 1fr;
  }

  .dt-process-grid article {
    min-height: 0;
  }

  .dt-process-grid article h3 {
    min-height: 0;
  }

  .dt-landing h1 {
    font-size: 44px;
  }

  .dt-landing h2 {
    font-size: 38px;
  }
}


/* FINAL V48 — Digital Twins blocks exactly match current Hero width */
.dt-landing {
  width: min(1440px, calc(100vw - 32px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.dt-hero-section,
.dt-section,
.dt-final-cta {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 980px) {
  .dt-landing {
    width: auto !important;
    max-width: none !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
}

@media (max-width: 620px) {
  .dt-landing {
    margin-left: 14px !important;
    margin-right: 14px !important;
  }
}


/* FINAL V49 — service-page PNG image slots */
.dt-image-slot img,
.thumb-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dt-image-slot,
.thumb-slot {
  overflow: hidden;
}
