/* by-si.de: a calm card. One fixed ground (tonal gradient + drifting wave bundles), the logo in front,
   one scroll step to contact; "Über uns", "Impressum" and "Datenschutz" open as sheets.
   Tokens: BySide Design System (brand/byside/tokens.css), copied so the site stands alone.
   Deliberate exception to the brand rule "gradients only in the logo": the page ground is a tonal
   gradient and the waves use the logo colours, as decided by Dennis on 11.11.2026. */

@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }

:root {
  --bg: #f2f4f7; --surface: #ffffff; --surface-2: #f3f5f9; --hover: #f0f2f7; --press: #e7eaf1;
  --line: #e4e7ee; --line-2: #d4d9e3; --line-3: #b9c0ce;
  --ink: #0a1028; --ink-2: #3c4257; --ink-3: #6b7486; --ink-4: #9aa2b2;
  --brand: #521cb8; --brand-hover: #46179e; --brand-press: #3c1488; --on-brand: #ffffff;
  --brand-text: #521cb8; --brand-soft: #f4efff; --brand-line: #dccaff;
  --focus: #8e4af2; --focus-ring: rgba(142, 74, 242, 0.22);
  --auvionis-text: #1f3bb8;
  --logo-azure: #5ad2ff; --logo-blue: #1c86f2; --logo-royal: #1f3bb8;
  --logo-lavender: #cda8ff; --logo-violet: #8e4af2; --logo-deep: #521cb8;
  --ok: #12b76a; --ok-bg: #ecfdf3; --ok-text: #027a48;
  --warn: #f79009; --warn-bg: #fffaeb; --warn-text: #b54708;
  --err: #f04438; --err-bg: #fef3f2; --err-text: #b42318;
  --scrim: rgba(10, 16, 40, 0.4);
  --pop: 0 12px 32px -8px rgba(10, 16, 40, 0.18), 0 2px 6px rgba(10, 16, 40, 0.06);

  /* Page ground and waves, light */
  --ground: linear-gradient(162deg, #ffffff 0%, #f6f7fa 38%, #eef0f6 68%, #efe8ff 100%);
  --ground-flat: #f4f5f9;
  --wave-a: var(--logo-deep); --wave-a2: var(--logo-violet);
  --wave-b: var(--logo-royal); --wave-b2: var(--logo-blue);
  --wave-c: var(--logo-violet);
  --wave-strength: 0.62;
  --ring: var(--logo-violet);

  --font-display: Outfit, "IBM Plex Sans", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-control: 8px; --radius-card: 12px; --radius-dialog: 16px;
  --control-lg: 44px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 68px;

  /* Driven by site.js: hero scroll progress 0..1 and pointer position -1..1 */
  --s: 0; --px: 0; --py: 0;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05060b; --surface: #0c1322; --surface-2: #111a2e; --hover: #131d33; --press: #18243d;
    --line: #1a2436; --line-2: #283650; --line-3: #3a4a68;
    --ink: #edf1f8; --ink-2: #b6bfce; --ink-3: #8a96aa; --ink-4: #5e6b82;
    --brand: #6a2fd9; --brand-hover: #7a3ae6; --brand-press: #5b22c7;
    --brand-text: #b98bff; --brand-soft: #1e1640; --brand-line: #4a3480;
    --focus: #b98bff; --focus-ring: rgba(185, 139, 255, 0.25);
    --auvionis-text: #5ad2ff;
    --ok-bg: rgba(18, 183, 106, 0.12); --ok-text: #6ce9a6;
    --warn-bg: rgba(247, 144, 9, 0.12); --warn-text: #fec84b;
    --err-bg: rgba(240, 68, 56, 0.13); --err-text: #fda29b;
    --scrim: rgba(0, 0, 0, 0.6);
    --pop: 0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --ground: linear-gradient(162deg, #0e1532 0%, #080c1d 40%, #05060b 70%, #140c2e 100%);
    --ground-flat: #070a16;
    --wave-a: var(--logo-lavender); --wave-a2: var(--logo-violet);
    --wave-b: var(--logo-azure); --wave-b2: var(--logo-blue);
    --wave-c: var(--logo-lavender);
    --wave-strength: 1;
    --ring: var(--logo-lavender);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #05060b; --surface: #0c1322; --surface-2: #111a2e; --hover: #131d33; --press: #18243d;
  --line: #1a2436; --line-2: #283650; --line-3: #3a4a68;
  --ink: #edf1f8; --ink-2: #b6bfce; --ink-3: #8a96aa; --ink-4: #5e6b82;
  --brand: #6a2fd9; --brand-hover: #7a3ae6; --brand-press: #5b22c7;
  --brand-text: #b98bff; --brand-soft: #1e1640; --brand-line: #4a3480;
  --focus: #b98bff; --focus-ring: rgba(185, 139, 255, 0.25);
  --auvionis-text: #5ad2ff;
  --ok-bg: rgba(18, 183, 106, 0.12); --ok-text: #6ce9a6;
  --warn-bg: rgba(247, 144, 9, 0.12); --warn-text: #fec84b;
  --err-bg: rgba(240, 68, 56, 0.13); --err-text: #fda29b;
  --scrim: rgba(0, 0, 0, 0.6);
  --pop: 0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --ground: linear-gradient(162deg, #0e1532 0%, #080c1d 40%, #05060b 70%, #140c2e 100%);
  --ground-flat: #070a16;
  --wave-a: var(--logo-lavender); --wave-a2: var(--logo-violet);
  --wave-b: var(--logo-azure); --wave-b2: var(--logo-blue);
  --wave-c: var(--logo-lavender);
  --wave-strength: 1;
  --ring: var(--logo-lavender);
  color-scheme: dark;
}

/* Theme-dependent logo files */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
/* Snapping stays "proximity": "mandatory" pulls small wheel steps back; site.js turns one wheel gesture into one screen */
html.is-locked { overflow: hidden; scroll-snap-type: none; }
body {
  margin: 0; min-height: 100svh; background: var(--ground-flat); color: var(--ink);
  font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-soft); color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-control); background: var(--surface); color: var(--ink); box-shadow: var(--pop); transform: translateY(-160%); transition: transform 160ms var(--ease); }
.skip:focus { transform: none; }

/* ---------- Ground: gradient + three drifting wave bundles ---------- */
.ground { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ground); pointer-events: none; }
.ground__layer {
  position: absolute; left: 0; width: 100%;
  transform: translate3d(calc(var(--px) * var(--depth) * -1px), calc(var(--s) * var(--lift) + var(--py) * var(--depth) * -1px), 0);
  will-change: transform;
}
.ground__bob { animation: bob var(--bob, 16s) var(--ease-soft) infinite alternate; }
.ground__drift { width: 200%; height: 100%; animation: drift var(--speed, 90s) linear infinite; will-change: transform; }
.ground__drift--rev { animation-direction: reverse; }
.ground svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ground path, .ground use { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }

