/* ==========================================================================
   WEBSITE-KÖHLER — NOIR v3 · "Apple-Level" Design-System
   Obsidian-Schwarz + Champagner-Gold + Smaragd.
   Apple-Prinzipien: riesige Typo, viel Raum, gepinnte Scroll-Kapitel,
   ein 3D-Herzstück (Laptop) auf der Startseite.
   Keine Google Fonts — reine System-Stapel (DSGVO).
   ========================================================================== */

:root {
  --bg: #0B0B0D;
  --bg-alt: #121115;
  --charcoal-2: #1A191F;
  --charcoal-3: #201F26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --ember: #D9A65C;
  --ember-soft: #F0D9A8;
  --ember-dim: rgba(217, 166, 92, 0.16);
  --cyan: #34A67C;
  --cyan-dim: rgba(52, 166, 124, 0.14);
  --error: #E2574C;

  --ash: #F5F1E8;
  --ash-dim: #B8B2A6;
  --ash-faint: #8C8678;
  --ink: #0B0B0D;

  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ash);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--ember); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.12; }
h1 { font-size: clamp(42px, 6.6vw, 88px); }
h2 { font-size: clamp(30px, 4.4vw, 56px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--ash-dim); max-width: 640px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ember);
  margin-bottom: 18px;
  text-transform: lowercase;
}
.accent { color: var(--ember); }
.accent-green { color: var(--cyan); }

section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.page-hero { padding-top: clamp(150px, 20vh, 220px); }

/* ---------------- Preloader-Vorhang ---------------- */
#curtain {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, visibility .7s;
}
#curtain .curtain-mark {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  color: var(--ash);
  opacity: 0;
  animation: curtainIn .9s ease .1s forwards;
}
#curtain .curtain-mark em { font-style: normal; color: var(--ember); }
@keyframes curtainIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body.loaded #curtain { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------------- Navigation ---------------- */
header.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(11, 11, 13, 0.55);
  border-bottom: 1px solid var(--line);
  transition: background .4s ease;
}
header.site-nav .nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.01em; }
.brand em { font-style: normal; color: var(--ember); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 14.5px; color: var(--ash-dim);
  transition: color .25s ease;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--ember); transition: width .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ash); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ash); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, background .25s ease, color .25s ease;
  will-change: transform;
}
.btn-primary { background: var(--ember); color: var(--ink); }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(217,166,92,.35); }
.btn-ghost { border-color: var(--line-strong); color: var(--ash); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember-soft); }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 9px 20px; font-size: 13.5px; }

/* ---------------- Karten ---------------- */
.card {
  background: linear-gradient(160deg, var(--charcoal-2), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
  transform-style: preserve-3d;
}
.card:hover { border-color: rgba(217,166,92,.35); }
.tilt { will-change: transform; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.card .num {
  font-family: var(--font-mono); color: var(--ember); font-size: 13px;
  letter-spacing: .12em; margin-bottom: 14px; display: block;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ash-dim); font-size: 15.5px; }
.card .icon { font-size: 22px; color: var(--ember); margin-bottom: 16px; display: block; }
.card-link { display: inline-block; margin-top: 18px; color: var(--ember); font-size: 14.5px; }

/* ---------------- 3D-Bühne (index) ---------------- */
.stage-wrap { position: relative; height: 560vh; }
.stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#hero3d { position: absolute; inset: 0; }
#hero3d canvas { display: block; }
.stage-glow {
  position: absolute; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,166,92,.10), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.chapter {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
  opacity: 0; pointer-events: none;
}
.chapter.is-active { pointer-events: auto; }
.chapter .kicker { font-family: var(--font-mono); color: var(--ember); font-size: 13px; letter-spacing: .16em; margin-bottom: 20px; }
.chapter h1, .chapter h2 { text-shadow: 0 8px 60px rgba(0,0,0,.7); }
.chapter .lede { margin: 22px auto 0; }
.chapter .cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.chapter.side-left { justify-content: flex-start; text-align: left; }
.chapter.side-left > div { max-width: 460px; margin-left: clamp(24px, 8vw, 120px); }
.chapter.side-right { justify-content: flex-end; text-align: right; }
.chapter.side-right > div { max-width: 460px; margin-right: clamp(24px, 8vw, 120px); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  color: var(--ash-faint); z-index: 6;
  animation: hintPulse 2.4s ease infinite;
}
@keyframes hintPulse { 0%,100% { opacity: .5; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 6px); } }

