/* Reiseverlauf (Frontend-Darstellung einer Kreuzfahrt-Route) */
.kfm-reiseverlauf {
	max-width: 820px;
	margin: 2em 0;
	font-family: inherit;
}

.kfm-rv-hero {
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	border-radius: 6px;
	margin: 0 0 1.5em;
	display: block;
}

.kfm-rv-karte {
	max-width: 100%;
	height: auto;
	margin: 0 0 1.5em;
	border-radius: 6px;
}

/* Tabellen-Layout (Standard) */
.kfm-rv-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
	font-size: 0.95em;
}

.kfm-rv-table th,
.kfm-rv-table td {
	text-align: left;
	padding: 0.5em 0.7em;
	border-bottom: 1px solid #e2e4e7;
	vertical-align: top;
}

.kfm-rv-table th {
	font-weight: 600;
	border-bottom: 2px solid #cbd5e1;
	white-space: nowrap;
}

.kfm-rv-table tr.kfm-rv-sea td {
	color: #646970;
	font-style: italic;
}

.kfm-rv-table tr.kfm-rv-port:hover {
	background: #f6f7f7;
}

.kfm-rv-note {
	display: block;
	font-size: 0.85em;
	color: #646970;
	font-style: normal;
}

/* Leistungen (Inklusive/Nicht inklusive/Zusatzleistungen) */
.kfm-rv-leistungen {
	display: flex;
	flex-wrap: wrap;
	gap: 2em;
	margin-top: 1em;
	padding-top: 1.5em;
	border-top: 1px solid #e2e4e7;
}

.kfm-rv-leistungen-col {
	flex: 1 1 220px;
	min-width: 220px;
}

.kfm-rv-leistungen-col h3 {
	font-size: 1em;
	margin: 0 0 0.5em;
}

.kfm-rv-leistungen-col ul {
	margin: 0;
	padding-left: 1.2em;
	font-size: 0.9em;
	line-height: 1.6;
}

.kfm-rv-included h3 {
	color: #116530;
}

.kfm-rv-excluded h3 {
	color: #922b21;
}

.kfm-rv-leistung-group {
	color: #646970;
}

.kfm-reiseverlauf-header h2 {
	margin-bottom: 0.25em;
}

.kfm-reiseverlauf-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em 1em;
	margin: 0 0 1.5em;
	font-size: 0.95em;
	color: #50575e;
}

.kfm-reiseverlauf-meta span {
	display: inline-block;
}

.kfm-rv-reederei,
.kfm-rv-schiff {
	font-weight: 600;
	color: #1d2327;
}

.kfm-rv-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 3px solid #cbd5e1;
}

.kfm-rv-stop {
	position: relative;
	display: flex;
	gap: 1.2em;
	padding: 0.9em 0 0.9em 1.4em;
	margin-left: -3px;
	border-left: 3px solid transparent;
}

.kfm-rv-stop::before {
	content: "";
	position: absolute;
	left: -9px;
	top: 1.2em;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #2271b1;
	border: 2px solid #fff;
}

.kfm-rv-stop.kfm-rv-sea::before {
	background: #cbd5e1;
}

.kfm-rv-day {
	flex: 0 0 90px;
	font-size: 0.85em;
	color: #50575e;
	line-height: 1.4;
}

.kfm-rv-day-num {
	display: block;
	font-weight: 600;
}

.kfm-rv-day-date {
	display: block;
}

.kfm-rv-info {
	flex: 1;
	line-height: 1.5;
}

.kfm-rv-portname {
	font-weight: 600;
	font-size: 1.05em;
}

.kfm-rv-portname a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
}

.kfm-rv-portname a:hover {
	border-bottom-style: solid;
}

.kfm-rv-country,
.kfm-rv-times {
	display: block;
	font-size: 0.9em;
	color: #50575e;
}

.kfm-rv-stop.kfm-rv-sea .kfm-rv-portname {
	font-weight: 400;
	font-style: italic;
	color: #646970;
}