/* lower bundle, the main one */
.ground__layer--a { top: 58%; height: 34%; --depth: 14; --lift: -9vh; --speed: 96s; --bob: 15s; opacity: calc(var(--wave-strength) * (1 - var(--s) * .35)); }
.ground__layer--a .w-main { stroke: var(--wave-a); stroke-opacity: .55; stroke-width: 1.4; }
.ground__layer--a .w-echo { stroke: var(--wave-a2); }
/* upper bundle, quieter, the other way */
.ground__layer--b { top: 4%; height: 26%; --depth: 8; --lift: -4vh; --speed: 128s; --bob: 19s; opacity: calc(var(--wave-strength) * .8 * (1 - var(--s) * .3)); }
.ground__layer--b .w-main { stroke: var(--wave-b); stroke-opacity: .42; stroke-width: 1.2; }
.ground__layer--b .w-echo { stroke: var(--wave-b2); }
/* one long line that crosses both */
.ground__layer--c { top: 30%; height: 46%; --depth: 22; --lift: -14vh; --speed: 150s; --bob: 23s; opacity: calc(var(--wave-strength) * .9); }
.ground__layer--c .w-main { stroke: var(--wave-c); stroke-opacity: .22; stroke-width: 1.1; }

/* Each layer is two identical tiles wide and moves by exactly one tile, so the loop has no seam */
@keyframes drift { to { transform: translate3d(-50%, 0, 0); } }
@keyframes bob { from { transform: translate3d(0, -10px, 0); } to { transform: translate3d(0, 12px, 0); } }

/* Waves arrive slowly on first paint */
.ground__layer { animation: ground-in 2400ms var(--ease) backwards; }
.ground__layer--b { animation-delay: 300ms; }
.ground__layer--c { animation-delay: 700ms; }
@keyframes ground-in { from { opacity: 0; } }

