/* ==========================================================================
   Studio eins — V5
   Neumorphism · dunkles Studio-Panel-Design · Akzent #ec6258
   ========================================================================== */

/* ==========================================================================
   Self-hosted fonts (previously loaded from the Google Fonts CDN). Loading
   fonts directly from Google on every visit sends the visitor's IP address
   to Google before any consent is given — flagged as a GDPR issue by a
   2022 LG München ruling. Hosting the files ourselves avoids that entirely.
   Each family below is a single variable-font file per subset (Google
   serves one file covering the whole weight axis, not one file per weight).
   ========================================================================== */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body { margin: 0; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(236,98,88,.34); color: #fff; }

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bg-0: #121315;
  --bg-1: #191a1d;
  --bg-2: #1e2024;

  --panel: #1d1f23;
  --panel-2: #222429;
  --panel-hi: rgba(255,255,255,.05);
  --panel-lo: rgba(0,0,0,.62);

  --border: rgba(255,255,255,.07);
  --border-soft: rgba(255,255,255,.045);
  --line: rgba(255,255,255,.09);

  --accent: #ec6258;
  --accent-2: #ff9587;
  --accent-dim: #a8453c;
  --accent-soft: rgba(236,98,88,.14);
  --accent-glow: rgba(236,98,88,.55);

  --text-0: #f3efec;
  --text-1: #aeacb2;
  --text-2: #75747c;

  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --nav-h: 74px;
  --nav-h-scrolled: 60px;
  --nav-top: 14px;
  --container: 1260px;

  --ease: cubic-bezier(.16,.84,.32,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);

  /* neumorphic shadow recipes (dark surface) */
  --nm-out: 9px 9px 20px rgba(0,0,0,.55), -8px -8px 18px rgba(255,255,255,.065);
  --nm-out-sm: 5px 5px 11px rgba(0,0,0,.5), -5px -5px 11px rgba(255,255,255,.06);
  --nm-in: inset 6px 6px 13px rgba(0,0,0,.55), inset -5px -5px 11px rgba(255,255,255,.03);
  --nm-in-sm: inset 4px 4px 8px rgba(0,0,0,.5), inset -3px -3px 7px rgba(255,255,255,.025);
}

