/*
 * Town-level service pages (/leistungen/<leistung>/<stadt>/).
 *
 * Reuses the theme custom properties for the same reason rdp-service-pages does:
 * these pages must read as part of the site, not as a second visual language.
 * Text colours avoid --teal-bright (3.12:1 on white) and --sage-deep (3.04:1),
 * both of which fail WCAG AA for normal text; --teal (4.75:1) and --ink are used.
 * Interactive targets stay >= 24px for WCAG 2.2 SC 2.5.8.
 *
 * The building table is the one element unique to these pages, so it is the one
 * element that gets a distinct treatment; everything else stays quiet.
 */

.rdp-local-lead,
.rdp-local-districts,
.rdp-local-estates,
.rdp-local-relevance,
.rdp-local-cta,
.rdp-local-faq,
.rdp-local-links {
	margin: 0 0 2.5rem;
}

.rdp-local-lead p {
	max-width: 62ch;
}

.rdp-local-lead strong {
	color: var(--teal, #087f8c);
	font-weight: 700;
}

/* ------------------------------------------------------------- data table */

.rdp-local-table-wrap {
	overflow-x: auto;
	margin-top: 1.1rem;
	border: 1px solid var(--line, #cdddda);
	border-radius: var(--radius, 1.25rem);
	background: var(--mist, #eef5f4);
}

.rdp-local-table {
	width: 100%;
	min-width: 24rem;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.rdp-local-table caption {
	text-align: left;
}

.rdp-local-table th,
.rdp-local-table td {
	padding: .7rem 1rem;
	text-align: left;
	line-height: 1.45;
}

.rdp-local-table thead th {
	font-size: .82rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--teal, #087f8c);
	border-bottom: 2px solid var(--line, #cdddda);
	white-space: nowrap;
}

.rdp-local-table tbody th {
	font-weight: 600;
	color: var(--ink, #16261f);
}

.rdp-local-table tbody td:nth-child(2) {
	font-weight: 700;
	color: var(--ink, #16261f);
}

.rdp-local-table tbody td:last-child {
	color: var(--ink, #16261f);
	opacity: .78;
	font-size: .92rem;
}

.rdp-local-table tbody tr + tr th,
.rdp-local-table tbody tr + tr td {
	border-top: 1px solid var(--line, #cdddda);
}

/* ---------------------------------------------------------------- lists */

.rdp-local-estate-list,
.rdp-local-points {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	gap: .6rem;
}

.rdp-local-estate-list li,
.rdp-local-points li {
	position: relative;
	padding-left: 1.4rem;
	line-height: 1.55;
	max-width: 62ch;
}

.rdp-local-estate-list li::before,
.rdp-local-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: var(--teal, #087f8c);
}

.rdp-local-estate-list {
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

/* ------------------------------------------------------------------ cta */

.rdp-local-cta-action {
	margin-top: 1.1rem;
}

.rdp-local-button {
	display: inline-block;
	min-height: 2.75rem;
	padding: .7rem 1.4rem;
	border-radius: 999px;
	background: var(--teal, #087f8c);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.35rem;
}

.rdp-local-button:hover,
.rdp-local-button:focus-visible {
	background: var(--ink, #16261f);
	color: #fff;
}

/* ------------------------------------------------------------------ faq */

.rdp-local-faq-item {
	border-bottom: 1px solid var(--line, #cdddda);
	padding: .3rem 0;
}

.rdp-local-faq-item summary {
	cursor: pointer;
	padding: .7rem 0;
	min-height: 2.75rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--ink, #16261f);
}

.rdp-local-faq-item summary:focus-visible {
	outline: 2px solid var(--teal, #087f8c);
	outline-offset: 2px;
}

.rdp-local-faq-item p {
	margin: 0 0 1rem;
	max-width: 62ch;
}

/* ---------------------------------------------------------------- links */

.rdp-local-linkcols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.rdp-local-linkcols h3 {
	font-size: 1rem;
	margin: 0 0 .6rem;
}

.rdp-local-linkcols ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .35rem;
}

.rdp-local-linkcols a {
	display: inline-block;
	min-height: 1.6rem;
	padding: .2rem 0;
	line-height: 1.4;
	color: var(--teal, #087f8c);
}

.rdp-local-backlink {
	margin-top: 1.2rem;
}

.rdp-local-attribution {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line, #cdddda);
	font-size: .85rem;
	line-height: 1.5;
	color: var(--ink, #16261f);
	opacity: .75;
}

/* ---------------------------------------------------- district page extras */

.rdp-local-unitlist {
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.rdp-local-unitlist li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .1rem .5rem;
}

.rdp-local-count {
	font-size: .85rem;
	color: var(--ink, #16261f);
	opacity: .7;
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------- street directory */

.rdp-street-search {
	display: block;
	max-width: 26rem;
}

.rdp-street-search span {
	display: block;
	font-weight: 600;
	margin-bottom: .35rem;
}

.rdp-street-search input {
	width: 100%;
	min-height: 2.75rem;
	padding: .6rem .9rem;
	border: 1px solid var(--line, #cdddda);
	border-radius: var(--radius, 1.25rem);
	background: #fff;
	font: inherit;
	color: var(--ink, #16261f);
}

.rdp-street-search input:focus-visible {
	outline: 2px solid var(--teal, #087f8c);
	outline-offset: 1px;
}

.rdp-street-blocks {
	display: grid;
	gap: 1.75rem;
	margin-bottom: 2.5rem;
}

.rdp-street-block h3 {
	font-size: 1.05rem;
	margin: 0 0 .5rem;
	padding-bottom: .35rem;
	border-bottom: 1px solid var(--line, #cdddda);
}

.rdp-street-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: .2rem .9rem;
	font-size: .93rem;
	line-height: 1.5;
}

.rdp-street-empty {
	color: var(--ink, #16261f);
	opacity: .8;
}
