/* =========================================================
   Raumausstattung Hildermann – Stylesheet
   Farbwelt: Logo-Blau + Nachtblau + warmes Kalkputz-Sand
   ========================================================= */

/* Schriften liegen auf dem eigenen Server (keine Verbindung zu Google).
   Beide stehen unter der SIL Open Font License 1.1 – frei nutzbar, auch gewerblich (Lizenztexte in /fonts). */
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/Outfit-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('../fonts/SourceSans3-latin.woff2') format('woff2');
}

:root {
  --blue: #0294DA;          /* Logo-Blau */
  --blue-600: #0279B5;
  --blue-700: #0A5F8E;
  --blue-300: #7FCBF2;
  --ink: #0D1B2A;           /* Nachtblau */
  --ink-2: #1B2E43;
  --ink-soft: #46576A;
  --sand: #F3EDE4;          /* Kalkputz */
  --sand-2: #EAE1D3;
  --sand-3: #DCCFBC;
  --card: #FBF8F3;
  --stone: #6F7777;         /* Logo-Grau */
  --line: rgba(13, 27, 42, .12);
  --error: #B4380C;
  --ok: #0F766E;

  --r-lg: 28px;
  --r-md: 18px;
  --shadow-lg: 0 30px 60px -32px rgba(13, 27, 42, .45);
  --shadow-md: 0 14px 30px -20px rgba(13, 27, 42, .4);
  --f-display: 'Outfit', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --f-body: 'Source Sans 3', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -.02em; line-height: 1.04; font-weight: 700; }
h1:focus, h2:focus { outline: none; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border: 0; border-radius: 999px;
  font: 600 16px/1 var(--f-display); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s;
}
.btn .ic { transition: transform .25s var(--ease); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 14px 26px -14px rgba(2, 148, 218, .9); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn--primary:hover .ic { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(13, 27, 42, .25); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn--sm { padding: 11px 18px; font-size: 15px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 600 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700);
}
.eyebrow__dot { width: 10px; height: 10px; border: 2.5px solid var(--blue); border-radius: 2px; transform: rotate(45deg); }
.eyebrow--light { color: var(--blue-300); }

/* =========================================================
   Kopfzeile + Reiter
   ========================================================= */
.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 20px;
  padding: 12px var(--gutter);
}
.brand { flex: none; display: block; border-radius: 8px; }
.brand img { display: block; height: clamp(46px, 7.4vh, 62px); width: auto; }

.tabs {
  position: relative; margin: 0 auto;
  display: flex; gap: 2px; padding: 5px;
  background: rgba(13, 27, 42, .06); border-radius: 999px;
}
.tabs a {
  position: relative; z-index: 1;
  padding: 10px 18px; border-radius: 999px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 500 15px/1.2 var(--f-display);
  transition: color .35s;
}
.tabs a:hover:not([aria-current]) { color: var(--blue-700); }
.tabs a[aria-current="page"] { color: #fff; }
.tabs__pill {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0;
  border-radius: 999px; background: var(--ink);
  box-shadow: 0 8px 18px -10px rgba(13, 27, 42, .8);
  transition: transform .55s var(--ease), width .55s var(--ease);
}
.tabs__pill::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 7px; height: 7px; margin-left: -3.5px;
  background: var(--blue); border-radius: 1.5px; transform: rotate(45deg);
}

.call {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 20px 5px 5px; border-radius: 999px;
  background: var(--blue); color: #fff; text-decoration: none;
  box-shadow: 0 12px 22px -14px rgba(2, 148, 218, .9);
  transition: background-color .25s, transform .25s var(--ease);
}
.call:hover { background: var(--blue-600); transform: translateY(-2px); }
.call__ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.call__ic .ic { width: 19px; height: 19px; animation: ring 5s ease-in-out infinite; }
.call__txt { display: flex; flex-direction: column; gap: 2px; font: 700 16.5px/1.05 var(--f-display); letter-spacing: .01em; white-space: nowrap; }
.call__txt small { font: 600 10.5px/1.1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; opacity: .85; }

/* =========================================================
   Panels (Reiter-Inhalte) + Rauten-Übergang
   ========================================================= */
main { position: relative; z-index: 1; min-height: 0; overflow: hidden; outline: none; }

.panel {
  position: absolute; inset: 0;
  display: none;
  padding: 6px var(--gutter) 16px;
  overflow-x: hidden; overflow-y: auto;
  background: var(--sand);
  transform-origin: 50% 30%;
}
.panel.is-active { display: block; }
.panel[hidden] { display: none !important; }
.panel.is-entering { z-index: 3; }
.panel.is-leaving { z-index: 1; }
.panel__inner { height: 100%; max-width: 1360px; margin: 0 auto; }