body {
  background: var(--bg-1);
  background-image:
    radial-gradient(900px 650px at 100% 8%, rgba(236,98,88,.065), transparent 55%),
    radial-gradient(1100px 850px at 50% 118%, rgba(0,0,0,.45), transparent 60%),
    linear-gradient(90deg, #24262b 0%, #1d1f23 38%, #141518 72%, #101114 100%);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-0); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.05; font-weight: 650; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1.2rem; }
em { color: var(--accent); font-style: normal; }

p { color: var(--text-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
}

/* ==========================================================================
   Backdrop layers (bg glow + circuit canvas)
   ========================================================================== */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bolt-canvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .9; }

/* ==========================================================================
   Neumorphic utility surfaces
   ========================================================================== */
.nm-raised { background: var(--panel); border-radius: var(--radius); box-shadow: var(--nm-out); border: 1px solid var(--border-soft); }
.nm-inset { background: var(--panel); border-radius: var(--radius); box-shadow: var(--nm-in); border: 1px solid var(--border-soft); }

.btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  cursor: pointer; border: 1px solid var(--border-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .25s, background .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn--accent {
  color: #1a0d0b; background: linear-gradient(155deg, var(--accent-2), var(--accent) 65%);
  box-shadow: var(--nm-out-sm), 0 0 26px -4px var(--accent-glow);
  border: none;
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: var(--nm-out-sm), 0 0 40px -2px var(--accent-glow); }
.btn--accent:hover svg { transform: translateX(3px); }
.btn--ghost { background: var(--panel); color: var(--text-0); box-shadow: var(--nm-out-sm); }
.btn--ghost:hover { box-shadow: var(--nm-in-sm); color: var(--accent-2); }
.btn--sm { padding: 11px 20px; font-size: .82rem; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; top: var(--nav-top); left: 0; right: 0; z-index: 60;
  transition: top .4s var(--ease);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: var(--nav-h); padding: 0 12px 0 26px;
  background: rgba(24,25,29,.66); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  box-shadow: var(--nm-out);
  transition: height .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled .nav__inner { height: var(--nav-h-scrolled); background: rgba(19,20,23,.82); }

.logo { display: flex; align-items: center; }
.logo__type {
  position: relative; display: inline-flex; flex-direction: column; line-height: .94;
  font-family: var(--font-display); font-weight: 600;
}
.logo__l1, .logo__l2 { font-size: 18px; color: var(--text-0); letter-spacing: 0; }
.i-wrap { position: relative; display: inline-block; }
.i-wrap .i-dot {
  position: absolute; top: .0em; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 7px var(--accent-glow);
}
.logo__stop { color: var(--accent); }
footer .logo__l1, footer .logo__l2 { font-size: 20px; }
footer .i-wrap .i-dot { width: 3.4px; height: 3.4px; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  position: relative; padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: .87rem; color: var(--text-1); font-weight: 500; transition: color .25s, background .25s;
}
.nav__links a:hover { color: var(--text-0); background: var(--panel-hi); }
.nav__links a.is-active { color: var(--accent-2); }

.nav__cta { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--panel); box-shadow: var(--nm-out-sm); border: 1px solid var(--border-soft);
  align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
}
.burger span { display: block; width: 16px; height: 1.5px; background: var(--text-0); position: relative; transition: transform .3s var(--ease), opacity .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text-0); transition: transform .3s var(--ease); }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* progress bar under nav — matches the navbar's width */
.progress {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--nav-top) + var(--nav-h) + 10px);
  width: min(var(--container), calc(100% - 56px)); height: 5px; border-radius: var(--radius-pill); z-index: 59;
  background: rgba(255,255,255,.05); box-shadow: 0 0 22px -6px var(--accent-glow); overflow: hidden;
  transition: top .4s var(--ease), opacity .3s;
}
.nav.is-scrolled ~ .progress { top: calc(var(--nav-top) + var(--nav-h-scrolled) + 8px); }
.progress__fill {
  height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent) 55%, var(--accent-2));
  box-shadow: 0 0 18px 1px var(--accent-glow);
  transition: width .12s linear;
}

.menu-backdrop { position: fixed; inset: 0; background: rgba(10,10,11,.7); backdrop-filter: blur(4px); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.menu-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 70;
  background: var(--bg-1); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px; padding: 100px 26px 40px;
  transform: translateX(100%); transition: transform .45s var(--ease);
  box-shadow: -18px 0 40px rgba(0,0,0,.5);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  padding: 15px 6px; border-bottom: 1px solid var(--line); color: var(--text-1);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 550;
}
.mobile-menu a:hover { color: var(--accent-2); }
.mobile-menu .btn { margin-top: 20px; justify-content: center; }

/* ==========================================================================
   Layout rhythm
   ========================================================================== */
main { position: relative; z-index: 2; }
.section { padding: 88px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 42px; display: flex; flex-direction: column; gap: 14px; }
.section-head p { font-size: 1.02rem; }
.section-foot { margin-top: 34px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero__stage {
  position: relative; background: var(--panel);
  flex: 1 1 auto; min-height: 0;
}
.hero__frame {
  position: absolute; inset: 0 0 14px 0;
  border-radius: 0;
  overflow: hidden;
  /* inset: vignettes the video's own bottom edge from inside.
     outset: the actual drop shadow onto the panel strip / page below.
     (overflow:hidden does NOT clip an element's own box-shadow — confirmed;
     no separate unclipped sibling needed, same pattern as .service-card.) */
  box-shadow:
    inset 0 -50px 40px -35px rgba(0,0,0,.9),
    0 18px 30px -6px rgba(0,0,0,.75);
}
.hero__media { position: absolute; inset: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.04) brightness(.86); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,.0) 0%, rgba(10,10,11,.0) 100%),
    linear-gradient(90deg, rgba(10,10,11,.5), transparent 50%);
}
.hero__ghost {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-align: center; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(3rem, 11vw, 9rem); color: rgba(255,255,255,.16);
  height: clamp(2.6rem, 8vw, 6rem); overflow: hidden;
  transform: scaleY(-1); -webkit-mask-image: linear-gradient(rgba(0,0,0,.5), transparent 85%); mask-image: linear-gradient(rgba(0,0,0,.5), transparent 85%);
  user-select: none;
}

