:root {
  --rot: #e30813;
  --gruen: #007830;
  --tinte: #1b2433;
  --grau: #62718d;
  --linie: #e6e9ef;
  --flaeche: #f5f6f8;
  --weiss: #ffffff;
  --sicher-unten: env(safe-area-inset-bottom, 0px);
  --sicher-oben: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Fira Sans", -apple-system, system-ui, sans-serif;
  color: var(--tinte); background: var(--flaeche);
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }

.kopf {
  position: sticky; top: 0; z-index: 20; background: var(--weiss);
  padding: calc(var(--sicher-oben) + 12px) 16px 10px; border-bottom: 1px solid var(--linie);
  display: flex; align-items: center; justify-content: center;
}
.kopf::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: linear-gradient(90deg, var(--rot) 50%, var(--gruen) 50%);
}
.logo { height: 30px; }

main { padding-bottom: calc(76px + var(--sicher-unten)); }
.seite { display: none; padding: 20px 16px; max-width: 640px; margin: 0 auto; }
.seite.aktiv { display: block; }
#karte.seite { padding: 0; max-width: none; }

h1 { font-size: 28px; line-height: 1.15; margin: 4px 0 10px; }
h2 { font-size: 24px; margin: 4px 0 6px; }
h3 { margin: 0 0 6px; }
.lead { color: var(--grau); margin: 0 0 18px; }
.kicker, .block-titel {
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600;
  color: var(--grau); margin: 0 0 8px;
}
.klein { font-size: 13px; color: var(--grau); }
.mitte { text-align: center; }

.hero {
  background: var(--tinte); color: #fff; border-radius: 18px; padding: 22px 20px;
  background-image: radial-gradient(circle at 100% 0, rgba(227,8,19,.45), transparent 55%),
                    radial-gradient(circle at 0 100%, rgba(0,120,48,.45), transparent 55%);
}
.hero .kicker { color: rgba(255,255,255,.7); }
.hero p { margin: 0; color: rgba(255,255,255,.85); }

