/* TANKWETTER Karte — Section „Nächste Ausfahrt" der Startseite. Baut auf style.css auf (Tokens, .schild). */

.karte-sektion { background: var(--beton); }
.karte-sektion .schild-kopf { align-items: center; }
.reichweite {
  color: #EAF1FA; font-family: var(--mono); font-size: .8rem; line-height: 1.5;
  border-left: 3px solid var(--amber); padding-left: .85rem; max-width: 30ch; justify-self: end;
}
.reichweite strong { color: var(--amber); font-weight: 600; }
.karte-inhalt { max-width: var(--breite); margin: 1.4rem auto 0; }

/* Steuerleiste (Fahrzeug) */
.steuer {
  display: grid; grid-template-columns: auto auto 1fr auto;
  gap: 1rem 1.6rem; align-items: start;
  background: var(--weiss); border: 1px solid var(--beton-tief); border-radius: 16px;
  padding: 1rem 1.2rem 1.1rem;
}
.steuer-feld label, .steuer-label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--asphalt-60); margin-bottom: .3rem; }
.einheit-zeile { display: flex; align-items: baseline; gap: .4rem; }
.einheit-zeile input {
  font-family: var(--display); font-weight: 700; font-size: 1.7rem;
  width: 4.2ch; border: 0; border-bottom: 3px solid var(--beton-tief);
  background: transparent; color: var(--asphalt);
}
.einheit-zeile input:focus { border-bottom-color: var(--blau); outline: none; }
.einheit-zeile span { font-family: var(--mono); font-size: .75rem; color: var(--asphalt-60); }
.profil-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.profil-chips button {
  font-family: var(--body); font-size: .84rem; font-weight: 500;
  background: var(--beton); color: var(--asphalt);
  border: 1px solid var(--beton-tief); border-radius: 999px;
  padding: .32rem .8rem; cursor: pointer;
}
.profil-chips button:hover, .profil-chips button.aktiv { border-color: var(--blau); color: var(--blau); }
.steuer-ort-link {
  align-self: center; justify-self: end;
  font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blau); text-decoration: none; border-bottom: 2px solid var(--blau);
}

/* Ergebnis */
.ergebnis { padding-top: 1.2rem; }
.ergebnis[hidden] { display: none; }
.demo-hinweis {
  background: #FFF4D6; border: 1px solid #EAD189; color: #7A5B00;
  border-radius: 10px; padding: .55rem .9rem; font-size: .85rem; margin-bottom: 1rem;
}
.empfehlung {
  background: var(--gruen-flaeche); border: 1.5px solid #B5DFC6; border-radius: 16px;
  padding: 1.1rem 1.3rem; margin-bottom: 1.2rem;
}
.empfehlung.neutral { background: var(--weiss); border-color: var(--beton-tief); }
.emp-zeile1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.15; text-transform: uppercase; }
.emp-zeile1 .gruen { color: var(--gruen); }
.emp-zeile2 { margin-top: .3rem; color: #3A4450; font-size: .95rem; }
.emp-zeile2 strong { color: var(--gruen); }
.emp-zeile2 .mehr-btn { margin-top: .5rem; }

.karte-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; align-items: start; }
.map {
  height: 520px; border-radius: 16px; border: 1px solid var(--beton-tief);
  background: var(--beton-tief); z-index: 0;
}

