/* Grundlage — grundlage.shop */

/* Schriften lokal einbinden — kein Aufruf an Google-Server, keine IP-Übertragung.
   Dateien unter /fonts/ ablegen; fehlen sie, greift der System-Fallback. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --kraft: #f7e9cc;
  --kraft-deep: #efdcb6;
  --red: #a0393a;
  --red-dark: #7f2c2d;
  --ink: #3b2b22;
  --ink-soft: #6b5546;
  --rule: rgba(160, 57, 58, 0.25);
  --max: 860px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --kraft: #1e1916;
    --kraft-deep: #272019;
    --red: #d9736f;
    --red-dark: #e8938d;
    --ink: #ece0d2;
    --ink-soft: #b5a496;
    --rule: rgba(217, 115, 111, 0.3);
  }
}

:root[data-theme="dark"] {
  --kraft: #1e1916;
  --kraft-deep: #272019;
  --red: #d9736f;
  --red-dark: #e8938d;
  --ink: #ece0d2;
  --ink-soft: #b5a496;
  --rule: rgba(217, 115, 111, 0.3);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--kraft);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Kopfzeile ---------- */

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

header.site .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}

.wordmark {
  font-weight: 800;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  letter-spacing: -0.03em;
  color: var(--red);
  text-decoration: none;
  line-height: 1;
}

nav.site {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav.site a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

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

main { padding: 48px 0 72px; }

h1 {
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--red);
  margin: 0 0 20px;
}

h2 {
  font-weight: 800;
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 44px 0 14px;
}

h3 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin: 32px 0 12px;
}

p { margin: 0 0 16px; max-width: 62ch; }

a { color: var(--red); }

.lede {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 54ch;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Modellliste ---------- */

.group {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-bottom: 30px;
}

.models {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.models li {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  background: var(--kraft-deep);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* ---------- Suchfeld ---------- */

.finder {
  margin: 28px 0 8px;
}

.finder input {
  width: 100%;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1rem;
  padding: 13px 15px;
  background: var(--kraft-deep);
  color: var(--ink);
  border: 1.5px solid var(--rule);
  border-radius: 4px;
}

.finder input:focus {
  outline: none;
  border-color: var(--red);
}

.result {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 1.5em;
  line-height: 1.5;
}

.result.hit { color: var(--red); font-weight: 500; }
.result.miss { color: var(--ink-soft); }

/* ---------- Hinweisblöcke ---------- */

.note {
  border-left: 3px solid var(--red);
  padding: 2px 0 2px 18px;
  margin: 26px 0;
}

.note p:last-child { margin-bottom: 0; }

.excluded {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.excluded li {
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.excluded li:last-child { border-bottom: none; }

/* ---------- Schritte (Startseite) ---------- */

.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 24px 0 0;
}

.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 44px;
  margin-bottom: 20px;
  max-width: 54ch;
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--red);
  border: 1px solid var(--rule);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

/* ---------- Button ---------- */

.cta {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--kraft);
  background: var(--red);
  padding: 14px 24px;
  border-radius: 4px;
  margin-top: 8px;
}

.cta:hover { background: var(--red-dark); }

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

footer.site {
  border-top: 1px solid var(--rule);
  padding: 26px 0 44px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--red); }

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

.legal p, .legal li { max-width: 68ch; font-size: 0.95rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }

@media (max-width: 560px) {
  main { padding: 34px 0 54px; }
  body { font-size: 16px; }
}
