/* =====================================================================
   EWTC – Startseite · Variante C · Restyle der Sektionen UNTER dem Hero
   Überträgt die Luxus-Anmutung des Heros (Cormorant-Serife + geometrische
   Sans Jost, großzügiges Spacing, a11y-sicheres Rot) auf die restliche Seite.
   Referenz: windrose.de – viel Weißraum, ruhige Eleganz, Foto trägt.

   Co-located zur Variante C; gescoped unter #hauptinhalt, damit das gescrapte
   Theme-CSS nicht global umgebaut, sondern gezielt überschrieben wird.
   Tokens gespiegelt aus design.md / hero-variant-c.css.
   ===================================================================== */

#hauptinhalt {
	--c-primary-text: #c01f26; /* a11y-sicheres Rot (≥4.5:1) */
	--c-primary-text-dark: #a81920;
	--c-secondary: #4a5327; /* Olive */
	--c-ink: #2b2b2a; /* dunkler Shade von text #3c3c3b für Headlines */
	--c-text: #3c3c3b;
	--c-text-muted: #6b6b6a;
	--c-cream: #f6f6f6; /* surface-Token (Palette-Shade statt Sonderfarbe) */
	--c-line: rgba(60, 60, 59, 0.14);

	--font-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
	--font-sans: "Barlow", "Barlow Fallback", system-ui, -apple-system, Arial, sans-serif;

	--r-lg: 0.5rem;
	--r-2xl: 0.9375rem;
	--r-pill: 62.4375rem;

	font-family: var(--font-sans);
	color: var(--c-text);
	background: #fff;
}

/* Fließtext durchgehend in Jost (überschreibt Theme-Barlow) */
#hauptinhalt p,
#hauptinhalt li,
#hauptinhalt span,
#hauptinhalt a,
#hauptinhalt strike,
#hauptinhalt label,
#hauptinhalt button {
	font-family: var(--font-sans);
}

/* =====================================================================
   Großzügige Sektions-Rhythmik (mehr Weißraum = mehr Luxus)
   ===================================================================== */
.front-preissuche,
.front-top-offers,
.front-latest-offer,
.front-further-offers,
.front-additional-offers,
.front-partner,
.feedbacks-blog-teaser,
.front-reisethemen {
	padding-block: clamp(3.5rem, 7vw, 6.75rem) !important;
}

/* =====================================================================
   Sektions-Überschriften – serifenhaft, groß, mit feiner Zierlinie
   ===================================================================== */
#hauptinhalt h2.text-center {
	font-family: var(--font-display) !important;
	font-size: clamp(2rem, 4vw, 3.25rem) !important;
	font-weight: 500 !important;
	line-height: 1.12 !important;
	letter-spacing: 0.01em;
	text-transform: none !important;
	color: var(--c-ink);
	max-width: 24ch;
	margin: 0 auto clamp(2.25rem, 4vw, 3.25rem) !important;
	text-wrap: balance;
}

/* zentrierte Zierlinie unter der Headline */
#hauptinhalt h2.text-center::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 0.0625rem;
	margin: 1.25rem auto 0;
	background: var(--c-primary-text);
}

/* rosé/rote Theme-Headline-Variante (Dark-Sektion) erbt Serife, bleibt hell */
#hauptinhalt .rose_txt {
	color: var(--c-secondary);
}

/* Restliches Marken-Rot, das das Theme als TEXT auf hellem Grund setzt
   (#e84346 → nur 3,65:1, WCAG 1.4.3 verfehlt). Auf das a11y-sichere #c01f26
   remappen. Selektoren stammen aus dem gescrapten Theme-CSS. */
#hauptinhalt .red_txt,
#hauptinhalt .front-latest-offer .desc-1 p,
#hauptinhalt .front-latest-offer .desc-2 li:nth-child(2n),
#hauptinhalt .feedbacks-blog-teaser .last em {
	color: var(--c-primary-text) !important;
}

/* =====================================================================
   Angebots-Karten (geteiltes Muster über alle Sektionen)
   Struktur: a > figure/picture/img + span.offer-badge
            + .txt_box ( .inner_wrap(.region, .additional_nfo) , .btn-container )
   ===================================================================== */

/* Gleiche Kartenhöhe pro Reihe: das Grid als Flex strecken, Zellen als
   Flex-Container, damit die Karte (a) ihre Zelle voll ausfüllt. So sitzen
   die Preise zeilenweise auf gleicher Höhe (vorher uneben: 544/578/545 px). */
