@charset "utf-8";
/* CSS Document */

/* ##########################  tourdbtable   ########################### */


td.tourdb
{
	border-style:none;
	border-bottom: 1px dotted #adadae;
	padding: 4px;
	text-align:center;
	height:25px;
}

td.tourdbname
{
	border-style:none;
	border-bottom: 1px dotted #adadae;
	padding: 4px;
	text-align:left;
}

tr.tourdbleer
{
	border-style:none;
	padding: 3px;
	text-align:left;
}

th.tourdb
{
	padding: 10px 0 0 4px;	
	background:url(/components/com_tourdb/images/th-back.png);
	background-color: #f0f0f0;
	text-align:center;
}


/* Accordion für die Übersichtskarte */

.accordion {
    width: 100%;
}

.accordion input[type="checkbox"] {
    display: none;
}

.accordion label {
    display: block;
    cursor: pointer;
    background-color: #f5f5f5;
    padding: 10px;
    border: 1px solid #ddd;
    border-bottom: none;
    transition: background-color 0.3s;
}

.accordion label:hover {
    background-color: #ddd;
}

.accordion .content {
    display: none;
    border: 1px solid #ddd;
    border-top: none;
    padding: 10px;
    background-color: #f9f9f9;
}

.accordion input[type="checkbox"]:checked + label + .content {
    display: block;
}





/* Container um sicherzustellen, dass die Elemente korrekt ausgerichtet sind 
.flex-container {
    display: flex; 
	flex-direction: row;
}
*/


/*************************************************************************************************************

									COLUMN LAYOUTS

**************************************************************************************************************/

.one-half, .one-third, .two-third, .one-fourth, .two-fourth, .three-fourth, .one-fifth, .two-fifth, .three-fifth, .four-fifth {
float:left;
margin : 10px 4% 10px 0;
}

.one-half {
width:48%;
}

.one-third {
width:30.6%;
}

.two-third {
width:65.4%;
}

.one-fourth {
width:22%;
}

.two-fourth {
width:48%;
}

.three-fourth {
width:74%;
}

.one-fifth {
width:16.8%;
}

.two-fifth {
width:37.6%;
}

.three-fifth {
width:58.4%;
}

.four-fifth {
width:79.2%;
}

.last {
margin-right: 0 !important;
}

.last + * {
clear:both;
}


/* ##########################################################################
   Ab Version 2.1: Ersatz für alte HTML-Attribute, optisch identisch
   (<center>, <font color>, width="10%", align="right", <tr height="40px">, <style>.map)
   ########################################################################## */

/* Karten (vorher als <style> im Template) */
#map.map,
.tourdb-map {
	height: 400px;
	width: 100%;
}
#map.tourdb-map--tour {
	height: 380px;
}

/* Leerzeile zwischen den Regionen in der Übersicht (vorher <tr height="40px"></tr>) */
.table > tbody > tr.tourdb-spacer > td {
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent !important;
	box-shadow: none !important;
}

/* Neu gemeldeter Zustand (vorher <font color="#800000">) */
.tourdb-neu {
	color: #800000;
}

/* Kopfzeile Detailseite: 10 gleich breite Spalten, Werte zentriert (vorher width="10%" / <center>) */
.tourdb-kopf td {
	width: 10%;
}
.tourdb-kopf .tourdb-werte td {
	text-align: center;
}
.tourdb-kopf img {
	border: 0;
}

/* Rechte Spalte Detailseite (vorher align="right") */
.tourdb-rechts {
	text-align: right;
}

/* Tooltips über title-Attribut: Hilfecursor wie bei den alten Tooltips */
.tourdb-tip {
	cursor: help;
}

/* Honeypot-Feld im Meldeformular: für Menschen unsichtbar */
.tourdb-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

/* Einleitungstext einer Regionen-Gruppe (ab 2.2) */
.tourdb-gruppe-text {
	margin: 0 0 1.5em;
}

/* ##########################################################################
   Übersichtskarte: Filter-Kasten und Popup (ab 2.3)
   ########################################################################## */

