/* ==================================================================
   DBDO – Neues Design · nur Startseite ("Für Bürger")
   ==================================================================
   Wird nur auf der Startseite geladen (nach relaunch.css). Bausteine,
   die auch andere Seiten brauchen, stehen in relaunch.css.
   ================================================================== */

/* 1 ─ Seitenkopf ─────────────────────────────────────────────────── */

.rl-start-hero {
	--rl-hero-bildlage: center 60%;
	--rl-hero-schleier: radial-gradient(ellipse 75% 62% at 50% 34%, rgba(16, 42, 30, .66) 0%, rgba(16, 42, 30, .5) 45%, rgba(16, 42, 30, .14) 100%);
	--rl-hero-polster: 72px var(--rl-rand) 56px;
	--rl-hero-titel: var(--rl-gr-h1);
}
.dbdo-rl-neu .rl-inhalt .rl-start-hero .rl-hero__titel {
	line-height: .9;
}
.rl-start-marke {
	border-color: var(--rl-linie-dunkel-2);
	background: rgba(246, 243, 236, .08);
}
/* "Schon 58.601 Downloads" – immer in EINER Zeile (Vorgabe Ronny). */
.dbdo-rl-neu .rl-inhalt .rl-start-downloads {
	margin-bottom: -12px;
	padding: 9px 18px;
	border-radius: var(--rl-rund-pille);
	background: rgba(246, 243, 236, .94);
	color: var(--rl-tanne);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}
.rl-start-downloads strong {
	font-weight: 800;
}

/* 2 ─ Drei Schritte ──────────────────────────────────────────────── */

.rl-start-vorteil {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 4px 0;
}
.dbdo-rl-neu .rl-inhalt .rl-start-vorteil__titel {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
}
.rl-start-vorteil__titel span:last-child {
	text-wrap: balance;
}
.rl-start-vorteil__nr {
	color: var(--rl-gruen);
	font-weight: 800;
}
.rl-start-vorteil p {
	font-size: 15px;
	line-height: 1.55;
	color: var(--rl-text-2);
	text-wrap: pretty;
}

/* 3 ─ So einfach geht's ──────────────────────────────────────────── */

.rl-start-nebentext {
	max-width: 440px;
	font-size: 17px;
	line-height: 1.55;
	color: var(--rl-auf-dunkel-2);
}
.dbdo-rl-neu .rl-inhalt .rl-start-schritt {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	border: 1px solid var(--rl-linie-dunkel);
	border-radius: var(--rl-rund-l);
	background: transparent;
	color: var(--rl-auf-dunkel);
	text-align: left;
	cursor: pointer;
	transition: background .2s;
}
.dbdo-rl-neu .rl-inhalt .rl-start-schritt[aria-pressed="true"] {
	border-color: var(--rl-auf-dunkel);
	background: var(--rl-auf-dunkel);
	color: var(--rl-tanne);
}
.rl-start-schritt__nr {
	font-family: var(--rl-schrift-titel);
	font-size: 15px;
	font-weight: 700;
	color: var(--rl-gelb);
}
.rl-start-schritt[aria-pressed="true"] .rl-start-schritt__nr {
	color: var(--rl-gruen);
}
.rl-start-schritt__titel {
	font-family: var(--rl-schrift-titel);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
}
.rl-start-schritt__text {
	font-size: 15px;
	line-height: 1.5;
	opacity: .85;
}

/* Kasten "Beispiel aus dem Alltag" mit Hintergrundbild */
.rl-start-alltag {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	align-items: center;
	gap: 40px;
	padding: 40px;
	border-radius: var(--rl-rund-xxl);
	background: var(--rl-tanne-tief);
	overflow: hidden;
}
.rl-start-alltag__hintergrund,
.rl-start-alltag__schleier {
	position: absolute;
	inset: 0;
}
.dbdo-rl-neu .rl-inhalt .rl-start-alltag__hintergrund img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.rl-start-alltag__schleier {
	background: linear-gradient(90deg, rgba(20, 45, 34, .45) 0%, rgba(20, 45, 34, .8) 48%, rgba(20, 45, 34, .88) 100%);
}
.rl-start-alltag__handy {
	position: relative;
	display: flex;
	justify-content: center;
	height: 520px;
}
.dbdo-rl-neu .rl-inhalt .rl-start-alltag__handy img {
	display: block;
	width: auto;
	height: 520px;
	max-width: 100%;
	object-fit: contain;
}
.rl-start-alltag__text {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}
.dbdo-rl-neu .rl-inhalt .rl-start-alltag__titel {
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	text-wrap: balance;
}
.rl-start-alltag__absatz {
	font-size: 17px;
	line-height: 1.6;
	color: var(--rl-auf-dunkel-2);
}
.dbdo-rl-neu .rl-inhalt .rl-start-alltag__bilder {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 8px;
}
.rl-start-alltag__reihe {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.dbdo-rl-neu .rl-inhalt .rl-start-alltag__reihe img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 16px;
	background: #24493A;
}
.rl-start-alltag__bilder figcaption {
	font-size: 13px;
	color: #8FA398;
}
.rl-start-alltag__wahl {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 8px;
}

