@import url("assets/fonts/fonts.css");

/* =========================================================================
   sas24.de - Ralf Schwarz, Prozess- und IT-Beratung
   Ein Akzent: Signalgruen. Basis Tinte und kuehles Off-White.
   Dunkler Hero-Bereich (Marke "Schwarz"), heller Body.
   Hell und dunkel automatisch ueber prefers-color-scheme.
   Radius: Karten 14px, Eingaben 10px, Buttons/Tags voll rund.
   ========================================================================= */
:root {
  --paper: #fbfbf9;
  --surface: #ffffff;
  --sand: #eef1ee;
  --ink: #101312;
  --text: #2b302e;
  --muted: #5a625e;
  --line: #e2e6e3;

  --accent: #067a55;          /* text- und linksicher auf hell */
  --accent-strong: #04563c;   /* hover */
  --accent-bright: #05f2a0;   /* Glanz, nur auf dunklem Grund */
  --accent-soft: #e3f7ef;
  --on-accent: #04231a;

  /* Hero und dunkle Baender, unabhaengig vom Theme */
  --nightground: #0b0d0c;
  --night-ink: #f5f7f6;
  --night-muted: #97a19c;
  --night-line: #232826;
  --night-surface: #141817;

  --shadow-sm: 0 1px 2px rgba(16, 19, 18, .06), 0 6px 18px rgba(16, 19, 18, .05);
  --shadow-md: 0 2px 6px rgba(16, 19, 18, .07), 0 20px 45px rgba(16, 19, 18, .09);

  --maxw: 1140px;
  --gutter: clamp(1.15rem, 4vw, 3rem);

  --radius: 14px;
  --radius-input: 10px;

  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-text: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.10rem);
  --step-1:  clamp(1.22rem, 1.14rem + 0.38vw, 1.45rem);
  --step-2:  clamp(1.50rem, 1.34rem + 0.75vw, 2.00rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.35vw, 2.80rem);
  --step-4:  clamp(2.10rem, 1.65rem + 2.05vw, 3.30rem);
  --step-5:  clamp(2.55rem, 1.60rem + 4.10vw, 4.60rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e100f;
    --surface: #161917;
    --sand: #131614;
    --ink: #f1f3f2;
    --text: #dfe3e1;
    --muted: #99a29d;
    --line: #272b29;

    --accent: #34e5a8;
    --accent-strong: #64eebf;
    --accent-bright: #05f2a0;
    --accent-soft: #10281f;
    --on-accent: #04231a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .35);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 22px 48px rgba(0, 0, 0, .5);
  }
}

/* =========================================================================
   Reset
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--f-text);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

strong { font-weight: 700; color: var(--ink); }
::selection { background: var(--accent); color: var(--on-accent); }

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

/* =========================================================================
   Layout helpers
   ========================================================================= */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--sand { background: var(--sand); }
.section--night {
  background: var(--nightground);
  color: var(--night-ink);
}
.section--night :is(h1, h2, h3, h4) { color: var(--night-ink); }
.section--night p { color: var(--night-muted); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: var(--on-accent); }

/* Mono-Label statt klassischer Eyebrow */
.tag-label {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.tag-label::before { content: "//"; opacity: 0.6; }
.section--night .tag-label { color: var(--accent-bright); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text);
  max-width: 46ch;
}
.section--night .lede { color: var(--night-ink); }

.section__head {
  max-width: 56ch;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  display: grid;
  gap: 1rem;
}
.section__head h2 { font-size: var(--step-3); }

/* =========================================================================
   Buttons und Links
   ========================================================================= */
