/* =========================================================
   Kölner Straßenlexikon – Hauptstylesheet
   Farben: Kölner Rot #C41230 | Weiß #FFFFFF | Grau #F4F4F4
   ========================================================= */

:root {
    --rot:        #C41230;
    --rot-dunkel: #9B0E25;
    --rot-hell:   #E8213F;
    --weiss:      #FFFFFF;
    --grau-hell:  #F4F4F4;
    --grau-mitte: #E0E0E0;
    --grau-dunkel:#757575;
    --text:       #222222;
    --text-hell:  #555555;
    --link:       #C41230;
    --link-hover: #9B0E25;
    --radius:     6px;
    --shadow:     0 2px 8px rgba(0,0,0,.12);
    --transition: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--grau-hell);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.25; }

/* ---- Layout ---- */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.page-content {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* ---- Header ---- */

.site-header {
    background: var(--rot);
    color: var(--weiss);
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/silhouette-koeln.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: auto 100%;
    opacity: .45;
    pointer-events: none;
    z-index: 0;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 64px;
    position: relative;
    z-index: 1;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--weiss);
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo:hover { color: var(--weiss); text-decoration: none; opacity: .9; }

.logo-icon {
    display: inline-flex;
    align-items: center;
}

.logo-icon img {
    width: 52px;
    height: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}

.logo-text {
    font-size: 1.2rem;
    line-height: 1;
    white-space: nowrap;
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: .25rem;
    margin-left: auto;
}

.main-nav a {
    color: rgba(255,255,255,.9);
    padding: .45rem .85rem;
    border-radius: var(--radius);
    font-size: .95rem;
    transition: background var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,.15);
    color: var(--weiss);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--weiss);
    font-size: 1.6rem;
    cursor: pointer;
    margin-left: auto;
    padding: .25rem;
}

/* ---- Hero / Startseite ---- */

.hero {
    background: linear-gradient(135deg, var(--rot) 0%, var(--rot-dunkel) 100%);
    color: var(--weiss);
    padding: 4rem 1.25rem 3.5rem;
    text-align: center;
}

.hero-inner { max-width: 700px; margin: 0 auto; }

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: .5rem;
}

.hero-sub {
    font-size: 1.1rem;
    opacity: .9;
    margin-bottom: 2rem;
}

.search-box-wrap { position: relative; }

.search-box {
    display: flex;
    background: var(--weiss);
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    padding: .9rem 1.25rem;
    font-size: 1.05rem;
    color: var(--text);
    outline: none;
    background: transparent;
    min-width: 0;
}

.search-box button {
    background: var(--rot-dunkel);
    border: none;
    padding: .75rem 1.25rem;
    cursor: pointer;
    color: var(--weiss);
    transition: background var(--transition);
}

.search-box button:hover { background: var(--rot-hell); }

.search-box button svg { width: 22px; height: 22px; }

.search-results {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0; right: 0;
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    list-style: none;
    z-index: 200;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
}

.search-results li a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--grau-mitte);
    color: var(--text);
    transition: background var(--transition);
}

.search-results li a:hover { background: var(--grau-hell); text-decoration: none; }
.search-results li:last-child a { border-bottom: none; }

.search-results .result-stadtteil {
    font-size: .85rem;
    color: var(--grau-dunkel);
}

.search-results .keine-ergebnisse {
    padding: 1rem;
    color: var(--grau-dunkel);
    text-align: center;
}

/* ---- Quick Links ---- */

.quick-links { padding: 2.5rem 0; }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.quick-card {
    background: var(--weiss);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: .4rem;
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--text);
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    text-decoration: none;
}

.quick-icon {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--rot);
}

.quick-label {
    font-size: 1.15rem;
    font-weight: 600;
}

.quick-desc { font-size: .9rem; color: var(--text-hell); }

/* ---- Stadtbezirke Übersicht ---- */

.stadtbezirke-uebersicht { padding: 0 0 3rem; }
.stadtbezirke-uebersicht h2 { margin-bottom: 1.25rem; font-size: 1.5rem; }

.bezirk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.bezirk-card {
    background: var(--weiss);
    border: 2px solid var(--grau-mitte);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    color: var(--text);
    transition: border-color var(--transition), transform var(--transition);
}

.bezirk-card:hover {
    border-color: var(--rot);
    transform: translateY(-2px);
    text-decoration: none;
}

