/* Diktat – Statistik-Seite. CI: Tannengrün, Karamell, Creme (01-marketing/marke/LIESMICH.md).
   Joes Geschmack: Serif, Haarlinien, Weißraum – keine Kacheln, keine Pillen. */
:root {
  --gruen: #12291d;
  --braun: #7c4a1f;
  --karamell: #b97c3e;
  --creme: #f2ecdd;
  --linie: #cbbf9f;
  --leise: #5f6b62;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--gruen);
  font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  line-height: 1.55;
  font-size: 17px;
}
main { max-width: 52rem; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }
h1 { font-weight: normal; font-size: 2rem; margin: 0 0 .25rem; letter-spacing: .01em; }
h2 { font-weight: normal; font-size: 1.3rem; margin: 2.6rem 0 .8rem; padding-bottom: .35rem; border-bottom: 1px solid var(--linie); }
p.leise, .leise { color: var(--leise); font-size: .92rem; }
nav { margin: 1.2rem 0 0; padding: .6rem 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
nav a { color: var(--gruen); text-decoration: none; margin-right: 1.4rem; }
nav a[aria-current='page'] { border-bottom: 1px solid var(--karamell); }
nav a:hover { color: var(--braun); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .45rem .6rem .45rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-weight: normal; color: var(--leise); font-size: .88rem; }
td.zahl, th.zahl { text-align: right; }
.gross { font-size: 1.7rem; }
form { margin: .8rem 0 1.2rem; }
label { display: block; margin: .7rem 0 .2rem; color: var(--leise); font-size: .9rem; }
input, textarea, select {
  font: inherit; color: var(--gruen); background: transparent;
  border: 0; border-bottom: 1px solid var(--gruen); padding: .3rem 0; width: 100%;
}
textarea { border: 1px solid var(--linie); padding: .5rem; min-height: 6rem; }
input:focus, textarea:focus { outline: none; border-color: var(--karamell); }
button {
  font: inherit; color: var(--gruen); background: none; cursor: pointer;
  border: 1px solid var(--gruen); padding: .35rem 1rem; margin-top: .8rem;
}
button:hover { border-color: var(--karamell); color: var(--braun); }
button.leise { border: 0; padding: 0; margin: 0; color: var(--braun); text-decoration: underline; text-underline-offset: 3px; }
.zeile { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.zeile > * { flex: 1 1 12rem; }
.zeile > button { flex: 0 0 auto; }
.meldung { margin: 1rem 0; padding: .6rem 0 .6rem 1rem; border-left: 1px solid var(--karamell); }
.schluessel { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; word-break: break-all; }
[hidden] { display: none !important; }
.umbruch { white-space: pre-wrap; }

/* Keep long names and wide statistics within their own table region. */
:root { color-scheme: light dark; }
main, #inhalt, .zeile > * { min-width: 0; }
#kopfzeile, p, td { overflow-wrap: anywhere; }
.tabelle { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.tabelle-breit table { min-width: 38rem; }
.tabelle-breit td:first-child { max-width: 14rem; }
td.zahl, th.zahl { white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; }
nav a { margin-right: 0; }
:focus-visible { outline: 2px solid var(--karamell); outline-offset: 3px; }
@media (prefers-color-scheme: dark) {
  :root { --gruen: #f2ecdd; --braun: #dfb17e; --karamell: #d6a674; --creme: #101d16; --linie: #435244; --leise: #b5c1b6; }
}