/* ---------- The Fuge, once, at the very top ---------- */
.fuge { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; height: 2px; transform-origin: left; animation: fuge 1100ms 200ms var(--ease) backwards; }
.fuge::before { content: ""; flex: 0 0 62%; background: var(--logo-violet); clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.fuge::after { content: ""; flex: 1; margin-left: 3px; background: var(--logo-blue); clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%); }
@keyframes fuge { from { transform: scaleX(0); } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 2px; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  transition: background-color 240ms var(--ease), transform 320ms var(--ease);
  animation: rise 900ms 1500ms var(--ease) backwards;
}
.nav.is-solid { background: var(--ground-flat); }
.nav.is-hidden { transform: translateY(calc(-100% - 2px)); }
.nav__home { display: flex; align-items: center; height: 44px; opacity: calc((var(--s) - .55) * 3); transform: translateY(calc((1 - min(1, var(--s) * 1.4)) * 8px)); transition: opacity 160ms linear; }
.nav__home img { height: 24px; width: auto; }
.nav__home[aria-hidden="true"] { pointer-events: none; }
.nav__links { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border-radius: var(--radius-control); color: var(--ink-2); font: 500 15px/20px var(--font-sans); text-decoration: none;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; border-radius: 2px;
  background: var(--brand-text); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link:active { transform: translateY(1px); }
.nav__link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--ease); }
.nav__link:hover svg { transform: translate(2px, -2px); }

/* ---------- Hero: the logo ---------- */
.hero {
  position: relative; z-index: 1; min-height: 100svh; display: grid; place-items: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 120px; scroll-snap-align: start;
}
.hero__title { margin: 0; }
.hero__logo { display: block;
  width: clamp(240px, 36vw, 520px);
  transform:
    translate3d(calc(var(--px) * 6px), calc(var(--py) * 6px - var(--s) * 9vh), 0)
    scale(calc(1 - var(--s) * .14));
  opacity: calc(1 - var(--s) * 1.35);
  will-change: transform, opacity;
}
.logo { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink); }

/* Entrance: S and D slide into each other, then the wordmark rises */
.logo__s, .logo__d, .logo__word, .logo__breath, .ring { transform-box: fill-box; transform-origin: 50% 50%; }
.logo__s { animation: s-in 1500ms 250ms var(--ease) backwards; }
.logo__d { animation: d-in 1500ms 380ms var(--ease) backwards; }
.logo__word { animation: word-in 1100ms 1250ms var(--ease) backwards; }
@keyframes s-in { from { opacity: 0; transform: translate3d(-34%, 6%, 0) rotate(-4deg); } 40% { opacity: 1; } }
@keyframes d-in { from { opacity: 0; transform: translate3d(34%, -6%, 0) rotate(4deg); } 40% { opacity: 1; } }
@keyframes word-in { from { opacity: 0; transform: translate3d(0, 18%, 0); } }

/* Idle: the mark breathes and sends out rings, one after another */
.logo__breath { animation: breathe 5.6s 2.2s var(--ease-soft) infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.028); } }
.ring { fill: none; stroke: var(--ring); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0; animation: ring 5.6s var(--ease) infinite; }
.ring:nth-child(1) { animation-delay: 1.65s; }
.ring:nth-child(2) { animation-delay: 3.5s; }
.ring:nth-child(3) { animation-delay: 5.35s; }
@keyframes ring {
  0% { opacity: 0; transform: scale(1); }
  8% { opacity: .4; }
  70%, 100% { opacity: 0; transform: scale(1.75); }
}