.bezirk-nr {
    font-size: .8rem;
    font-weight: 700;
    color: var(--rot);
    background: rgba(196,18,48,.08);
    padding: .15rem .5rem;
    border-radius: 99px;
    width: fit-content;
}

.bezirk-name { font-weight: 600; }
.bezirk-meta { font-size: .82rem; color: var(--grau-dunkel); }

/* ---- Interaktive Uebersichtskarte (Koelngliederung) ---- */

.stadtbezirke-karte-section { padding: 1rem 0 3rem; }
.stadtbezirke-karte-section h2 { margin-bottom: .25rem; font-size: 1.5rem; }
.stadtbezirke-karte-section .section-sub {
    color: var(--grau-dunkel);
    font-size: .95rem;
    margin-bottom: 1rem;
}

.koeln-karte-wrap {
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    max-width: 720px;
    margin: 0 auto;
}

.koeln-karte-wrap--gross { max-width: 960px; padding: 1.75rem; }
.koeln-karte-wrap--wide  { max-width: 900px; }
.koeln-karte-wrap + .koeln-karte-wrap { margin-top: 1.5rem; }

.koeln-karte-titel {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 .75rem;
    color: var(--grau-dunkel);
    text-align: center;
    letter-spacing: .02em;
}

.koeln-karte-svg {
    width: 100%;
    height: auto;
    display: block;
}

.koeln-karte-object {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    border: 0;
    pointer-events: auto;
}

/* Alle klickbaren Nummern */
.koeln-karte-svg a.koeln-karte-link {
    cursor: pointer;
    transition: opacity var(--transition);
}
.koeln-karte-svg a.koeln-karte-link text,
.koeln-karte-svg a.koeln-karte-link tspan {
    cursor: pointer;
    transition: fill .15s ease;
}
.koeln-karte-svg a.koeln-karte-link:hover text,
.koeln-karte-svg a.koeln-karte-link:focus text,
.koeln-karte-svg a.koeln-karte-link:hover tspan,
.koeln-karte-svg a.koeln-karte-link:focus tspan {
    fill: var(--rot);
    font-weight: 700;
}
.koeln-karte-svg a.koeln-karte-link:focus { outline: none; }
.koeln-karte-svg a.koeln-karte-link:focus-visible text {
    stroke: var(--rot);
    stroke-width: .3;
}

.karte-link-hinweis { text-align: center; margin-top: 1rem; }

.btn-ghost {
    display: inline-block;
    padding: .55rem 1.1rem;
    border: 2px solid var(--rot);
    color: var(--rot);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    transition: background var(--transition), color var(--transition);
}
.btn-ghost:hover {
    background: var(--rot);
    color: var(--weiss);
    text-decoration: none;
}

/* Legende auf /karte */
.bezirke-legende { margin-top: 2.5rem; }
.bezirke-legende h2 { margin-bottom: 1rem; font-size: 1.3rem; }
.bezirke-legende-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .75rem;
}
.bezirk-legende-card {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--weiss);
    border: 2px solid var(--grau-mitte);
    border-radius: var(--radius);
    padding: .55rem .85rem;
    color: var(--text);
    transition: border-color var(--transition);
}
.bezirk-legende-card:hover {
    border-color: var(--rot);
    text-decoration: none;
}
.bezirk-legende-card .bezirk-name { font-size: .95rem; }

/* ---- Breadcrumb ---- */

.breadcrumb {
    font-size: .88rem;
    color: var(--grau-dunkel);
    margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--grau-dunkel); }
.breadcrumb a:hover { color: var(--rot); }

/* ---- Straße Detail ---- */

.strasse-titel {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
}

.strasse-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: var(--weiss);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--grau-mitte);
    text-align: left;
}

.info-table th {
    width: 140px;
    background: var(--grau-hell);
    font-weight: 600;
    color: var(--text-hell);
    font-size: .9rem;
}

.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

.strasse-beschreibung {
    background: var(--weiss);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    line-height: 1.7;
}

