/* ============================================================
   Schiffahoi - Kreuzfahrt-Suchmaske Startseite (v1, 13.10.2026)
   Ersetzt die alte CMS-Suchmaske (Platzhalter promo_suchmaske).
   Die Suche geht direkt per Link an die Buchungsstrecke
   kreuzfahrten.schiffahoi.de/search (Parameter laut
   CruiseCompass-Doku). Logik + Listen: js/suchmaske-2026.js
   Rueckbau: alte startseite.htpl hochladen.
   ============================================================ */

.sa-suche {
	--sa-dunkel: #0b1f33;
	--sa-blau: #005aa5;
	--sa-blau-hell: #0d6ebd;
	--sa-grau: #5b6b7b;
	--sa-linie: #dbe3ea;
	--sa-flaeche: #f3f6f9;
	position: relative;
	font-family: "Source Sans Pro", Arial, sans-serif;
	color: var(--sa-dunkel);
	text-align: left;
}
.sa-suche *,
.sa-suche *::before,
.sa-suche *::after { box-sizing: border-box; }
.sa-suche [hidden] { display: none !important; }
/* Theme-Grundregeln neutralisieren (my_layout.css: input, button, select
   { width: 100% }, label { display: block; margin-bottom: .5rem },
   p { color: #3e3e3e }) */
.sa-suche label { margin-bottom: 0; }
.sa-suche button { width: auto; }

