/*
 * Hettstedt Live – Kachelmenü
 * Mobile-First Frontend-Styles.
 */

.hlkm-wrapper {
	margin: 16px 0;
}

.hlkm-title {
	font-size: 1.1rem;
	line-height: 1.3;
	margin: 0 0 12px;
	font-weight: 700;
}

.hlkm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hlkm-item {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Basis-Kachel (Link + Platzhalter teilen sich das Grundlayout) */
.hlkm-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 56px; /* Mindest-Tastziel für Touch-Bedienung */
	padding: 14px 12px;
	border-radius: 12px;
	background: #ffffff;
	border: 1px solid #e2e2e2;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	text-align: center;
	text-decoration: none !important;
	color: #1a1a1a !important;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.3;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

/* Nur echte Links bekommen Hover-/Fokus-Feedback */
a.hlkm-tile:hover {
	background-color: #f0f7fc;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
}

a.hlkm-tile:focus-visible {
	outline: 3px solid #0077cc;
	outline-offset: 2px;
	background-color: #f0f7fc;
}

/* Fallback für Browser ohne :focus-visible-Unterstützung */
a.hlkm-tile:focus:not(:focus-visible) {
	outline: none;
}

a.hlkm-tile:focus {
	outline: 3px solid #0077cc;
	outline-offset: 2px;
}

/* Platzhalter-Kachel (Link = "#") */
.hlkm-tile--placeholder {
	background: #f4f4f4;
	border-color: #dcdcdc;
	color: #595959 !important;
	cursor: default;
	box-shadow: none;
}

.hlkm-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	background: #e0e0e0;
	color: #4d4d4d;
	padding: 2px 9px;
	border-radius: 999px;
	text-transform: uppercase;
}

/* Tablet */
@media (min-width: 480px) {
	.hlkm-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 12px;
	}
}

/* Desktop */
@media (min-width: 782px) {
	.hlkm-grid {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: 14px;
	}

	.hlkm-tile {
		min-height: 64px;
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hlkm-tile {
		transition: none;
	}
}

/*
 * Google-Werbung-Ausschluss (Sicherheitsnetz).
 *
 * Transparenz-Hinweis: Es gibt keine offizielle Google-Auszeichnung, mit der
 * sich dieser Bereich garantiert von Google Auto Ads ausschließen lässt.
 * Die einzige garantierte Methode ist der Ausschluss über das AdSense
 * Anzeigenüberprüfungs-Center (Account-Ebene). Diese Regeln sind ein
 * Best-Effort-Sicherheitsnetz: Sollte Google dennoch ein Anzeigenelement in
 * das Kachelmenü einfügen, wird es hier optisch auf 0x0 gesetzt. Ergänzt
 * durch die aktive DOM-Entfernung in hlkm-adguard.js.
 */
.hlkm-wrapper ins.adsbygoogle,
.hlkm-wrapper .adsbygoogle,
.hlkm-wrapper .google-auto-placed,
.hlkm-wrapper [id^="google_ads_iframe"],
.hlkm-wrapper [id^="aswift_"],
.hlkm-wrapper [id^="div-gpt-ad"],
.hlkm-wrapper iframe[src*="googlesyndication"],
.hlkm-wrapper iframe[src*="doubleclick"] {
	display: none !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
}
