/* ==========================================================
   Bußgeldstellen- und Online-Anhörungs-Verzeichnis
   Nur auf /bussgeldstellen/ und /online-anhoerung/ laden
   ========================================================== */

.authority-overview {
    background: #ffffff;
    color: #334155;
}

.authority-overview__intro {
    max-width: 920px;
    margin-bottom: 2rem;
}

.authority-overview__eyebrow {
    margin: 0 0 0.55rem;
    color: #315f93;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.authority-overview__intro h1 {
    margin-bottom: 0.9rem;
    color: #1f3a5f;
}

.authority-overview__intro .lead {
    max-width: 850px;
    color: #475569;
}

.authority-overview__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.authority-overview__summary span {
    padding: 0.45rem 0.75rem;
    border: 1px solid #cbd9e8;
    border-radius: 999px;
    background: #f4f8fc;
    color: #475569;
    font-size: 0.85rem;
}

.authority-overview__summary strong {
    color: #1f3a5f;
}

.authority-controls {
    margin-bottom: 2.5rem;
    padding: 1.4rem;
    border: 1px solid #b8d0ec;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7faff 0%, #eef4fb 100%);
}

.authority-controls__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.2rem;
}

.authority-controls__heading h2 {
    margin: 0 0 0.2rem;
    color: #1f3a5f;
    font-size: 1.2rem;
}

.authority-controls__heading p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.authority-controls__switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    color: #315f93;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.authority-controls__switch:hover {
    color: #1f3a5f;
}

.authority-controls__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
    gap: 1rem;
}

.authority-search label,
.authority-region-filter label {
    display: block;
    margin-bottom: 0.35rem;
    color: #1f3a5f;
    font-size: 0.82rem;
    font-weight: 700;
}

.authority-search__field {
    position: relative;
}

.authority-search__field .bi {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    color: #64748b;
    transform: translateY(-50%);
    pointer-events: none;
}

.authority-search input,
.authority-region-filter select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #b8c9dd;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    font: inherit;
}

.authority-search input {
    padding: 0.7rem 0.9rem 0.7rem 2.65rem;
}

.authority-region-filter select {
    padding: 0.7rem 2.4rem 0.7rem 0.9rem;
}

.authority-search input:focus,
.authority-region-filter select:focus {
    border-color: #315f93;
    outline: 3px solid rgba(49, 95, 147, 0.14);
}

.authority-status-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.authority-status-filter button {
    padding: 0.48rem 0.82rem;
    border: 1px solid #b8c9dd;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 650;
}

.authority-status-filter button:hover,
.authority-status-filter button.is-active {
    border-color: #315f93;
    background: #315f93;
    color: #ffffff;
}

.authority-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #cfdae7;
    color: #64748b;
    font-size: 0.86rem;
}

.authority-results button {
    border: 0;
    background: transparent;
    color: #315f93;
    font-weight: 700;
}

.authority-region {
    margin-bottom: 3rem;
    scroll-margin-top: 96px;
}

.authority-region__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #d8e2ed;
}

.authority-region__heading h2 {
    margin: 0;
    color: #1f3a5f;
    font-size: 1.45rem;
}

.authority-region__heading span {
    color: #64748b;
    font-size: 0.82rem;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.authority-entry {
    min-width: 0;
}

.authority-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 270px;
    padding: 1.15rem;
    border: 1px solid #c9d7e6;
    border-radius: 11px;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(31, 58, 95, 0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.authority-card:hover {
    border-color: #7fa4ca;
    color: #334155;
    box-shadow: 0 10px 24px rgba(31, 58, 95, 0.09);
    transform: translateY(-2px);
}

.authority-card:focus-visible {
    outline: 3px solid rgba(49, 95, 147, 0.25);
    outline-offset: 3px;
}

.authority-card__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.authority-card__status {
    padding: 0.25rem 0.48rem;
    border-radius: 999px;
    letter-spacing: 0;
    text-align: right;
}

.authority-card__status.is-online {
    background: #eaf2fb;
    color: #315f93;
}

.authority-card__status.is-contact {
    background: #f1f5f9;
    color: #526171;
}

.authority-card h3 {
    margin: 0 0 0.5rem;
    color: #1f3a5f;
    font-size: 1.05rem;
    line-height: 1.35;
}

.authority-card__department {
    margin: 0 0 0.85rem;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.45;
}

.authority-card__facts {
    display: grid;
    gap: 0.6rem;
    margin: 0 0 1rem;
}

.authority-card__facts div {
    min-width: 0;
}

.authority-card__facts dt {
    margin-bottom: 0.08rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.authority-card__facts dd {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.authority-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-top: auto;
    color: #315f93;
    font-size: 0.86rem;
    font-weight: 750;
}

.authority-card:hover .authority-card__link {
    color: #1f3a5f;
}

.authority-empty {
    margin: 2rem 0 3rem;
    padding: 2rem;
    border: 1px dashed #b8c9dd;
    border-radius: 11px;
    background: #f8fafc;
    text-align: center;
}

.authority-empty h2 {
    color: #1f3a5f;
    font-size: 1.3rem;
}

.authority-overview__context {
    max-width: 920px;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #d8e2ed;
}

.authority-overview__context h2 {
    color: #1f3a5f;
}

@media (max-width: 991.98px) {
    .authority-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .authority-controls__heading,
    .authority-results {
        align-items: flex-start;
        flex-direction: column;
    }

    .authority-controls__grid {
        grid-template-columns: 1fr;
    }

    .authority-grid {
        grid-template-columns: 1fr;
    }

    .authority-card {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .authority-card {
        transition: none;
    }

    .authority-card:hover {
        transform: none;
    }
}
