/* medienfaktorei — light theme, brand gradient accent (#6D28FF → #12D6DF) */

/* ---------- Self-hosted fonts (variable, weight-range) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #08152f;
  --ink: #0d1b3a;
  --muted: #5a6783;
  --line: #e6ebf4;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --purple: #6d28ff;
  --cyan: #12d6df;
  --grad: linear-gradient(135deg, #6d28ff 0%, #2f6bff 50%, #12d6df 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --shadow: 0 24px 60px -28px rgba(28, 36, 84, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

.eyebrow {
  margin: 0 0 18px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.section-sub { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(109, 40, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(109, 40, 255, 0.6); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #c9d3e6; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
  padding: 0 clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { display: block; height: 22px; width: auto; }
.brand-word {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.brand-word b {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav-desktop { display: flex; align-items: center; gap: 30px; }
.nav-desktop a { text-decoration: none; font-size: 0.95rem; color: var(--ink); transition: color .15s; }
.nav-desktop a:not(.nav-cta):hover { color: var(--purple); }
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
}
.nav-cta:hover { border-color: var(--purple); color: var(--purple); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: sticky;
  top: 70px;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px clamp(20px, 5vw, 56px) 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a { text-decoration: none; padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: 0; color: var(--purple); }
.nav-mobile[hidden] { display: none; }

/* ---------- Layout ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 56px);
}
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .section-sub { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 56px) clamp(56px, 8vw, 110px);
  min-height: calc(100dvh - 70px);
}
.hero-text h1 { margin-bottom: 22px; max-width: 15ch; }
.hero-text .lead { margin: 0 0 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}
.orb {
  position: absolute;
  inset: 4% 6%;
  background: var(--grad);
  filter: blur(58px);
  opacity: 0.32;
  border-radius: 50%;
  animation: float 9s ease-in-out infinite;
}
.mark-stage {
  position: relative;
  width: min(420px, 86%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.mark-big { width: 64%; filter: drop-shadow(0 18px 40px rgba(109, 40, 255, 0.22)); }
.chip {
  position: absolute;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip-1 { top: 6%; left: 2%; }
.chip-2 { top: 20%; right: 0; animation-delay: -1.4s; }
.chip-3 { bottom: 18%; left: -4%; animation-delay: -2.8s; }
.chip-4 { bottom: 4%; right: 6%; animation-delay: -4.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Leistungen ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.service {
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6deee; }
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(109,40,255,.10), rgba(18,214,223,.12));
  color: var(--cyan);
  margin-bottom: 22px;
}
.service-icon svg { width: 34px; height: 34px; }
.service h3 { margin-bottom: 10px; }
.service p { margin: 0; color: var(--muted); }

/* ---------- KI band (deliberate dark color-block) ---------- */
.ki-band {
  max-width: none;
  padding: 0 clamp(20px, 5vw, 56px);
}
.ki-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 76px);
  background-image:
    radial-gradient(circle at 88% 12%, rgba(18,214,223,.22), transparent 42%),
    radial-gradient(circle at 4% 90%, rgba(109,40,255,.30), transparent 46%),
    linear-gradient(180deg, #0a1838, #08152f);
}
.ki-text h2 { margin-bottom: 18px; }
.ki-text p { color: #c3cde0; margin: 0 0 30px; max-width: 46ch; }
.ki-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ki-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  font-size: 1.02rem;
}
.ki-list .num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Prozess ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.steps li {
  position: relative;
  padding: 0 26px 0 0;
}
.steps li + li { padding-left: 26px; }
.steps li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 21px;
  width: 1px; height: calc(100% - 12px);
  background: var(--line);
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  margin-bottom: 20px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Kontakt ---------- */
.kontakt-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
  padding: clamp(36px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(18,214,223,.12), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(109,40,255,.10), transparent 40%),
    var(--bg-soft);
}
.kontakt-intro h2 { margin-bottom: 16px; }
.kontakt-direct { margin-top: 26px; color: var(--muted); }
.kontakt-direct a { color: var(--purple); font-weight: 600; text-decoration: none; }
.kontakt-direct a:hover { text-decoration: underline; }

.kontakt-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea {
  font: inherit;
  padding: 13px 15px;
  border: 1px solid #d4ddec;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #98a3bd; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109,40,255,.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d23b5a; }
.hint { margin: 0; font-size: 0.82rem; color: #d23b5a; min-height: 1em; }
.kontakt-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--purple); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-top, .footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-top { padding-top: 44px; padding-bottom: 28px; }
.footer-top .brand img { height: 24px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); }
.footer-nav a:hover { color: var(--purple); }
.footer-bottom {
  padding-top: 22px; padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--purple); }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 56px) clamp(64px, 9vw, 110px);
}
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.legal .updated {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 44px;
}
.legal h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 44px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal p, .legal ul, .legal address {
  color: #41506e;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 14px;
}
.legal address { font-style: normal; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--purple); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .ph {
  background: linear-gradient(135deg, rgba(109,40,255,.10), rgba(18,214,223,.12));
  border: 1px dashed rgba(109,40,255,.45);
  border-radius: 6px;
  padding: 1px 7px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86em;
  color: var(--purple);
  white-space: nowrap;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 48px;
  font-weight: 600;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .chip { animation: none; }
  .btn:hover, .service:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-visual { order: -1; min-height: 280px; }
  .mark-stage { width: min(340px, 80%); }
  .kontakt-card { grid-template-columns: 1fr; }
  .ki-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .steps li, .steps li + li { padding: 0; }
  .steps li + li::before { display: none; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .steps { grid-template-columns: 1fr; }
  .chip-1, .chip-3 { left: 0; }
  .chip-2, .chip-4 { right: 0; }
}
