/* =========================================================
   Stefan Bechtloff – Business Homepage
   ========================================================= */

:root {
  --navy-900: #060b18;
  --navy-800: #0b1226;
  --navy-700: #111a33;
  --navy-600: #1a2544;
  --ink: #101828;
  --ink-soft: #475467;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-muted: #f6f8fb;
  --accent: #1e6fff;
  --accent-dark: #1553c7;
  --accent-soft: rgba(30, 111, 255, 0.1);
  --gold: #f4b740;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 14px 34px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 28px 70px rgba(6, 11, 24, 0.22);
  --container: 1180px;
  --font-head: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.16rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ================= Scroll progress ================= */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 120;
  transition: width 0.1s linear;
}

/* ================= Header ================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  background: rgba(6, 11, 24, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.site-header.scrolled .brand { color: var(--ink); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #0b3fa8);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(30, 111, 255, 0.35);
}
.brand-mark.small { width: 38px; height: 38px; font-size: 0.9rem; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1.02rem; }
.brand-text em {
  font-style: normal;
  font-size: 0.78rem;
  opacity: 0.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav a.active { color: #fff; background: rgba(255, 255, 255, 0.14); }

.site-header.scrolled .nav a { color: var(--ink-soft); }
.site-header.scrolled .nav a:hover,
.site-header.scrolled .nav a.active { color: var(--ink); background: var(--accent-soft); }

.nav .nav-cta,
.site-header.scrolled .nav .nav-cta {
  margin-left: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(30, 111, 255, 0.32);
}
.nav .nav-cta:hover,
.site-header.scrolled .nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.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); }

/* ================= Hero ================= */
.hero {
  position: relative;
  padding: 160px 0 0;
  background:
    radial-gradient(1000px 520px at 78% 8%, rgba(30, 111, 255, 0.28), transparent 60%),
    radial-gradient(760px 420px at 6% 86%, rgba(244, 183, 64, 0.14), transparent 60%),
    linear-gradient(170deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
}
.pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.grad {
  background: linear-gradient(100deg, #7fb0ff 0%, #ffffff 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 62ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero .lead strong { color: #fff; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(30, 111, 255, 0.38);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(30, 111, 255, 0.46);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}
.hero-trust li { display: flex; align-items: center; gap: 9px; }
.hero-trust li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Hero card */
.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero-card-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold), #e08f1c);
  color: #21160a;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
}
.hero-card-head h2 { font-size: 1.12rem; margin: 0 0 3px; }
.hero-card-head p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

.hero-facts { margin: 0; display: grid; gap: 12px; }
.hero-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}
.hero-facts dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}
.hero-facts dd { margin: 0; font-size: 0.9rem; font-weight: 600; text-align: right; }

.hero-card-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  color: #9dc2ff;
}
.hero-card-link:hover { color: #fff; }

/* KPI bar */
.kpi-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.kpi {
  padding: 26px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.kpi:last-child { border-right: 0; }
.kpi-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.kpi-label {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* ================= Marquee ================= */
.marquee-section { padding: 42px 0 10px; background: var(--bg); overflow: hidden; }
.marquee-title {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.marquee {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}
.marquee-track li {
  flex: 0 0 auto;
  padding: 0 30px;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
  color: #98a2b3;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.marquee-track li:hover { color: var(--ink); }
.marquee-track li::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 5px; height: 5px;
  margin-left: 30px;
  border-radius: 50%;
  background: #d0d5dd;
}

/* ================= Sections ================= */
.section { padding: 92px 0; }
.section-muted { background: var(--bg-muted); }
.section-dark {
  background:
    radial-gradient(700px 400px at 85% 15%, rgba(30, 111, 255, 0.22), transparent 62%),
    linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 52px; }
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.kicker.light { color: var(--gold); }
.section-sub { font-size: 1.05rem; color: var(--ink-soft); margin: 0; }
.section-sub.light { color: rgba(255, 255, 255, 0.78); }

/* ================= Leistungen ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  padding: 30px 26px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cfd8e6; }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }

.card-list { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.card-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
  font-size: 0.92rem;
  font-weight: 500;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

/* ================= Ergebnisse ================= */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.result {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, background 0.25s ease;
}
.result:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.11); }
.result h3 { font-size: 1.06rem; }
.result p { margin: 0; color: rgba(255, 255, 255, 0.76); font-size: 0.95rem; }

/* ================= Kompetenzen ================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.skill-block {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
  border: 1px solid var(--line);
}
.skill-block h3 { margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tags li {
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.tags li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.proficiency {
  margin-top: 46px;
  padding: 32px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.proficiency-title { margin-bottom: 22px; }
.bars { display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: 20px; align-items: center; }
.bar-label { font-size: 0.94rem; font-weight: 500; }
.bar {
  height: 9px;
  border-radius: 999px;
  background: #e9edf4;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #5b9bff);
  transition: width 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ================= Vorgehen ================= */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.step {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 8px;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ================= Referenzen ================= */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.ref {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ref:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ref-branch {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ref h3 { margin-bottom: 8px; }
.ref p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.ref-more {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-muted);
  border: 1px dashed #cfd8e6;
}
.ref-more p { margin: 0 0 10px; font-size: 0.94rem; color: var(--ink-soft); }
.ref-more p:last-child { margin-bottom: 0; }
.ref-more strong { color: var(--ink); }

.quote {
  margin: 44px 0 0;
  padding: 36px 38px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--navy-800), var(--navy-700));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}
.quote figcaption {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 600;
}

/* ================= Timeline ================= */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(30, 111, 255, 0.12));
}
.tl-item { position: relative; padding: 0 0 34px 8px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 111, 255, 0.12);
}
.tl-date {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.tl-item h3 { margin-bottom: 4px; }
.tl-org { font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: 0.95rem; }
.tl-item > p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.96rem; max-width: 74ch; }

