/* Leuchtstift-Website – „Das Schulheft“, gleiche Farben und Schriften wie die Plattform. Keine externen Quellen. */
@font-face {
  font-family: "Inter Display";
  src: url("/schriften/inter-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/schriften/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #f2efe7;
  --paper: #fbfaf6;
  --fg: #141414;
  --muted: #5e5a52;
  --line: rgb(20 20 20 / 0.12);
  --lumen: #f2541b;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font: 17px/1.6 "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lumen); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.breit { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.schmal { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .breit, .schmal { padding: 0 1.5rem; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: var(--ink); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.entwurf { display: block; margin: 0; padding: 0.6rem 1rem; background: var(--fg); color: var(--ink); font-size: 14px; text-align: center; }
mark.offen { background: none; box-shadow: inset 0 -0.35em 0 var(--lumen); color: var(--fg); padding: 0 2px; font-weight: 600; }

/* Kopf und Fuß */
.kopf { border-bottom: 1px solid var(--fg); background: var(--ink); }
.kopf-innen { display: flex; align-items: center; gap: 1rem; min-height: 4rem; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.kopf nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; margin-right: auto; font-size: 15px; }
.kopf nav a, .fuss nav a { text-decoration: none; color: var(--muted); }
.kopf nav a:hover, .fuss nav a:hover, .kopf nav a[aria-current], .fuss nav a[aria-current] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--lumen); text-decoration-thickness: 3px; }
.wortmarke { font-family: "Inter Display", sans-serif; font-variation-settings: "opsz" 32; font-weight: 600; letter-spacing: -0.035em; font-size: 22px; line-height: 1; text-decoration: none; display: inline-flex; align-items: baseline; margin-right: 1rem; }
.wortmarke span { display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.08em; background: var(--lumen); }
.wortmarke.klein { font-size: 18px; }
.fuss { border-top: 1px solid var(--fg); margin-top: 5rem; padding: 2rem 0; font-size: 15px; }
.fuss-innen { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; justify-content: space-between; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* Knöpfe – eckig, Primär schwarz, Hover orange */
.knopf { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.2rem; font-size: 15px; font-weight: 500; line-height: 1.25; text-decoration: none; background: var(--fg); color: var(--ink); border: 1px solid var(--fg); }
.knopf:hover { background: var(--lumen); color: var(--fg); }
.knopf.hohl { background: transparent; color: var(--fg); }
.knopf.hohl:hover { background: var(--fg); color: var(--ink); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Typografie */
.label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.5; margin: 0; }
.label .nr { color: var(--muted); margin-right: 0.75rem; font-variant-numeric: tabular-nums; }
/* Zweite Zeile eines nummerierten Labels beginnt unter dem Text, nicht unter der Nummer */
.label:has(> .nr) { display: flex; }
.label .nr { flex-shrink: 0; }
h1, h2, h3 { font-family: "Inter Display", sans-serif; font-variation-settings: "opsz" 32; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(2.5rem, 8vw, 5.5rem); margin: 1.25rem 0 0; line-height: 0.95; }
.recht h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin: 3rem 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 0.5rem; letter-spacing: -0.015em; }
p, ul, ol, dl { margin: 0.75rem 0 0; }
li + li { margin-top: 0.35rem; }
.mark { box-shadow: inset 0 -0.2em 0 var(--lumen); }
.leise { color: var(--muted); }
.gross { font-size: 1.25rem; line-height: 1.5; max-width: 38rem; }

/* Titelseite */
.titel { background-color: var(--paper); background-image: linear-gradient(rgb(20 20 20 / 0.06) 1px, transparent 1px), linear-gradient(90deg, rgb(20 20 20 / 0.06) 1px, transparent 1px); background-size: 22px 22px; background-position: -1px -1px; border-bottom: 1px solid var(--fg); padding: 3.5rem 0 4rem; }
.titel-raster { display: grid; gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 900px) { .titel-raster { grid-template-columns: 1fr 1.1fr; } }

/* Karten wie in der App: Papier mit 1-px-Tintenrand */
.karte { background: var(--paper); border: 1px solid var(--fg); padding: 1.5rem; }
.karte img { border: 1px solid var(--fg); background: var(--ink); }
.raster { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--fg); }
@media (min-width: 640px) { .raster { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .raster { grid-template-columns: 1fr 1fr 1fr; } }
.raster > div { border-bottom: 1px solid var(--line); padding: 1.75rem 1.5rem 1.75rem 0; }
.raster h3 { margin-top: 0.75rem; }
.raster .nr { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Rechtstexte */
.recht { padding-top: 3rem; }
.recht dl { display: grid; grid-template-columns: 1fr; gap: 0.25rem 1.5rem; }
@media (min-width: 640px) { .recht dl { grid-template-columns: 14rem 1fr; } }
.recht dt { font-weight: 600; }
.recht dd { margin: 0 0 0.75rem; }
.stand { margin-top: 3rem; font-size: 15px; color: var(--muted); }
table { border-collapse: collapse; width: 100%; margin-top: 1rem; font-size: 15px; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 0.5rem 0.75rem 0.5rem 0; }
th { font-weight: 600; }
.tabelle { overflow-x: auto; }
code { font: 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--paper); padding: 0.1em 0.3em; overflow-wrap: anywhere; }
.karte img + .label { margin-top: 1.25rem; }
/* Markenzeile nicht trennen: das orange markierte Wort muss ganz bleiben */
.titel h1 { hyphens: manual; overflow-wrap: break-word; }
