/* Klarraster-Website. Farben aus der Marke (marke.py), Kontraste nach WCAG AA nachgerechnet. */
@font-face {
  font-family: "Nunito";
  src: url("schrift/nunito-latin.woff") format("woff");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --grund: #fbf7f1;
  --text: #3a3633;
  --leise: #625b54;
  --akzent: #9c4524;
  --akzent-dunkel: #7d361b;
  --sand: #efe5d6;
  --kasten: #f4ead9;
  --linie: #e6d9c6;
  --gelb: #e5b65c;
  --gruen: #9bb59a;
  --blau: #9bb4c8;
  --terrakotta: #d98c6a;
  --karte: #ffffff;
  --breite: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--akzent); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--akzent-dunkel); }
a:focus-visible, .knopf:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 4px; }

.springen {
  position: absolute; left: -999px; top: 0; background: var(--text); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.springen:focus { left: 1rem; top: 1rem; color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); background: var(--grund); }
.kopf-innen {
  max-width: 64rem; margin: 0 auto; padding: .75rem 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.marke { display: flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 900; font-size: 1.3rem; letter-spacing: -.01em; }
.marke svg { width: 30px; height: 30px; flex: none; }
.kopf nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.kopf nav a { color: var(--text); text-decoration: none; font-weight: 700; }
.kopf nav a:hover { color: var(--akzent); text-decoration: underline; }

/* Inhalt */
main { max-width: var(--breite); margin: 0 auto; padding: 1.5rem 16px 3rem; }
main.breit { max-width: 64rem; }

.pfad { font-size: .9rem; color: var(--leise); margin: 0 0 1rem; }
.pfad a { color: var(--leise); }

h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 900; margin: .2rem 0 1rem; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.7rem); font-weight: 800; margin: 2.4rem 0 .8rem; padding-top: .4rem; }
h3 { font-size: 1.2rem; font-weight: 800; margin: 1.8rem 0 .5rem; }
h2[id], h3[id] { scroll-margin-top: 1rem; }

p { margin: 0 0 1rem; }
.einleitung { font-size: 1.15rem; color: var(--text); }
.stand { font-size: .9rem; color: var(--leise); }

ul, ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
li { margin: .3rem 0; }
li::marker { color: var(--akzent); font-weight: 800; }

strong { font-weight: 800; }

/* Inhaltsverzeichnis */
.toc { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 1rem 1.25rem; margin: 1.5rem 0 1rem; }
.toc p { font-weight: 800; margin: 0 0 .4rem; }
.toc ol { margin: 0; }

/* Tipp-Kasten */
.tipp { background: var(--kasten); border-left: 5px solid var(--gelb); border-radius: 0 12px 12px 0; padding: .9rem 1.1rem; margin: 1.3rem 0; }
.tipp p:last-child { margin-bottom: 0; }

/* Checkliste */
ul.checkliste { list-style: none; padding-left: 0; }
ul.checkliste li { position: relative; padding-left: 2rem; }
ul.checkliste li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.05rem; height: 1.05rem;
  border: 2px solid var(--akzent); border-radius: 4px; background: var(--karte);
}

/* Tabellen */
.tabelle { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--linie); border-radius: 12px; background: var(--karte); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .8rem; border-bottom: 1px solid var(--linie); }
th { background: var(--sand); font-weight: 800; }
tr:last-child td { border-bottom: 0; }

/* Produkte */
.produkte { margin: 2.6rem 0 1.5rem; padding: 1.4rem 1.2rem 1.2rem; background: var(--sand); border-radius: 18px; }
.produkte h2 { margin-top: 0; padding-top: 0; }
.produkte .hinweis { font-size: .95rem; color: var(--text); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--kasten); }
.karte-text { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.karte h3 { margin: 0; font-size: 1.08rem; }
.karte p { margin: 0; font-size: .95rem; }
.karte .art { font-size: .85rem; color: var(--leise); font-weight: 700; }
.marke-bald { display: inline-block; background: var(--gelb); color: var(--text); border-radius: 99px; padding: .05rem .6rem; font-size: .8rem; font-weight: 800; }
.knopf {
  margin-top: auto; align-self: flex-start; display: inline-block; background: var(--akzent); color: #fff; text-decoration: none;
  font-weight: 800; padding: .55rem 1rem; border-radius: 99px;
}
.knopf:hover { background: var(--akzent-dunkel); color: #fff; }

/* Verwandte Themen */
.verwandt { border-top: 1px solid var(--linie); margin-top: 2.5rem; padding-top: 1rem; }
.verwandt h2 { font-size: 1.2rem; margin: .6rem 0; }

/* Startseite */
.start { padding: 1rem 0 .5rem; }
.start h1 { max-width: 40rem; }
.start .einleitung { max-width: 42rem; }
.gruppe h2 { margin-top: 2.2rem; }
.themen { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.themen li { margin: 0; }
.thema { display: flex; flex-direction: column; height: 100%; background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; color: var(--text); text-decoration: none; }
.thema:hover { border-color: var(--akzent); }
.thema:hover strong { color: var(--akzent); text-decoration: underline; }
.thema img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; background: var(--kasten); }
.thema span { padding: .8rem 1rem 1rem; display: block; }
.thema strong { display: block; font-size: 1.08rem; line-height: 1.3; margin-bottom: .3rem; }
.thema em { font-style: normal; font-size: .95rem; color: var(--leise); }
.ueber { max-width: var(--breite); }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); background: var(--sand); font-size: .93rem; }
.fuss-innen { max-width: 64rem; margin: 0 auto; padding: 1.5rem 16px 2rem; }
.fuss p { margin: 0 0 .6rem; }
.fuss ul { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.fuss a { color: var(--text); font-weight: 700; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .produkte { padding: 1.1rem .8rem .9rem; margin-left: -4px; margin-right: -4px; }
}

@media print {
  .kopf nav, .fuss, .produkte, .toc { display: none; }
  body { background: #fff; }
}
