/* cokra-visions v2 – Prototyp, Brand-Version 18.07.2026
   Brand-Quelle: .claude/skills/cokra-deck-style/SKILL.md
   Farben: Navy #094275 · Cream #F0D5C0 · Dark #1A1A1A · Mid #6E6E6E (abgedunkelt fuer WCAG-AA-Kontrast, urspruenglich #888888) · Light #F5F5F5
   Typo: Comfortaa (Marken-Font, Display) · Carlito (Calibri-Web-Zwilling, Body) · IBM Plex Mono (Legenden)
   Signature: Mono-Bildlegenden mit Höhe/Ort + Höhenprofil-Divider */

:root {
  --navy: #094275;
  --navy-tief: #062F54;
  --cream: #F0D5C0;
  --dark: #1A1A1A;
  --mid: #6E6E6E; /* Kontrast-sicher auf Weiss/Light (WCAG AA), Brand-Grau war #888888 */
  --light: #F5F5F5;
  --white: #FFFFFF;
  --lede-dunkel: #CFE0EE;
  --mass: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; /* Anker landen nicht unter dem Sticky-Header */ }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

body {
  font-family: "Carlito", Calibri, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark-text { font-family: "Comfortaa", "Carlito", sans-serif; }

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wrap { max-width: var(--mass); margin: 0 auto; padding: 0 24px; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.hero a:focus-visible, .band a:focus-visible, .schluss a:focus-visible, footer a:focus-visible {
  outline-color: var(--cream);
}

/* Skip-Link: unsichtbar bis Tastatur-Fokus */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 10px 18px; border-radius: 0 0 8px 8px;
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  transition: top 150ms ease;
}
.skip-link:focus-visible { top: 0; outline-color: var(--cream); }

/* ── Header ─────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9); /* Fallback ohne color-mix */
  background: color-mix(in srgb, var(--white) 90%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: var(--mass); margin: 0 auto;
}
.wordmark { display: flex; align-items: center; text-decoration: none; }
.wordmark img { height: 26px; width: auto; display: block; }
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main a { text-decoration: none; font-size: 0.95rem; font-weight: 600; color: var(--navy); }
nav.main a:hover { color: var(--dark); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-family: "Comfortaa", sans-serif;
  padding: 13px 24px; border-radius: 8px; font-size: 0.9rem;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-tief); transform: translateY(-1px); }
.btn-cream { background: var(--cream); color: var(--navy); }
.btn-cream:hover { background: #E6C3A6; transform: translateY(-1px); }
.btn-ghost { border: 1px solid color-mix(in srgb, var(--cream) 55%, transparent); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }

/* ── Hero (Full-Bleed, cinematisch) ──────── */
.hero {
  position: relative; min-height: 92vh; min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--white); overflow: hidden; background: var(--navy-tief);
}
/* Bild-Ebene: <img class="hero-photo" src="assets/hero.jpg" alt=""> ersetzt den Platzhalter automatisch */
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .hero-photo,
.hero-media .hero-ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
/* cinematischer Platzhalter (Morgenlicht über Grat) in Brand-Navy */
.hero-ph {
  background:
    radial-gradient(120% 82% at 72% 10%, rgba(240,213,192,0.46), transparent 46%),
    radial-gradient(90% 70% at 18% 0%, rgba(120,180,225,0.30), transparent 52%),
    linear-gradient(180deg, #0c4c86 0%, #094275 40%, #05264a 100%);
}
/* langsamer Ken-Burns-Zoom, dezent */
.hero-media { animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 62% 32%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }

.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(4,22,44,0.32) 0%, rgba(4,22,44,0.10) 32%, rgba(4,22,44,0.58) 100%),
    linear-gradient(90deg, rgba(4,22,44,0.62) 0%, rgba(4,22,44,0.12) 58%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 24px 96px; width: 100%; }
.hero .eyebrow { color: var(--cream); margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.14; letter-spacing: -0.01em;
  text-wrap: balance; max-width: 15em;
  text-shadow: 0 2px 30px rgba(3,18,38,0.38);
}
.hero h1 em { font-style: normal; color: var(--cream); }
.hero p.lede {
  margin: 24px 0 34px; font-size: 1.18rem; color: #EAF1F8; max-width: 33em;
  text-shadow: 0 1px 16px rgba(3,18,38,0.4);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-legende {
  position: absolute; right: 22px; bottom: 96px; z-index: 2;
  color: rgba(240,213,192,0.85); font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem; letter-spacing: 0.12em;
}

/* Scroll-Cue */
.scroll-cue { position: absolute; left: 50%; bottom: 20px; z-index: 3; transform: translateX(-50%); }
.scroll-cue span { display: block; width: 22px; height: 36px; border: 2px solid rgba(240,213,192,0.6); border-radius: 12px; position: relative; }
.scroll-cue span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px;
  background: var(--cream); border-radius: 2px; transform: translateX(-50%);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translate(-50%,0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,11px); } }

