/* =========================================================
   vanheek.biz — "Signal"
   Dunkles Editorial-Layout mit hellem Alternativ-Theme.
   Nur systemeigene Schriften, keine externen Ressourcen.
   ========================================================= */

:root {
  color-scheme: dark;

  --bg:          #090b10;
  --bg-soft:     #0d1017;
  --panel:       rgba(255, 255, 255, .038);
  --panel-solid: #11151d;
  --line:        rgba(255, 255, 255, .10);
  --line-soft:   rgba(255, 255, 255, .06);
  --line-strong: rgba(255, 255, 255, .20);

  --text:   #eceff6;
  --muted:  #98a1b3;
  --dim:    #6d768a;

  --accent:      #e3b264;
  --accent-soft: rgba(227, 178, 100, .14);
  --accent-line: rgba(227, 178, 100, .38);
  --on-accent:   #14100a;

  --glow-warm: rgba(227, 178, 100, .16);
  --glow-cool: rgba(96, 140, 255, .14);

  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .85);

  --sans: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "SF Mono", Menlo, Consolas, monospace;

  --shell: 1180px;
  --gutter: clamp(1.15rem, 5vw, 4.5rem);
  --radius: 20px;
  --radius-sm: 12px;
}

[data-theme="light"] {
  color-scheme: light;

  --bg:          #f6f4ef;
  --bg-soft:     #efece5;
  --panel:       rgba(255, 255, 255, .72);
  --panel-solid: #ffffff;
  --line:        rgba(18, 22, 30, .13);
  --line-soft:   rgba(18, 22, 30, .08);
  --line-strong: rgba(18, 22, 30, .26);

  --text:   #14181f;
  --muted:  #55606f;
  --dim:    #78828f;

  --accent:      #8a5d16;
  --accent-soft: rgba(138, 93, 22, .10);
  --accent-line: rgba(138, 93, 22, .34);
  --on-accent:   #fdfaf4;

  --glow-warm: rgba(212, 160, 78, .22);
  --glow-cool: rgba(96, 140, 255, .16);

  --shadow-lg: 0 30px 70px -34px rgba(24, 28, 38, .45);
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58rem 40rem at 78% -8%, var(--glow-warm), transparent 62%),
    radial-gradient(48rem 38rem at 6% 12%, var(--glow-cool), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 42%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  opacity: .7;
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--on-accent); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: -120%;
  z-index: 100;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: .75rem; }

/* ---------- Typografie-Bausteine ---------- */

.label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.4rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.label::before {
  content: "";
  width: 1.7rem;
  height: 1px;
  background: var(--accent-line);
}

.accent-word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -.015em;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.15vw, 1.15rem);
  line-height: 1.72;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.22,.8,.3,1), background-color .22s, border-color .22s, color .22s, box-shadow .22s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .22s cubic-bezier(.22,.8,.3,1); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 12px 30px -14px var(--accent-line);
}
.btn-primary:hover { box-shadow: 0 18px 38px -14px var(--accent-line); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: auto;
  height: 1.95rem;
  flex: none;
}
/* Gold ist auf hellem Grund sonst zu blass */
[data-theme="light"] .brand-mark,
[data-theme="light"] .footer-logo img {
  filter: brightness(.72) saturate(1.3) contrast(1.05);
}
.brand-word { font-size: 1.02rem; font-weight: 600; letter-spacing: -.03em; }
.brand-word span { color: var(--dim); font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.site-nav a {
  position: relative;
  padding: .35rem 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.22,.8,.3,1);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent-line); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.header-cta { min-height: 2.6rem; padding: 0 1.05rem; font-size: .86rem; }

/* ---------- Hero ---------- */

.hero { padding: clamp(2.75rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }

.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.8rem;
  padding: .42rem .9rem .42rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
}
.status .dot {
  position: relative;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #4ade80;
}
.status .dot::after {
  content: "";
  position: absolute;
  inset: -.28rem;
  border-radius: 50%;
  border: 1px solid #4ade80;
  opacity: .45;
  animation: pulse 2.8s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.6); opacity: .6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.hero h1 {
  max-width: 19ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -.038em;
  line-height: 1.02;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }

/* Identität – bewusst klein und beiläufig */
.identity {
  display: flex;
  align-items: center;
  gap: .95rem;
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}
.identity-photo {
  flex: none;
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-solid);
  overflow: hidden;
}
.identity-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.identity-text { display: grid; gap: .12rem; }
.identity-name { font-size: .96rem; font-weight: 600; letter-spacing: -.015em; }
/* Schmal: zwei Zeilen ohne Trennzeichen. Breit: eine Zeile mit Mittelpunkt. */
.identity-role {
  display: grid;
  gap: .1rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .74rem;
  line-height: 1.45;
  letter-spacing: .04em;
}
@media (min-width: 560px) {
  .identity-role { display: block; }
  .identity-role span + span::before { content: "·"; margin: 0 .5rem; color: var(--line-strong); }
}