/* Scroll cue */
.cue {
  position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 14px;
  border-radius: var(--radius-control); color: var(--ink-2); font: 500 14px/20px var(--font-sans); text-decoration: none;
  opacity: calc(1 - var(--s) * 3); animation: rise 900ms 1900ms var(--ease) backwards;
  transition: color 160ms var(--ease);
}
.cue:hover { color: var(--ink); }
.cue__track { position: relative; width: 22px; height: 36px; border-radius: 11px; box-shadow: inset 0 0 0 1.5px var(--line-3); overflow: hidden; }
.cue__dot { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brand-text); animation: cue 2.2s 2.8s var(--ease-soft) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Contact ---------- */
.contact {
  position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + clamp(24px, 6vh, 72px)) var(--gutter) 0; scroll-snap-align: start;
}
.contact__grid {
  flex: 1; width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
/* The underline is where the wave bundles come to rest (drawn on the canvas); without the canvas it is drawn here */
.contact__title { position: relative; width: fit-content; margin: 0 0 18px; padding-bottom: 14px; font: 600 clamp(36px, 4.6vw, 64px)/1.02 var(--font-display); letter-spacing: -0.025em; }
.contact__intro { margin: 0 0 clamp(28px, 5vh, 48px); max-width: 36ch; color: var(--ink-2); font-size: 18px; line-height: 28px; }
.phone { display: block; margin: 0 0 6px; color: var(--ink-3); font-size: 14px; }
.phone__number {
  display: inline-block; color: var(--ink); text-decoration: none;
  font: 600 clamp(32px, 4.2vw, 58px)/1.05 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: color 160ms var(--ease), background-size 320ms var(--ease);
  padding-bottom: 4px;
}
.phone__number:hover { color: var(--brand-text); background-size: 100% 2px; }
.people { margin: clamp(28px, 5vh, 44px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.people li { display: flex; flex-direction: column; gap: 2px; }
.people b { font-weight: 600; font-size: 16px; }
.people span { color: var(--ink-3); font-size: 14px; }
.people a { color: var(--brand-text); text-decoration: none; font-size: 15px; width: fit-content; }
.people a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Form card: flat surface with a 1px line, no shadow at rest */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-dialog); padding: clamp(22px, 3vw, 36px); }
.form__title { margin: 0 0 20px; font: 600 20px/26px var(--font-display); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label { font: 500 14px/20px var(--font-sans); color: var(--ink-2); }
.field label small { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.input {
  width: 100%; height: var(--control-lg); padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-control);
  background: var(--surface); color: var(--ink); font: 400 16px/22px var(--font-sans);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
textarea.input { height: auto; min-height: 132px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: var(--ink-4); }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.input[aria-invalid="true"] { border-color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; color: var(--ink-2); font-size: 14px; line-height: 21px; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.consent a { color: var(--brand-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-lg); padding: 0 22px;
  border: 1px solid var(--brand); border-radius: var(--radius-control); background: var(--brand); color: var(--on-brand);
  font: 500 15px/20px var(--font-sans); text-decoration: none; cursor: pointer; overflow: hidden;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn:active { background: var(--brand-press); transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 12px; border-radius: 999px; font: 500 14px/20px var(--font-sans); background: var(--surface-2); color: var(--ink-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ok { background: var(--ok-bg); color: var(--ok-text); }
.status--warn { background: var(--warn-bg); color: var(--warn-text); }
.status--err { background: var(--err-bg); color: var(--err-text); }

/* Close of the page */
.foot {
  width: 100%; max-width: 1200px; margin: clamp(40px, 8vh, 96px) auto 0; padding: 22px 0 max(26px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  color: var(--ink-3); font-size: 14px; line-height: 20px;
}
.foot address { font-style: normal; }
.foot nav { display: flex; gap: 4px; margin-left: auto; }
.foot a { color: var(--ink-2); text-decoration: none; padding: 6px 8px; border-radius: 6px; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.foot a:hover { color: var(--ink); background: var(--hover); }

/* Entrances in the contact section: staggered, only once, never hidden without script */
.js .reveal { opacity: 0; transform: translate3d(0, 24px, 0); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 800ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Sheets: Über uns, Impressum, Datenschutz ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: none; }
/* Without script the sheet opens through :target; with script, site.js owns the state (pushState does not move :target) */
html:not(.js) .sheet:target, .sheet.is-open { display: block; }
.sheet__scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade 320ms var(--ease) backwards; }
.sheet__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100%); display: flex; flex-direction: column;
  background: var(--surface); box-shadow: var(--pop); animation: slide 520ms var(--ease) backwards;
}
.sheet.is-closing .sheet__scrim { animation: fade-out 280ms var(--ease) both; }
.sheet.is-closing .sheet__panel { animation: slide-out 320ms var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes slide { from { transform: translate3d(40px, 0, 0); opacity: 0; } }
@keyframes slide-out { to { transform: translate3d(40px, 0, 0); opacity: 0; } }
.sheet__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; padding: 0 clamp(20px, 4vw, 48px); }
.sheet__bar img { height: 22px; width: auto; }
.sheet__close {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 10px; border-radius: var(--radius-control);
  color: var(--ink-2); font: 500 14px/20px var(--font-sans); text-decoration: none; transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.sheet__close:hover { background: var(--hover); color: var(--ink); }
.sheet__close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; transition: transform 240ms var(--ease); }
.sheet__close:hover svg { transform: rotate(90deg); }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px clamp(20px, 4vw, 48px) 56px; }
.sheet__body > * { animation: rise 700ms var(--ease) backwards; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
.sheet h2 { margin: 0 0 20px; font: 600 clamp(32px, 4vw, 44px)/1.08 var(--font-display); letter-spacing: -0.02em; }
.sheet h3 { margin: 32px 0 8px; font: 600 18px/24px var(--font-display); }
.sheet p, .sheet li, .sheet address { margin: 0 0 12px; color: var(--ink); font-size: 16px; line-height: 26px; font-style: normal; }
.sheet ul { margin: 0 0 12px; padding-left: 20px; }
.sheet a { color: var(--brand-text); text-underline-offset: 3px; }
.sheet .muted { color: var(--ink-2); }
.sheet .lead { font-size: 19px; line-height: 30px; color: var(--ink); }
.sheet .stand { margin-top: 32px; color: var(--ink-3); font-size: 14px; }

/* Über uns */
.portrait { margin: 8px 0 28px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-card); background: #111; }
.portrait figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.portrait figcaption span:last-child { text-align: right; }
.name { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; align-items: center; margin: 8px 0 8px; }
.split { width: 100%; height: auto; overflow: visible; }
.split text { fill: var(--ink-2); font: 500 9px var(--font-sans); }
.split__s, .split__d { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 1400ms var(--ease); }
.split:not(.is-joined) .split__s { transform: translate3d(-30%, 0, 0); }
.split:not(.is-joined) .split__d { transform: translate3d(30%, 0, 0); }
.split__label { transition: opacity 600ms var(--ease); }
.split.is-joined .split__label { opacity: .0; }
.brandline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; padding: 20px 22px; border-radius: var(--radius-card); background: var(--surface-2); }
.brandline img { height: 24px; width: auto; }
.brandline p { margin: 0; flex: 1 1 220px; color: var(--ink-2); font-size: 15px; line-height: 22px; }
.brandline a { font-weight: 500; text-decoration: none; white-space: nowrap; }
.brandline a:hover { text-decoration: underline; }

/* Impressum: definition grid */
.facts { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0 24px; margin: 8px 0 0; }
.facts dt { padding: 14px 0 0; color: var(--ink-3); font-size: 14px; line-height: 26px; }
.facts dd { margin: 0; padding: 14px 0 0; }
.facts dd p:last-child { margin-bottom: 0; }

/* ---------- Phone and tablet ---------- */
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; align-items: start; }
  .contact { padding-top: calc(var(--nav-h) + 24px); }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .nav { gap: 8px; }
  .nav__home img { height: 20px; }
  .nav__link { padding: 0 9px; font-size: 14px; }
  .nav__link svg { display: none; }
  .hero__logo { width: min(74vw, 340px); }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .people { grid-template-columns: 1fr; }
  .name { grid-template-columns: 1fr; gap: 16px; }
  .name .split { max-width: 220px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-top: 16px; line-height: 20px; }
  .facts dd { padding-top: 2px; }
  .foot nav { margin-left: 0; }
  .foot a:first-child { padding-left: 0; }
  .ground__layer--a { top: 66%; height: 26%; }
  .ground__layer--b { height: 20%; }
}
@media (max-width: 380px) {
  .nav__home { display: none; }
}

/* ---------- Reduced motion: everything in place, nothing travels ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .ground__layer, .hero__logo { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .split:not(.is-joined) .split__s, .split:not(.is-joined) .split__d { transform: none; }
}

/* The S/D mark in "Über uns" is a button: press or hover takes it apart */
.name__mark { display: block; width: 100%; padding: 8px; border: 0; border-radius: var(--radius-card); background: transparent; color: inherit; cursor: pointer; transition: background-color 160ms var(--ease); }
.name__mark:hover { background: var(--hover); }
.status[hidden] { display: none; }
.sheet h2:focus { outline: none; }
.nav > nav { margin-left: auto; }

html:not(.has-waves) .contact__title::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--brand-text); }

/* Canvas waves replace the SVG bundles when script and motion are available */
.ground__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.has-waves .ground__layer { display: none; }

/* Copy the phone number on desktop */
.copied {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; margin-left: 14px; padding: 0 12px; vertical-align: 12px;
  border-radius: 999px; background: var(--ok-bg); color: var(--ok-text); font: 500 14px/20px var(--font-sans); white-space: nowrap;
}
.copied[hidden] { display: none; }
.copied::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.copied.is-on { animation: copied 2400ms var(--ease) both; }
@keyframes copied { 0% { opacity: 0; transform: translateY(6px); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Save contact */
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: clamp(24px, 4vh, 36px) 0 0; }
.contact__hint { color: var(--ink-3); font-size: 14px; }
.btn--secondary { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--secondary:hover { background: var(--hover); border-color: var(--line-3); }
.btn--secondary:active { background: var(--press); }
.btn--secondary:hover svg { transform: translateY(2px); }
@media (max-width: 640px) {
  .copied { display: flex; width: fit-content; margin: 10px 0 0; vertical-align: baseline; }
  .copied[hidden] { display: none; }
}