/* Bild-Platzhalter mit Signature-Legende (Case/Über) */
.ph {
  position: relative; border-radius: 10px; overflow: hidden;
  background: linear-gradient(165deg, #12558E 0%, #094275 45%, #063158 100%);
  min-height: 300px; display: block;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 18%, rgba(240,213,192,0.22), transparent 55%);
}
.ph .legende {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  color: var(--cream); font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem; letter-spacing: 0.12em;
}
.ph .todo {
  position: absolute; right: 14px; top: 12px; z-index: 2;
  color: rgba(240,213,192,0.5); font-family: "IBM Plex Mono", monospace; font-size: 0.62rem;
}

/* ── Scroll-Reveal (no-JS-sicher: nur mit .js versteckt) ── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 750ms cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 750ms cubic-bezier(.2,.7,.2,1); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }

/* Referenz-Zeile */
.referenzband { border-top: 1px solid rgba(240,213,192,0.25); }
.referenzband .wrap {
  display: flex; gap: 10px 34px; flex-wrap: wrap; align-items: baseline;
  padding-top: 20px; padding-bottom: 20px;
}
.referenzband .mono { color: rgba(240,213,192,0.85); }
.referenzband strong { color: var(--cream); font-weight: 600; font-size: 0.95rem; }

/* ── Höhenprofil-Divider (Signature) ────── */
.profil { display: block; width: 100%; height: 46px; }
.profil path { fill: none; stroke: color-mix(in srgb, var(--navy) 35%, transparent); stroke-width: 1.5; }
.profil .peak { fill: var(--navy); }