.btn {
  --_bg: var(--accent);
  --_fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--_bg);
  color: var(--_fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--accent);
}
.section--night .btn:not(.btn--ghost),
.hero .btn:not(.btn--ghost) { --_bg: var(--accent-bright); --_fg: #04231a; }
.section--night .btn:not(.btn--ghost):hover,
.hero .btn:not(.btn--ghost):hover { background: #fff; color: #04231a; }
.section--night .btn--ghost,
.hero .btn--ghost { --_bg: transparent; --_fg: var(--night-ink); border-color: rgba(245, 247, 246, .3); }
.section--night .btn--ghost:hover,
.hero .btn--ghost:hover { background: transparent; color: #fff; border-color: #fff; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-display);
  font-weight: 600;
  text-decoration: none;
}
.textlink svg { width: 1em; height: 1em; transition: transform .18s ease; }
.textlink:hover svg { transform: translateX(3px); }
.section--night .textlink { color: var(--accent-bright); }
@media (prefers-reduced-motion: reduce) {
  .textlink:hover svg { transform: none; }
}

/* =========================================================================
   Header und Navigation
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
}
@supports not (backdrop-filter: blur(4px)) {
  .site-header { background: var(--paper); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__mark { width: 26px; height: 26px; flex: none; color: var(--accent); }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name span:last-child {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.62em;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.1vw, 1.7rem);
  list-style: none;
  padding: 0;
}
.nav__menu a {
  text-decoration: none;
  color: var(--text);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
  position: relative;
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a[aria-current="page"] { color: var(--ink); }
.nav__menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}
.nav__menu .btn { padding: 0.6rem 1.15rem; font-size: var(--step--1); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav__menu[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav__menu a { display: block; padding: 1rem 0; font-size: var(--step-0); }
  .nav__menu a[aria-current="page"]::after { display: none; }
  .nav__menu a[aria-current="page"] { color: var(--accent); }
  .nav__menu .btn { justify-content: center; padding: 0.9rem 1.15rem; font-size: var(--step-0); }
}

/* =========================================================================
   Hero (dunkel)
   ========================================================================= */
.hero {
  background: var(--nightground);
  color: var(--night-ink);
  padding-block: clamp(2.75rem, 7vw, 5rem) clamp(3rem, 8vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto -10%;
  height: 70vh;
  background: radial-gradient(60% 60% at 30% 30%, color-mix(in srgb, var(--accent-bright) 20%, transparent), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(0, 300px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__content { display: grid; gap: clamp(1.25rem, 3vw, 1.9rem); max-width: 38rem; }
.hero__title {
  font-size: var(--step-5);
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--night-ink);
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--accent-bright); }
.hero__content .lede { max-width: 34rem; color: var(--night-ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__figure {
  position: relative;
  width: 100%;
  max-width: 300px;
  justify-self: end;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}
.hero__figure-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) + 6px);
  background: var(--night-surface);
  border: 1px solid var(--night-line);
  overflow: hidden;
}
.hero__figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-bright) 30%, transparent),
              inset 0 -80px 90px -60px color-mix(in srgb, var(--accent-bright) 45%, transparent);
}
.hero__figure-frame img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 99%;
  width: auto;
  max-width: none;
  filter: grayscale(0.15) drop-shadow(0 18px 34px rgba(0, 0, 0, .5));
}
.hero__cap {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--night-muted);
}
.hero__cap svg { width: 1.05em; height: 1.05em; flex: none; color: var(--accent-bright); margin-top: 0.15em; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: clamp(1.75rem, 5vw, 2.75rem); }
  .hero__content, .hero__content .lede { max-width: 48ch; }
  .hero__figure { order: -1; justify-self: start; max-width: 240px; }
}
@media (max-width: 520px) {
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* =========================================================================
   Triade: Buero und Betrieb verbunden, KI als neuer Ast.
   Das Signaturelement der Seite.
   ========================================================================= */
.triad { display: grid; gap: 0; max-width: 60rem; margin-inline: auto; }
.triad__poles {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
}
.triad__pole { display: grid; gap: 0.3rem; }
.triad__pole--r { text-align: right; }
.triad__pole h3 { font-size: var(--step-1); color: var(--ink); }
.section--night .triad__pole h3 { color: var(--night-ink); }
.triad__pole p { color: var(--muted); font-size: var(--step--1); max-width: 30ch; }
.triad__pole--r p { margin-left: auto; }
.section--night .triad__pole p { color: var(--night-muted); }

.triad__hub { display: grid; justify-items: center; }
.triad__bar {
  height: 2px;
  width: 100%;
  background: currentColor;
  color: var(--accent);
  transform-origin: center;
  animation: triad-grow .7s cubic-bezier(.16,1,.3,1) both;
}
.section--night .triad__bar { color: var(--accent-bright); }
.triad__node {
  width: 3rem; height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  margin-block: -1.5rem 0.4rem;
  position: relative;
  z-index: 1;
}
.section--night .triad__node { border-color: var(--accent-bright); color: var(--accent-bright); background: var(--nightground); }
.triad__node svg { width: 1.4rem; height: 1.4rem; }

.triad__branch {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  margin-top: -0.6rem;
}
.triad__stem {
  width: 2px;
  height: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--accent);
  transform-origin: top;
  animation: triad-drop .5s .55s cubic-bezier(.16,1,.3,1) both;
}
.section--night .triad__stem { background: var(--accent-bright); }
.triad__k {
  text-align: center;
  display: grid;
  gap: 0.3rem;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  max-width: 34ch;
}
.section--night .triad__k { border-color: color-mix(in srgb, var(--accent-bright) 55%, transparent); }
.triad__k strong { font-family: var(--f-display); color: var(--ink); font-size: var(--step-1); }
.section--night .triad__k strong { color: var(--night-ink); }
.triad__k span { color: var(--muted); font-size: var(--step--1); }
.section--night .triad__k span { color: var(--night-muted); }

