:root {
  --bg: #d9d9d9;
  --ink: #0b0b0b;
  --card: #0e0e0e;
  --card-2: #131313;
  --white: #ffffff;
  --muted: #9a9a9a;
  --muted-dark: #5f5f5f;
  --accent: #35d07f;
  --radius: 28px;
  --radius-sm: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em;
}
.preloader-mark span { font-weight: 300; }
.preloader-bar {
  position: absolute; left: 24px; right: 24px; bottom: 32px; height: 22px;
  background: #ececec; border-radius: 999px; overflow: hidden;
}
.preloader-fill {
  height: 100%; width: 5%; background: #1c1c1c; border-radius: 999px;
  transition: width .35s ease;
}

/* ---------- Shell / Layout ---------- */
.shell {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px;
  min-height: 100vh;
  opacity: 0;
  transition: opacity .8s ease .1s;
}
.shell.ready { opacity: 1; }

.rail {
  background: var(--card);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center;
  padding: 26px 0;
  position: sticky; top: 14px;
  height: calc(100vh - 60px);
}
.rail-logo {
  color: var(--white); font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1.5px solid #2b2b2b; border-radius: 14px;
  transition: border-color .25s;
}
.rail-logo:hover { border-color: var(--white); }
.rail-nav { margin: auto 0; display: flex; flex-direction: column; gap: 18px; }
.rail-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  transition: background .25s, color .25s, transform .25s;
}
.rail-btn svg { width: 22px; height: 22px; }
.rail-btn:hover { background: #1f1f1f; transform: translateY(-2px); }
.rail-btn-active { background: var(--white); color: var(--ink); }
.rail-btn-active:hover { background: var(--white); }

main { min-width: 0; }

.card { background: var(--card); border-radius: var(--radius); }
.card-light { background: var(--white); color: var(--ink); }

/* ---------- Hero Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 14px;
  min-height: calc(100vh - 28px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .92;
  animation: heroIn 1.4s ease both;
}
@keyframes heroIn { from { transform: scale(1.06); opacity: 0; } to { transform: scale(1); opacity: .92; } }

.hero-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--bg);
  padding: 8px 34px 14px;
  border-radius: 0 0 24px 24px;
  z-index: 3;
}
.hero-notch::before, .hero-notch::after {
  content: ""; position: absolute; top: 0; width: 24px; height: 24px;
  background: radial-gradient(circle at 100% 100%, transparent 24px, var(--bg) 24px);
}
.hero-notch::before { left: -24px; transform: scaleX(-1); }
.hero-notch::after { right: -24px; }

.wordmark { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.wordmark em { font-style: normal; font-weight: 300; }

.hero-nav {
  position: absolute; top: 26px; left: 30px; z-index: 3;
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: calc(50% - 140px); /* nicht in die Notch laufen */
}
.pill {
  color: var(--white); border: 1px solid rgba(255,255,255,.55);
  padding: 7px 18px; border-radius: 999px; font-size: 14px;
  backdrop-filter: blur(4px);
  transition: background .25s, color .25s;
}
.pill:hover { background: var(--white); color: var(--ink); }

