/* ── Self-hosted fonts (Ubuntu) ─────────────────────
   Served locally instead of via Google Fonts so no visitor data is
   sent to Google (GDPR). Files live in media/fonts/. */
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("media/fonts/ubuntu-300.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("media/fonts/ubuntu-400.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("media/fonts/ubuntu-500.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("media/fonts/ubuntu-700.woff2") format("woff2");
}

/* ── Reset & base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --bg-alt:    #f0f0f0;
  --surface:   #ffffff;
  --border:    #e2e2e2;
  --accent:    #7cbf45;
  --accent-hi: #6aa838;
  --navy:      #2f3a4a;
  --heading:   #2f3a4a;
  --text:      #4a4a4a;
  --muted:     #595959;
  --hero-navy: #16357c;
  --focus:     #2f3a4a;
  --max-w:     1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.1rem;
  font-weight: 400;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }

p { color: var(--muted); }
p + p { margin-top: 18px; }

img { max-width: 100%; height: auto; display: block; }

/* ── Accessibility: skip link & focus indicator ─── */
.skip-link {
  position: absolute;
  left: 8px;
  top: -56px;
  z-index: 200;
  background: #2f3a4a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 500;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; color: #fff; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Layout helpers ─────────────────────────────── */
.container {
  width: 92%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section  { padding: 108px 0; }
.section-alt { background: var(--bg-alt); }

/* ── Header / nav ───────────────────────────────── */
/* Scoped to the top-level nav only: article pages also use a <header>
   (.wi-article-head), which must NOT be sticky. */
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.nav-inner {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.nav-logo {
  font-size: 2.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #9a9a9a;
}
.nav-logo:hover { color: #9a9a9a; }
.nav-logo .dot { color: var(--accent); font-weight: 500; }
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

header ul {
  list-style: none;
  display: flex;
  gap: 44px;
  align-items: center;
}

header ul a {
  color: #4a4a4a;
  font-size: 1.05rem;
  font-weight: 400;
  transition: color 0.15s;
}
header ul a:hover,
header ul a.nav-active { color: var(--accent); }

.nav-cta {
  padding: 9px 26px;
  border: 1.5px solid var(--accent);
  border-radius: 30px;
  color: var(--accent) !important;
  font-weight: 500 !important;
  transition: background 0.15s, color 0.15s !important;
}
.nav-cta:hover {
  background: var(--accent);
  color: #fff !important;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1.05rem;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover {
  background: var(--accent-hi);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Headings ───────────────────────────────────── */
h1, h2, h3 {
  color: var(--heading);
  font-weight: 400;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 22px;
}

/* ── Hero (Home) ────────────────────────────────── */
.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  text-align: center;
  background: url("media/images/Airplanes.webp") no-repeat center 28%;
  background-size: cover;
}

.hero-inner {
  width: 92%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 0;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  color: #ffffff;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto 34px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.55);
}

.hero-tag {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

/* ── Hero (KI page – dark photo) ────────────────── */
.hero-ki {
  min-height: 480px;
  background: url("media/images/Computer.webp") no-repeat center center;
  background-size: cover;
}

/* ── Performante KI-Integration (split w/ image) ── */
.feature {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 84px;
  align-items: center;
}

.feature-img img {
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
}

.feature-body h2 { margin-bottom: 20px; }
.feature-body p  { margin-bottom: 18px; }
.feature-body .btn { margin-top: 10px; }

/* ── Section heading (centered) ─────────────────── */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 80px;
}

/* ── Unsere Themen (alternating) ────────────────── */
.topics {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 96px;
  row-gap: 72px;
}

.topic {
  display: flex;
  gap: 26px;
  align-items: flex-start;
}
.topic:nth-child(odd)  { grid-column: 1; }
.topic:nth-child(even) { grid-column: 2; }

.topic-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}
.topic-icon img { width: 100%; height: 100%; object-fit: contain; }
/* Light/dark variants of the topic icons */
.topic-icon .icon-dm { display: none; }
[data-theme="dark"] .topic-icon .icon-lm { display: none; }
[data-theme="dark"] .topic-icon .icon-dm { display: block; }

.topic h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.topic p { font-size: 1rem; line-height: 1.6; }

/* ── Unser Ansatz ───────────────────────────────── */
.ansatz {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 84px;
  align-items: center;
}
.ansatz h2 { margin-bottom: 20px; }
.ansatz p  { margin-bottom: 16px; }
.ansatz-photo img {
  width: 100%;
  border-radius: 2px;
}

/* ════ Über uns — editorial page ════════════════════════════════
   Shares the site's tokens (Ubuntu, navy, green accent, dark mode)
   but uses its own distinct, asymmetric layout vocabulary.        */

/* Shared eyebrow / section head ----------------------------------- */
.au-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 26px;
}
.au-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}
.au-section-head { max-width: 760px; margin-bottom: 56px; }
.au-section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 18px;
}
.au-section-head p { font-size: 1.08rem; }

/* Hero — dark navy statement, left-aligned ------------------------ */
.au-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(120px, 19vh, 210px) 0 clamp(96px, 14vh, 150px);
  background:
    radial-gradient(135% 105% at 88% -25%, rgba(124, 191, 69, 0.22), transparent 55%),
    linear-gradient(158deg, #2f3a4a 0%, #1c242f 68%, #161d27 100%);
}
.au-hero::before {
  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: 66px 66px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  pointer-events: none;
}
.au-hero-inner { position: relative; }
.au-hero .au-eyebrow { color: var(--accent); }
.au-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.015em;
  max-width: 17ch;
  margin-bottom: 28px;
}
.au-hero h1 em { font-style: normal; color: var(--accent); }
.au-hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  max-width: 56ch;
  margin-bottom: 42px;
}
.au-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.btn-ghost {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 30px;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

/* Manifesto — oversized editorial lead ---------------------------- */
.au-manifesto { padding: clamp(92px, 12vw, 150px) 0; }
.au-lead {
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  line-height: 1.4;
  font-weight: 300;
  color: var(--heading);
  max-width: 980px;
  letter-spacing: -0.005em;
}
.au-lead strong {
  font-weight: 500;
  color: var(--heading);
  box-shadow: inset 0 -0.42em 0 rgba(124, 191, 69, 0.30);
}
.au-cols {
  margin-top: 52px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  max-width: 980px;
}
.au-cols p { color: var(--text); margin-top: 0; }

/* Metrics band — single dark statement strip ---------------------- */
.au-metrics {
  color: #fff;
  padding: clamp(72px, 9vw, 116px) 0;
  background:
    radial-gradient(110% 150% at 0% 0%, rgba(124, 191, 69, 0.14), transparent 52%),
    linear-gradient(135deg, #2f3a4a, #1b2330);
}
.au-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.au-metric {
  text-align: center;
  padding: 8px clamp(14px, 3vw, 40px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.au-metric:first-child { border-left: none; }
.au-metric-num {
  display: block;
  font-size: clamp(2.6rem, 5vw, 3.9rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.au-metric-label {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}

/* Track record — numbered case rows ------------------------------- */
.au-projects { padding: clamp(92px, 12vw, 150px) 0; }
.au-project {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding: 42px 0;
  border-top: 1px solid var(--border);
}
.au-project:last-child { border-bottom: 1px solid var(--border); }
.au-project::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.au-project:hover::after { width: 100%; }
.au-project-index {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}
.au-project:hover .au-project-index { color: var(--heading); }
.au-project-cat {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 12px;
}
.au-project-title {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 400;
  color: var(--heading);
  margin-bottom: 12px;
}
.au-project-desc { color: var(--text); max-width: 58ch; font-size: 1rem; }
.au-project-result { text-align: right; white-space: nowrap; }
.au-project-result b {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 500;
  color: var(--heading);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.au-project-result span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Clients — monochrome logo wall ---------------------------------- */
.au-clients { padding: clamp(82px, 11vw, 132px) 0; background: var(--bg-alt); }
.au-logos {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 52px) clamp(28px, 5vw, 72px);
  align-items: center;
}
.au-logo { display: flex; align-items: center; justify-content: center; height: 52px; }
.au-logo img {
  max-height: 38px;
  width: auto;
  filter: brightness(0) opacity(0.42);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.au-logo:hover img { filter: brightness(0) opacity(0.82); transform: translateY(-2px); }
/* Text wordmarks (used until real partner logos are supplied) */
.au-logo--word {
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  opacity: 0.7;
  white-space: nowrap;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.au-logo--word:hover { color: var(--heading); opacity: 1; transform: translateY(-2px); }
.au-clients-note { margin-top: 40px; font-size: 0.85rem; color: var(--muted); }
[data-theme="dark"] .au-logo img { filter: brightness(0) invert(1) opacity(0.5); }
[data-theme="dark"] .au-logo:hover img { filter: brightness(0) invert(1) opacity(0.9); }

/* Customer-quote placeholder (content supplied later) */
.au-quote-placeholder {
  margin-top: clamp(44px, 6vw, 68px);
  max-width: 760px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.au-quote-placeholder blockquote {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--heading);
}
.au-quote-placeholder figcaption {
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Werte — sticky head + principle list ---------------------------- */
.au-values { padding: clamp(92px, 12vw, 150px) 0; background: var(--bg-alt); }
.au-values-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.au-values-head { position: sticky; top: 108px; }
.au-values-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.au-values-head p { font-size: 1.05rem; max-width: 38ch; }
.au-values-list { list-style: none; }
.au-value { padding: 30px 0; border-top: 1px solid var(--border); }
.au-value:first-child { padding-top: 0; border-top: none; }
.au-value h3 {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 12px;
}
.au-value h3::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.au-value p { color: var(--text); max-width: 56ch; }

/* Ansatz — three-step process ------------------------------------- */
.au-approach { padding: clamp(92px, 12vw, 150px) 0; }
.au-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 60px);
}
.au-step { position: relative; padding-top: 30px; border-top: 2px solid var(--border); }
.au-step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 52px;
  height: 2px;
  background: var(--accent);
}
.au-step-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 16px;
}
.au-step h3 { font-size: 1.3rem; font-weight: 500; color: var(--heading); margin-bottom: 12px; }
.au-step p { color: var(--text); font-size: 1rem; }

/* Founder — personal quote ---------------------------------------- */
.au-founder { padding: clamp(82px, 11vw, 132px) 0; background: var(--bg-alt); }
.au-founder-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.au-founder-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}
.au-founder-quote {
  border-left: 3px solid var(--accent);
  padding-left: clamp(22px, 3vw, 40px);
}
.au-founder-quote blockquote {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 300;
  line-height: 1.42;
  color: var(--heading);
  letter-spacing: -0.005em;
}
.au-founder-quote figcaption { margin-top: 26px; }
.au-founder-name { display: block; font-weight: 500; color: var(--heading); font-size: 1.05rem; }
.au-founder-role {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 4px;
}

/* Über-uns responsive --------------------------------------------- */
@media (max-width: 820px) {
  .au-cols { grid-template-columns: 1fr; gap: 24px; }
  .au-values-inner { grid-template-columns: 1fr; gap: 40px; }
  .au-values-head { position: static; }
  .au-steps { grid-template-columns: 1fr; gap: 32px; }
  .au-founder-inner { grid-template-columns: 1fr; gap: 30px; }
  .au-founder-photo { max-width: 240px; }
  .au-metrics-grid { grid-template-columns: 1fr 1fr; gap: 44px 24px; }
  .au-metric { border-left: none; }
  .au-project {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 34px 0;
  }
  .au-project-index { font-size: 1.1rem; }
  .au-project-result { text-align: left; margin-top: 6px; }
  .au-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .au-logos { grid-template-columns: repeat(2, 1fr); }
}

/* Über-uns hero entrance ------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .au-hero-inner > * { animation: heroIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .au-hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
  .au-hero-inner > *:nth-child(2) { animation-delay: 0.16s; }
  .au-hero-inner > *:nth-child(3) { animation-delay: 0.27s; }
  .au-hero-inner > *:nth-child(4) { animation-delay: 0.38s; }
}

/* ── CTA section (Sprechen Sie mit uns) ─────────── */
.cta-section {
  text-align: center;
  background: url("media/images/Contact.webp") no-repeat center center;
  background-size: cover;
  padding: 140px 0;
}
.cta-heading {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.85);
}
.cta-section p {
  color: var(--heading);
  font-size: 1.15rem;
  margin-bottom: 34px;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
}

/* ── KI page – stats strip ──────────────────────── */
.stats-strip { background: var(--bg); padding: 104px 0 28px; }
.stats-inner {
  width: 90%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 56px;
}
.stat {
  flex: 1;
  text-align: center;
  background: #1b1b1b;
  border-radius: 18px;
  padding: 40px 10px;
}
.stat-num {
  display: block;
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ffffff;
}

/* ── KI page – content blocks ───────────────────── */
.ki-block { padding: 76px 0; }
/* Gentle alternating tint for visual rhythm (hero is the 1st section,
   so odd-of-type lands on the 2nd & 4th content blocks). */
.ki-block:nth-of-type(odd) { background: var(--bg-alt); }
.ki-text { margin: 0 auto; }
.ki-text h2 {
  position: relative;
  margin-bottom: 16px;
  padding-top: 22px;
}
.ki-text h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Kontakt form (placeholder) ─────────────────── */
.contact-banner {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("media/images/Contact.webp") no-repeat center center;
  background-size: cover;
}
.contact-banner h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.9);
}

.contact-form {
  width: 92%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 0;
}
.form-group { margin-bottom: 28px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 18px;
}
.form-note a { color: var(--accent-hi); }

/* Direct contact details (above the form) */
.contact-intro { margin-bottom: 44px; }
.contact-intro > p { max-width: 60ch; margin-bottom: 26px; }
.contact-details {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 56px;
  margin: 0;
}
.contact-details li { display: flex; flex-direction: column; gap: 5px; }
.contact-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.contact-details a { color: var(--heading); }
.contact-details a:hover { color: var(--accent-hi); }

/* ── 404 / error page ───────────────────────────── */
.error-page { text-align: center; padding: clamp(96px, 16vh, 200px) 0; }
.error-code {
  display: block;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.error-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 16px 0 14px; color: var(--heading); }
.error-page p { max-width: 48ch; margin: 0 auto 30px; }

/* ── Impressum ──────────────────────────────────── */
.legal {
  background: var(--bg-alt);
  padding: 104px 0 156px;
}
.legal h1 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 500;
  margin-bottom: 38px;
}
.legal p { color: var(--text); margin-bottom: 20px; }

