/* JAHR EINS — Under Construction
   Typo: Archivo Variable (OFL), lokal gehostet. Stand-in für Roc Grotesk. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ---------------------------------------------------------- */

:root {
  --paper: #ffffff;
  --ink: #191919;
  --muted: #6b6b6b;
  --rule: rgba(25, 25, 25, 0.22);
  --rule-strong: rgba(25, 25, 25, 0.55);
  --focus: #ff7c00;

  --page-x: clamp(1.5rem, 6vw, 6rem);
  --page-y: clamp(2rem, 7vh, 5rem);
  --measure: 34rem;

  --step-mark: clamp(2.75rem, 7vw, 4.25rem);
  --step-h1: clamp(2.75rem, 11vw, 7.5rem);
  --step-h2: clamp(1.5rem, 4vw, 2.25rem);
  --step-lead: clamp(1.0625rem, 1.9vw, 1.375rem);
  --step-body: clamp(0.9375rem, 1.4vw, 1.0625rem);
  --step-small: clamp(0.8125rem, 1.1vw, 0.875rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101010;
    --ink: #f2f0ed;
    --muted: #9a9a9a;
    --rule: rgba(242, 240, 237, 0.22);
    --rule-strong: rgba(242, 240, 237, 0.5);
  }
}

/* ---- Basis ----------------------------------------------------------- */

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

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

body {
  margin: 0 auto;
  width: 100%;
  max-width: 90rem;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--page-y) var(--page-x);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover { border-bottom-color: currentColor; }

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

/* ---- Kopf ------------------------------------------------------------ */

.mark {
  display: block;
  width: var(--step-mark);
  height: auto;
  color: var(--ink);
  flex: none;
}

.site-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 12vh, 8rem);
}

.site-head__back {
  font-size: var(--step-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.5rem;
}

/* ---- Inhalt ---------------------------------------------------------- */

main { flex: 1 1 auto; }

h1 {
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
  font-size: var(--step-h1);
  font-stretch: 125%;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  overflow-wrap: break-word;
}

h2 {
  margin: clamp(2.25rem, 5vh, 3rem) 0 0.75rem;
  font-size: var(--step-h2);
  font-stretch: 112%;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 {
  margin: 1.75rem 0 0.375rem;
  font-size: var(--step-body);
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

.lead {
  font-size: var(--step-lead);
  line-height: 1.4;
  max-width: 30rem;
  margin-bottom: clamp(2.5rem, 7vh, 4rem);
  text-wrap: pretty;
}

.lead strong { font-weight: 600; }

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

/* ---- Kontaktblock ---------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0;
  margin-top: clamp(2.5rem, 8vh, 5rem);
  border-top: 1px solid var(--rule);
}

.contact__item {
  border-bottom: 1px solid var(--rule);
  padding: 1.125rem 1.5rem 1.125rem 0;
}

.contact__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--step-small);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

.contact__value {
  font-size: var(--step-lead);
  font-stretch: 108%;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.contact__value a { border-bottom-color: var(--rule); }

/* ---- Fließtext-Seiten (Impressum / Datenschutz) ---------------------- */

.doc { max-width: 42rem; }
.doc p,
.doc ul { max-width: none; }

/* Rechtstexte laufen schmaler — die Headline-Skala der Startseite
   sprengt sonst die Spalte und bricht Wörter auf. */
.doc h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}

.doc h2 {
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem);
  font-stretch: 105%;
  margin-top: 2.5rem;
}

.doc .lead {
  font-size: var(--step-lead);
  max-width: none;
  margin-bottom: 0.5rem;
}

.doc__meta {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step-small);
  color: var(--muted);
}

address {
  font-style: normal;
  margin-bottom: 1rem;
}

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

.site-foot {
  margin-top: clamp(3rem, 10vh, 6rem);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  align-items: baseline;
  font-size: var(--step-small);
  color: var(--muted);
}

.site-foot__brand {
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
  margin-right: auto;
}

.site-foot a {
  color: var(--ink);
  border-bottom-color: var(--rule);
}

/* ---- Klein ----------------------------------------------------------- */

@media (max-width: 478px) {
  .contact__item { padding-right: 0; }
  .site-foot__brand { margin-right: 0; width: 100%; }
}

@media print {
  body { color: #000; background: #fff; }
  a { border-bottom: none; }
}
