:root {
  --paper: #f8fbff;
  --paper-deep: #eef5ff;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9e5f5;
  --blue: #3157e8;
  --blue-dark: #1b2a9d;
  --blue-soft: #eef6ff;
  --cyan: #2ccfff;
  --white: #ffffff;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --shell: 78rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
/* Automatische Silbentrennung deaktiviert */
html, body, p, li, a, span, h1, h2, h3, h4, h5, h6 {
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--blue); color: var(--white); }

.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus { top: 1rem; }

.shell { width: min(calc(100% - 2.5rem), var(--shell)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); }
.hairline { border-top: 1px solid var(--line); }
.paper-deep { background: var(--paper-deep); }
.blue-wash { background: var(--blue-soft); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 5rem;
}
.brand { display: grid; gap: 0.15rem; width: max-content; }
.brand img { width: clamp(9.5rem, 14vw, 12rem); height: auto; }
.brand small {
  padding-left: 0.15rem;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 650;
  letter-spacing: 0.24em;
}
.desktop-nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.4rem); }
.desktop-nav a { position: relative; padding-block: 0.65rem; font-size: 0.96rem; }
.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.4rem;
  left: 0;
  height: 1px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 56%, #146dff 100%);
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.header-cta:hover,
.button:hover { border-color: var(--blue-dark); background: linear-gradient(135deg, var(--blue-dark), var(--blue)); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(49, 87, 232, 0.22); }
.button-outline { border-color: var(--blue-dark); background: transparent; color: var(--blue-dark); }
.button-outline:hover { color: var(--white); }
.button-blue { border-color: var(--blue); background: var(--blue); }
.button-blue:hover { border-color: var(--blue-dark); background: var(--blue-dark); }

