/* ---------- Fonts (lokal gehostet, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-v18-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-v18-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-v18-latin-600.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f7f6;
  --surface: #ffffff;
  --tile: #ececeb;
  --tile-strong: #e3e3e1;
  --line: #e2e2e0;
  --line-strong: #cfcfcc;
  --text: #121212;
  --muted: #6b6b69;
  --subtle: #9b9b98;
  --ink: #161616;
  --ink-hover: #2b2b2b;
  --ok: #2f8f5b;
  --error: #b3261e;
  --on-ink: #ffffff;
  --text-soft: #3d3d3b;
  --header-bg: rgba(247, 247, 246, 0.82);

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1120px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

/* Dunkelmodus folgt der Einstellung des Geräts */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --surface: #1c1c1c;
    --tile: #232323;
    --tile-strong: #2b2b2b;
    --line: #2a2a2a;
    --line-strong: #3b3b3a;
    --text: #ededec;
    --muted: #a3a3a0;
    --subtle: #757572;
    --ink: #ededec;
    --ink-hover: #ffffff;
    --ok: #4cc386;
    --error: #f07067;
    --on-ink: #121212;
    --text-soft: #c9c9c6;
    --header-bg: rgba(20, 20, 20, 0.8);

    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
}

/* ---------- Typography ---------- */

.h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 600;
}

.h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 600;
}

.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-primary:hover {
  background: var(--ink-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

a:hover > .arrow,
button:hover > .arrow,
.link-row:hover .arrow,
.app-card:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo img {
  display: block;
  height: 30px;
  width: auto;
}

@media (max-width: 600px) {
  .logo img {
    height: 25px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    top 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) {
  top: 16px;
}

.nav-toggle span:nth-child(2) {
  top: 23px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 19.5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 19.5px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease);
  }

  .mobile-menu > div {
    overflow: hidden;
  }

  .mobile-menu.is-open {
    grid-template-rows: 1fr;
  }

  .mobile-menu ul {
    padding: 8px 0 24px;
  }

  .mobile-menu li a:not(.btn) {
    display: block;
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu .btn {
    margin-top: 20px;
    width: 100%;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}





@media (max-width: 720px) {
  .section {
    padding: 80px 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 104px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero .lead {
  margin-top: 24px;
  max-width: 480px;
}

.hero-actions {
  margin-top: 36px;
}

@media (max-width: 920px) {
  .hero {
    padding: 72px 0 72px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
}

/* Automatisierungs-Karte: zeigt in drei Schritten, was Automatisierung bedeutet */
.flow {
  background: var(--tile);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.flow-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 14px;
  font-size: 13px;
  color: var(--muted);
}

.flow-head strong {
  color: var(--text);
  font-weight: 500;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 10px;
  transition: background-color 0.4s var(--ease);
}

.flow-step + .flow-step {
  border-top: 1px solid var(--line);
}

.flow-step.is-active {
  background: var(--bg);
}

.flow-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tile);
  color: var(--text);
}

.flow-icon svg {
  width: 18px;
  height: 18px;
}

.flow-text {
  flex: 1;
  min-width: 0;
}

.flow-text b {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.flow-text span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-state {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
}

.flow-state::before,
.flow-state::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition:
    opacity 0.3s var(--ease),
    transform 0.4s var(--ease);
}

/* wartend */
.flow-state::before {
  border: 1.5px solid var(--line-strong);
}

/* erledigt */
.flow-state::after {
  background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5'/%3E%3C/svg%3E")
    center / 20px no-repeat;
  opacity: 0;
  transform: scale(0.6);
}

.flow-step.is-active .flow-state::before {
  border-color: var(--text);
  border-right-color: transparent;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.flow-step.is-done .flow-state::before {
  opacity: 0;
}

.flow-step.is-done .flow-state::after {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-color-scheme: dark) {
  .flow-state::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23121212' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5'/%3E%3C/svg%3E");
  }
}

.flow-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.flow-foot strong {
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .flow {
    padding: 16px;
  }
}

/* ---------- Abschnittstitel ---------- */
.section-label {
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.section-tight {
  padding-top: 0;
}

.section-tight + .section,
.hero + .section {
  border-top: 0;
}

/* ---------- Leistungen ---------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-list li {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--tile);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 20px;
  height: 20px;
}

.service-list h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.service-list p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .service-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* ---------- Apps ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 16px;
}

.app-card {
  display: flex;
  flex-direction: column;
}

.app-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 440px;
  padding-top: 48px;
  overflow: hidden;
  /* clip verhindert, dass der Inhalt per Skript oder Fokus verschoben wird */
  overflow: clip;
  border-radius: var(--radius-lg);
  background: var(--tile);
}

.app-device {
  position: relative;
  width: 230px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.14));
  transition: transform 0.6s var(--ease);
}

.app-device img {
  display: block;
  width: 100%;
}

.app-card:hover .app-device {
  transform: translateY(-8px);
}

/* Video liegt exakt im Bildschirmbereich des Rahmens, der Rahmen darüber */
.app-video {
  position: absolute;
  left: 3.125%;
  top: 1.49%;
  width: 93.625%;
  height: 96.96%;
  border-radius: 12.82% / 5.9%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.app-device.is-playing .app-video {
  opacity: 1;
}

.app-device .app-frame {
  position: absolute;
  inset: 0;
  height: 100%;
  pointer-events: none;
}

.app-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 4px 0;
}

.app-meta img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex: none;
}

.app-meta div {
  flex: 1;
  min-width: 0;
}

.app-meta h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-meta p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.app-meta .arrow {
  color: var(--muted);
}

@media (max-width: 720px) {
  .apps {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .app-stage {
    height: 380px;
  }

  .app-device {
    width: 210px;
  }
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px 56px;
}

.contact-info,
.contact-form {
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info {
  padding: 0;
  align-self: start;
}


.contact-list {
  margin-top: 0;
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 0;
}

.contact-list a,
.contact-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 15px;
}

.contact-list span:first-child {
  color: var(--muted);
}

.contact-list a span:last-child {
  text-align: right;
}

.contact-list .arrow {
  margin-left: 6px;
}



.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.field label small {
  font-weight: 400;
  color: var(--subtle);
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b6b69' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
  background: var(--surface);
}

.field.has-error input:not([type="checkbox"]),
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
}

.field-error {
  min-height: 0;
  font-size: 13px;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}

.checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.field.has-error .checkbox input {
  outline: 1.5px solid var(--error);
  outline-offset: 2px;
}

.checkbox a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 8px;
}