@media (max-width: 480px) {
	.kfm-rv-stop {
		gap: 0.7em;
	}
	.kfm-rv-day {
		flex-basis: 70px;
	}
}

/* Reederei-/Schiffs-Profil ("aufbereitetes Layout") */
.kfm-profil {
	max-width: 760px;
	margin: 2em 0;
}

.kfm-profil-logo {
	max-width: 220px;
	height: auto;
	margin-bottom: 1em;
}

.kfm-profil-bild {
	width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 1em;
}

.kfm-profil-adresse {
	margin: 0 0 1em;
	color: #50575e;
	line-height: 1.5;
}

.kfm-profil-social {
	margin: 0 0 1.5em;
	font-size: 0.9em;
}

.kfm-profil-social a {
	margin-right: 0.5em;
}

.kfm-profil-content {
	line-height: 1.6;
	margin: 0 0 1.5em;
}

.kfm-profil-reederei-schiffe {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kfm-profil-reederei-schiff {
	display: flex;
	gap: 1.2em;
	padding: 1em 0;
	border-bottom: 1px solid #e2e4e7;
}

.kfm-profil-reederei-schiff img {
	width: 160px;
	height: 110px;
	object-fit: cover;
	border-radius: 4px;
	flex: 0 0 auto;
	display: block;
}

.kfm-profil-reederei-schiff-info {
	flex: 1;
}

.kfm-profil-reederei-schiff-desc {
	margin-top: 0.4em;
	font-size: 0.9em;
	color: #50575e;
	line-height: 1.6;
}

.kfm-profil-reederei-link {
	margin: 0 0 1em;
	font-weight: 600;
}

.kfm-profil-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 1em 2em;
	margin: 0 0 1.5em;
	padding: 0;
}

.kfm-profil-facts > div {
	min-width: 100px;
}

.kfm-profil-facts dt {
	font-size: 0.85em;
	color: #50575e;
	margin: 0;
}

.kfm-profil-facts dd {
	margin: 0;
	font-weight: 600;
	font-size: 1.05em;
}

.kfm-profil-beschreibung {
	line-height: 1.6;
}

.kfm-profil-beschreibung-wrap {
	position: relative;
	overflow: hidden;
	margin-bottom: 0.75em;
}

.kfm-profil-beschreibung-wrap.is-collapsible:not( .is-expanded ) {
	max-height: 400px;
}

.kfm-profil-beschreibung-wrap.is-collapsible:not( .is-expanded )::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100px;
	background: linear-gradient( to bottom, rgba( 255, 255, 255, 0 ), #fff );
	pointer-events: none;
}

.kfm-profil-beschreibung-toggle {
	display: block;
	margin: 0 0 1.5em;
	padding: 0.5em 1.2em;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 0.9em;
	cursor: pointer;
}

.kfm-profil-beschreibung-toggle:hover {
	background: #135e96;
}