.hero__content {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end;
  /* bottom/top spacing must scale with viewport HEIGHT, not width — a %
     value here would resolve against width (CSS padding quirk) and blow
     up on ultrawide screens or collapse on short ones. clamp()+vh fixes that. */
  padding: calc(var(--nav-top) + var(--nav-h) + 24px) 5% clamp(200px, 34vh, 460px) 2.5%; pointer-events: none;
}
.hero__content__inner { padding: 0; width: 100%; pointer-events: auto; }
.hero__grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 40px; align-items: end; }
/* clamp()+vh here too, for the same reason as .hero__content's padding:
   fixed px margins don't shrink on short viewports, so on a wide-but-short
   window the whole text block used to overflow past the top of the frame. */
.hero__copy h1 { margin: clamp(8px, 2.2vh, 14px) 0 clamp(10px, 3vh, 18px); }
.hero__copy p { max-width: 46ch; font-size: 1.04rem; margin-bottom: clamp(14px, 4vh, 26px); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { margin-top: clamp(10px, 3vh, 20px); }
/* same fix as .hero__content: a fixed px offset doesn't know how tall the
   hero actually is, so on short viewports it pushed the badge past the
   visible area. clamp()+vh keeps the "sits well below the buttons" look
   on normal screens while scaling down safely on short ones. */
.hero__trust-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; transform: translateY(clamp(24px, 11vh, 180px)); }
.hero__badge {
  display: inline-flex; width: fit-content; align-items: center; gap: 12px; padding: 14px 18px;
  background: rgba(24,25,28,.72); backdrop-filter: blur(10px); border-radius: var(--radius-lg); box-shadow: var(--nm-out-sm); border: 1px solid var(--border-soft);
}
.hero__badge svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.hero__badge b { display: block; color: var(--text-0); font-family: var(--font-display); font-size: .88rem; }
.hero__badge span:last-child { display: block; color: var(--text-1); font-size: .74rem; margin-top: 2px; }
.hero__meta { font-family: var(--font-mono); font-size: .72rem; color: #fff; letter-spacing: .06em; padding-left: 4px; }

/* keeps hero text readable even where the video runs light/bright */
.hero__content .eyebrow,
.hero__copy h1,
.hero__copy p,
.hero__badge b,
.hero__badge span:last-child,
.hero__meta {
  text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 2px 10px rgba(0,0,0,.4);
}
.hero__copy p { color: var(--text-0); }
.hero__content .eyebrow { color: #fff; }

.btn--pulse { animation: btnPulse 3.6s ease-in-out infinite; }
.btn--pulse:hover { animation-play-state: paused; }
@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.scrolldown { position: absolute; right: 30px; bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 4; }
.scrolldown span:first-child { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; color: rgba(255,255,255,.55); writing-mode: vertical-rl; }
.scrolldown .line { width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.6), transparent); position: relative; overflow: hidden; }
.scrolldown .line::after { content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--accent); animation: dropline 2.2s ease-in-out infinite; }
@keyframes dropline { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card {
  background: var(--panel); border-radius: var(--radius-lg); border: 1px solid var(--border-soft);
  box-shadow: var(--nm-out); display: grid; grid-template-columns: 3fr 2fr; align-items: stretch;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  position: relative; overflow: hidden; min-height: 250px;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--nm-out), 0 22px 40px -18px rgba(236,98,88,.35); }