.front-top-offers ul.grid-x,
.front-additional-offers ul.grid-x {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

#hauptinhalt li.cell:has(a .txt_box),
#hauptinhalt .swiper-slide:has(a .txt_box) {
	display: flex;
}

/* Slider-Slides auf gleiche Höhe strecken, damit die Karten (und damit die
   Preiszeilen) zeilenweise bündig enden – auch in den Swiper-Sektionen. */
#hauptinhalt .swiper-wrapper {
	align-items: stretch !important;
}

#hauptinhalt .swiper-slide:has(a .txt_box) {
	height: auto !important;
}

#hauptinhalt a:has(.txt_box) {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	position: relative;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-2xl);
	overflow: hidden;
	text-decoration: none;
	color: var(--c-text);
	box-shadow: 0 0.5rem 1.5rem rgba(20, 15, 12, 0.06);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

#hauptinhalt a:has(.txt_box):hover,
#hauptinhalt a:has(.txt_box):focus-visible {
	transform: translateY(-0.375rem);
	box-shadow: 0 1.25rem 2.75rem rgba(20, 15, 12, 0.16);
	outline: none;
}

#hauptinhalt a:has(.txt_box):focus-visible {
	outline: 0.1875rem solid var(--c-primary-text);
	outline-offset: 0.1875rem;
}

/* Bild: festes, ruhiges Seitenverhältnis + sanfter Zoom beim Hover */
#hauptinhalt a:has(.txt_box) figure {
	margin: 0;
	flex: none;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

#hauptinhalt a:has(.txt_box) figure picture,
#hauptinhalt a:has(.txt_box) figure img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#hauptinhalt a:has(.txt_box):hover figure img {
	transform: scale(1.05);
}

/* Badge: a11y-rote, gesetzte Pille statt grelles Brand-Rot */
#hauptinhalt .offer-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	padding: 0.3rem 0.7rem;
	border-radius: var(--r-pill);
	background: var(--c-primary-text) !important;
	color: #fff !important;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	box-shadow: 0 0.25rem 0.75rem rgba(10, 8, 8, 0.25);
}

/* Textbereich – großzügig gepolstert, füllt die Restkarte (für Preis-Pinning) */
#hauptinhalt .txt_box {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: clamp(1.25rem, 2vw, 1.75rem);
}

#hauptinhalt .txt_box .inner_wrap {
	height: auto !important; /* Theme setzt inline feste Höhe */
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* Region: kleine, weit gesetzte Versalien (Jost) */
#hauptinhalt .txt_box .region {
	order: -1;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-primary-text);
}

/* Hotel-Titel: Serife, das prägende Luxus-Element der Karte.
   word-break:normal + hyphens:none verhindern hässliche Wortumbrüche wie
   „Kreuzfahrte|n" – nur an Leerzeichen umbrechen. */
#hauptinhalt .txt_box .title {
	display: block;
	font-family: var(--font-display);
	/* Etwas zurückgenommen (vorher bis 1.875rem) – ruhigere Balance zum
	   größeren Fließtext, weniger 3-Zeilen-Titel. */
	font-size: clamp(1.375rem, 1.8vw, 1.625rem);
	font-weight: 600;
	line-height: 1.15;
	color: var(--c-ink);
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	text-wrap: balance;
}

#hauptinhalt .txt_box .desc,
#hauptinhalt .txt_box .desc p {
	/* 16px statt 15px – Mindest-Lesegröße für die Zielgruppe 40–65+. */
	font-size: 1rem;
	line-height: 1.6;
	color: var(--c-text-muted);
}

#hauptinhalt .txt_box strike {
	display: block;
	color: var(--c-text-muted);
	font-size: 0.875rem;
	opacity: 0.85;
}

/* Preis-Zeile an den unteren Kartenrand heften + feine Trennlinie darüber.
   Die ganze Karte ist klickbar, der Preis braucht also keinen Button-Look –
   statt roter Blob-Pille eine ruhige, gesetzte Preisangabe. */
#hauptinhalt .txt_box .btn-container {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--c-line);
}

/* Klick-Signifier: die ganze Karte ist ein Link, aber ohne sichtbares Signal
   (Norman). Preiszeile zur Aktionszeile machen – Preis links, „Ansehen →"
   rechts; der Pfeil rückt beim Hover. Nur bei Karten mit Preis. */
