/* =========================================================================
   bytenight.de — shared stylesheet
   Used by index.html and it-hilfe.html. Dark theme is the default look
   (previously hidden behind prefers-color-scheme, now the baseline).
   ========================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #151a16;
  --bg2: #1b221d;
  --surface: #202922;
  --card: rgba(139, 185, 157, .06);
  --border: rgba(218, 232, 220, .16);
  --primary: #8bb99d;
  --primary-strong: #a9d3ba;
  --grad: linear-gradient(135deg, #214c39, #376f55);
  --text: #edf1eb;
  --muted: #a9b3ab;
  --r: 10px;
  --max: 1240px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 300;
  background: var(--text);
  color: var(--bg);
  padding: .7rem 1rem;
  border-radius: 6px;
}

/* Subtle film-grain overlay, matches established brand texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 190;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ── Nav ─────────────────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem max(4%, calc((100% - var(--max)) / 2));
  min-height: 68px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(21, 26, 22, .86);
  border-bottom: 1px solid var(--border);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--text);
  text-decoration: none;
  flex: none;
}

.brand-lockup img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex: none;
}

.brand-lockup-copy {
  display: grid;
  gap: .12rem;
  line-height: 1;
}

.brand-lockup-copy strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.055em;
}

.brand-lockup-copy small {
  font: 600 .56rem/1.1 "Outfit", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1.45rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--bg);
  padding: .6rem 1.3rem;
  border-radius: 7px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, background .2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(21, 26, 22, .98);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  transition: color .2s;
}

.mobile-menu a:hover { color: var(--primary); }

.mobile-menu .mob-cta {
  background: var(--text);
  color: var(--bg);
  padding: .8rem 2rem;
  border-radius: 7px;
  font-size: 1rem;
}

@media (max-width: 850px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 780px) {
  .brand-lockup-copy small { display: none; }
}

@media (max-width: 480px) {
  .brand-lockup { gap: 0; }
  .brand-lockup-copy { display: none; }
  .brand-lockup img { width: 42px; height: 42px; border-radius: 10px; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: .9rem 2.1rem;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, background .2s, border-color .2s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(139, 185, 157, .55);
  background: rgba(139, 185, 157, .08);
}

.btn-primary:active, .btn-secondary:active, .nav-cta:active { transform: translateY(1px); }

:is(a, button, summary):focus-visible {
  outline: 3px solid rgba(139, 185, 157, .45);
  outline-offset: 3px;
}

/* ── Layout / sections ───────────────────────────────────────────────── */

section, main > section {
  padding: 7rem max(5%, calc((100% - var(--max)) / 2));
  width: 100%;
}

.container { width: min(var(--max), 100%); margin: 0 auto; }

.section-tag {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 1.1rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
  line-height: 1.75;
}

.section-head { max-width: 850px; }
.section-head .section-sub { max-width: 100%; }

.bg-alt { background: var(--bg2); }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(820px, 100dvh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  align-content: center;
  padding: 7rem max(5%, calc((100% - var(--max)) / 2)) 5.5rem;
  overflow: hidden;
  background: #10140f;
}

.hero {
  /* Hero children get scroll-scrubbed transforms in JS; establishing a
     containing block here keeps that effect visually clipped to the hero. */
  will-change: transform, opacity;
}

.hero-media {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 6;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  justify-self: end;
  will-change: transform;
}

.hero-media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 260px 260px 12px 12px;
  overflow: hidden;
  box-shadow: 18px 18px 0 #435046;
  outline: 1px solid rgba(237, 241, 235, .3);
  outline-offset: 8px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 20, 15, 0) 55%, rgba(16, 20, 15, .55) 100%);
}

