/* ==================================================================
   DBDO – Neues Design · nur Seite "Orte" (/orte/)
   ==================================================================
   Wird nur auf der Orte-Seite geladen (nach relaunch.css). Werte 1:1 aus
   dem Entwurf "Orte v2.dc.html" – bei jeder Breite dieselben Masse wie
   dort (der Entwurf hat fuer die Liste keinen eigenen Handy-Aufbau).

   Die Klassen "dbdo-orte__…" gibt der Kurzbefehl [dbdo_orte] aus
   (functions.php) – sie werden hier nur gestaltet, nicht umbenannt.
   Die Klassen "rl-orte-…" setzt die Vorlage page-orte.php darum herum.

   Das Suchskript des Kurzbefehls blendet Eintraege ueber
   style="display:none" aus und mit style="" wieder ein. Deshalb steht auf
   diesen Elementen kein display mit !important – ausser beim Buchstaben-
   Filter (seite-orte.js) und der Buchstabenzeile, die laut Entwurf auch
   beim Suchen stehen bleibt.

     1  Seitenkopf               4  Was du melden kannst  ┐ nicht im Entwurf,
     2  Leiste: Suche, A–Z       5  So funktioniert …     │ fuer Suchmaschinen,
     3  Liste der Orte           6  Häufige Fragen        ┘ nach dem App-Hinweis
     7  App-Hinweis              8  Sonderfaelle · 9  Schmale Bildschirme
   ================================================================== */

/* 1 ─ Seitenkopf ─────────────────────────────────────────────────── */

.rl-orte-hero {
	--rl-hero-bildlage: center 60%;
	--rl-hero-schleier: radial-gradient(ellipse 75% 62% at 50% 45%, rgba(16, 42, 30, .72) 0%, rgba(16, 42, 30, .56) 45%, rgba(16, 42, 30, .2) 100%);
	--rl-hero-polster: 88px var(--rl-rand) 96px;
	--rl-hero-titel: clamp(44px, 8vw, 128px);
}
.dbdo-rl-neu .rl-inhalt .rl-orte-hero .rl-hero__titel {
	line-height: .9;
}
/* Kasten "Deine Stadt muss dafür nicht aktiv mit uns zusammenarbeiten …" */
.dbdo-rl-neu .rl-inhalt .rl-orte-hinweis {
	max-width: 720px;
	padding: 20px 26px;
	border: 1px solid rgba(246, 243, 236, .25);
	border-radius: 20px;
	background: rgba(14, 30, 23, .55);
	color: #E2F0E8;
	font-size: 17px;
	line-height: 1.6;
}
.rl-orte-hinweis strong {
	color: var(--rl-gelb);
	font-weight: 700;
}

/* 2 ─ Mitlaufende Leiste: Suche und Buchstaben ───────────────────── */

/* Wie im Entwurf ein Abschnitt direkt in der Seite (nicht in der Liste):
   Er bleibt bis zum Seitenende unter dem festen Kopf stehen. */
