/* ============================================================
   CODEBASE24 — Design-System
   Fond #000000 · Primär #F5F2E9 · Gold #C6A566 · Greige #8E8877 · Fläche #16140F
   Jost (Display) · Schibsted Grotesk (Body)
   ============================================================ */
:root {
  --bg: #000000;
  --ink: #F5F2E9;
  --gold: #C6A566;
  --gold-deep: #8F7136;
  --muted: #8E8877;
  --panel: #16140F;
  --hairline: rgba(142, 136, 119, 0.18);
  --font-display: "Jost", "Century Gothic", Futura, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --nav-h: 72px;
}

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

html { scroll-behavior: auto; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #000; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 300; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Navbar: KEIN border-radius am Container ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 32px;
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo svg { height: 30px; width: auto; display: block; }
.nav-logo .nav-word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.32em;
  color: var(--ink);
}
.nav-logo .nav-word b { color: var(--gold); font-weight: 400; }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta-group { display: flex; align-items: center; gap: 14px; }
.nav-tel {
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.nav-tel:hover { opacity: 1; }

/* Buttons: NUR diese dürfen abgerundet sein */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-gold {
  background: var(--gold);
  color: #0A0800;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(198, 165, 102, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(245, 242, 233, 0.28);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; }

/* ---------- Hero: Scroll-Scrub ---------- */
.cinematic { position: relative; height: 520vh; }
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}
#frame-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 45%, transparent 48%, rgba(0,0,0,0.6) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 22%, transparent 72%, rgba(0,0,0,0.72) 100%);
}

/* Overlay-Phasen */
.reveal-line { opacity: 0; will-change: opacity, transform; }

