/*
 * sg_portal.css (2026) - Theme-/Layout-Erweiterung fuer portal.html.
 * Wird NACH sg_search.css geladen: ueberschreibt nur die :root-Variablen (--sgv2-accent,
 * --sg-brand, --sgv2-muted existieren dort schon - dank var()-Nutzung in sg_search.css reicht
 * das Ueberschreiben hier, ohne jede Regel zu duplizieren) und ergaenzt die neuen
 * Marketing-Abschnitte (Header, Hero-Ticket, Redaktion-Spotlight, Ablauf, Trust, Footer,
 * Live-Suchvorschau), die es in sg_search.css/index.html nicht gibt.
 * Siehe Mockup-Vorlage (Claude-Artifact "SOFORT-Gutschein", Ticket/Papier-Optik).
 */

:root {
	/* sg_search.css definiert --sgv2-accent/--sg-brand/--sgv2-muted/--sg-radius bereits identisch
	   bzw. wird hier nur um Ton/Papier-Paletten-Werte ergaenzt, die es dort noch nicht gibt. */
	--sgv2-muted: #8c7679;

	/* --teal fehlte hier komplett (nur als Alias fuer --sgv2-accent gedacht, aber nie deklariert) -
	   dadurch war jedes var(--teal) ungueltig und fiel auf "transparent" zurueck statt auf die
	   Akzentfarbe. Erklaert den unsichtbaren weissen Kartenpopup-Button (weisser Text auf
	   transparentem statt teal Hintergrund). */
	--teal: var(--sgv2-accent);
	--paper: #fbf5f3;
	--paper-deep: #f3e9e6;
	--surface: #ffffff;
	--ink: #241318;
	--line: #e6d8d4;

	--red-wash: #f8e3e9;
	--teal-text: #007a9e;
	--teal-wash: #e2f1f5;
	--gold: #c68a2e;

	--radius-lg: 28px;
	--radius-md: 16px;
	--shadow-card: 0 1px 2px rgba(36,19,24,.06), 0 12px 28px -16px rgba(36,19,24,.22);
	--shadow-pop: 0 20px 48px -20px rgba(36,19,24,.32);
}

html, body {
	background: var(--paper);
	color: var(--ink);
	/* Sicherheitsnetz gegen horizontales Verschieben der ganzen Seite auf Mobil - einzelne
	   Ursachen (Grid-min-width, negative Raender fuer den Scroll-Chip-Trick etc.) werden zwar
	   gezielt gefixt, aber ein globales overflow-x:hidden faengt zuverlaessig ab, was trotzdem
	   noch knapp uebersteht, statt dass die ganze Seite seitlich wackelt. */
	overflow-x: hidden;
	max-width: 100%;
}

body {
	font-family: "Work Sans", -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3 {
	font-family: "Fraunces", Georgia, serif;
	text-wrap: balance;
	font-weight: 600;
	color: var(--ink);
	margin: 0;
}

.mono {
	font-family: "Space Mono", ui-monospace, monospace;
	font-variant-numeric: tabular-nums;
}

.eyebrow {
	font-family: "Space Mono", ui-monospace, monospace;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .72rem;
	color: var(--sg-brand);
	font-weight: 700;
}

.wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding-inline: 24px;
}

/* ---- Reskin einzelner sg_search.css-Elemente auf die Papier-/Ticket-Palette ---- */
.sg-btn-clientCategories { background: var(--paper-deep); }
.sg-btn-clientCategories:hover { background: var(--teal-wash); color: var(--teal-text); }
.sg-filter-panel-header { background: var(--paper-deep); }
#sg-filters-dropdown { background: var(--surface); border-color: var(--line); }
.sg-filter-panel { border-color: var(--line); }
.sg-hit a { border-color: var(--line); }
.sg-hit-footer { border-top-color: var(--line); }
.ais-CurrentRefinements-item { background: var(--teal-wash); color: var(--teal-text); }
.ais-Pagination-item--selected a { background: var(--sgv2-accent); }
#sg-hits .ais-Hits-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ============================= HEADER ============================= */
header.site {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(251,245,243,.88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 14px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 2px;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
}
.logo .dot { color: var(--sg-brand); }
.logo-img { height: 30px; width: auto; display: block; }
/* Footer-Hintergrund ist dunkel (var(--ink)) - das Logo hat schwarzen Schriftzug, deshalb hier
   auf reines Weiss "entfaerbt" statt in Originalfarben kaum lesbar auf dunklem Grund zu stehen. */
.logo-img--footer { height: 26px; filter: brightness(0) invert(1); opacity: .92; }

.region-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 10px;
	padding: 4px 10px 4px 8px;
	border-radius: 999px;
	background: var(--teal-wash);
	color: var(--teal-text);
	font-size: .74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.region-tag svg { width: 12px; height: 12px; }
.region-tag[hidden] { display: none; }

.nav-links {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: .92rem;
	font-weight: 500;
}
.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--sg-brand); }

.nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
	font-size: .88rem;
	text-decoration: none;
	border: none;
	cursor: pointer;
	white-space: nowrap;
}
.nav-cta:hover { background: var(--sg-brand); }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	border-radius: 8px;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
}

@media (max-width: 760px) {
	.nav-links { display: none; }
	.nav-toggle { display: inline-flex; }

	/* Aufgeklappt: eigenes Dropdown-Panel UNTER dem Header, nicht mehr inline in derselben Zeile
	   wie Logo/Button (dafuer war schlicht kein Platz, die Links quetschten sich rein statt zu
	   passen). header.site ist schon position:sticky - reicht als positionierter Vorfahre. */
	.nav-links.mobile-open {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-card);
		padding: 18px 24px 22px;
		gap: 16px;
		font-size: 1rem;
	}
}

/* ============================= HERO TICKET ============================= */
.hero { padding-block: 56px 40px; }
.hero-top { max-width: 640px; margin-bottom: 34px; }
.hero-top h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.04; margin-block: 14px 14px; }
.hero-top p { color: var(--sgv2-muted); font-size: 1.08rem; max-width: 52ch; }
[data-mode="regional"] .mode-main,
[data-mode="main"] .mode-regional { display: none !important; }

.ticket {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 260px;
	background: var(--surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-pop);
	overflow: visible;
}
/* min-width:0 noetig, weil .ticket-main eine CSS-Grid-Spalte ist (.ticket nutzt
   grid-template-columns) - Grid-/Flex-Items haben per Default min-width:auto und wuerden sich
   sonst NICHT unter die intrinsische Breite ihres Inhalts schrumpfen lassen. Die nicht-umbrechende
   (mobil horizontal scrollende) Kategorien-Zeile hat aber genau so eine grosse intrinsische
   Breite - ohne dieses min-width:0 sprengt das die ganze Ticket-Karte (und die Seite) in die
   Breite, statt intern zu scrollen. */
.ticket-main { padding: 40px 40px 34px; min-width: 0; }

.ticket-divider {
	position: relative;
	border-left: 2.5px dashed var(--line);
}
.ticket-divider::before, .ticket-divider::after {
	content: "";
	position: absolute;
	left: -14px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--paper);
}
.ticket-divider::before { top: -14px; }
.ticket-divider::after { bottom: -14px; }

.ticket-stub {
	padding: 34px 26px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-align: center;
}
.seal {
	width: 84px; height: 84px;
	border-radius: 50%;
	background: var(--sg-brand);
	color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	line-height: 1.1;
	border: 2px dashed rgba(255,255,255,.55);
	box-shadow: 0 8px 20px -8px rgba(178,0,59,.6);
}
.seal strong { font-size: 1.5rem; font-family: "Fraunces", serif; }
.seal small { font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; }
.stub-serial { font-size: .72rem; color: var(--sgv2-muted); }
.stub-serial .mono { color: var(--ink); }
.stub-note { font-size: .8rem; color: var(--sgv2-muted); max-width: 20ch; }

/* "Zuletzt gekauft" Live-Widget (echte Daten, siehe sg_portal.js) */
.lastbuy-card {
	display: block;
	width: 100%;
	max-width: 170px;
	text-decoration: none;
	color: var(--ink);
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--paper-deep);
	box-shadow: var(--shadow-card);
	transition: transform .15s ease;
}
.lastbuy-card:hover { transform: translateY(-2px); }
.lastbuy-img {
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	background-color: var(--paper-deep);
}
.lastbuy-meta {
	margin: 8px 0 0;
	font-size: .74rem;
	color: var(--sgv2-muted);
}