.hero-card {
  position: absolute; left: 26px; bottom: 26px; z-index: 3;
  max-width: 460px;
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  animation: cardUp .9s ease .5s both;
}
@keyframes cardUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-card h1 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.25; }
.hero-card p { margin-top: 12px; font-size: 14.5px; color: #3d3d3d; }

.cta {
  margin-top: 20px;
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 8px 8px 8px 18px;
  transition: box-shadow .25s, transform .25s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.cta-tag { color: var(--accent); font-weight: 700; font-size: 15px; white-space: nowrap; }
.cta-line { flex: 0 0 26px; height: 1px; background: #bbb; }
.cta-label { font-weight: 600; font-size: 15px; white-space: nowrap; }
.cta-circle {
  margin-left: auto;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center; font-size: 18px;
  transition: transform .25s;
}
.cta:hover .cta-circle { transform: translateX(3px); }

/* ---------- Seitenspalte ---------- */
.side { display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.side-card { color: var(--white); padding: 26px; display: flex; flex-direction: column; }
.side-card h2 { font-size: 20px; letter-spacing: -0.01em; text-transform: uppercase; }
.side-card p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

.status-row {
  margin-top: 18px; display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: #dedede;
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53,208,127,.5); }
  50% { box-shadow: 0 0 0 8px rgba(53,208,127,0); }
}
.status-bar {
  margin-top: 14px; height: 8px; border-radius: 999px; background: #232323; overflow: hidden;
}
.status-bar span {
  display: block; height: 100%; width: 40%; border-radius: 999px; background: var(--white);
  animation: slide 2.6s ease-in-out infinite alternate;
}
@keyframes slide { from { transform: translateX(-30%); } to { transform: translateX(180%); } }

.side-card-img { padding: 0; overflow: hidden; position: relative; min-height: 340px; justify-content: flex-end; }
.side-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .6s ease; }
.side-card-img:hover img { transform: scale(1.04); }
.side-card-body {
  position: relative; z-index: 2; padding: 26px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}
.side-link { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.4); transition: border-color .25s; }
.side-link:hover { border-color: var(--white); }