.hero-tag-pin {
  position: absolute;
  right: .5rem;
  bottom: 1.6rem;
  z-index: 2;
  max-width: calc(100% - 1rem);
  padding: 1rem 1.2rem;
  background: var(--text);
  color: #111914;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

.hero-badge {
  grid-column: 1;
  grid-row: 1;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0 0 1.1rem;
  margin-bottom: 1.3rem;
  font-size: .76rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  grid-column: 1;
  grid-row: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.hero h1 .grad-text {
  color: var(--primary-strong);
}

.hero p {
  grid-column: 1;
  grid-row: 3;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-actions {
  grid-column: 1;
  grid-row: 4;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 6.5rem;
  }

  .hero-badge, .hero h1, .hero p, .hero-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-media {
    grid-column: 1;
    grid-row: auto;
    margin-top: 3rem;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    justify-self: start;
  }

  .hero-media-frame { border-radius: 220px 220px 10px 10px; }

  .hero-tag-pin { right: .75rem; bottom: 1rem; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { text-align: center; }
}

/* ── Stats strip ─────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-left: max(5%, calc((100% - var(--max)) / 2));
  padding-right: max(5%, calc((100% - var(--max)) / 2));
}

.stat {
  text-align: center;
  padding: 1.7rem 1rem;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.stat:last-child { border-right: none; }

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--text);
}

.stat-label {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .4rem;
  font-weight: 500;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.price-strip {
  padding: 1.15rem 6%;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
}

.price-strip strong {
  color: var(--text);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}

@media (max-width: 900px) and (min-width: 701px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── About / Über Nico ───────────────────────────────────────────────── */

.about-inner {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  margin-top: 4rem;
}

/* Parallax depth targets (JS-driven scrub, see initParallax). Elements
   marked [data-parallax] move at a different speed than page scroll on
   desktop; plain and static everywhere else. */
[data-parallax] {
  will-change: transform;
}

.about-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  min-width: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.about-avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid rgba(139, 185, 157, .4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 0 6px rgba(139, 185, 157, .1);
  background: #eef1ec;
  margin-bottom: .6rem;
}

.about-name {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -.04em;
}

.about-role {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 600;
}

.about-location {
  font-size: .8rem;
  color: var(--muted);
}

.about-text p {
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 65ch;
}

.about-text p:last-child { margin-bottom: 0; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 2rem;
}

.about-tag {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .3rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-avatar-wrap { align-items: center; margin: 0 auto; max-width: 420px; }
  .about-tags { justify-content: center; }
}

/* ── Leistungen / Services grid ──────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.feature-block {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease;
}

.feature-block:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 185, 157, .4);
}

.feature-block img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.feature-block-body { padding: 1.8rem 2rem 2.1rem; }

.feature-block-tag {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: .6rem;
}

.feature-block h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .7rem;
  letter-spacing: -.02em;
}

.feature-block p {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.feature-block ul {
  list-style: none;
  color: var(--muted);
  font-size: .88rem;
}

.feature-block li {
  margin: .4rem 0;
  padding-left: 1.4rem;
  position: relative;
}

.feature-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.feature-block-cta {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.feature-block-cta:hover { text-decoration: underline; }

.mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.mini-feature {
  padding: 1.6rem 1.6rem 0;
}

.mini-feature:nth-child(2) {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.mini-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.mini-feature p {
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .mini-features { grid-template-columns: 1fr; }
  .mini-feature:nth-child(2) {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
  }
}

/* Services grid (it-hilfe.html style, reused component) */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 3.5rem;
}

.service {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: transform .25s ease, background .25s ease;
}

.service:hover {
  background: rgba(139, 185, 157, .07);
  transform: translateY(-4px);
}

.service h3 {
  font-size: 1.2rem;
  margin-bottom: .8rem;
  letter-spacing: -.02em;
}

.service ul, .checklist { list-style: none; color: var(--muted); }

.service li, .checklist li {
  margin: .38rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: .92rem;
}

.service li::before, .checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 850px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ── Products / ClashCrew ────────────────────────────────────────────── */

.product-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem 3rem;
  margin-top: 3rem;
}

.product-logo {
  width: 160px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4));
}

.product-info { flex: 1; }

.product-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: .6rem;
}

.product-info h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .8rem;
}

.product-info p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 1.6rem;
}

.product-status {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  flex-shrink: 0;
  margin-right: .4rem;
  display: inline-block;
  transition: background .3s;
}

.status-dot.up { background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, .7); }
.status-dot.down { background: #f87171; box-shadow: 0 0 6px rgba(248, 113, 113, .7); }

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--grad);
  color: #eafff2;
  padding: .7rem 1.6rem;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(33, 76, 57, .35);
}

.product-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(33, 76, 57, .5);
}

@media (max-width: 700px) {
  .product-card { flex-direction: column; text-align: center; padding: 2rem; }
  .product-logo { width: 120px; }
  .product-info p { max-width: 100%; }
}

