:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1b2b45;
  --muted: #56606f;
  --line: #dcdcd6;
  --accent: #1b2b45;
  --accent-ink: #ffffff;
  --focus: #1f6feb;
  --ok: #1d7a46;
  --err: #b42318;
  --radius: 10px;
  --wrap: 68rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a26;
    --surface: #1a2433;
    --ink: #e9edf3;
    --muted: #a5aebb;
    --line: #2c384a;
    --accent: #e9edf3;
    --accent-ink: #121a26;
    --focus: #6ea8fe;
    --ok: #4cc38a;
    --err: #ff8a80;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main { flex: 1; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* Header */
.top { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.logo { display: inline-block; color: var(--ink); }
.logo svg { display: block; width: clamp(11rem, 42vw, 15rem); height: auto; }

/* Layout: mobil gestapelt, ab 60rem Text links / Kontakt rechts */
.layout {
  display: grid;
  gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(1.5rem, 6vw, 4rem) clamp(3rem, 8vw, 6rem);
}
@media (min-width: 60rem) {
  /* Titel über die volle Breite, Kontaktbox auf Höhe des ersten Absatzes */
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); row-gap: 0; }
  .hero { display: contents; }
  .hero-head { grid-column: 1 / -1; }
  .hero-body { grid-column: 1; }
  .contact { grid-column: 2; margin-top: 1.5rem; }
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-wrap: balance;
  hyphens: manual;
}

.lead {
  margin: 1.5rem 0 0;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
  text-wrap: pretty;
}
.lead + .lead { margin-top: 1rem; }
.signature { margin: 1.5rem 0 0; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); font-weight: 600; }

h2 { margin: 0 0 0.75rem; font-size: 1.375rem; line-height: 1.3; font-weight: 650; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(1.25rem, 4vw, 2rem);
}
/* Feste Breite, damit die Box gestapelt nicht auf die volle Seitenbreite wächst */
.contact { width: 100%; max-width: 22rem; }
.contact p { margin: 0 0 1rem; }

/* Button und Link gleich hoch, damit sich beim Aufdecken nichts verschiebt */
.reveal-list { list-style: none; margin: 0.5rem 0 0; padding: 0; line-height: 1.9; }
.reveal-list a { font-weight: 600; }

.linkish {
  font: inherit;
  line-height: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.linkish:hover { text-decoration-thickness: 2px; }


/* Footer */
.foot {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.foot h2 { font-size: 0.875rem; color: var(--ink); margin-bottom: 0.5rem; }
.foot p { margin: 0 0 0.75rem; }
@media (min-width: 40rem) { .foot { grid-template-columns: repeat(3, auto); justify-content: space-between; } }

/* Rechtstexte */
.prose { max-width: 44rem; padding-block: 1rem 4rem; }
.prose h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin-bottom: 1.5rem; }
.prose h2 { margin-top: 2rem; font-size: 1.1875rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.25rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
