/* =========================================================================
 * Schiffseite  —  /schiff/{slug}/?land={land}
 *
 * Laedt zusaetzlich zu root.css (Snippet: is_singular('tortuga_schiff')).
 * kontinent.css und land.css laden hier NICHT — die zwei geteilten Bloecke
 * unten (Brotkrume, Karten) sind deshalb hier mitgefuehrt.
 *
 * §9-Umschichtung: sobald .t-krume und die .t-karte-Familie in root.css
 *    liegen, die beiden markierten Bloecke hier ENTFERNEN (dann auch aus
 *    kontinent.css bzw. land.css). Bis dahin: 1:1-Kopie, nicht divergieren.
 * ====================================================================== */


/* === GETEILT — Brotkrume (Kopie aus kontinent.css) ====================== */
.t-krume ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--t-space-2);
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	color: var(--t-text-mute);
}
.t-krume li + li::before { content: "›"; margin-right: var(--t-space-2); }
.t-krume a { color: inherit; }


/* === GETEILT — Karten (Kopie aus land.css) ============================== */
.t-karten {
	list-style: none;
	margin: var(--t-space-6) 0 0;
	padding: 0;
	display: grid;
	gap: var(--t-space-6);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.t-karte {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--t-weiss);
	border: 1px solid var(--t-linie);
	border-radius: var(--t-radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.t-karte:has(a:hover),
.t-karte:has(a:focus-visible) {
	transform: translateY(-2px);
	box-shadow: var(--t-schatten);
}
.t-karte__bild { display: block; background: var(--t-sand); }
.t-karte__bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.t-karte__inhalt { display: flex; flex-direction: column; flex: 1; padding: var(--t-space-4); }
.t-karte__titel { margin-bottom: var(--t-space-2); }
.t-karte__titel a { color: var(--t-blau-900); text-decoration: none; }
.t-karte__titel a::after { content: ""; position: absolute; inset: 0; }
.t-karte:has(a:hover) .t-karte__titel a { color: var(--t-blau-600); }
.t-karte__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--t-space-2);
	margin: 0 0 var(--t-space-3);
	font-size: var(--t-fs-300);
	color: var(--t-text-mute);
}
.t-karte__meta span + span::before { content: "· "; color: var(--t-linie); }
.t-karte__text { color: var(--t-text-mute); font-size: var(--t-fs-300); }
.t-karte__fuss { margin: auto 0 0; padding-top: var(--t-space-3); }
.t-preis { font-weight: 600; font-size: var(--t-fs-600); color: var(--t-blau-900); white-space: nowrap; }
.t-preis small {
	display: block;
	font-size: var(--t-fs-300);
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--t-text-mute);
}


/* === Schiffseite — eigene Bausteine ===================================== */

/* Brotkrume: Abstand zur Kopfleiste. Die Kopie oben traegt bewusst margin:0. */
.t-schiff .t-krume { padding-top: var(--t-space-6); }

/* --- Kopf / Hero -------------------------------------------------------- */
.t-schiff__kopf {
	display: grid;
	gap: var(--t-space-6);
	align-items: center;
	padding-block: var(--t-space-4) var(--t-space-8);
}
@media (min-width: 56rem) {
	.t-schiff__kopf {
		grid-template-columns: 1.05fr 0.95fr;
		gap: var(--t-space-8);
	}
}

.t-schiff__auge {
	margin: 0 0 var(--t-space-2);
	font-size: var(--t-fs-300);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--t-tuerkis);
}

.t-schiff__kopf h1 { margin-bottom: var(--t-space-4); }

.t-schiff__intro {
	max-width: var(--t-breite-text);
	font-size: var(--t-fs-600);
	line-height: 1.5;
	color: var(--t-text-mute);
	margin-bottom: var(--t-space-6);
}

.t-schiff__bild {
	border-radius: var(--t-radius);
	overflow: hidden;
	background: var(--t-sand);
}
.t-schiff__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* --- Eckdaten ----------------------------------------------------------- */
.t-schiff__fakten {
	display: flex;
	flex-wrap: wrap;
	gap: var(--t-space-6);
	margin: 0 0 var(--t-space-6);
	padding-top: var(--t-space-4);
	border-top: 1px solid var(--t-linie);
}
.t-schiff__fakten div { min-width: 5rem; }
.t-schiff__fakten dt {
	font-size: var(--t-fs-300);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--t-text-mute);
}
.t-schiff__fakten dd {
	margin: var(--t-space-1) 0 0;
	font-family: var(--t-font-titel);
	font-size: var(--t-fs-700);
	line-height: 1;
	color: var(--t-blau-900);
}