.lastbuy-title {
	padding: 10px 12px;
	font-size: .82rem;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.search-row { display: flex; gap: 10px; margin-top: 26px; position: relative; align-items: stretch; }

/* Unsichtbarer Mount-Point fuer den (jetzt nur noch unten sichtbaren) ersten Filter-Dropdown -
   siehe Kommentar in portal.html. */
.dropdown-hidden-mount { display: none; }

/* Nur auf Mobil relevant (die Kategorien scrollen nur dort horizontal statt umzubrechen) -
   Default hier ausgeblendet, die Mobil-Media-Query weiter unten schaltet sie wieder sichtbar. */
.cat-scroll-dots { display: none; }
#sg-searchbox { flex: 1; min-width: 0; }

/* Sucheingabe etwas kompakter (sg_search.css macht sie sehr hoch/groß) und Filter-Button
   auf dieselbe Hoehe + spuerbare Breite - vorher wirkte das Paar unausgewogen (riesiges
   Suchfeld neben einem winzigen Button). */
.search-row .ais-SearchBox-input {
	padding: 13px 44px 13px 16px;
	font-size: .95rem;
	height: 100%;
}
.search-row .dropdown { display: flex; }
.search-row .sg-filter-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	min-width: 128px;
	padding: 0 22px;
	gap: 8px;
	white-space: nowrap;
}
.sg-section-label { margin-top: 20px; }

@media (max-width: 760px) {
	.ticket { grid-template-columns: 1fr; }
	.ticket-divider { border-left: none; border-top: 2.5px dashed var(--line); }
	.ticket-divider::before, .ticket-divider::after { left: auto; top: -14px; }
	.ticket-divider::before { left: -14px; }
	.ticket-divider::after { right: -14px; }
	/* Bleibt eine Reihe (Suchfeld + Filter nebeneinander) statt untereinander zu stapeln - der
	   Filter-Button wird stattdessen icon-only und kompakt (siehe .sg-filter-toggle-label unten),
	   das spart auf schmalen Screens mehr Platz als ein voller, gestapelter Button. */
	.search-row { flex-wrap: nowrap; }

	/* Weniger verschenkter Weissraum auf schmalen Screens - Karten/Sektionen hatten die
	   Desktop-Abstaende 1:1 mitgeschleppt. */
	.wrap { padding-inline: 16px; }

	/* Icon-only: "Filter"-Text ausblenden, Button auf ein kompaktes Quadrat neben dem Suchfeld
	   schrumpfen, statt riesig und volle Breite gestapelt darunter zu stehen. */
	.search-row .sg-filter-toggle-label { display: none; }
	.search-row .sg-filter-toggle {
		min-width: 0;
		width: 48px;
		padding: 0;
		flex-shrink: 0;
	}
	.search-row .sg-filter-toggle i { font-size: 1.15rem; }
	.hero { padding-block: 32px 24px; }
	.ticket-main { padding: 24px 20px 20px; }
	section { padding-block: 34px; }
	/* Karte profitiert von voller Breite (anders als Text) - bricht bewusst aus dem .wrap-Rand
	   aus und geht bis an den Bildschirmrand (full-bleed), statt den 16px-Rand mitzunehmen. */
	#map { margin-bottom: 20px; margin-inline: -16px; border-radius: 0; }
	.section-head--sub { margin-bottom: 12px; }
	.spotlight-grid { gap: 12px; }
	.steps { gap: 12px; }
	.trust-strip { gap: 12px; }
}

