/* ratgeber-gewusst-wo.de – Ergänzungen zu den Elementor-Kit-Globals.
   Nur, was es nicht als Regler gibt. Farben/Typo über die Kit-Variablen (--e-global-…). */

:root {
	--rgw-gelb: var(--e-global-color-primary, #f9cc49);
	--rgw-blau: var(--e-global-color-secondary, #2f4a99);
	--rgw-text: var(--e-global-color-text, #271e1e);
	--rgw-gelb-hell: #fdf1c9;
	--rgw-blau-dunkel: #1f3170;
	--rgw-grau-50: #f7f7f5;
	--rgw-grau-100: #ececea;
	--rgw-grau-600: #67676e;
	--rgw-radius: 16px;
	--rgw-radius-s: 10px;
	--rgw-schatten: 0 1px 2px rgba(20, 20, 40, .06), 0 4px 16px rgba(20, 20, 40, .06);
	--rgw-schatten-hover: 0 2px 4px rgba(20, 20, 40, .08), 0 12px 32px rgba(20, 20, 40, .12);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:target, [id] { scroll-margin-top: 110px; }

/* Links im Fließtext erkennbar (nicht nur über Farbe) */
.elementor-widget-theme-post-content a,
.elementor-widget-text-editor a,
.rgw-prosa a {
	color: var(--rgw-blau);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.elementor-widget-theme-post-content a:hover,
.elementor-widget-text-editor a:hover { text-decoration-thickness: 2px; }

/* ---------- Chips ---------- */
.rgw-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .02em;
	text-decoration: none !important;
}
.rgw-chip--anzeige { background: var(--rgw-grau-100); color: var(--rgw-grau-600); }
.rgw-chip--ort { background: var(--rgw-gelb-hell); color: var(--rgw-text) !important; }
a.rgw-chip--ort:hover { background: var(--rgw-gelb); }

/* ---------- Meta-Zeile Ratgeber ---------- */
.rgw-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--rgw-grau-600);
}
.rgw-meta li { margin: 0; }
.rgw-meta__text + .rgw-meta__text::before { content: "·"; margin-right: 16px; }

/* ---------- Inhalt Ratgeber ---------- */
.elementor-widget-theme-post-content { max-width: 720px; }
.elementor-widget-theme-post-content h2 { margin: 2em 0 .6em; }
.elementor-widget-theme-post-content h3 { margin: 1.6em 0 .5em; }
.elementor-widget-theme-post-content p,
.elementor-widget-theme-post-content ul,
.elementor-widget-theme-post-content ol { margin: 0 0 1.1em; }
.elementor-widget-theme-post-content li { margin-bottom: .35em; }
.elementor-widget-theme-post-content img { border-radius: var(--rgw-radius-s); height: auto; }
.elementor-widget-theme-post-content figure { margin: 2em 0; }
.elementor-widget-theme-post-content figcaption { font-size: 13px; color: var(--rgw-grau-600); margin-top: 8px; }
.elementor-widget-theme-post-content .wp-block-spacer { height: 16px !important; } /* Abstandsblöcke aus dem Editor vereinheitlichen */
.elementor-widget-theme-post-content .has-medium-font-size:first-child {
	font-size: 1.15em !important;
	color: var(--rgw-grau-600);
}
.elementor-widget-theme-post-content mark { background: none !important; color: inherit !important; }
.elementor-widget-theme-post-content details {
	margin: 0 0 12px;
	padding: 14px 18px;
	border: 1px solid var(--rgw-grau-100);
	border-radius: var(--rgw-radius-s);
	background: #fff;
}
.elementor-widget-theme-post-content summary { font-weight: 600; cursor: pointer; }

/* Inhaltsverzeichnis */
.rgw-toc {
	margin: 0 0 2em;
	padding: 20px 24px;
	border-radius: var(--rgw-radius);
	background: var(--rgw-grau-50);
	border: 1px solid var(--rgw-grau-100);
}
.rgw-toc__titel {
	margin: 0 0 10px !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rgw-grau-600);
}
.rgw-toc__liste { margin: 0 !important; padding-left: 1.2em; }
.rgw-toc__liste li { margin: 0 0 6px; }
.rgw-toc__liste a { text-decoration: none !important; color: var(--rgw-text) !important; font-weight: 500 !important; }
.rgw-toc__liste a:hover { color: var(--rgw-blau) !important; text-decoration: underline !important; }

/* ---------- Firmenbox ---------- */
.rgw-sticky { position: sticky; top: 100px; }
@media (max-width: 1024px) { .rgw-sticky { position: static; } }
.rgw-firma {
	padding: 24px;
	border-radius: var(--rgw-radius);
	background: #fff;
	border: 1px solid var(--rgw-grau-100);
	box-shadow: var(--rgw-schatten);
	font-size: 15px;
}
.rgw-firma__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rgw-grau-600);
}
.rgw-firma__logo { margin: 0 0 16px; }
.rgw-firma__logo img { display: block; max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.rgw-firma__name { margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.rgw-firma__adresse { margin: 0 0 12px; font-style: normal; color: var(--rgw-grau-600); }
.rgw-firma__kontakt { margin: 0 0 20px; padding: 0; list-style: none; }
.rgw-firma__kontakt li { margin: 0 0 4px; overflow-wrap: anywhere; }
.rgw-firma__kontakt span { display: inline-block; min-width: 64px; color: var(--rgw-grau-600); }
.rgw-firma__kontakt a { color: var(--rgw-blau); }
.rgw-firma__text { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rgw-grau-100); color: var(--rgw-grau-600); font-size: 14px; }

.rgw-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0 0 8px;
	padding: 10px 20px;
	border-radius: var(--rgw-radius-s);
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	transition: background-color .15s, color .15s, border-color .15s;
}
.rgw-button--primaer { background: var(--rgw-gelb); color: var(--rgw-text) !important; }
.rgw-button--primaer:hover { background: var(--rgw-blau); color: #fff !important; }
.rgw-button--kontur { border: 1.5px solid var(--rgw-blau); color: var(--rgw-blau) !important; }
.rgw-button--kontur:hover { background: var(--rgw-blau); color: #fff !important; }

/* ---------- Karten (Loop-Item) ---------- */
.rgw-karte {
	height: 100%;
	transition: box-shadow .2s, transform .2s;
}
.rgw-karte:hover { box-shadow: var(--rgw-schatten-hover); transform: translateY(-2px); }
.rgw-karte .elementor-widget-theme-post-featured-image img,
.rgw-karte .elementor-widget-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.rgw-karte .elementor-heading-title a { color: inherit; }
.rgw-karte .elementor-heading-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rgw-karte .rgw-teaser,
.rgw-karte .rgw-teaser .elementor-widget-container,
.rgw-karte .rgw-teaser p {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}
.rgw-karte .rgw-teaser p { display: inline; }
.rgw-karte .rgw-teaser * { font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: inherit !important; background: none !important; } /* Formatierung aus dem Artikel nie im Teaser */
/* gesamte Karte klickbar über den Titel-Link (Bild verlinkt zusätzlich selbst) */
.rgw-karte { position: relative; }
.rgw-karte .e-con,
.rgw-karte .elementor-widget,
.rgw-karte .elementor-widget-container { position: static; }
.rgw-karte img { transition: transform .3s; }
.rgw-karte:hover img { transform: scale(1.03); }
.rgw-karte .elementor-widget-image { overflow: hidden; }
.rgw-karte .elementor-heading-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rgw-karte .rgw-chip--ort { position: relative; z-index: 2; }

/* ---------- Orte als Kacheln ---------- */
.rgw-orte-kacheln {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rgw-ort-kachel {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 18px;
	border-radius: var(--rgw-radius-s);
	background: #fff;
	border: 1px solid var(--rgw-grau-100);
	color: var(--rgw-text) !important;
	text-decoration: none !important;
	transition: border-color .15s, box-shadow .15s;
}
.rgw-ort-kachel:hover { border-color: var(--rgw-gelb); box-shadow: var(--rgw-schatten); }
.rgw-ort-kachel__name { font-weight: 600; }
.rgw-ort-kachel__anzahl { font-size: 13px; color: var(--rgw-grau-600); }

.rgw-zahlen { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .9); }
.rgw-zahlen strong { color: #fff; }

/* ---------- A–Z ---------- */
.rgw-az__liste {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rgw-az__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--rgw-radius-s);
	background: #fff;
	border: 1px solid var(--rgw-grau-100);
	font-weight: 600;
	color: var(--rgw-text) !important;
	text-decoration: none !important;
	transition: background-color .15s, border-color .15s;
}
a.rgw-az__link:hover { background: var(--rgw-gelb); border-color: var(--rgw-gelb); }
.rgw-az__link.is-leer { color: #c4c4c8 !important; background: transparent; }
@media (max-width: 767px) { .rgw-az__link { width: 36px; height: 36px; } }
.rgw-az-sticky { position: sticky; top: 72px; z-index: 5; }

.rgw-gruppen {
	display: grid;
	align-items: start;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}
.rgw-gruppe {
	padding: 20px 24px;
	border-radius: var(--rgw-radius);
	background: #fff;
	border: 1px solid var(--rgw-grau-100);
}
.rgw-gruppe__buchstabe {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0 0 12px !important;
	border-radius: var(--rgw-radius-s);
	background: var(--rgw-gelb);
	font-size: 20px !important;
}
.rgw-gruppe__liste { margin: 0; padding: 0; list-style: none; }
.rgw-gruppe__liste li { margin: 0 0 6px; line-height: 1.4; }
.rgw-gruppe__liste a { color: var(--rgw-text); text-decoration: none; }
.rgw-gruppe__liste a:hover { color: var(--rgw-blau); text-decoration: underline; }
.rgw-anzahl { font-size: 12px; color: var(--rgw-grau-600); }

/* ---------- Ortsbeschreibung (Archiv) ---------- */
.rgw-ortstext { max-width: 760px; color: var(--rgw-grau-600); }
.rgw-ortstext summary { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--rgw-blau); cursor: pointer; }
.rgw-ortstext[open] summary { display: none; }

/* ---------- Header ---------- */
.rgw-header { transition: box-shadow .2s; }
.rgw-header.elementor-sticky--effects { box-shadow: 0 2px 16px rgba(20, 20, 40, .08); }

/* Hero */
.rgw-hero .rgw-ortssuche { box-shadow: 0 12px 40px rgba(0, 0, 0, .25); margin-bottom: 0; }

/* Pagination Loop-Grid */
.elementor-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border-radius: var(--rgw-radius-s);
	border: 1px solid var(--rgw-grau-100);
	background: #fff;
	text-decoration: none;
}
.elementor-pagination .page-numbers.current { background: var(--rgw-gelb); border-color: var(--rgw-gelb); }

/* Seiten ohne Elementor (Datenschutz, Impressum): Lesebreite */
.page-content { max-width: 760px; margin-inline: auto; padding: 48px 20px 96px; }
.page-header .entry-title { max-width: 760px; margin: 48px auto 0; padding: 0 20px; }

/* Karte */
.rgw-karte__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rgw-titelbild img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--rgw-radius); }
@media (max-width: 767px) { .rgw-titelbild img { aspect-ratio: 3 / 2; } }
.rgw-treffer { margin: 0 0 16px; color: var(--rgw-grau-600); }
.rgw-weitere-titel { margin: 0; }
.elementor-widget-breadcrumbs, .elementor-widget-breadcrumbs a { font-size: 14px; color: var(--rgw-grau-600); }