.menu-button { display: none; width: 3rem; height: 3rem; border: 1px solid var(--line); background: transparent; }
.menu-button span { display: block; width: 1.35rem; height: 1px; margin: 0.33rem auto; background: var(--ink); transition: transform 180ms ease; }
.mobile-panel { display: none; }

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.display-xl,
.display-lg,
.display-md,
.display-sm {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
.display-xl { font-size: clamp(3.6rem, 7.8vw, 7.3rem); }
.display-lg { font-size: clamp(2.9rem, 5.3vw, 5.4rem); }
.display-md { font-size: clamp(2.2rem, 3.8vw, 3.9rem); line-height: 1.04; }
.display-sm { font-size: clamp(1.7rem, 2.4vw, 2.55rem); line-height: 1.08; }
.lead { max-width: 43rem; margin: 1.8rem 0 0; color: var(--muted); font-size: clamp(1.15rem, 1rem + 0.55vw, 1.38rem); line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
  background:
    radial-gradient(circle at 10% 12%, rgba(44, 207, 255, 0.17), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(49, 87, 232, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 72%);
}
.home-hero .shell { position: relative; z-index: 2; }
.home-hero .display-xl { max-width: 68rem; margin-top: 1.8rem; }
.gradient-text {
  display: inline-block;
  background: linear-gradient(100deg, var(--blue-dark) 0%, var(--blue) 52%, var(--cyan) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-brand-mark {
  position: absolute;
  top: clamp(7rem, 10vw, 11rem);
  right: clamp(-8rem, -4vw, -2rem);
  z-index: 1;
  width: clamp(28rem, 48vw, 58rem);
  opacity: 0.075;
  filter: saturate(1.18);
  pointer-events: none;
  user-select: none;
}
.hero-image {
  width: 100%;
  height: min(67vw, 49rem);
  min-height: 31rem;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  filter: saturate(0.88) contrast(0.98);
  object-fit: cover;
  object-position: center 54%;
}

.split-section { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.split-image { width: 100%; aspect-ratio: 0.82; filter: saturate(0.88) contrast(0.98); object-fit: cover; }
.split-copy { max-width: 34rem; }
.split-copy .display-lg { margin-top: 1.5rem; }
.split-copy p:not(.eyebrow) { margin: 1.8rem 0 0; color: var(--muted); }
.text-link { display: inline-flex; gap: 0.55rem; margin-top: 1.8rem; padding-bottom: 0.2rem; border-bottom: 1px solid var(--ink); font-weight: 650; }
.text-link:hover { color: var(--blue); border-color: var(--blue); }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.section-heading .display-lg { margin-top: 1.4rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.service-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--paper-deep); }
.service-card img { width: 100%; aspect-ratio: 0.86; filter: saturate(0.88) contrast(0.98); object-fit: cover; }
.service-card:nth-child(2) img { object-position: center 42%; }
.service-card:nth-child(3) img { object-position: center; background: #e6efff; }
.service-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1rem 1.25rem; }
.service-card-kicker { color: var(--blue); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.service-card h3 { margin: 0.55rem 0 0; font-family: var(--display); font-size: clamp(1.65rem, 2.2vw, 2.35rem); font-weight: 400; line-height: 1.05; }
.service-card p { margin: 1rem 0 1.5rem; color: var(--muted); font-size: 0.96rem; }
.service-card b { display: flex; justify-content: space-between; margin-top: auto; font-size: 0.88rem; }
.service-card > a { position: absolute; inset: 0; z-index: 1; }
.service-card:has(a:hover),
.service-card:has(a:focus-visible) { border-color: var(--blue); }

.steps-heading { max-width: 68rem; }
.steps-heading .display-lg { margin-top: 1.4rem; }
.steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4rem; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 2rem 1.4rem 2rem 0; border-bottom: 1px solid var(--line); }
.step:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--line); }
.step:nth-child(even) { padding-left: 2rem; }
.step-number { color: var(--blue); font-family: var(--display); font-size: 2rem; }
.step h3 { margin: 0; font-family: var(--display); font-size: 1.8rem; font-weight: 400; }
.step p { margin: 0.55rem 0 0; color: var(--muted); }

.mini-section { padding-block: clamp(4rem, 7vw, 7rem); }
.mini-section .display-md { margin-top: 1.2rem; }
.mini-section p:not(.eyebrow) { max-width: 48rem; color: var(--muted); }

.cta-panel { padding: clamp(3rem, 6vw, 5.5rem); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(27, 42, 157, 0.07), rgba(44, 207, 255, 0.10)); }
.cta-panel .display-lg { max-width: 53rem; }
.cta-panel p { color: var(--muted); }

.page-hero { padding-block: clamp(4.5rem, 8vw, 8rem); }
.page-hero .display-xl { max-width: 67rem; margin-top: 1.8rem; }
.page-image { width: 100%; height: clamp(28rem, 52vw, 42rem); margin-top: 3.5rem; filter: saturate(0.88) contrast(0.98); object-fit: cover; object-position: center; }
.content-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(3rem, 8vw, 8rem); }
.content-grid > h2 { margin: 0; font-family: var(--display); font-size: clamp(2.3rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.02; }
.prose { max-width: 47rem; }
.prose > :first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose h3 { margin: 2.5rem 0 0.7rem; font-family: var(--display); font-size: 2rem; font-weight: 400; }
.feature-list { margin: 1.8rem 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.feature-list li::before { color: var(--blue); content: "↗"; }

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.price-card { position: relative; display: flex; flex-direction: column; min-height: 34rem; padding: 2rem; background: var(--paper); }
.price-card.featured { background: var(--blue-soft); }
.price-label { color: var(--blue); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.price { margin-top: 2rem; font-family: var(--display); font-size: clamp(3rem, 5vw, 5rem); line-height: 1; }
.price small { color: var(--muted); font-family: var(--sans); font-size: 0.78rem; }
.price-suffix { margin: 0.5rem 0 0; color: var(--muted); }
.price-card h2 { margin: 2.4rem 0 0; font-family: var(--display); font-size: 2rem; font-weight: 400; }
.price-card ul { display: grid; gap: 0.7rem; margin: 1.4rem 0 2rem; padding: 0; color: var(--muted); list-style: none; }
.price-card li::before { margin-right: 0.6rem; color: var(--blue); content: "✓"; }
.price-card .button { margin-top: auto; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: 1.6rem 0; cursor: pointer; font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.3rem); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--blue); transition: transform 180ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 50rem; margin: -0.4rem 0 1.8rem; color: var(--muted); }

.form-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.contact-form { display: grid; gap: 1.2rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: 0.45rem; font-weight: 650; }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); }
.contact-form input,
.contact-form select { min-height: 3.5rem; padding: 0.75rem 0.9rem; }
.contact-form textarea { min-height: 11rem; padding: 0.9rem; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--blue); outline: 1px solid var(--blue); }
.form-note { margin: 0; color: var(--muted); font-size: 0.85rem; }
.form-status { min-height: 1.5rem; margin: 0; font-weight: 650; }
.form-status.success { color: #14734c; }
.form-status.error { color: #a63131; }
.honeypot { position: absolute !important; left: -9999px !important; }
.contact-aside { padding: 2rem; background: var(--paper-deep); }
.contact-aside h2 { margin: 0; font-family: var(--display); font-size: 2rem; font-weight: 400; }
.contact-aside p { color: var(--muted); }

.legal { max-width: 52rem; }
.legal h2 { margin: 2.8rem 0 0.7rem; font-family: var(--display); font-size: 2rem; font-weight: 400; }
.legal p { color: var(--muted); }

.site-footer { margin-top: clamp(4rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.8fr 1fr; gap: 4rem; padding-block: 4rem; }
.footer-brand img { width: 11rem; }
.footer-brand p { max-width: 19rem; color: var(--muted); }
.footer-links { display: grid; align-content: start; gap: 0.8rem; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.question-float { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 30; display: inline-flex; align-items: center; gap: 0.55rem; min-height: 3rem; padding: 0.7rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); box-shadow: 0 8px 24px rgba(27, 42, 157, 0.14); font-size: 0.9rem; }
.question-float:hover { border-color: var(--blue); color: var(--blue); }

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

@media (max-width: 1120px) {
  .desktop-nav, .header-cta { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-button { display: block; }
  .mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 49;
    display: grid;
    align-content: start;
    gap: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(6.5rem, 14vh, 8rem) max(1.25rem, calc((100vw - var(--shell)) / 2));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 220ms ease, opacity 180ms ease, visibility 220ms ease;
  }
  .mobile-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
  }
  .mobile-panel a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: clamp(1.7rem, 5.5vw, 2.35rem); line-height: 1.05; }
  .mobile-panel .button { margin-top: 1.2rem; color: var(--white); font-family: var(--sans); font-size: 1rem; }
  body.menu-open .site-header { background: var(--paper); }
  body.menu-open .menu-button span:first-child { transform: translateY(0.34rem) rotate(45deg); }
  body.menu-open .menu-button span:last-child { transform: translateY(-0.34rem) rotate(-45deg); }
  .split-section { grid-template-columns: 1fr; }
  .split-image { max-height: 44rem; aspect-ratio: 1; }
  .split-copy { max-width: 45rem; }
  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero-brand-mark { top: 9rem; right: -12rem; width: 35rem; opacity: 0.055; }
  .shell { width: min(calc(100% - 2rem), var(--shell)); }
  .display-xl { font-size: clamp(3.15rem, 15.5vw, 5.2rem); }
  .hero-image { min-height: 25rem; height: 85vw; }
  .page-image { height: 26rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .service-grid, .price-grid { grid-template-columns: 1fr; }
  .service-card img { aspect-ratio: 1.1; }
  .steps-grid { grid-template-columns: 1fr; }
  .step, .step:nth-child(odd), .step:nth-child(even) { grid-template-columns: 3.4rem 1fr; padding: 1.6rem 0; border-right: 0; }
  .field-grid, .form-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .question-float { right: 0.8rem; bottom: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ===== ZimoFlow reference homepage rebuild ===== */
.ref-hero {
  background: #030d1d;
  color: #fff;
  overflow: hidden;
}
.ref-hero-grid {
  min-height: 36rem;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(34rem, 1.12fr);
  align-items: stretch;
}
.ref-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 5.4rem 3.5rem 5.4rem 0;
}
.ref-hero .eyebrow { color: #2687ff; }
.ref-hero h1 {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-family: var(--sans);
  font-size: clamp(3.1rem, 4.9vw, 4.5rem);
  line-height: .99;
  letter-spacing: -.055em;
}
.ref-hero h1 span { color: #1478ff; }
.ref-hero-copy > p:not(.eyebrow) {
  max-width: 35rem;
  margin: 1.7rem 0 0;
  color: #d4deec;
  font-size: 1.08rem;
  line-height: 1.7;
}
.ref-hero .button { border-color: #1478ff; border-radius: .2rem; }
.ref-hero .ref-outline { border-color: #8292a9; color: #fff; background: transparent; }
.ref-hero .ref-outline:hover { border-color: #fff; background: #fff; color: #07101f; }
.ref-hero-visual {
  position: relative;
  min-width: 0;
  min-height: 36rem;
  display: flex;
  align-items: center;
}
.ref-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 0 -10rem;
  background: radial-gradient(circle at 58% 52%, rgba(19,112,255,.24), transparent 58%);
}
.ref-hero-visual img {
  position: relative;
  width: 118%;
  max-width: none;
  height: 31rem;
  margin-left: -2rem;
  border: 1px solid rgba(63,137,255,.38);
  border-radius: 1.1rem;
  box-shadow: 0 32px 80px rgba(0,0,0,.42);
  object-fit: cover;
  object-position: center;
  transform: perspective(1200px) rotateY(-5deg) rotateX(1deg);
}

.ref-intro { padding: 4.6rem 0 4.2rem; background: #fff; }
.ref-intro-grid { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(3rem,7vw,7rem); align-items: center; }
.ref-process-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  min-height: 19rem;
  padding: 3rem 2rem 2.3rem;
  overflow: hidden;
  border-radius: .4rem;
  background: linear-gradient(135deg,#030c1b,#071a38);
  color: #fff;
}
.ref-process-line { position:absolute; left:12%; right:12%; top:6.7rem; height:2px; background:linear-gradient(90deg,#1680ff,#18d2ff,#8a5cff); opacity:.9; }
.ref-process-card article { position:relative; z-index:1; text-align:center; }
.ref-process-card article > span {
  display:grid; place-items:center; width:5.4rem; height:5.4rem; margin:0 auto 1.3rem;
  border:2px solid #1680ff; border-radius:50%; background:#07172e; font-size:1.55rem; font-weight:800;
}
.ref-process-card article:nth-of-type(2) > span { border-color:#21d2f6; }
.ref-process-card article:nth-of-type(3) > span { border-color:#8a5cff; }
.ref-process-card h3 { margin:.2rem 0 .55rem; font-size:1rem; }
.ref-process-card p { margin:0 auto; max-width:10.5rem; color:#c2cede; font-size:.78rem; line-height:1.55; }
.ref-intro-copy { max-width: 39rem; }
.ref-intro-copy h2, .ref-services h2 {
  margin: 1.05rem 0 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.035em;
}
.ref-intro-copy h2 { font-size: clamp(2.5rem,4vw,4.3rem); line-height:1; }
.ref-intro-copy > p:not(.eyebrow) { color:var(--muted); margin:1.35rem 0 0; }

.ref-services { padding: 1.2rem 0 5rem; background:#fff; }
.ref-services-head { display:flex; justify-content:space-between; align-items:end; gap:2rem; margin-bottom:1.8rem; }
.ref-services h2 { font-size: clamp(2.25rem,3.3vw,3.8rem); line-height:1; }
.ref-service-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.2rem; }
.ref-service-card { position:relative; overflow:hidden; border:1px solid var(--line); border-radius:.45rem; background:#fff; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.ref-service-card:hover { transform:translateY(-4px); border-color:#8bb7ff; box-shadow:0 20px 45px rgba(24,73,145,.10); }
.ref-card-media { height: 15.5rem; overflow:hidden; background:#061226; }
.ref-card-media img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.ref-service-card:nth-child(1) .ref-card-media img { object-position:center 47%; }
.ref-service-card:nth-child(2) .ref-card-media img { object-position:center 40%; }
.ref-service-card:nth-child(3) .ref-card-media img { object-position:center 49%; }
.ref-card-body { min-height:18rem; padding:1.25rem 1.3rem 1.35rem; display:flex; flex-direction:column; }
.ref-card-body > span { color:#175eff; font-size:.72rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.ref-card-body h3 { margin:.6rem 0 0; font-family:var(--display); font-size:2rem; font-weight:400; line-height:1.02; }
.ref-card-body p { margin:1rem 0 1.4rem; color:var(--muted); font-size:.94rem; }
.ref-card-body b { display:flex; justify-content:space-between; margin-top:auto; font-size:.86rem; }
.ref-card-body i { font-style:normal; }
.ref-service-card > a { position:absolute; inset:0; z-index:2; }

.ref-benefits { padding:0 0 5rem; background:#fff; }
.ref-benefit-grid {
  display:grid; grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line); border-radius:.65rem; background:#fbfdff;
}
.ref-benefit-grid article { display:grid; grid-template-columns:3.4rem 1fr; gap:1rem; padding:1.7rem; }
.ref-benefit-grid article + article { border-left:1px solid var(--line); }
.ref-benefit-grid article > span {
  display:grid; place-items:center; width:3rem; height:3rem; border:1px solid #cbdcf8; border-radius:50%;
  color:#146dff; font-size:1.4rem; font-weight:800; background:#fff;
}
.ref-benefit-grid h3 { margin:0; font-size:.98rem; }
.ref-benefit-grid p { margin:.45rem 0 0; color:var(--muted); font-size:.82rem; line-height:1.55; }

@media (max-width:1120px) {
  .ref-hero-grid { grid-template-columns:1fr; }
  .ref-hero-copy { padding:4.5rem 0 2.5rem; }
  .ref-hero-visual { min-height:26rem; padding-bottom:3rem; }
  .ref-hero-visual img { width:100%; height:auto; margin:0; transform:none; }
  .ref-intro-grid { grid-template-columns:1fr; }
  .ref-benefit-grid { grid-template-columns:1fr 1fr; }
  .ref-benefit-grid article:nth-child(3) { border-left:0; border-top:1px solid var(--line); }
  .ref-benefit-grid article:nth-child(4) { border-top:1px solid var(--line); }
}
@media (max-width:760px) {
  .ref-hero-grid { min-height:0; }
  .ref-hero-copy { padding:3.4rem 0 2rem; }
  .ref-hero h1 { font-size:clamp(2.8rem,12vw,4rem); }
  .ref-hero-copy > p:not(.eyebrow) { font-size:1rem; }
  .ref-hero-visual { min-height:0; padding:0 0 2.5rem; }
  .ref-hero-visual img { border-radius:.65rem; }
  .ref-intro { padding:3.5rem 0; }
  .ref-process-card { grid-template-columns:1fr; min-height:0; padding:2rem; gap:1.6rem; }
  .ref-process-line { display:none; }
  .ref-process-card article { display:grid; grid-template-columns:4.2rem 1fr; column-gap:1rem; text-align:left; align-items:center; }
  .ref-process-card article > span { width:4rem; height:4rem; margin:0; grid-row:1 / span 2; }
  .ref-process-card h3 { margin:0; }
  .ref-process-card p { max-width:none; margin:.3rem 0 0; }
  .ref-services-head { align-items:flex-start; flex-direction:column; }
  .ref-service-grid { grid-template-columns:1fr; }
  .ref-card-media { height:13rem; }
  .ref-card-body { min-height:0; }
  .ref-benefit-grid { grid-template-columns:1fr; }
  .ref-benefit-grid article + article, .ref-benefit-grid article:nth-child(3), .ref-benefit-grid article:nth-child(4) { border-left:0; border-top:1px solid var(--line); }
}


/* ===== v2 refinement: ruhiger unterhalb des starken Einstiegs ===== */
.ref-benefits-clean {
  padding: 0 0 5rem;
  background: #fff;
}
.ref-benefit-grid-clean {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: #fff;
}
.ref-benefit-grid-clean article {
  display: block;
  padding: 2rem 2rem 2.1rem;
  min-height: 11rem;
}
.ref-benefit-grid-clean article + article {
  border-left: 1px solid var(--line);
}
.ref-benefit-grid-clean article > strong {
  display: block;
  margin-bottom: 1.35rem;
  color: #1769ff;
  font-size: .75rem;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: 800;
}
.ref-benefit-grid-clean h3 {
  margin: 0;
  font-size: 1rem;
}
.ref-benefit-grid-clean p {
  margin: .65rem 0 0;
  max-width: 16rem;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}

/* Service-Fotos bewusst ruhig und vollflächig */
.ref-card-media {
  background: #07101f;
}
.ref-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}
.ref-service-card:nth-child(1) .ref-card-media img { object-position: center center; }
.ref-service-card:nth-child(2) .ref-card-media img { object-position: center center; }
.ref-service-card:nth-child(3) .ref-card-media img { object-position: center center; }

@media (max-width: 980px) {
  .ref-benefit-grid-clean { grid-template-columns: 1fr 1fr; }
  .ref-benefit-grid-clean article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .ref-benefit-grid-clean article:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .ref-benefit-grid-clean { grid-template-columns: 1fr; }
  .ref-benefit-grid-clean article + article,
  .ref-benefit-grid-clean article:nth-child(3),
  .ref-benefit-grid-clean article:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .ref-benefit-grid-clean article { min-height: 0; padding: 1.55rem 0; }
}

/* v4: Originalkompositionen ohne Beschnitt oder Farbfilter. */
.ref-card-media {
  height: auto;
  aspect-ratio: 1672 / 941;
}
.ref-card-media img {
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  filter: none;
}
.page-image {
  width: min(calc(100% - 2.5rem), var(--shell));
  height: auto;
  aspect-ratio: 1672 / 941;
  margin-inline: auto;
  object-fit: contain;
  filter: none;
  border-radius: .45rem;
  background: #07101f;
}
@media (max-width: 760px) {
  .page-image { width: calc(100% - 2rem); }
}

/* v4: Das versteckte Mobilmenü darf die Seite nicht verbreitern. */
@media (max-width: 1120px) {
  .header-inner { position: relative; z-index: 50; }
  .mobile-panel { transform: translateY(-.5rem); }
  .mobile-panel.is-open { transform: none; }
}
@media (max-width: 760px) {
  .page-hero .display-xl {
    font-size: clamp(2.15rem, 10vw, 4.5rem);
    overflow-wrap: anywhere;
  }
  .legal h2 { font-size: clamp(1.4rem, 6vw, 2rem); overflow-wrap: anywhere; }
}

/* v4.1: picture preserves existing image geometry; intrinsic logo ratio avoids CLS. */
.ref-card-media picture { display: block; }
.footer-brand img { height: auto; }
/* More balanced card bodies without the old fixed 18rem of empty space. */
.ref-service-card { display: flex; flex-direction: column; }
.ref-card-body { flex: 1; min-height: 0; }
@media (min-width: 761px) and (max-width: 980px) {
  .ref-card-body { padding-inline: 1rem; }
  .ref-card-body > span { font-size: .66rem; letter-spacing: .1em; }
  .ref-card-body h3 { font-size: 1.7rem; }
}
.page-hero > picture { display: block; }