/* ---- Live-Suchvorschau (sg_portal.js) ---- */
.search-preview {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: var(--surface);
	border-radius: 16px;
	box-shadow: var(--shadow-pop);
	border: 1px solid var(--line);
	padding: 8px;
	z-index: 30;
}
.search-preview[hidden] { display: none; }
.preview-row {
	display: flex; align-items: center; gap: 12px;
	padding: 8px; border-radius: 10px;
	text-decoration: none; color: var(--ink);
	width: 100%; text-align: left;
	background: none; border: none; font: inherit; cursor: pointer;
}
.preview-row:hover { background: var(--paper-deep); }
.preview-thumb { width: 44px; height: 44px; border-radius: 9px; flex-shrink: 0; object-fit: cover; background: var(--paper-deep); }
.preview-info { flex: 1; min-width: 0; }
.preview-title { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-place { font-size: .76rem; color: var(--sgv2-muted); }
.preview-price { font-size: .8rem; font-weight: 700; color: var(--teal-text); font-family: "Space Mono", monospace; white-space: nowrap; }
.preview-badge {
	font-size: .62rem; font-weight: 700; color: var(--sg-brand); background: var(--red-wash);
	padding: 2px 7px; border-radius: 999px; margin-right: 6px;
}
.preview-footer {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	margin-top: 4px; padding: 10px 8px 6px; border-top: 1px solid var(--line);
	font-size: .82rem; font-weight: 700; color: var(--teal-text); text-decoration: none; background: none; border-left: none; border-right: none; border-bottom: none; width: 100%; cursor: pointer;
}
.preview-empty { padding: 16px; text-align: center; font-size: .85rem; color: var(--sgv2-muted); }

/* ============================= SECTIONS (generisch) ============================= */
section { padding-block: 54px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head .view-all { font-size: .88rem; font-weight: 600; color: var(--teal-text); text-decoration: none; white-space: nowrap; }
.section-head .view-all:hover { color: var(--sg-brand); }

/* ---- Redaktion empfiehlt (Firmatic-CMS: eine Kategorie, N Content-Eintraege, jeder Eintrag
   durchlaeuft dasselbe Karten-Template - siehe web2026/cms/Portal Redaktion Card Template.html.
   Firmatic bestimmt nur WIE OFT das Template wiederholt wird, nicht das Grid drumrum, und liefert
   fuer JEDEN Eintrag exakt dasselbe Markup (kein Sonderfall fuer "Eintrag 1") - darum macht ein
   CMS-Feld pro Item KEINEN Sinn, um "gross vs. klein" zu unterscheiden. Stattdessen rein
   CSS-basiert per :first-child: erster Eintrag bekommt zwei Grid-Zeilen (= die grosse Box links),
   alle weiteren bleiben normal hoch und flieszen automatisch in die rechte Spalte/weitere Zeilen -
   funktioniert unveraendert mit 2, 3 oder 8 Eintraegen, nicht nur mit exakt 3.
   Bild+Text liegen nebeneinander auf normalem Karten-Hintergrund statt Text-ueber-Foto: aus einem
   Foto laesst sich kein garantierter Kontrast fuer Fliesstext herausholen (Barrierefreiheit), ganz
   abgesehen davon dass es sich einfach schlecht liest. ---- */
.spotlight-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 18px;
}
.spotlight-tile {
	position: relative;
	display: flex;
	border-radius: var(--radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: var(--ink);
	background: #fff;
	box-shadow: var(--shadow-card);
}
.spotlight-tile .tile-media { flex: 0 0 38%; }
.spotlight-tile .tile-img { display: block; width: 100%; height: 100%; min-height: 140px; object-fit: cover; }
.spotlight-tile .tile-copy { padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.spotlight-tile h3 { font-size: 1.1rem; color: var(--ink); margin-block: 6px 6px; }
.spotlight-tile p { font-size: .86rem; color: rgba(36,19,24,.72); margin: 0; }
.spotlight-tile .tile-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .82rem; font-weight: 700; color: var(--sg-brand); text-decoration: none; }
/* Kein Link am Content-Eintrag gesetzt (Schritt 5 "Links" im Firmatic-Formular leer gelassen) ->
   {firmatic_content_url} loest zu einem leeren String auf, das Template rendert dann
   href="" target="" - reiner Attribut-Selektor blendet den CTA in dem Fall komplett aus (kein
   Pfeil ins Leere, keine kaputte Stretched-Link-Klickflaeche ohne Ziel). */
.spotlight-tile .tile-link[href=""] { display: none; }

/* "Stretched Link": .tile-link ist der einzige echte <a> der Karte, sein ::after wird per
   position:absolute + inset:0 auf die ganze Kartenflaeche gestreckt (Containing Block ist
   .spotlight-tile, da .tile-link selbst NICHT positioniert ist - genau deshalb keine
   position:relative auf .tile-link setzen, sonst waere dessen eigene kleine Box der Bezugsrahmen
   statt der ganzen Karte). Klick auf die Karte = Klick auf "Kampagne ansehen".
   .tile-copy p a hebt echte Links MITTEN im Redaktionstext (z.B. ein Sponsor-Shoplink) per
   z-index ueber den gestreckten Link, damit sie trotzdem eigenstaendig anklickbar bleiben - siehe
   Bug-Kommentar in Portal Redaktion Card Template.html (verschachteltes <a> hat die zweite Karte
   auf /indexx.html zerschossen, das hier ist die Behebung + Ersatz fuer den Klickbereich). */
.spotlight-tile .tile-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.spotlight-tile .tile-copy p a { position: relative; z-index: 2; color: var(--sg-brand); }
.spotlight-tile:hover .tile-link { text-decoration: underline; }

/* Erste Zeile der Kategorie = die grosse Box links: Bild oben (mehr Flaeche), Text darunter,
   groesserer Titel - spannt zwei Grid-Zeilen, damit sie optisch neben den kleineren Eintraegen in
   Spalte 2 steht. Klasse kommt direkt aus Firmatic per {firmatic_kat_rows:1|spotlight-tile--featured}
   auf dem ersten Content der Kategorie (siehe "Portal Redaktion Card Template.html") - kein
   :first-child-Trick, funktioniert also auch wenn Firmatic mal einen Wrapper drumrum legt. */
.spotlight-tile--featured {
	grid-row: span 2;
	flex-direction: column;
}
.spotlight-tile--featured .tile-media { flex: 0 0 auto; aspect-ratio: 16 / 11; }
.spotlight-tile--featured .tile-copy { padding: 22px; }
.spotlight-tile--featured h3 { font-size: 1.5rem; }

@media (max-width: 760px) {
	.spotlight-grid { grid-template-columns: 1fr; }
	.spotlight-tile--featured { grid-row: auto; }
	.spotlight-tile .tile-media { flex-basis: 34%; }
}

/* ---- Zweite Suchleiste + Kategorien im Live-Bereich (echte Zweit-Instanz, siehe sg_portal.js) ---- */
.search-row--inline { margin-top: 0; margin-bottom: 18px; }
.search-row--inline #sg-searchbox-2 { flex: 1; }

/* sg_search.css bindet die Pill-Chip-Optik an die ID "#sg-categories" - hier dieselbe Regel
   fuer die zweite Instanz "#sg-categories-2" nachgezogen. */
#sg-categories-2 .ais-RefinementList-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

/* ---- Live-Bereich: Karte ---- */
#map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 36px; }

/* Zweite, kleinere Zwischenueberschrift zwischen Karte und der zweiten Suchleiste - vorher sass
   alles direkt aufeinander ("zu nah dran"), das schafft optischen Abstand + Orientierung. */
.section-head--sub { margin-bottom: 16px; }
.section-head--sub h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

#sg-currentFilters .ais-CurrentRefinements-list { margin-top: 4px; }

.live-controls {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin: 22px 0 18px; font-size: .88rem; color: var(--sgv2-muted); flex-wrap: wrap;
}

/* ---- Ablauf (3 echte Schritte) ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border-radius: var(--radius-md); padding: 26px 24px; box-shadow: var(--shadow-card); }
.step .num { font-family: "Space Mono", monospace; font-size: .78rem; color: var(--sg-brand); font-weight: 700; }
.step h3 { font-size: 1.08rem; margin-block: 10px 8px; }
.step p { color: var(--sgv2-muted); font-size: .92rem; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---- Trust-Leiste ---- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
/* svg = lokale Vorschau (noch keine Firmatic-Icons), i = FontAwesome-Tag aus
   {firmatic_content_additional_field:icon} (siehe web2026/cms/Portal Trust-Item Template.html) -
   Icon kommt komplett fertig aus dem CMS-Feld, kein CSS-Auswahl-Mechanismus noetig. */
.trust-item svg, .trust-item i { flex-shrink: 0; color: var(--teal-text); font-size: 1.3rem; margin-top: 2px; }
.trust-item h3 { font-size: .98rem; font-family: "Work Sans", sans-serif; font-weight: 700; }
.trust-item p { color: var(--sgv2-muted); font-size: .85rem; margin-top: 4px; }
@media (max-width: 900px) { .trust-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .trust-strip { grid-template-columns: 1fr; } }

/* ============================= FOOTER ============================= */
footer.site { background: var(--ink); color: rgba(251,245,243,.82); margin-top: 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 48px 32px; }
.footer-top h4 { color: #fff; font-family: "Work Sans", sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: .88rem; }
.footer-top a { text-decoration: none; color: inherit; }
.footer-top a:hover { color: #fff; }
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: .86rem; margin-top: 12px; max-width: 34ch; color: rgba(251,245,243,.65); }

.newsletter-form { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-form input {
	flex: 1; min-width: 0; padding: 11px 14px; border-radius: 10px;
	border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff;
	font-family: inherit; font-size: .86rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form button {
	padding: 0 16px; border-radius: 10px; border: none; background: var(--sg-brand); color: #fff;
	font-weight: 600; font-size: .86rem; cursor: pointer;
}
.newsletter-form button:hover { background: #950032; }

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px;
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
	font-size: .78rem; color: rgba(251,245,243,.55);
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }

/* Kategorien mobil als horizontal scrollende Zeile statt Umbruch (Amazon-Pattern) - der
   flex-wrap-Umbruch aus sg_search.css frisst auf schmalen Screens viel zu viel Hoehe und wirkt
   durch die unterschiedlich breiten Pillen chaotisch/unruhig. Gilt fuer beide Instanzen (Hero
   oben + zweite Leiste ueber dem Grid). */
@media (max-width: 700px) {
	.cat-scroll-wrap { position: relative; }

	#sg-categories .ais-RefinementList-list,
	#sg-categories-2 .ais-RefinementList-list {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		padding-bottom: 6px;
	}
	#sg-categories .ais-RefinementList-item,
	#sg-categories-2 .ais-RefinementList-item {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}
	.sg-btn-clientCategories { white-space: nowrap; }

	/* Rein dekorativer Scroll-Hinweis UNTER der Reihe - nichts Klickbares, nichts das die
	   Kategorie-Buttons ueberlagert. Verlauf an den Kanten bleibt zusaetzlich als zweiter,
	   dynamischer Hinweis (nur sichtbar, solange dort noch was zu scrollen ist). */
	.cat-scroll-dots {
		display: flex;
		justify-content: center;
		gap: 40px;
		margin: 2px 0 16px;
		color: var(--sgv2-muted);
		opacity: .55;
		pointer-events: none;
	}
	.cat-scroll-dots svg { width: 14px; height: 14px; }

	.cat-scroll-wrap::before,
	.cat-scroll-wrap::after {
		content: "";
		position: absolute;
		top: 0;
		bottom: 6px;
		width: 28px;
		pointer-events: none;
		z-index: 1;
		opacity: 0;
		transition: opacity .15s ease;
	}
	.cat-scroll-wrap::before {
		left: 0;
		background: linear-gradient(90deg, var(--paper), transparent);
	}
	.cat-scroll-wrap::after {
		right: 0;
		background: linear-gradient(270deg, var(--paper), transparent);
	}
	/* Im Hero-Ticket ist der Kartenhintergrund weiss (--surface), nicht das Papier-Beige - der
	   Verlauf muss zur jeweiligen Umgebung passen, sonst sieht man eine Kante im Verlauf selbst. */
	.ticket-main .cat-scroll-wrap::before { background: linear-gradient(90deg, var(--surface), transparent); }
	.ticket-main .cat-scroll-wrap::after { background: linear-gradient(270deg, var(--surface), transparent); }
	.cat-scroll-wrap.can-scroll-left::before { opacity: 1; }
	.cat-scroll-wrap.can-scroll-right::after { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* ============================================================================================
   Ersatz fuer Bootstrap 5 - portal.html laedt kein bootstrap.min.css mehr (schlanker, keine
   Spezifitaets-Kollisionen mit dem eigenen Design). index.html nutzt weiterhin echtes Bootstrap,
   sg_main.js/sg_map.js bleiben deshalb bewusst unveraendert (liefern noch "btn"/"form-control"/
   "row"/"col-*"-Klassennamen) - hier nur ein schlanker eigener Ersatz fuer dieselben Klassen.
   ============================================================================================ */
.d-none { display: none !important; }
.w-100 { width: 100%; }
.text-end { text-align: right; }
.text-muted { color: var(--sgv2-muted); }
.img-fluid { max-width: 100%; height: auto; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 10px;
	border: 1px solid transparent;
	background: var(--paper-deep);
	color: var(--ink);
	font-family: inherit;
	font-size: .88rem;
	cursor: pointer;
	text-decoration: none;
}
.btn-sm { padding: 5px 10px; font-size: .8rem; border-radius: 8px; }
.btn-link { background: none; border: none; padding: 0; color: var(--teal-text); font-weight: 600; }
.btn-link:hover { color: var(--sg-brand); }
/* !important hier bewusst - der Button sitzt in einem von Leaflet dynamisch erzeugten Popup
   (eigene Stacking-/Rendering-Eigenheiten), reine Klassenspezifitaet reichte in der Praxis nicht
   zuverlaessig aus (Button blieb weiss/unsichtbar statt teal). */
.sg-mapInfoWindowBtn {
	margin-top: 4px !important;
	background: var(--teal) !important;
	color: #fff !important;
	border: none !important;
	padding: 11px 16px !important;
	font-size: .95rem !important;
}
.sg-mapInfoWindowBtn:hover { background: var(--teal-text) !important; }
/* Textstring in sg_main.js hat zwar ein Leerzeichen vor dem Icon, Icon-Fonts sitzen aber oft
   optisch zu eng dran - hier nochmal per CSS nachgeholt. */
.sg-mapInfoWindowBtn i { margin-left: 6px; }

.form-control {
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1.5px solid var(--line);
	background: var(--surface);
	font-family: inherit;
	font-size: .95rem;
	color: var(--ink);
}
.form-control:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

/* Filter-Dropdown - ersetzt .dropdown/.dropdown-menu/.show */
.dropdown { position: relative; }
/* Basis-Box-Optik hier allgemein auf .dropdown-menu - #sg-filters-dropdown (das erste, im Hero)
   hat in sg_search.css eine eigene, spezifischere ID-Regel (gewinnt automatisch per Spezifitaet)
   - #sg-filters-dropdown-2 (das zweite, unter der Karte) hat keine eigene und faellt deshalb
   hierauf zurueck. Ohne das: transparente, unformatierte Box ohne Hintergrund/Breite/Abstand. */
.dropdown-menu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 1000;
	background: var(--surface);
	border-radius: var(--sg-radius);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-pop);
	padding: 16px;
	min-width: 280px;
	max-width: min(90vw, 380px);
	max-height: 70vh;
	overflow-y: auto;
}
.dropdown-menu.show { display: block; }

/* Mobil zuerst geprueft: rechtsbuendig positioniert kann die Box auf schmalen Screens ueber den
   linken Rand hinaus wollen (min-width waere breiter als der Viewport) - hier stattdessen an der
   linken Kante des (auf Mobil ohnehin volle Breite einnehmenden) .dropdown ausrichten und die
   Breite explizit an den Viewport binden statt an min-width. */
@media (max-width: 480px) {
	/* Der Filter-Button ist inzwischen ein kompaktes Icon-Quadrat AM RECHTEN Rand der Suchzeile
	   (siehe .search-row .sg-filter-toggle) - das Panel muss deshalb rechts verankert bleiben und
	   nach LINKS ausklappen (right:0, wie im Default), sonst schiesst es vom rechten Rand aus
	   nach rechts uebers Bild hinaus. Hier nur noch die Breite fuer sehr schmale Screens gekappt. */
	.dropdown-menu {
		width: min(92vw, 340px);
	}
}

/* Ersatz fuer die zwei .row/.col-*-Bloecke (Ortssuche+Karten-Toggle, Stats+Filter-loeschen) */
.locate-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.locate-row .locate-field { flex: 1 1 260px; }
.locate-row .locate-toggle { margin-left: auto; }
.locate-row .locate-toggle a { text-decoration: none; color: var(--teal-text); font-size: .9rem; font-weight: 600; }

.filter-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 22px 0 18px; }