.kfm-profil-cabins {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kfm-profil-cabin {
	display: flex;
	gap: 1em;
	padding: 0.7em 0;
	border-bottom: 1px solid #e2e4e7;
}

.kfm-profil-cabin-bild {
	width: 110px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
	flex: 0 0 auto;
}

.kfm-profil-cabin-info {
	flex: 1;
}

.kfm-profil-cabin-persons {
	color: #50575e;
	font-size: 0.9em;
}

.kfm-profil-cabin-desc,
.kfm-profil-cabin-equip {
	margin: 0.3em 0 0;
	font-size: 0.85em;
	color: #50575e;
	line-height: 1.5;
}

/* Galerie (Kabinen-/Deckplan-Fotos) */
.kfm-profil-galerie {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.6em;
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}

.kfm-profil-galerie img {
	width: 100%;
	height: 100px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

/* Decks */
.kfm-profil-decks {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kfm-profil-deck {
	padding: 0.7em 0;
	border-bottom: 1px solid #e2e4e7;
}

.kfm-profil-deck-bild {
	display: block;
	max-width: 320px;
	width: 100%;
	height: auto;
	border-radius: 4px;
	margin-bottom: 0.4em;
}

.kfm-profil-deck-einrichtungen {
	margin: 0.2em 0 0;
	font-size: 0.85em;
	color: #50575e;
	line-height: 1.5;
}

/* Decks-Viewer: Vorschaukasten mit Lupe + horizontaler Deck-Streifen */
.kfm-decks-viewer {
	display: flex;
	gap: 1.5em;
	align-items: flex-start;
	margin: 0 0 1.5em;
}

.kfm-decks-preview {
	flex: 0 0 300px;
	position: sticky;
	top: 1em;
}

/* Der Vorschaukasten IST die Lupe: zeigt beim Hovern eines Deck-Thumbnails
   (siehe .kfm-decks-thumb) in voller Breite den vergrößerten Ausschnitt an
   der jeweiligen Cursor-Position (background-size/-position werden von
   assets/js/public.js gesetzt). Ohne Hover zeigt er das komplette,
   unvergrößerte Bild (background-size: contain). */
.kfm-decks-zoom-pane {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	background-color: #f0f0f1;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.kfm-decks-preview-text {
	margin-top: 0.8em;
}

.kfm-decks-preview-name {
	display: block;
	font-size: 1.05em;
	margin-bottom: 0.3em;
}

.kfm-decks-preview-einrichtungen {
	margin: 0;
	font-size: 0.85em;
	color: #50575e;
	line-height: 1.6;
}

.kfm-decks-strip {
	flex: 1;
	display: flex;
	gap: 0.8em;
	overflow-x: auto;
	padding-bottom: 0.6em;
	min-width: 0;
}

.kfm-decks-thumb {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4em;
	text-decoration: none;
	color: #50575e;
	opacity: 0.65;
	border: 2px solid transparent;
	border-radius: 6px;
	padding: 4px;
}

.kfm-decks-thumb img {
	height: 220px;
	width: auto;
	max-width: 140px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
	background: #f0f0f1;
	cursor: crosshair;
}

.kfm-decks-thumb span {
	font-size: 0.8em;
	white-space: nowrap;
}

.kfm-decks-thumb.is-active,
.kfm-decks-thumb:hover,
.kfm-decks-thumb:focus-visible {
	opacity: 1;
	border-color: #2271b1;
	color: #1d2327;
}

@media ( max-width: 680px ) {
	.kfm-decks-viewer {
		flex-direction: column;
	}
	.kfm-decks-preview {
		position: static;
		flex-basis: auto;
		width: 100%;
	}
}

/* Termine-Tabelle */
.kfm-profil-termine {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
	font-size: 0.9em;
}

.kfm-profil-termine th,
.kfm-profil-termine td {
	text-align: left;
	padding: 0.5em 0.7em;
	border-bottom: 1px solid #e2e4e7;
	vertical-align: top;
}

.kfm-profil-termine th {
	font-weight: 600;
	border-bottom: 2px solid #cbd5e1;
	white-space: nowrap;
}

/* Lightbox (Klick auf ein Bild -> größere Ansicht als Overlay) */
body.kfm-lightbox-open {
	overflow: hidden;
}

.kfm-lightbox {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.85 );
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 2em;
}

.kfm-lightbox[hidden] {
	display: none;
}

.kfm-lightbox-image {
	display: block;
	max-width: 90vw;
	max-height: 80vh;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.5 );
}

.kfm-lightbox-caption {
	color: #fff;
	margin: 1em 0 0;
	max-width: 80vw;
	text-align: center;
	font-size: 0.95em;
}

.kfm-lightbox-close {
	position: absolute;
	top: 1em;
	right: 1.2em;
	background: none;
	border: none;
	color: #fff;
	font-size: 2.2em;
	line-height: 1;
	cursor: pointer;
	padding: 0.2em 0.4em;
}

/* Hafen-Profil */
.kfm-profil-hafen-maps-link {
	display: inline-block;
	padding: 0.5em 1em;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.9em;
}

.kfm-profil-hafen-maps-link:hover {
	background: #135e96;
	color: #fff;
}