.hero-copy {
  /* Flex-Zentrierung statt transform: die Scrub-Engine setzt transform selbst */
  position: absolute;
  z-index: 10;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--nav-h) 4vw 0;
  /* Scrim: dunkelt das Objekt hinter dem Text ab und verschwindet mit ihm */
  background: radial-gradient(58% 52% at 50% 52%, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 78%);
}
.hero-copy > * { max-width: 900px; }
.hero-copy h1 { text-shadow: 0 2px 40px rgba(0, 0, 0, 0.85); }
.hero-copy p { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.9); }
.hero-copy .eyebrow {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero-copy h1 b { font-weight: 400; color: var(--gold); }
.hero-copy p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(245, 242, 233, 0.78);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 26px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero-Karten (Phase 2 des Scrubs): 2 links, 1 rechts */
.hero-card-slot { position: absolute; z-index: 10; width: min(340px, 38vw); }
.slot-l1 { left: 5vw; top: 18vh; }
.slot-l2 { left: 5vw; bottom: 16vh; }
.slot-r1 { right: 5vw; top: 50%; transform: translateY(-50%); }
.hero-card {
  background: rgba(22, 20, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 26px 28px;
  border-top: 1px solid rgba(198, 165, 102, 0.35);
}
.hero-card .tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.hero-card h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: 8px; }
.hero-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* Hero-Progress + Hint */
.hero-progress {
  position: absolute;
  left: 32px; right: 32px; bottom: 34px;
  height: 1px;
  background: rgba(245, 242, 233, 0.12);
  z-index: 12;
}
.hero-progress-fill { height: 100%; width: 0%; background: var(--gold); }
.scroll-hint {
  position: absolute;
  bottom: 48px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  animation: bob 2s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Sektionen: gemeinsame Sprache ---------- */
section.block { padding: 140px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 72px; }
.section-head .eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 18px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Reveals */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Leistungen ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
}
.service {
  background: var(--bg);
  padding: 44px 36px;
  transition: background 0.35s ease;
}
.service:hover { background: var(--panel); }
.service .num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 18px;
}
.service h3 { font-size: 1.3rem; font-weight: 400; margin-bottom: 10px; }
.service p { font-size: 0.95rem; color: var(--muted); }
.fullservice-note {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  color: var(--muted);
  font-size: 0.92rem;
}
.fullservice-note b { color: var(--ink); font-weight: 500; }
.fullservice-note span::before { content: "·"; color: var(--gold); margin-right: 10px; }
.fullservice-note span:first-child::before { content: ""; margin: 0; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat { background: var(--bg); text-align: center; padding: 54px 20px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--gold);
  display: block;
}
.stat-label {
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Referenzen ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.work {
  position: relative;
  background: var(--panel);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  text-decoration: none;
}
.work::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 62%, rgba(0,0,0,0.92) 100%);
  transition: opacity 0.4s;
}
.work h3, .work p, .work .branche { text-shadow: 0 1px 12px rgba(0,0,0,0.9); }
.work .work-visual {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  filter: saturate(0.9);
  transition: transform 0.7s ease;
}
.work:hover .work-visual { transform: scale(1.04); }
.work .work-meta { position: relative; z-index: 2; }
.work .branche {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.work h3 { color: var(--ink); font-size: 1.5rem; font-weight: 400; }
.work p { color: rgba(245, 242, 233, 0.7); font-size: 0.92rem; margin-top: 4px; }

/* ---------- Pakete: keine harten Strokes, subtile Trennlinien ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.plan {
  background: var(--panel);
  padding: 46px 38px;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  background: linear-gradient(180deg, rgba(198, 165, 102, 0.10), rgba(22, 20, 15, 1) 45%);
}
.plan .plan-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  min-height: 14px;
}
.plan h3 { font-size: 1.7rem; font-weight: 400; margin-bottom: 6px; }
.plan .plan-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 30px; }
.plan ul { list-style: none; margin-bottom: 36px; flex: 1; }
.plan li {
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
  color: rgba(245, 242, 233, 0.85);
}
.plan li:first-child { border-top: 1px solid var(--hairline); }
.plan li.dim { color: var(--muted); }
.plan .price-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: step; }
.step { position: relative; padding-top: 26px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.step h3 { font-size: 1.15rem; font-weight: 400; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.3s;
  flex: none;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 26px; color: var(--muted); max-width: 640px; }

/* ---------- CTA + Footer: ein Visual, keine Trennlinien ---------- */
.finale {
  position: relative;
  background: #000 url("assets/footer-still.png") center / cover no-repeat;
  padding: 200px 0 60px;
}
.finale::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #000 0%, transparent 30%, transparent 78%, rgba(0,0,0,0.6) 100%);
}
.finale .container { position: relative; z-index: 2; }
.cta-box { max-width: 640px; }
.cta-box .eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.cta-box h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.12; margin-bottom: 20px; }
.cta-box p { color: rgba(245, 242, 233, 0.75); margin-bottom: 36px; max-width: 520px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.footer {
  position: relative;
  z-index: 2;
  margin-top: 140px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand svg { height: 26px; width: auto; }
.footer-brand span {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: #fff;
}
.footer-brand span b { color: var(--gold); font-weight: 400; }
.footer-links { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }
.footer-legal { width: 100%; margin-top: 26px; color: rgba(255,255,255,0.5); font-size: 12px; }
.footer-legal a { color: rgba(255,255,255,0.7); text-decoration: none; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(198, 165, 102, 0.35);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cinematic { height: 100vh; }
  .reveal-line { opacity: 1 !important; transform: none !important; }
  .hero-card-slot { display: none; }
  .scroll-hint { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-card-slot { width: min(300px, 42vw); }
}
@media (max-width: 760px) {
  .nav { padding: 0 18px; }
  .nav-links, .nav-tel { display: none; }
  .container { padding: 0 22px; }
  section.block { padding: 96px 0; }
  .cinematic { height: 420vh; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: 1fr; }
  /* Karten mobil: gestapelt unten, kompakt */
  .hero-card-slot { width: min(86vw, 340px); }
  .slot-l1 { left: 4vw; top: 12vh; }
  .slot-l2 { left: auto; right: 4vw; bottom: 24vh; }
  .slot-r1 { right: auto; left: 4vw; top: auto; bottom: 6vh; transform: none; }
  .hero-card { padding: 18px 20px; }
  .hero-card p { display: none; }
  .finale { padding-top: 140px; }
  .footer { margin-top: 90px; }
}

/* Leistungs-Karten: Link zur Unterseite */
.svc-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 165, 102, 0.35);
  padding-bottom: 2px;
}
.svc-more:hover { border-color: var(--gold); }

/* ---------- Hero-Morph: Floating Portfolio-Karten ---------- */
.hm-wrap { position: relative; height: 340vh; }
.hm-cards { position: absolute; inset: 0; z-index: 5; }
.hm-card {
  position: absolute; left: 50%; top: 50%;
  width: 122px; height: 76px;
  opacity: 0;
  display: block;
  perspective: 800px;
  will-change: transform, opacity;
  cursor: pointer;
  text-decoration: none;
}
.hm-flip {
  position: absolute; inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hm-card:hover .hm-flip { transform: rotateY(180deg); }
.hm-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(198, 165, 102, 0.25);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.6);
  display: flex;
}
.hm-front img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hm-back {
  transform: rotateY(180deg);
  background: var(--panel);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-align: center; padding: 6px;
}
.hm-back b { font-family: var(--font-display); font-weight: 400; font-size: 11px; color: var(--ink); line-height: 1.2; }
.hm-back i { font-style: normal; font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.hm-copy {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: var(--nav-h) 4vw 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
  background: radial-gradient(46% 40% at 50% 50%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 80%);
}
.hm-copy.hm-on { opacity: 1; }
.hm-copy > * { max-width: 900px; }
.hm-copy .btn { pointer-events: auto; }
.hm-copy .eyebrow {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 400;
  letter-spacing: 0.42em; color: var(--gold); text-transform: uppercase; margin-bottom: 22px;
}
.hm-copy h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); line-height: 1.08; margin-bottom: 24px; text-shadow: 0 2px 40px rgba(0,0,0,0.85); }
.hm-copy h1 b { font-weight: 400; color: var(--gold); }
.hm-copy p.sub { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(245, 242, 233, 0.78); max-width: 640px; margin: 0 auto 34px; text-shadow: 0 1px 18px rgba(0,0,0,0.9); }
.hm-caption {
  margin-top: 30px; opacity: 0;
  font-family: var(--font-display); font-size: 13px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}