.namensgeber-box {
    background: var(--weiss);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--rot);
    margin-top: 1.25rem;
}
.namensgeber-box h2 {
    margin: 0 0 .5rem 0;
    font-size: 1.2rem;
}
.namensgeber-name {
    font-size: 1.05rem;
    margin: 0 0 .5rem 0;
}
.namensgeber-lebensdaten {
    color: var(--grau-dunkel);
    font-weight: normal;
    margin-left: .4rem;
}
.namensgeber-beschr {
    margin: .25rem 0 .75rem 0;
    line-height: 1.55;
}
.namensgeber-links {
    margin: 0 0 .4rem 0;
}
.namensgeber-quelle {
    color: var(--grau-dunkel);
    font-size: .82rem;
    margin: .4rem 0 0 0;
}

.leaflet-map {
    width: 100%;
    height: 300px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #e8e8e8;
}

.map-notice {
    font-size: .85rem;
    color: var(--grau-dunkel);
    margin-top: .5rem;
}

/* ---- Stadtteil/Stadtbezirk Layout mit Lokalisierungskarte ---- */

.bezirk-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.bezirk-hauptspalte { min-width: 0; }

.lokalisierung-karte {
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.lokalisierung-karte figure { margin: 0; }

.lokalisierung-karte img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: opacity var(--transition);
}

.lokalisierung-karte img:hover { opacity: .85; }

.karte-lightbox img {
    cursor: zoom-out;
    max-width: min(95vw, 1400px);
    max-height: 90vh;
}

.lokalisierung-karte figcaption {
    font-size: .82rem;
    color: var(--grau-dunkel);
    text-align: center;
    margin-top: .6rem;
    padding-top: .6rem;
    border-top: 1px solid var(--grau-mitte);
    display: flex;
    justify-content: space-between;
    gap: .5rem;
}

.lokalisierung-karte .karte-quelle {
    color: var(--grau-dunkel);
    font-size: .78rem;
    text-decoration: underline;
}
.lokalisierung-karte .karte-quelle:hover { color: var(--rot); }

/* ---- Fotos ---- */

.fotos-section { margin-top: 2.5rem; }
.fotos-section h2 { margin-bottom: 1rem; }

/* ---- Weiterführende Links ---- */

.links-section {
    margin-top: 2.5rem;
}
.links-section h2 {
    margin-bottom: .75rem;
}
.links-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.links-liste li::before {
    content: '→ ';
    color: var(--rot);
    font-weight: 600;
}
.links-liste a {
    color: var(--rot);
    text-decoration: none;
    word-break: break-word;
}
.links-liste a:hover {
    text-decoration: underline;
}

.foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    align-items: start;
}

.foto-item {
    background: var(--weiss);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
}

.foto-item:hover { transform: scale(1.02); }

.foto-item img {
    width: 100%;
    height: auto;
    display: block;
}

.foto-item figcaption {
    padding: .5rem .75rem;
    font-size: .85rem;
    color: var(--text-hell);
}

/* ---- Lightbox ---- */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-caption {
    color: #ccc;
    font-size: .95rem;
    text-align: center;
}

.lightbox-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lightbox-nav button {
    background: rgba(255,255,255,.15);
    border: none;
    color: var(--weiss);
    font-size: 1.4rem;
    padding: .5rem 1rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.lightbox-nav button:hover { background: rgba(255,255,255,.3); }

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--weiss);
    font-size: 2rem;
    cursor: pointer;
}

/* ---- Stadtteil / Stadtbezirk ---- */

.meta-info {
    color: var(--text-hell);
    margin-bottom: 1.25rem;
}

.beschreibung {
    background: var(--weiss);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.einwohnerzahl {
    background: var(--weiss);
    padding: .75rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 0 2rem;
    font-weight: 600;
    color: var(--text);
}

.beschreibung + .einwohnerzahl {
    margin-top: -1rem;
}

.stadtteile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .85rem;
}

.stadtteil-card {
    background: var(--weiss);
    border: 2px solid var(--grau-mitte);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    color: var(--text);
    transition: border-color var(--transition);
}

.stadtteil-card:hover { border-color: var(--rot); text-decoration: none; }
.stadtteil-card span { font-size: .82rem; color: var(--grau-dunkel); }

/* ---- Straßenliste ---- */

.strassen-liste {
    list-style: none;
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.strassen-liste li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 1.1rem;
    border-bottom: 1px solid var(--grau-mitte);
}

.strassen-liste li:last-child { border-bottom: none; }
.strassen-liste li:hover { background: var(--grau-hell); }
.strassen-liste .meta { font-size: .85rem; color: var(--grau-dunkel); }

