:root {
  --grund: #f6f6f3;
  --text: #1c2124;
  --grau: #5b6469;
  --linie: #d9dcd8;
  --oliv: #3b4a3f;
  --oliv-hell: #e9ede7;
  --gold: #a8842a;
  --marine: #1f3a5f;
  --marine-hell: #e6ecf4;
  --sani: #8a1c2b;
  --rund: 10px;
  font-size: 17px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--grund); line-height: 1.55; }
a { color: var(--oliv); }
main { max-width: 980px; margin: 0 auto; padding: 0 1rem 3rem; }
img { max-width: 100%; height: auto; }

.kopf { background: var(--oliv); color: #fff; padding: .7rem 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: center; justify-content: space-between; }
.marke { color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; display: flex; align-items: center; }
.marke span:last-child { color: #e2c46b; }
.stern { width: 18px; height: 18px; margin-right: .45rem; background: url(/favicon.svg) center/contain no-repeat; display: inline-block; }
.kopf nav { display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .92rem; }
.kopf nav a { color: #dfe6dc; text-decoration: none; padding: .2rem 0; }
.kopf nav a[aria-current] { color: #fff; border-bottom: 2px solid #e2c46b; }

.krumen { font-size: .85rem; color: var(--grau); margin: 1rem 0 0; }
.krumen a { color: var(--grau); }
h1 { font-size: 1.9rem; line-height: 1.2; margin: .8rem 0 .6rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.3rem 0 .4rem; }
.lead { font-size: 1.07rem; }
.klein { font-size: .88rem; color: var(--grau); }
.kasten { background: #fff; border: 1px solid var(--linie); border-radius: var(--rund); padding: 1rem 1.2rem; margin: 1rem 0; }
.hinweis { background: var(--oliv-hell); border-left: 4px solid var(--oliv); padding: .7rem .9rem; border-radius: 0 8px 8px 0; margin: 1rem 0; }
.stand { font-size: .85rem; color: var(--grau); }

/* rank profile */
.profil { display: grid; grid-template-columns: 230px 1fr; gap: 1.2rem; align-items: start; background: #fff; border: 1px solid var(--linie); border-radius: var(--rund); padding: 1.1rem; }
.profil .abzeichen { background: var(--oliv-hell); border-radius: 8px; padding: .8rem; text-align: center; }
.profil .abzeichen { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.profil .abzeichen figure { margin: 0; }
.profil .abzeichen img { max-height: 170px; width: auto; display: block; margin: 0 auto .2rem; }
.profil dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.profil dt { color: var(--grau); }
.profil dd { margin: 0; font-weight: 600; }
.profil.marine .abzeichen { background: var(--marine-hell); }
.profil .abzeichen img { max-width: 95px; }
.profil.marine .abzeichen img { max-width: 120px; }
@media (max-width: 600px) { .profil { grid-template-columns: 1fr; } .profil .abzeichen img { max-height: 130px; } }

.nachbarn { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; font-size: .95rem; }
.nachbarn a { text-decoration: none; background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: .5rem .8rem; }
.nachbarn .weiter { margin-left: auto; text-align: right; }

/* tables */
.tabelle { width: 100%; border-collapse: collapse; background: #fff; font-size: .93rem; margin: .8rem 0; }
.tabelle-rahmen { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--rund); }
.tabelle th, .tabelle td { padding: .5rem .6rem; border-bottom: 1px solid #ecedea; text-align: left; vertical-align: middle; }
.tabelle thead th { background: var(--oliv-hell); font-size: .85rem; position: sticky; top: 0; }
.tabelle td.bild { width: 64px; text-align: center; }
.tabelle td.bild img { max-height: 46px; width: auto; }
.tabelle tr.gruppe th { background: #f1f2ee; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); }
.tabelle td.zahl, .tabelle th.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* overview cards */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; margin: 1rem 0; }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--rund); padding: 1rem; text-decoration: none; color: var(--text); display: block; }
.karte:hover { border-color: var(--oliv); }
.karte strong { display: block; font-size: 1.05rem; color: var(--oliv); margin-bottom: .2rem; }

/* quiz */
.quiz { background: #fff; border: 1px solid var(--linie); border-radius: var(--rund); padding: 1.2rem; text-align: center; }
.quiz img { max-height: 160px; width: auto; margin: .5rem auto 1rem; display: block; }
.quiz .antworten { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.quiz button { font: inherit; padding: .7rem; border-radius: 8px; border: 1px solid var(--linie); background: #fff; cursor: pointer; }
.quiz button.richtig { background: #dcefdc; border-color: #2e7d4f; }
.quiz button.falsch { background: #f7dedd; border-color: #b3261e; }
.quiz .knopf { background: var(--oliv); color: #fff; border: 0; margin-top: .6rem; padding: .6rem 1.3rem; }
.quiz .stand-quiz { margin-top: .8rem; color: var(--grau); }

/* buttons, forms */
.knopf { display: inline-block; background: var(--oliv); color: #fff; border: 0; border-radius: 999px; padding: .6rem 1.3rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
select, input { font: inherit; padding: .45rem .6rem; border: 1px solid var(--linie); border-radius: 8px; background: #fff; }
.rechner-zeile { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; }
.rechner-zeile label { display: flex; flex-direction: column; font-size: .88rem; color: var(--grau); }
.betrag { font-size: 1.6rem; font-weight: 700; color: var(--oliv); }

details { background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: .6rem .9rem; margin: .5rem 0; }
summary { font-weight: 600; cursor: pointer; }

.fuss { background: #2a332d; color: #c9d0c7; padding: 1.4rem 1rem 2rem; font-size: .9rem; margin-top: 2rem; }
.fuss > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.fuss a { color: #fff; }
.fuss nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .8rem auto; }

@media (max-width: 520px) { h1 { font-size: 1.5rem; } .kopf nav { font-size: .85rem; } .quiz .antworten { grid-template-columns: 1fr; } }
