/* ============================================================
   Schuler IT Solutions — Apple-Stil (hell, zentriert, ruhig)
   ============================================================ */

/* Inter lokal (Variable Font, deckt 400–700 ab) — kein Google-Fonts-Request,
   auf Apple-Geräten greift weiterhin SF Pro und die Datei wird gar nicht geladen */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-var-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;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-soft: #141416;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-link: #2997ff;
  --blue-dark: #2997ff;
  --dark: #000000;
  --dark-ink: #f5f5f7;
  --dark-ink-2: #86868b;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

/* Anker-Scrollen übernimmt JS mit fester Dauer (main.js) —
   natives smooth wird bei langen Seiten zu träge */
[id] { scroll-margin-top: 64px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.018em; }

/* ============================================================
   Intro-Overlay: Video zuerst, dann öffnet sich die Seite
   ============================================================ */

.intro {
  position: fixed; inset: 0; z-index: 1000;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.intro video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.intro.playing video { opacity: 1; }

/* Marken-Einblendung am Ende des Videos */
.intro-brand {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.8s ease, background 0.7s ease;
}
.intro-brand > * {
  transform: translateY(16px);
  transition: transform 1s var(--ease);
}
.intro-brand .intro-tag {
  transition: transform 1s var(--ease) 0.1s, opacity 0.5s ease;
}
.intro.branding .intro-brand { opacity: 1; }
.intro.branding .intro-brand > * { transform: translateY(0); }
.intro-wordmark {
  font-size: clamp(26px, 4.8vw, 40px);
  font-weight: 600; letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.35);
  will-change: transform;
  transition: transform 1s var(--ease), color 0.7s ease, text-shadow 0.7s ease;
}
.intro-tag {
  font-size: 15px; font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

/* Weißblende: liegt ÜBER dem Video, aber UNTER dem Schriftzug —
   das Video löst sich auf, der Name bleibt stehen und wird dunkel */
.intro-white {
  position: absolute; inset: 0; z-index: 1;
  background: #fff;
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s ease;
}
.intro.dissolve .intro-white { opacity: 1; }
.intro.dissolve .intro-brand { background: rgba(0, 0, 0, 0); }
.intro.dissolve .intro-wordmark { color: var(--ink); text-shadow: none; }
.intro.dissolve .intro-tag { opacity: 0; }

/* Die Hero-Headline wartet nicht auf die Aufstiegs-Animation,
   wenn der Intro-Schriftzug auf ihr "gelandet" ist */
body.eyebrow-landed .hero-h {
  transition: none;
  opacity: 1;
  transform: none;
}

.intro-skip {
  position: absolute; right: 24px; bottom: 24px; z-index: 2;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease, background 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.intro-skip.show { opacity: 1; pointer-events: auto; }
.intro-skip:hover { background: rgba(255, 255, 255, 0.18); }
.intro.dissolve .intro-skip { opacity: 0; pointer-events: none; }

.intro.gone { display: none; }

/* Hero-Elemente warten, bis das Intro vorbei ist */
.hero-el {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero-el[data-d="1"] { transition-delay: 0.1s; }
.hero-el[data-d="2"] { transition-delay: 0.2s; }
.hero-el[data-d="3"] { transition-delay: 0.3s; }
.hero-el[data-d="4"] { transition-delay: 0.45s; }
body.page-in .hero-el { opacity: 1; transform: translateY(0); }

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

/* Nav blendet nach dem Intro sanft ein statt aufzupoppen */
body.intro-pending .nav { opacity: 0; }
body.intro-pending.page-in .nav { opacity: 1; transition: opacity 0.9s ease 0.25s; }
.nav-inner {
  max-width: 1024px; margin: 0 auto;
  padding: 0 22px;
  height: 48px;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(28px, 4.5vw, 48px);
}
.nav-brand {
  display: inline-flex; align-items: center;
  color: var(--ink);
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.nav-brand:hover { opacity: 1; }
.nav-mark { width: 19px; height: 19px; flex: none; }
.nav-links {
  display: flex; gap: clamp(28px, 4.5vw, 48px); list-style: none;
}
.nav-links a {
  font-size: 12px; color: rgba(245, 245, 247, 0.82);
  letter-spacing: 0.012em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }

/* Burger (mobil) */
.burger {
  display: none;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span {
  display: block; width: 18px; height: 1.6px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(84vw, 360px);
  background: var(--bg);
  padding: 90px 34px 34px;
  transform: translateX(102%);
  transition: transform 0.45s var(--ease);
  display: flex; flex-direction: column; gap: 28px;
}
.drawer { border-left: 1px solid var(--line); }
.drawer.open { transform: translateX(0); box-shadow: 0 0 80px rgba(0, 0, 0, 0.6); }
.drawer ul { list-style: none; display: flex; flex-direction: column; }
.drawer a:not(.btn) {
  display: block; padding: 15px 0;
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}
.ovr {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.ovr.open { opacity: 1; pointer-events: auto; }

/* ============================================================
   Buttons & Links
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 400;
  padding: 11px 22px; border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--blue-hover); transform: translateY(-1px); }

.tlink {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--blue-link); font-size: 15px;
  transition: opacity 0.2s ease;
}
.tlink:hover { opacity: 0.75; }
.tlink .chev { font-size: 1.05em; line-height: 1; transform: translateY(-1px); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  text-align: center;
  padding: clamp(72px, 11vh, 130px) 24px clamp(60px, 8vh, 100px);
  max-width: 860px; margin: 0 auto;
}
.hero-h {
  font-size: clamp(2.7rem, 7.4vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin-bottom: 30px;
}
/* Die Unterzeile steckt fürs SEO mit im H1, sieht aber aus wie eigener Absatz */
.hero-h .hero-sub {
  display: block;
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.47;
  color: var(--ink-2);
  background: none;
  -webkit-text-fill-color: var(--ink-2);
}
/* Silber-Finish auf der Headline (Apple-Pro-Look) */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-h {
    background: linear-gradient(180deg, #ffffff 25%, #b4b4b9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--ink-2);
  margin-bottom: 30px;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 26px; flex-wrap: wrap;
}

/* Hero-Workflow-Grafik */
.hero-flow {
  margin-top: clamp(44px, 7vh, 72px);
  display: flex; align-items: center; justify-content: center;
  gap: 0;
}
.hf-node {
  width: 62px; height: 62px; border-radius: 16px;
  background: #1d1d20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  color: var(--ink-2);
  animation: float 5.5s ease-in-out infinite;
}
.hf-node svg { width: 26px; height: 26px; }
.hf-node--blue {
  background: var(--blue); color: #fff;
  border: none;
  animation-delay: 0.6s;
}
.hf-node:last-child { animation-delay: 1.2s; }
.hf-line {
  width: clamp(28px, 6vw, 56px); height: 1.6px;
  background: rgba(255, 255, 255, 0.18);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============================================================
   Kachel-Grid (Leistungen)
   ============================================================ */

.tiles-wrap { padding: 12px 12px 72px; }
.tiles {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.tile { grid-column: span 2; }
.tile--featured { grid-column: span 6; min-height: 460px; }
.tile--featured .tile-sub { max-width: 440px; }
.tile--featured .mini-browser { width: min(62%, 500px); }
.tile--featured .mb-body { padding: 26px 24px 36px; gap: 11px; }
.tile--featured .mb-line--h { height: 16px; }
.tile {
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  text-align: center;
  padding: clamp(38px, 5vw, 58px) clamp(24px, 4vw, 48px) 0;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  min-height: 380px;
  transition: transform 0.45s var(--ease), border-color 0.45s ease;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.14); }
.tile-h { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.tile-sub {
  font-size: 15px; color: var(--ink-2);
  max-width: 380px; margin: 0 auto 26px;
}
/* Helle Akzent-Kachel (Kontrastpunkt auf der dunklen Seite) */
.tile--dark { background: #f5f5f7; border-color: transparent; color: #1d1d1f; }
.tile--dark:hover { border-color: transparent; }
.tile--dark .tile-sub { color: #6e6e73; }

.tile-visual {
  margin-top: auto;
  width: 100%;
  display: flex; justify-content: center; align-items: flex-end;
  padding-bottom: 34px;
}
/* Chips, App-Reihe und Terminal: mittig im freien Raum statt am Boden kleben */
.tile-visual:has(.mini-flow),
.tile-visual:has(.mini-apps),
.tile-visual:has(.mini-log) {
  flex: 1;
  align-items: center;
  padding-bottom: 20px;
}

/* Mini-Browser (Web Design) */
.mini-browser {
  width: min(78%, 330px);
  background: #fff; border-radius: 12px 12px 0 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: none;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  margin-bottom: -12px;
}
.mb-bar {
  display: flex; gap: 5px; padding: 9px 11px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.mb-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d2d2d7; }
.mb-body { padding: 18px 18px 26px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.mb-line { height: 9px; border-radius: 4px; background: #e8e8ed; width: 78%; }
.mb-line--h { height: 13px; width: 56%; background: #d2d2d7; }
.mb-line--s { width: 64%; }
.mb-pill {
  width: 84px; height: 22px; border-radius: 999px;
  background: var(--blue);
  margin-top: 6px;
}

/* Mini-Flow (KI-Workflows, dunkle Kachel) */
.mini-flow {
  display: flex; align-items: center; gap: 9px;
  flex-wrap: wrap; justify-content: center;
}
.mf-chip {
  font-size: 12.5px; font-weight: 500;
  color: #48484c;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 9px; padding: 9px 13px;
  white-space: nowrap;
}
.mf-arrow { color: #86868b; font-size: 13px; }

/* Mini-Apps (Integrationen) */
.mini-apps { display: flex; align-items: center; gap: 12px; }
.ma-chip {
  width: 46px; height: 46px; border-radius: 12px;
  background: #fff; color: var(--ink-2);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.18);
}
.ma-chip svg { width: 20px; height: 20px; }
.ma-chip--blue { background: var(--blue); color: #fff; transform: scale(1.14); }

/* Mini-Log (Automatisierung): dunkles Terminal */
.mini-log {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12.5px; line-height: 2;
  text-align: left;
  background: #000; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px;
  width: min(82%, 330px);
  color: var(--ink-2);
}
.ml-dim { color: #5a5a5f; }
.ml-blue { color: var(--blue-link); }

/* ============================================================
   Projekte
   ============================================================ */

.projects {
  background: var(--bg-soft);
  padding: clamp(80px, 12vh, 130px) 24px;
}
.sec-h {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.projects .sec-h { margin-bottom: clamp(44px, 7vh, 70px); }
.proj {
  max-width: 980px; margin: 0 auto 56px;
}
.proj:last-child { margin-bottom: 0; }

.proj-frame {
  background: #101013; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}
.pf-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: #1d1d1f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pf-bar i { width: 9px; height: 9px; border-radius: 50%; background: #48484d; }
.pf-bar span {
  margin: 0 auto;
  font-size: 12px; color: #a1a1a6;
  background: #2c2c2e; border-radius: 6px;
  padding: 3px 26px;
}
.pf-body { aspect-ratio: 16 / 8.5; position: relative; }
.pf-body img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pf-body .pf-placeholder { display: none; }
.pf-body.pf-fallback .pf-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: absolute; inset: 0;
}
.pf-body--wild.pf-fallback { background: #eef1ea; }
.pfp-mark {
  width: 74px; height: 74px; border-radius: 18px;
  background: #3f5240; color: #eef1ea;
  display: grid; place-items: center;
  font-size: 34px; font-weight: 700;
  margin-bottom: 18px;
}
.pfp-name { font-size: 26px; font-weight: 700; color: #2d3a2e; }
.pfp-tag { font-size: 14px; color: #6d7c6e; }

.pf-body--evu.pf-fallback { background: #14181f; }
.pf-body--evu.pf-fallback .pfp-mark { background: #1f6f4a; color: #eafff4; }
.pf-body--evu.pf-fallback .pfp-name { color: #eef2f7; }
.pf-body--evu.pf-fallback .pfp-tag { color: #8a93a0; }

.pf-body--cta {
  background: #f5f5f7;
  display: flex; align-items: center; justify-content: center;
}
.pf-body--cta p {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  color: #1d1d1f;
  text-align: center;
}

.proj-meta {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 30px;
  padding: 26px 8px 0;
}
.proj-meta h3 { font-size: 19px; margin-bottom: 6px; }
.proj-meta p { font-size: 15px; color: var(--ink-2); max-width: 560px; }
.proj-meta .tlink { flex: none; margin-top: 2px; }

/* ============================================================
   Region + FAQ
   ============================================================ */

.region {
  text-align: center;
  padding: clamp(80px, 12vh, 130px) 24px;
  max-width: 720px; margin: 0 auto;
}
.region .sec-h { margin-bottom: 18px; }
.region-body {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-2);
  margin-bottom: 40px;
}
.faq {
  max-width: 640px; margin: 0 auto;
  text-align: left;
  border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 17px 2px;
  font-size: 15.5px; font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 20px; font-weight: 400;
  color: var(--ink-3);
  flex: none;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue-link); }
.faq details p {
  padding: 0 2px 18px;
  font-size: 15px; line-height: 1.6;
  color: var(--ink-2);
}

/* ============================================================
   Kontakt
   ============================================================ */

.contact {
  text-align: center;
  padding: clamp(90px, 14vh, 150px) 24px;
  max-width: 680px; margin: 0 auto;
}
.contact-eyebrow {
  font-size: 15px; font-weight: 600;
  color: var(--blue-link);
  margin-bottom: 12px;
}
.contact .sec-h { margin-bottom: 20px; }
.contact-body {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ink-2);
  margin-bottom: 32px;
}
.contact-phone {
  margin-top: -14px;
  font-size: 15px;
  color: var(--ink-3);
}
.contact-phone a {
  color: var(--blue-link);
  transition: opacity 0.2s ease;
}
.contact-phone a:hover { opacity: 0.75; }

/* ---- Kontaktformular ---- */
.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: left;
  display: flex; flex-direction: column; gap: 16px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.cf-field label span { color: var(--ink-3); font-weight: 400; }
.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  font-family: inherit; font-size: 15px;
  color: var(--ink);
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
.cf-field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: #5a5a5f; }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.28);
}
.cf-field input:user-invalid,
.cf-field textarea:user-invalid {
  border-color: #ff453a;
}
/* eigener Chevron für das Select (appearance:none entfernt den Standard) */
.cf-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a1a1a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.cf-field select option { color: #000; }

/* Honeypot komplett aus dem Blickfeld */
.cf-hp {
  position: absolute;
  left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.cf-consent {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer; line-height: 1.5;
  margin-top: 2px;
}
.cf-consent input {
  margin-top: 1px;
  width: 17px; height: 17px; flex: none;
  accent-color: var(--blue);
  cursor: pointer;
}
.cf-consent a { color: var(--blue-link); }

.cf-actions {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; margin-top: 6px;
}
.cf-actions .btn { border: none; cursor: pointer; }
.cf-status { margin: 0; font-size: 14px; }
.cf-status.ok { color: #30d158; }
.cf-status.err { color: #ff6961; }
.contact-form.sending #cf-submit { opacity: 0.6; pointer-events: none; }

/* Erfolgsmeldung ersetzt das Formular */
.cf-success {
  max-width: 600px; margin: 40px auto 0;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 34px 28px;
  text-align: center;
}
.cf-success .cf-check {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.cf-success h3 { font-size: 20px; margin-bottom: 8px; }
.cf-success p { font-size: 15px; color: var(--ink-2); }

@media (max-width: 560px) {
  .cf-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 50px 24px 34px;
  font-size: 13px;
}
.footer-inner { max-width: 1024px; margin: 0 auto; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.foot-col--brand { display: flex; align-items: flex-start; gap: 12px; }
.foot-col--brand p { font-weight: 600; line-height: 1.5; }
.foot-col--brand span { font-weight: 400; color: var(--ink-3); }
.foot-col h4 {
  font-size: 12px; color: var(--ink-3);
  font-weight: 500; margin-bottom: 12px;
}
.foot-col a {
  display: block;
  color: rgba(245, 245, 247, 0.85);
  padding: 4px 0;
}
.foot-col a:hover { text-decoration: underline; }
.foot-bottom { color: var(--ink-3); font-size: 12px; }

/* ============================================================
   Wow-Schicht: Gradient-Headline, Aurora, lebendige Flows
   ============================================================ */


/* Aurora hinter dem Hero (bleibt unterhalb der Nav) */
.hero { position: relative; overflow: hidden; }
.hero-aurora {
  position: absolute; inset: 0;
  pointer-events: none; z-index: -1;
  /* weicher Rand: Glow läuft klar vor allen vier Hero-Kanten aus */
  -webkit-mask-image: radial-gradient(85% 90% at 50% 42%, #000 6%, transparent 54%);
  mask-image: radial-gradient(85% 90% at 50% 42%, #000 6%, transparent 54%);
}
.hero-aurora i {
  position: absolute;
  width: 44vw; height: 44vw;
  max-width: 560px; max-height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
}
.hero-aurora i:nth-child(1) {
  background: #0a84ff;
  top: -12%; left: 2%;
  animation: aurora-a 19s ease-in-out infinite alternate;
}
.hero-aurora i:nth-child(2) {
  background: #2997ff;
  top: 4%; right: 0%;
  animation: aurora-b 23s ease-in-out infinite alternate;
}
.hero-aurora i:nth-child(3) {
  background: #64d2ff;
  bottom: -30%; left: 32%;
  opacity: 0.1;
  animation: aurora-c 27s ease-in-out infinite alternate;
}
@keyframes aurora-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(9vw, 6vh) scale(1.15); }
}
@keyframes aurora-b {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-10vw, 8vh) scale(0.92); }
}
@keyframes aurora-c {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vw, -6vh) scale(1.2); }
}

/* Aurora-Echo hinter dem Kontaktblock (Klammer zum Hero) */
.contact { position: relative; overflow: hidden; }
.contact-aurora { inset: auto 0 -120px; height: 70%; }
.contact-aurora i { opacity: 0.09; }
.contact-aurora i:nth-child(1) { top: auto; bottom: -40%; left: 6%; }
.contact-aurora i:nth-child(2) { top: auto; bottom: -50%; right: 4%; }

/* Lebendiger Hero-Workflow: KI-Knoten mit Verlauf + Puls, wandernde Datenpunkte */
.hf-node--blue {
  position: relative;
}
.hf-node--blue::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  animation: ki-puls 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes ki-puls {
  0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(0, 113, 227, 0); }
}
.hf-line { position: relative; overflow: visible; }
.hf-line::after {
  content: '';
  position: absolute; top: 50%; left: -6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
  animation: dot-run-a 5s cubic-bezier(0.45, 0, 0.35, 1) infinite;
}
.hf-line + .hf-node--blue + .hf-line::after { animation-name: dot-run-b; }
/* Ein Zyklus, zwei Etappen: erst Linie 1, dann Linie 2 —
   es ist immer nur ein Punkt gleichzeitig sichtbar */
@keyframes dot-run-a {
  0% { left: -6px; opacity: 0; }
  6% { opacity: 1; }
  40% { opacity: 1; }
  46% { left: calc(100% - 1px); opacity: 0; }
  100% { left: calc(100% - 1px); opacity: 0; }
}
@keyframes dot-run-b {
  0% { left: -6px; opacity: 0; }
  50% { left: -6px; opacity: 0; }
  56% { opacity: 1; }
  90% { opacity: 1; }
  96% { left: calc(100% - 1px); opacity: 0; }
  100% { left: calc(100% - 1px); opacity: 0; }
}

/* Dunkle KI-Kachel: Demo spielt von selbst (Chips leuchten nacheinander) */
.tile--dark .mf-chip {
  animation: chip-live 5.1s ease-in-out infinite;
}
.tile--dark .mf-chip:nth-of-type(3) { animation-delay: 1.7s; }
.tile--dark .mf-chip:nth-of-type(5) { animation-delay: 3.4s; }
@keyframes chip-live {
  0%, 22% {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(0, 113, 227, 0.08);
    transform: translateY(-2px);
  }
  30%, 100% {
    border-color: rgba(0, 0, 0, 0.22);
    color: #48484c;
    background: transparent;
    transform: translateY(0);
  }
}

/* Projektkarten: 3D-Tilt (JS setzt transform), Basis-Übergang.
   Frames sind komplett verlinkt (öffnen die Live-Seite) */
.proj-link { display: block; perspective: 1400px; }
.proj-frame {
  transition: transform 0.25s ease-out, box-shadow 0.4s ease;
  will-change: transform;
}

/* Textauswahl in Markenblau */
::selection { background: rgba(41, 151, 255, 0.35); }

/* Sichtbarer Fokus für Tastatur-Navigation */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-link);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Scroll-Reveal
   ============================================================ */

.rev {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.rev.in { opacity: 1; transform: translateY(0); }
.rev[data-d="1"] { transition-delay: 0.08s; }
.rev[data-d="2"] { transition-delay: 0.16s; }

/* ============================================================
   Responsive
   ============================================================ */

.br-desk { display: inline; }

@media (max-width: 1020px) {
  .tile { grid-column: span 3; }
  .tile--featured { grid-column: span 6; }
  .tile:has(.mini-log) { grid-column: span 6; }
}

@media (max-width: 760px) {
  .nav-inner { justify-content: space-between; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .br-desk { display: none; }

  .tile, .tile--featured, .tile:has(.mini-log) { grid-column: span 6; }
  .tile { min-height: 320px; }
  .tile--featured { min-height: 360px; }
  .tile--featured .mini-browser { width: min(84%, 400px); }

  .proj-meta { flex-direction: column; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-col--brand { grid-column: span 2; }
}

/* ============================================================
   Reduzierte Bewegung
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .rev, .hero-el {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hf-node { animation: none !important; }
  .hero-aurora i, .hf-node--blue,
  .hf-node--blue::after, .hf-line::after, .tile--dark .mf-chip {
    animation: none !important;
  }
  .hf-line::after { display: none; }
}