.karte-block, .spar, .programm, .betreuer, .formular, .danke, .aktion {
  background: var(--weiss); border-radius: 16px; padding: 16px; margin-top: 14px;
  box-shadow: 0 1px 2px rgba(27,36,51,.06);
}
.spar { display: grid; gap: 12px; }
.spar-zeile { display: flex; gap: 12px; align-items: center; }
.spar-zeile span:not(.badge) { color: var(--grau); font-size: 14px; }
.badge { flex: none; min-width: 58px; text-align: center; font-weight: 700; color: #fff; border-radius: 10px; padding: 8px 6px; }
.badge.rot { background: var(--rot); }
.badge.gruen { background: var(--gruen); }

.knopf {
  display: block; width: 100%; text-align: center; text-decoration: none; border: 0; cursor: pointer;
  background: var(--rot); color: #fff; font-weight: 600; padding: 14px 16px; border-radius: 12px; margin-top: 10px;
}
.knopf.zweit { background: var(--weiss); color: var(--tinte); border: 1.5px solid var(--linie); }
.knopf.dunkel { background: var(--tinte); }
.knopf-reihe { display: flex; gap: 8px; }
.knopf-reihe .knopf { flex: 1; }

.schnell { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.schnell button {
  background: var(--weiss); border: 0; border-radius: 16px; padding: 14px 6px; font-size: 13px; font-weight: 500;
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(27,36,51,.06);
}
.schnell .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fdeced; color: var(--rot); }
.schnell button:nth-child(2) .ico { background: #e3f3e9; color: var(--gruen); }
.schnell button:nth-child(3) .ico { background: #eef1f6; color: var(--tinte); }
.schnell .i { width: 24px; height: 24px; }

.anlage-kurz { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.anlage-kurz b { display: block; font-size: 17px; }
.anlage-kurz span { color: var(--grau); font-size: 14px; }
.entfernung { flex: none; font-weight: 700; color: var(--gruen); }

#map { height: 42vh; min-height: 240px; background: #dfe5ec; border-radius: 0 0 20px 20px; position: relative; z-index: 0; isolation: isolate; }
.liste-kopf { padding: 12px 16px 4px; background: var(--flaeche); position: sticky; top: 55px; z-index: 10; }
.liste-kopf input, .formular input, .formular select, .formular textarea {
  width: 100%; border: 1.5px solid var(--linie); background: var(--weiss); border-radius: 12px; padding: 12px 14px; font-size: 16px;
}
.anlagen-liste { padding: 0 16px 16px; }
.land { margin: 18px 4px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--grau); font-weight: 600; }
.gruppe { list-style: none; margin: 8px 0 0; padding: 0; background: var(--weiss); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(27,36,51,.06); }
.zeile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.zeile + .zeile { border-top: 1px solid var(--linie); }
.zeile:active { background: var(--flaeche); }
.zeile-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; background: #fdeced; color: var(--rot); display: grid; place-items: center; }
.zeile-ico .i { width: 20px; height: 20px; }
.zeile-text { flex: 1; min-width: 0; }
.zeile-text b { display: block; font-size: 16px; font-weight: 600; }
.zeile-text small { display: block; color: var(--grau); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marken { display: flex; gap: 4px; margin-top: 4px; }
.marken em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--gruen); background: #e3f3e9; border-radius: 6px; padding: 2px 6px; }
.km { flex: none; font-size: 13px; font-weight: 600; color: var(--tinte); background: var(--flaeche); border-radius: 999px; padding: 4px 9px; }
.pfeil { flex: none; color: #b8c0cc; display: grid; }
.pfeil .i { width: 18px; height: 18px; }
.leer { color: var(--grau); text-align: center; padding: 24px 0; }
.liste-kopf { display: flex; gap: 8px; align-items: center; }
.suche { position: relative; flex: 1; }
.suche .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--grau); }
.liste-kopf .suche input { padding-left: 38px; }
.standort-knopf { flex: none; border: 0; background: var(--tinte); color: #fff; border-radius: 12px; padding: 12px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }

.programm ol { margin: 8px 0 0; padding-left: 22px; color: var(--grau); }
.programm p { margin: 0; color: var(--grau); }
.programm small { color: var(--grau); font-weight: 400; font-size: 14px; }
.programm.premium { border: 2px solid var(--gruen); }
.zwischen { margin-top: 24px; }
.info-liste { background: var(--weiss); border-radius: 16px; padding: 14px 16px 14px 34px; margin: 8px 0 0; }
.info-liste li { margin: 4px 0; }

.formular label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 14px; }
.formular label > input, .formular label > select, .formular label > textarea { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips button { border: 1.5px solid var(--linie); background: var(--weiss); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.chips button.an { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.danke { text-align: center; }
.haken { width: 56px; height: 56px; border-radius: 28px; background: var(--gruen); color: #fff; font-size: 30px; line-height: 56px; margin: 6px auto 10px; }

.aktion { border-left: 5px solid var(--rot); }
.aktion h3 { margin-bottom: 4px; }
.aktion p { margin: 0; color: var(--grau); }
.aktion .wo { font-size: 13px; margin-top: 8px; color: var(--gruen); font-weight: 600; }

.menue { list-style: none; margin: 0; padding: 0; background: var(--weiss); border-radius: 16px; overflow: hidden; }
.menue li + li { border-top: 1px solid var(--linie); }
.menue a, .menue button { display: block; width: 100%; text-align: left; padding: 15px 16px; color: var(--tinte); text-decoration: none; background: none; border: 0; cursor: pointer; }
.betreuer p { margin: 0; color: var(--grau); }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
  background: #fff; border-top: 1px solid var(--linie);
  padding: 6px 4px calc(6px + var(--sicher-unten));
}
.tabs button { flex: 1; border: 0; background: none; font-size: 11px; color: var(--grau); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; cursor: pointer; }
.tabs .i { width: 24px; height: 24px; stroke-width: 1.8; }
.tabs button.aktiv { color: var(--rot); font-weight: 600; }
.tabs button.aktiv .i { stroke-width: 2.2; }

.sheet { position: fixed; inset: 0; z-index: 2000; background: rgba(27,36,51,.4); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-inhalt {
  position: relative; background: var(--weiss); width: 100%; max-width: 640px; margin: 0 auto;
  border-radius: 20px 20px 0 0; padding: 22px 16px calc(20px + var(--sicher-unten)); max-height: 85vh; overflow: auto;
}
.sheet-zu { position: absolute; right: 12px; top: 10px; border: 0; background: var(--flaeche); width: 34px; height: 34px; border-radius: 17px; font-size: 22px; line-height: 1; cursor: pointer; }
.merkmale { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.merkmale span { background: var(--flaeche); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.merkmale .gut { background: #e3f3e9; color: var(--gruen); font-weight: 600; }

.pin { width: 16px; height: 16px; border-radius: 50%; background: var(--rot); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.ich { width: 14px; height: 14px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26,115,232,.2); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pin.gruen { background: var(--gruen); }
.zeile.gruen .zeile-ico { background: #e3f3e9; color: var(--gruen); }
.farbpunkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; background: var(--rot); }
.farbpunkt.gruen { background: var(--gruen); }

/* Start: Meine Anlage / In deiner Nähe */
.start-anlage { padding: 0; overflow: hidden; }
.start-anlage-text { padding: 14px 16px 16px; }
.start-foto { display: block; width: 100%; height: 140px; object-fit: cover; }
.stern-titel { display: inline-grid; color: #f2b400; vertical-align: -3px; margin-right: 4px; }
.stern-titel .i { width: 14px; height: 14px; fill: currentColor; }
.spar-jetzt { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--rot); border-radius: 6px; padding: 2px 6px; }
.spar-jetzt.gross, .spar-bald { display: inline-block; font-size: 13px; padding: 5px 10px; border-radius: 8px; margin-top: 8px; }
.spar-bald { background: #fdeced; color: var(--rot); font-weight: 600; }
.hinweis-warn { display: flex; gap: 8px; align-items: center; color: #b4060f; font-weight: 600; font-size: 14px; margin: 10px 0 0; }
.hinweis-warn .i { width: 18px; height: 18px; flex: none; }
.marken { flex-wrap: wrap; }
.marken em.warn { color: #b4060f; background: #fdeced; }
.fav-mini { display: inline-grid; color: #f2b400; margin-left: 6px; vertical-align: -2px; }
.fav-mini .i { width: 14px; height: 14px; fill: currentColor; }

/* Detail */
.sheet-foto { display: block; width: calc(100% + 32px); margin: -22px -16px 14px; height: 190px; object-fit: cover; border-radius: 20px 20px 0 0; }
.fav-knopf { display: inline-flex; gap: 6px; align-items: center; border: 1.5px solid var(--linie); background: var(--weiss); border-radius: 999px; padding: 7px 14px; margin: 12px 0 4px; font-size: 14px; font-weight: 600; cursor: pointer; }
.fav-knopf .i { width: 18px; height: 18px; color: #c9ced6; }
.fav-knopf.an { border-color: #f2b400; background: #fff8e1; }
.fav-knopf.an .i { color: #f2b400; fill: currentColor; }
.info-block { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linie); margin-top: 10px; }
.info-block > .i { flex: none; width: 22px; height: 22px; color: var(--grau); margin-top: 1px; }
.info-block ul { margin: 4px 0 0; padding-left: 18px; color: var(--grau); font-size: 14px; }
.info-block .klein { margin: 4px 0 0; }
.info-block.warn { background: #fdeced; border: 0; border-radius: 12px; padding: 12px; }
.info-block.warn > .i, .info-block.warn b { color: #b4060f; }
.spar-liste { list-style: none; padding-left: 0 !important; }