@media (max-width: 760px) {
  .hm-wrap { height: 300vh; }
  .hm-card { width: 90px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-wrap { height: auto; min-height: 100vh; padding-bottom: 60px; }
  .hm-copy { opacity: 1; position: relative; inset: auto; padding-top: calc(var(--nav-h) + 80px); }
  .hm-cards.hm-static { position: relative; inset: auto; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 30px 5vw 0; }
  .hm-cards.hm-static .hm-card { position: static; opacity: 1 !important; transform: none !important; }
  .hm-wrap .scroll-hint, .hm-wrap .hero-progress { display: none; }
}
@media (max-width: 760px) {
  .hm-caption { display: none; }
}
@media (max-width: 760px) {
  /* Copy kompakt nach oben, damit der Karten-Fächer voll sichtbar ist */
  .hm-copy { justify-content: flex-start; padding-top: calc(var(--nav-h) + 7vh); }
  .hm-copy .eyebrow { margin-bottom: 14px; }
  .hm-copy h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); margin-bottom: 14px; }
  .hm-copy p.sub { font-size: 0.95rem; margin-bottom: 20px; max-width: 88vw; }
  .hm-copy .hero-cta-row { gap: 10px; }
  .hm-copy .hero-trust { margin-top: 16px; font-size: 11px; }
}