.t-schiff__cta { margin: 0; }

/* --- Beschreibung ------------------------------------------------------- */
.t-schiff__text {
	max-width: var(--t-breite-text);
	margin-block: var(--t-space-6) var(--t-space-8);
}
.t-schiff__text > :last-child { margin-bottom: 0; }

/* --- Sektion (Routen) --------------------------------------------------- */
.t-schiff__sektion { padding-block: var(--t-space-6); }
.t-schiff__sektion h2 { margin-bottom: var(--t-space-2); }

/* --- Faehrt ausserdem in ------------------------------------------------ */
.t-schiff__weitere { padding-block: var(--t-space-6); }
.t-schiff__weitere-titel { font-size: var(--t-fs-600); margin-bottom: var(--t-space-4); }

.t-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--t-space-3);
	margin: 0;
	padding: 0;
}
.t-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.5rem 1.15rem;
	background: var(--t-sand);
	border: 1px solid var(--t-linie);
	border-radius: 999px;
	color: var(--t-blau-900);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.t-chip:hover,
.t-chip:focus-visible {
	background: var(--t-weiss);
	border-color: var(--t-tuerkis);
}

/* --- Anfrage ------------------------------------------------------------ */
.t-schiff__anfrage {
	margin-block: var(--t-space-8);
	padding-top: var(--t-space-6);
	border-top: 1px solid var(--t-linie);
	scroll-margin-top: calc(var(--t-kopf-hoehe) + var(--t-space-4));
}
.t-schiff__anfrage:focus { outline: none; }
.t-schiff__anfrage h2 { margin-bottom: var(--t-space-2); }
.t-schiff__anfrage > p {
	max-width: var(--t-breite-text);
	color: var(--t-text-mute);
	margin-bottom: var(--t-space-6);
}

/* --- Bewegung reduzieren — WCAG 2.3.3 ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.t-karte,
	.t-chip { transition: none; }
	.t-karte:has(a:hover) { transform: none; }
}

/* =========================================================================
 * Tabs  (Besonderheiten · Tauchen · Unterkunft · Datum)
 *
 * Progressive Enhancement: ohne JS ist die Tab-Leiste ausgeblendet und die
 * vier Panels stehen gestapelt untereinander, jedes mit eigener <h2>.
 * Mit JS (Klasse .is-enhanced) wird daraus ein ARIA-Tabpanel.
 * ====================================================================== */

.t-tabs { margin-block: var(--t-space-6) var(--t-space-8); }

/* Leiste: erst mit JS sichtbar. */
.t-tabs__leiste { display: none; }
.t-tabs.is-enhanced .t-tabs__leiste {
	display: flex;
	flex-wrap: wrap;
	gap: var(--t-space-2);
	margin: 0 0 var(--t-space-6);
	border-bottom: 2px solid var(--t-linie);
}

.t-tabs__tab {
	appearance: none;
	min-height: 44px;
	padding: 0.75rem 1.25rem;
	margin-bottom: -2px;               /* auf der Trennlinie sitzen */
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	font: inherit;
	font-weight: 600;
	color: var(--t-text-mute);
	cursor: pointer;
}
.t-tabs__tab:hover { color: var(--t-blau-900); }
.t-tabs__tab[aria-selected="true"] {
	color: var(--t-blau-900);
	border-bottom-color: var(--t-tuerkis);
}

/* Panels. */
.t-tabs__panel { scroll-margin-top: calc(var(--t-kopf-hoehe) + var(--t-space-4)); }
.t-tabs__panel:focus { outline: none; }

/* Mit JS liefert der Tab den Titel — die Panel-Ueberschrift entfaellt. */
.t-tabs.is-enhanced .t-tabs__h { display: none; }

/* Ohne JS: gestapelte Panels optisch trennen. */
.t-tabs:not(.is-enhanced) .t-tabs__panel + .t-tabs__panel {
	margin-top: var(--t-space-8);
	padding-top: var(--t-space-6);
	border-top: 1px solid var(--t-linie);
}

.t-schiff__prosa { max-width: var(--t-breite-text); }
.t-schiff__prosa > :last-child { margin-bottom: 0; }
.t-tabs__panel h3 { font-size: var(--t-fs-600); margin: var(--t-space-6) 0 var(--t-space-2); }
.t-tabs__panel > :first-child { margin-top: 0; }