#hauptinhalt .txt_box .btn-container:has(.price) {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

#hauptinhalt .txt_box .btn-container:has(.price)::after {
	content: "Ansehen \2192";
	flex: none;
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-primary-text);
	white-space: nowrap;
	transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

#hauptinhalt a:has(.txt_box):hover .btn-container:has(.price)::after,
#hauptinhalt a:has(.txt_box):focus-visible .btn-container:has(.price)::after {
	transform: translateX(0.25rem);
}

/* NUR die Preis-Pille (Button MIT .price) auf Text zurücksetzen – NICHT alle
   Buttons im .btn-container: sonst trifft es auch echte CTAs wie „Angebote
   entdecken" (die im Theme ebenfalls in einem .btn-container liegen) und macht
   sie transparent → weiße Schrift auf Grau, unsichtbar (axe: 1.08:1). */
#hauptinhalt .button:has(.price) {
	display: inline-flex !important;
	align-items: baseline;
	gap: 0.4rem;
	width: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	/* eigene Textfarbe statt geerbtem Weiß (axe-Kontrastflag auf dem Wrapper) */
	color: var(--c-text-muted) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

/* „ab"-Präfix klein, ruhig; Preiswert groß und a11y-rot */
#hauptinhalt .button:has(.price) i {
	font-size: 0.75rem;
	font-weight: 500;
	font-style: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-text-muted) !important;
}

#hauptinhalt .price {
	color: var(--c-primary-text) !important;
	background: transparent !important;
	font-family: var(--font-sans);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: 0.005em;
}

/* Kompakte Kategorie-Kacheln („Lust auf …") – kleinere, mittig gesetzte
   Labels, damit einzelne Wörter (z. B. „Kreuzfahrten") nicht mehr umbrechen. */
.front-preissuche .txt_box {
	justify-content: center;
	text-align: center;
}

.front-preissuche .txt_box .inner_wrap {
	align-items: center;
}

/* #hauptinhalt voranstellen, damit die Spezifität die globale .title-Regel
   (mit id) schlägt; hyphens:auto als Sicherheitsnetz für sehr schmale Tiles. */
#hauptinhalt .front-preissuche .txt_box .title {
	font-size: clamp(1.125rem, 1.3vw, 1.375rem);
	line-height: 1.25;
	/* KEINE Silbentrennung/Balance hier – sonst bricht „Family"→„Fami-ly",
	   „Boutique"→„Bou-tique". Nur an Leerzeichen umbrechen. */
	hyphens: none;
	text-wrap: normal;
	word-break: normal;
	overflow-wrap: normal;
}

/* =====================================================================
   Buttons – a11y-sicheres Rot, ruhige Versalien (überschreibt Theme-#e84346)
   ===================================================================== */
#hauptinhalt .button,
#hauptinhalt .button.alert,
#hauptinhalt [type="submit"].button {
	/* Flex-Zentrierung + height/line-height zurücksetzen: das Theme erzwingt
	   height:40px + line-height:37px!important – zusammen mit unserem Padding
	   wird die Beschriftung sonst vertikal abgeschnitten („Jetzt ansehen"). */
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: auto !important;
	min-height: 2.75rem; /* ≥ 44px Tap-Target */
	line-height: 1.2 !important;
	white-space: nowrap;
	background: var(--c-primary-text) !important;
	border: 1px solid var(--c-primary-text) !important;
	color: #fff !important;
	border-radius: var(--r-lg) !important;
	font-family: var(--font-sans) !important;
	font-weight: 500;
	font-size: 0.875rem !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.75rem 1.75rem !important;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

#hauptinhalt .button:hover {
	background: var(--c-primary-text-dark) !important;
	border-color: var(--c-primary-text-dark) !important;
}

#hauptinhalt .button:active {
	transform: translateY(1px);
}

/* Hollow / inverse Buttons – heller, mit a11y-rotem Rand */
#hauptinhalt .button.hollow,
#hauptinhalt .button.button-inverted {
	background: #fff !important;
	color: var(--c-primary-text) !important;
	border: 1px solid var(--c-primary-text) !important;
}

#hauptinhalt .button.hollow:hover,
#hauptinhalt .button.button-inverted:hover {
	background: rgba(192, 31, 38, 0.06) !important;
}

