:root {
  --akzent: #0f6b5f;
  --akzent-hell: #e4f1ee;
  --text: #16202c;
  --grau: #5d6b7a;
  --linie: #d3dae2;
  --flaeche: #ffffff;
  --hintergrund: #f4f6f9;
  --gut: #1c6b3c;
  --gut-flaeche: #e6f4ec;
  --schlecht: #9b2222;
  --schlecht-flaeche: #fbeaea;
  --neu: #a9530a;
  --neu-flaeche: #fdeedd;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--hintergrund);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.kopf {
  background: var(--akzent);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
}

.marke { color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.kopf a { color: #fff; }
.kopf nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 0.95rem; }
.kopf .still { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }

.inhalt {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  flex: 1;
}

.fuss { padding: 18px 16px 28px; text-align: center; color: var(--grau); font-size: 0.85rem; }

h1 { font-size: 1.45rem; margin: 0 0 12px; }
h2 { font-size: 1.12rem; margin: 0 0 10px; }
a { color: var(--akzent); }

.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.stelle.ist-neu { border-left: 4px solid var(--neu); }
.stelle h2 { margin: 6px 0 10px; line-height: 1.3; }
.stelle .zeile { margin: 0 0 8px; }

.box { padding: 12px 14px; border-radius: var(--radius); margin: 0 0 16px; }
.gut { background: var(--gut-flaeche); color: var(--gut); }
.schlecht { background: var(--schlecht-flaeche); color: var(--schlecht); }
.hinweis { background: var(--akzent-hell); color: var(--akzent); }

.still-text { color: var(--grau); font-size: 0.88rem; margin: 0; }

.kennzahlen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  margin-bottom: 14px;
  color: var(--grau);
  font-size: 0.92rem;
}
.kennzahlen strong { color: var(--text); font-size: 1.15rem; }

.kopf-zeile { display: flex; flex-wrap: wrap; gap: 6px; }

.marker {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.marker.neu { background: var(--neu-flaeche); color: var(--neu); }
.marker.merken { background: var(--akzent-hell); color: var(--akzent); }
.marker.beworben { background: var(--gut-flaeche); color: var(--gut); }
.marker.aus { background: var(--schlecht-flaeche); color: var(--schlecht); }
.marker.quelle { background: var(--hintergrund); color: var(--grau); border: 1px solid var(--linie); }

.knopf, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: 0;
  border-radius: var(--radius);
  background: var(--akzent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.knopf.breit, button.breit { width: 100%; }
.knopf.zweit, button.zweit { background: var(--flaeche); color: var(--akzent); border: 1px solid var(--akzent); }
.knopf.still, button.still {
  background: var(--flaeche);
  color: var(--grau);
  border: 1px solid var(--linie);
  min-height: 38px;
  padding: 5px 12px;
  font-size: 0.88rem;
  font-weight: 500;
}

.reihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reihe.abstand { margin-bottom: 16px; }
form.inline { display: inline; margin: 0; }

.filterzeile { display: grid; gap: 4px 14px; margin-bottom: 14px; }
.filterzeile .feld label { margin: 10px 0 5px; }

label { display: block; font-weight: 600; margin: 12px 0 5px; }

select, input[type="text"], input[type="password"], textarea {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 10px;
}
textarea { min-height: auto; }

.tabelle { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tabelle th, .tabelle td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--linie); }
.tabelle th { color: var(--grau); font-weight: 600; }
.zeile-fehler { background: var(--schlecht-flaeche); }

.roh {
  margin: 0;
  padding: 10px;
  background: var(--hintergrund);
  border-radius: 10px;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow: auto;
}

@media (min-width: 620px) {
  .filterzeile { grid-template-columns: repeat(4, 1fr); align-items: end; }
  .filterzeile .feld label { margin: 0 0 5px; }
}