/* Marker: Mini-Preisschilder */
.preisschild {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--asphalt); color: #fff;
  font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: -.01em;
  border-radius: 7px; padding: 3px 7px 3px;
  border: 1.5px solid rgba(255,255,255,.75);
  box-shadow: 0 3px 10px -2px rgba(22,27,34,.5);
  white-space: nowrap; cursor: pointer;
  transform: translate(-50%, -130%);
  position: relative;
}
.preisschild::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top: 5px solid var(--asphalt);
}
.preisschild sup { font-size: .6em; }
.preisschild.best { background: var(--gruen); }
.preisschild.best::after { border-top-color: var(--gruen); }
.preisschild.teuerste { background: var(--rot); }
.preisschild.teuerste::after { border-top-color: var(--rot); }
.preisschild.unplausibel { background: var(--asphalt-60); text-decoration: line-through; }
.preisschild.unplausibel::after { border-top-color: var(--asphalt-60); }
.station.unplausibel .st-preis { text-decoration: line-through; color: var(--asphalt-60); }
.st-badge.st-badge--warn { background: var(--rot-flaeche); color: var(--rot); }
.preisschild.start {
  background: var(--blau); font-family: var(--display); font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; font-size: 11px;
}
.preisschild.start::after { border-top-color: var(--blau); }
.preisschild.gewaehlt { outline: 2.5px solid var(--blau); outline-offset: 1px; }
.preispunkt {
  display: block; width: 11px; height: 11px; border-radius: 50%;
  background: var(--asphalt); border: 2px solid #fff;
  box-shadow: 0 2px 6px -1px rgba(22,27,34,.45);
  transform: translate(-50%, -50%); cursor: pointer;
}
.preispunkt.gewaehlt { background: var(--blau); width: 14px; height: 14px; }

/* Stationsliste */
.stationen { list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; padding-right: 2px; }
.station {
  display: grid; grid-template-columns: 1fr auto; gap: .15rem .8rem;
  background: var(--weiss); border: 1px solid var(--beton-tief); border-radius: 12px;
  padding: .65rem .9rem; cursor: pointer;
}
.station:hover { border-color: var(--blau); }
.station.gewaehlt { box-shadow: 0 0 0 2px var(--blau); }
.station.best { background: var(--gruen-flaeche); border-color: #B5DFC6; }
.st-name { font-weight: 700; font-size: .98rem; }
.st-preis { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; justify-self: end; }
.st-preis sup { font-size: .6em; }
.station.best .st-preis { color: var(--gruen); }
.st-adresse { grid-column: 1; color: var(--asphalt-60); font-size: .8rem; }
.st-effektiv { grid-column: 2; justify-self: end; font-family: var(--mono); font-size: .75rem; color: var(--asphalt-60); text-align: right; }
.st-badge {
  grid-column: 1 / -1; margin-top: .3rem; justify-self: start;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase;
  background: var(--gruen); color: #fff; border-radius: 999px; padding: 2px 9px;
}
.mehr-zeile { display: flex; justify-content: center; padding: .3rem 0; }
.mehr-btn {
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase;
  background: transparent; color: var(--blau); border: 1.5px solid var(--blau); border-radius: 999px;
  padding: .45rem 1.2rem; cursor: pointer;
}
.mehr-btn:hover { background: var(--blau); color: #fff; }
.rechenweg { margin-top: 1.2rem; border-top: 1px solid var(--beton-tief); padding-top: .6rem; max-width: 72ch; }
.rechenweg summary { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; color: var(--asphalt-60); }
.rechenweg p { margin-top: .5rem; color: #3A4450; font-size: .9rem; }

/* Platzhalter ohne Ort */
.karte-platzhalter {
  margin-top: 1.2rem; background: var(--weiss); border: 1.5px dashed var(--beton-tief); border-radius: 16px;
  padding: 1.6rem 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between;
  color: var(--asphalt-60);
}
.karte-platzhalter[hidden] { display: none; }
.karte-platzhalter p { max-width: 52ch; }
.karte-platzhalter .cta { margin-top: 0; }

.ergebnis.laedt { opacity: .55; pointer-events: none; }

@media (max-width: 920px) {
  .steuer { grid-template-columns: 1fr 1fr; }
  .steuer-profile { grid-column: 1 / -1; }
  .steuer-ort-link { grid-column: 1 / -1; justify-self: start; }
  .karte-grid { grid-template-columns: 1fr; }
  .map { height: 380px; }
  .stationen { max-height: none; }
}
@media (max-width: 860px) {
  .reichweite { justify-self: start; max-width: none; }
}
@media (max-width: 480px) {
  .steuer { padding: .8rem .9rem 1rem; }
  .map { height: 320px; }
}