/* --- Leistungen (Tab Tauchen) ------------------------------------------- */
.t-leistungen {
	display: grid;
	gap: var(--t-space-6);
	margin-top: var(--t-space-6);
}
@media (min-width: 40rem) { .t-leistungen { grid-template-columns: 1fr 1fr; } }
.t-leistungen ul { margin: 0; padding-left: 1.1rem; }
.t-leistungen li { margin-bottom: var(--t-space-1); }
.t-leistungen--exkl li { color: var(--t-text-mute); }


/* --- Eckdaten (Tab Unterkunft) ------------------------------------------ */
.t-schiff__daten {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
	gap: 0 var(--t-space-6);
	margin: 0 0 var(--t-space-6);
	padding: 0;
	list-style: none;
}
.t-schiff__daten div {
	padding: var(--t-space-3) 0;
	border-top: 1px solid var(--t-linie);
}
.t-schiff__daten dt {
	font-size: var(--t-fs-300);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--t-text-mute);
}
.t-schiff__daten dd {
	margin: var(--t-space-1) 0 0;
	font-weight: 600;
	color: var(--t-blau-900);
}


/* --- Termine (Tab Datum & Route) ---------------------------------------
 * Eine flache Tabelle statt Gruppen: alle Abfahrten aller Routen, nach
 * Datum sortiert. Die Route steht als Spalte, nicht mehr als Ueberschrift;
 * eine Status-Spalte gibt es nicht mehr. Markup: single-tortuga_schiff.php.
 * -------------------------------------------------------------------- */

.t-termine table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--t-fs-300);
}
.t-termine th,
.t-termine td {
	text-align: left;
	padding: var(--t-space-2) var(--t-space-3);
	border-bottom: 1px solid var(--t-linie);
}
.t-termine th { color: var(--t-text-mute); font-weight: 600; }

.t-termine__preis {
	font-weight: 600;
	color: var(--t-blau-900);
	white-space: nowrap;
}

/* Route-Zelle: der Name ist der Link auf die Routenseite. */
.t-termine__routenzelle a {
	color: var(--t-blau-900);
	text-decoration: none;
}
.t-termine__routenzelle a:hover,
.t-termine__routenzelle a:focus-visible {
	color: var(--t-blau-600);
	text-decoration: underline;
}

/* Route ohne feste Termine: dezenter Hinweis in der Zeitraum-Spalte. */
.t-termine__offen { color: var(--t-text-mute); }

.t-termine__hinweis { margin-top: var(--t-space-6); }


/* --- Aktionsspalte ------------------------------------------------------
 * width:1% zwingt die Spalte auf ihre Mindestbreite — die drei Datenspalten
 * behalten den Rest. nowrap haelt den Knopf einzeilig.
 * -------------------------------------------------------------------- */
.t-termine__aktion {
	width: 1%;
	text-align: right;
	white-space: nowrap;
}

/* Der Knopf traegt eine Screenreader-Ergaenzung (Route + Zeitraum).
   .t-sr ist absolut positioniert, also kein Flex-Item — kein gap. */
.t-termine__aktion .t-btn { position: relative; }


/* --- Mobil: Tabelle bricht in Bloecke um --------------------------------
 * Vier Spalten passen unter 40rem nicht nebeneinander. Neue Ordnung:
 * Zeitraum + Preis in einer Zeile, Route darunter, Knopf ganz unten in
 * voller Breite. Der display-Wechsel loescht die Tabellensemantik aus dem
 * Accessibility-Baum — deshalb traegt das Markup die Rollen ausdruecklich.
 * -------------------------------------------------------------------- */
@media (max-width: 39.999rem) {

	.t-termine table,
	.t-termine tbody,
	.t-termine td { display: block; }

	/* Kopfzeile entfaellt — jede Zeile ist auch ohne sie lesbar. */
	.t-termine thead { display: none; }

	.t-termine tr {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: baseline;
		gap: var(--t-space-1) var(--t-space-3);
		padding: var(--t-space-3) 0;
		border-bottom: 1px solid var(--t-linie);
	}

	.t-termine td {
		padding: 0;
		border: 0;
	}

	/* Zeile 1: Zeitraum links, Preis rechts. */
	.t-termine__preis { text-align: right; }

	/* Zeile 2: Route ueber die volle Breite. */
	.t-termine__routenzelle {
		grid-column: 1 / -1;
		margin-top: var(--t-space-1);
		font-weight: 600;
	}

	/* Zeile 3: Knopf ueber die volle Breite. */
	.t-termine__aktion {
		grid-column: 1 / -1;
		width: auto;
		margin-top: var(--t-space-2);
		text-align: left;
	}
	.t-termine__aktion .t-btn { width: 100%; }
}