/* ==========================================================================
   INFO- UND RECHTSSEITEN 2027 (Impressum, AGB, Datenschutz)  -  design2025/seite2027.css, Klassen smr-
   Optik wie "Über uns" (.smu) und FAQ (.smf). Dunkelmodus unten (html[data-smd-thema="dunkel"]).
   Gegenregeln zu sm_style.css (dort a und h1-h6 mit !important).
   AENDERUNGEN:
     07.11.2026 Erste Fassung.
     07.11.2026 AGB und Datenschutz: Gliederungslisten, Muster-Widerrufsformular, aufklappbares Inhaltsverzeichnis.
     07.11.2026 Seitenübersicht (sitemap.php): Klassen smx-.
     07.11.2026 Städteübersicht (/staedteuebersicht/): Klassen stx-.
   ========================================================================== */
.smr { --r-text: #16232B; --r-text-2: #3E4C57; --r-muted: #66727D; --r-line: #E2E6EA; --r-soft: #F3F6F9; --r-card: #FFFFFF;
	--r-accent: #C8506E; --r-accent-hover: #B03F5C; --r-hl-soft: #FBEDF1; --r-font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	background: #fff; color: var(--r-text); font-size: 16px; line-height: 1.7; padding: 8px 0 72px; }
.smr *, .smr *::before, .smr *::after { box-sizing: border-box; }
.smr .breadcrumb { background: transparent; padding: 12px 0; margin: 0; font-size: 14px; }
.smr .breadcrumb a { color: var(--r-muted) !important; text-decoration: none; }
.smr .breadcrumb-item.active { color: var(--r-text); }
.smr a { color: var(--r-accent) !important; }
.smr a:hover { color: var(--r-accent-hover) !important; }
.smr h1, .smr h2, .smr h3 { color: var(--r-text) !important; font-family: var(--r-font-head); font-weight: 600; }
.smr h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 12px; }
.smr h1::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--r-accent); margin-top: 14px; }
.smr h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.2; margin: 0 0 12px; scroll-margin-top: 90px; }
.smr h3 { font-family: inherit; font-size: 1.05rem; font-weight: 700; margin: 18px 0 6px; }
.smr p, .smr li, .smr address { color: var(--r-text-2); }
.smr p { margin: 0 0 12px; }
.smr p:last-child { margin-bottom: 0; }
.smr-hero { margin: 8px 0 28px; padding: 40px 40px 34px; border-radius: 24px; border: 1px solid var(--r-line);
	background: radial-gradient(60% 90% at 100% 0%, rgba(200,80,110,0.12) 0%, rgba(200,80,110,0) 60%), linear-gradient(135deg, #F3F6F9 0%, #FFFFFF 70%); }
.smr-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--r-accent); margin-bottom: 8px; }
.smr-lead { font-size: 1.1rem; max-width: 62ch; margin: 0 !important; }
.smr-stand { display: block; margin-top: 12px; font-size: 14px; color: var(--r-muted); }
.smr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.smr-karte { background: var(--r-card); border: 1px solid var(--r-line); border-radius: 20px; padding: 24px 28px; margin-bottom: 16px; }
.smr-text { max-width: 78ch; }
.smr-text ul, .smr-text ol { padding-left: 1.3em; margin: 0 0 12px; }
.smr-text li { margin-bottom: 4px; }
.smr-adresse { font-style: normal; line-height: 1.6; margin: 0; }
.smr-liste-spalten { list-style: none; margin: 8px 0 0; padding: 0; columns: 2 240px; column-gap: 28px; font-size: 14.5px; }
.smr-liste-spalten li { break-inside: avoid; padding: 3px 0; }
.smr-zertifikat img { max-width: 220px; height: auto; border-radius: 10px; background: #fff; padding: 6px; }
.smr-leiste { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.smr-box { background: var(--r-card); border: 1px solid var(--r-line); border-radius: 18px; padding: 16px 18px; }
.smr-box-titel { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--r-muted); margin-bottom: 8px; }
.smr-box ul, .smr-box ol { list-style: none; margin: 0; padding: 0; }
.smr-box li a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 10px; color: var(--r-text-2) !important; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.35; }
.smr-box li a:hover { background: var(--r-soft); color: var(--r-text) !important; }
.smr-box li a[aria-current] { background: var(--r-hl-soft); color: var(--r-accent) !important; }
@media (max-width: 991.98px) { .smr-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } .smr-leiste { position: static; display: contents; } .smr-toc { order: -1; } .smr-inhalt { order: 0; } .smr-leiste > .smr-box:not(.smr-toc) { order: 1; } }
@media (max-width: 767.98px) { .smr-hero { padding: 26px 20px 22px; border-radius: 18px; } .smr-karte { padding: 18px 18px; border-radius: 16px; } }