@keyframes triad-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes triad-drop { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .triad__bar, .triad__stem { animation: none; }
}
@media (max-width: 680px) {
  .triad__poles { grid-template-columns: 1fr; gap: 1.4rem; }
  .triad__pole--r, .triad__pole--r p { text-align: left; margin-left: 0; }
  .triad__pole p { max-width: none; }
  .triad__hub { display: none; }
  .triad__branch { align-items: start; justify-items: start; }
  .triad__stem { display: none; }
  .triad { gap: 1.4rem; }
}

/* =========================================================================
   Stat row
   ========================================================================= */
.statrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.statrow > div {
  background: var(--surface);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  display: grid;
  gap: 0.35rem;
}
.statrow dt {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.statrow dd { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 720px) {
  .statrow { grid-template-columns: 1fr; }
}

/* =========================================================================
   Intro split
   ========================================================================= */
.introsplit {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.introsplit p + p { margin-top: 1rem; }
.introsplit__aside {
  border-left: 2px solid var(--accent);
  padding-left: 1.4rem;
  display: grid;
  gap: 1.1rem;
}
.introsplit__aside li {
  list-style: none;
  color: var(--muted);
  font-size: var(--step--1);
}
.introsplit__aside li strong { display: block; color: var(--ink); font-size: var(--step-0); font-family: var(--f-display); }
@media (max-width: 820px) {
  .introsplit { grid-template-columns: 1fr; }
  .introsplit__aside { border-left: 0; border-top: 2px solid var(--accent); padding-left: 0; padding-top: 1.4rem; }
}

/* =========================================================================
   Pillars
   ========================================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.2vw, 2rem);
  display: grid;
  gap: 0.7rem;
  align-content: start;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pillar:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.pillar__icon {
  width: 2.6rem; height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.pillar__icon svg { width: 1.35rem; height: 1.35rem; }
.pillar h3 { font-size: var(--step-1); }
.pillar p { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* =========================================================================
   Divided rows
   ========================================================================= */
.rows { border-top: 1px solid var(--line); }
.row {
  border-bottom: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
}
.row h3 { font-size: var(--step-2); }
.row p { color: var(--muted); }
.row .textlink { align-self: center; }
@media (max-width: 780px) {
  .row { grid-template-columns: 1fr; gap: 0.6rem; }
  .row .textlink { margin-top: 0.4rem; }
}

/* =========================================================================
   Timeline
   ========================================================================= */
.timeline { display: grid; gap: 0; }
.tl-item {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.3rem, 3vw, 1.9rem) 0;
  border-top: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-when {
  font-family: var(--f-mono);
  font-weight: 500;
  color: var(--accent);
  font-size: var(--step--1);
}
.tl-what h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.tl-what p { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 640px) {
  .tl-item { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* =========================================================================
   Feature band
   ========================================================================= */
.band {
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.band__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 260px;
}
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.band__body { display: grid; gap: 1.1rem; }
.band__body h2 { font-size: var(--step-3); }
.band__list { display: grid; gap: 0.7rem; padding: 0; margin-top: 0.4rem; }
.band__list li {
  list-style: none;
  padding-left: 1.7rem;
  position: relative;
  color: var(--muted);
}
.band__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.7rem; height: 0.7rem;
  border-radius: 3px;
  background: var(--accent);
}
@media (max-width: 820px) {
  .band { grid-template-columns: 1fr; }
  .band--flip .band__media { order: -1; }
}

/* =========================================================================
   KI-Block (Startseite und Seite)
   ========================================================================= */
.kicard {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
  border: 1px solid var(--night-line);
  background: var(--night-surface);
  color: var(--night-ink);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.kicard :is(h2, h3) { color: var(--night-ink); }
.kicard p { color: var(--night-muted); }
.kicard__body { display: grid; gap: 1rem; }
.kicard__body h2 { font-size: var(--step-3); }
.kicard__prompt {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  color: var(--night-ink);
  background: #0c0f0e;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-input);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.55rem;
}
.kicard__prompt span { color: var(--accent-bright); }
.kicard__prompt span::before { content: "› "; }
.kicard__list { display: grid; gap: 0.7rem; padding: 0; margin: 0; list-style: none; }
.kicard__list li { padding-left: 1.6rem; position: relative; color: var(--night-muted); font-size: var(--step--1); }
.kicard__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 0.6rem; height: 0.6rem; border-radius: 2px;
  background: var(--accent-bright);
}
@media (max-width: 780px) {
  .kicard { grid-template-columns: 1fr; }
}

/* =========================================================================
   Erfahrung: verdichtete Faelle
   ========================================================================= */
.proof {
  border-top: 1px solid var(--line);
  padding-block: clamp(1.6rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}
.proof:last-of-type { border-bottom: 1px solid var(--line); }
.proof__client {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--ink);
  font-size: var(--step-0);
}
.proof__body { display: grid; gap: 0.5rem; }
.proof__body h3 { font-size: var(--step-1); }
.proof__body p { color: var(--muted); max-width: 60ch; }
@media (max-width: 640px) {
  .proof { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* Tags / Werkzeugkasten */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}
.tags li {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  padding: 0;
  list-style: none;
}
.grid-list li { border-left: 2px solid var(--accent); padding-left: 1.1rem; }
.grid-list strong { display: block; font-family: var(--f-display); color: var(--ink); }
.grid-list span { color: var(--muted); font-size: var(--step--1); }

/* =========================================================================
   Contact / Formular
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}
.contact-aside { display: grid; gap: 1.4rem; align-content: start; }
.contact-aside dl { display: grid; gap: 1.1rem; }
.contact-aside dt {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.contact-aside dd a { text-decoration: none; font-weight: 600; }
.contact-aside dd a:hover { text-decoration: underline; }

.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--f-display); font-weight: 500; font-size: var(--step--1); color: var(--ink); }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-input);
  padding: 0.8rem 0.95rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
}
.field--check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--accent); }
.field--check label { font-weight: 400; font-family: var(--f-text); color: var(--muted); font-size: var(--step--1); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c0392b; }
.field__error { color: #c0392b; font-size: var(--step--1); }
.field--check .field__error { grid-column: 1 / -1; }
@media (prefers-color-scheme: dark) {
  .field.has-error input,
  .field.has-error select,
  .field.has-error textarea { border-color: #ff8a7a; }
  .field__error { color: #ff8a7a; }
}
.form__note { color: var(--muted); font-size: var(--step--1); }

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ein Koeder */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.form__status {
  border-radius: var(--radius-input);
  padding: 1rem 1.15rem;
  font-size: var(--step--1);
  display: none;
}
.form__status[data-kind="ok"] { display: block; background: var(--accent-soft); color: var(--accent-strong); }
.form__status[data-kind="err"] { display: block; background: #fbe9e7; color: #b23122; }
@media (prefers-color-scheme: dark) {
  .form__status[data-kind="err"] { background: #2a1714; color: #ff9c8c; }
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* =========================================================================
   CTA
   ========================================================================= */
.cta-final {
  text-align: center;
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  max-width: 46ch;
  margin-inline: auto;
}
.cta-final p { max-width: 42ch; }
.cta-final h2 { font-size: var(--step-4); }

/* =========================================================================
   Interior-Seiten
   ========================================================================= */
.page-hero { padding-block: clamp(1.8rem, 4vw, 2.9rem) clamp(1.2rem, 3.5vw, 2.2rem); }
.page-hero__inner { display: grid; gap: 1.1rem; max-width: 62ch; }
.page-hero h1 { font-size: var(--step-4); }
.page-hero .lede { max-width: 56ch; }

.breadcrumbs {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  color: var(--muted);
  padding-top: 1.1rem;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--text); }

.service {
  border-top: 1px solid var(--line);
  padding-block: clamp(2rem, 5vw, 3.2rem);
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  scroll-margin-top: 90px;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__icon { color: var(--accent); }
.service__icon svg { width: 2.1rem; height: 2.1rem; }
.service h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.service > div > p { color: var(--muted); max-width: 62ch; }
.service ul { margin-top: 1rem; display: grid; gap: 0.5rem; padding-left: 1.2rem; max-width: 62ch; }
.service ul + p { margin-top: 1.1rem; }
.service li { color: var(--text); }
.service li::marker { color: var(--accent); }
@media (max-width: 640px) {
  .service { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* Ablauf-Schritte (echte Reihenfolge, daher nummeriert) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  counter-reset: step;
  padding: 0;
  list-style: none;
}
.steps li { display: grid; gap: 0.5rem; align-content: start; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--accent);
}
.steps strong { font-family: var(--f-display); color: var(--ink); font-size: var(--step-1); }
.steps p { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.faq summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--f-display);
  font-size: 1.4em;
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin-top: 0.85rem; color: var(--muted); max-width: 66ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Werte */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.value { border-left: 2px solid var(--accent); padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.value h3 { font-size: var(--step-1); }
.value p { color: var(--muted); font-size: var(--step--1); }

/* Portrait-Feature */
.portrait-feature {
  display: grid;
  grid-template-columns: minmax(0, 240px) 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.portrait-feature img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; max-width: 240px; }
.portrait-feature p + p { margin-top: 1rem; }
@media (max-width: 760px) {
  .portrait-feature { grid-template-columns: 1fr; }
  .portrait-feature img { max-width: 220px; }
}

/* Prose */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-top: 0.4rem; }
.prose li::marker { color: var(--accent); }
.prose address { font-style: normal; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--nightground);
  color: #b7bfbb;
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}
.site-footer :is(h2, h3, h4, strong) { color: #f2f4f3; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(1.6rem, 5vw, 3.5rem);
}
.footer-grid a { color: #b7bfbb; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: grid; gap: 0.8rem; max-width: 36ch; }
.footer-brand .brand { color: #f2f4f3; }
.footer-brand .brand__name span:last-child { color: #8b938f; }
.footer-brand p { font-size: var(--step--1); color: #8b938f; }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: #8b938f;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-bottom {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 244, 243, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: var(--step--1);
  color: #8b938f;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Reveal
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pillar:hover, .btn:active { transform: none; }
}

/* Utilities */
.u-mt-2 { margin-top: 1rem; }
.u-mt-4 { margin-top: 2.5rem; }
.u-center { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
