/* Linienplakette: Farbe und Ziffernfarbe kommen je Linie als --bg und --fg (aus linien.php) */
.linie {
  background: var(--bg, var(--anthrazit)); color: var(--fg, #fff); text-decoration: none;
  font-family: var(--schrift-titel); font-weight: 800;
  display: inline-block; min-width: 40px; text-align: center; padding: 2px 10px; border-radius: 3px; letter-spacing: .02em;
  white-space: nowrap;
}
a.linie, a.linie:hover { color: var(--fg, #fff); }
a.linie:hover { filter: brightness(.9); }

/* Linienauswahl im Formular */
.linien-wahl { border: 1px solid var(--linie); border-radius: var(--radius); padding: 10px 14px 14px; margin: 0; min-width: 0; }
.linien-wahl legend { font-weight: 500; font-size: 14px; padding: 0 6px; }
.linien-gruppe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.gruppe-name { flex: 0 0 100%; color: var(--tinte-leise); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.wahl { position: relative; display: inline-flex; flex-direction: row; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wahl .linie { opacity: .38; padding: 5px 12px; font-size: 15px; transition: opacity .1s; }
.wahl:hover .linie { opacity: .7; }
.wahl input:checked + .linie { opacity: 1; box-shadow: 0 0 0 2px var(--flaeche), 0 0 0 4px var(--anthrazit); }
.wahl input:focus-visible + .linie { outline: 3px solid var(--anthrazit); outline-offset: 3px; }