/* ---------- Lange Rechtstexte (AGB, Datenschutz) ---------- */
.smr-text { overflow-wrap: anywhere; }
.smr-karte[id] { scroll-margin-top: 90px; }
.smr-karte.smr-text { max-width: none; }
.smr h1 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.smr .breadcrumb { flex-wrap: wrap; }
@media (max-width: 575.98px) { .smr h1 { font-size: clamp(1.7rem, 8.4vw, 2.2rem); } }
.smr-karte.smr-text > p, .smr-karte.smr-text > ul, .smr-karte.smr-text li > p { max-width: 82ch; }
.smr-text h2 { overflow-wrap: break-word; }
.smr ul.smr-gliederung { list-style: none; padding: 0; margin: 4px 0 0; }
.smr-gliederung > .smr-punkt { padding: 14px 0 4px; border-top: 1px solid var(--r-line); margin: 0; }
.smr-gliederung > .smr-punkt:first-child { border-top: 0; padding-top: 4px; }
.smr-gliederung h3 { margin-top: 0; }
.smr-formular { margin-top: 18px; padding: 20px 22px; border-radius: 16px; background: var(--r-soft); border: 1px dashed var(--r-line); }
.smr-formular h3 { margin-top: 0; }
.smr-feld { display: block; height: 0; border-bottom: 1px solid var(--r-muted); margin: 22px 0 6px; }
.smr-feldzeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 10px; }
.smr-feldzeile .smr-feld { flex: 1 1 180px; margin: 0 0 6px; }
.smr-unterschrift { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; font-size: 14px; color: var(--r-muted); }
.smr-klein { font-size: 14px; color: var(--r-muted) !important; margin-top: 12px; }
.smr-toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.smr-toc summary::-webkit-details-marker { display: none; }
.smr-toc summary .smr-box-titel { margin: 0; }
.smr-toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--r-muted); border-bottom: 2px solid var(--r-muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; }
.smr-toc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.smr-toc[open] summary { margin-bottom: 8px; }
.smr-toc ol { max-height: calc(100vh - 360px); min-height: 160px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.smr-toc li a { font-weight: 500; font-size: 14px; padding: 5px 10px; }
@media (max-width: 991.98px) { .smr-toc ol { max-height: none; min-height: 0; } }
@media (max-width: 575.98px) { .smr-unterschrift { grid-template-columns: 1fr; } .smr-formular { padding: 16px; } }

/* ---------- Seitenübersicht (sitemap.php) ---------- */
.smr ul.smx-links { list-style: none; margin: 4px 0 0; padding: 0; }
.smr ul.smx-spalten { columns: 2 240px; column-gap: 28px; }
.smx-links li { break-inside: avoid; margin: 0; padding: 0; }
.smx-links li a { display: inline-block; padding: 5px 0; font-weight: 600; text-decoration: none; }
.smx-links li a:hover { text-decoration: underline; }
.smx-laender { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 8px; }
.smx-land { border: 1px solid var(--r-line); border-radius: 14px; padding: 14px 16px; background: var(--r-soft); }
.smr .smx-land h3 { margin: 0 0 6px; font-size: 1.02rem; }
.smx-land h3 a { text-decoration: none; }
.smr ul.smx-staedte { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14.5px; }
.smx-staedte a { color: var(--r-text-2) !important; text-decoration: none; }
.smx-staedte a:hover { color: var(--r-accent) !important; text-decoration: underline; }
.smr .smx-hinweis { font-size: 14px; color: var(--r-muted); margin: 0; }
.smr ul.smx-abc { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.smx-abc a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--r-line);
	background: var(--r-card); font-weight: 700; text-decoration: none; }
.smx-abc a:hover { background: var(--r-hl-soft); border-color: var(--r-accent); }
.smx-gruppen { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 28px; margin-top: 6px; }
.smr .smx-gruppe h3 { margin: 10px 0 2px; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--r-muted) !important; }
.smx-gruppe .smx-links li a { font-weight: 500; padding: 3px 0; }
.smr .smx-land h3 { overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .smx-laender { grid-template-columns: 1fr 1fr; gap: 10px; } .smx-land { padding: 12px; } .smr .smx-land h3 { font-size: .95rem; } }

