/*
 * Hettstedt Live – Fundsachen
 * Mobile-First Kachel-Grid, angelehnt an das Spielplatz-Finder-Kartendesign.
 * Farben als CSS-Variablen ausgelagert, damit sie leicht an das
 * hettstedt-live.de Corporate Design angepasst werden können.
 */

.hl-fs {
	--hl-fs-accent: #c9a26d; /* Beige-Akzent, rein dekorativ (linker Kartenrand) */
	--hl-fs-accent-soft: #f6eee0;
	--hl-fs-text: #2b2b2b;
	--hl-fs-text-muted: #5a5a5a;
	--hl-fs-card-bg: #ffffff;
	--hl-fs-badge-bg: #ececec;
	--hl-fs-badge-text: #333333;
	--hl-fs-focus: #1d4e89;
	--hl-fs-new-bg: #2e7d32;
	--hl-fs-new-text: #ffffff;
	--hl-fs-radius: 12px;
	--hl-fs-gap: 1rem;

	color: var(--hl-fs-text);
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
}

/* Box-Sizing für alle Kindelemente erzwingen, damit Theme-Vorgaben
   (z. B. Kadence) keine Breiten-/Versatz-Probleme verursachen. */
.hl-fs,
.hl-fs *,
.hl-fs *::before,
.hl-fs *::after {
	box-sizing: border-box;
}

.hl-fs__heading {
	margin: 0 0 0.75rem;
}

/* Kontaktblock */
.hl-fs__contact {
	background: var(--hl-fs-accent-soft);
	border-radius: var(--hl-fs-radius);
	padding: 1rem 1.25rem;
	margin-bottom: 0.75rem;
}

.hl-fs__contact-text {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.hl-fs__contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin: 0;
}

.hl-fs__contact-link {
	color: var(--hl-fs-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Hinweistext (aufklappbar, nativ ohne JS) */
.hl-fs__details {
	margin-bottom: 1.5rem;
	border: 1px solid #e2e2e2;
	border-radius: var(--hl-fs-radius);
	padding: 0.75rem 1rem;
}

.hl-fs__details summary {
	cursor: pointer;
	font-weight: 600;
}

.hl-fs__details-body {
	margin-top: 0.75rem;
}

.hl-fs__details-body p {
	margin: 0 0 0.75rem;
}

.hl-fs__details-body p:last-child {
	margin-bottom: 0;
}

.hl-fs__empty {
	padding: 1.5rem;
	background: #f7f7f7;
	border-radius: var(--hl-fs-radius);
}

/* Kachel-Grid: Mobile First = 1 Spalte.
   !important nötig, da Theme-Stile (z. B. Kadence) ul/li oft mit eigenem
   padding-left/margin versehen, was das Grid nach rechts verschiebt. */
.hl-fs__grid {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hl-fs-gap);
	width: 100%;
}

.hl-fs__grid li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100%;
}

.hl-fs__card {
	background: var(--hl-fs-card-bg);
	border-left: 6px solid var(--hl-fs-accent);
	border-radius: var(--hl-fs-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	padding: 1rem 1.1rem;
	width: 100%;
	height: 100%;
}

.hl-fs__card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.hl-fs__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: var(--hl-fs-badge-bg);
	color: var(--hl-fs-badge-text);
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
}

.hl-fs__new {
	background: var(--hl-fs-new-bg);
	color: var(--hl-fs-new-text);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.hl-fs__title {
	font-size: 1.05rem;
	line-height: 1.35;
	margin: 0 0 0.6rem;
}

.hl-fs__meta {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	margin: 0 0 0.3rem;
	color: var(--hl-fs-text-muted);
	font-size: 0.92rem;
}

.hl-fs__meta:last-child {
	margin-bottom: 0;
}

/* Tablet: 2 Spalten */
@media (min-width: 600px) {
	.hl-fs__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Desktop: 3 Spalten */
@media (min-width: 900px) {
	.hl-fs__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Barrierefreiheit: sichtbarer Fokus für Tastatur-Nutzung */
.hl-fs a:focus-visible,
.hl-fs__details summary:focus-visible {
	outline: 3px solid var(--hl-fs-focus);
	outline-offset: 2px;
}

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

/* Werbe-Hardblock: keine Google/AdSense- oder Advanced-Ads-Einblendungen
   innerhalb des Fundsachen-Bereichs, egal ob automatisch (Auto Ads) oder
   per Plugin eingefügt. */
.hl-fs ins.adsbygoogle,
.hl-fs .adsbygoogle,
.hl-fs [id^="google_ads_iframe"],
.hl-fs [id^="div-gpt-ad"],
.hl-fs .advads,
.hl-fs .advads_ad_wrapper,
.hl-fs [class*="advads-"],
.hl-fs [data-ad-slot],
.hl-fs iframe[src*="googlesyndication"],
.hl-fs iframe[src*="doubleclick"],
.hl-fs iframe[src*="googleadservices"] {
	display: none !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
}
