/* ============================================================
   Schiffahoi - Bildbereich Startseite (Hero, v4, 14.10.2026)
   Marke (Hinweis-Pille, H1, Unterzeile - Texte aus CMS-Platzhaltern
   hero_hinweis, hero_titel, hero_text) + wechselnde Bilder mit Angebots-Karte.
   Inhalte der Bilder/Karten: CMS -> Promoboxen, Liste "slider-startseite"
   (Bild, Ueberschrift, Beschreibung, Preis, Link).
   Templates: templates/linklist/slider-startseite/
   ============================================================ */

.sh-hero {
	--sh-dunkel: #0b1f33;
	--sh-blau: #005aa5;
	--sh-rot1: #ef2b4f;
	--sh-rot2: #c2062a;
	--sh-hoehe: clamp(460px, 62vh, 580px);
	--sh-ueberlappung: 84px; /* so weit ragt die Suchmaske ins Bild */
	position: relative;
	z-index: 0; /* eigene Ebene: Bild/Karte bleiben unter der Suchmaske */
	height: var(--sh-hoehe);
	overflow: hidden;
	background: var(--sh-dunkel);
	font-family: "Source Sans Pro", Arial, sans-serif;
	color: #ffffff;
	text-align: left;
}
.sh-hero *,
.sh-hero *::before,
.sh-hero *::after { box-sizing: border-box; }

/* ---------- Bilder (Ueberblenden) ---------- */
.sh-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.sh-slide { z-index: 0; }
.sh-slide.sh-aktiv {
	opacity: 1;
	visibility: visible;
	transition: opacity 1.2s ease, visibility 0s linear 0s;
	z-index: 1;
}
.sh-bild {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
	transform: scale(1.04);
	transition: transform 9s ease-out;
}
.sh-slide.sh-aktiv .sh-bild { transform: scale(1); }
/* Verlauf fuer lesbare Schrift: links und unten dunkler (je Bild,
   damit die Karte immer darueber liegt) */
.sh-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(6, 22, 40, .78) 0%, rgba(6, 22, 40, .45) 38%, rgba(6, 22, 40, 0) 64%),
		linear-gradient(0deg, rgba(6, 22, 40, .55) 0%, rgba(6, 22, 40, 0) 34%),
		linear-gradient(180deg, rgba(6, 22, 40, .5) 0%, rgba(6, 22, 40, 0) 22%);
}