/* =====================================================================
   Dunkle „Top-Konditionen"-Sektion – edles Espresso-Charcoal statt Grau
   ===================================================================== */
.front-further-offers.dark_bg {
	background: #232322 !important; /* dunkler Shade von text #3c3c3b (Palette) */
}

.front-further-offers.dark_bg h2.text-center,
.front-further-offers.dark_bg .rose_txt {
	color: #fff;
}

.front-further-offers.dark_bg p,
.front-further-offers.dark_bg span:not(.region):not(.offer-badge):not(.price) {
	color: rgba(255, 255, 255, 0.82);
}

/* Slider-Pfeile dezent hell */
.front-further-offers.dark_bg .swiper-button-prev,
.front-further-offers.dark_bg .swiper-button-next,
.front-further-offers.dark_bg [class*="arrow"] {
	color: rgba(255, 255, 255, 0.85);
}

/* Olive-Block (.darkgreen_bg, z. B. „Über EWTC"): mein generisches Ink für
   .title ergibt dunkel-auf-dunkelgrün (1,78:1, WCAG 1.4.3). Auf Olive hell. */
#hauptinhalt .darkgreen_bg .title {
	color: #fff;
}

#hauptinhalt .darkgreen_bg,
#hauptinhalt .darkgreen_bg p,
#hauptinhalt .darkgreen_bg li,
#hauptinhalt .darkgreen_bg .inner-wrap {
	color: rgba(255, 255, 255, 0.92) !important;
}

/* Footer-Newsletter-Button: noch Theme-Brand-Rot (#e84346 = 3,94:1). Liegt
   außerhalb von #hauptinhalt → eigener Selektor, auf a11y-sicheres Rot. */
.footer-newsletter input[type="submit"],
.rm-form input[type="submit"] {
	background: #c01f26 !important;
	border-color: #c01f26 !important;
	color: #fff !important;
}

/* =====================================================================
   „Latest offer"-Block (rosé Bühne mit großem Wort) – Serife + Ruhe
   ===================================================================== */
.front-latest-offer h2,
.front-latest-offer h3,
.front-latest-offer .big,
.front-latest-offer strong {
	font-family: var(--font-display) !important;
	font-weight: 600 !important;
	letter-spacing: 0.005em;
	text-transform: none !important;
}

/* =====================================================================
   Partner-/Themen-/Teaser-Sektionen – Überschriften & Ruhe
   ===================================================================== */
.front-preissuche h2,
.front-reisethemen h2,
.front-partner h2,
.feedbacks-blog-teaser h2 {
	font-family: var(--font-display) !important;
	font-weight: 500 !important;
	text-transform: none !important;
}

/* Partner-Logos: etwas mehr Luft, ruhige Graustufe bis Hover */
.front-partner img {
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.front-partner img:hover {
	filter: grayscale(0);
	opacity: 1;
}

/* Reisethemen-Kacheln: serifenhafte Labels, ruhiger Hover */
#hauptinhalt .front-reisethemen .title,
#hauptinhalt .front-reisethemen h3 {
	font-family: var(--font-display) !important;
	font-weight: 600;
}

/* =====================================================================
   Header & Footer – leichte Angleichung der Navigations-/Fußtypo an Jost
   (kein Umbau des gescrapten Layouts, nur Schrift für Kohärenz)
   ===================================================================== */
.site-header nav a,
.site-header .menu a,
#footer a,
#footer p,
#footer li {
	font-family: "Barlow", "Barlow Fallback", system-ui, -apple-system, Arial, sans-serif;
}

/* =====================================================================
   Sichtbarer Fokus auf interaktiven Elementen im Hauptinhalt (a11y)
   ===================================================================== */
#hauptinhalt a:focus-visible,
#hauptinhalt button:focus-visible {
	outline: 0.1875rem solid var(--c-primary-text);
	outline-offset: 0.1875rem;
	border-radius: 0.25rem;
}

/* =====================================================================
   Motion-Reduktion respektieren
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	#hauptinhalt a:has(.txt_box),
	#hauptinhalt a:has(.txt_box) figure img,
	#hauptinhalt .button {
		transition: none;
	}

	#hauptinhalt a:has(.txt_box):hover {
		transform: none;
	}

	#hauptinhalt a:has(.txt_box):hover figure img {
		transform: none;
	}
}