/* Breadcrumbs: langer Beitragstitel einzeilig */
.elementor-widget-breadcrumbs .breadcrumb_last {
	display: inline-block;
	max-width: min(60ch, 100%);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	vertical-align: bottom;
}

/* Ratgeber A–Z: ein Buchstabe je Ansicht, Einträge als zweispaltige Liste */
.rgw-az__link.is-aktiv { background: var(--rgw-gelb); border-color: var(--rgw-gelb); }
.rgw-rliste__kopf { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--rgw-grau-600); font-weight: 600; }
.rgw-rliste__buchstabe {
	display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 8px;
	border-radius: var(--rgw-radius-s); background: var(--rgw-gelb); color: var(--rgw-text); font-size: 24px;
}
.rgw-rliste__liste {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 767px) { .rgw-rliste__liste { grid-template-columns: 1fr; } }
.rgw-rliste__eintrag {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 16px 20px;
	border-radius: var(--rgw-radius-s);
	background: #fff;
	border: 1px solid var(--rgw-grau-100);
	transition: border-color .15s, box-shadow .15s;
}
.rgw-rliste__eintrag:hover { border-color: var(--rgw-gelb); box-shadow: var(--rgw-schatten); }
.rgw-rliste__eintrag a { color: var(--rgw-text); font-weight: 600; line-height: 1.4; text-decoration: none; }
.rgw-rliste__eintrag a::after { content: ""; position: absolute; inset: 0; } /* ganze Zeile klickbar */
.rgw-rliste__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; }
.rgw-rliste__nav .rgw-button { margin: 0; }
