/* danielhaeuserer.de - eine Datei, keine Fremd-Fonts, kein Framework.
   Tokens: kuehles Off-White, Tinte, eine Akzentfarbe (Kobalt). Radius: 10px ueberall. */

:root {
  --bg: #f3f5f8;
  --flaeche: #ffffff;
  --tinte: #10141a;
  --leise: #566070;
  --linie: #dce1e8;
  --akzent: #2f4fe0;
  --akzent-tinte: #ffffff;
  --slot: rgba(47, 79, 224, 0.11);
  --radius: 10px;
  --breite: 40rem;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1015;
    --flaeche: #151a21;
    --tinte: #e7ebf0;
    --leise: #9aa3b0;
    --linie: #262d37;
    --akzent: #8ea2ff;
    --akzent-tinte: #0d1015;
    --slot: rgba(142, 162, 255, 0.16);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tinte);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 4px;
}

.kopf, main, .fuss {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.kopf { padding-top: 1.25rem; }
.kopf .name {
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

main { padding-top: 2.5rem; padding-bottom: 3rem; }

h1 {
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 780;
  margin: 0 0 1.25rem;
}

main > p { color: var(--leise); margin: 0 0 1rem; max-width: 36rem; }
main > p:first-of-type { color: var(--tinte); font-size: 1.2rem; line-height: 1.45; }

/* Monatsleiste: klebt oben, springt zu Monat 1-6 */
.leiste {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  margin: 2rem -1.25rem 0;
  padding: 0.75rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.leiste a {
  flex: 1;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--flaeche);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.leiste a:hover { border-color: var(--akzent); color: var(--akzent); }

/* Monat */
.monat { padding-top: 2.75rem; }
.monat h2 {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin: 0 0 0.75rem;
}
.monat h2 .zahl {
  font-size: 4.5rem;
  line-height: 0.8;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--akzent);
  font-variant-numeric: tabular-nums;
}
.monat h2 .titel {
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
}
.monat h2 .label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--leise);
}
.monat > p { color: var(--leise); margin: 0 0 0.5rem; }

/* Schritt */
.monat h3 {
  margin: 2rem 0 0.35rem;
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.monat h3 .nr {
  color: var(--leise);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-right: 0.35rem;
}
.monat h3 + p { margin: 0 0 0.75rem; color: var(--leise); }

/* Prompt: das Stueck, fuer das jemand kommt */
.prompt {
  margin: 0.75rem 0 0;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
}
.prompt pre {
  margin: 0;
  padding: 1rem 1rem 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  font: 400 0.9375rem/1.6 var(--mono);
}
.slot {
  background: var(--slot);
  color: var(--akzent);
  border-radius: 4px;
  padding: 0 0.15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.kopieren {
  display: block;
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-top: 1px solid var(--linie);
  background: transparent;
  color: var(--akzent);
  font: 650 1rem/1 var(--sans);
  cursor: pointer;
}
.kopieren:hover { background: var(--slot); }
.kopieren:active { transform: translateY(1px); }
.kopieren.ok { background: var(--akzent); color: var(--akzent-tinte); }

/* Fuss */
.fuss {
  padding-top: 2rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--linie);
}
.fuss .schluss {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.fuss nav { display: flex; gap: 1.25rem; color: var(--leise); font-size: 0.9375rem; }

/* Rechtstexte */
.recht h1 { font-size: 2rem; }
.recht h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; letter-spacing: -0.01em; }
.recht p, .recht li { color: var(--tinte); max-width: 36rem; }
.recht address { font-style: normal; }

/* Kasten fuer Stellen, die Daniel pruefen oder ausfuellen muss */
.pruefen {
  border: 2px dashed #c77700;
  background: rgba(199, 119, 0, 0.08);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}
.pruefen strong { color: #c77700; }

/* Startseite */
.start .weiter {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  background: var(--akzent);
  color: var(--akzent-tinte);
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 48rem) {
  main { padding-top: 4rem; }
  .leiste { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .kopieren { transition: background-color 120ms ease-out, color 120ms ease-out; }
}