/* 6 ─ So wirkt Deine Meldung in Deutschland ──────────────────────── */

.rl-start-wirkung__kopf {
	max-width: 820px;
}
.rl-start-wirkung__reihe {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 16px;
}
/* Meldungskarte – Werte aus Meldungskarte.html (im Entwurf ein iframe) */
.rl-start-karte {
	position: relative;
	flex: 2 1 560px;
	min-width: 0;
	height: clamp(520px, 50vw, 680px);
	border-radius: var(--rl-rund-xxl);
	background: #fff;
	overflow: hidden;
	font-family: var(--rl-schrift);
	color: var(--rl-tanne);
}
/* Konnten die Kartendateien nicht geladen werden: Rahmen ausblenden statt leerer Flaeche */
.rl-start-karte[data-rl-karte-fehler] {
	display: none;
}
.rl-karte-flaeche {
	position: absolute;
	inset: 0;
	background: #DCE6E1;
}
.rl-start-karte .leaflet-container {
	background: #DCE6E1;
	font-family: var(--rl-schrift);
}
.rl-start-karte .leaflet-control-attribution {
	font-size: 10px;
	background: rgba(255, 255, 255, .7) !important;
}
.rl-karte-knoepfe {
	position: absolute;
	right: 16px;
	top: 16px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.dbdo-rl-neu .rl-inhalt .rl-karte-knoepfe button {
	display: grid;
	place-items: center;
	height: 40px;
	min-width: 40px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--rl-rund-m);
	background: #fff;
	color: var(--rl-tanne);
	font: 600 14px var(--rl-schrift);
	cursor: pointer;
	box-shadow: 0 4px 14px -6px rgba(31, 61, 46, .35);
}
.dbdo-rl-neu .rl-inhalt .rl-karte-knoepfe button:hover {
	background: var(--rl-gelb);
}
.rl-karte-zoom {
	display: flex;
	flex-direction: column;
	border-radius: var(--rl-rund-m);
	overflow: hidden;
	box-shadow: 0 4px 14px -6px rgba(31, 61, 46, .35);
}
.dbdo-rl-neu .rl-inhalt .rl-karte-zoom button {
	border-radius: 0;
	box-shadow: none;
	font-size: 20px;
}
.dbdo-rl-neu .rl-inhalt .rl-karte-zoom button + button {
	border-top: 1px solid var(--rl-linie-zart);
}
.rl-karte-hinweis {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 1000;
	padding: 7px 11px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .92);
	font-size: 12px;
	color: var(--rl-text-3);
}
/* Tooltip an einem Punkt */
.leaflet-tooltip.rl-karte-tipp {
	padding: 10px 12px;
	border: 0;
	border-radius: var(--rl-rund-m);
	background: var(--rl-tanne);
	color: var(--rl-auf-dunkel);
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
	font-family: var(--rl-schrift);
	font-size: 13px;
	line-height: 1.45;
}
.leaflet-tooltip.rl-karte-tipp::before {
	border-top-color: var(--rl-tanne);
}
.rl-karte-tipp b {
	display: block;
	font-size: 16px;
	font-weight: 700;
}
.rl-karte-tipp__zeile {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--rl-auf-dunkel-3);
}
.rl-karte-tipp__zeile i {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

/* Spalte neben der Karte: Zahlen und Kategorien, so hoch wie die Karte */
.rl-start-wirkung__kacheln {
	flex: 1 1 300px;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	grid-auto-rows: minmax(0, auto);
	align-content: stretch;
	gap: 16px;
}
/* Ohne Karte (keine Punkte) stehen die Kacheln allein in der Reihe */
.rl-start-wirkung__reihe:not(:has(.rl-start-karte)) .rl-zahlkachel {
	min-height: 180px;
}
/* Kachel "Kategorien" – nur mit Faellen je Kategorie aus dem Backend */
.rl-start-kategorien {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px 24px;
	border-radius: var(--rl-rund-xl);
	background: #fff;
}
.rl-start-kategorien__titel {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--rl-text-3);
}
.rl-start-kategorien__liste {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.dbdo-rl-neu .rl-inhalt .rl-start-kategorie {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 -8px;
	padding: 7px 8px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--rl-tanne);
	font-size: 15px;
	text-align: left;
	cursor: pointer;
}
.dbdo-rl-neu .rl-inhalt .rl-start-kategorie:hover {
	background: var(--rl-papier);
}
.rl-start-kategorie__punkt {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--rl-kat);
}
.rl-start-kategorie__name {
	flex: 1;
}
/* Ausgeblendete Kategorie */
.rl-start-kategorie[aria-pressed="false"] {
	opacity: .55;
}
.rl-start-kategorie[aria-pressed="false"] .rl-start-kategorie__punkt {
	background: #D9D2C1;
}
.rl-start-kategorie[aria-pressed="false"] .rl-start-kategorie__name {
	text-decoration: line-through;
}
.rl-start-kategorien__hinweis {
	font-size: 13px;
	line-height: 1.45;
	color: var(--rl-text-3);
}