.rl-orte-leiste {
	position: sticky;
	/* --rl-orte-kopf: gemessene Hoehe des festen Kopfes (setzt seite-orte.js);
	   ohne Javascript gilt der Wert aus relaunch.css. */
	top: var(--rl-orte-kopf, var(--rl-kopf-hoehe));
	z-index: 10;
	border-bottom: 1px solid var(--rl-linie);
	background: rgba(246, 243, 236, .96);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
/* Angemeldet liegt die WordPress-Leiste ueber dem Kopf (wie in relaunch.css) */
.admin-bar .rl-orte-leiste { top: calc(var(--rl-orte-kopf, var(--rl-kopf-hoehe)) + 32px); }
@media (max-width: 782px) { .admin-bar .rl-orte-leiste { top: calc(var(--rl-orte-kopf, var(--rl-kopf-hoehe)) + 46px); } }
@media (max-width: 600px) { .admin-bar .rl-orte-leiste { top: var(--rl-orte-kopf, var(--rl-kopf-hoehe)); } }

.rl-orte-leiste__innen {
	max-width: var(--rl-breite);
	margin: 0 auto;
	padding: 16px var(--rl-rand);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.rl-orte-suche {
	position: relative;
}
/* Lupe wie im Entwurf: Zeichen ⌕, 20 px */
.rl-orte-suche__lupe {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	line-height: normal;
	color: var(--rl-text-3);
	pointer-events: none;
}
.dbdo-rl-neu .rl-inhalt .dbdo-orte__search {
	display: block;
	width: 100%;
	margin: 0;
	padding: 16px 20px 16px 52px;
	border: 1px solid #D9D2C1;
	border-radius: 16px;
	background: #fff;
	color: var(--rl-tanne);
	font: inherit;
	font-size: 18px;
	line-height: normal;
	-webkit-appearance: none;
	appearance: none;
}
.dbdo-orte__search::placeholder {
	color: #757575;   /* Standard-Platzhalterfarbe wie im Entwurf */
	opacity: 1;
}
.dbdo-orte__search::-webkit-search-decoration { -webkit-appearance: none; }

/* Buchstaben: "Alle" + A–Z, eine Zeile, auf schmalen Bildschirmen seitlich zu schieben.
   Bleibt beim Suchen sichtbar (das Suchskript wuerde sie ausblenden). */
.dbdo-rl-neu .rl-inhalt .dbdo-orte__abc {
	display: flex !important;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}
.dbdo-orte__abc::-webkit-scrollbar { display: none; }
.dbdo-rl-neu .rl-inhalt .dbdo-orte__abc a {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 1px 6px;
	border-radius: 8px;
	background: transparent;
	color: var(--rl-tanne);
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
	text-decoration: none;
}
/* Gewaehlt ("Alle" oder ein Buchstabe, setzt seite-orte.js) */
.dbdo-rl-neu .rl-inhalt .dbdo-orte__abc a.ist-aktiv {
	background: var(--rl-tanne);
	color: var(--rl-auf-dunkel);
}
/* Fokusrahmen innen, damit ihn die schiebbare Zeile nicht abschneidet */
.dbdo-rl-neu .rl-inhalt .dbdo-orte__abc a:focus-visible {
	outline: 3px solid var(--rl-gelb);
	outline-offset: -3px;
	box-shadow: none;
}

/* 3 ─ Liste der Orte ─────────────────────────────────────────────── */

.rl-orte-liste {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-top: 48px;
	padding-bottom: var(--rl-abstand);
	/* Sprungziel "Alle" (ohne Javascript): unter Kopf und Leiste */
	scroll-margin-top: calc(var(--rl-orte-kopf, var(--rl-kopf-hoehe)) + 135px);
}
.rl-orte-liste__kopf {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}
.dbdo-rl-neu .rl-inhalt .dbdo-orte__h2 {
	font-family: var(--rl-schrift-titel);
	font-weight: 800;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.1;
	letter-spacing: -.02em;
	text-wrap: balance;
}
/* Ueberschrift der Liste genau wie im Entwurf (ohne feste Zeilenhoehe) */
.dbdo-rl-neu .rl-inhalt .rl-orte-liste .dbdo-orte__h2 {
	line-height: normal;
	text-wrap: wrap;
}
/* "10.712 Orte" · "Auszug aus 10.712 Orten" · "n Treffer" */
.rl-orte-liste__zahl {
	font-size: 15px;
	color: var(--rl-text-3);
}

/* Ortsteil-Treffer ("Dabendorf gehört zu Zossen – melde einfach dort.").
   Nicht im Entwurf, aber Teil der Suche: als Kasten wie der Leerzustand. */
.dbdo-orte__teile {
	padding: 24px 32px;
	border-radius: 20px;
	background: #fff;
	color: var(--rl-tanne);
}
.dbdo-orte__teile ul {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dbdo-orte__teile li {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
}
.dbdo-orte__teile li strong {
	font-weight: 700;
}

.dbdo-orte__groups {
	display: flex;
	flex-direction: column;
	gap: 40px;
}
/* Buchstaben-Filter (seite-orte.js): nur die gewaehlte Gruppe */
.rl-orte[data-rl-buchstabe] .dbdo-orte__group:not(.ist-gewaehlt) {
	display: none !important;
}
/* Ein Buchstabe: links der grosse Buchstabe, rechts die Orte in Spalten */
.dbdo-orte__group {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 16px;
	padding-top: 20px;
	border-top: 1px solid var(--rl-linie);
	/* Sprungziel der Buchstaben ohne Javascript: unter Kopf und Leiste */
	scroll-margin-top: 135px;
}
.dbdo-rl-neu .rl-inhalt .dbdo-orte__letter {
	font-family: var(--rl-schrift-titel);
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	color: var(--rl-gruen);
}
.dbdo-orte__group ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 4px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
/* Eine Zeile wie im Entwurf: 8 px / 10 px Innenabstand, 15 px, halbfett */
.dbdo-orte__group li,
.rl-orte--links .dbdo-orte__group li > a {
	display: block;
	margin: 0;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	line-height: normal;
	overflow-wrap: anywhere;
}
/* Mit Javascript traegt der Link den Innenabstand (ganze Flaeche klickbar) */
.rl-orte--links .dbdo-orte__group li {
	padding: 0;
}
.dbdo-rl-neu .rl-inhalt .rl-orte--links .dbdo-orte__group li > a {
	color: var(--rl-tanne);
	text-decoration: none;
}
.dbdo-rl-neu .rl-inhalt .rl-orte--links .dbdo-orte__group li > a:hover {
	background: var(--rl-linie-hell);
	color: var(--rl-tanne);
}
/* Kuerzel des Bundeslands bei gleichnamigen Orten (Aach RP / Aach BW) */
.dbdo-orte__group li small {
	margin-left: 2px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--rl-text-3);
}

/* "Kein Ort gefunden …" */
.dbdo-rl-neu .rl-inhalt .dbdo-orte__empty,
.rl-orte-meldung {
	padding: 32px;
	border-radius: 20px;
	background: #fff;
	font-size: 17px;
	line-height: 1.6;
}
/* Der Leerzustand erscheint nur, wenn alle Buchstaben ausgeblendet sind –
   die leere Liste davor nimmt dann keinen eigenen Abstand. */
.dbdo-rl-neu .rl-inhalt .dbdo-orte__empty {
	margin-top: -40px;
}
/* "Ortsteile: © OpenStreetMap-Mitwirkende, ODbL" – Platz wie im Entwurf.
   Farbe etwas dunkler als im Entwurf (#8A978F waere bei 13 px zu blass). */
.dbdo-rl-neu .rl-inhalt .dbdo-orte__quelle {
	font-size: 13px;
	color: var(--rl-text-3);
}

/* 4 ─ Was du melden kannst ───────────────────────────────────────── */

.rl-orte-block__innen {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-top: var(--rl-abstand);
	padding-bottom: var(--rl-abstand);
}
/* Folgt direkt auf die Liste, die unten schon Abstand hat */
.rl-orte-block--karten .rl-orte-block__innen {
	padding-top: 0;
}
/* Ueberschriften der Abschnitte unter der Liste: gross wie auf der Startseite */
.dbdo-rl-neu .rl-inhalt .rl-orte-block .dbdo-orte__h2 {
	font-size: var(--rl-gr-h2);
	line-height: 1;
	letter-spacing: -.03em;
}
.dbdo-orte__cards {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.dbdo-orte__card {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	border: 1px solid var(--rl-linie-hell);
	border-radius: var(--rl-rund-xl);
	background: #fff;
}
.dbdo-rl-neu .rl-inhalt .dbdo-orte__card h3 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.dbdo-rl-neu .rl-inhalt .dbdo-orte__card p {
	font-size: 15px;
	line-height: 1.55;
	color: var(--rl-text-2);
	text-wrap: pretty;
}

/* 5 ─ So funktioniert der Mängelmelder ───────────────────────────── */

.dbdo-orte__steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: rl-orte-schritt;
}
.dbdo-orte__steps li {
	counter-increment: rl-orte-schritt;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--rl-linie-hell);
	border-radius: var(--rl-rund-l);
	background: #fff;
}
/* 01, 02, 03 */
.dbdo-orte__steps li::before {
	content: counter(rl-orte-schritt, decimal-leading-zero);
	font-family: var(--rl-schrift-titel);
	font-size: 15px;
	font-weight: 700;
	color: var(--rl-gruen);
}
.dbdo-orte__steps li strong {
	font-family: var(--rl-schrift-titel);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
}
.dbdo-orte__steps li span {
	font-size: 15px;
	line-height: 1.5;
	color: var(--rl-text-2);
}
/* Knopf "Jetzt Mangel melden" */
.dbdo-rl-neu .rl-inhalt .dbdo-orte__button {
	display: inline-block;
	padding: 15px 24px;
	border-radius: var(--rl-rund-pille);
	background: var(--rl-tanne);
	color: var(--rl-auf-dunkel);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	transition: background .15s, color .15s;
}
.dbdo-rl-neu .rl-inhalt .dbdo-orte__button:hover {
	background: var(--rl-gruen);
	color: #fff;
}
/* Auf der dunklen Flaeche (Normalfall) */
.rl-flaeche--dunkel .dbdo-orte__steps li {
	border-color: var(--rl-linie-dunkel);
	background: transparent;
}
.rl-flaeche--dunkel .dbdo-orte__steps li::before {
	color: var(--rl-gelb);
}
.rl-flaeche--dunkel .dbdo-orte__steps li span {
	color: inherit;
	opacity: .85;
}
.dbdo-rl-neu .rl-inhalt .rl-flaeche--dunkel .dbdo-orte__button {
	background: var(--rl-gelb);
	color: var(--rl-tanne);
}
.dbdo-rl-neu .rl-inhalt .rl-flaeche--dunkel .dbdo-orte__button:hover {
	background: #fff;
	color: var(--rl-tanne);
}

/* 6 ─ Häufige Fragen ─────────────────────────────────────────────── */

/* Ueberschrift links, Fragen rechts; schmal untereinander */
.rl-orte-block--fragen .rl-orte-block__innen {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 40px 56px;
	align-items: start;
}
.dbdo-orte__faq {
	display: flex;
	flex-direction: column;
}
.dbdo-orte__faq details {
	border-top: 1px solid var(--rl-linie);
}
.dbdo-orte__faq details:last-child {
	border-bottom: 1px solid var(--rl-linie);
}
.dbdo-orte__faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 22px 0;
	font-family: var(--rl-schrift-titel);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	cursor: pointer;
	list-style: none;
}
.dbdo-orte__faq summary::-webkit-details-marker { display: none; }
/* Plus / Minus rechts */
.dbdo-orte__faq summary::after {
	content: '+';
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--rl-linie-hell);
	font-family: var(--rl-schrift);
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
}
.dbdo-orte__faq details[open] summary::after {
	content: '–';
	background: var(--rl-gelb);
}
.dbdo-orte__faq summary:focus-visible {
	outline: 3px solid var(--rl-gelb);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--rl-tanne);
	border-radius: var(--rl-rund-s);
}
.dbdo-rl-neu .rl-inhalt .dbdo-orte__faq p {
	max-width: 68ch;
	padding: 0 48px 24px 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rl-text-2);
	text-wrap: pretty;
}