.wipe { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; }
.wipe__blue { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linejoin: round; }
.wipe__gray { fill: none; stroke: var(--stone); stroke-width: 3.5; stroke-linejoin: round; opacity: .8; }

.footer {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 8px var(--gutter) 10px;
  font-size: 13.5px; color: var(--ink-soft);
}
.footer nav { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--blue-700); text-decoration: underline; }

.dock { display: none; }
.infotab { display: none; }

/* ---------- Intro (einmal pro Besuch) ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--ink); }
.intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 45% at 50% 50%, rgba(2, 148, 218, .2), rgba(2, 148, 218, 0) 70%); }
html.intro-skip .intro { display: none; }
/* Notbremse: Falls ein Skript nicht läuft, verschwindet das Intro trotzdem */
html.intro-play .intro { animation: introFailsafe .5s 4s forwards; }
.intro__logo { position: relative; width: min(80vw, 580px); aspect-ratio: 1116 / 394; }
.intro__marks, .intro__word { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.intro__big {
  fill: none; stroke: #22A9EC; stroke-width: 23.5; stroke-linejoin: round;
  /* Durch das Strich-Muster sind Anfang/Ende der Linie offene Enden statt einer Ecke –
     runde Enden schließen die obere Spitze genau wie die runde Ecke im Logo */
  stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: introDraw .8s .1s cubic-bezier(.6, 0, .2, 1) forwards;
}
.intro__small {
  fill: none; stroke: #C3CCD1; stroke-width: 15.5; stroke-linejoin: round;
  transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.2) rotate(-90deg);
  animation: introPop .55s .5s cubic-bezier(.3, 1.4, .5, 1) forwards;
}
.intro__word { opacity: 0; clip-path: inset(0 100% 0 0); animation: introWord .7s .55s var(--ease) forwards; }
.intro__edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.intro__edge polygon { fill: none; stroke: var(--blue); stroke-width: 12; stroke-linejoin: round; }
html.intro-play .hero__text > *, html.intro-play .hl__stroke path, html.intro-play .badges li { animation-play-state: paused; }

/* =========================================================
   START
   ========================================================= */
.hero {
  height: 100%; max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(20px, 3vw, 56px);
}
.hero__text > * { animation: rise .9s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }
.hero__text > :nth-child(5) { animation-delay: .32s; }

.hero h1 {
  font-size: clamp(46px, min(7.2vw, 12.5vh), 118px);
  line-height: .95; letter-spacing: -.04em;
  margin-bottom: clamp(14px, 2.6vh, 26px);
}
/* Ortsangabe gehört für Google zur Hauptüberschrift, sieht aber aus wie die kleine Zeile darüber */
.hero h1 .eyebrow { display: flex; width: fit-content; }
.hl { position: relative; display: inline-block; color: var(--blue); white-space: nowrap; }
.hl__stroke { position: absolute; left: -2%; bottom: -.1em; width: 104%; height: .24em; overflow: visible; }
.hl__stroke path {
  fill: none; stroke: var(--blue); stroke-width: 8; stroke-linecap: round; opacity: .3;
  stroke-dasharray: 340; stroke-dashoffset: 340;
  animation: draw 1.3s .6s var(--ease) forwards;
}

.lead { max-width: 36ch; margin-bottom: clamp(18px, 3.4vh, 32px); font-size: clamp(17px, 2.4vh, 20px); color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: clamp(18px, 4.4vh, 44px); }
.btn--call { gap: 12px; padding: 7px 26px 7px 7px; }
.btn__ring { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.btn__ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .75); animation: pulseRing 2.4s ease-out infinite; }
.btn__ring .ic { width: 21px; height: 21px; animation: ring 5s 1s ease-in-out infinite; }
.btn--call:hover .btn__ring .ic { transform: none; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font: 700 20px/1 var(--f-display); letter-spacing: .01em; }
.btn__stack small { font: 600 11px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; opacity: .88; }

.quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 580px; }
.quick a {
  display: flex; align-items: center; gap: 10px; height: 100%;
  padding: 12px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  font: 600 14.5px/1.2 var(--f-display);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.quick a:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-md); }
.quick .ic { width: 24px; height: 24px; color: var(--blue); }

.hero__stage {
  position: relative; height: 100%; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1vh 0 2vh;
}
.stage-glow {
  position: absolute; left: 50%; top: 48%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(2, 148, 218, .22), rgba(2, 148, 218, 0));
  pointer-events: none;
}