/* Kennzahlen */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.facts > div { padding: 1.35rem 1.5rem; background: var(--bg); }
.facts dt {
  color: var(--dim);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.facts dd { margin: .5rem 0 0; font-size: 1.02rem; font-weight: 500; letter-spacing: -.015em; }

/* ---------- Abschnitte ---------- */

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.section-head h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(1.95rem, 4.2vw, 3.15rem);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.06;
}
.section-head .lead { margin: 0; }

/* ---------- Karten ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.1rem; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.7rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,.8,.3,1), border-color .3s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem 12rem at 82% -12%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.card:hover::after { opacity: 1; }

.card-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent);
}
.card-icon svg { width: 1.15rem; height: 1.15rem; }
.card h3 { margin: 0 0 .6rem; font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: .95rem; }
.card-index {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
}

/* ---------- Projekte ---------- */

.work { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 19rem;
  padding: 1.9rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--panel), transparent 70%), var(--panel);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,.8,.3,1), border-color .3s, box-shadow .3s;
}
.work-card::before {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -55%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .5s cubic-bezier(.22,.8,.3,1), border-color .4s;
  pointer-events: none;
}
.work-card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); }
.work-card:hover::before { transform: scale(1.08); border-color: var(--accent-line); }

.work-tag {
  width: fit-content;
  padding: .34rem .72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.work-card h3 {
  position: relative;
  margin: 2.25rem 0 .75rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.work-card p { position: relative; max-width: 40ch; color: var(--muted); font-size: .95rem; }
.work-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: .5rem;
  /* unten verankert, damit alle Karten den Link auf einer Linie haben */
  margin-top: auto;
  padding-top: 1.6rem;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 600;
}
.work-link .arrow { transition: transform .25s cubic-bezier(.22,.8,.3,1); }
.work-card:hover .work-link .arrow { transform: translate(3px, -3px); }

.work-demo {
  position: relative;
  margin: 0;
  padding: .6rem .75rem;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.75;
}
.work-demo span {
  display: block;
  margin-bottom: .15rem;
  color: var(--dim);
  font-size: .63rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.work-demo b { color: var(--accent); font-weight: 600; }

/* ---------- Über mich ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: start;
}

.portrait { position: relative; margin: 0; max-width: 21rem; }
.portrait img {
  width: 100%;
}
.portrait figcaption {
  margin-top: .9rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
}

.about-copy h2 {
  max-width: 18ch;
  margin-bottom: 1.4rem;
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.about-copy p { color: var(--muted); font-size: 1rem; line-height: 1.75; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.9rem 0 0; padding: 0; list-style: none; }
.tags li {
  padding: .4rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .8rem;
}

/* ---------- Prinzipien ---------- */

.principles { margin: 0; padding: 0; list-style: none; }
.principles li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .5rem 3rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line-soft);
}
.principles li:last-child { border-bottom: 1px solid var(--line-soft); }
.principles .num { color: var(--accent); font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; }
.principles h3 { margin: 0 0 .45rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.principles p { max-width: 62ch; color: var(--muted); font-size: .97rem; }

/* ---------- Kontakt ---------- */

.cta {
  position: relative;
  padding: clamp(2.25rem, 5vw, 3.75rem);
  border: 1px solid var(--accent-line);
  border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(40rem 20rem at 88% -30%, var(--accent-soft), transparent 70%), var(--panel);
  overflow: hidden;
}
.cta h2 {
  max-width: 18ch;
  margin-bottom: 1.2rem;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.cta .lead { margin-bottom: 2rem; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.cta-points {
  display: grid;
  gap: .6rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.cta-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}
.cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .5rem;
  height: 1px;
  background: var(--accent);
}
.cta-note {
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  max-width: 62ch;
  color: var(--dim);
  font-size: .84rem;
  line-height: 1.65;
}

/* ---------- Kontaktformular ---------- */

.contact-form { display: grid; gap: .95rem; align-content: start; }

.field { display: grid; gap: .4rem; }
.field label {
  color: var(--dim);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.5;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 1.25rem, calc(100% - .75rem) 1.25rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
  cursor: pointer;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-strong); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--accent-line); outline-offset: 1px; }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #d97066; }

