/* ==================================================================
   DBDO – Neues Design · nur Seite "Kommunen & Gemeinden"
   ==================================================================
   Wird nur auf /kommunen-gemeinden/ geladen (nach relaunch.css).
   Werte aus dem Entwurf "Kommunen v3.dc.html". Bausteine, die auch
   andere Seiten brauchen, stehen in relaunch.css.

   Inhalt:
     1  Seitenkopf               6  Vom Hinweis zur Erledigung
     2  Drei Funktionen          7  So löst Deutschland Probleme (Zahl)
     3  Zusammenarbeit           8  Kontakt und Formular (Contact Form 7)
     4  Weitere Vorteile, Bild   9  Aufruf: App herunterladen
     5  Zweispaltige Abschnitte
   ================================================================== */

/* 1 ─ Seitenkopf ─────────────────────────────────────────────────── */

.rl-kommunen-hero {
	--rl-hero-bildlage: center 70%;
}
/* Knoepfe wie im Entwurf: Zeilenhoehe der Schrift, der gelbe ohne Rand
   (der Baustein in relaunch.css ist 1 bis 2 px hoeher) */
.dbdo-rl-neu .rl-inhalt .rl-kommunen-hero .rl-knopf {
	line-height: normal;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-hero .rl-knopf--gelb {
	border: 0;
}
/* 2 ─ Drei Funktionen ────────────────────────────────────────────── */

.dbdo-rl-neu .rl-inhalt .rl-kommunen-funktion h2 {
	font-size: 24px;
	font-weight: 700;
	line-height: normal;   /* wie im Entwurf: keine feste Zeilenhoehe */
	overflow-wrap: anywhere;
	hyphens: auto;
}
.rl-kommunen-funktion p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--rl-text-2);
}

/* 3 ─ Für bessere Zusammenarbeit ─────────────────────────────────── */

/* Text und Bild nebeneinander; auf schmalen Bildschirmen untereinander */
.rl-kommunen-block {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	align-items: center;
	gap: 48px;
}
.rl-kommunen-block__text {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-block__text h3 {
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	line-height: normal;
	letter-spacing: -.02em;
}
.rl-kommunen-block__text p {
	font-size: 17px;
	line-height: 1.6;
	color: var(--rl-text-2);
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-block__bild {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--rl-rund-l);
}
/* Aufnahmen aus dem Dashboard (25.11.2026): feiner Rand und weicher Schatten,
   damit sich das helle Bild von der sandfarbenen Flaeche abhebt */
.dbdo-rl-neu .rl-inhalt .rl-kommunen-block__bild--aufnahme {
	border: 1px solid var(--rl-linie);
	background: #fff;
	box-shadow: 0 18px 40px -24px rgba(31, 61, 46, .35);
}
/* Jeder zweite Block: Bild links, Text rechts – nur solange beide nebeneinander
   passen (zwei Spalten ab 2 x 420 px + 48 px Abstand + 2 x 40 px Seitenrand).
   Untereinander steht bei allen elf Bloecken erst der Text, dann sein Bild;
   sonst stuenden auf dem Handy zwei Bilder und zwei Texte direkt hintereinander.
   (Im Entwurf mit nur zwei Bloecken stand das zweite Bild auch auf dem Handy oben.) */
@media (min-width: 968px) {
	.rl-kommunen-block--bild-zuerst .rl-kommunen-block__bild {
		order: -1;
	}
}
/* Liste mit gruenen Haken */
.rl-kommunen-haken {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	font-weight: 600;
}
.rl-kommunen-haken li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rl-kommunen-haken li > span {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--rl-gruen);
	color: #fff;
	font-size: 12px;
}
/* Etwas kleinerer Knopf als der Standard (Entwurf: 13px 22px, 600) */
.dbdo-rl-neu .rl-inhalt .rl-kommunen-knopf {
	align-self: flex-start;
	margin-top: 8px;
	padding: 13px 22px;
	border: 0;
	font-weight: 600;
	line-height: normal;
}

/* 4 ─ Weitere Vorteile, Bild ─────────────────────────────────────── */