/* Ranglisten */
.rl-start-rang__kopf {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}
.rl-start-rang__titel {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 560px;
}
.dbdo-rl-neu .rl-inhalt .rl-start-rang__titel h3 {
	font-size: 26px;
	font-weight: 700;
	line-height: normal;
}
.rl-start-rang__titel p {
	font-size: 15px;
	line-height: 1.5;
	color: var(--rl-text-3);
}
.rl-start-rang__listen {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: 32px;
}
.rl-start-rang {
	--rl-rang-farbe: var(--rl-gruen);
	--rl-rang-flaeche: var(--rl-gruen-hell);
	--rl-rang-tinte: var(--rl-gruen-tinte);
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.rl-start-rang--schlecht {
	--rl-rang-farbe: var(--rl-rot);
	--rl-rang-flaeche: var(--rl-rot-hell);
	--rl-rang-tinte: var(--rl-rot-tinte);
}
.rl-start-rang__ueber {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.dbdo-rl-neu .rl-inhalt .rl-start-rang__ueber h4 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--rl-schrift);
	font-size: 17px;
	font-weight: 700;
	line-height: normal;
}
.rl-start-rang__ueber h4::before {
	content: '';
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--rl-rang-farbe);
}
.rl-start-rang__ueber p {
	font-size: 14px;
	color: var(--rl-text-3);
}
.rl-start-rang ol {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	column-gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rl-start-rang li {
	display: grid;
	grid-template-columns: 28px 1fr auto;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px solid var(--rl-linie-zart);
	font-size: 15px;
	list-style: none;
}
.rl-start-rang__platz {
	font-family: var(--rl-schrift-titel);
	font-weight: 700;
	/* Im Entwurf #8A978F; etwas dunkler, damit die Zahl gut lesbar bleibt. */
	color: #68766E;
}
.rl-start-rang__ort {
	min-width: 0;
	font-weight: 500;
	overflow-wrap: anywhere;
}
.rl-start-rang__wert {
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--rl-rang-flaeche);
	color: var(--rl-rang-tinte);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* 7 ─ Bewertungen ────────────────────────────────────────────────── */

.rl-start-stimmen {
	columns: 3 300px;
	column-gap: 16px;
}
.dbdo-rl-neu .rl-inhalt .rl-start-stimme {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 0 16px;
	padding: 24px;
	border: 1px solid var(--rl-linie-hell);
	border-radius: var(--rl-rund-l);
	background: #fff;
	break-inside: avoid;
}
.rl-start-stimme__sterne {
	color: var(--rl-gelb);
	font-size: 16px;
	letter-spacing: 2px;
}
.rl-start-stimme blockquote {
	font-size: 17px;
	line-height: 1.55;
	text-wrap: pretty;
	border: 0;
	overflow-wrap: anywhere;
}
.rl-start-stimme figcaption {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
}
.rl-start-stimme figcaption span {
	color: var(--rl-text-3);
	text-align: right;
}
/* Store-Knoepfe neben der Ueberschrift: im Entwurf 10 px Abstand statt 12 */
.rl-stores--eng {
	gap: 10px;
}

/* 8 ─ Zwei Aufrufe ───────────────────────────────────────────────── */

/* "Jetzt informieren →": im Entwurf ohne Rand und ohne feste Zeilenhoehe
   (190 × 47 px statt 192 × 50 px mit dem allgemeinen rl-knopf) */
.dbdo-rl-neu .rl-inhalt .rl-aufruf .rl-knopf--weiss {
	border: 0;
	line-height: normal;
}