/* ── Process / Ablauf ────────────────────────────────────────────────── */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
}

.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.8rem;
  min-height: 210px;
  overflow: hidden;
}

.process-step h3 {
  position: relative;
  font-size: 1.05rem;
  font-weight: 700;
  margin: .3rem 0 .7rem;
}

.process-step p {
  position: relative;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.65;
}

.step-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  line-height: 1;
  color: var(--primary);
  opacity: .22;
  position: absolute;
  right: .9rem;
  bottom: -.4rem;
  pointer-events: none;
}

@media (max-width: 900px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* Vertical pin sequence (desktop, JS-driven — see initVerticalStepPin).
   Steps sit stacked/absolute while the section is pinned; scroll progress
   scrubs which step is active. Falls back to the plain .process-steps grid
   above whenever JS/GSAP is unavailable, on mobile, or reduced-motion. */
.process-pin-stage {
  display: none;
}

[data-pin-process].pin-active .process-steps {
  display: none;
}

[data-pin-process].pin-active .process-pin-stage {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-top: 3.5rem;
  min-height: 380px;
}

.pin-stage-rail {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.pin-stage-rail-item {
  position: relative;
  padding: 1rem 0 1rem 1.4rem;
  border-left: 2px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color .3s ease, border-color .3s ease;
}

.pin-stage-rail-item .step-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .95rem;
  font-weight: 400;
  color: var(--primary);
  opacity: .7;
  margin-right: .6rem;
  position: static;
}

.pin-stage-rail-item.is-active {
  color: var(--text);
  border-color: var(--primary);
}

.pin-stage-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--r) * 2);
  padding: 2.5rem;
  min-height: 300px;
}

.pin-stage-card {
  position: absolute;
  inset: 2.5rem;
  opacity: 0;
  visibility: hidden;
}

.pin-stage-card.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
}

.pin-stage-card .step-num {
  position: static;
  opacity: .3;
  font-size: 3.4rem;
}

.pin-stage-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: .6rem 0 .8rem;
}

.pin-stage-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 46ch;
}

/* Horizontal scroll-snap variant (used on it-hilfe for the 5-step flow).
   On JS-capable desktop viewports this track is driven by GSAP ScrollTrigger
   as a pinned horizontal scrub (see animations.js initHorizontalPin) — the
   section pins and the track translates on transform, so native overflow
   scrolling here is purely the no-JS / reduced-motion / mobile fallback. */

.steps-scroll {
  display: flex;
  gap: 1rem;
  margin-top: 3.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  /* Hide the native scrollbar (fallback path only) while keeping touch/
     wheel scrolling fully functional; a fade-edge hints at more content
     instead of a raw OS scrollbar. */
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 96%, transparent 100%);
}

.steps-scroll::-webkit-scrollbar {
  display: none;
}

.steps-scroll .process-step {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
  min-height: 190px;
}

/* Pinned state: JS adds this once ScrollTrigger takes over the track, so the
   section-level padding/overflow doesn't fight the pin wrapper it creates. */
.steps-scroll.is-pinned {
  overflow: visible;
  scroll-snap-type: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.pin-progress {
  display: flex;
  gap: .4rem;
  margin-top: 1.5rem;
}

.pin-progress span {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transform-origin: left;
  transform: scaleX(0);
  transition: background-color .2s;
}

.pin-progress span.is-active {
  background: var(--primary);
}

/* ── FAQ (accordion mechanics unchanged) ─────────────────────────────── */

.faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  max-width: 850px;
}

details.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s;
}

details.faq-item[open] { border-color: rgba(139, 185, 157, .45); }

details.faq-item summary {
  padding: 1.3rem 1.6rem;
  cursor: pointer;
  font-size: .97rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .2s;
}

details.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1.6rem 1.4rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.75;
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 1rem;
}

.faq-answer ul { padding-left: 1.2rem; margin-top: .5rem; }