/* ---------- Kopf der Karte: Titel + Reiseart ---------- */
.sa-karte {
	position: relative;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
.sa-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 18px;
	padding: 14px 16px 14px 20px;
	border-radius: 14px 14px 0 0;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='80' viewBox='0 0 300 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'%3E%3Cpath stroke-opacity='.16' d='M0 34c25-12 50-12 75 0s50 12 75 0 50-12 75 0 50 12 75 0'/%3E%3Cpath stroke-opacity='.11' d='M0 52c25-12 50-12 75 0s50 12 75 0 50-12 75 0 50 12 75 0'/%3E%3Cpath stroke-opacity='.07' d='M0 70c25-12 50-12 75 0s50 12 75 0 50-12 75 0 50 12 75 0'/%3E%3C/g%3E%3C/svg%3E") no-repeat right -20px bottom -12px,
		linear-gradient(115deg, #0b1f33 0%, #0e3a63 55%, #0a5fa8 100%);
	color: #ffffff;
}
.sa-titel {
	margin: 0;
	color: #ffffff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .2px;
}
.sa-titel small {
	display: block;
	margin-top: 3px;
	color: rgba(255, 255, 255, .82);
	font-size: 14.5px;
	font-weight: 400;
	letter-spacing: 0;
}
.sa-tabs {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 4px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
}
.sa-tab { position: relative; margin: 0; cursor: pointer; }
.sa-tab input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.sa-tab span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border-radius: 999px;
	color: #ffffff;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.sa-tab span svg { flex: 0 0 auto; }
.sa-tab:hover span { background: rgba(255, 255, 255, .14); }
.sa-tab input:checked + span { background: #ffffff; color: var(--sa-dunkel); box-shadow: 0 2px 8px rgba(0, 0, 0, .22); }
.sa-tab input:checked + span svg { color: var(--sa-blau); }
.sa-tab input:focus-visible + span { outline: 3px solid #7fb6e6; outline-offset: 1px; }
.sa-tab b { font-weight: inherit; }
.sa-kurz { display: none; }

/* ---------- Felder ---------- */
.sa-koerper { padding: 10px 10px 8px; }
.sa-felder {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	align-items: stretch;
}
.sa-feld { position: relative; min-width: 0; }
.sa-feld + .sa-feld::before {
	content: '';
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 1px;
	background: var(--sa-linie);
}
.sa-suche .sa-feld-knopf {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	min-height: 60px;
	margin: 0;
	padding: 9px 14px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.sa-feld-knopf:hover,
.sa-feld-knopf[aria-expanded="true"] { background: var(--sa-flaeche); }
.sa-feld-knopf:focus-visible { outline: 3px solid #7fb6e6; outline-offset: -3px; }
.sa-feld-ikon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #e8f2fb;
	color: var(--sa-blau);
}
.sa-feld-ikon svg { width: 20px; height: 20px; }
.sa-feld-knopf:hover .sa-feld-ikon,
.sa-feld-knopf[aria-expanded="true"] .sa-feld-ikon { background: #d6e8f8; }
.sa-feld-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.sa-feld-label {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--sa-grau);
	line-height: 1.3;
}
.sa-feld-wert {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sa-dunkel);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sa-feld-pfeil { flex: 0 0 auto; color: var(--sa-grau); transition: transform .15s ease; }
.sa-feld-knopf[aria-expanded="true"] .sa-feld-pfeil { transform: rotate(180deg); }

.sa-suchen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 60px;
	margin: 0 0 0 8px;
	padding: 0 24px;
	border: 0;
	border-radius: 9px;
	background: linear-gradient(180deg, #ef2b4f 0%, #c2062a 100%);
	box-shadow: 0 6px 16px rgba(194, 6, 42, .35);
	color: #ffffff;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}
.sa-suchen:hover { background: linear-gradient(180deg, #f5466a 0%, #d10f35 100%); }
.sa-suchen:focus-visible { outline: 3px solid #7fb6e6; outline-offset: 2px; }

/* ---------- Beliebte Ziele (Schnellauswahl) ---------- */
.sa-schnell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px 8px;
	padding: 10px 6px 2px;
}
.sa-schnell-titel {
	margin-right: 2px;
	color: var(--sa-grau);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
}
.sa-suche .sa-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	margin: 0;
	padding: 0 13px;
	border: 1px solid #cfe1f3;
	border-radius: 16px;
	background: #eef6fd;
	color: var(--sa-blau);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sa-chip:hover { border-color: var(--sa-blau-hell); background: #e2effb; }
.sa-chip[aria-pressed="true"] { border-color: var(--sa-blau); background: var(--sa-blau); color: #ffffff; }
.sa-chip:focus-visible { outline: 3px solid #7fb6e6; outline-offset: 1px; }

/* ---------- Fusszeile: erweiterte Suche ---------- */
.sa-fuss {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	padding: 8px 6px 0 6px;
}
.sa-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 4px 2px;
	border: 0;
	background: none;
	color: var(--sa-blau);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.sa-link:hover { text-decoration: underline; }
.sa-link.sa-leise { color: var(--sa-grau); font-weight: 400; }
.sa-link svg { transition: transform .15s ease; }
.sa-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.sa-hinweis-zaehler {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--sa-blau);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
}

.sa-mehr {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 16px;
	margin: 10px 4px 2px;
	padding: 14px 4px 4px;
	border-top: 1px solid var(--sa-linie);
}
.sa-mehr-feld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sa-mehr-feld > span:first-child,
.sa-mehr-feld legend {
	padding: 0;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--sa-grau);
}
.sa-mehr-feld fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.sa-eingabe {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #c5d1dc;
	border-radius: 8px;
	background: #ffffff;
	color: var(--sa-dunkel);
	font: inherit;
	font-size: 16px;
}
select.sa-eingabe {
	padding-right: 34px !important;
	background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6b7b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center;
	-webkit-appearance: none;
	appearance: none;
}
.sa-eingabe:focus { outline: none; border-color: var(--sa-blau-hell); box-shadow: 0 0 0 3px rgba(13, 110, 189, .2); }
.sa-euro { position: relative; display: block; }
.sa-euro .sa-eingabe { padding-right: 34px; }
.sa-euro::after {
	content: '€';
	position: absolute;
	right: 13px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--sa-grau);
	pointer-events: none;
}
.sa-haken {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	font-size: 16px;
	cursor: pointer;
}
.sa-haken input { width: 20px; height: 20px; margin: 0; accent-color: var(--sa-blau); }

/* Segmente (Anreise, Dauer) */
.sa-segmente { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-segment { position: relative; margin: 0; cursor: pointer; }
.sa-segment input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sa-segment span {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 13px;
	border: 1px solid #c5d1dc;
	border-radius: 19px;
	background: #ffffff;
	font-size: 15px;
	white-space: nowrap;
}
.sa-segment:hover span { border-color: var(--sa-blau-hell); }
.sa-segment input:checked + span { border-color: var(--sa-blau); background: var(--sa-blau); color: #ffffff; }
.sa-segment input:focus-visible + span { outline: 3px solid #7fb6e6; outline-offset: 1px; }

/* ---------- Aufklapp-Fenster ---------- */
.sa-pop {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 40;
	width: 420px;
	max-width: calc(100vw - 32px);
	padding: 16px;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 14px 40px rgba(11, 31, 51, .3);
}
.sa-feld:nth-child(3) .sa-pop,
.sa-feld:nth-child(4) .sa-pop { left: auto; right: 0; }
.sa-pop-titel { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--sa-dunkel); }
.sa-pop-unter { margin: 14px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--sa-grau); }
.sa-pop-fuss {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--sa-linie);
}
.sa-ok {
	min-height: 40px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: var(--sa-blau);
	color: #ffffff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.sa-ok:hover { background: var(--sa-blau-hell); }

.sa-filter { margin: 0 0 10px; }
.sa-filter-leer { margin: 6px 0 0; font-size: 14.5px; color: var(--sa-grau); }
.sa-liste {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 12px;
	max-height: 300px;
	overflow-y: auto;
	overscroll-behavior: contain;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sa-liste li { margin: 0; padding: 0; }
.sa-liste label {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 36px;
	padding: 4px 6px;
	border-radius: 6px;
	font-size: 15.5px;
	line-height: 1.25;
	cursor: pointer;
}
.sa-liste label:hover { background: var(--sa-flaeche); }
.sa-liste input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--sa-blau); }

/* Monate */
.sa-monate { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
#sa-pop-zeit { width: 460px; }
.sa-jahr { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--sa-grau); }
.sa-jahr:first-child { margin-top: 0; }
.sa-suche .sa-monat {
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 0 4px;
	border: 1px solid #c5d1dc;
	border-radius: 8px;
	background: #ffffff;
	color: var(--sa-dunkel);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}
.sa-monat:hover { border-color: var(--sa-blau-hell); }
.sa-monat.sa-im-bereich { background: #e3effa; border-color: #b9d6f0; }
.sa-monat.sa-gewaehlt { background: var(--sa-blau); border-color: var(--sa-blau); color: #ffffff; font-weight: 700; }
.sa-monat:focus-visible { outline: 3px solid #7fb6e6; outline-offset: 1px; }
.sa-daten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.sa-daten label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--sa-grau); }
.sa-pop-hinweis { margin: 8px 0 0; font-size: 14px; color: var(--sa-grau); }

/* Reisende */
.sa-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.sa-zeile + .sa-zeile { border-top: 1px solid var(--sa-linie); }
.sa-zeile-text { display: flex; flex-direction: column; font-size: 16px; font-weight: 600; }
.sa-zeile-text small { font-size: 13.5px; font-weight: 400; color: var(--sa-grau); }
.sa-zaehler { display: inline-flex; align-items: center; gap: 10px; }
.sa-zaehler button {
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid #c5d1dc;
	border-radius: 50%;
	background: #ffffff;
	color: var(--sa-blau);
	font: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.sa-zaehler button:disabled { color: #b8c3cd; cursor: default; }
.sa-zaehler output { min-width: 18px; text-align: center; font-size: 17px; font-weight: 700; }
.sa-kinder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.sa-kinder label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--sa-grau); }
.sa-fehlt { border-color: #c2062a !important; box-shadow: 0 0 0 3px rgba(194, 6, 42, .15) !important; }
.sa-fehler { margin: 8px 0 0; font-size: 14px; color: #c2062a; }

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
	.sa-felder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.sa-feld + .sa-feld::before { display: none; }
	.sa-suche .sa-feld-knopf { border: 1px solid var(--sa-linie); }
	.sa-suchen { grid-column: 1 / -1; margin: 4px 0 0; min-height: 54px; }
	.sa-feld:nth-child(3) .sa-pop { left: 0; right: auto; }
	.sa-feld:nth-child(2) .sa-pop,
	.sa-feld:nth-child(4) .sa-pop { left: auto; right: 0; }
	.sa-mehr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Handy ---------- */
@media (max-width: 575.98px) {
	.sa-kopf { padding: 12px; gap: 10px; }
	.sa-titel { font-size: 19px; }
	.sa-titel small { display: none; }
	.sa-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
	.sa-tab span { display: flex; justify-content: center; padding: 8px 4px; font-size: 15px; gap: 5px; }
	.sa-tab span svg { display: none; }
	.sa-lang { display: none; }
	.sa-kurz { display: inline; }
	.sa-koerper { padding: 8px; }
	/* Schnellauswahl als wischbare Zeile statt drei Reihen */
	.sa-schnell {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 10px 2px 4px;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
		mask-image: linear-gradient(to right, #000 88%, transparent);
	}
	.sa-schnell::-webkit-scrollbar { display: none; }
	.sa-schnell > * { flex: 0 0 auto; }
	.sa-felder { grid-template-columns: minmax(0, 1fr); }
	.sa-suche .sa-feld-knopf { min-height: 56px; }
	.sa-pop,
	.sa-feld:nth-child(n) .sa-pop,
	#sa-pop-zeit {
		left: 0;
		right: 0;
		width: auto;
		max-width: none;
		padding: 14px;
	}
	.sa-liste { grid-template-columns: minmax(0, 1fr); max-height: 260px; }
	.sa-monate { gap: 5px; }
	.sa-suche .sa-monat { min-height: 38px; font-size: 14.5px; padding: 0 2px; }
	.sa-mehr { grid-template-columns: minmax(0, 1fr); }
	.sa-kinder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 359.98px) {
	.sa-tab span { padding: 8px 2px; font-size: 14.5px; }
	.sa-monate { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