/* Falle fuer Formular-Roboter: fuer Menschen unsichtbar, kein display:none */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit { justify-self: start; margin-top: .35rem; }

.form-status {
  margin: 0;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: 0 12px 12px 0;
  background: var(--panel);
  color: var(--text);
  font-size: .9rem;
  line-height: 1.6;
}
.form-status[data-tone="fehler"] { border-left-color: #d97066; }

.form-note { margin: 0; color: var(--dim); font-size: .8rem; line-height: 1.6; }
.form-note a { color: var(--muted); text-underline-offset: .25em; }

/* ---------- Rueckmeldeseite des Formulars ---------- */

.status-page { display: grid; place-items: center; min-height: 100vh; padding: 2rem 0; }
.status-card {
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(30rem 16rem at 80% -30%, var(--accent-soft), transparent 70%), var(--panel);
  text-align: center;
}
.status-logo { height: 2.6rem; width: auto; margin: 0 auto 1.75rem; }
[data-theme="light"] .status-logo { filter: brightness(.72) saturate(1.3) contrast(1.05); }
.status-card h1 {
  margin-bottom: .9rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -.03em;
}
.status-card p { margin-bottom: 2rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }

/* ---------- Fußzeile ---------- */

.site-footer { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  margin-bottom: 2.75rem;
}
.footer-logo { display: inline-block; }
.footer-logo img { width: 12.5rem; height: auto; }
.footer-brand p { margin-top: 1.2rem; max-width: 34ch; color: var(--muted); font-size: .92rem; }
.footer-col h3 {
  margin: 0 0 1rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: .82rem;
}
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
}
.privacy-badge svg { width: .95rem; height: .95rem; color: var(--accent); }

/* ---------- Rechtsseiten ---------- */

.legal { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.legal-head { margin-bottom: 3rem; }
.legal-head h1 {
  margin-bottom: .8rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -.035em;
}
.legal-head .updated { color: var(--dim); font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; }

.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }

.toc {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.toc h2 {
  margin: 0 0 .9rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.toc ol { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.toc a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--dim);
  font-family: var(--mono);
  font-size: .76rem;
  white-space: pre;
}
.toc a:hover { color: var(--accent); }

.legal-body section { padding: 1.9rem 0; border-top: 1px solid var(--line-soft); }
.legal-body section:first-of-type { padding-top: 0; border-top: 0; }
.legal-body h2 { margin: 0 0 .9rem; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.legal-body h3 { margin: 1.6rem 0 .5rem; font-size: 1rem; font-weight: 600; }
.legal-body p, .legal-body li { color: var(--muted); font-size: .96rem; line-height: 1.72; }
.legal-body ul { margin: 0 0 1.1em; padding-left: 1.2rem; }
.legal-body li { margin-bottom: .4rem; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.legal-body address { font-style: normal; color: var(--muted); line-height: 1.8; }

/* ---------- Tabellen in Rechtsseiten und Dokumenten ---------- */

.legal-body .tabelle {
  margin: 1.2rem 0 1.6rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.legal-body th,
.legal-body td {
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.legal-body thead th {
  color: var(--dim);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.legal-body tbody tr:last-child td { border-bottom: 0; }
.legal-body tbody td:first-child { color: var(--text); }
.legal-body td strong { color: var(--text); }

.callout {
  margin: 1.2rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--panel);
}
.callout p { margin: 0; font-size: .92rem; }

/* ---------- Werbekennzeichnung ---------- */

.ad-flag {
  display: inline-block;
  margin-left: .3em;
  padding: .12em .45em;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: .62em;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: .12em;
  white-space: nowrap;
}

.ad-notice {
  margin: 2.5rem 0 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--panel);
}
.ad-notice p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.ad-notice a { color: var(--accent); text-underline-offset: .25em; }

/* ---------- Scroll-Animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,.8,.3,1), transform .7s cubic-bezier(.22,.8,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */

@media (min-width: 700px) {
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; gap: 1.5rem 4rem; }
  .principles li { grid-template-columns: 5rem minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 3rem; }
}

@media (min-width: 900px) {
  .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .about-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4.5rem; }
  .legal-layout { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 4rem; }
  .toc { position: sticky; top: 6.5rem; }
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding-block: .85rem .55rem; row-gap: .35rem; }
  .site-nav {
    order: 3;
    width: 100%;
    gap: 1.15rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: .84rem; white-space: nowrap; }
}

@media (max-width: 520px) {
  .header-cta { display: none; }
  .hero { padding-top: 2.5rem; }
  .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  body::before, body::after { display: none; }
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .theme-toggle, .cta { display: none; }
}