.service-card__body { padding: 26px 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.service-card__icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--panel);
  box-shadow: var(--nm-in-sm); display: flex; align-items: center; justify-content: center;
  color: var(--accent); position: relative; flex-shrink: 0;
}
.service-card__icon::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent-soft); }
.service-card__icon svg { width: 27px; height: 27px; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.service-card__num { position: absolute; top: 20px; right: 22px; font-family: var(--font-mono); font-size: .72rem; color: var(--text-2); z-index: 2; }
.service-card h3 { font-size: 1.05rem; }
.service-card p.sub { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-top: -8px; }
.service-card p.desc { font-size: .87rem; line-height: 1.55; flex-grow: 1; }
.service-card__media {
  position: relative; overflow: hidden; min-height: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%);
}
.service-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.1); }
.service-card__link { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--text-0); }
.service-card__link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.service-card:hover .service-card__link svg { transform: translateX(4px); color: var(--accent-2); }

/* ==========================================================================
   Referenzen
   ========================================================================== */
.ref-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.ref-filter {
  padding: 10px 20px; border-radius: var(--radius-pill); background: var(--panel);
  box-shadow: var(--nm-out-sm); border: 1px solid var(--border-soft); color: var(--text-1);
  font-family: var(--font-display); font-weight: 600; font-size: .82rem; cursor: pointer;
  transition: color .3s, box-shadow .3s, background .3s;
}
.ref-filter:hover { color: var(--text-0); }
.ref-filter.is-active { color: #1a0d0b; background: linear-gradient(155deg, var(--accent-2), var(--accent) 68%); box-shadow: var(--nm-out-sm), 0 0 20px -6px var(--accent-glow); border-color: transparent; }

.ref-grid { column-count: 3; column-gap: 20px; }
.ref-tile {
  position: relative; display: block; break-inside: avoid; margin-bottom: 20px; width: 100%;
  border-radius: var(--radius-lg); background: var(--panel); padding: 8px;
  box-shadow: var(--nm-out); border: 1px solid var(--border-soft); cursor: pointer;
  transition: opacity .35s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.ref-tile:hover { transform: translateY(-4px); box-shadow: var(--nm-out), 0 18px 34px -18px rgba(236,98,88,.35); }
.ref-tile.is-hidden { display: none; }
.ref-tile__frame { position: relative; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; box-shadow: var(--nm-in-sm); }
.ref-tile img { width: 100%; height: auto; display: block; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(1.02); }
.ref-tile:hover img { transform: scale(1.1); }
.ref-tile__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(9,9,10,.92) 100%); }
.ref-tile__label { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ref-tile__label h4 { color: #fff; font-family: var(--font-display); font-size: .95rem; }
.ref-tile__label span { display: block; font-family: var(--font-mono); font-size: .62rem; color: var(--accent-2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.ref-tile__zoom {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.08); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; color: #fff;
  border: 1px solid rgba(255,255,255,.18); transition: background .3s, transform .3s var(--ease);
}
.ref-tile__zoom svg { width: 15px; height: 15px; }
.ref-tile:hover .ref-tile__zoom { background: var(--accent); transform: scale(1.1) rotate(45deg); }

/* ==========================================================================
   360 Tour
   ========================================================================== */
.tour-panel {
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--nm-out); border: 1px solid var(--border);
  background: var(--panel); padding: 10px;
}
.tour-frame { border-radius: calc(var(--radius-xl) - 10px); overflow: hidden; box-shadow: var(--nm-in); position: relative; aspect-ratio: 16/8.6; background: #050505; }
.tour-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.tour-chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.tour-chip { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-pill); background: var(--panel); box-shadow: var(--nm-out-sm); font-size: .78rem; color: var(--text-1); border: 1px solid var(--border-soft); }
.tour-chip svg { width: 15px; height: 15px; color: var(--accent); }
.tour-copy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: start; margin-bottom: 36px; }
.tour-aside { display: flex; flex-direction: column; gap: 16px; }
.tour-badge { background: var(--panel); backdrop-filter: none; }
.tour-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-top: 40px; }
.tour-cta p { font-size: .92rem; max-width: 42ch; }