/* ── Footer ─────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 52px 0;
  text-align: center;
}
footer ul {
  list-style: none;
  display: flex;
  gap: 44px;
  justify-content: center;
}
footer ul a { color: var(--muted); font-size: 0.95rem; font-weight: 400; }
footer ul a:hover { color: var(--accent); }

/* ── Subtle interactions & effects ──────────────── */
.btn {
  box-shadow: 0 3px 12px rgba(124, 191, 69, 0.28);
}
.btn:hover {
  box-shadow: 0 7px 20px rgba(124, 191, 69, 0.38);
}

.nav-cta { box-shadow: none; }

/* Image hover zoom */
.feature-img,
.ansatz-photo {
  overflow: hidden;
  border-radius: 2px;
}
.feature-img img,
.ansatz-photo img {
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.feature-img:hover img,
.ansatz-photo:hover img {
  transform: scale(1.045);
}

/* Topic cards */
.topic {
  transition: transform 0.25s ease;
}
.topic:hover { transform: translateY(-4px); }
.topic-icon {
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.topic:hover .topic-icon { transform: scale(1.12); }
.topic h3 { transition: color 0.2s ease; }
.topic:hover h3 { color: var(--accent); }

/* Stat cards */
.stat {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

/* Nav link underline */
header ul a:not(.nav-cta) {
  position: relative;
}
header ul a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
header ul a:not(.nav-cta):hover::after,
header ul a.nav-active:not(.nav-cta)::after { transform: scaleX(1); }

/* Form fields */
.form-group input,
.form-group textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(124, 191, 69, 0.16);
}

/* Footer links */
footer ul a { position: relative; transition: color 0.2s ease; }

/* ── Motion: hero entrance + scroll reveal ──────── */
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-inner > * {
    animation: heroIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .hero .hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
  .hero .hero-inner > *:nth-child(2) { animation-delay: 0.18s; }
  .hero .hero-inner > *:nth-child(3) { animation-delay: 0.31s; }

  @keyframes heroIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 820px) {
  .feature,
  .ansatz {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ansatz-photo { max-width: 360px; }
  .topics { grid-template-columns: 1fr; max-width: 460px; row-gap: 36px; }
  .topic:nth-child(odd),
  .topic:nth-child(even) { grid-column: 1; }
}

@media (max-width: 600px) {
  .nav-inner { height: 72px; }
  .nav-logo { font-size: 2rem; }
  .nav-logo img { height: 34px; }
  header ul { gap: 18px; }
  header ul a { font-size: 0.95rem; }
  .hero { min-height: 460px; }
  .hero-ki { min-height: 400px; }
  .stats-inner { flex-direction: column; gap: 16px; }
  .stat { padding: 26px 6px; }
}

/* ── Theme toggle button ────────────────────────── */
.theme-toggle-item { display: flex; align-items: center; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: #4a4a4a;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover {
  color: var(--accent);
  background: rgba(124, 191, 69, 0.12);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-icon { display: block; width: 22px; height: 22px; }
/* Line-icons are solid black; recolor per theme with a filter.
   invert(29%) → ~#4a4a4a grey for the light nav; invert(85%) → light grey for the dark nav. */
.theme-icon-moon { filter: invert(29%); }
.theme-icon-sun  { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun  { display: block; filter: invert(85%); }

/* ── Night mode ─────────────────────────────────── */
[data-theme="dark"] {
  --bg:        #14181f;
  --bg-alt:    #1b212b;
  --surface:   #1b212b;
  --border:    #2c3440;
  --accent:    #7cbf45;
  --accent-hi: #8fd35a;
  --heading:   #e8ecf1;
  --text:      #c4ccd6;
  --muted:     #9aa4b1;
  --focus:     #e8ecf1;
}

[data-theme="dark"] body > header {
  background: var(--surface);
  border-bottom-color: var(--border);
}
[data-theme="dark"] header ul a { color: var(--text); }
[data-theme="dark"] header ul a:hover,
[data-theme="dark"] header ul a.nav-active { color: var(--accent); }
[data-theme="dark"] .theme-toggle { color: var(--text); }

/* Elevated dark cards stay distinct from the page background */
[data-theme="dark"] .stat { background: #222a35; }

/* Form fields */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: #1b212b;
  border-color: var(--border);
  color: var(--text);
}

/* Photo-backed sections keep their light-photo treatment in both themes */
[data-theme="dark"] .cta-heading,
[data-theme="dark"] .cta-section p,
[data-theme="dark"] .contact-banner h1 {
  color: #2f3a4a;
}

/* Smooth backdrop transition when switching themes */
body, header { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }

/* ════ Wissen — knowledge hub & articles ════════════════════════
   Shares the site tokens; its own editorial/content layout.       */

/* Hub header ------------------------------------------------------ */
.wi-header { padding: clamp(72px, 10vw, 116px) 0 clamp(28px, 4vw, 44px); }
.wi-header h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 20ch;
}
.wi-header-intro { font-size: 1.08rem; color: var(--text); max-width: 60ch; }

/* Category filters ------------------------------------------------ */
.wi-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.wi-filter {
  font: inherit;
  cursor: pointer;
  padding: 7px 17px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.wi-filter:hover { border-color: var(--accent); }
.wi-filter[aria-pressed="true"] {
  background: #2f3a4a;
  border-color: #2f3a4a;
  color: #fff;
}

/* Category label (green dot) -------------------------------------- */
.wi-cat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.wi-cat::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Article list — editorial rows with compact thumbnails ----------- */
.wi-list-section { padding: clamp(8px, 2vw, 20px) 0 clamp(72px, 10vw, 120px); }
.wi-list { list-style: none; }
.wi-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(116px, 15vw, 168px) 1fr auto;
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-top: 1px solid var(--border);
}
.wi-list .wi-card:last-child { border-bottom: 1px solid var(--border); }
.wi-card[hidden] { display: none; }
.wi-card:focus-within { outline: 2px solid var(--focus); outline-offset: 4px; }
/* Accent line wipes in on hover — mirrors the Track-record rows */
.wi-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wi-card:hover::after { width: 100%; }

/* Compact thumbnail — visual rhythm without dominating */
.wi-card-thumb {
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.wi-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wi-card:hover .wi-card-thumb img { transform: scale(1.05); }

.wi-card-main { min-width: 0; }
.wi-card-title {
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--heading);
  margin: 11px 0 9px;
}
.wi-card-title a { color: inherit; }
.wi-card-link::after { content: ""; position: absolute; inset: 0; }
.wi-card-link:focus-visible { outline: none; }
.wi-card-excerpt { color: var(--text); font-size: 1rem; line-height: 1.65; max-width: 60ch; }
.wi-card-meta {
  text-align: right;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Featured — slightly larger image & headline for hierarchy */
.wi-card--featured { grid-template-columns: clamp(180px, 26vw, 300px) 1fr auto; }
.wi-card--featured .wi-card-thumb { aspect-ratio: 16 / 10; }
.wi-card--featured .wi-card-title { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }

/* ── Article (single post) ──────────────────────────────────────── */
.wi-article { padding-bottom: clamp(20px, 3vw, 30px); }
.wi-breadcrumb { padding-top: 26px; }
.wi-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 0.85rem; }
.wi-breadcrumb a { color: var(--muted); }
.wi-breadcrumb a:hover { color: var(--heading); }
.wi-breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 9px; color: var(--muted); opacity: 0.6; }
.wi-breadcrumb [aria-current="page"] { color: var(--heading); }

.wi-article-head { max-width: 760px; margin: 0 auto; text-align: center; padding: 14px 0 26px; }
.wi-article-head .wi-cat { justify-content: center; margin-bottom: 14px; }
.wi-article-head h1 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.012em;
  max-width: 24ch;
  margin: 0 auto 16px;
}
.wi-article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.wi-article-meta > * { display: inline-flex; align-items: center; gap: 16px; }
.wi-article-meta li { list-style: none; }
.wi-article-meta ul { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; align-items: center; }
.wi-article-meta li:not(:last-child)::after { content: "·"; margin-left: 16px; color: var(--muted); }

.wi-article-hero { max-width: 980px; margin: 0 auto clamp(30px, 4vw, 44px); }
.wi-article-hero img { width: 100%; aspect-ratio: 21 / 9; max-height: 400px; object-fit: cover; border-radius: 14px; }
.wi-article-hero figcaption { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

/* Prose ----------------------------------------------------------- */
.wi-prose { max-width: 720px; margin: 0 auto; }
.wi-prose p { color: var(--text); font-size: 1.08rem; line-height: 1.78; }
.wi-prose p + p { margin-top: 22px; }
.wi-prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 500; color: var(--heading); margin: 50px 0 16px; }
.wi-prose h3 { font-size: 1.25rem; font-weight: 500; color: var(--heading); margin: 34px 0 12px; }
.wi-prose ul, .wi-prose ol { margin: 20px 0; padding-left: 26px; color: var(--text); }
.wi-prose li { margin-top: 9px; line-height: 1.7; }
.wi-prose li::marker { color: var(--accent); }
.wi-prose strong { color: var(--heading); font-weight: 500; }
.wi-prose a {
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.wi-prose blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--heading);
}
.wi-callout {
  margin: 36px 0;
  padding: 26px 28px;
  background: var(--bg-alt);
  border-radius: 12px;
}
.wi-callout p { margin: 0; }
.wi-callout strong { color: var(--heading); }

/* Author card ----------------------------------------------------- */
.wi-author {
  max-width: 720px;
  margin: clamp(48px, 6vw, 66px) auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: center;
}
.wi-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.wi-author-name { font-weight: 500; color: var(--heading); }
.wi-author-bio { color: var(--text); font-size: 0.95rem; margin-top: 4px; }

/* Related --------------------------------------------------------- */
.wi-related { background: var(--bg-alt); padding: clamp(72px, 9vw, 112px) 0; margin-top: clamp(72px, 9vw, 112px); }
.wi-related h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 20px; }