/* ── Sections ───────────────────────────── */
section { padding: 88px 0; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--navy); }
h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 700;
  color: var(--navy); letter-spacing: -0.005em; line-height: 1.22;
  margin-bottom: 18px; text-wrap: balance;
}
.section-lede { max-width: 42em; color: #555; margin-bottom: 48px; }

/* Pfad-Split */
.pfade { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pfad {
  background: var(--white); border-radius: 10px; padding: 40px 36px;
  border: 1px solid color-mix(in srgb, var(--navy) 8%, transparent);
  display: flex; flex-direction: column;
}
.pfad .mono { color: var(--mid); margin-bottom: 18px; }
.pfad h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 14px; }
.pfad p { color: #444; margin-bottom: 18px; }
.pfad ul { list-style: none; margin: 6px 0 26px; }
.pfad li {
  padding: 9px 0 9px 26px; position: relative;
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 7%, transparent);
  font-size: 0.97rem;
}
.pfad li::before {
  content: "▲"; position: absolute; left: 2px; top: 9px;
  color: var(--navy); font-size: 0.6rem;
}
.pfad .btn { margin-top: auto; align-self: flex-start; }
.pfad-media { margin: -40px -36px 24px; }
.pfad-media img { width: 100%; height: 210px; object-fit: cover; display: block; border-radius: 10px 10px 0 0; }

/* Distribution-Band */
.band { background: var(--navy); color: var(--white); padding: 56px 0; }
.band .wrap { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.band .zahl {
  font-family: "Comfortaa", sans-serif;
  font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em; line-height: 1; color: var(--cream);
}
.band .zahl .mono { display: block; margin-top: 10px; color: rgba(240,213,192,0.7); font-weight: 400; letter-spacing: 0.14em; }
.band p { color: var(--lede-dunkel); max-width: 44em; }

/* Case Study */
.case { background: var(--white); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.case .ph { min-height: 320px; }
.case blockquote { font-size: 1.1rem; color: #444; border-left: 3px solid var(--cream); padding-left: 18px; margin: 22px 0; }
.case .fakten { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.case .fakt .wert { font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.case .fakt .mono { color: var(--mid); }

/* Ablauf */
.ablauf ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: schritt; }
.ablauf li { background: var(--white); border-radius: 10px; padding: 28px 24px; counter-increment: schritt; }
.ablauf li::before {
  content: "0" counter(schritt);
  font-family: "IBM Plex Mono", monospace; font-size: 0.75rem;
  letter-spacing: 0.14em; color: var(--navy);
  display: block; margin-bottom: 14px;
}
.ablauf h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.ablauf p { font-size: 0.92rem; color: #555; }

/* Über */
.ueber-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.ueber .ph { min-height: 340px; }
.ueber-lede { margin-bottom: 18px; }
.ueber-social { color: #555; }

/* CTA-Panel */
.schluss { background: var(--navy); color: var(--white); text-align: center; }
.schluss .eyebrow { color: var(--cream); }
.schluss h2 { color: var(--white); }
.schluss p { color: var(--lede-dunkel); max-width: 38em; margin: 0 auto 34px; }
.schluss .mail { display: block; margin-top: 18px; color: var(--cream); text-decoration: none; font-size: 0.95rem; }
.schluss .mail:hover { color: var(--white); }

/* Footer */
footer { background: var(--navy-tief); color: rgba(207,224,238,0.7); padding: 40px 0; font-size: 0.88rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .brand { display: flex; align-items: center; gap: 16px; }
footer .brand img { height: 30px; width: auto; display: block; }
footer a { color: var(--cream); text-decoration: none; }
footer a:hover { color: var(--white); }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* Pakete (ohne Preise) */
.pakete { background: var(--light); }
.paket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.paket {
  background: var(--white); border-radius: 10px; padding: 34px 30px;
  border: 1px solid color-mix(in srgb, var(--navy) 8%, transparent);
  display: flex; flex-direction: column;
}
.paket .mono { color: var(--mid); margin-bottom: 14px; }
.paket h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.paket p { color: #444; font-size: 0.98rem; }
.paket-featured {
  border-color: var(--navy);
  box-shadow: 0 14px 36px -20px color-mix(in srgb, var(--navy) 65%, transparent);
}
.paket-featured .mono { color: var(--navy); }
.paket-note { color: var(--mid); margin-top: 28px; }

/* Bild in .ph (Portrait Über, Case) */
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .legende { z-index: 2; }

/* Burger-Toggle (nur mobil sichtbar) */
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: transparent;
  cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }
header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Kontaktformular */
.kontakt-form {
  max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left;
}
.kontakt-form .feld { display: flex; flex-direction: column; gap: 6px; }
.kontakt-form .feld-voll { grid-column: 1 / -1; }
.kontakt-form label { font-size: 0.82rem; color: var(--cream); font-weight: 600; }
.kontakt-form input, .kontakt-form select, .kontakt-form textarea {
  font-family: inherit; font-size: 1rem; padding: 11px 13px; border-radius: 8px;
  border: 1px solid rgba(240,213,192,0.35); background: rgba(255,255,255,0.07); color: var(--white);
}
.kontakt-form input:focus, .kontakt-form select:focus, .kontakt-form textarea:focus {
  outline: 2px solid var(--cream); outline-offset: 1px; border-color: transparent;
}
.kontakt-form select option { color: #1A1A1A; }
.kontakt-form textarea { resize: vertical; }
.kontakt-form button[type="submit"] { grid-column: 1 / -1; justify-self: center; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Referenzen-Abschnitt */
.refs { background: var(--white); padding: 30px 0; border-bottom: 1px solid color-mix(in srgb, var(--navy) 8%, transparent); }
.refs .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.refs .mono { color: var(--mid); flex-shrink: 0; }
.refs-liste { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.refs-liste li { font-family: "Comfortaa", sans-serif; font-weight: 700; color: var(--navy); font-size: 1rem; }

/* Referenz-Slideshow (manuell) */
.slideshow { position: relative; border-radius: 10px; overflow: hidden; background: var(--navy-tief); }
.slideshow .slides { position: relative; aspect-ratio: 3 / 2; }
.slideshow .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms ease; }
.slideshow .slide.is-active { opacity: 1; }
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(6,29,55,0.6); color: var(--cream); font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 150ms ease;
}
.slide-nav:hover { background: rgba(6,29,55,0.9); }
.slide-nav.prev { left: 12px; }
.slide-nav.next { right: 12px; }
.slide-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.slide-dots .dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(240,213,192,0.45); }
.slide-dots .dot.is-active { background: var(--cream); }

/* Formular-Status */
.form-status { grid-column: 1 / -1; margin-top: 6px; font-size: 0.9rem; min-height: 1.2em; color: var(--lede-dunkel); }
.form-status.ok { color: #A7E0B8; }
.form-status.err { color: #F3C0A8; }

/* Portfolio-Galerie */
.galerie { background: var(--white); }
.galerie-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.galerie-item { border: 0; padding: 0; cursor: pointer; background: var(--navy-tief); border-radius: 8px; overflow: hidden; aspect-ratio: 3 / 2; }
.galerie-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.galerie-item:hover img { transform: scale(1.05); }
.galerie-item:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4,16,32,0.93); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox .lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lb-close { position: absolute; top: 16px; right: 22px; background: transparent; border: 0; color: var(--cream); font-size: 2.4rem; line-height: 1; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(6,29,55,0.6); border: 0; color: var(--cream); width: 50px; height: 50px; border-radius: 50%; font-size: 1.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 150ms ease; }
.lb-nav:hover { background: rgba(6,29,55,0.9); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 900px) {
  .paket-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; min-height: 88svh; }
  .hero-content { padding: 96px 24px 84px; }
  .hero-legende { bottom: 84px; }
  .pfade, .case-grid, .ueber-grid { grid-template-columns: 1fr; }
  .ablauf ol { grid-template-columns: 1fr 1fr; }
  .band .wrap { grid-template-columns: 1fr; gap: 18px; }
  .kontakt-form { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: repeat(3, 1fr); }

  .nav-toggle { display: flex; }
  nav.main {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: color-mix(in srgb, var(--white) 96%, transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
    padding: 6px 0; display: none;
  }
  header.nav-open nav.main { display: flex; }
  nav.main a { padding: 12px 24px; }
  nav.main a.btn { margin: 12px 24px; text-align: center; }
}
@media (max-width: 540px) {
  .ablauf ol { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  section { padding: 64px 0; }
  /* Legende kollidiert auf schmalen Screens mit dem Referenzband */
  .hero-legende { display: none; }
}