/* ==========================================================================
   Prozess
   ========================================================================== */
.process { position: relative; }
.process-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.process-track::before {
  content: ""; position: absolute; top: 33px; left: 6%; right: 6%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.process-step { display: flex; flex-direction: column; gap: 14px; position: relative; }
.process-step__icon {
  width: 66px; height: 66px; border-radius: 50%; background: var(--panel); box-shadow: var(--nm-out-sm);
  display: flex; align-items: center; justify-content: center; color: var(--accent); position: relative; z-index: 2;
  border: 1px solid var(--border-soft);
}
.process-step__icon svg { width: 27px; height: 27px; }
.process-step__n { font-family: var(--font-mono); font-size: .68rem; color: var(--accent-2); letter-spacing: .1em; }
.process-step h3 { font-size: .98rem; }
.process-step p { font-size: .83rem; line-height: 1.55; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 26px; align-items: stretch; }
.contact-card { padding: 34px; display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--panel); box-shadow: var(--nm-in-sm); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.contact-row__icon svg { width: 19px; height: 19px; }
.contact-row > div { min-width: 0; }
.contact-row b { display: block; color: var(--text-0); font-family: var(--font-display); font-size: .92rem; margin-bottom: 3px; }
.contact-row a, .contact-row span.val { color: var(--text-1); font-size: .89rem; overflow-wrap: anywhere; }
.contact-row a:hover { color: var(--accent-2); }
.contact-card__divider { height: 1px; background: var(--line); }
.contact-card__foot { font-size: .78rem; color: var(--text-2); line-height: 1.6; }

.form-card { padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .78rem; color: var(--text-2); font-family: var(--font-mono); letter-spacing: .04em; }
.field input, .field textarea, .field select {
  background: var(--panel); border-radius: var(--radius-sm); border: 1px solid var(--border-soft);
  box-shadow: var(--nm-in-sm); padding: 13px 16px; color: var(--text-0); font-family: var(--font-body); font-size: .92rem;
  outline: none; transition: box-shadow .3s, border-color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-dim); box-shadow: var(--nm-in-sm), 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 118px; font-family: var(--font-body); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-hint { font-size: .74rem; color: var(--text-2); max-width: 30ch; }
.form-status { font-size: .8rem; color: var(--accent-2); min-height: 1.2em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 46px 0 34px; border-top: 1px solid var(--line); margin-top: 20px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { font-size: .82rem; color: var(--text-2); }
.footer__links a:hover { color: var(--accent-2); }
.footer__copy { font-size: .78rem; color: var(--text-2); font-family: var(--font-mono); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,9,.92); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  padding: 70px 26px;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage { position: relative; max-width: 1100px; width: 100%; }
.lightbox__frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--nm-out); aspect-ratio: 16/10; background: var(--panel); }
.lightbox__frame img { width: 100%; height: 100%; object-fit: contain; background: #0c0c0d; opacity: 0; transform: scale(.98); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.lightbox__frame img.is-active { opacity: 1; transform: scale(1); }
.lightbox__cap { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.lightbox__cap h4 { color: var(--text-0); font-size: .95rem; font-family: var(--font-display); }
.lightbox__count { font-family: var(--font-mono); font-size: .74rem; color: var(--text-2); }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%;
  background: var(--panel); box-shadow: var(--nm-out-sm); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; color: var(--text-0); cursor: pointer;
  transition: background .3s, color .3s;
}
.lightbox__btn:hover { background: var(--accent); color: #1a0d0b; }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__prev { left: -66px; } .lightbox__next { right: -66px; }
.lightbox__close {
  position: absolute; top: -60px; right: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--panel); box-shadow: var(--nm-out-sm); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; color: var(--text-0); cursor: pointer;
}
.lightbox__close:hover { color: var(--accent-2); }
.lightbox__close svg { width: 18px; height: 18px; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal { padding: calc(var(--nav-top) + var(--nav-h) + 60px) 0 100px; }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: 30px; }
.legal h2 { font-size: 1.2rem; margin: 36px 0 12px; }
.legal p, .legal li { font-size: .93rem; line-height: 1.75; }
.legal a { color: var(--accent-2); }
.legal ul { padding-left: 20px; list-style: disc; margin: 10px 0; }
.legal .back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; font-size: .85rem; color: var(--text-2); }
.legal .back-link:hover { color: var(--accent-2); }