/* ---------- Text (Marke) ---------- */
.sh-inhalt {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	padding-top: 92px; /* fester Kopf */
	padding-bottom: calc(var(--sh-ueberlappung) + 16px);
	pointer-events: none;
}
.sh-inhalt .container { position: relative; }
.sh-text { max-width: min(600px, calc(100% - 360px)); pointer-events: auto; } /* immer Abstand zur Karte */
/* Hinweis-Pille ueber der H1 (leer = ausgeblendet) */
.sh-hero .sh-dach:empty { display: none; }
.sh-hero .sh-dach {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: .3px;
	color: #ffffff;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.sh-dach::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'%3E%3C/path%3E%3C/svg%3E") center / contain no-repeat;
}
.sh-hero h1 {
	margin: 0 0 12px;
	font-family: "Source Sans Pro", Arial, sans-serif !important;
	font-size: clamp(30px, 3.2vw, 44px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.3px;
	color: #ffffff;
	text-transform: none;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.sh-unter:empty { display: none; }
.sh-unter {
	margin: 0;
	max-width: 520px;
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.45;
	color: rgba(255, 255, 255, .92);
	text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

/* Ohne Eintraege in den Promoboxen: festes Ersatzbild */
.sh-hero.sh-ohne-bilder {
	background: var(--sh-dunkel) url("/images/media/image/588/kreuzfahrten2-header_2000.jpg") center 60% / cover no-repeat;
}
.sh-hero.sh-ohne-bilder::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(6, 22, 40, .75) 0%, rgba(6, 22, 40, .2) 70%);
}

/* ---------- Angebots-Karte (je Bild) ---------- */
.sh-slide-inhalt {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	padding-top: 92px;
	padding-bottom: calc(var(--sh-ueberlappung) + 16px);
	pointer-events: none;
	z-index: 2;
}
.sh-slide-inhalt .container { display: flex; justify-content: flex-end; }
.sh-hero .sh-karte {
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 330px;
	padding: 18px 20px 18px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
	color: var(--sh-dunkel);
	text-decoration: none;
	transform: translateY(10px);
	opacity: 0;
	transition: transform .6s ease .35s, opacity .6s ease .35s, box-shadow .2s ease;
}
.sh-slide.sh-aktiv .sh-karte { transform: translateY(0); opacity: 1; }
.sh-hero a.sh-karte:hover,
.sh-hero a.sh-karte:focus-visible { box-shadow: 0 22px 50px rgba(0, 0, 0, .4); text-decoration: none; color: var(--sh-dunkel); }
.sh-hero a.sh-karte:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
.sh-karte-label {
	align-self: flex-start;
	padding: 3px 9px;
	border-radius: 999px;
	background: #e8f1fa;
	color: var(--sh-blau);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
}
.sh-karte-titel {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.2;
}
.sh-karte-text {
	font-size: 15px;
	line-height: 1.4;
	color: #4a5a6a;
}
.sh-karte-text:empty { display: none; }
.sh-karte-fuss {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}
.sh-preis {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	padding: 6px 11px;
	border-radius: 10px;
	background: linear-gradient(180deg, var(--sh-rot1), var(--sh-rot2));
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}
.sh-preis b { font-size: 21px; font-weight: 700; }
.sh-knopf {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 9px 14px;
	border-radius: 10px;
	background: var(--sh-blau);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}
.sh-hero a.sh-karte:hover .sh-knopf { background: #004a88; }

/* ---------- Punkte ---------- */
.sh-punkte {
	position: absolute;
	z-index: 5;
	left: 0;
	right: 0;
	bottom: calc(var(--sh-ueberlappung) + 14px);
	pointer-events: none;
}
.sh-punkte .container { display: flex; justify-content: flex-end; gap: 8px; }
.sh-hero .sh-punkt {
	pointer-events: auto;
	width: 34px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: rgba(255, 255, 255, .45);
	cursor: pointer;
	transition: background .2s ease, width .2s ease;
}
.sh-hero .sh-punkt[aria-current="true"] { background: #ffffff; width: 52px; }
.sh-hero .sh-punkt:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }

/* ---------- Suchmaske ragt etwas ins Bild ---------- */
@media (min-width: 768px) {
	section.margin-offers { margin-top: -132px; } /* 84px Ueberlappung + 48px Abstand (mt-5) */
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
	.sh-hero { --sh-hoehe: 520px; }
	.sh-hero .sh-karte { width: 290px; }
	.sh-text { max-width: calc(100% - 320px); }
	.sh-hero h1 { font-size: 32px; }
}

/* ---------- Handy: Text oben, Bild im Querformat darunter (Schiff komplett
   sichtbar), Angebots-Karte ragt von unten ins Bild ---------- */
@media (max-width: 767.98px) {
	.sh-hero { --sh-ueberlappung: 0px; height: auto; display: flex; flex-direction: column; }
	.sh-hero.sh-ohne-bilder { min-height: 360px; }
	.sh-inhalt { position: relative; inset: auto; order: 1; display: block; padding: 66px 0 18px; }
	.sh-text { max-width: none; }
	.sh-hero .sh-dach { font-size: 12.5px; padding: 5px 10px; margin-bottom: 10px; }
	.sh-dach::before { width: 14px; height: 14px; }
	.sh-hero h1 { font-size: 26px; margin-bottom: 8px; }
	.sh-unter { font-size: 15.5px; }
	.sh-slides { order: 2; display: grid; }
	.sh-slide { position: relative; inset: auto; grid-area: 1 / 1; }
	.sh-slide::after {
		bottom: auto;
		height: 56px;
		background: linear-gradient(180deg, #0b1f33 0%, rgba(11, 31, 51, 0) 100%);
	}
	.sh-hero .sh-bild,
	.sh-hero .sh-slide.sh-aktiv .sh-bild {
		position: relative;
		inset: auto;
		display: block;
		height: auto;
		aspect-ratio: 16 / 9;
		object-position: center;
		transform: none;
	}
	.sh-slide-inhalt { position: relative; inset: auto; display: block; margin-top: -16vw; padding: 0 0 34px; }
	.sh-slide-inhalt .container { justify-content: stretch; }
	.sh-hero .sh-karte { width: 100%; padding: 14px 16px; gap: 4px; }
	.sh-karte-titel { font-size: 18px; }
	.sh-karte-text { display: none; }
	.sh-preis b { font-size: 19px; }
	.sh-punkte { bottom: 12px; }
	.sh-punkte .container { justify-content: center; }
}
@media (max-width: 359.98px) {
	.sh-hero h1 { font-size: 24px; }
	.sh-unter { font-size: 14.5px; }
	.sh-knopf { padding: 8px 10px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.sh-slide, .sh-slide.sh-aktiv, .sh-karte, .sh-bild { transition: none !important; }
	.sh-bild { transform: none; }
}
