/* ─── Spaceflow · Design-Tokens (Palette B „Midnight“) ─────────────── */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --midnight: #081F33;
  --midnight-2: #0B2740;     /* leicht hellere Fläche für Abschnittswechsel */
  --midnight-deep: #051626;
  --champagne: #D6C2AA;
  --champagne-hi: #E6D6C2;
  --warm-grey: #A89F92;
  --stone: #44474A;
  --off-white: #F1EEE8;
  --text: #F1EEE8;
  --muted: #B3AA9D;          /* Warm Grey, minimal aufgehellt für Lesbarkeit */
  --line: rgba(241, 238, 232, .11);
  --surface: rgba(241, 238, 232, .035);
  --surface-hi: rgba(241, 238, 232, .06);

  --radius: 18px;
  --radius-pill: 999px;
  --max: 1180px;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--midnight); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--midnight);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--champagne); color: var(--midnight); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 18px; } }

h1, h2, h3 { color: var(--off-white); line-height: 1.08; letter-spacing: -.025em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
.accent { color: var(--champagne); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--warm-grey);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--champagne); }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius-pill);
  font: 600 .95rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--champagne); color: var(--midnight); box-shadow: 0 10px 30px -12px rgba(214,194,170,.55); }
.btn-primary:hover { background: var(--champagne-hi); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(241,238,232,.35); color: var(--off-white); background: rgba(8,31,51,.15); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--off-white); }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 6px; }

/* ─── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(8, 31, 51, .86);
  backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: block; text-decoration: none; }
.brand svg { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--off-white); position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: var(--champagne); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { padding: 11px 22px; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--off-white); margin: 5px 0; transition: transform .25s ease, opacity .2s ease; }

@media (max-width: 860px) {
  .nav { height: 68px; }
  .brand svg { height: 36px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--midnight); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links li:last-child { margin-top: 18px; }
  .nav-links .btn { width: 100%; justify-content: center; padding: 15px; }
  .site-header:has(.nav-links.open) { background: var(--midnight); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ─── Hero (Vollbild-Foto) ────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 110px 0 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 32% 50%;
  transform: scaleX(-1);   /* gespiegelt: Person rechts, links Raum für Text */
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,31,51,.92) 0%, rgba(8,31,51,.78) 30%, rgba(8,31,51,.25) 58%, rgba(8,31,51,0) 75%),
    linear-gradient(180deg, rgba(8,31,51,.55) 0%, rgba(8,31,51,0) 22%, rgba(8,31,51,0) 62%, rgba(8,31,51,.95) 100%);
}
.hero-content { flex: 1; display: flex; align-items: center; }
.hero-text { max-width: 600px; padding: 40px 0 56px; }
.hero h1 { margin: 22px 0 24px; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero .lead { font-size: 1.16rem; color: #D9D2C8; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
@media (max-width: 420px) { .hero-cta .btn { flex: 1 1 100%; justify-content: center; } }
.hero-badge {
  display: flex; align-items: center; gap: 12px; margin-top: 34px;
  font-size: .86rem; color: #D9D2C8; line-height: 1.4;
}
.hero-badge .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #7DC08A; box-shadow: 0 0 0 5px rgba(125,192,138,.18); animation: pulse 2.4s ease-in-out infinite; }
.hero-badge strong { color: var(--off-white); font-weight: 600; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(125,192,138,0); } }

@media (max-width: 860px) {
  .hero { padding-top: 90px; }
  .hero-bg { object-position: 22% 50%; }
  .hero::before {
    background: linear-gradient(180deg, rgba(8,31,51,.88) 0%, rgba(8,31,51,.62) 45%, rgba(8,31,51,.35) 65%, rgba(8,31,51,.96) 100%);
  }
  .hero-text { padding: 8px 0 40px; }
}

/* ─── Stats (im Hero unten) ───────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(241,238,232,.18);
  padding-bottom: 36px;
}
.stat { display: flex; gap: 16px; align-items: flex-start; padding: 26px 24px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid rgba(241,238,232,.14); }
.stat svg { flex: none; width: 30px; height: 30px; color: var(--champagne); margin-top: 6px; }
.stat b { display: block; font-size: 1.9rem; font-weight: 700; color: var(--off-white); letter-spacing: -.02em; line-height: 1.2; }
.stat span { font-size: .9rem; color: #C9C1B6; line-height: 1.4; display: block; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; padding-bottom: 20px; }
  .stat, .stat + .stat { padding: 18px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid rgba(241,238,232,.12); }
  .stat b { font-size: 1.6rem; }
}

/* ─── Sections ────────────────────────────────────────────────────── */
section { scroll-margin-top: 80px; }
.section { padding: 120px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head h2 { margin-top: 18px; }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
}
.bg-alt { background: var(--midnight-2); }

/* ─── Lösungen ────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  grid-column: span 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 32px; transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card:hover { transform: translateY(-4px); background: var(--surface-hi); border-color: rgba(214,194,170,.35); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid rgba(214,194,170,.35); color: var(--champagne); margin-bottom: 26px;
}
.icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: span 1; }
  .card:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(5) { grid-column: span 1; }
}

/* ─── Ablauf ──────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 36px 36px 0 0; }
.step + .step { padding-left: 36px; border-left: 1px solid var(--line); }
.step .num { font-size: .8rem; font-weight: 600; letter-spacing: .2em; color: var(--champagne); }
.step h3 { margin: 14px 0 10px; font-size: 1.35rem; }
.step p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
}

/* ─── Beispiele / Projekte ────────────────────────────────────────── */
.project {
  display: grid; grid-template-columns: 1.25fr 1fr;
  background: var(--surface); border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
}
.project-media { background: var(--midnight-deep); padding: 36px; display: flex; align-items: center; min-height: 380px; border-right: 1px solid var(--line); }
.project-media svg { width: 100%; height: auto; }
.project-body { padding: 44px 44px 40px; display: flex; flex-direction: column; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface-hi); color: var(--off-white); }
.tag.status { background: transparent; border: 1px solid rgba(214,194,170,.5); color: var(--champagne); }
.project h3 { font-size: 1.6rem; margin-bottom: 14px; }
.project-body > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; font-size: .96rem; line-height: 1.5; color: #DDD6CC; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--champagne); margin-top: 2px; }
.project-foot { margin-top: auto; padding-top: 28px; font-size: .84rem; color: var(--warm-grey); }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .project-media { min-height: 0; padding: 26px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-body { padding: 32px 26px; }
}

