:root {
  --text: #1c2430;
  --leise: #5b6676;
  --grund: #ffffff;
  --flaeche: #f3f5f8;
  --rand: #d8dde5;
  --akzent: #0b6b4f;
  --akzent-text: #ffffff;
  --warn: #8a4b00;
  --warn-grund: #fff4e0;
  --fehler: #a0182b;
  --fehler-grund: #fde8eb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e7ebf0;
    --leise: #a7b1be;
    --grund: #12161c;
    --flaeche: #1d232b;
    --rand: #343c47;
    --akzent: #3fbf8f;
    --akzent-text: #0b1410;
    --warn: #ffcc80;
    --warn-grund: #3a2a10;
    --fehler: #ff9aa8;
    --fehler-grund: #3a1219;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 0 16px 32px;
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--grund);
  overflow-wrap: anywhere;
}
h1 { font-size: 1.6rem; margin: 24px 0 4px; }
.unterzeile { margin: 0 0 20px; color: var(--leise); }

label { display: block; font-weight: 600; margin: 12px 0 6px; }
.zeile { display: flex; gap: 8px; }
input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  background: var(--grund);
  border: 2px solid var(--rand);
  border-radius: 10px;
}
input:focus { outline: 3px solid var(--akzent); outline-offset: 1px; }
button, .knopf {
  min-height: 48px;
  min-width: 48px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  color: var(--akzent-text);
  background: var(--akzent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
details { margin-top: 12px; }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--akzent); font-weight: 600; }

.hinweis { padding: 10px 12px; border-radius: 10px; background: var(--warn-grund); color: var(--warn); }
.meldung { padding: 14px; border-radius: 12px; background: var(--flaeche); margin-top: 20px; }
.meldung.fehler { background: var(--fehler-grund); color: var(--fehler); }
.meldung h2 { margin: 0 0 6px; font-size: 1.15rem; }
.meldung p { margin: 0 0 8px; }

.auswahl { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 0; list-style: none; }
.auswahl button { background: var(--flaeche); color: var(--text); border: 2px solid var(--rand); font-weight: 600; }

.liste { list-style: none; padding: 0; margin: 16px 0 0; }
.karte { border: 2px solid var(--rand); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.karte.erste { border-color: var(--akzent); }
.kopf { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.portal { font-weight: 700; font-size: 1.1rem; }
.quote { font-weight: 800; font-size: 1.35rem; }
.euro { font-weight: 700; margin: 4px 0; }
.klein { color: var(--leise); font-size: 0.92rem; margin: 4px 0; }
.aktion { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.anzeige { font-size: 0.8rem; color: var(--leise); border: 1px solid var(--rand); border-radius: 6px; padding: 1px 6px; }
.weitere { padding-left: 18px; margin: 6px 0 0; }
.weitere li { margin-bottom: 8px; }
.weitere .euro, .weitere .klein { margin: 2px 0; }
.marke {
  display: inline-block;
  margin: 6px 0 2px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--warn);
  background: var(--warn-grund);
  border: 1px solid var(--warn);
}
.weitere .marke { margin: 0 4px 0 0; padding: 1px 8px; font-size: 0.78rem; }
.linkfehler { color: var(--fehler); font-weight: 600; }

footer { margin-top: 40px; color: var(--leise); font-size: 0.88rem; }