/* short-viewport safety net: on very squat windows (wide but not tall —
   e.g. a resized desktop browser, not a phone) even the tightest clamp()
   spacing above isn't enough room for a 2-line headline + 4-line paragraph.
   Trim the text itself and drop the trust badge rather than let anything
   overflow past the nav or off the bottom. */
@media (max-height: 560px) and (min-width: 621px) {
  .hero__copy h1 { font-size: clamp(1.5rem, 4.2vh, 2.3rem); margin: 4px 0 8px; }
  .hero__copy p { font-size: .88rem; margin-bottom: 10px; max-width: 42ch; }
  .hero__trust { display: none; }
}

/* same overflow risk, but for landscape/short tablets specifically: fixed
   top-anchored content can still run into the hero's bottom edge once the
   viewport itself doesn't have much height to give. */
@media (max-width: 1080px) and (max-height: 820px) and (min-width: 621px) {
  .hero__copy h1 { font-size: clamp(1.6rem, 4.4vh, 2.5rem); margin: 6px 0 10px; }
  .hero__copy p { font-size: .9rem; margin-bottom: 12px; max-width: 44ch; }
  .hero__trust { display: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .ref-grid { column-count: 2; }
  .process-track { grid-template-columns: repeat(5, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  /* anchor to the top instead of pushing up from the bottom: a fixed gap
     under the nav is what "sits right under the nav" actually means, and
     it holds regardless of how tall the tablet viewport is. */
  .hero__content { align-items: flex-start; padding: calc(var(--nav-top) + var(--nav-h) + 228px) 5% 60px 3%; }
  .hero__trust-inner { transform: translateY(clamp(50px, 16vh, 160px)); }
  .tour-copy { grid-template-columns: 1fr; gap: 20px; }
  .tour-frame { aspect-ratio: 3/4; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta .btn--accent span.full { display: none; }
  .nav__cta { display: none; }
  .burger { display: flex; }
  .container { padding: 0 20px; }
  /* the left-right body fade reads far more contrasty on a narrow phone
     screen than on desktop — darken the light left stop specifically here */
  body {
    background-image:
      radial-gradient(900px 650px at 100% 8%, rgba(236,98,88,.065), transparent 55%),
      radial-gradient(1100px 850px at 50% 118%, rgba(0,0,0,.45), transparent 60%),
      linear-gradient(90deg, #1c1e22 0%, #1a1c20 38%, #141518 68%, #101114 100%);
  }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 1fr; }
  .service-card__media { min-height: 190px; order: -1; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%); }
  .hero__frame { inset: 0 0 10px 0; }
  .hero__ghost { display: none; }
  .scrolldown { display: none; }
  .section { padding: 64px 0; }
  .process-track { grid-template-columns: 1fr; gap: 30px; }
  .process-track::before { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .lightbox__prev { left: 6px; } .lightbox__next { right: 6px; }
  .lightbox__btn { width: 42px; height: 42px; }
  .lightbox__close { top: -54px; right: 6px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .tour-frame { aspect-ratio: 3/6; }
  /* true phones only (real tablets stop at ~860px wide in portrait, and
     now get the top-anchored tablet treatment above instead) */
  .hero__content { padding: calc(var(--nav-top) + var(--nav-h) + 16px) 6% clamp(50px, 14vh, 160px) 6%; align-items: flex-end; }
  .hero__trust-inner { transform: translateY(clamp(24px, 8vh, 70px)); }
  .ref-grid { column-count: 1; }
  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__badge { padding: 11px 14px; }
  .progress { width: calc(100% - 40px); }
  .ref-filters { gap: 8px; }
  .ref-filter { padding: 8px 15px; font-size: .78rem; }
}