.tdb-filter {
	background: #fff;
	padding: 6px 10px;
	font-size: 13px;
	line-height: 1.4;
	max-width: 220px;
}
.tdb-filter summary {
	cursor: pointer;
	font-weight: 600;
	padding: 2px 0;
}
.tdb-filter__anzahl {
	font-weight: normal;
	color: #666;
}
.tdb-filter fieldset {
	border: 0;
	margin: 6px 0 0;
	padding: 0;
}
.tdb-filter legend {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #666;
	margin: 0 0 2px;
	padding: 0;
	border: 0;
	width: auto;
}
.tdb-filter label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 2px 0;
	cursor: pointer;
	font-weight: normal;
}
.tdb-filter input {
	margin: 0;
}

.tdb-popup .leaflet-popup-content {
	margin: 12px 14px;
	font-size: 13px;
	line-height: 1.4;
}
.tdb-pop__titel {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	margin-right: 14px; /* Platz für das Schließen-Kreuz */
}
.tdb-pop__unter {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	align-items: center;
	color: #666;
	margin: 3px 0 8px;
}
.tdb-pop__stufe {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
	background: #888;
}
.tdb-pop__stufe--leicht { background: #1f5fbf; }
.tdb-pop__stufe--mittel { background: #c8102e; }
.tdb-pop__stufe--schwer { background: #222; }
.tdb-pop__daten {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 4px;
	list-style: none;
	margin: 0 0 8px;
	padding: 8px 0;
	border-top: 1px solid #e5e5e5;
	border-bottom: 1px solid #e5e5e5;
	text-align: center;
}
.tdb-pop__daten li {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 0;
}
.tdb-pop__wert {
	font-weight: 600;
	white-space: nowrap;
	margin-top: 2px;
}
.tdb-pop__label {
	font-size: 10px;
	color: #777;
}
.tdb-pop__extras {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}
.tdb-pop__extras li {
	margin: 0;
	padding: 1px 7px;
	border-radius: 10px;
	font-size: 12px;
}
.tdb-pop__extras li.ja { background: #e3f3e6; color: #1d6b2f; }
.tdb-pop__extras li.nein { background: #f1f1f1; color: #999; }
.tdb-pop__zustand {
	margin: 0 0 10px;
}
.tdb-pop__datum {
	color: #777;
}
.tdb-pop__btn {
	display: block;
	text-align: center;
	padding: 6px 10px;
	border-radius: 4px;
	background: #800000;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
}
.tdb-pop__btn:hover,
.tdb-pop__btn:focus {
	background: #5c0000;
	text-decoration: none;
}

/* ##########################################################################
   Detailseite – Layout ab 2.4
   ########################################################################## */

.tdb-tour {
	--tdb-akzent: #800000;
	--tdb-akzent-dunkel: #5c0000;
	--tdb-rahmen: #e3e3e3;
	--tdb-hell: #f7f7f7;
	--tdb-grau: #6b6b6b;
	--tdb-radius: 8px;
}
.tdb-tour * {
	box-sizing: border-box;
}

/* Brotkrumen */
.tdb-krumen ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0 .4em;
	list-style: none;
	margin: 0 0 .75rem;
	padding: 0;
	font-size: .875rem;
	color: var(--tdb-grau);
}
.tdb-krumen li + li::before {
	content: "›";
	margin-right: .4em;
}

/* Kopf */
.tdb-kopf__titel {
	margin: 0 0 .35rem;
	line-height: 1.15;
}
.tdb-kopf__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem 1rem;
	margin: 0 0 1rem;
	color: var(--tdb-grau);
}
.tdb-stufe {
	display: inline-block;
	padding: .15em .7em;
	border-radius: 999px;
	font-size: .8125rem;
	font-weight: 600;
	color: #fff;
	background: #888;
}
.tdb-stufe--leicht { background: #1f5fbf; }
.tdb-stufe--mittel { background: #c8102e; }
.tdb-stufe--schwer { background: #222; }
.tdb-kopf__stand {
	font-size: .875rem;
}

/* Bahnzustand */
.tdb-status {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .25rem .6rem;
	margin: 0 0 1.25rem;
	padding: .65rem 1rem;
	border-radius: var(--tdb-radius);
	border-left: 4px solid #999;
	background: var(--tdb-hell);
}
.tdb-status--ok { border-left-color: #2e8b57; background: #eef7f1; }
.tdb-status--pause { border-left-color: #2c6db5; background: #eef4fb; }
.tdb-status__datum { color: var(--tdb-grau); font-size: .9em; }
.tdb-status__link { margin-left: auto; font-size: .9em; }

/* Kurzbeschreibung */
.tdb-lead {
	font-size: 1.15rem;
	line-height: 1.55;
	margin: 0 0 1.5rem;
}

/* Quick Facts */
.tdb-fakten__liste {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: .6rem;
	margin: 0 0 1.75rem;
}
.tdb-fakt {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: .75rem .4rem;
	border: 1px solid var(--tdb-rahmen);
	border-radius: var(--tdb-radius);
	background: #fff;
}
/* dt "auflösen", damit Icon, Wert und Beschriftung frei angeordnet werden können: Icon – Wert – Beschriftung */
.tdb-fakt dt {
	display: contents;
	font-weight: normal;
}
.tdb-fakt dt img {
	order: 1;
	border-radius: 4px;
}
.tdb-fakt dd {
	order: 2;
	margin: .4rem 0 0;
	font-weight: 700;
	font-size: 1.05rem;
	white-space: nowrap;
}
.tdb-fakt dt span {
	order: 3;
	font-size: .8125rem;
	color: var(--tdb-grau);
}
.tdb-fakt--aus {
	opacity: .45;
}

/* Karte und Fotos */
.tdb-medien {
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* minmax(0,…): Slider darf die Spalte nicht aufblähen */
	gap: 1rem;
	margin: 0 0 2rem;
}
.tdb-medien--fotos {
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}
.tdb-karte {
	margin: 0;
}
.tdb-tour #map.tdb-karte__map {
	height: 440px;
	border-radius: var(--tdb-radius);
	overflow: hidden;
}
.tdb-karte img,
.tdb-fotos img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--tdb-radius);
}
.tdb-karte__start {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
	margin-top: .6rem;
	font-size: .9rem;
}
.tdb-karte__links {
	display: flex;
	gap: .5rem;
}
.tdb-fotos .slider {
	border-radius: var(--tdb-radius);
	overflow: hidden;
}

/* Knöpfe */
.tdb-btn {
	display: inline-block;
	padding: .55rem 1rem;
	border: 1px solid var(--tdb-akzent);
	border-radius: 6px;
	background: #fff;
	color: var(--tdb-akzent);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
}
.tdb-btn:hover,
.tdb-btn:focus {
	background: var(--tdb-akzent-dunkel);
	border-color: var(--tdb-akzent-dunkel);
	color: #fff;
	text-decoration: none;
}
.tdb-btn--voll {
	background: var(--tdb-akzent);
	color: #fff;
}
.tdb-btn--klein {
	padding: .35rem .75rem;
	font-size: .875rem;
}
.tdb-btn[disabled] {
	opacity: .6;
	cursor: default;
}

/* Inhalt + Seitenspalte */
.tdb-spalten {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 2rem;
	align-items: start;
}
.tdb-abschnitt,
.tdb-hinweis {
	margin: 0 0 1.75rem;
}
.tdb-abschnitt h2,
.tdb-hinweis h2,
.tdb-faq h2 {
	margin: 0 0 .6rem;
	font-size: 1.4rem;
}
.tdb-hinweis {
	padding: 1rem 1.25rem;
	border-left: 4px solid #d49b00;
	border-radius: var(--tdb-radius);
	background: #fff8e6;
}
.tdb-hinweis p:last-child {
	margin-bottom: 0;
}
.tdb-karte-info {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	padding: .8rem 1rem;
	border: 1px solid var(--tdb-rahmen);
	border-radius: var(--tdb-radius);
	background: #fff;
}
.tdb-links {
	margin: 0;
	padding-left: 1.1rem;
}
.tdb-links li {
	margin: .25rem 0;
}

.tdb-seite {
	position: sticky;
	top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.tdb-box {
	padding: 1rem 1.15rem;
	border: 1px solid var(--tdb-rahmen);
	border-radius: var(--tdb-radius);
	background: #fff;
}
.tdb-box h2 {
	margin: 0 0 .75rem;
	font-size: 1.15rem;
}
.tdb-anspruch {
	display: flex;
	align-items: center;
	gap: .75rem;
}
.tdb-anspruch__wert {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
}
.tdb-anspruch__text {
	line-height: 1.2;
}
.tdb-balken {
	height: 8px;
	margin: .6rem 0 .8rem;
	border-radius: 4px;
	background: linear-gradient(to right, #1f5fbf, #c8102e 55%, #222);
	position: relative;
	opacity: .9;
}
.tdb-balken span {
	position: absolute;
	top: -4px;
	bottom: -4px;
	left: 0;
	border-right: 3px solid #000;
}
.tdb-tabelle {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .3rem 1rem;
	margin: 0 0 .75rem;
}
.tdb-tabelle dt {
	font-weight: normal;
	color: var(--tdb-grau);
}
.tdb-tabelle dd {
	margin: 0;
	text-align: right;
	font-weight: 600;
}
.tdb-klein {
	font-size: .8125rem;
	color: var(--tdb-grau);
	margin: 0;
}
.tdb-meldungen {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tdb-meldungen li {
	padding: .55rem 0;
	border-top: 1px solid var(--tdb-rahmen);
}
.tdb-meldungen li:first-child {
	border-top: 0;
	padding-top: 0;
}
.tdb-meldungen__kopf {
	display: flex;
	justify-content: space-between;
	gap: .5rem;
}
.tdb-meldungen__zustand {
	font-weight: 700;
}
.tdb-meldungen p {
	margin: .2rem 0;
}
.tdb-form {
	display: flex;
	flex-direction: column;
	gap: .35rem;
}
.tdb-form label {
	margin-top: .35rem;
	font-weight: 600;
}
.tdb-form .tdb-btn {
	margin-top: .75rem;
}
.tdb-form__ergebnis {
	margin-top: .6rem;
}

/* Häufige Fragen */
.tdb-faq {
	margin: 2rem 0 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--tdb-rahmen);
}
.tdb-faq details {
	border-bottom: 1px solid var(--tdb-rahmen);
	padding: .6rem 0;
}
.tdb-faq summary {
	cursor: pointer;
	font-weight: 600;
}
.tdb-faq details p {
	margin: .5rem 0 .2rem;
}
.tdb-zurueck {
	margin: 1.5rem 0 0;
}

/* Tablet */
@media (max-width: 1000px) {
	.tdb-fakten__liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tdb-spalten { grid-template-columns: minmax(0, 1fr); }
	.tdb-seite { position: static; }
}

/* Handy */
@media (max-width: 640px) {
	.tdb-medien--fotos { grid-template-columns: minmax(0, 1fr); }
	.tdb-tour #map.tdb-karte__map { height: 320px; }
	.tdb-status__link { margin-left: 0; }
	.tdb-fakten__liste { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
	.tdb-fakt { padding: .5rem .2rem; }
	.tdb-fakt dt img { width: 32px; height: 32px; }
	.tdb-fakt dd { font-size: .9rem; margin-top: .25rem; }
	.tdb-fakt dt span { font-size: .72rem; }
}

/* ##########################################################################
   Karte in voller Breite + Fotogalerie (ab 2.5)
   ########################################################################## */

.tdb-tour > .tdb-karte {
	margin: 0 0 2rem;
}

.tdb-galerie {
	margin: 0 0 2.25rem;
}
.tdb-galerie h2 {
	margin: 0 0 .75rem;
	font-size: 1.4rem;
}
.tdb-galerie__anzahl {
	font-weight: normal;
	color: var(--tdb-grau);
	font-size: .8em;
}

/* Bühne: feste Proportion, damit die Seite beim Blättern nicht springt */
.tdb-galerie__buehne {
	position: relative;
	aspect-ratio: 16 / 9;
	max-height: 75vh;
	border-radius: var(--tdb-radius);
	overflow: hidden;
	background: #1d1d1d;
}
.tdb-galerie__bild {
	position: absolute;
	inset: 0;
	margin: 0;
}
.tdb-galerie__bild[hidden] {
	display: none;
}
.tdb-galerie__bild picture,
.tdb-galerie__bild img {
	display: block;
	width: 100%;
	height: 100%;
}
.tdb-galerie__bild img {
	object-fit: contain;
	cursor: zoom-in;
	border-radius: 0;
}
.tdb-galerie__bild figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.5rem 1rem .7rem;
	color: #fff;
	font-size: .95rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, .65));
	pointer-events: none;
}

.tdb-galerie__pfeil,
.tdb-galerie__gross,
.tdb-galerie__schliessen {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: #222;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
	transition: background .15s, transform .15s;
	padding: 0;
	line-height: 1;
}
.tdb-galerie__pfeil {
	top: 50%;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	font-size: 2.2rem;
	padding-bottom: 4px;
}
.tdb-galerie__pfeil--zurueck { left: 12px; }
.tdb-galerie__pfeil--weiter { right: 12px; }
.tdb-galerie__pfeil:hover,
.tdb-galerie__gross:hover,
.tdb-galerie__schliessen:hover {
	background: #fff;
	transform: scale(1.08);
}
.tdb-galerie__pfeil:focus-visible,
.tdb-galerie__gross:focus-visible,
.tdb-galerie__schliessen:focus-visible,
.tdb-galerie__vorschau:focus-visible {
	outline: 3px solid var(--tdb-akzent);
	outline-offset: 2px;
}
.tdb-galerie__gross {
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	font-size: 1.2rem;
}
.tdb-galerie__zaehler {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	padding: .2rem .65rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: .875rem;
	font-variant-numeric: tabular-nums;
}

/* Vorschauleiste */
.tdb-galerie__leiste {
	display: flex;
	gap: .5rem;
	margin-top: .6rem;
	padding-bottom: .3rem;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}
.tdb-galerie__vorschau {
	flex: 0 0 auto;
	width: 110px;
	aspect-ratio: 3 / 2;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	background: #ddd;
	cursor: pointer;
	opacity: .65;
	scroll-snap-align: center;
	transition: opacity .15s, border-color .15s;
}
.tdb-galerie__vorschau img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}
.tdb-galerie__vorschau:hover,
.tdb-galerie__vorschau.ist-aktiv {
	opacity: 1;
}
.tdb-galerie__vorschau.ist-aktiv {
	border-color: var(--tdb-akzent);
}

/* Vollbild */
.tdb-galerie__dialog {
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .94);
}
.tdb-galerie__dialog[open] {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.tdb-galerie__dialog::backdrop {
	background: rgba(0, 0, 0, .94);
}
.tdb-galerie__dialog img {
	max-width: 96vw;
	max-height: 86vh;
	object-fit: contain;
	border-radius: 0;
}
.tdb-galerie__dialog-text {
	margin: .75rem 0 0;
	color: #eee;
	font-size: .95rem;
}
.tdb-galerie__schliessen {
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	font-size: 1.8rem;
}

@media (max-width: 640px) {
	.tdb-galerie__buehne { aspect-ratio: 4 / 3; }
	.tdb-galerie__pfeil { width: 40px; height: 40px; margin-top: -20px; font-size: 1.8rem; }
	.tdb-galerie__pfeil--zurueck { left: 6px; }
	.tdb-galerie__pfeil--weiter { right: 6px; }
	.tdb-galerie__vorschau { width: 84px; }
}

/* ##########################################################################
   Übersichtsliste (ab 2.6): Tabelle am Desktop, Karten auf Tablet/Handy
   ########################################################################## */

/* Desktop: Icons immer 32 px – das Template-CSS (max-width:100%) darf sie nicht schrumpfen */
.tdb-liste .tdb-icon-kopf {
	min-width: 40px;
	text-align: center;
}
.tdb-liste .tdb-icon-kopf img {
	width: 32px !important;
	height: 32px !important;
	max-width: none !important;
	flex-shrink: 0;
}
.tdb-liste .tdb-bahn__anspruch img {
	width: 31px;
	height: 7px;
	max-width: none;
}
.tdb-liste .tdb-bahn__name {
	min-width: 12em;
}
.tdb-liste .tdb-wert,
.tdb-liste .tdb-extra {
	text-align: center;
	white-space: nowrap;
}
.tdb-liste .tdb-bahn__datum {
	white-space: nowrap;
}
/* Schwierigkeit als Etikett (Desktop neben dem Balken, Karte oben rechts) */
.tdb-bahn__stufe {
	display: inline-block;
	padding: .1em .6em;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.5;
	color: #fff;
	background: #888;
	white-space: nowrap;
}
.tdb-bahn__stufe--unbekannt { display: none; }
.tdb-bahn__stufe--leicht { background: #1f5fbf; }
.tdb-bahn__stufe--mittel { background: #c8102e; }
.tdb-bahn__stufe--schwer { background: #222; }

/* Zustand: "bitte melden" / Saisonpause dezent grau */
.tdb-bahn__zustand--keine,
.tdb-bahn__zustand--saisonpause {
	color: #888;
}

/* ---------- Desktop: Tabelle im Kartenstil ---------- */
@media (min-width: 1024px) {
	.tdb-liste {
		border-collapse: separate;
		border-spacing: 0;
		margin: 0;
	}
	/* Bootstrap-Streifen aus, eigene ruhige Flächen */
	.tdb-liste > tbody > tr > * {
		--bs-table-bg-type: transparent;
		--bs-table-accent-bg: transparent;
		box-shadow: none !important;
		background: #fff;
		border: 0;
		border-bottom: 1px solid #eee;
		padding: .6rem .5rem;
		vertical-align: middle;
	}
	.tdb-liste > tbody > tr.tourdb-spacer > td {
		height: 1.75rem;
		background: transparent !important;
		border: 0;
	}

	/* Region als abgerundeter Block mit weinroter Linie unter der Kopfzeile */
	.tdb-liste .tdb-region__kopf > th {
		background: #faf7f7;
		border-top: 1px solid #e0e0e0;
		border-bottom: 2px solid #800000;
		font-size: .8rem;
		font-weight: 600;
		color: #666;
		white-space: nowrap;
	}
	.tdb-liste .tdb-region__kopf > th.tdb-region__name {
		font-size: 1.1rem;
		color: #222;
		white-space: normal;
	}
	.tdb-liste .tdb-region__kopf > th:first-child,
	.tdb-liste .tdb-bahn > td:first-child {
		border-left: 1px solid #e0e0e0;
		padding-left: .9rem;
	}
	.tdb-liste .tdb-region__kopf > th:last-child,
	.tdb-liste .tdb-bahn > td:last-child {
		border-right: 1px solid #e0e0e0;
		padding-right: .9rem;
	}
	.tdb-liste .tdb-region__kopf > th:first-child { border-top-left-radius: 8px; }
	.tdb-liste .tdb-region__kopf > th:last-child { border-top-right-radius: 8px; }
	.tdb-liste .tdb-bahn:last-child > td { border-bottom-color: #e0e0e0; }
	.tdb-liste .tdb-bahn:last-child > td:first-child { border-bottom-left-radius: 8px; }
	.tdb-liste .tdb-bahn:last-child > td:last-child { border-bottom-right-radius: 8px; }

	/* Zeile: Hover-Fläche, ganze Zeile anklickbar */
	.tdb-liste .tdb-bahn {
		position: relative;
	}
	.tdb-liste .tdb-bahn:hover > td,
	.tdb-liste .tdb-bahn:focus-within > td {
		background: #fbf5f5;
	}
	.tdb-liste .tdb-bahn__name {
		font-weight: 600;
		line-height: 1.35;
	}
	.tdb-liste .tdb-bahn__zustand {
		white-space: nowrap;
	}
	.tdb-liste .tdb-bahn__name a::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
	}
	/* Tooltips (Anspruch, Meldung) bleiben über der Klickfläche erreichbar */
	.tdb-liste .tdb-bahn__anspruch img,
	.tdb-liste .tdb-bahn__zustand span,
	.tdb-liste .tdb-bahn__stufe {
		position: relative;
		z-index: 2;
	}

	/* Anspruch: dein Balken + Etikett */
	.tdb-liste .tdb-bahn__anspruch {
		white-space: nowrap;
	}
	.tdb-liste .tdb-bahn__anspruch .tdb-bahn__stufe {
		margin-left: .4rem;
		font-size: .7rem;
		vertical-align: middle;
	}

	/* Eckdaten: Zahl kräftig, Einheit klein */
	.tdb-liste .tdb-wert {
		font-weight: 600;
	}
	.tdb-liste .tdb-wert:not(:empty)::after {
		margin-left: .15em;
		font-size: .75em;
		font-weight: normal;
		color: #777;
	}
	.tdb-liste .tdb-wert--laenge:not(:empty)::after { content: "km"; }
	.tdb-liste .tdb-wert--start:not(:empty)::after,
	.tdb-liste .tdb-wert--hoehe:not(:empty)::after { content: "m"; }
	.tdb-liste .tdb-wert--aufstieg:not(:empty)::after,
	.tdb-liste .tdb-wert--abfahrt:not(:empty)::after { content: "min"; }
	.tdb-liste .tdb-wert:empty::after { content: "–"; color: #ccc; font-weight: normal; }

	/* Lift / Licht / Einkehr: grüner Haken statt "JA" (Text bleibt für Screenreader) */
	.tdb-liste .tdb-extra {
		font-size: 0;
	}
	.tdb-liste .tdb-extra::before {
		content: "–";
		font-size: .9rem;
		color: #ccc;
	}
	.tdb-liste .tdb-extra.ist-ja::before {
		content: "✓";
		display: inline-grid;
		place-items: center;
		width: 1.6rem;
		height: 1.6rem;
		border-radius: 50%;
		background: #e3f3e6;
		color: #1d6b2f;
		font-size: .9rem;
		font-weight: 700;
	}

	/* Datum dezent, neue Meldungen weinrot */
	.tdb-liste .tdb-bahn__datum {
		font-size: .875rem;
		color: #777;
	}
	.tdb-liste .tdb-bahn__datum .tourdb-neu {
		color: #800000;
	}
}

/* ---------- Tablet und Handy (unter 1024 px): jede Bahn als Karte ---------- */
@media (max-width: 1023px) {
	.tdb-liste-rahmen {
		overflow: visible !important;
	}
	.tdb-liste,
	.tdb-liste tbody,
	.tdb-liste tr,
	.tdb-liste td,
	.tdb-liste th {
		display: block;
	}
	.tdb-liste {
		border: 0;
		margin: 0;
	}

	/* Region: Überschrift über den Karten */
	.tdb-liste .tdb-region {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .75rem;
		margin: 0 0 1.75rem;
	}
	.tdb-liste .tourdb-spacer {
		display: none;
	}
	.tdb-liste .tdb-region__kopf {
		grid-column: 1 / -1;
		background: none !important;
		box-shadow: none !important;
	}
	.tdb-liste .tdb-region__kopf th {
		display: none;
		border: 0;
		padding: 0;
		background: none !important;
		box-shadow: none !important;
	}
	.tdb-liste .tdb-region__kopf th.tdb-region__name {
		display: block;
		font-size: 1.2rem;
		padding: .25rem 0 .1rem;
		border-bottom: 2px solid #800000;
	}

	/* Karte: Flex-Zeilen – Name/Anspruch, 5 Eckdaten, Etiketten, Zustand/Datum */
	.tdb-liste .tdb-bahn {
		position: relative;
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		align-content: flex-start;
		gap: .4rem .35rem;
		padding: .75rem .8rem 2.3rem;
		border: 1px solid #e0e0e0;
		border-radius: 8px;
		background: #fff !important;
		transition: box-shadow .15s, border-color .15s;
	}
	.tdb-liste .tdb-bahn:hover,
	.tdb-liste .tdb-bahn:focus-within {
		border-color: #800000;
		box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
	}
	.tdb-liste .tdb-bahn > td {
		padding: 0;
		border: 0;
		background: none !important;
		box-shadow: none !important;
		text-align: left;
	}

	/* Zeile 1: Name + Schwierigkeit */
	.tdb-liste .tdb-bahn__name {
		flex: 1 1 calc(100% - 5.5rem); /* lässt nur das Schwierigkeits-Etikett daneben zu */
		min-width: 0;
		font-weight: 700;
		font-size: 1.05rem;
		line-height: 1.25;
		overflow-wrap: anywhere;
	}
	/* Ganze Karte anklickbar */
	.tdb-liste .tdb-bahn__name a::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
	}
	.tdb-liste .tdb-bahn__anspruch {
		flex: 0 0 5rem; /* feste Breite, auch ohne Etikett – erzwingt den Umbruch vor den Eckdaten */
		text-align: right !important;
	}
	.tdb-liste .tdb-bahn__anspruch img {
		display: none;
	}

	/* Zeile 2: fünf Eckdaten, Icon über dem Wert */
	.tdb-liste .tdb-wert {
		flex: 1 0 calc(20% - .3rem);
		min-width: 0;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: baseline;
		column-gap: .15em;
		padding: .45rem 0 .1rem !important;
		border-top: 1px solid #eee !important;
		font-weight: 600;
		font-size: .9rem;
		line-height: 1.2;
		text-align: center !important;
		white-space: nowrap;
	}
	.tdb-liste .tdb-wert::before {
		content: "";
		flex: 0 0 100%;
		height: 24px;
		margin-bottom: .25rem;
		background-position: center;
		background-size: contain;
		background-repeat: no-repeat;
	}
	.tdb-liste .tdb-wert--laenge::before { background-image: url(../images/icons/laenge.svg); }
	.tdb-liste .tdb-wert--start::before { background-image: url(../images/icons/starthoehe.svg); }
	.tdb-liste .tdb-wert--hoehe::before { background-image: url(../images/icons/hoehendiff.svg); }
	.tdb-liste .tdb-wert--aufstieg::before { background-image: url(../images/icons/aufstieg.svg); }
	.tdb-liste .tdb-wert--abfahrt::before { background-image: url(../images/icons/abfahrt.svg); }
	.tdb-liste .tdb-wert:empty::after { content: "–"; color: #aaa; font-weight: normal; }
	.tdb-liste .tdb-wert--laenge:not(:empty)::after { content: "km"; font-weight: normal; font-size: .8em; }
	.tdb-liste .tdb-wert--start:not(:empty)::after,
	.tdb-liste .tdb-wert--hoehe:not(:empty)::after { content: "m"; font-weight: normal; font-size: .8em; }
	.tdb-liste .tdb-wert--aufstieg:not(:empty)::after,
	.tdb-liste .tdb-wert--abfahrt:not(:empty)::after { content: "min"; font-weight: normal; font-size: .8em; }

	/* Zeile 3: Lift / Licht / Einkehr als Etiketten, nur wenn vorhanden */
	.tdb-liste .tdb-extra {
		display: none;
	}
	.tdb-liste .tdb-extra.ist-ja {
		display: block;
		flex: 0 0 auto;
		font-size: 0; /* "JA" ausblenden, Beschriftung kommt per CSS */
		line-height: 1;
	}
	.tdb-liste .tdb-extra.ist-ja::before {
		display: inline-block;
		padding: .3em .65em;
		border-radius: 999px;
		background: #e3f3e6;
		color: #1d6b2f;
		font-size: .78rem;
		font-weight: 600;
	}
	.tdb-extra--lift.ist-ja::before { content: "✓ Lift"; }
	.tdb-extra--licht.ist-ja::before { content: "✓ beleuchtet"; }
	.tdb-extra--einkehr.ist-ja::before { content: "✓ Einkehr"; }

	/* Unterste Zeile: Bahnzustand links, Datum rechts (feste Position am Kartenfuß) */
	.tdb-liste .tdb-bahn__zustand {
		position: absolute;
		left: .8rem;
		right: 6.5rem;
		bottom: .7rem;
		font-size: .875rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.tdb-liste .tdb-bahn__zustand::before {
		content: "Zustand: ";
		color: #777;
	}
	.tdb-liste .tdb-bahn__datum {
		position: absolute;
		right: .8rem;
		bottom: .7rem;
		font-size: .875rem;
		color: #777;
	}
}

/* Handy: Karten untereinander */
@media (max-width: 599px) {
	.tdb-liste .tdb-region {
		grid-template-columns: minmax(0, 1fr);
	}
	.tdb-liste .tdb-wert {
		font-size: .85rem;
	}
	.tdb-liste .tdb-bahn__name {
		font-size: 1rem;
	}
}