.pilot {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  border: 1.5px dashed rgba(214,194,170,.45); border-radius: 24px; padding: 36px 44px;
  background: linear-gradient(120deg, rgba(214,194,170,.09), rgba(214,194,170,0));
}
.pilot h3 { font-size: 1.4rem; margin-bottom: 8px; }
.pilot p { color: var(--muted); max-width: 58ch; }
@media (max-width: 760px) { .pilot { flex-direction: column; align-items: flex-start; padding: 30px 26px; } }

/* ─── Über mich ───────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #163a5a 0%, var(--midnight-deep) 70%);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .monogram { width: 34%; height: auto; object-fit: contain; }
.about h2 { margin: 18px 0 26px; }
.about p + p { margin-top: 18px; }
.about .text p { color: var(--muted); font-size: 1.05rem; }
.about .text p.strong { color: var(--off-white); font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.value { border-top: 1px solid var(--champagne); padding-top: 14px; }
.value b { display: block; color: var(--off-white); font-size: .98rem; }
.value span { font-size: .87rem; color: var(--muted); line-height: 1.45; display: block; margin-top: 4px; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 44px; }
  .portrait { aspect-ratio: 4 / 3.4; max-height: 440px; }
}
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ─── Kontakt (Foto-Hintergrund) ──────────────────────────────────── */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 100% 60%; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,31,51,.96) 0%, rgba(8,31,51,.9) 50%, rgba(8,31,51,.35) 100%),
    linear-gradient(180deg, var(--midnight) 0%, rgba(8,31,51,0) 25%);
}
.contact h2 { margin: 18px 0 22px; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.contact p.lead { font-size: 1.12rem; max-width: 44ch; color: #D2CABF; }
.contact-box {
  border: 1px solid rgba(241,238,232,.16); border-radius: 22px; padding: 32px;
  background: rgba(8,31,51,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.contact-box ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; font-size: .96rem; }
.contact-box li { display: flex; gap: 12px; }
.contact-box li svg { flex: none; width: 20px; height: 20px; color: var(--champagne); margin-top: 3px; }
.contact-box .btn { width: 100%; justify-content: center; }
.contact-mail { display: block; text-align: center; margin-top: 16px; font-size: .92rem; color: var(--champagne); text-decoration: none; }
.contact-mail:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact::before { background: linear-gradient(180deg, var(--midnight) 0%, rgba(8,31,51,.82) 30%, rgba(8,31,51,.9) 100%); }
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.site-footer { background: var(--midnight-deep); color: var(--warm-grey); font-size: .86rem; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 32px; }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--champagne); }

/* ─── Reveal-Animation ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.flow-line { stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow-line, .hero-badge .dot { animation: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ─── Rechtliches (impressum.html) ────────────────────────────────── */
.legal { padding: 150px 0 120px; max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 18px 0 40px; }
.legal h2 { font-size: 1.35rem; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--champagne); }

/* Hero: sofort sichtbar (kein Scroll-Trigger), nur sanftes Einblenden beim Laden */
.intro { animation: intro 1s cubic-bezier(.2,.7,.2,1) both; }
.intro-2 { animation-delay: .25s; }
@keyframes intro { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .intro { animation: none; } }
@media (min-width: 861px) and (max-height: 960px) {
  .hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin: 18px 0 20px; }
  .hero-text { padding: 20px 0 36px; }
  .hero-cta { margin-top: 28px; }
  .hero-badge { margin-top: 24px; }
  .stat { padding-top: 20px; }
  .stats { padding-bottom: 28px; }
}

/* ─── Bereiche (Beispiel-Listen) ──────────────────────────────────── */
.cards.areas .card, .cards.areas .card:nth-child(4), .cards.areas .card:nth-child(5) { grid-column: span 2; }
.mini { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.mini li { position: relative; padding-left: 18px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.mini li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--champagne); }
@media (max-width: 980px) { .cards.areas .card, .cards.areas .card:nth-child(4), .cards.areas .card:nth-child(5) { grid-column: span 1; } }
.skills b { font-size: 1.25rem; line-height: 1.3; margin-top: 2px; }

/* ─── Kontakt-Box ─────────────────────────────────────────────────── */
.contact-label { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--warm-grey); }
.contact-address { display: block; margin: 10px 0 26px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; color: var(--off-white); text-decoration: none; word-break: break-all; }
.contact-address:hover { color: var(--champagne); }