/* ---------- Sektionen ---------- */
.section { margin-top: 14px; }
.section-head { padding: 46px 12px 22px; max-width: 720px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; text-transform: uppercase; }
.section-head p { margin-top: 8px; color: #444; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.tile { color: var(--white); padding: 28px; transition: transform .3s ease, background .3s; }
.tile:hover { transform: translateY(-4px); background: var(--card-2); }
.tile h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .01em; }
.tile ul { margin-top: 14px; list-style: none; }
.tile li {
  position: relative; padding: 7px 0 7px 18px;
  font-size: 13.5px; color: var(--muted);
  border-bottom: 1px solid #1e1e1e;
}
.tile li:last-child { border-bottom: none; }
.tile li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.tile-link { transition: color .25s; }
.tile-link:hover { color: var(--accent); }
.tile-more {
  display: inline-block; margin-top: 16px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, transform .25s;
}
.tile-more:hover { border-color: var(--accent); transform: translateX(4px); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Laufband ---------- */
.ticker { margin-top: 14px; overflow: hidden; padding: 18px 0; }
.ticker-track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  color: #cfcfcf; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.tick-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Live-Öffnungsstatus ---------- */
.open-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; border: 1px solid #2e2e2e;
}
.open-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.open-badge.open { color: var(--accent); border-color: rgba(53,208,127,.4); }
.open-badge.open::before { background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
.open-badge.closed { color: #ff9a6b; border-color: rgba(255,154,107,.35); }
.open-badge.closed::before { background: #ff9a6b; }

/* ---------- Parallax / Tilt ---------- */
.hero-img, .show-tile img, .about-media img, .cta-band img { will-change: transform; }
.show-tile { transform-style: preserve-3d; }

/* ---------- Name + Scroll-Fortschritt in der Rail ---------- */
[hidden] { display: none !important; }
.rail-name {
  position: absolute; left: 50%; bottom: 104px;
  transform: translateX(-50%);
  writing-mode: vertical-rl; rotate: 180deg;
  color: var(--white); font-size: 13px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}
.rail-progress {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 22px; width: 3px; height: 64px; border-radius: 999px;
  background: #232323; overflow: hidden;
}
.rail-progress span {
  display: block; width: 100%; height: 100%;
  background: var(--accent); border-radius: 999px;
  transform: scaleY(0); transform-origin: top;
}

/* ---------- Unternehmen ---------- */
.kicker {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.about {
  display: grid; grid-template-columns: 1.05fr minmax(340px, 1fr);
  overflow: hidden; min-height: 480px;
}
.about-media { position: relative; }
.about-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .85; transition: transform .6s ease;
}
.about:hover .about-media img { transform: scale(1.03); }
.about-body {
  padding: 52px 56px; color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; max-width: 640px;
}
.about-body h2 {
  margin-top: 14px; font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.02em; text-transform: uppercase; line-height: 1.15;
}
.about-body > p { margin-top: 18px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.about-values {
  margin-top: 26px; list-style: none; width: 100%; max-width: 440px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px;
}
.about-values li {
  position: relative; padding: 8px 0 8px 26px;
  font-size: 13.5px; color: #dedede; font-weight: 600;
  border-bottom: 1px solid #1e1e1e;
}
.about-values li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--accent); font-weight: 800;
}

.facts {
  margin-top: 14px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 14px 0;
}
.fact {
  padding: 28px 36px; color: var(--white);
  border-left: 1px solid #1e1e1e;
  transition: background .3s;
}
.fact:first-child { border-left: none; }
.fact:hover { background: var(--card-2); }
.fact-value {
  display: block; font-size: 32px; font-weight: 800; line-height: 1;
  letter-spacing: -0.02em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.fact-title {
  display: block; margin-top: 12px; font-size: 13.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.fact-label { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 1250px) {
  .facts { grid-template-columns: 1fr 1fr; row-gap: 0; }
  .fact:nth-child(3) { border-left: none; }
  .fact:nth-child(n+3) { border-top: 1px solid #1e1e1e; }
}
@media (max-width: 620px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: none; }
  .fact:nth-child(n+2) { border-top: 1px solid #1e1e1e; }
}

/* ---------- Branchen-Showcase ---------- */
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.show-tile { position: relative; overflow: hidden; min-height: 340px; margin: 0; display: flex; align-items: flex-end; }
.show-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .8; transition: transform .6s ease, opacity .4s;
}
.show-tile:hover img { transform: scale(1.05); opacity: .95; }
.show-tile figcaption {
  position: relative; z-index: 2; padding: 24px; width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  color: var(--white);
}
.show-tile h3 { font-size: 16px; text-transform: uppercase; }
.show-tile figcaption p { margin-top: 6px; font-size: 13px; color: #cfcfcf; }

/* ---------- Arbeitsweise ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.step { padding: 30px 28px; color: var(--white); position: relative; overflow: hidden; transition: transform .3s ease, background .3s; }
.step:hover { transform: translateY(-4px); background: var(--card-2); }
.step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .35s ease;
}
.step:hover::before { transform: scaleY(1); }
.step h3 { font-size: 16px; text-transform: uppercase; }
.step p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

/* ---------- CTA-Band ---------- */
.cta-band { position: relative; overflow: hidden; min-height: 360px; display: flex; align-items: center; }
.cta-band img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .6;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translateX(0); }
  to { transform: scale(1.12) translateX(-2%); }
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 55%, transparent 100%),
              linear-gradient(to top, rgba(0,0,0,.55), transparent 40%);
}
.cta-band-body { position: relative; z-index: 2; padding: 48px; max-width: 620px; color: var(--white); }
.cta-band-body h2 { font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; letter-spacing: -0.01em; }
.cta-band-body p { margin-top: 12px; color: #d6d6d6; }
.cta-band-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--accent); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.contact-facts dl { margin-top: 18px; }
.contact-facts dl div {
  display: grid; grid-template-columns: 130px 1fr; gap: 8px;
  padding: 12px 0; border-bottom: 1px solid #1e1e1e; font-size: 14px;
}
.contact-facts dt { color: var(--muted-dark); }
.contact-facts dd { color: #e6e6e6; }
.ph { color: var(--muted) !important; font-style: italic; }

.contact-form h3, .contact-facts h3 { font-size: 17px; text-transform: uppercase; }
.form-row { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  background: #1a1a1a; border: 1px solid #2b2b2b; border-radius: 12px;
  color: var(--white); padding: 11px 14px; font-size: 14px; font-family: inherit;
  transition: border-color .25s;
}
.form-row input:hover, .form-row select:hover, .form-row textarea:hover { border-color: #444; }
.form-check { margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.form-check input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-form .btn { margin-top: 20px; }
.form-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }

/* ---------- WhatsApp-Funnel ---------- */
.wa-link { color: var(--accent) !important; border-bottom: 1px solid rgba(53,208,127,.4); transition: border-color .25s; }
.wa-link:hover { border-color: var(--accent); }
.funnel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.funnel-step-label { font-size: 12.5px; color: var(--muted); }
.funnel-progress {
  margin-top: 14px; height: 6px; border-radius: 999px; background: #232323; overflow: hidden;
}
.funnel-progress span {
  display: block; height: 100%; width: 100%; background: var(--accent);
  transform-origin: left; transform: scaleX(.2); transition: transform .4s ease;
}
.funnel-sub { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.funnel-frage { margin-top: 20px; font-size: 16px; font-weight: 700; color: var(--white); }
.funnel-options { margin-top: 14px; display: grid; gap: 8px; }
.funnel-opt {
  text-align: left; background: #1a1a1a; border: 1px solid #2b2b2b; border-radius: 12px;
  color: #e6e6e6; padding: 12px 16px; font-size: 14px; font-family: inherit; cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}
.funnel-opt:hover { border-color: var(--accent); background: #1f1f1f; transform: translateX(3px); }
.funnel-opt.sel { border-color: var(--accent); background: rgba(53,208,127,.1); }
.funnel-nav { margin-top: 20px; display: flex; justify-content: space-between; gap: 12px; }
.funnel-nav .btn-light { margin-left: auto; }
.funnel-nav .btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.funnel-preview {
  margin-top: 14px; background: #1a1a1a; border: 1px solid #2b2b2b; border-radius: 12px;
  padding: 16px; font-size: 13px; color: #d6d6d6; white-space: pre-wrap;
  font-family: inherit; line-height: 1.6; max-height: 280px; overflow-y: auto;
}
.btn-wa {
  margin-top: 16px; background: #25d366; color: #062b16; display: inline-block;
}
.call-box {
  margin-top: 14px; padding: 22px; border-radius: 12px;
  background: #1a1a1a; border: 1px solid #2b2b2b;
  display: flex; flex-direction: column; gap: 6px;
}
.call-number { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--white); letter-spacing: .01em; }
.call-hours { font-size: 13px; color: var(--muted); }
.btn-wa:hover { background: var(--accent); }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #ff7a7a; }

/* ---------- Footer ---------- */
.footer { grid-column: 2; margin-top: 14px; }
.footer-inner {
  background: var(--card); border-radius: var(--radius);
  padding: 26px 32px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.wordmark-footer { color: var(--white); font-size: 15px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { font-size: 13.5px; color: var(--muted); transition: color .25s; }
.footer nav a:hover { color: var(--white); }
.copyright { font-size: 13px; color: var(--muted-dark); }
.webesor-mark {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); opacity: .7;
  transition: opacity .25s, color .25s;
}
.webesor-mark span { font-size: 11.5px; letter-spacing: .04em; }
.webesor-mark svg { height: 16px; width: auto; display: block; }
.webesor-mark:hover { opacity: 1; color: var(--white); }

/* ---------- Hero-Menü-Button (oben rechts) ---------- */
.hero-menu-btn {
  position: absolute; top: 26px; right: 30px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(255,255,255,.55);
  color: var(--white); cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(4px);
  transition: background .25s, color .25s, transform .25s;
}
.hero-menu-btn svg { width: 22px; height: 22px; }
.hero-menu-btn:hover { background: var(--white); color: var(--ink); transform: rotate(90deg); }

/* ---------- Overlay-Menü ---------- */
.overlay-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 8, 8, .97);
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
.overlay-menu.open { opacity: 1; visibility: visible; }

.overlay-frame {
  height: 100%; max-width: 1080px; margin: 0 auto;
  padding: 26px 40px 34px;
  display: flex; flex-direction: column;
}
.overlay-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 22px; border-bottom: 1px solid #222;
}
.wordmark-overlay { color: var(--white); font-size: 18px; }

.overlay-close {
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(255,255,255,.5);
  color: var(--white); cursor: pointer; display: grid; place-items: center;
  transition: background .25s, color .25s, transform .25s;
}
.overlay-close svg { width: 20px; height: 20px; }
.overlay-close:hover { background: var(--white); color: var(--ink); transform: rotate(90deg); }

.overlay-inner {
  flex: 1;
  display: grid; grid-template-columns: 1fr auto; gap: 60px;
  align-items: center; min-height: 0;
}
.overlay-nav { display: flex; flex-direction: column; }
.overlay-link {
  color: var(--white); font-size: clamp(30px, 5vw, 52px); font-weight: 800;
  letter-spacing: -0.02em; text-transform: uppercase; line-height: 1.35;
  width: fit-content; position: relative;
  transition: color .25s, transform .3s;
}
.overlay-link::after {
  content: ""; position: absolute; left: 0; bottom: 4px; height: 3px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.overlay-link:hover { color: var(--accent); transform: translateX(10px); }
.overlay-link:hover::after { transform: scaleX(1); }

.overlay-side { max-width: 320px; }
.overlay-side-title {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-dark); margin: 26px 0 12px;
}
.overlay-side-title:first-child { margin-top: 0; }
.overlay-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.overlay-tags a {
  font-size: 12.5px; color: #cfcfcf; border: 1px solid #2e2e2e;
  padding: 6px 12px; border-radius: 999px;
  transition: border-color .25s, color .25s, background .25s;
}
.overlay-tags a:hover { border-color: var(--accent); color: var(--white); background: rgba(53,208,127,.08); }
.overlay-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid #222;
}
.overlay-wa {
  display: inline-flex; align-items: center; gap: 12px;
  color: #e6e6e6; font-size: 14.5px;
  border: 1px solid #2e2e2e; border-radius: 999px; padding: 11px 22px;
  transition: border-color .25s, background .25s, transform .25s;
}
.overlay-wa svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.overlay-wa strong { font-weight: 700; color: var(--white); }
.overlay-wa:hover { border-color: var(--accent); background: rgba(53,208,127,.08); transform: translateY(-2px); }
.overlay-legal { display: flex; gap: 22px; }
.overlay-legal a { font-size: 13.5px; color: var(--muted); transition: color .25s; }
.overlay-legal a:hover { color: var(--white); }

/* Menü-Einflug-Animation */
.menu-anim { opacity: 0; transform: translateY(22px); }
.overlay-menu.open .menu-anim {
  animation: menuIn .55s cubic-bezier(.2,.7,.2,1) forwards;
}
.overlay-menu.open .menu-anim:nth-child(1) { animation-delay: .08s; }
.overlay-menu.open .menu-anim:nth-child(2) { animation-delay: .15s; }
.overlay-menu.open .menu-anim:nth-child(3) { animation-delay: .22s; }
.overlay-menu.open .menu-anim:nth-child(4) { animation-delay: .29s; }
.overlay-menu.open .menu-anim:nth-child(5) { animation-delay: .36s; }
.overlay-menu.open .menu-anim:nth-child(6) { animation-delay: .43s; }
.overlay-menu.open .overlay-side { animation-delay: .3s; }
@keyframes menuIn { to { opacity: 1; transform: none; } }

body.menu-open { overflow: hidden; }

/* Aktiver Rail-Zustand (Scrollspy) */
.rail-btn.is-active { background: var(--white); color: var(--ink); }

/* ---------- Unterseiten ---------- */
.sub-shell { max-width: 1240px; margin: 0 auto; padding: 14px; }
.sub-header {
  background: var(--card); border-radius: var(--radius);
  padding: 16px 26px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.sub-header .wordmark { color: var(--white); font-size: 17px; }
.sub-header nav { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-hero {
  position: relative; overflow: hidden; margin-top: 14px;
  border-radius: var(--radius); min-height: 420px;
  display: flex; align-items: flex-end;
}
.sub-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.sub-hero-body {
  position: relative; z-index: 2; padding: 44px;
  background: linear-gradient(to top, rgba(0,0,0,.88), transparent);
  color: var(--white); width: 100%;
}
.sub-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.sub-hero h1 { margin-top: 10px; font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.1; }
.sub-hero p { margin-top: 12px; max-width: 620px; color: #d6d6d6; font-size: 15px; }
.sub-grid { margin-top: 14px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.sub-list { padding: 36px 40px; color: var(--white); }
.sub-list h2 { font-size: 20px; text-transform: uppercase; }
.sub-list ul { margin-top: 18px; list-style: none; }
.sub-list li {
  position: relative; padding: 12px 0 12px 30px;
  font-size: 14.5px; color: #d6d6d6; border-bottom: 1px solid #1e1e1e;
}
.sub-list li:last-child { border-bottom: none; }
.sub-list li::before { content: "✓"; position: absolute; left: 0; top: 11px; color: var(--accent); font-weight: 800; }
.sub-cta { padding: 32px; color: var(--white); position: sticky; top: 14px; }
.sub-cta h2 { font-size: 18px; text-transform: uppercase; }
.sub-cta p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.sub-cta .btn { display: block; text-align: center; margin-top: 14px; }
.sub-cta .btn-ghost { border-color: #333; }
.sub-note {
  margin-top: 14px; padding: 18px 22px; border-radius: var(--radius-sm);
  background: #1a1a1a; font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.sub-footer { margin-top: 14px; }
@media (max-width: 900px) {
  .sub-grid { grid-template-columns: 1fr; }
  .sub-cta { position: static; }
  .sub-hero-body { padding: 26px 22px; }
  .sub-list { padding: 26px 22px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr; min-height: 0; }
  .side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .about { grid-template-columns: 1fr; min-height: 0; }
  .about-media { min-height: 300px; order: -1; }
  .about-body { max-width: none; padding: 34px 30px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .rail {
    position: fixed; left: 10px; right: 10px; bottom: 10px; top: auto;
    height: 64px; flex-direction: row; padding: 0 18px; z-index: 50;
    border-radius: 999px;
  }
  .rail-logo { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
  .rail-nav { flex-direction: row; margin: 0 0 0 auto; gap: 8px; }
  .rail-btn { width: 44px; height: 44px; }
  body { padding-bottom: 84px; }
  .side { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero-card { left: 14px; right: 14px; bottom: 14px; max-width: none; padding: 22px; }
  .hero-nav { top: 74px; left: 16px; max-width: calc(100% - 90px); }
  .hero-notch { padding: 6px 18px 10px; }
  .wordmark { font-size: 16px; }
  .cta-label { display: none; }
  .cta-line { display: none; }
  .cta-band-body { padding: 30px 22px; }
  .overlay-frame { padding: 18px 20px 24px; overflow-y: auto; }
  .overlay-inner { grid-template-columns: 1fr; gap: 30px; align-items: start; padding: 26px 0; }
  .overlay-link { font-size: 28px; }
  .overlay-bottom { flex-direction: column; align-items: flex-start; }
  .hero-menu-btn { top: 22px; right: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-media { min-height: 240px; }
  .about-body { padding: 26px 22px; }
  .showcase { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-facts dl div { grid-template-columns: 1fr; gap: 2px; }
  .footer { grid-column: 1; }
  .footer-inner { flex-direction: column; text-align: center; }
  .rail-name, .rail-progress { display: none; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