/* 7 ─ App-Hinweis (im Entwurf direkt nach der Liste) ─────────────── */

.rl-orte-app-abschnitt {
	padding-bottom: var(--rl-abstand);
}
.rl-orte-app {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 40px;
	border-radius: var(--rl-rund-xxl);
	background: var(--rl-gelb);
	color: var(--rl-tanne);
}
.dbdo-rl-neu .rl-inhalt .rl-orte-app__titel {
	font-family: var(--rl-schrift-titel);
	font-weight: 700;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.1;
	letter-spacing: -.02em;
}

/* 8 ─ Sonderfaelle ───────────────────────────────────────────────── */

/* Keine Daten: nur die Meldung des Kurzbefehls */
.rl-orte-ohne-daten {
	padding-top: 48px;
	padding-bottom: var(--rl-abstand);
}

/* Der Kurzbefehl liess sich nicht zerlegen: seine Ausgabe am Stueck.
   Die Regeln oben greifen weiter; hier nur Abstaende und der Kopf ohne Bild. */
.rl-orte-roh {
	padding-top: 48px;
	padding-bottom: var(--rl-abstand);
}
.rl-orte-roh .dbdo-orte {
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.rl-orte-roh .dbdo-orte__hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 56px var(--rl-rand);
	border-radius: var(--rl-rund-xxl);
	background: var(--rl-tanne);
	color: var(--rl-auf-dunkel);
	text-align: center;
}
.dbdo-rl-neu .rl-inhalt .rl-orte-roh .dbdo-orte__title {
	font-weight: 800;
	font-size: clamp(36px, 6vw, 72px);
	line-height: .95;
	letter-spacing: -.04em;
}
.rl-orte-roh .dbdo-orte__lead,
.rl-orte-roh .dbdo-orte__note {
	max-width: 720px;
	font-size: 18px;
	line-height: 1.55;
}
.rl-orte-roh .dbdo-orte__hero .dbdo-orte__count {
	color: var(--rl-auf-dunkel-2);
}
.dbdo-rl-neu .rl-inhalt .rl-orte-roh .dbdo-orte__h2 {
	margin-top: 32px;
}


/* 9 ─ Schmale Bildschirme ────────────────────────────────────────── */
/* Liste, Leiste und Kopf wie im Entwurf ohne eigenen Handy-Aufbau.
   Hier nur die Abschnitte, die der Entwurf nicht zeigt. */

@media (max-width: 700px) {
	.dbdo-orte__card {
		padding: 24px;
	}
	.dbdo-rl-neu .rl-inhalt .dbdo-orte__faq p {
		padding-right: 0;
	}
}