.rl-kommunen-vorteile {
	margin: 0;
	padding: 0;
	list-style: none;
}
.rl-kommunen-vorteil {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 160px;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--rl-linie-hell);
	border-radius: var(--rl-rund-l);
	background: #fff;
	list-style: none;
	font-family: var(--rl-schrift-titel);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-vorteil img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
}
.rl-kommunen-vorteil span {
	overflow-wrap: break-word;
	hyphens: auto;
}
/* Vier Kacheln (26.11.2026): feste Spaltenzahl 1, 2 oder 4, nie 3 + 1 */
.rl-kommunen-vorteile--vier { grid-template-columns: 1fr; }
@media (min-width: 452px) { .rl-kommunen-vorteile--vier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 836px) { .rl-kommunen-vorteile--vier { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Breitere Kacheln: Woerter nicht mehr trennen ("Schnittstel-len" bei 1440 px) */
.rl-kommunen-vorteile--vier .rl-kommunen-vorteil span { hyphens: manual; }
/* Grosses Bild: schliesst oben an "Weitere Vorteile" an, unten 72 px */
.rl-kommunen-bild {
	padding-bottom: 72px;
}

/* 5 ─ Zweispaltige Abschnitte ────────────────────────────────────── */

/* Zwei gleich breite Spalten, die unter 2 x 420 px untereinander rutschen.
   Abstand ueber --rl-luecke (Entwurf: 48 px, teils 40 px). */
.rl-kommunen-zweispaltig {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	align-items: center;
	gap: var(--rl-luecke, 48px);
}
.rl-kommunen-zweispaltig > * {
	min-width: 0;
}
/* Steht nur eine Spalte da (Zahl fehlt, oder das Formular
   fehlt), bleibt der Text in lesbarer Breite. */
.rl-kommunen-zweispaltig > :only-child {
	max-width: 820px;
}
.rl-kommunen-zweispaltig--unten {
	align-items: end;
}
/* Kontakt: beide Spalten gleich hoch wie im Entwurf (die Bestaetigung nach
   dem Absenden steht dann mittig in voller Hoehe) */
.rl-kommunen-zweispaltig--oben {
	align-items: stretch;
}
/* Ueberschrift der unteren Abschnitte: eine Stufe kleiner als rl-h2 */
.dbdo-rl-neu .rl-inhalt .rl-kommunen-h2 {
	font-size: clamp(34px, 4.2vw, 54px);
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-dialog__bild {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--rl-rund-xl);
}

/* 6 ─ Vom Hinweis zur Erledigung ─────────────────────────────────── */

.rl-kommunen-nebentext {
	font-size: 17px;
	line-height: 1.6;
	color: var(--rl-auf-dunkel-2);
}
/* Vier Karten (26.11.2026): 1, 2 oder 4 Spalten. Flaeche, Rundung und
   Abstand wie die fruehere Karte in diesem Abschnitt, dazu ein feiner Rand;
   die Nummer steht im gelben Feld .rl-symbol--gross. */
.rl-kommunen-ablauf {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px)  { .rl-kommunen-ablauf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .rl-kommunen-ablauf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rl-kommunen-schritt {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	margin: 0;
	padding: 28px;
	border: 1px solid var(--rl-linie-dunkel);
	border-radius: var(--rl-rund-xxl);
	background: var(--rl-tanne-tief);
	list-style: none;
}
.rl-kommunen-schritt__nr {
	font-family: var(--rl-schrift-titel);
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-schritt h3 {
	color: var(--rl-auf-dunkel);
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-schritt p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--rl-auf-dunkel-2);
}
/* 7 ─ So löst Deutschland Probleme ───────────────────────────────── */

/* Gruene Kachel mit der Zahl der gemeldeten Faelle */
.rl-kommunen-faelle {
	padding: 40px;
	border-radius: var(--rl-rund-xxl);
	background: var(--rl-gruen);
	color: #fff;
}
.rl-kommunen-faelle__zahl {
	font-family: var(--rl-schrift-titel);
	font-size: clamp(56px, 7vw, 96px);
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1;
}
/* Sehr lange Zahl: hoechstens so gross, dass sie in die Kachel passt
   (19 % der Innenbreite entspricht rund neun Zeichen wie 123.456.789).
   Bei heutigen Zahlen (sechs Zeichen) greift das nicht. */
.rl-kommunen-faelle--lang {
	container-type: inline-size;
}
.rl-kommunen-faelle--lang .rl-kommunen-faelle__zahl {
	font-size: min(clamp(56px, 7vw, 96px), 19cqi);
}
.rl-kommunen-faelle__text {
	margin-top: 8px;
	font-size: 18px;
	color: #E2F0E8;
}
/* 8 ─ Kontakt und Formular ───────────────────────────────────────── */

.dbdo-rl-neu .rl-inhalt a.rl-kommunen-mail {
	align-self: flex-start;
	padding-bottom: 2px;
	border-bottom: 2px solid var(--rl-gruen);
	color: var(--rl-gruen);
	font-size: 20px;
	font-weight: 700;
	overflow-wrap: anywhere;
}
.dbdo-rl-neu .rl-inhalt a.rl-kommunen-mail:hover {
	border-bottom-color: var(--rl-tanne);
	color: var(--rl-tanne);
}

/* Weisse Karte um das Formular */
.rl-kommunen-formular {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 32px;
	border-radius: var(--rl-rund-xl);
	background: #fff;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular h3 {
	font-size: 22px;
	font-weight: 700;
	line-height: normal;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular__hinweis {
	font-size: 14px;
	line-height: 1.5;
	color: var(--rl-text-2);
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular__hinweis a {
	text-decoration: underline;
}

/* Ab hier: das Formular von Contact Form 7 (Nr. 544) im Aussehen des
   Entwurfs. Das Geruest (Zeilen, <p>, <br>, Beschriftungen) kommt aus der
   Formular-Vorlage in WordPress und wird hier nur gestaltet. */

.rl-kommunen-formular .wpcf7 {
	min-width: 0;
}
/* Meldungen nur fuer Vorleseprogramme (steht auch in der CSS-Datei von
   Contact Form 7; hier noch einmal, falls sie fehlt) */
.rl-kommunen-formular .wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
}
.rl-kommunen-formular .wpcf7 .hidden-fields-container {
	display: none;
}
.rl-kommunen-formular .wpcf7 form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}
.rl-kommunen-formular .form-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.rl-kommunen-formular .formrow {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.rl-kommunen-formular .form-wrapper > br,
.rl-kommunen-formular .form-wrapper > p:empty,
.rl-kommunen-formular .form-wrapper p > br,
.rl-kommunen-formular .form-wrapper label > br {
	display: none;
}
/* Wie im Entwurf steht die Bezeichnung als Platzhalter im Feld; die
   Beschriftung ist nur fuer Vorleseprogramme da (page-kommunen.php).
   Die Absaetze der Formular-Vorlage tragen keinen eigenen Abstand. */
.rl-kommunen-formular .form-wrapper p {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
}
.rl-kommunen-formular .formrow label {
	display: block;
}
.rl-kommunen-formular .wpcf7-form-control-wrap {
	position: relative;
	display: block;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular input.wpcf7-text,
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular textarea.wpcf7-textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #D9D2C1;
	border-radius: var(--rl-rund-m);
	background: #FBFAF6;
	color: var(--rl-tanne);
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular textarea.wpcf7-textarea {
	height: 106px;   /* vier Zeilen wie im Entwurf (rows="4") */
	min-height: 80px;
	line-height: normal;
	resize: vertical;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular input.wpcf7-text:hover,
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular textarea.wpcf7-textarea:hover {
	border-color: #B9AF98;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular .wpcf7-not-valid {
	border-color: var(--rl-rot);
}
/* Hinweis unter einem Feld, das nicht stimmt */
.rl-kommunen-formular .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: var(--rl-rot-tinte);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

/* Zustimmung zur Datenschutzerklaerung */
.rl-kommunen-formular .dsgvo-checkbox {
	display: block;
}
.rl-kommunen-formular .wpcf7-checkbox,
.rl-kommunen-formular .wpcf7-acceptance {
	display: block;
}
.rl-kommunen-formular .wpcf7-list-item {
	display: block;
	margin: 0;
}
.rl-kommunen-formular .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--rl-text-2);
	cursor: pointer;
}
.rl-kommunen-formular .wpcf7-list-item-label {
	min-width: 0;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular .wpcf7-list-item-label a {
	text-decoration: underline;   /* Link zur Datenschutzerklaerung wie im Entwurf */
}
.rl-kommunen-formular .wpcf7-list-item-label::before,
.rl-kommunen-formular .wpcf7-list-item-label::after {
	content: none;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 3px 3px 3px 4px;   /* Rand des Browsers, oben wie im Entwurf */
	accent-color: var(--rl-gruen);
}

/* reCAPTCHA: Das Kaestchen von Google ist fest 304 x 78 px gross. */
.rl-kommunen-formular .cf7sr-g-recaptcha {
	min-height: 78px;
	max-width: 100%;
}
/* Das versteckte Feld dazu nimmt keinen Platz ein; nur eine Fehlermeldung
   ("Bitte bestätigen …") erscheint als eigene Zeile. */
.rl-kommunen-formular .wpcf7-form-control-wrap.cf7sr-recaptcha {
	display: contents;
}

/* Knopf "Formular absenden" */
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular input.wpcf7-submit {
	display: block;
	width: 100%;
	margin: 0;
	padding: 15px 24px;
	border: 0;
	border-radius: var(--rl-rund-pille);
	background: var(--rl-tanne);
	color: var(--rl-auf-dunkel);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: normal;
	text-align: center;
	cursor: pointer;
	transition: background .15s;
	-webkit-appearance: none;
	appearance: none;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular input.wpcf7-submit:hover {
	background: var(--rl-gruen);
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular input.wpcf7-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}
/* Wartezeichen waehrend des Sendens: rechts im Knopf statt in eigener Zeile */
.rl-kommunen-formular .wpcf7-spinner {
	position: absolute;
	right: 18px;
	bottom: 15px;
	margin: 0;
	background-color: var(--rl-papier);
	opacity: 1;
	pointer-events: none;
}
.rl-kommunen-formular .wpcf7-spinner::before {
	background-color: var(--rl-tanne);
}
/* Absenden vor der Zustimmung (26.11.2026): Das Wartezeichen sass unten
   rechts in der Formularhuelle; jetzt am Knopf selbst ausrichten. */
.rl-kommunen-formular .form-wrapper > p:last-child { position: relative; }
.rl-kommunen-formular .wpcf7-submit + .wpcf7-spinner { top: 13px; bottom: auto; }

/* Ergaenzung 26.11.2026 (nur diese Kopie, weicht damit von der Vorlage im
   Website-Ordner ab): Knopf "Absenden" steht jetzt ueber der Haekchen-Zeile
   (Ronny: "mach den Text unter dem Button absenden"). Die Abstaende kommen
   unveraendert vom gap der .form-wrapper (14 px wie zwischen den Feldern).
   Das Wartezeichen haengt am Absatz des Knopfs statt am Formular-Ende. */
.rl-kommunen-formular .dbdo-absenden {
	position: relative;
}

/* Meldung unter dem Formular (Fehler, Hinweise) */
.dbdo-rl-neu .rl-inhalt .rl-kommunen-formular .wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 12px 16px;
	border: 1px solid transparent;
	border-radius: var(--rl-rund-m);
	background: var(--rl-rot-hell);
	color: var(--rl-rot-tinte);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}
.rl-kommunen-formular .wpcf7 form.init .wpcf7-response-output,
.rl-kommunen-formular .wpcf7 form.resetting .wpcf7-response-output,
.rl-kommunen-formular .wpcf7 form.submitting .wpcf7-response-output,
.rl-kommunen-formular .wpcf7 form .wpcf7-response-output:empty {
	display: none;
}

/* Bestaetigung wie im Entwurf (Haken, "Vielen Dank für Ihre Anfrage!",
   Hinweis). Sie steht in der Vorlage und ist versteckt, bis Contact Form 7
   das Formular als versendet markiert ("sent"). Dann zeigt die Karte nur
   noch die Bestaetigung. Nach dem Versand setzt Contact Form 7 kurz den
   Zustand "resetting" (Felder leeren); mit schon eingetragener Meldung
   zaehlt er ebenfalls als Erfolg, damit die Felder nicht aufblitzen.
   Fehler ("failed", "invalid", "spam") zeigen weiter Formular und Meldung. */
.rl-kommunen-danke {
	display: none;
}
.rl-kommunen-formular:has(form.sent, form.resetting > .wpcf7-response-output:not(:empty)) > :not(.rl-kommunen-danke) {
	display: none;
}
.rl-kommunen-formular:has(form.sent, form.resetting > .wpcf7-response-output:not(:empty)) {
	justify-content: center;
	gap: 12px;
	padding: 40px;
}
.rl-kommunen-formular:has(form.sent, form.resetting > .wpcf7-response-output:not(:empty)) > .rl-kommunen-danke {
	display: contents;
}
.rl-kommunen-danke__haken {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--rl-gruen);
	color: #fff;
	font-size: 22px;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-danke h3 {
	font-size: 26px;
	font-weight: 700;
	line-height: normal;
}
.dbdo-rl-neu .rl-inhalt .rl-kommunen-danke p {
	font-size: 16px;
	color: var(--rl-text-2);
}

/* reCAPTCHA auf schmalen Bildschirmen: Das Kaestchen ist fest 304 px breit.
   In der Karte (32 px Innenabstand wie im Entwurf) bleiben bei 375 px
   Bildschirmbreite nur 231 px – deshalb wird es verkleinert, links oben
   verankert, und die Hoehe mitgezogen (wie bisher auf der Kontaktseite,
   mu-plugins/dbdo-kleine-korrekturen.php). Der Rest der Karte bleibt wie
   im Entwurf. */
@media (max-width: 447px) {
	.rl-kommunen-formular .cf7sr-g-recaptcha {
		min-height: 0;
		height: 59px;
	}
	.rl-kommunen-formular .cf7sr-g-recaptcha > div {
		transform: scale(.75);
		transform-origin: 0 0;
	}
}
@media (max-width: 374px) {
	.rl-kommunen-formular .cf7sr-g-recaptcha {
		height: 47px;
	}
	.rl-kommunen-formular .cf7sr-g-recaptcha > div {
		transform: scale(.6);
	}
}

/* 9 ─ Aufruf: App herunterladen ──────────────────────────────────── */

.rl-kommunen-download {
	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-kommunen-download .rl-h2--karte {
	font-size: clamp(26px, 3vw, 36px);
}