/* ---------- Städteübersicht (/staedteuebersicht/) ---------- */
.stx-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.stx-suche { margin-top: 20px; }
.stx-suche .sm27-stadtsuche { align-items: flex-start; }
.stx-zahl { flex: none; text-align: center; padding: 18px 22px; border-radius: 18px; background: var(--r-card); border: 1px solid var(--r-line); min-width: 150px; }
.stx-zahl b { display: block; font-family: var(--r-font-head); font-size: 2.4rem; line-height: 1; color: var(--r-accent); }
.stx-zahl span { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--r-muted); }
.stx-abc-leiste { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 18px; }
.stx-abc-leiste a, .stx-abc-leiste span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 38px; padding: 0 6px; border-radius: 10px;
	border: 1px solid var(--r-line); background: var(--r-card); font-weight: 700; text-decoration: none; }
.stx-abc-leiste a:hover { border-color: var(--r-accent); background: var(--r-hl-soft); }
.stx-abc-leiste a.ist-aktiv { background: var(--r-accent); border-color: var(--r-accent); color: #fff !important; }
.stx-abc-leiste .stx-top { padding: 0 14px; }
.stx-abc-leiste .ist-leer { color: var(--r-muted); opacity: .45; background: transparent; }
.stx-laender { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
a.stx-land { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--r-line); border-radius: 14px; padding: 14px 16px; background: var(--r-soft); text-decoration: none; }
a.stx-land:hover { border-color: var(--r-accent); background: var(--r-hl-soft); }
.stx-land b { font-size: 1.02rem; color: var(--r-text); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.stx-land span { font-size: 14px; color: var(--r-muted); }
.smr ul.stx-liste { list-style: none; margin: 8px 0 0; padding: 0; columns: 3 220px; column-gap: 28px; }
.stx-liste li { break-inside: avoid; margin: 0; }
.stx-liste a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; }
.stx-liste a:hover { background: var(--r-soft); }
.stx-name { font-weight: 600; color: var(--r-accent); overflow-wrap: anywhere; }
.stx-bl { flex: none; font-size: 12.5px; color: var(--r-muted); }
.stx-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
	background: radial-gradient(70% 120% at 100% 0%, rgba(200,80,110,.12) 0%, rgba(200,80,110,0) 60%), var(--r-card); }
.stx-cta h2 { margin-bottom: 6px; }
.stx-cta-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.smr a.stx-knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
	background: var(--r-accent); color: #fff !important; border: 1px solid var(--r-accent); }
.smr a.stx-knopf:hover { background: var(--r-accent-hover); color: #fff !important; }
.smr a.stx-knopf.ist-hell { background: transparent; color: var(--r-text) !important; border-color: var(--r-line); }
.smr a.stx-knopf.ist-hell:hover { border-color: var(--r-accent); color: var(--r-accent) !important; }
@media (max-width: 767.98px) { .stx-hero { flex-direction: column; align-items: flex-start; } .stx-zahl { padding: 12px 16px; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
	.stx-zahl b { font-size: 1.8rem; } .stx-zahl span { margin: 0; } .stx-abc-leiste a, .stx-abc-leiste span { min-width: 36px; height: 36px; } }
@media (max-width: 575.98px) { .stx-laender { grid-template-columns: 1fr 1fr; gap: 10px; } a.stx-land { padding: 12px; } .stx-land b { font-size: .95rem; } .stx-cta-knoepfe, .smr a.stx-knopf { width: 100%; } }

/* ---------- Dunkelmodus ---------- */
html[data-smd-thema="dunkel"] .smr { --r-text: #E7ECF0; --r-text-2: #C2CCD4; --r-muted: #93A1AD; --r-line: #2B3944; --r-soft: #1D2932; --r-card: #17222A;
	--r-accent: #EE93AB; --r-accent-hover: #F3B6C6; --r-hl-soft: #3A1F29; background: #0F171D; }
html[data-smd-thema="dunkel"] .smr h1::after { background: #C8506E; }
html[data-smd-thema="dunkel"] .smr-hero { background: radial-gradient(60% 90% at 100% 0%, rgba(200,80,110,.16) 0%, rgba(200,80,110,0) 60%), linear-gradient(135deg, #17222A 0%, #121B22 70%); }
html[data-smd-thema="dunkel"] .smr-formular { background: #121B22; }
html[data-smd-thema="dunkel"] .smr-zertifikat img { background: #fff; }
html[data-smd-thema="dunkel"] .smr a.stx-knopf { background: #C8506E; border-color: #C8506E; }
html[data-smd-thema="dunkel"] .smr a.stx-knopf.ist-hell { background: transparent; border-color: #3A4A56; }
html[data-smd-thema="dunkel"] .stx-abc-leiste a.ist-aktiv { background: #C8506E; border-color: #C8506E; }