.form-actions p {
  font-size: 13px;
  color: var(--subtle);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 420px;
  text-align: center;
}

.form-status p {
  max-width: 340px;
  color: var(--muted);
}

.contact-form.is-sending form,
.contact-form.is-done form {
  display: none;
}

.contact-form.is-sending .form-status,
.contact-form.is-done .form-status {
  display: flex;
}

.status-icon {
  position: relative;
  width: 56px;
  height: 56px;
}

.status-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--text);
  animation: spin 0.9s linear infinite;
}

.status-icon svg {
  stroke: var(--on-ink);
  position: absolute;
  inset: 0;
  width: 56px;
  height: 56px;
  opacity: 0;
}

.status-icon path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}

.is-success .status-icon::before,
.is-error .status-icon::before {
  animation: none;
  border-color: var(--ink);
  background: var(--ink);
  transition: background-color 0.3s var(--ease);
}

.is-error .status-icon::before {
  border-color: var(--error);
  background: var(--error);
}

.is-success .status-icon .icon-ok,
.is-error .status-icon .icon-error {
  opacity: 1;
}

.is-success .status-icon .icon-ok path,
.is-error .status-icon .icon-error path {
  animation: draw 0.45s 0.15s var(--ease) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 920px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .contact-form {
    padding: 28px 20px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 13px;
  color: var(--subtle);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a,
.footer-link {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover,
.footer-link:hover {
  color: var(--text);
}

.footer-link {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: inherit;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
}

/* ---------- Consent ---------- */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 150;
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    visibility 0s linear 0.35s;
}

.consent.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.consent h2 {
  font-size: 15px;
  font-weight: 600;
}

.consent p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.consent p a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent .consent-status {
  font-size: 13px;
  color: var(--text);
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.consent-actions .btn {
  width: 100%;
}

/* ---------- Rechtstexte ---------- */
.legal {
  padding: 72px 0 120px;
}

.legal-inner {
  max-width: 760px;
}

.legal h1 {
  margin-bottom: 32px;
}

.legal h2 {
  margin: 64px 0 20px;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.2;
}

.legal h3 {
  margin: 36px 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: var(--text-soft);
  font-size: 15px;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  margin: 12px 0;
  padding-left: 20px;
  list-style: disc;
}

.legal li + li {
  margin-top: 4px;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.legal-box {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--tile);
}

.legal-box p {
  color: var(--text);
}

.legal-toc {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-toc a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
}

.legal-toc a:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ---------- Reveal beim Scrollen (einmalig, dezent) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 404 ---------- */
.not-found {
  min-height: calc(100vh - 170px);
}

.not-found .lead {
  margin-top: 24px;
}