/* Bilderschau im Rauten-Fenster – die Rauten stammen aus dem Logo */
.show { position: relative; z-index: 1; flex: none; width: min(100%, 62vh, 600px); aspect-ratio: 1; margin: 0; }
.show::before {
  content: ""; position: absolute; inset: 14.645%;
  border: clamp(8px, 1.3vw, 14px) solid var(--blue); border-radius: 28px;
  transform: translate(-8%, 6%) rotate(45deg);
  animation: sway 9s ease-in-out infinite;
}
.show::after {
  content: ""; position: absolute; right: 5%; top: 1%; width: 17%; aspect-ratio: 1;
  border: clamp(5px, .8vw, 8px) solid var(--stone); border-radius: 8px;
  transform: rotate(45deg); opacity: .85;
  animation: drift 11s ease-in-out infinite;
}
.show__frame {
  position: absolute; z-index: 1; inset: 14.645%; display: block;
  border-radius: 30px; overflow: hidden; transform: rotate(45deg);
  background: var(--ink-2); box-shadow: 0 40px 70px -35px rgba(13, 27, 42, .6);
}
.show__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.show__slide.is-active { z-index: 1; opacity: 1; }
/* Das Bild wird gegengedreht, damit es in der Raute aufrecht steht */
.show__pic {
  position: absolute; left: -20.72%; top: -20.72%; width: 141.44%; height: 141.44%;
  transform: rotate(-45deg) scale(1.12); transition: transform 8s cubic-bezier(.2, .6, .3, 1);
}
.show__slide.is-active .show__pic { transform: rotate(-45deg) scale(1); }
.show__pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.show__before { filter: saturate(.8) brightness(.96); }
.show__after { clip-path: inset(0 0 0 100%); transition: clip-path 1.6s cubic-bezier(.7, 0, .3, 1); }
.show__slide.is-after .show__after { clip-path: inset(0 0 0 0); }
.show__line {
  position: absolute; top: 0; bottom: 0; left: 100%; width: 4px; margin-left: -2px; opacity: 0; pointer-events: none;
  background: #fff; box-shadow: 0 0 2px #fff, 0 0 24px 7px rgba(2, 148, 218, .85);
}
.show__slide.is-after .show__line { animation: sweepPos 1.6s cubic-bezier(.7, 0, .3, 1) both, sweepFade 1.6s linear both; }
.show__slide.is-back .show__line { animation: sweepPosBack 1.6s cubic-bezier(.7, 0, .3, 1) both, sweepFade 1.6s linear both; }
.no-anim, .no-anim * { transition: none !important; animation: none !important; }

/* Schalter „Vorher | Nachher“ – anklickbar */
.show__state {
  position: absolute; z-index: 3; left: 50%; top: 2%; transform: translateX(-50%);
  display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px;
  background: rgba(13, 27, 42, .92); backdrop-filter: blur(8px); box-shadow: var(--shadow-md);
}
.show__state::before {
  content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: var(--stone);
  transition: transform .6s var(--ease), background-color .6s;
}
.show__state.is-after::before { transform: translateX(100%); background: var(--blue); }
.show__state button {
  position: relative; padding: 10px 16px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 12px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; text-align: center;
  color: rgba(255, 255, 255, .55); transition: color .4s;
}
.show__state button:hover { color: #fff; }
.show__state button:focus-visible { outline-offset: -2px; }
.show__state button[aria-pressed="true"] { color: #fff; }
.show__caption {
  position: absolute; z-index: 2; left: 50%; bottom: 3%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 11px 22px 12px; border-radius: 18px; white-space: nowrap;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-md);
}
.show__text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.show__kicker { font: 600 11.5px/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); }
.show__caption strong { font: 600 15.5px/1.25 var(--f-display); }
.show__dots { display: flex; gap: 12px; }
.show__dot {
  width: 10px; height: 10px; padding: 0; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 2px; background: transparent;
  transform: rotate(45deg); transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.show__dot:hover { border-color: #fff; }
.show__dot[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); transform: rotate(45deg) scale(1.25); }

.badges { list-style: none; margin: 0; padding: 0; }
.badges li {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 14px;
  background: rgba(251, 248, 243, .92); backdrop-filter: blur(6px);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font: 600 13.5px/1.2 var(--f-display);
  animation: float 6s ease-in-out infinite;
}
.badges .ic { color: #fff; background: var(--blue); border-radius: 50%; padding: 3px; width: 20px; height: 20px; stroke-width: 2.6; }
.badges li:nth-child(1) { left: 0; top: 14%; }
.badges li:nth-child(2) { right: 0; bottom: 22%; animation-delay: -2s; }
.badges li:nth-child(3) { left: 0; bottom: 30%; animation-delay: -4s; }

/* =========================================================
   LEISTUNGEN
   ========================================================= */
.leistungen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(12px, 2.4vh, 24px); }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: clamp(4px, 1.4vh, 16px); }
.panel-head .eyebrow { margin-bottom: 10px; }
.panel-head h2 { font-size: clamp(30px, min(3.8vw, 6.2vh), 54px); }
.panel-head__sub { max-width: 40ch; color: var(--ink-soft); }