.hero-fallback { position: relative; z-index: 4; text-align: center; padding: 0 24px; }

/* Feature-Pills unter dem Hero */
.pill-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.pill {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ash-dim);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px;
}

/* ---------------- Reveal-Basis (GSAP übernimmt) ---------------- */
.reveal { opacity: 0; transform: translateY(36px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }

.split-line { display: block; overflow: hidden; }
.split-line > span { display: inline-block; transform: translateY(110%); }
.reduced .split-line > span { transform: none; }

/* ---------------- Portfolio ---------------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 36px 0 40px; }
.filter-btn {
  background: none; border: 1px solid var(--line-strong); color: var(--ash-dim);
  border-radius: 999px; padding: 9px 20px; font-size: 13.5px; cursor: pointer;
  transition: all .25s ease;
}
.filter-btn:hover { color: var(--ash); border-color: var(--ember); }
.filter-btn.active { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.pf-thumb {
  aspect-ratio: 16/10; border-radius: var(--radius-sm); margin-bottom: 20px;
  background: linear-gradient(140deg, var(--charcoal-3), var(--bg-alt));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--ash-faint);
}
.pf-tag { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: .1em; margin-bottom: 8px; display: block; }
.notice {
  border: 1px dashed rgba(217,166,92,.4); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 14px; color: var(--ember-soft); margin-bottom: 8px;
  background: var(--ember-dim);
}

/* ---------------- Preise ---------------- */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .price { font-family: var(--font-display); font-size: 34px; color: var(--ash); margin: 10px 0 4px; }
.price-card .price-note { font-size: 13.5px; color: var(--ash-faint); margin-bottom: 20px; }
.price-card ul { list-style: none; margin: 0 0 26px; }
.price-card li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ash-dim); }
.price-card li::before { content: '✓  '; color: var(--cyan); }
.badge {
  position: absolute; top: -13px; right: 22px;
  background: var(--ember); color: var(--ink); border-radius: 999px;
  font-size: 12px; font-weight: 700; padding: 5px 14px;
}
.price-card.featured { border-color: rgba(217,166,92,.5); box-shadow: 0 20px 60px rgba(217,166,92,.10); }

/* ---------------- Kontakt / Formular ---------------- */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; color: var(--ash-dim); margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--bg-alt); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 13px 15px; color: var(--ash);
  font-family: var(--font-body); font-size: 15px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-dim);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ash-faint); opacity: 1; }
.form-status { margin-top: 14px; font-size: 14px; color: var(--cyan); min-height: 20px; }
.form-status.error { color: var(--error); }
.form-note { font-size: 13px; color: var(--ash-faint); margin-top: 16px; }

.contact-aside .card { margin-bottom: 22px; }
.mini-label { font-family: var(--font-mono); font-size: 12px; color: var(--ash-faint); letter-spacing: .1em; }

/* ---------------- Über mich ---------------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; }
.portrait-frame {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--charcoal-3), var(--bg-alt));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--ash-faint);
  position: sticky; top: 100px;
}
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0; }
.chip { font-size: 13px; color: var(--ember-soft); background: var(--ember-dim); border-radius: 999px; padding: 7px 15px; }
.transparency {
  border-left: 3px solid var(--ember); background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 22px; margin: 26px 0; font-size: 15px; color: var(--ash-dim);
}

/* ---------------- Marquee (Leistungs-Band) ---------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; white-space: nowrap; }
.marquee-track { display: inline-block; font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); color: var(--ash-faint); }
.marquee-track em { font-style: normal; color: var(--ember); padding: 0 22px; }

/* ---------------- CTA-Finale ---------------- */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 800px; margin: 0 auto 22px; }
.final-cta .lede { margin: 0 auto 34px; }

/* ---------------- Footer ---------------- */
footer.site-footer { border-top: 1px solid var(--line); padding: 70px 0 34px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-grid .footer-label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; color: var(--ash-faint); margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--ash-dim); font-size: 14.5px; transition: color .25s; }
.footer-grid a:hover { color: var(--ember); }
.footer-brand p { color: var(--ash-dim); font-size: 14.5px; margin: 12px 0; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ash-faint); }