/* Wissen responsive ----------------------------------------------- */
@media (max-width: 760px) {
  .wi-card,
  .wi-card--featured {
    grid-template-columns: 100px 1fr;
    gap: 18px clamp(16px, 3vw, 24px);
    align-items: start;
  }
  /* Thumb spans both text rows; meta tucks under the body */
  .wi-card-thumb,
  .wi-card--featured .wi-card-thumb {
    grid-row: 1 / span 2;
    aspect-ratio: 1 / 1;
  }
  .wi-card-meta {
    text-align: left;
    flex-direction: row;
    gap: 14px;
    margin-top: 12px;
  }
}
@media (max-width: 480px) {
  .wi-card,
  .wi-card--featured {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .wi-card-thumb,
  .wi-card--featured .wi-card-thumb {
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }
}

/* ════ Mobile navigation (hamburger) ════════════════════════════ */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  body > header ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.10);
    padding: 8px 6% 20px;
    display: none;
  }
  body > header ul.is-open { display: flex; }
  body > header ul li { width: 100%; }
  body > header ul li a:not(.nav-cta) { display: block; padding: 14px 0; width: 100%; }
  body > header ul a:not(.nav-cta)::after { display: none; }
  .nav-cta { display: inline-block; margin-top: 12px; }
  .theme-toggle-item { margin-top: 10px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