.strassen-liste--kompakt li {
    flex-wrap: wrap;
    gap: .25rem;
}

.strassen-liste-section { margin-top: 2rem; }
.strassen-liste-section h2 { margin-bottom: 1rem; }
.count { font-size: .85rem; color: var(--grau-dunkel); font-weight: 400; }

/* ---- A–Z ---- */

.az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.az-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: var(--radius);
    background: var(--grau-hell);
    color: var(--text);
    font-weight: 600;
    font-size: .95rem;
    transition: background var(--transition), color var(--transition);
}

.az-letter:hover {
    background: var(--rot);
    color: var(--weiss);
    text-decoration: none;
}

.az-letter--leer {
    opacity: .35;
    pointer-events: none;
}

.az-letter--aktiv {
    background: var(--rot);
    color: var(--weiss);
}

.az-alle {
    margin-left: auto;
    font-size: .9rem;
    align-self: center;
}

.az-gruppe { margin-bottom: 2.5rem; }

.az-buchstabe {
    font-size: 1.6rem;
    color: var(--rot);
    border-bottom: 3px solid var(--rot);
    padding-bottom: .3rem;
    margin-bottom: .85rem;
}

.az-stadtteil {
    font-size: .83rem;
    color: var(--grau-dunkel);
    flex-shrink: 0;
}

.az-stadtteil a { color: var(--grau-dunkel); }

/* ---- Bezirk-Section ---- */

.bezirk-section {
    margin-bottom: 2.5rem;
}

.bezirk-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--rot);
}

/* ---- Pagination ---- */

.pagination {
    display: flex;
    gap: .4rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 .6rem;
    border-radius: var(--radius);
    background: var(--weiss);
    border: 1px solid var(--grau-mitte);
    color: var(--text);
    font-size: .9rem;
    transition: background var(--transition), border-color var(--transition);
}

.pagination a:hover,
.pagination a.active {
    background: var(--rot);
    border-color: var(--rot);
    color: var(--weiss);
    text-decoration: none;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    border-radius: var(--radius);
    font-size: .95rem;
    cursor: pointer;
    border: none;
    transition: background var(--transition), opacity var(--transition);
    text-decoration: none;
}

