/* ==================================================================
   SL Webdesign – Stylesheet
   Alle Farben als Token in :root. Kontraste sind gegen WCAG AA
   (>= 4,5:1 für Fließtext) geprüft.
   ================================================================== */

:root {
  /* Flächen */
  --bg: #0a0c10;
  --surface: #12151b;
  --surface-2: #171b22;
  --surface-3: #1d222b;
  --line: #242a34;
  --line-soft: #1b2028;

  /* Schrift */
  --ink: #f2f5f9;          /* 17,9:1 auf --bg */
  --ink-muted: #a3acba;    /* 8,5:1 auf --bg  */
  --ink-subtle: #7d8697;

  /* Akzent */
  --accent: #2e9bff;       /* 6,8:1 auf --bg  */
  --accent-hover: #55aeff;
  --accent-ink: #06090d;   /* Schrift auf Akzentfläche, 6,9:1 */
  --accent-soft: rgba(46, 155, 255, 0.12);
  --accent-line: rgba(46, 155, 255, 0.32);

  /* WhatsApp */
  --wa: #4ddb8a;           /* 9,9:1 auf --bg, dunkle Schrift darauf */
  --wa-hover: #6ee7a0;
  --wa-line: rgba(77, 219, 138, 0.38);

  /* Status */
  --error: #ff8a8a;
  --success: #6ee7a8;

  /* Maße */
  --wrap: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;

  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;

  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Das hidden-Attribut muss stärker sein als eigene display-Regeln. */
[hidden] {
  display: none !important;
}

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

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 16px;
  color: var(--accent-ink);
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 116px) 0;
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

.section__head {
  max-width: 660px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section__head--center .eyebrow::before {
  display: none;
}

.lead {
  color: var(--ink-muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ------------------------------------------------------------------
   Schaltflächen
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

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

.btn--ghost:hover {
  border-color: var(--accent-line);
  color: var(--ink);
  background: var(--accent-soft);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 16px 30px;
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------
   Kopfzeile
   ------------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 12, 16, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
}

.brand__name {
  font-size: 1.05rem;
}

.brand__name span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

/* Der CTA in der Navigation gehört nur ins mobile Menü; auf dem Desktop
   steht er separat rechts in der Kopfzeile. */
.nav > .btn {
  display: none;
}

.header__cta {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 40% 30% -20%;
  background: radial-gradient(
    closest-side,
    rgba(46, 155, 255, 0.16),
    transparent
  );
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero__badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero p.lead {
  max-width: 54ch;
  margin-bottom: 30px;
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  background: var(--surface);
}

.hero__panel {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero__panel img {
  width: min(260px, 100%);
  margin: 0 auto 18px;
  border-radius: 18px;
}

.hero__panel p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------
   Karten-Raster
   ------------------------------------------------------------------ */
.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.card:hover {
  border-color: var(--accent-line);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-muted);
  margin-bottom: 14px;
  font-size: 1rem;
}

.card ul li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  margin-bottom: 18px;
}

.icon svg {
  width: 23px;
  height: 23px;
}

/* Vorteile */
.benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.benefit svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.benefit h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.benefit p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* ------------------------------------------------------------------
   Portfolio
   ------------------------------------------------------------------ */
.project {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 3.5vw, 40px);
}

.project__shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333a46;
}

.browser-bar .url {
  width: auto;
  height: auto;
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-subtle);
  font-size: 0.76rem;
  padding: 4px 12px;
  margin-left: 8px;
  flex: 1;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.project__shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.shot-placeholder {
  aspect-ratio: 16 / 10;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  color: var(--ink-subtle);
  background: repeating-linear-gradient(
    45deg,
    var(--surface-2),
    var(--surface-2) 12px,
    var(--surface-3) 12px,
    var(--surface-3) 24px
  );
}

.shot-placeholder strong {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.shot-placeholder small {
  font-size: 0.82rem;
  max-width: 34ch;
  margin-inline: auto;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.project__note {
  margin-top: 22px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent-line);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.project__note p {
  margin: 0;
}

/* ------------------------------------------------------------------
   Über mich
   ------------------------------------------------------------------ */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.about__card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  text-align: center;
}

.about__card img {
  width: 140px;
  margin: 0 auto 18px;
  border-radius: 16px;
}

.about__card strong {
  display: block;
  font-size: 1.1rem;
}

.about__card span {
  color: var(--ink-muted);
  font-size: 0.93rem;
}

.about__contact {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 0.95rem;
}

.about__contact a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.about__contact a:hover {
  color: var(--accent);
}

.about__contact svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex: none;
}

/* ------------------------------------------------------------------
   Ablauf
   ------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------
   Kontakt
   ------------------------------------------------------------------ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.contact__direct {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.contact__row:hover {
  border-color: var(--accent-line);
  background: var(--surface-3);
  color: var(--ink);
}

.contact__row svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
}

.contact__row span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.contact__row strong {
  font-size: 1rem;
  font-weight: 600;
}

/* ---- WhatsApp -------------------------------------------------- */

.contact__row--whatsapp svg {
  color: var(--wa);
}

.contact__row--whatsapp:hover {
  border-color: var(--wa-line);
}

/* Hinweis: ortsunabhaengige Zusammenarbeit */
.remote-note {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.remote-note h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--ink);
}

