/* Martin Hilbrandt — Entwickler-Website
   Palette: Papier / Tinte / Glut / Tabak */

:root {
  --paper:      #ECEAE3;
  --paper-deep: #DEDBD1;
  --ink:        #1A1E1C;
  --ink-soft:   #4A5350;
  --ember:      #D98200;
  --tobacco:    #6B4A2B;
  --rule:       #C4C0B4;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

/* ---------- Typografie ---------- */

h1, h2, h3, .display {
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-stretch: 112%;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
}

p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: var(--ink); text-decoration-color: var(--ember); text-underline-offset: 0.18em; }
a:hover { color: var(--tobacco); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

ul { max-width: var(--measure); padding-left: 1.15rem; }
li { margin-bottom: 0.35rem; }

/* ---------- Layout ---------- */

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 var(--gutter); }

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.9375rem;
  text-decoration: none;
}

nav.site ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

nav.site a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
}

nav.site a:hover, nav.site a[aria-current='page'] { color: var(--ink); }
nav.site a[aria-current='page'] { border-bottom: 2px solid var(--ember); padding-bottom: 2px; }

main { padding: clamp(2.5rem, 7vw, 5rem) 0 4rem; }

section { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Hero mit Strichliste ---------- */

.hero { margin-bottom: clamp(2.5rem, 7vw, 4.5rem); }

.hero p.lead {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  margin-top: 1.25rem;
}

.tally {
  display: block;
  width: 100%;
  max-width: 30rem;
  height: auto;
  margin: 2rem 0 0;
}

.tally line {
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: stroke-in 0.45s ease-out forwards;
}

.tally line.cross { stroke: var(--ember); stroke-width: 6; }

.tally line:nth-child(1) { animation-delay: 0.15s; }
.tally line:nth-child(2) { animation-delay: 0.28s; }
.tally line:nth-child(3) { animation-delay: 0.41s; }
.tally line:nth-child(4) { animation-delay: 0.54s; }
.tally line:nth-child(5) { animation-delay: 0.70s; }
.tally line:nth-child(6) { animation-delay: 0.90s; }
.tally line:nth-child(7) { animation-delay: 1.03s; }
.tally line:nth-child(8) { animation-delay: 1.16s; }

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

@media (prefers-reduced-motion: reduce) {
  .tally line { animation: none; stroke-dashoffset: 0; }
}

/* ---------- App-Karten ---------- */

.apps { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }

@media (min-width: 46rem) {
  .apps { grid-template-columns: 1fr 1fr; }
}

.app {
  background: var(--paper);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.app h2 { margin-bottom: 0.75rem; }
.app p { font-size: 1rem; }

.badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  margin-right: 0.4rem;
}

.badge.live { border-color: var(--ember); color: var(--tobacco); }

/* ---------- Rechtstexte ---------- */

.legal h2 { margin-top: 2.5rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal ul { font-size: 1rem; }

.meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--ember);
  padding-left: 0.9rem;
  max-width: var(--measure);
}

dl.contact { margin: 0 0 1.5rem; max-width: var(--measure); }
dl.contact dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1rem;
}
dl.contact dd { margin: 0.15rem 0 0; }

/* ---------- Fuß ---------- */

footer.site {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

footer.site ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  max-width: none;
}

footer.site a { text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