.btn-primary { background: var(--rot); color: var(--weiss); }
.btn-primary:hover { background: var(--rot-dunkel); color: var(--weiss); text-decoration: none; }
.btn-secondary { background: var(--grau-hell); color: var(--text); border: 1px solid var(--grau-mitte); }
.btn-secondary:hover { background: var(--grau-mitte); text-decoration: none; }
.btn-danger { background: #c0392b; color: var(--weiss); }
.btn-danger:hover { background: #96281b; color: var(--weiss); text-decoration: none; }

/* ---- Footer ---- */

.site-footer {
    background: var(--rot-dunkel);
    color: rgba(255,255,255,.8);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 1.25rem;
}

.footer-nav a { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-nav a:hover { color: var(--weiss); }

/* ---- Utility ---- */

.text-center { text-align: center; }
.empty { color: var(--grau-dunkel); font-style: italic; }

/* ---- Baudenkmäler ---- */

.seite-intro {
    color: var(--text-hell);
    margin-bottom: 1.5rem;
    max-width: 720px;
}

.bdk-filter {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
    background: var(--weiss);
    padding: .9rem 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.bdk-filter .bdk-search {
    flex: 1;
    min-width: 220px;
    padding: .5rem .75rem;
    border: 1px solid var(--grau-mitte);
    border-radius: var(--radius);
    font-size: .95rem;
}

.bdk-filter .bdk-select {
    padding: .5rem .75rem;
    border: 1px solid var(--grau-mitte);
    border-radius: var(--radius);
    background: var(--weiss);
    font-size: .95rem;
}

.bdk-result-count {
    color: var(--text-hell);
    margin: .5rem 0 1rem;
    font-size: .9rem;
}

.bdk-liste {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: .75rem;
    margin: 0;
    padding: 0;
}

.bdk-liste-kompakt {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.bdk-item { display: block; }

.bdk-link {
    display: block;
    background: var(--weiss);
    border: 1px solid var(--grau-mitte);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    color: var(--text);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.bdk-link--mit-foto {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.bdk-link--mit-foto .bdk-text {
    flex: 1 1 auto;
    min-width: 0;
}

.bdk-briefmarke {
    flex: 0 0 auto;
    order: 2;
    width: 72px;
    height: 72px;
    display: block;
    border-radius: calc(var(--radius) * .6);
    overflow: hidden;
    background: var(--grau-hell);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

.bdk-briefmarke img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bdk-link:hover {
    border-color: var(--rot);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    text-decoration: none;
    color: var(--text);
}

.bdk-haupt {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: .25rem;
}

.bdk-haupt strong { color: var(--text); }

.bdk-fotos {
    font-size: .78rem;
    color: var(--grau-dunkel);
    background: var(--grau-hell);
    padding: .1rem .45rem;
    border-radius: 99px;
    white-space: nowrap;
}

.bdk-adresse {
    font-size: .9rem;
    color: var(--text-hell);
    margin-bottom: .3rem;
}

.bdk-stadtteil { color: var(--grau-dunkel); }

.bdk-meta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--grau-dunkel);
}

.bdk-typ {
    background: rgba(196,18,48,.08);
    color: var(--rot);
    padding: .05rem .45rem;
    border-radius: 99px;
    font-weight: 600;
}

.bdk-section {
    margin-top: 2.5rem;
}

/* Stolpersteine nutzen das gleiche Layout wie Baudenkmaeler */
.stolpersteine-section { margin-top: 2.5rem; }
.stolpersteine-intro {
    color: var(--text-hell);
    margin: 0 0 1rem 0;
    font-size: .95rem;
    max-width: 780px;
}
.stp-liste { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; margin: 0; padding: 0; }
.stp-item { display: block; }
.stp-link {
    display: block;
    background: var(--weiss);
    border: 1px solid var(--grau-mitte);
    border-left: 3px solid #8d6e2a;  /* Messington, Anspielung auf Stolpersteine */
    border-radius: var(--radius);
    padding: .85rem 1rem;
    color: var(--text);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.stp-link--mit-foto { display: flex; align-items: flex-start; gap: .75rem; }
.stp-link--mit-foto .stp-text { flex: 1 1 auto; min-width: 0; }
.stp-briefmarke {
    flex: 0 0 auto; order: 2;
    width: 72px; height: 72px;
    display: block; border-radius: calc(var(--radius) * .6);
    overflow: hidden; background: var(--grau-hell);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.stp-briefmarke img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stp-link:hover {
    border-color: #8d6e2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    text-decoration: none; color: var(--text);
}
.stp-haupt { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .25rem; }
.stp-haupt strong { color: var(--text); }
.stp-fotos {
    font-size: .78rem; color: var(--grau-dunkel);
    background: var(--grau-hell);
    padding: .1rem .45rem; border-radius: 99px; white-space: nowrap;
}
.stp-meta { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .8rem; color: var(--grau-dunkel); }
.stp-schicksal {
    background: rgba(141,110,42,.12);
    color: #6b5420;
    padding: .05rem .45rem;
    border-radius: 99px;
    font-weight: 600;
}

.bdk-subtitel {
    color: var(--text-hell);
    margin-top: -.5rem;
    margin-bottom: 1.25rem;
}

.bdk-quelle {
    font-size: .82rem;
    color: var(--grau-dunkel);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--grau-mitte);
}

.pagination {
    display: flex;
    gap: .3rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination a {
    padding: .4rem .75rem;
    background: var(--weiss);
    border: 1px solid var(--grau-mitte);
    border-radius: var(--radius);
    color: var(--text);
    font-size: .9rem;
}

.pagination a.active {
    background: var(--rot);
    border-color: var(--rot);
    color: var(--weiss);
}

.pagination a:hover { text-decoration: none; border-color: var(--rot); color: var(--rot); }
.pagination a.active:hover { color: var(--weiss); }

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--rot-dunkel);
        flex-direction: column;
        padding: .75rem;
        gap: .25rem;
    }

    .main-nav.open { display: flex; }

    .site-header { position: relative; }

    .strasse-layout {
        grid-template-columns: 1fr;
    }

    .bezirk-layout {
        grid-template-columns: 1fr;
    }

    .lokalisierung-karte { max-width: 360px; margin: 0 auto; }

    .leaflet-map { height: 220px; }

    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 500px) {
    .hero { padding: 2.5rem 1rem 2rem; }
    .az-nav { gap: .25rem; }
    .az-letter { width: 1.85rem; height: 1.85rem; font-size: .85rem; }
}