.remote-note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Schwebender WhatsApp-Knopf */
.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--wa);
  color: #06120b;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}

.wa-fab:hover,
.wa-fab:focus-visible {
  background: var(--wa-hover);
  color: #06120b;
  transform: translateY(-2px);
}

.wa-fab svg {
  width: 22px;
  height: 22px;
  flex: none;
}

@media (max-width: 560px) {
  .wa-fab {
    right: 14px;
    bottom: 14px;
    padding: 14px;
  }

  .wa-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab {
    transition: none;
  }

  .wa-fab:hover,
  .wa-fab:focus-visible {
    transform: none;
  }
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.field .req {
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-subtle);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field__error {
  display: none;
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--error);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--error);
}

.field.has-error .field__error {
  display: block;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex: none;
}

.consent label {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.consent.has-error label {
  color: var(--error);
}

.form__hint {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--ink-subtle);
}

.form__status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.form__status--ok {
  display: block;
  background: rgba(110, 231, 168, 0.1);
  border: 1px solid rgba(110, 231, 168, 0.35);
  color: var(--success);
}

.form__status--err {
  display: block;
  background: rgba(255, 138, 138, 0.1);
  border: 1px solid rgba(255, 138, 138, 0.35);
  color: var(--error);
}

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

/* ------------------------------------------------------------------
   Fußzeile
   ------------------------------------------------------------------ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 42ch;
}

.footer h3 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 14px;
}

.footer ul li {
  margin-bottom: 9px;
}

.footer ul a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer ul a:hover {
  color: var(--accent);
}

.footer .brand {
  margin-bottom: 16px;
}

.footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--ink-subtle);
  font-size: 0.88rem;
}

/* ------------------------------------------------------------------
   Rechtsseiten
   ------------------------------------------------------------------ */
.legal {
  padding: clamp(48px, 7vw, 88px) 0;
}

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

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.6em;
}

.legal p,
.legal li {
  color: var(--ink-muted);
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 1.1em;
}

.legal li {
  margin-bottom: 7px;
}

.legal address {
  font-style: normal;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 1.4em;
}

.todo {
  background: rgba(255, 138, 138, 0.09);
  border: 1px dashed rgba(255, 138, 138, 0.5);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 1.4em;
  color: var(--error);
  font-size: 0.93rem;
}

.todo strong {
  display: block;
  margin-bottom: 4px;
}

mark.todo-inline {
  background: rgba(255, 138, 138, 0.18);
  color: var(--error);
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 600;
}

/* 404 */
.error-page {
  min-height: 72vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .code {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

/* ------------------------------------------------------------------
   Animation beim Scrollen
   ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ------------------------------------------------------------------
   Responsiv
   ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .hero__grid,
  .about,
  .project,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    max-width: 440px;
    margin-inline: auto;
  }

  .grid--3,
  .grid--4,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about__card {
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header__cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
      visibility 0.2s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    padding: 14px 12px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .nav > .btn {
    display: inline-flex;
    margin-top: 14px;
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }

  .wrap {
    width: min(100% - 32px, var(--wrap));
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .steps,
  .footer__grid,
  .field--row {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .card,
  .step {
    padding: 22px;
  }

  .footer__bottom {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------------
   Barrierefreiheit: reduzierte Bewegung
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

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

@media print {
  .header,
  .nav-toggle,
  .hero__panel,
  .form {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
