:root {
  --text: #16181d;
  --leise: #5b616e;
  --linie: #e3e5ea;
  --flaeche: #f6f7f9;
  --gold: #d99a0b;
  --gold-hell: #fdf3dc;
  --link: #0f4c81;
  --rund: 14px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: var(--schrift);
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.unsichtbar {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Kopf / Startansicht ---------- */

.kopf {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

body.start .kopf {
  flex: 1;
  justify-content: center;
  padding-bottom: 12vh;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.marke-stern {
  width: 56px; height: 56px;
  fill: var(--gold);
}

.marke-zahl {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
}

.unterzeile {
  margin: 10px 0 28px;
  color: var(--leise);
  font-size: 17px;
}

.suche {
  position: relative;
  width: 100%;
  max-width: 620px;
}

.suche input {
  width: 100%;
  height: 54px;
  padding: 0 58px 0 22px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}

.suche input:hover { box-shadow: 0 2px 8px rgba(16, 24, 40, .10); }

.suche input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-hell);
}

.suche input::-webkit-search-cancel-button { display: none; }

.suche-knopf {
  position: absolute;
  top: 6px; right: 6px;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.suche-knopf:hover { background: #33363f; }

.suche-knopf svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.naehe {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--leise);
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}

.naehe input { accent-color: var(--text); width: 16px; height: 16px; }

/* ---------- Ergebnisansicht ---------- */

body.hat-ergebnisse .kopf {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--linie);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  z-index: 2;
}

body.hat-ergebnisse .marke-stern { width: 28px; height: 28px; }
body.hat-ergebnisse .marke-zahl { font-size: 30px; letter-spacing: -1px; }
body.hat-ergebnisse .unterzeile { display: none; }
body.hat-ergebnisse .suche { max-width: 560px; flex: 1 1 320px; }
body.hat-ergebnisse .suche input { height: 46px; font-size: 16px; }
body.hat-ergebnisse .suche-knopf { top: 5px; right: 5px; width: 36px; height: 36px; }
body.hat-ergebnisse .naehe { margin-top: 0; }

.inhalt {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px 40px;
  flex: 1;
}

body.start .inhalt { display: none; }

.hinweis {
  color: var(--leise);
  font-size: 14px;
  margin: 14px 0 6px;
  min-height: 21px;
}

.hinweis.fehler { color: #a3261b; }

.test-marke {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #7a4b00;
  background: var(--gold-hell);
  border-radius: 6px;
}

.liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eintrag {
  padding: 18px 0;
  border-bottom: 1px solid var(--linie);
}

.eintrag:last-child { border-bottom: 0; }

.eintrag-name {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.eintrag-name a {
  color: var(--text);
  text-decoration: none;
}

.eintrag-name a:hover { text-decoration: underline; }

.eintrag-wertung {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--leise);
}

.sterne {
  display: inline-flex;
  gap: 1px;
}

.sterne svg { width: 15px; height: 15px; fill: var(--gold); }

.wert {
  font-weight: 700;
  color: var(--text);
}

.eintrag-info {
  margin-top: 3px;
  font-size: 15px;
  color: var(--leise);
}

.eintrag-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eintrag-links a {
  font-size: 14px;
  color: var(--link);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--linie);
  border-radius: 999px;
}

.eintrag-links a:hover { background: var(--flaeche); }

.eintrag-text {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text);
  max-width: 640px;
}

.werkzeuge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--leise);
}

.werkzeuge select {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 5px 10px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: #fff;
}

.eintrag-quelle {
  margin-top: 8px;
  font-size: 12px;
  color: var(--leise);
}

.eintrag.eigen .eintrag-quelle {
  color: #6b4a00;
}

.eintrag.eigen .eintrag-quelle::before {
  content: "● ";
  color: var(--gold);
}

.mehr {
  display: block;
  margin: 24px auto 0;
  padding: 11px 24px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 999px;
  cursor: pointer;
}

.mehr:hover { background: #eceef2; }
.mehr:disabled { opacity: .6; cursor: default; }

.laedt .liste { opacity: .45; transition: opacity .2s; }

/* ---------- Fuß ---------- */

.fuss {
  padding: 18px 24px 22px;
  text-align: center;
  font-size: 13px;
  color: var(--leise);
  border-top: 1px solid var(--linie);
  background: var(--flaeche);
}

.fuss p { margin: 2px 0; }
.fuss .klein { font-size: 12px; }

.google-maps-hinweis {
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
  color: #5e5e5e;
  letter-spacing: .1px;
}

@media (max-width: 560px) {
  .marke-zahl { font-size: 52px; }
  .marke-stern { width: 44px; height: 44px; }
  .unterzeile { font-size: 15px; text-align: center; }
  body.hat-ergebnisse .kopf { padding: 12px 16px; }
  .inhalt { padding: 4px 16px 32px; }
  .eintrag-name { font-size: 17px; }
}

/* ---------- Inhaltsseiten ---------- */

.seiten-titel { font-size: 28px; line-height: 1.25; margin: 18px 0 8px; letter-spacing: -.3px; }
.seiten-intro { color: var(--leise); font-size: 16px; margin: 0 0 14px; }
.brotkrumen { font-size: 13px; color: var(--leise); margin-top: 14px; }
.brotkrumen a { color: var(--leise); }
.link-wolke { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.link-wolke a, .start-links a {
  font-size: 14px; color: var(--text); text-decoration: none;
  padding: 5px 12px; border: 1px solid var(--linie); border-radius: 999px; background: #fff;
}
.link-wolke a:hover, .start-links a:hover { background: var(--flaeche); }
.start-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 20px 40px; }
body.start .start-links { margin-top: -10vh; }
.inhalt h2 { font-size: 19px; margin: 26px 0 6px; }
.inhalt h3 { font-size: 16px; margin: 16px 0 4px; }
.tipp, .fragen, .querverweise { margin-top: 8px; }
.knopf {
  font: inherit; font-size: 15px; font-weight: 600; color: #fff; background: var(--text);
  border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer;
}
.knopf:hover { background: #33363f; }
.knopf:disabled { background: #9aa0aa; cursor: default; }
.thema-knopf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 4px; }
.klein-hinweis { font-size: 13px; color: var(--leise); }
.text-seite p { max-width: 680px; }
.text-seite pre { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 10px 14px; }
mark { background: #ffe9a8; }

/* ---------- Formulare ---------- */

.formular { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin-top: 10px; }
.formular label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.formular input, .formular select, .formular textarea {
  font: inherit; font-size: 15px; font-weight: 400; padding: 9px 12px;
  border: 1px solid var(--linie); border-radius: 10px; background: #fff; color: var(--text);
}
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-hell); }
.formular .zeile { display: flex; gap: 12px; }
.formular .zeile label { flex: 1; }
.formular .zeile .schmal { flex: 0 0 110px; }
.formular .haken { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.formular .haken input { margin-top: 3px; }
.formular .knopf { align-self: flex-start; }
.honig { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.meldung-ok { background: #e9f7ee; border: 1px solid #b7e2c4; padding: 12px 14px; border-radius: 10px; }
.meldung-fehler { background: #fdecea; border: 1px solid #f5c2bd; padding: 12px 14px; border-radius: 10px; color: #8a1f14; }

.fuss-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
.fuss-links a { color: var(--leise); font-size: 13px; }

[hidden] { display: none !important; }