/* ── Pricing (it-hilfe) ──────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.2rem;
  margin-top: 3.5rem;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

.price-card h3 { font-size: 1.45rem; }

.price {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  margin: .7rem 0;
}

.price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.price-card p { color: var(--muted); }
.price-card .checklist { margin: 1.5rem 0 2rem; }
.price-card .btn-primary, .price-card .btn-secondary { margin-top: auto; align-self: flex-start; }

.tax-note {
  margin-top: 1.3rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--primary);
  background: rgba(139, 185, 157, .07);
  color: var(--muted);
  border-radius: 0 6px 6px 0;
}

.travel-note {
  margin-top: 1.3rem;
  padding: 1.7rem;
  border-radius: var(--r);
  background: var(--bg2);
  border: 1px solid var(--border);
}

.travel-note h3 { margin-bottom: .5rem; }
.travel-note p { color: var(--muted); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-top: 3rem;
}

table { width: 100%; border-collapse: collapse; min-width: 620px; }

th, td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }

th {
  color: var(--primary);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

td { color: var(--muted); }
td:last-child { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

.fineprint { color: var(--muted); font-size: .88rem; margin-top: 1rem; }

.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 3.5rem;
}

.reason {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.6rem;
}

.reason h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.reason p { color: var(--muted); font-size: .92rem; }

@media (max-width: 850px) {
  .pricing-grid, .reasons { grid-template-columns: 1fr; }
}

/* ── Contact ─────────────────────────────────────────────────────────── */

.contact-ctas {
  display: flex;
  gap: 1.2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.cta-card {
  flex: 1;
  min-width: 220px;
  max-width: 410px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.cta-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 185, 157, .15);
}

.cta-icon {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  color: var(--primary);
  background: rgba(139, 185, 157, .12);
  border-radius: 5px;
}

.cta-icon svg { width: 100%; height: 100%; }

.cta-label { font-weight: 700; font-size: 1rem; }
.cta-sub { color: var(--muted); font-size: .82rem; margin-top: .2rem; }

.contact-shell {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.contact-aside { position: sticky; top: 7rem; }
.contact-aside .section-head { margin-bottom: 1.6rem; }

.contact-direct { display: grid; gap: .55rem; }
.contact-direct a { color: var(--primary); text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.field { display: grid; gap: .45rem; min-width: 0; }
.field.full, .form-actions, .form-status, .honeypot { grid-column: 1 / -1; }
.field label, .field legend { font-size: .86rem; font-weight: 700; }

.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  padding: .78rem .85rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field textarea { min-height: 150px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 185, 157, .15);
}

.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .85; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--muted);
  font-size: .86rem;
}

.consent input { width: 1.05rem; height: 1.05rem; margin-top: .2rem; accent-color: var(--primary); }
.consent a { color: var(--primary); }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-actions .button { border: 0; cursor: pointer; }
.form-actions .button:disabled { opacity: .6; cursor: wait; transform: none; }
.form-help { font-size: .82rem; color: var(--muted); }

.form-status {
  display: none;
  padding: .9rem 1rem;
  border-radius: 7px;
  font-size: .9rem;
}

.form-status.success { display: block; background: rgba(139, 185, 157, .14); color: var(--primary-strong); }
.form-status.error { display: block; background: rgba(220, 100, 100, .12); color: #e08a8a; }

@media (max-width: 850px) {
  .contact-shell { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}

@media (max-width: 620px) {
  .contact-form { grid-template-columns: 1fr; }
  .field.full, .form-actions, .form-status, .honeypot { grid-column: 1; }
}

/* ── Footer ──────────────────────────────────────────────────────────── */

footer {
  padding: 3rem 6% 2rem;
  border-top: 1px solid var(--border);
  background: #10140f;
  color: var(--text);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.footer-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: .6rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  text-decoration: none;
  margin-bottom: .5rem;
  transition: color .2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.footer-copy { color: var(--muted); font-size: .78rem; }

.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--muted); font-size: .78rem; text-decoration: none; transition: color .2s; }
.footer-social a:hover { color: var(--text); }

.footer-simple {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .85rem;
}

.footer-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 850px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Scroll-reveal utility (GSAP-driven; JS adds .gsap-ready) ─────────── */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
}

.gsap-ready .fade-up {
  transition: none; /* GSAP takes over animation once ready */
}

.no-js .fade-up,
.reduced-motion .fade-up {
  opacity: 1;
  transform: none;
}

/* ── Reduced motion & small screens ──────────────────────────────────── */

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

  .fade-up { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 900px) {
  section, main > section { padding-left: 5%; padding-right: 5%; }
}