/* „Nicht das Passende dabei?“ */
.leistungen .panel-head h2 { font-size: clamp(28px, min(3.2vw, 5.8vh), 50px); }
.ask {
  flex: none; display: flex; align-items: center; gap: 12px; max-width: 390px;
  padding: 10px 16px 10px 10px; border-radius: 18px;
  background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.ask:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ask__ic {
  position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  font: 700 22px/1 var(--f-display); color: #fff;
}
.ask__ic::before { content: ""; position: absolute; inset: 7px; border-radius: 7px; background: var(--blue); transform: rotate(45deg); }
.ask__ic span { position: relative; }
.ask__txt { font-size: 14.5px; line-height: 1.35; color: rgba(255, 255, 255, .8); }
.ask__txt strong { display: block; margin-bottom: 2px; font: 600 17px/1.2 var(--f-display); color: #fff; }
.ask > .ic { width: 22px; height: 22px; color: var(--blue-300); transition: transform .25s var(--ease); }
.ask:hover > .ic { transform: translateX(4px); }

.svc-grid { display: flex; gap: 14px; min-height: 0; }
.svc {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 220px;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink); color: #fff;
  transition: flex-grow .75s var(--ease), box-shadow .3s;
}
.svc.is-open { flex-grow: 2.7; box-shadow: var(--shadow-lg); }
.svc__art { position: absolute; inset: 0; right: 0; transition: right .75s var(--ease); }
.svc__art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:not(.is-open):hover .svc__art img { transform: scale(1.05); }
/* Haustür steht rechts der Bildmitte */
.svc[data-svc="bau"] .svc__art img { object-position: 60% 45%; }
.svc.is-open .svc__art { right: 56%; }
.svc::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 27, 42, .08) 0%, rgba(13, 27, 42, .25) 40%, rgba(13, 27, 42, .9) 100%);
  transition: right .75s var(--ease);
}
.svc.is-open::after { right: 56%; }

.svc__head {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: clamp(16px, 2.6vh, 24px);
  border: 0; background: none; color: #fff; text-align: left; cursor: pointer;
  transition: right .75s var(--ease);
}
.svc.is-open .svc__head { right: 56%; cursor: default; }
.svc__num { font: 700 15px/1 var(--f-display); letter-spacing: .12em; padding: 8px 10px; border-radius: 10px; background: rgba(13, 27, 42, .55); backdrop-filter: blur(4px); }
.svc__icon { display: none; }
.svc__title { font: 700 clamp(20px, min(2vw, 3.4vh), 28px)/1.1 var(--f-display); max-width: 13ch; text-wrap: balance; }
.svc__head:hover .svc__title { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 6px; text-decoration-thickness: 3px; }
.svc.is-open .svc__head:hover .svc__title { text-decoration: none; }

.svc__body {
  position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: 56%;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(18px, 3vh, 32px) clamp(18px, 2.2vw, 32px);
  opacity: 0; visibility: hidden; transform: translateX(16px);
  transition: opacity .35s, transform .5s var(--ease), visibility 0s .35s;
}
.svc.is-open .svc__body { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .3s, transform .6s .3s var(--ease), visibility 0s; }
.svc__lead { margin-bottom: 10px; font: 600 clamp(18px, 2.5vh, 22px)/1.3 var(--f-display); }
.svc__body p:not(.svc__lead) { margin-bottom: 14px; font-size: clamp(15px, 2vh, 16.5px); color: rgba(255, 255, 255, .78); }
.tags { list-style: none; margin: 0 0 clamp(14px, 2.4vh, 22px); padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); font-size: 13.5px; }
.svc__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.svc .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.svc .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }

.steps {
  list-style: none; margin: 0; padding: clamp(10px, 1.8vh, 16px) 20px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
}
.steps li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.steps li:not(:last-child)::after {
  content: ""; flex: 1; min-width: 16px; height: 2px; margin-left: 4px;
  background: repeating-linear-gradient(90deg, var(--sand-3) 0 6px, transparent 6px 12px);
}
.steps__n { position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; font: 700 15px/1 var(--f-display); color: var(--blue-700); }
.steps__n::before { content: ""; position: absolute; inset: 5px; border: 2.5px solid var(--blue); border-radius: 4px; transform: rotate(45deg); }
.steps strong { display: block; font: 600 16px/1.2 var(--f-display); }
.steps li span:not(.steps__n) { display: block; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }

/* =========================================================
   REFERENZEN
   ========================================================= */
.ref-shell {
  position: relative; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(12px, 2vh, 20px);
  padding: clamp(16px, 2.6vh, 26px) clamp(16px, 2vw, 28px);
  background: var(--ink); color: #fff; border-radius: var(--r-lg);
}
.ref-shell::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px;
  border: 22px solid var(--blue); border-radius: 22px; transform: rotate(45deg); opacity: .12; pointer-events: none;
}
.ref-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ref-head .eyebrow { margin-bottom: 8px; }
.ref-head h2 { font-size: clamp(28px, min(3.4vw, 5.6vh), 48px); }
.hl-blue { color: var(--blue); }
.ref-sub { margin-top: 6px; font-size: 17px; color: rgba(255, 255, 255, .7); }
.ref-sub strong { font-weight: 600; color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24); background: transparent; color: #fff;
  font: 500 14.5px/1.2 var(--f-display); cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.chip:hover { border-color: #fff; }
.chip.is-active { background: var(--blue); border-color: var(--blue); }
.chip__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; }
.chip.is-active .chip__n { background: rgba(255, 255, 255, .28); }

/* Links die große Hochformat-Bühne (Breite richtet sich nach der verfügbaren Höhe), rechts Projektinfo + Liste */
.ref-body {
  position: relative; min-height: 0; container-type: size;
  display: grid; grid-template-columns: min(calc(100cqh * .8), 50cqw) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 24px);
}
.ref-stage { position: relative; min-height: 0; border-radius: var(--r-md); overflow: hidden; background: #0A1622; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .8); }
.ref-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 96px; pointer-events: none; background: linear-gradient(180deg, rgba(5, 9, 14, 0), rgba(5, 9, 14, .6)); }
.ref-media { position: absolute; inset: 0; touch-action: pan-y; }
.ref-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; }
.ref-frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.05); transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
.ref-frame.is-in { opacity: 1; transform: none; }
.ref-img, .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-stage:fullscreen { display: block; overflow: hidden; border-radius: 0; background: #05090E; }
.ref-stage:fullscreen .ref-img, .ref-stage:fullscreen .ba img { object-fit: contain; }
.ref-stage:fullscreen .ref-media { position: absolute; inset: 0; height: auto; max-height: none; border-radius: 0; }
.ref-stage:fullscreen .ref-nav { position: absolute; right: 24px; bottom: 24px; margin: 0; }

.ba { position: absolute; inset: 0; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 14px rgba(0, 0, 0, .45); pointer-events: none;
}
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 2;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; border-radius: 11px; transform: rotate(45deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35); pointer-events: none;
}
.ba__handle .ic { transform: rotate(-45deg); width: 22px; height: 22px; stroke-width: 2.2; }
.ba:focus-within .ba__handle { box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(0, 0, 0, .35); }
.ba__label {
  position: absolute; top: 14px; z-index: 2; pointer-events: none;
  padding: 6px 12px; border-radius: 999px; background: rgba(13, 27, 42, .62); backdrop-filter: blur(6px);
  font: 600 12px/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase;
}
.ba__label--l { left: 14px; }
.ba__label--r { right: 14px; }
.ba__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }

.ref-info {
  flex: none; padding: clamp(16px, 2.6vh, 26px) clamp(16px, 1.8vw, 28px); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.ref-info.is-in > * { animation: rise .6s var(--ease) both; }
.ref-info.is-in > :nth-child(2) { animation-delay: .05s; }
.ref-info.is-in > :nth-child(3) { animation-delay: .1s; }
.ref-info.is-in > :nth-child(n+4) { animation-delay: .15s; }
.ref-cat { display: inline-block; margin-bottom: 8px; font: 600 12px/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-300); }
.ref-info h3 { margin-bottom: 10px; font-size: clamp(22px, min(2.3vw, 4.2vh), 34px); text-wrap: balance; }
.ref-text { max-width: 62ch; margin-bottom: 12px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .84); }
.ref-tags { list-style: none; margin: 0 0 clamp(12px, 2.2vh, 20px); padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ref-tags li { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; }
.ref-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-cta .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.ref-cta .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }

.ref-nav { position: absolute; right: 16px; bottom: 16px; z-index: 4; display: flex; align-items: center; gap: 8px; }
.ref-count { margin-right: 6px; font: 600 14px/1 var(--f-display); letter-spacing: .08em; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.round-btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.round-btn:hover { background: var(--blue); color: #fff; transform: scale(1.07); }
.round-btn .ic { width: 20px; height: 20px; }
.round-btn--glass { background: rgba(13, 27, 42, .55); color: #fff; backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

.ref-rail {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 2px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); align-content: start; gap: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.rail-item {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 8px; border-radius: 14px; flex: none;
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04);
  color: #fff; text-align: left; cursor: pointer;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
/* Vorschaubild: links vorher, rechts nachher – diagonal geteilt */
.rail-thumb { position: relative; display: block; width: 84px; height: 62px; overflow: hidden; border-radius: 10px; background: var(--ink-2); }
.rail-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rail-thumb__after { clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%); }
.rail-thumb:has(.rail-thumb__after)::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 50%; width: 2px; margin-left: -1px; background: #fff; transform: rotate(12deg); }
.rail-item small { display: block; margin-bottom: 3px; font: 600 11px/1.2 var(--f-display); letter-spacing: .07em; text-transform: uppercase; color: var(--blue-300); }
.rail-item strong { display: block; font: 600 15px/1.25 var(--f-display); }
.rail-item:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.rail-item.is-active { background: rgba(2, 148, 218, .18); border-color: var(--blue); }

/* =========================================================
   KONTAKT
   ========================================================= */
.kontakt { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(14px, 2vw, 28px); }

.contact-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(20px, 3.4vh, 36px) clamp(20px, 2.6vw, 36px);
  background: var(--ink); color: #fff; border-radius: var(--r-lg);
}
.contact-card__logo { display: block; width: clamp(170px, 15vw, 230px); height: auto; margin-bottom: clamp(14px, 3.4vh, 32px); }
.contact-card h2 { margin-bottom: 8px; font-size: clamp(28px, min(3vw, 5.2vh), 44px); }
.contact-card__sub { margin-bottom: clamp(14px, 3vh, 26px); color: rgba(255, 255, 255, .75); }
.contact-list { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list a, .contact-list__item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  color: #fff; text-decoration: none;
  font: 600 clamp(15px, 1.25vw, 18px)/1.25 var(--f-display); overflow-wrap: anywhere;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.contact-list a:hover { background: rgba(2, 148, 218, .2); border-color: var(--blue); transform: translateX(3px); }
.contact-list small { display: block; margin-bottom: 2px; font: 500 12.5px/1.2 var(--f-body); letter-spacing: .03em; color: rgba(255, 255, 255, .62); }
.contact-list__ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--blue); }
.contact-list__ic .ic { width: 21px; height: 21px; }
.contact-list a.is-call { background: var(--blue); border-color: var(--blue); font-size: clamp(19px, 1.7vw, 24px); box-shadow: 0 14px 28px -16px rgba(2, 148, 218, .9); }
.contact-list a.is-call:hover { background: var(--blue-600); }
.contact-list a.is-call .contact-list__ic { background: rgba(255, 255, 255, .2); }
.contact-list a.is-call .contact-list__ic .ic { animation: ring 5s 2s ease-in-out infinite; }
.contact-list a.is-call small { color: rgba(255, 255, 255, .88); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-card__owner { position: relative; z-index: 1; margin-top: auto; padding-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.contact-card__deco { position: absolute; right: -70px; bottom: -70px; width: 230px; height: 230px; border: 18px solid var(--blue); border-radius: 18px; transform: rotate(45deg); opacity: .16; pointer-events: none; }

.form-card {
  display: flex; flex-direction: column; gap: clamp(10px, 1.8vh, 16px); min-height: 0;
  padding: clamp(18px, 3vh, 32px) clamp(18px, 2.4vw, 34px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { padding: 0; font: 600 14px/1.2 var(--f-display); color: var(--ink); }
.field legend { margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--sand-3); border-radius: 12px; background: #fff;
  font: 400 16px/1.4 var(--f-body); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { flex: 1; min-height: 92px; resize: none; }
.field--grow { flex: 1; min-height: 0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(2, 148, 218, .16); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }


.form-note { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--sand); font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.form-note .ic { width: 20px; height: 20px; margin-top: 1px; color: var(--blue); }
.form-note a, .form-msg a { color: var(--blue-700); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.form-msg { flex: 1; min-width: 220px; font-size: 14px; line-height: 1.45; }
.form-msg.is-error { color: var(--error); }
.form-msg.is-ok { padding: 10px 14px; border-radius: 12px; background: #E2F3EF; color: var(--ink); border-left: 4px solid var(--ok); }
.link-btn { padding: 0; border: 0; background: none; color: var(--blue-700); font: inherit; text-decoration: underline; cursor: pointer; }

/* =========================================================
   Rechtliche Seiten (Impressum, Datenschutz) – dürfen scrollen
   ========================================================= */
body.legal { display: block; height: auto; min-height: 100vh; overflow: auto; }
.legal__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 900px; margin: 0 auto; padding: 16px var(--gutter); }
.legal__card {
  max-width: 900px; margin: 8px auto 24px; padding: clamp(22px, 4vw, 48px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.legal__card h1 { margin-bottom: 18px; font-size: clamp(32px, 5vw, 48px); }
.legal__card h2 { margin: 26px 0 8px; font-size: 20px; letter-spacing: -.01em; }
.legal__card p { margin-bottom: 10px; color: var(--ink-soft); }
.legal__card a { color: var(--blue-700); }
.legal__card ul { margin: 0 0 10px; padding-left: 20px; color: var(--ink-soft); }
.legal__card li { margin-bottom: 4px; }
.legal__date { margin-top: 24px; font-size: 14px; }
body.legal .footer { max-width: 900px; margin: 0 auto; padding-bottom: 24px; }

/* =========================================================
   Animationen
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 50% { transform: translateY(-7px); } }
@keyframes drift { 50% { transform: rotate(45deg) translate(8px, -8px); } }
@keyframes sway { 50% { transform: translate(-6%, 4%) rotate(45deg); } }
@keyframes sweepPos { from { left: 100%; } to { left: 0; } }
@keyframes sweepPosBack { from { left: 0; } to { left: 100%; } }
@keyframes sweepFade { 0% { opacity: 0; } 6% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .8; } 75%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ring { 0%, 84%, 100% { transform: rotate(0); } 86% { transform: rotate(-16deg); } 89% { transform: rotate(14deg); } 92% { transform: rotate(-10deg); } 95% { transform: rotate(6deg); } }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; } }
@keyframes introPop { to { opacity: 1; transform: none; } }
@keyframes introWord { to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* =========================================================
   Responsiv
   ========================================================= */
@media (max-width: 1180px) {
  .tabs a { padding: 9px 13px; font-size: 14.5px; }
  .call__txt small { display: none; }
  .badges li:nth-child(2) { right: -4px; }
}

/* niedrige Bildschirme (z. B. Laptops) */
@media (min-width: 820px) and (max-height: 760px) {
  .badges { display: none; }
  .steps li span:not(.steps__n) { display: none; }
  .svc__body p:not(.svc__lead) { display: none; }
  .contact-card__sub { display: none; }
}
@media (min-width: 820px) and (max-height: 640px) {
  .quick { display: none; }
  .steps { display: none; }
  .ref-text { display: none; }
}

/* Smartphone + kleines Tablet */
@media (max-width: 819px) {
  body { grid-template-rows: auto minmax(0, 1fr) auto; font-size: 16px; }
  .topbar { padding: 10px 16px; }

  /* Fußzeile weicht dem Reiter oben (Rechtliches · Webdesign) */
  body:not(.legal) .footer { display: none; }
  .infotab {
    display: block; position: absolute; z-index: 7; top: calc(100% - 4px); left: 50%;
    transform: translateX(-50%);
  }
  .infotab summary {
    list-style: none; display: flex; align-items: center; gap: 5px;
    padding: 5px 12px 6px; border-radius: 0 0 12px 12px;
    background: var(--card); color: var(--ink-soft);
    box-shadow: 0 8px 16px -12px rgba(13, 27, 42, .55), inset 0 -1px 0 var(--line);
    font: 600 11px/1.2 var(--f-display); letter-spacing: .02em; white-space: nowrap;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .infotab summary::-webkit-details-marker { display: none; }
  .infotab[open] summary { color: var(--ink); }
  .infotab__chev { width: 12px; height: 12px; transition: transform .25s var(--ease); }
  .infotab[open] .infotab__chev { transform: rotate(180deg); }
  .infotab__menu {
    position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    width: min(300px, calc(100vw - 32px)); padding: 6px; display: grid; gap: 2px;
    border-radius: 16px; background: var(--ink); box-shadow: var(--shadow-lg);
    animation: infoIn .22s var(--ease);
  }
  .infotab__menu a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px; border-radius: 10px;
    color: #fff; text-decoration: none; font: 500 15px/1.25 var(--f-display);
  }
  .infotab__menu a:hover, .infotab__menu a:focus-visible { background: rgba(255, 255, 255, .08); }
  .infotab__menu small { display: block; margin-bottom: 2px; font: 600 10.5px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-300); }
  .infotab__menu .ic { flex: none; width: 18px; height: 18px; color: var(--blue-300); }
  .brand img { height: 42px; }
  .tabs { display: none; }
  .call { margin-left: auto; padding: 4px 16px 4px 4px; gap: 8px; }
  .call__ic { width: 34px; height: 34px; }
  .call__txt { font-size: 15.5px; }

  .panel { padding: 26px 16px 20px; }
  .panel__inner { height: auto; min-height: 100%; }

  .hero { height: auto; grid-template-columns: 1fr; gap: 6px; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .lead { margin-bottom: 18px; }
  .cta-row { margin-bottom: 18px; }
  .cta-row .btn { flex: 1 1 auto; }
  .quick { gap: 8px; }
  .quick a { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; font-size: 13px; }
  .hero__stage { height: auto; padding: 8px 0 0; }
  .show { width: min(100%, 380px); }
  .show__caption { padding: 8px 14px; }
  .show__caption strong { font-size: 14px; }
  .btn__stack { font-size: 19px; }
  .badges { display: none; }

  .leistungen { display: flex; flex-direction: column; gap: 14px; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .svc-grid { flex-direction: column; gap: 10px; }
  .svc { flex: none; min-height: 0; }
  .svc__art, .svc.is-open .svc__art, .svc::after, .svc.is-open::after { right: 0; }
  .svc.is-open .svc__art { height: 120px; bottom: auto; }
  .svc.is-open::after { background: linear-gradient(180deg, rgba(13, 27, 42, .1) 0, rgba(13, 27, 42, .2) 60px, var(--ink) 120px); }
  .svc__head, .svc.is-open .svc__head { position: relative; inset: auto; flex-direction: row; align-items: center; gap: 12px; padding: 16px; min-height: 76px; }
  .svc.is-open .svc__head { min-height: 120px; align-items: flex-end; }
  .svc__title { max-width: none; font-size: 19px; }
  .svc__body { position: relative; width: auto; display: none; padding: 0 16px 18px; transform: none; }
  .svc.is-open .svc__body { display: flex; }
  .svc__body p:not(.svc__lead), .panel-head__sub { display: none; }
  .ask { max-width: none; width: 100%; margin-top: 6px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 16px 14px; }
  .steps li::after { display: none; }
  .steps li { align-items: flex-start; gap: 8px; }
  .steps li > div { min-width: 0; padding-top: 6px; }
  .steps strong { font-size: 15px; }
  .steps li span:not(.steps__n) { white-space: normal; font-size: 13.5px; line-height: 1.3; }

  .ref-shell { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 14px; }
  .ref-head { flex-direction: column; align-items: flex-start; }
  .ref-head > * { min-width: 0; max-width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .chip { flex: none; }
  .ref-body { container-type: normal; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ref-stage { display: flex; flex-direction: column; overflow: visible; background: transparent; border-radius: 0; box-shadow: none; }
  .ref-stage::after { display: none; }
  .ref-media { position: relative; inset: auto; height: min(118vw, 60vh); min-height: 300px; border-radius: 16px; overflow: hidden; background: #0A1622; }
  .ref-nav { position: static; margin-top: 10px; justify-content: flex-end; }
  .ref-count { margin-right: auto; text-shadow: none; }
  .ref-side { gap: 12px; }
  .ref-info { padding: 16px; }
  .ref-text { font-size: 15px; }
  .ref-cta .btn { flex: 1 1 auto; }
  .ref-rail { display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
  .rail-item { width: 230px; }

  .kontakt { display: flex; flex-direction: column; gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .field textarea { min-height: 120px; }

  .footer { justify-content: center; flex-wrap: wrap; gap: 4px 14px; padding: 6px 16px 22px; font-size: 12px; text-align: center; }
  .footer nav { gap: 72px; }

  .dock {
    position: relative; z-index: 6;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--ink);
  }
  .dock a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; border-radius: 12px;
    color: rgba(255, 255, 255, .68); text-decoration: none;
    font: 500 11px/1.1 var(--f-display);
    transition: background-color .25s, color .25s;
  }
  .dock a[aria-current="page"] { color: #fff; background: rgba(2, 148, 218, .26); }
  .dock .ic { width: 22px; height: 22px; }
  .dock a.dock__call { padding-top: 0; color: #fff; font-weight: 600; }
  .dock__call-ic {
    width: 48px; height: 48px; margin-top: -20px; display: grid; place-items: center; border-radius: 50%;
    background: var(--blue); box-shadow: 0 0 0 4px var(--ink), 0 10px 20px -6px rgba(2, 148, 218, .8);
  }
  .dock__call-ic .ic { animation: ring 5s 1.5s ease-in-out infinite; }
}

@media (max-width: 420px) {
  .quick span { font-size: 12px; }
  .footer > span { display: none; }
}

@keyframes infoIn { from { opacity: 0; transform: translate(-50%, -6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hl__stroke path { stroke-dashoffset: 0; }
}