/* ---------------- Fokus & Reduced Motion ---------------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ember); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .form-row-2, .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .portrait-frame { position: static; max-width: 380px; }
  .chapter.side-left > div, .chapter.side-right > div { margin: 0 auto; text-align: center; }
  .chapter.side-left, .chapter.side-right { justify-content: center; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(11,11,13,.97); border-bottom: 1px solid var(--line);
    padding: 10px 0 20px; display: none;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 0; font-size: 16px; }
  body.nav-open .nav-links { display: flex; }
  .nav-toggle { display: block; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .stage-wrap { height: 480vh; }
}

/* ==========================================================================
   Kompatibilitäts-Layer: bestehende Inhalts-Klassen im neuen Noir-v3-Look
   ========================================================================== */
.gradient-text {
  background: linear-gradient(105deg, var(--ash) 20%, var(--ember-soft) 55%, var(--ember) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0 auto; max-width: var(--maxw); }
.section-head { margin-bottom: 46px; }
.section-head .lede { margin-top: 14px; }

/* Portfolio-Karten */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-card {
  background: linear-gradient(160deg, var(--charcoal-2), var(--bg-alt));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .35s ease, transform .35s ease;
}
.p-card:hover { border-color: rgba(217,166,92,.35); transform: translateY(-6px); }
.p-thumb {
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--charcoal-3), var(--bg-alt));
  border-bottom: 1px solid var(--line);
}
.p-mark { font-family: var(--font-mono); font-size: 13px; color: var(--ash-faint); }
.p-body { padding: 24px 24px 28px; }
.p-cat { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: .1em; display: block; margin-bottom: 8px; }
.p-body h3 { margin-bottom: 8px; }
.p-body p { color: var(--ash-dim); font-size: 14.5px; }
.portfolio-banner {
  border: 1px dashed rgba(217,166,92,.4); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 14px; color: var(--ember-soft);
  background: var(--ember-dim); margin-bottom: 28px;
}

/* Preis-Pläne */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 900px; }
.plan {
  position: relative; background: linear-gradient(160deg, var(--charcoal-2), var(--bg-alt));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px;
  display: flex; flex-direction: column;
}
.plan.featured { border-color: rgba(217,166,92,.5); box-shadow: 0 20px 60px rgba(217,166,92,.10); }
.plan-tag {
  position: absolute; top: -13px; right: 22px; background: var(--ember); color: var(--ink);
  border-radius: 999px; font-size: 12px; font-weight: 700; padding: 5px 14px;
}
.plan .label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; color: var(--ember); }
.plan h3 { margin: 8px 0 4px; }
.plan .price { font-family: var(--font-display); font-size: 34px; color: var(--ash); margin: 10px 0 2px; }
.plan .plan-sub, .plan .price-note { font-size: 13.5px; color: var(--ash-faint); margin-bottom: 20px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; }
.plan li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ash-dim); }
.plan li::before { content: '✓  '; color: var(--cyan); }
.plan .btn { margin-top: auto; text-align: center; }

/* Erklär-Spalten (Single vs Multi) */
.explainer-col h3 { margin-bottom: 10px; }
.explainer-col .value { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: .1em; display: block; margin-bottom: 10px; }

/* Über mich */
.skill-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0; }
.skill-tags span { font-size: 13px; color: var(--ember-soft); background: var(--ember-dim); border-radius: 999px; padding: 7px 15px; }
.transparency-note {
  border-left: 3px solid var(--ember); background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 22px; margin: 26px 0; font-size: 15px; color: var(--ash-dim);
}
.social-btn { color: var(--ember); font-size: 15px; margin-right: 18px; display: inline-block; margin-top: 8px; }

@media (max-width: 920px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

.about-portrait {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--charcoal-3), var(--bg-alt));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--ash-faint);
  position: sticky; top: 100px;
}
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 50px; align-items: start; }
@media (max-width: 920px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 380px; }
}

/* Visuelles Duplikat der Hero-Headline (Kapitel-Animation & Fallback) —
   semantisch kein <h1>, siehe sr-only-H1 im Markup. */
.chapter-h1 {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.12;
  font-size: clamp(42px, 6.6vw, 88px);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