.credentials {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.cred {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.cred h3 { color: var(--accent); font-size: 1rem; }
.cred p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.8; }

/* ================= CTA / Kontakt ================= */
.section-cta {
  background:
    radial-gradient(800px 460px at 12% 18%, rgba(30, 111, 255, 0.3), transparent 62%),
    radial-gradient(700px 420px at 92% 88%, rgba(244, 183, 64, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.cta-copy h2 { max-width: 20ch; }

.contact-list { margin-top: 30px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1rem; }
.contact-list a { color: #fff; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.contact-list a:hover { color: var(--gold); border-color: var(--gold); }
.ci {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold);
}
.ci svg { width: 20px; height: 20px; }

.contact-form {
  padding: 32px 30px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.contact-form h3 { margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
}
.field label span { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: #fcfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field.invalid input,
.field.invalid textarea { border-color: #d92d20; }
.error { margin: 6px 0 0; font-size: 0.83rem; color: #d92d20; min-height: 0; }

.form-hint { margin: 12px 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.form-status { margin: 10px 0 0; font-size: 0.9rem; font-weight: 600; color: #067647; }

/* ================= Footer ================= */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.footer-brand strong { font-family: var(--font-head); }
.footer-brand p { margin: 2px 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }
.copyright { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); width: 100%; }

/* ================= Rechtsseiten (Impressum / Datenschutz) ================= */
.legal-page .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.legal-page .brand { color: var(--ink); }
.legal-page .nav a { color: var(--ink-soft); }
.legal-page .nav a:hover,
.legal-page .nav a.active { color: var(--ink); background: var(--accent-soft); }
.legal-page .nav .nav-cta { color: #fff; }
.legal-page .nav .nav-cta:hover { color: #fff; }
.legal-page .nav-toggle span { background: var(--ink); }

.legal-hero {
  padding: 140px 0 46px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 14px; }
.legal-hero .section-sub { max-width: 62ch; }

.legal-body { padding: 56px 0 90px; }
.legal-container { max-width: 840px; }
.legal-container h2 {
  font-size: 1.28rem;
  margin: 38px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal-container h2:first-of-type { margin-top: 0; }
.legal-container p { color: var(--ink-soft); }
.legal-container strong { color: var(--ink); }
.legal-container ul {
  margin: 0 0 1em;
  color: var(--ink-soft);
}
.legal-container ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.legal-container ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.legal-summary {
  padding: 26px 28px;
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid rgba(30, 111, 255, 0.22);
}
.legal-summary h2 {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  font-size: 1.12rem;
  color: var(--accent-dark);
}
.legal-summary ul { margin: 0; }

.legal-note {
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: #fffaf0;
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
}

mark.todo {
  background: #fff3cd;
  color: #7a5200;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92em;
}

.legal-updated {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.back-link { font-weight: 600; }

/* ================= Sticky mobile CTA ================= */
.sticky-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 115;
  display: none;
  padding: 15px 20px;
  text-align: center;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(30, 111, 255, 0.45);
  transform: translateY(140%);
  transition: transform 0.3s ease;
}
.sticky-cta.visible { transform: translateY(0); }

/* ================= Reveal animation ================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
}

/* ================= Responsive ================= */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 480px; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .kpi-bar { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a, .site-header.scrolled .nav a { color: var(--ink); padding: 13px 14px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }

  .hero { padding-top: 124px; }
  .section { padding: 68px 0; }
  .bar-row { grid-template-columns: 1fr; gap: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  .site-footer { padding-bottom: 92px; }
  .quote { padding: 28px 24px; }
  .proficiency { padding: 26px 22px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .kpi-bar { grid-template-columns: 1fr; }
  .kpi { border-right: 0; border-bottom: 1px solid var(--line); }
  .kpi:last-child { border-bottom: 0; }
  .btn { width: 100%; }
  .hero-actions { gap: 10px; }
  .brand-text em { display: none; }
}
