:root {
    --bg: #eceff1;
    --surface: #ffffff;

    --anthracite: #24282d;
    --anthracite-soft: #30353b;
    --anthracite-light: #40464d;

    --text: #202428;
    --muted: #687078;
    --border: #d6dade;

    --accent: #d71920;
    --accent-dark: #af1117;
    --accent-soft: #fbe9ea;

    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.brand-title {
    font-size: 24px;
    font-weight: 700;
}

.brand-subtitle {
    font-size: 14px;
    color: var(--muted);
}

.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 28px;
}

.hero {
    margin-bottom: 28px;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.search-box {
    margin-top: 28px;
    position: relative;
}

.search-box input {
    width: 100%;
    height: 58px;
    padding: 0 20px 0 50px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    font-size: 17px;
    outline: none;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
}

.search-box input:focus {
    border-color: var(--accent);
}

.search-icon {
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 20px;
}

.view-toolbar {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.view-switcher {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.view-button {
    border: 0;
    background: transparent;
    padding: 9px 16px;
    border-radius: 7px;
    font-size: 14px;
    cursor: pointer;
    color: var(--muted);
}

.view-button.active {
    background: var(--accent);
    color: white;
}

.content-panel {
    margin-top: 18px;
    min-height: 440px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.placeholder {
    text-align: center;
    color: var(--muted);
}

.placeholder strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 20px;
}

@media (max-width: 700px) {
    .site-header-inner,
    .page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand-subtitle {
        display: none;
    }

    .page {
        padding-top: 28px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .view-toolbar {
        justify-content: stretch;
    }

    .view-switcher {
        width: 100%;
    }

    .view-button {
        flex: 1;
    }
}

/* OV-Kachelansicht */

.content-panel {
    align-items: stretch;
    justify-content: flex-start;
}

.content-panel > div {
    width: 100%;
}

.ov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.ov-card {
    position: relative;
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.04);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.ov-card:hover {
    transform: translateY(-2px);
    border-color: #c7cdd4;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.09);
}

.ov-card h2 {
    margin: 0 0 12px;
    font-size: 19px;
}

.ov-card p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.ov-marker {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff4cc;
    color: #725500;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .ov-grid {
        grid-template-columns: 1fr;
    }

    .ov-card {
        min-height: auto;
    }
}

/* OV Wiki – kräftigeres Erscheinungsbild */

.site-header {
    background: var(--anthracite);
    border-bottom: 3px solid var(--accent);
}

.brand-title {
    color: var(--white);
}

.brand-subtitle {
    color: #c8cdd2;
}

.hero h1 {
    color: var(--anthracite);
}

.search-box input {
    border: 0;
    border-left: 5px solid var(--accent);
    box-shadow: 0 6px 22px rgba(20, 25, 30, 0.10);
}

.search-box input:focus {
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12),
                0 6px 22px rgba(20, 25, 30, 0.10);
}

.view-switcher {
    background: var(--anthracite);
    border-color: var(--anthracite);
}

.view-button {
    color: #d8dcdf;
}

.view-button:hover {
    color: var(--white);
}

.view-button.active {
    background: var(--accent);
    color: var(--white);
}

.content-panel {
    border: 0;
    box-shadow: 0 8px 28px rgba(20, 25, 30, 0.08);
}

.ov-card {
    overflow: hidden;
    border: 1px solid #d9dde1;
    border-top: 4px solid var(--anthracite);
}

.ov-card::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.ov-card:hover {
    border-color: #bfc5ca;
    box-shadow: 0 10px 26px rgba(20, 25, 30, 0.13);
}

.ov-card:hover::before {
    width: 100%;
}

.ov-card h2 {
    color: var(--anthracite);
}

/* =========================================================
   OV Wiki – visuelle Richtung 2
   Anthrazit / Rot / räumlicher Hintergrund
   ========================================================= */

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 18%, rgba(215, 25, 32, 0.07), transparent 28%),
        radial-gradient(circle at 92% 38%, rgba(36, 40, 45, 0.08), transparent 32%),
        linear-gradient(180deg, #e6e9ec 0%, #f1f3f5 48%, #e8ebee 100%);
}

/* Kopf */

.site-header {
    background:
        linear-gradient(105deg, #171a1e 0%, #262b30 65%, #202428 100%);
    border-bottom: 4px solid var(--accent);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20);
}

.site-header-inner {
    max-width: 1420px;
    min-height: 72px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.brand {
    position: relative;
    gap: 12px;
    align-items: center;
}

.brand::before {
    content: "";
    width: 5px;
    height: 30px;
    border-radius: 4px;
    background: var(--accent);
}

.brand-title {
    font-size: 25px;
    letter-spacing: -0.4px;
}

.brand-subtitle {
    padding-left: 2px;
    color: #bfc5ca;
}

/* Hauptbereich */

.page {
    max-width: 1420px;
    padding-top: 34px;
    padding-bottom: 60px;
}

/* Dunkler Einstieg / Hero */

.hero {
    position: relative;
    z-index: 20;
    overflow: visible;
    margin-bottom: 24px;
    padding: 36px 38px 38px;
    border-radius: 22px;
    background:
        linear-gradient(120deg, #202429 0%, #2b3036 62%, #353a40 100%);
    box-shadow: 0 16px 40px rgba(19, 23, 27, 0.18);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at 100% 0%,
        rgba(215, 25, 32, 0.30) 0%,
        rgba(215, 25, 32, 0.10) 24%,
        transparent 52%
    );
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 38px;
    letter-spacing: -0.7px;
}

.hero p {
    max-width: 780px;
    color: #c9ced3;
    font-size: 16px;
}

/* Suche */

.search-box {
    max-width: 1050px;
    margin-top: 30px;
}

.search-box input {
    height: 62px;
    border: 0;
    border-left: 6px solid var(--accent);
    border-radius: 12px;
    background: #ffffff;
    color: #202428;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.search-box input:focus {
    box-shadow:
        0 0 0 4px rgba(215, 25, 32, 0.20),
        0 10px 30px rgba(0, 0, 0, 0.18);
}

/* Umschalter */

.view-toolbar {
    margin-top: 0;
    margin-bottom: 18px;
}

.view-switcher {
    padding: 5px;
    border: 0;
    border-radius: 12px;
    background: #25292e;
    box-shadow: 0 5px 16px rgba(20, 25, 30, 0.16);
}

.view-button {
    min-width: 105px;
    padding: 10px 17px;
    color: #cbd0d5;
}

.view-button.active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 3px 9px rgba(215, 25, 32, 0.32);
}

/* Kachelbereich nicht mehr als großer weißer Kasten */

.content-panel {
    margin-top: 0;
    padding: 6px 0 0;
    background: transparent;
    box-shadow: none;
}

.content-panel > div > strong {
    display: block;
    margin: 4px 0 18px;
    color: #30353a;
    font-size: 15px;
}

/* OV-Kacheln */

.ov-grid {
    gap: 20px;
    margin-top: 0;
}

.ov-card {
    min-height: 158px;
    padding: 22px 22px 20px;
    border: 0;
    border-top: 5px solid #2c3136;
    border-radius: 14px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    box-shadow:
        0 5px 14px rgba(24, 29, 34, 0.08),
        0 1px 2px rgba(24, 29, 34, 0.08);
}

.ov-card::before {
    top: -5px;
    height: 5px;
}

.ov-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow:
        0 15px 34px rgba(24, 29, 34, 0.16),
        0 3px 8px rgba(24, 29, 34, 0.08);
}

.ov-card h2 {
    margin-bottom: 14px;
    font-size: 20px;
    letter-spacing: -0.25px;
}

.ov-card p {
    color: #687078;
}

/* Mobil */

@media (max-width: 700px) {
    .hero {
        padding: 28px 22px 26px;
        border-radius: 16px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .search-box {
        margin-top: 24px;
    }

    .view-toolbar {
        margin-top: 18px;
    }
}

/* =========================================================
   OV Wiki – kräftiger Seitenhintergrund Rot → Anthrazitgrau
   ========================================================= */

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 5% 20%,
            rgba(215, 25, 32, 0.24) 0%,
            rgba(215, 25, 32, 0.14) 22%,
            rgba(215, 25, 32, 0.04) 43%,
            transparent 58%
        ),
        radial-gradient(
            circle at 96% 45%,
            rgba(45, 51, 57, 0.20) 0%,
            rgba(45, 51, 57, 0.10) 32%,
            transparent 58%
        ),
        linear-gradient(
            115deg,
            #e7cfd1 0%,
            #e4dadd 27%,
            #dde0e3 58%,
            #cfd5da 100%
        );

    background-attachment: fixed;
}

/* Ansicht Karte / Kacheln */

.view-panel[hidden] {
    display: none !important;
}

.map-panel {
    min-height: 520px;
}

.map-placeholder {
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(44, 49, 54, 0.25);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(5px);
    color: var(--muted);
    text-align: center;
}

.map-placeholder strong {
    margin-bottom: 8px;
    color: var(--anthracite);
    font-size: 21px;
}

.map-placeholder p {
    margin: 0;
}

/* =========================================================
   OV Wiki – Kartenansicht
   ========================================================= */

.map-panel {
    min-height: auto;
}

.ov-map-wrapper {
    width: 100%;
}

.ov-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ov-map-header strong {
    display: block;
    margin-bottom: 4px;
    color: var(--anthracite);
    font-size: 17px;
}

.ov-map-header span {
    color: var(--muted);
    font-size: 14px;
}

.ov-map-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    border: 1px solid rgba(44, 49, 54, 0.18);
    border-radius: 18px;
    background: #d6dadd;
    box-shadow:
        0 16px 38px rgba(20, 25, 30, 0.18),
        0 3px 8px rgba(20, 25, 30, 0.10);
}

.ov-map-image {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================================
   OV Wiki – freigestellte Weser-Ems-Karte
   ========================================================= */

.ov-map-stage {
    overflow: visible;
    max-width: 900px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ov-map-image {
    display: block;
    width: 100%;
    height: auto;

    /* Schatten folgt der tatsächlichen Kartenform,
       nicht dem rechteckigen Bildrahmen */
    filter:
        drop-shadow(0 12px 12px rgba(20, 25, 30, 0.18))
        drop-shadow(0 28px 28px rgba(20, 25, 30, 0.12));
}

/* =========================================================
   OV Wiki – Kartenansicht Feinschliff
   ========================================================= */

/* Karte etwas größer */

.ov-map-stage {
    max-width: 1050px;
}


/* Überschrift optisch an Karte anbinden */

.ov-map-header {
    max-width: 1050px;
    margin: 0 auto 18px;
    padding: 15px 18px;

    border-left: 5px solid var(--accent);
    border-radius: 12px;

    background:
        linear-gradient(
            105deg,
            rgba(31, 35, 40, 0.96),
            rgba(48, 53, 59, 0.93)
        );

    box-shadow:
        0 8px 22px rgba(20, 25, 30, 0.14);
}

.ov-map-header strong {
    display: block;
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 18px;
    letter-spacing: -0.2px;
}

.ov-map-header span {
    color: #c9ced3;
    font-size: 13px;
}


/* Karte weiterhin frei schwebend */

.ov-map-image {
    filter:
        drop-shadow(0 14px 14px rgba(20, 25, 30, 0.20))
        drop-shadow(0 30px 34px rgba(20, 25, 30, 0.13));
}


/* Auf kleineren Geräten nicht künstlich aufblasen */

@media (max-width: 1100px) {
    .ov-map-stage,
    .ov-map-header {
        max-width: 900px;
    }
}

/* =========================================================
   Kartenbereich – kompaktere Überschrift
   ========================================================= */

.ov-map-wrapper {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.ov-map-stage {
    width: 100%;
    max-width: none;
    margin: 0;
}

.ov-map-header {
    width: min(720px, 100%);
    max-width: none;
    margin: 0 0 22px;
    padding: 14px 18px;

    border-left: 5px solid var(--accent);
    border-radius: 11px;

    background:
        linear-gradient(
            105deg,
            rgba(39, 44, 49, 0.96),
            rgba(57, 62, 68, 0.93)
        );

    box-shadow: 0 8px 20px rgba(20, 25, 30, 0.13);
}

.ov-map-header strong {
    font-size: 17px;
}

/* =========================================================
   Kachelansicht – Grau / Anthrazit / Rot
   ========================================================= */

#tiles-view > div > strong {
    display: inline-block;
    margin: 0 0 22px;
    padding: 11px 16px;

    border-left: 4px solid var(--accent);
    border-radius: 9px;

    background: rgba(48, 53, 59, 0.92);
    color: #ffffff;

    box-shadow: 0 5px 15px rgba(20, 25, 30, 0.11);
}

.ov-card {
    min-height: 158px;

    border: 1px solid rgba(50, 56, 62, 0.13);
    border-top: 4px solid #343a40;

    background:
        linear-gradient(
            145deg,
            rgba(247, 248, 249, 0.97) 0%,
            rgba(226, 230, 233, 0.98) 100%
        );

    box-shadow:
        0 7px 18px rgba(24, 29, 34, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ov-card h2 {
    color: #24282d;
}

.ov-card p {
    color: #606870;
}

.ov-card:hover {
    transform: translateY(-4px);

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #e5e8eb 100%
        );

    box-shadow:
        0 16px 32px rgba(24, 29, 34, 0.17),
        0 3px 8px rgba(24, 29, 34, 0.08);
}

.ov-card:hover::before {
    width: 100%;
}

/* =========================================================
   Kartenüberschrift – kompakt wie Kachelüberschrift
   ========================================================= */

.ov-map-header {
    display: inline-flex;
    width: auto;
    max-width: none;
    margin: 0 0 22px;
    padding: 10px 16px;

    border-left: 4px solid var(--accent);
    border-radius: 9px;

    background: rgba(48, 53, 59, 0.92);

    box-shadow:
        0 5px 15px rgba(20, 25, 30, 0.11);

    align-items: flex-start;
    justify-content: flex-start;
}

.ov-map-header strong {
    margin: 0 0 2px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 0;
}

.ov-map-header span {
    display: block;
    color: #d2d6da;
    font-size: 12px;
    line-height: 1.3;
}

/* =========================================================
   Interaktive OV-Hotspots
   ========================================================= */

.ov-map-stage {
    position: relative;
}

.ov-map-hotspot {
    position: absolute;
    left: var(--map-x);
    top: var(--map-y);

    width: 34px;
    height: 34px;
    padding: 0;

    transform: translate(-50%, -50%);

    border: 2px solid transparent;
    border-radius: 50%;

    background: transparent;
    cursor: pointer;
    z-index: 5;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.ov-map-hotspot:hover,
.ov-map-hotspot:focus-visible,
.ov-map-hotspot.is-pinned {
    border-color: rgba(215, 25, 32, 0.9);

    box-shadow:
        0 0 0 5px rgba(215, 25, 32, 0.16),
        0 5px 14px rgba(20, 25, 30, 0.22);

    transform:
        translate(-50%, -50%)
        scale(1.08);

    outline: none;
}

.ov-map-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);

    width: 260px;
    padding: 14px 16px;

    transform:
        translateX(-50%)
        translateY(5px);

    border-left: 4px solid var(--accent);
    border-radius: 10px;

    background:
        linear-gradient(
            120deg,
            rgba(35, 39, 44, 0.98),
            rgba(55, 60, 66, 0.98)
        );

    color: #ffffff;
    text-align: left;

    box-shadow:
        0 12px 28px rgba(20, 25, 30, 0.25);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s ease;
}

.ov-map-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;

    transform: translateX(-50%);

    border: 7px solid transparent;
    border-top-color: rgba(48, 53, 59, 0.98);
}

.ov-map-hotspot:hover .ov-map-tooltip,
.ov-map-hotspot:focus-visible .ov-map-tooltip,
.ov-map-hotspot.is-pinned .ov-map-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

.ov-map-tooltip strong {
    display: block;
    margin-bottom: 6px;

    font-size: 15px;
    color: #ffffff;
}

.ov-map-tooltip-text {
    display: block;

    color: #d4d8dc;
    font-size: 12px;
    line-height: 1.45;
}

.ov-map-tooltip-action {
    display: block;
    margin-top: 9px;

    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

/* Kartenansicht kompakter zusammenziehen */

.ov-map-header {
    margin-bottom: 6px;
}

.ov-map-stage {
    margin-top: -14px;
}

/* =========================================================
   Feinschliff Startseite
   Karte höher, Label weiter links/tiefer,
   Suchfeld etwas kompakter
   ========================================================= */

/* Suchfeld etwas kompakter */
.search-box {
    max-width: 900px;
    margin-top: 24px;
}

.search-box input {
    height: 54px;
    font-size: 15px;
    padding-left: 44px;
}

/* Kartenbereich insgesamt etwas höher */
.ov-map-wrapper {
    max-width: 1050px;
    margin: -36px auto 0;
}

/* Kleine Karten-Bezeichnung:
   etwas weiter links und etwas tiefer */
.ov-map-header {
    margin: 22px 0 8px -42px;
}

/* Karte näher an die Bezeichnung */
.ov-map-stage {
    margin-top: -10px;
}

/* =========================================================
   Kartenlayout – Position Feinschliff
   ========================================================= */

/* Kleine Kartenüberschrift:
   weiter links und etwas tiefer */
.ov-map-header {
    position: relative;
    left: -110px;
    top: 18px;
    margin-bottom: 0;
}

/* Karte unabhängig davon weiter nach oben */
.ov-map-stage {
    position: relative;
    top: -42px;
}

/* =========================================================
   OV-Detailseite
   ========================================================= */

.ov-detail-hero {
    margin-bottom: 18px;
    padding: 30px 34px;
    border-radius: 20px;

    background:
        linear-gradient(
            115deg,
            #202429 0%,
            #2c3136 68%,
            #473034 100%
        );

    box-shadow:
        0 14px 34px rgba(20, 25, 30, 0.18);
}

.ov-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #d4d8dc;
    font-size: 13px;
    text-decoration: none;
}

.ov-back-link:hover {
    color: #ffffff;
}

.ov-detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.ov-detail-kicker {
    display: block;
    margin-bottom: 6px;
    color: #c5cbd0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ov-detail-heading h1 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 36px;
}

.ov-detail-heading p {
    margin: 0;
    color: #cbd0d5;
}

.ov-detail-status {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: 12px;
    white-space: nowrap;
}

.ov-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    padding: 5px;

    overflow-x: auto;

    border-radius: 12px;
    background: rgba(37, 41, 46, 0.96);

    box-shadow: 0 6px 18px rgba(20, 25, 30, 0.14);
}

.ov-tab {
    flex: 0 0 auto;
    padding: 10px 14px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #d5dade;

    font-size: 13px;
    cursor: pointer;
}

.ov-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.ov-tab.active {
    background: var(--accent);
    color: #ffffff;
}

.ov-detail-content {
    padding-bottom: 50px;
}

.ov-section-heading {
    margin-bottom: 20px;
}

.ov-section-heading > span {
    display: inline-block;
    margin-bottom: 8px;

    padding: 6px 10px;

    border-left: 4px solid var(--accent);
    border-radius: 7px;

    background: rgba(48, 53, 59, 0.92);
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}

.ov-section-heading h2 {
    margin: 0 0 5px;
    font-size: 25px;
}

.ov-section-heading p {
    margin: 0;
    color: var(--muted);
}

.ov-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ov-info-card {
    min-height: 155px;
    padding: 21px;

    border-top: 4px solid #343a40;
    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            rgba(247, 248, 249, 0.98),
            rgba(226, 230, 233, 0.98)
        );

    box-shadow: 0 7px 18px rgba(24, 29, 34, 0.10);
}

.ov-info-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ov-info-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--anthracite);
    font-size: 17px;
}

.ov-info-card p {
    margin: 0;
    color: #606870;
    line-height: 1.5;
}

@media (max-width: 800px) {
    .ov-detail-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ov-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* OV-Kacheln als Links */

.ov-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ov-card-link:focus-visible {
    outline: 3px solid rgba(215, 25, 32, 0.28);
    outline-offset: 3px;
}

.ov-map-tooltip-action {
    text-decoration: none;
}

.ov-map-tooltip-action:hover {
    text-decoration: underline;
}

/* Karten-Tooltip: Links tatsächlich anklickbar machen */

.ov-map-hotspot:hover .ov-map-tooltip,
.ov-map-hotspot:focus-visible .ov-map-tooltip,
.ov-map-hotspot.is-pinned .ov-map-tooltip {
    pointer-events: auto;
}

.ov-map-tooltip-action {
    cursor: pointer;
}

/* Gesamter Karten-Steckbrief ist klickbar */

a.ov-map-tooltip {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.ov-map-tooltip:hover {
    text-decoration: none;
}

a.ov-map-tooltip:hover .ov-map-tooltip-action {
    text-decoration: underline;
}

.ov-info-secondary {
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid rgba(52, 58, 64, 0.14);
}

/* =========================================================
   OV-Detailseite – Reiterinhalte
   ========================================================= */

.ov-tab-panel {
    display: none;
    animation: ovPanelIn 0.16s ease;
}

.ov-tab-panel.active {
    display: block;
}

.ov-tab-panel[hidden] {
    display: none !important;
}

@keyframes ovPanelIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ov-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ov-content-card {
    min-height: 150px;
    padding: 21px;

    border-top: 4px solid #343a40;
    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            rgba(247, 248, 249, 0.98),
            rgba(226, 230, 233, 0.98)
        );

    box-shadow:
        0 7px 18px rgba(24, 29, 34, 0.10);
}

.ov-content-card h3 {
    margin: 0 0 7px;
    color: var(--anthracite);
    font-size: 17px;
}

.ov-content-card p {
    margin: 0;
    color: #606870;
    line-height: 1.5;
}

.ov-content-card-empty {
    opacity: 0.86;
}

.ov-contact-line {
    display: inline-block;
    margin-top: 13px;
    padding: 7px 10px;

    border-radius: 7px;

    background: rgba(48, 53, 59, 0.09);
    color: #343a40;

    font-size: 13px;
    font-weight: 600;
}

.ov-subsection {
    margin-top: 28px;
}

.ov-subsection-heading {
    margin-bottom: 12px;
}

.ov-subsection-heading h3 {
    margin: 0 0 4px;
    font-size: 19px;
}

.ov-subsection-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.ov-empty-state {
    padding: 18px 20px;

    border: 1px dashed rgba(52, 58, 64, 0.28);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.30);
    color: #687078;

    font-size: 13px;
}

.ov-empty-state-large {
    min-height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

@media (max-width: 800px) {
    .ov-content-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Kartenstatus: Inhalt vs. Platzhalter klarer unterscheiden
   ========================================================= */

/* Grundstimmung der Labels etwas klarer */
.ov-info-label {
    color: #6e7680;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ---------- Übersichtskarten ---------- */

.ov-card-state-filled {
    border-top-color: var(--accent);
}

.ov-card-state-filled strong {
    color: #17212b;
    font-weight: 800;
}

.ov-card-state-filled p {
    color: #4d5964;
}

.ov-card-state-empty {
    border-top-color: #9aa3ab;
    background:
        linear-gradient(
            145deg,
            rgba(241, 243, 245, 0.98),
            rgba(229, 233, 236, 0.98)
        );
}

.ov-card-state-empty strong {
    color: #727b84;
    font-style: italic;
    font-weight: 700;
}

.ov-card-state-empty p {
    color: #89929b;
}

/* ---------- Reiterkarten allgemein ---------- */

.ov-content-card:not(.ov-content-card-empty) {
    border-top-color: var(--accent);
}

.ov-content-card:not(.ov-content-card-empty) h3 {
    color: #17212b;
    font-weight: 800;
}

.ov-content-card:not(.ov-content-card-empty) p {
    color: #4d5964;
}

/* Platzhalterkarten bewusst ruhiger */
.ov-content-card-empty {
    opacity: 1;
    border-top-color: #9aa3ab;

    background:
        linear-gradient(
            145deg,
            rgba(241, 243, 245, 0.98),
            rgba(229, 233, 236, 0.98)
        );
}

.ov-content-card-empty .ov-info-label {
    color: #8a929a;
}

.ov-content-card-empty h3 {
    color: #727b84;
    font-style: italic;
    font-weight: 700;
}

.ov-content-card-empty p {
    color: #89929b;
}

/* Echte Kontaktzeilen etwas kräftiger */
.ov-contact-line {
    background: rgba(215, 25, 32, 0.08);
    color: #24303b;
    font-weight: 700;
}

/* =========================================================
   Offene Platzhalter: Badge statt Kursivschrift
   ========================================================= */

.ov-card-state-empty strong,
.ov-content-card-empty h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #727b84;
    font-style: normal;
    font-weight: 700;
}

.ov-card-state-empty strong::after,
.ov-content-card-empty h3::after {
    content: "noch offen";
    display: inline-block;

    padding: 4px 8px;
    border-radius: 999px;

    background: rgba(52, 58, 64, 0.10);
    color: #707982;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

/* =========================================================
   OV Wiki – Übersicht neues Design
   ========================================================= */

.ov-page-heading {
    margin-bottom: 22px;
}

.ov-page-heading h2 {
    margin: 0 0 5px;
    font-size: 27px;
    color: #1e252b;
}

.ov-page-heading p {
    margin: 0;
    color: #687078;
}


/* ---------- Auf einen Blick ---------- */

.ov-glance-panel {
    margin-bottom: 34px;
    padding: 18px 20px 20px;

    border: 1px solid rgba(52, 58, 64, 0.12);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.72);

    box-shadow:
        0 6px 18px rgba(24, 29, 34, 0.08);
}

.ov-glance-title {
    margin-bottom: 15px;

    color: var(--accent);
    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ov-glance-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ov-glance-item {
    min-height: 62px;
    padding: 4px 16px;

    display: flex;
    align-items: center;
    gap: 11px;

    border-right: 1px solid rgba(52, 58, 64, 0.10);
}

.ov-glance-item:first-child {
    padding-left: 0;
}

.ov-glance-item:last-child {
    border-right: 0;
}

.ov-glance-icon {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d3d8dc;
    border-radius: 50%;

    background: #f1f3f5;
    color: #424a52;

    font-size: 18px;
}

.ov-glance-icon-active {
    border-color: rgba(215, 25, 32, 0.18);
    background: rgba(215, 25, 32, 0.07);
    color: var(--accent);
}

.ov-glance-label {
    display: block;
    margin-bottom: 6px;

    color: #26313a;
    font-size: 12px;
    font-weight: 700;
}


/* ---------- Status ---------- */

.ov-status {
    display: inline-block;

    padding: 4px 8px;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    white-space: nowrap;
}

.ov-status-open {
    background: #e4e7e9;
    color: #707982;
}

.ov-status-ok {
    background: #dcefd8;
    color: #326b2a;
}

.ov-status-partial {
    background: #fff0cb;
    color: #7b5a00;
}


/* ---------- Hauptbereiche ---------- */

.ov-overview-section {
    margin-top: 32px;
}

.ov-overview-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 15px;
    padding-bottom: 12px;

    border-bottom: 1px solid rgba(52, 58, 64, 0.14);
}

.ov-overview-section-icon {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--accent);
    font-size: 20px;
}

.ov-overview-section-heading h3 {
    margin: 0 0 3px;

    color: #20272d;
    font-size: 19px;
}

.ov-overview-section-heading p {
    margin: 0;

    color: #747c83;
    font-size: 12px;
}


/* ---------- Karten ---------- */

.ov-overview-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ov-overview-cards-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ov-overview-card {
    min-height: 145px;
    padding: 19px;

    border: 1px solid rgba(52, 58, 64, 0.12);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.72);

    box-shadow:
        0 5px 15px rgba(24, 29, 34, 0.07);
}

.ov-overview-card.is-filled {
    border-top: 3px solid var(--accent);
}

.ov-overview-card.is-open {
    background: rgba(240, 243, 245, 0.78);
}

.ov-overview-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin: 6px 0 7px;
}

.ov-overview-card-title strong {
    color: #202830;
    font-size: 16px;
}

.ov-overview-card.is-open strong {
    color: #747d85;
}

.ov-overview-card p {
    margin: 0;

    color: #606a73;
    font-size: 13px;
    line-height: 1.5;
}

.ov-overview-contact {
    display: inline-block;

    margin-top: 12px;
    padding: 7px 10px;

    border-radius: 7px;

    background: rgba(215, 25, 32, 0.07);
    color: #303942;

    font-size: 12px;
    font-weight: 700;
}


/* ---------- Kompakte Zeilen ---------- */

.ov-overview-row {
    min-height: 72px;
    padding: 14px 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid rgba(52, 58, 64, 0.10);

    background: rgba(255, 255, 255, 0.46);
}

.ov-overview-row:first-of-type {
    border-radius: 10px 10px 0 0;
}

.ov-overview-row:last-of-type {
    border-bottom: 0;
    border-radius: 0 0 10px 10px;
}

.ov-overview-row strong {
    display: block;
    margin-bottom: 4px;

    color: #29323a;
    font-size: 14px;
}

.ov-overview-row div > span {
    color: #737c84;
    font-size: 12px;
}


/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
    .ov-glance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ov-glance-item {
        border-right: 0;
        padding-left: 0;
    }

    .ov-overview-cards-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ov-glance-grid,
    .ov-overview-cards,
    .ov-overview-cards-three {
        grid-template-columns: 1fr;
    }

    .ov-overview-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   OV-Detailseite – zentrale Inhaltsfläche
   ========================================================= */

.ov-tab-panels {
    margin-top: 0;
    padding: 30px 34px 38px;

    border: 1px solid rgba(52, 58, 64, 0.10);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.82) 0%,
            rgba(244, 246, 247, 0.76) 100%
        );

    box-shadow:
        0 12px 32px rgba(24, 29, 34, 0.10);

    backdrop-filter: blur(6px);
}


/* =========================================================
   Hauptüberschrift des Reiters
   ========================================================= */

.ov-page-heading {
    margin-bottom: 26px;
}

.ov-page-heading h2 {
    position: relative;

    margin: 0 0 7px;
    padding-left: 16px;

    color: #171d22;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.ov-page-heading h2::before {
    content: "";

    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;

    width: 5px;

    border-radius: 4px;
    background: var(--accent);
}

.ov-page-heading p {
    padding-left: 16px;
    color: #687078;
}


/* =========================================================
   Große Abschnittsüberschriften
   ========================================================= */

.ov-overview-section-heading {
    position: relative;

    margin-bottom: 18px;
    padding: 0 0 14px 0;

    border-bottom: 1px solid rgba(52, 58, 64, 0.16);
}

.ov-overview-section-heading::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -1px;

    width: 38px;
    height: 3px;

    border-radius: 3px;
    background: var(--accent);
}

.ov-overview-section-heading h3 {
    margin: 0 0 4px;

    color: #171d22;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.ov-overview-section-heading p {
    color: #687078;
    font-size: 13px;
}


/* Die bisherigen Emoji-/Symbolflächen etwas zurücknehmen */
.ov-overview-section-icon {
    width: 26px;
    height: 26px;

    color: var(--accent);
    font-size: 18px;
}

/* =========================================================
   OV-Detailseite – oberer Bereich enger zusammenziehen
   ========================================================= */

/* Der große Kopfbereich soll etwas weniger "schweben" */
.ov-detail-hero,
.ov-detail-header,
.ov-ov-header,
.ov-detail-top {
    margin-bottom: 10px !important;
}

/* Reiterleiste direkt unter den Header ziehen */
.ov-detail-tabs,
.ov-tabs,
.ov-tab-nav {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 14px 14px 0 0 !important;
    box-shadow: 0 8px 18px rgba(24, 29, 34, 0.08);
}

/* Inhaltsfläche direkt an die Reiter andocken */
.ov-tab-panels {
    margin-top: 0 !important;
    border-radius: 0 0 18px 18px !important;
    box-shadow: 0 14px 32px rgba(24, 29, 34, 0.10);
}

/* Falls zwischen Reiterleiste und Panel noch Padding/Luft sitzt */
.ov-tab-panel {
    padding-top: 8px;
}

/* Den äußeren Abstand nach oben etwas entschärfen */
.ov-detail-layout,
.ov-detail-main,
.ov-detail-content {
    gap: 0 !important;
}

/* Optional: Header unten etwas gerader wirken lassen,
   damit Reiter besser andocken */
.ov-detail-hero,
.ov-detail-header,
.ov-ov-header,
.ov-detail-top {
    border-radius: 18px 18px 14px 14px !important;
}

/* =========================================================
   OV-Detailseite – Feinschliff Kopfbereich
   ========================================================= */


/* ---------------------------------------------------------
   1. Hero: Anthrazit → kräftigeres Rot nach rechts
   --------------------------------------------------------- */

.ov-detail-hero {
    position: relative;

    padding-top: 34px;

    background:
        radial-gradient(
            circle at 96% 45%,
            rgba(215, 25, 32, 0.32) 0%,
            rgba(215, 25, 32, 0.15) 28%,
            transparent 56%
        ),
        linear-gradient(
            110deg,
            #202429 0%,
            #292d32 56%,
            #4a292e 82%,
            #632a30 100%
        );

    box-shadow:
        0 12px 30px rgba(20, 25, 30, 0.18);
}


/* ---------------------------------------------------------
   2. Zurück-Link als kleiner Button oben rechts
   --------------------------------------------------------- */

.ov-back-link {
    position: absolute;
    top: 18px;
    right: 22px;

    margin: 0;
    padding: 8px 13px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;

    background: rgba(20, 24, 28, 0.20);

    color: #ffffff;
    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.ov-back-link:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.38);
    color: #ffffff;

    transform: translateX(-2px);
}


/* Status rechts etwas ruhiger */

.ov-detail-status {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e4e7e9;

    font-size: 11px;
}


/* ---------------------------------------------------------
   3. Reiter größer und nicht mehr so links angequetscht
   --------------------------------------------------------- */

.ov-tabs {
    gap: 8px;

    padding:
        6px
        22px;

    align-items: center;
}

.ov-tab {
    padding: 11px 18px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

.ov-tab:hover {
    transform: translateY(-1px);
}

.ov-tab.active {
    background: var(--accent);

    box-shadow:
        0 4px 10px rgba(215, 25, 32, 0.26);
}


/* Etwas mehr Luft für den Inhalt des Heroes,
   damit der Zurück-Button nicht mit Text kollidiert */

.ov-detail-heading {
    padding-top: 12px;
}


/* ---------------------------------------------------------
   Mobil
   --------------------------------------------------------- */

@media (max-width: 800px) {

    .ov-back-link {
        position: static;
        display: inline-block;
        margin-bottom: 18px;
    }

    .ov-detail-heading {
        padding-top: 0;
    }

    .ov-tabs {
        padding-left: 8px;
        padding-right: 8px;
    }

    .ov-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* =========================================================
   Übersicht – Auf einen Blick als Sprungnavigation
   ========================================================= */

html {
    scroll-behavior: smooth;
}

.ov-glance-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;

    border-radius: 9px;

    transition:
        background 0.16s ease,
        transform 0.16s ease;
}

.ov-glance-link:hover {
    background: rgba(215, 25, 32, 0.045);
    transform: translateY(-2px);
}

.ov-glance-link:focus-visible {
    outline: 2px solid rgba(215, 25, 32, 0.45);
    outline-offset: 2px;
}

#overview-dienststelle,
#overview-dienststellenleitung,
#overview-hnr,
#overview-technik,
#overview-standort {
    scroll-margin-top: 95px;
}

/* Kontaktwege in der Übersicht */

.ov-overview-contact-list {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.ov-overview-contact-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;

    padding: 7px 10px;
    border-radius: 7px;

    background: rgba(215, 25, 32, 0.06);
}

.ov-overview-contact-item span {
    color: #7a8289;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ov-overview-contact-item strong {
    color: #303942;
    font-size: 12px;
}

/* Übersicht als zusätzliche Navigation */

.ov-overview-jump {
    cursor: pointer;

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.ov-overview-jump:hover {
    transform: translateY(-2px);

    border-color: rgba(215, 25, 32, 0.24);

    box-shadow:
        0 10px 24px rgba(24, 29, 34, 0.11);
}

.ov-overview-jump:focus-visible {
    outline: 2px solid rgba(215, 25, 32, 0.48);
    outline-offset: 3px;
}

/* Ansprechpartner – persönliche Kontaktangaben */

.ov-overview-card .ov-overview-contact {
    margin-top: 11px;
}

/* Volle Breite für einzelne Informationskarten */

.ov-overview-card-full {
    grid-column: 1 / -1;
    min-height: auto;
}

/* Vier Elemente in Auf-einen-Blick-Leisten */

.ov-glance-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Hauptüberschriften – einheitlicher roter Akzentbalken */
.ov-page-heading h2::before {
    width: 4px;
}

/* =========================================================
   OV-Hauptüberschriften – Akzentbalken final vereinheitlichen
   ========================================================= */

.ov-page-heading h2 {
    padding-left: 13px;
    border-left: 4px solid var(--accent);
    line-height: 1.15;
}

.ov-page-heading h2::before {
    display: none;
}

/* Seitenbreite beim Wechsel zwischen kurzen/längeren Reitern stabil halten */
html {
    scrollbar-gutter: stable;
}

/* =========================================================
   Startseite – globale Suche
   ========================================================= */

.search-box {
    z-index: 30;
}

.ov-search-results {
    position: absolute;
    z-index: 60;

    left: 0;
    right: 0;
    top: calc(100% + 8px);

    overflow: hidden;

    border: 1px solid rgba(52, 58, 64, 0.14);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.98);

    box-shadow:
        0 18px 38px rgba(20, 25, 30, 0.20),
        0 4px 10px rgba(20, 25, 30, 0.08);
}

.ov-search-result {
    min-height: 62px;
    padding: 11px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border-bottom: 1px solid rgba(52, 58, 64, 0.09);

    color: inherit;
    text-decoration: none;

    transition:
        background 0.14s ease,
        padding-left 0.14s ease;
}

.ov-search-result:last-child {
    border-bottom: 0;
}

.ov-search-result:hover,
.ov-search-result:focus-visible {
    padding-left: 18px;

    background: rgba(215, 25, 32, 0.055);
    outline: none;
}

.ov-search-result-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ov-search-result-content strong {
    color: #20272d;
    font-size: 14px;
}

.ov-search-result-content > span {
    overflow: hidden;

    color: #687078;
    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.ov-search-result-category {
    flex: 0 0 auto;

    padding: 4px 8px;
    border-radius: 999px;

    background: #eceff1;
    color: #687078;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ov-search-empty {
    padding: 17px;

    color: #687078;
    font-size: 13px;
}


/* =========================================================
   OV Wiki – Login
   ========================================================= */

.login-layout {
    min-height: calc(100vh - 190px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    align-items: center;
    gap: 70px;
    padding: 46px 20px 70px;
}


.login-intro {
    max-width: 620px;
}


.login-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    margin-bottom: 18px;

    border-radius: 999px;

    background: var(--accent-soft);
    color: var(--accent-dark);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}


.login-intro h1 {
    margin: 0 0 18px;

    color: var(--anthracite);
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.025em;
}


.login-intro p {
    max-width: 560px;
    margin: 0;

    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}


.login-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--surface);

    box-shadow:
        0 22px 55px rgba(20, 27, 34, 0.12);
}


.login-card-header {
    padding: 28px 30px 24px;

    border-top: 5px solid var(--accent);
    border-bottom: 1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f5f6f7 100%
        );
}


.login-card-header h2 {
    margin: 0 0 7px;

    color: var(--anthracite);
    font-size: 25px;
}


.login-card-header p {
    margin: 0;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}


.login-form {
    padding: 28px 30px 30px;
}


.login-field {
    margin-bottom: 20px;
}


.login-field label {
    display: block;
    margin-bottom: 8px;

    color: var(--anthracite);
    font-size: 14px;
    font-weight: 700;
}


.login-field input {
    width: 100%;
    height: 50px;

    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--white);
    color: var(--text);

    font: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}


.login-field input:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(215, 25, 32, 0.10);
}


.login-error {
    margin: 2px 0 18px;
    padding: 11px 13px;

    border: 1px solid #efb8ba;
    border-radius: 9px;

    background: var(--accent-soft);
    color: #8d171b;

    font-size: 14px;
    line-height: 1.45;
}


.login-submit {
    width: 100%;
    min-height: 50px;

    border: 0;
    border-radius: 10px;

    background: var(--accent);
    color: var(--white);

    font: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.16s ease,
        transform 0.16s ease;
}


.login-submit:hover:not(:disabled) {
    background: var(--accent-dark);
}


.login-submit:active:not(:disabled) {
    transform: translateY(1px);
}


.login-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}


.login-card-footer {
    padding: 15px 30px;

    border-top: 1px solid var(--border);

    background: #f7f8f9;
    color: var(--muted);

    font-size: 12px;
}


.login-lock {
    display: inline-block;
    margin-right: 6px;

    color: var(--accent);
    font-size: 9px;
    vertical-align: 1px;
}


@media (max-width: 850px) {

    .login-layout {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 20px;
    }


    .login-intro {
        max-width: none;
    }


    .login-intro h1 {
        font-size: 36px;
    }


    .login-intro p {
        font-size: 16px;
    }


    .login-card {
        max-width: 520px;
        width: 100%;
    }
}


@media (max-width: 520px) {

    .login-layout {
        padding-left: 0;
        padding-right: 0;
    }


    .login-card-header,
    .login-form {
        padding-left: 22px;
        padding-right: 22px;
    }


    .login-card-footer {
        padding-left: 22px;
        padding-right: 22px;
    }
}


/* =========================================================
   OV Wiki – Header Anmeldung
   ========================================================= */

.site-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}


.site-auth-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}


.site-auth-status {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 0 3px rgba(215, 25, 32, 0.15);
}


.site-auth-logout-form {
    margin: 0;
}


.site-auth-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 0 13px;

    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);

    font: inherit;
    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.16s ease,
        border-color 0.16s ease;
}


.site-auth-action:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}


@media (max-width: 700px) {

    .site-auth {
        gap: 8px;
    }


    .site-auth-user {
        font-size: 12px;
    }


    .site-auth-action {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }
}


/* =========================================================
   OV Wiki – Redaktion
   ========================================================= */

.redaktion-page {
    max-width: 1100px;
    margin: 0 auto;
}


.redaktion-heading {
    margin-bottom: 28px;
}


.redaktion-eyebrow {
    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 0 11px;
    margin-bottom: 14px;

    border-radius: 999px;

    background: var(--accent-soft);
    color: var(--accent-dark);

    font-size: 12px;
    font-weight: 700;
}


.redaktion-heading h1 {
    margin: 0 0 8px;

    color: var(--anthracite);
    font-size: 34px;
}


.redaktion-heading p {
    margin: 0;

    color: var(--muted);
    font-size: 16px;
}


.redaktion-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
    padding: 22px 24px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);
}


.redaktion-welcome > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.redaktion-welcome-label {
    color: var(--muted);
    font-size: 12px;
}


.redaktion-welcome strong {
    color: var(--anthracite);
    font-size: 18px;
}


.redaktion-welcome span {
    color: var(--muted);
    font-size: 13px;
}


.redaktion-role-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}


.redaktion-role-list .redaktion-role {
    display: inline-flex;
    align-items: center;

    min-height: 30px;
    padding: 0 11px;

    border-radius: 999px;

    background: var(--anthracite);
    color: var(--white);

    font-size: 12px;
    font-weight: 700;
}


.redaktion-section {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);
}


.redaktion-section-heading {
    padding: 22px 24px;

    border-bottom: 1px solid var(--border);
}


.redaktion-section-heading h2 {
    margin: 0 0 6px;

    color: var(--anthracite);
    font-size: 21px;
}


.redaktion-section-heading p {
    margin: 0;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}


.redaktion-placeholder {
    padding: 40px 24px;

    text-align: center;
}


.redaktion-placeholder strong {
    display: block;
    margin-bottom: 7px;

    color: var(--anthracite);
    font-size: 17px;
}


.redaktion-placeholder span {
    color: var(--muted);
    font-size: 14px;
}


@media (max-width: 700px) {

    .redaktion-welcome {
        align-items: flex-start;
        flex-direction: column;
    }


    .redaktion-role-list {
        justify-content: flex-start;
    }
}


/* =========================================================
   OV Wiki – Redaktion OV-Auswahl
   ========================================================= */

.redaktion-ov-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 14px;
    padding: 22px;
}


.redaktion-ov-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    min-height: 112px;
    padding: 18px 20px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: #fafbfb;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}


.redaktion-ov-card:hover {
    transform: translateY(-1px);

    border-color: #bcc2c8;

    box-shadow:
        0 7px 18px rgba(20, 27, 34, 0.07);
}


.redaktion-ov-card-main {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}


.redaktion-ov-card-main strong {
    color: var(--anthracite);
    font-size: 17px;
}


.redaktion-ov-card-main > span:last-child {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}


.redaktion-ov-label {
    color: var(--accent) !important;

    font-size: 11px !important;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.redaktion-ov-action {
    flex-shrink: 0;

    color: var(--accent) !important;

    font-size: 12px !important;
    font-weight: 700;

    white-space: nowrap;
}


@media (max-width: 600px) {

    .redaktion-ov-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }


    .redaktion-ov-card {
        min-height: 100px;
    }
}


/* =========================================================
   OV Wiki – OV-Redaktion
   ========================================================= */

.redaktion-ov-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 24px;
}


.redaktion-back-link,
.redaktion-public-link {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}


.redaktion-back-link:hover,
.redaktion-public-link:hover {
    color: var(--accent);
}


.redaktion-editor {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 36px;

    padding: 28px 24px;
}


.redaktion-editor-label {
    display: inline-block;
    margin-bottom: 7px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.redaktion-editor-meta h3 {
    margin: 0 0 8px;

    color: var(--anthracite);
    font-size: 19px;
}


.redaktion-editor-meta p {
    margin: 0;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}


.redaktion-editor-field label {
    display: block;
    margin-bottom: 8px;

    color: var(--anthracite);

    font-size: 13px;
    font-weight: 700;
}


.redaktion-editor-field textarea {
    display: block;

    width: 100%;
    min-height: 130px;

    padding: 14px;

    resize: vertical;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #f7f8f9;
    color: var(--text);

    font: inherit;
    font-size: 14px;
    line-height: 1.55;
}


.redaktion-editor-field textarea[readonly] {
    cursor: default;
}


.redaktion-editor-hint {
    display: block;
    margin-top: 8px;

    color: var(--muted);
    font-size: 12px;
}


@media (max-width: 750px) {

    .redaktion-editor {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .redaktion-ov-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}


/* =========================================================
   OV Wiki – Editor direkt in der Inhaltskachel
   ========================================================= */

.redaktion-card-editor {
    padding: 24px;
}


.redaktion-card-editor-intro {
    display: flex;
    align-items: baseline;
    gap: 10px;

    margin-bottom: 14px;
}


.redaktion-card-editor-intro strong {
    color: var(--anthracite);
    font-size: 14px;
}


.redaktion-card-editor-intro span {
    color: var(--muted);
    font-size: 12px;
}


.redaktion-edit-card {
    max-width: 720px;
    min-height: 0;
}


.redaktion-edit-card-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.38fr);
    align-items: end;
    gap: 14px;

    margin-top: 8px;
}


.redaktion-inline-field label {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.redaktion-inline-field input,
.redaktion-inline-field select,
.redaktion-inline-field textarea {
    width: 100%;

    border: 1px solid #cfd4d9;
    border-radius: 8px;

    background: var(--white);
    color: var(--text);

    font: inherit;

    outline: none;
}


.redaktion-inline-field input {
    min-height: 42px;

    padding: 0 11px;

    font-size: 16px;
    font-weight: 700;
}


.redaktion-inline-field select {
    min-height: 42px;

    padding: 0 10px;

    font-size: 13px;
    font-weight: 700;
}


.redaktion-inline-field textarea {
    min-height: 88px;

    padding: 10px 11px;

    resize: vertical;

    font-size: 14px;
    line-height: 1.5;
}


.redaktion-inline-field-text {
    margin-top: 14px;
}


.redaktion-inline-field input[readonly],
.redaktion-inline-field textarea[readonly],
.redaktion-inline-field select:disabled {
    opacity: 1;

    background: #f7f8f9;
    color: var(--text);

    cursor: default;
}


.redaktion-edit-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid var(--border);
}


.redaktion-edit-card-footer > span {
    color: var(--muted);

    font-size: 11px;
}


.redaktion-save-button {
    min-height: 38px;

    padding: 0 16px;

    border: 0;
    border-radius: 8px;

    background: var(--accent);
    color: var(--white);

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}


.redaktion-save-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


@media (max-width: 700px) {

    .redaktion-edit-card-title {
        grid-template-columns: 1fr;
    }


    .redaktion-card-editor-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}


/* =========================================================
   OV Wiki – Redaktionsmeldungen
   ========================================================= */

.redaktion-messages {
    padding: 20px 24px 0;
}


.redaktion-message {
    padding: 11px 13px;

    border: 1px solid var(--border);
    border-radius: 9px;

    font-size: 13px;
    line-height: 1.45;
}


.redaktion-message-success {
    border-color: #b9d9b8;
    background: #edf7ec;
    color: #315d30;
}


.redaktion-message-info {
    background: #f5f6f7;
    color: var(--muted);
}


.redaktion-message-error {
    border-color: #efb8ba;
    background: var(--accent-soft);
    color: #8d171b;
}


/* =========================================================
   OV Wiki – gespiegelter Bearbeitungsmodus
   ========================================================= */

.redaktion-page-mirrored {
    max-width: none;
}


.redaktion-messages-mirrored {
    padding: 0;
    margin-bottom: 18px;
}


.redaktion-edit-mode-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 20px;
    padding: 17px 20px;

    border: 1px solid #efb8ba;
    border-left: 5px solid var(--accent);
    border-radius: 12px;

    background: #fff7f7;

    box-shadow:
        0 5px 16px rgba(20, 27, 34, 0.05);
}


.redaktion-edit-mode-content {
    display: flex;
    align-items: center;
    gap: 14px;
}


.redaktion-edit-mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: var(--accent);
    color: var(--white);

    font-size: 18px;
}


.redaktion-edit-mode-content > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.redaktion-edit-mode-content strong {
    color: var(--anthracite);
    font-size: 15px;
}


.redaktion-edit-mode-content div span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}


.redaktion-edit-mode-exit {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--white);
    color: var(--anthracite);

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}


.redaktion-edit-mode-exit:hover {
    border-color: var(--accent);
    color: var(--accent);
}


.redaktion-mirror-panels {
    overflow: visible;
}


.redaktion-mirror-panel {
    display: block;
}


/*
 * Im normalen Technik-Raster ist eine Kachel deutlich
 * schmaler als in unserem bisherigen Einzel-Editor.
 */
.redaktion-mirror-panel .redaktion-edit-card {
    max-width: none;
    min-width: 0;
}


.redaktion-mirror-panel .redaktion-inline-field {
    margin-top: 12px;
}


.redaktion-mirror-panel .redaktion-inline-field:first-of-type {
    margin-top: 8px;
}


.redaktion-mirror-panel .redaktion-inline-field input,
.redaktion-mirror-panel .redaktion-inline-field select {
    min-height: 38px;
}


.redaktion-mirror-panel .redaktion-inline-field input {
    font-size: 14px;
}


.redaktion-mirror-panel .redaktion-inline-field textarea {
    min-height: 92px;
}


.redaktion-mirror-panel .redaktion-edit-card-footer {
    align-items: flex-end;
    flex-direction: column;
    gap: 9px;
}


.redaktion-mirror-panel .redaktion-edit-card-footer > span {
    align-self: flex-start;
}


@media (max-width: 750px) {

    .redaktion-edit-mode-banner {
        align-items: stretch;
        flex-direction: column;
    }


    .redaktion-edit-mode-exit {
        align-self: flex-start;
    }
}


/* =========================================================
   OV Wiki – Editor-Karten sauber ausrichten
   ========================================================= */

.redaktion-mirror-panel .redaktion-edit-card {
    display: flex;
    flex-direction: column;
}


.redaktion-mirror-panel .redaktion-edit-card-footer {
    margin-top: auto;
}


.redaktion-mirror-panel .redaktion-linked-contact {
    margin-top: 12px;
    padding: 9px 10px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #f7f8f9;
}


.redaktion-mirror-panel .redaktion-linked-contact-label {
    display: block;

    margin-bottom: 3px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.redaktion-mirror-panel .redaktion-linked-contact-value {
    color: var(--text);

    font-size: 11px;
    font-weight: 600;

    word-break: break-word;
}


.redaktion-linked-contact-title {
    display: block;

    margin-bottom: 2px;

    color: var(--anthracite);

    font-size: 11px;
    font-weight: 700;
}


.redaktion-linked-contact-value {
    display: block;
}


/* =========================================================
   OV Wiki – Redaktionsnavigation
   ========================================================= */

.redaktion-ov-card {
    color: inherit;
    text-decoration: none;
}


.redaktion-ov-card:focus-visible {
    outline: 3px solid rgba(215, 25, 32, 0.18);
    outline-offset: 2px;
}


.site-auth-redaktion {
    border-color: rgba(215, 25, 32, 0.45);
}


/* =========================================================
   OV Wiki – klickbarer Markenbereich
   ========================================================= */

.brand-link {
    color: inherit;
    text-decoration: none;
}

.brand-link:hover {
    text-decoration: none;
}

.brand-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 5px;
    border-radius: 4px;
}


/* =========================================================
   Redaktion – Rückweg zur OV-Übersicht
   ========================================================= */

.redaktion-home-nav {
    margin-bottom: 18px;
}

.redaktion-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--muted);
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}

.redaktion-back-link:hover {
    color: var(--anthracite);
}

.redaktion-back-link:focus-visible {
    outline: 2px solid rgba(215, 25, 32, 0.25);
    outline-offset: 4px;
    border-radius: 3px;
}


/* =========================================================
   Inhaltsverknüpfungen – Bearbeitungsaktionen
   ========================================================= */

.redaktion-linked-contact-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 8px;
    padding-top: 7px;

    border-top: 1px solid rgba(0, 0, 0, 0.07);
}


.redaktion-link-remove-button {
    appearance: none;

    padding: 5px 9px;

    border: 1px solid rgba(160, 36, 36, 0.25);
    border-radius: 6px;

    background: transparent;

    color: #9c2d2d;

    font: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}


.redaktion-link-remove-button:hover {
    background: rgba(160, 36, 36, 0.06);
    border-color: rgba(160, 36, 36, 0.45);
}


.redaktion-link-remove-button:focus-visible {
    outline: 2px solid rgba(215, 25, 32, 0.25);
    outline-offset: 2px;
}


/* =========================================================
   Inhaltsverknüpfungen – Feinschliff
   ========================================================= */

.redaktion-mirror-panel .redaktion-linked-contact {
    padding: 11px 11px 12px;
}


.redaktion-mirror-panel .redaktion-linked-contact-label {
    margin-bottom: 5px;
    line-height: 1.25;
}


.redaktion-mirror-panel .redaktion-linked-contact-title {
    margin-bottom: 4px;

    font-size: 11px;
    line-height: 1.4;
}


.redaktion-mirror-panel .redaktion-linked-contact-value {
    line-height: 1.45;
}


.redaktion-mirror-panel .redaktion-linked-contact-actions {
    margin-top: 11px;
    padding-top: 10px;
    padding-bottom: 1px;
}


.redaktion-mirror-panel .redaktion-link-remove-button {
    padding: 6px 10px;
    line-height: 1.2;
}


/* =========================================================
   Verknüpfungen – Abstand zum Karten-Footer
   ========================================================= */

.redaktion-mirror-panel .redaktion-linked-contact {
    margin-bottom: 16px;
}


/* =========================================================
   Inhaltsverknüpfungen – strukturierte Darstellung
   ========================================================= */

.redaktion-mirror-panel .redaktion-links-box {
    margin-top: 16px;
    margin-bottom: 16px;

    padding: 11px 12px 12px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #f7f8f9;
}


.redaktion-mirror-panel .redaktion-links-heading {
    margin-bottom: 9px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


.redaktion-mirror-panel .redaktion-link-item {
    display: flex;
    align-items: center;
    gap: 14px;

    min-width: 0;
}


.redaktion-mirror-panel .redaktion-link-item + .redaktion-link-item {
    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid rgba(0, 0, 0, 0.07);
}


.redaktion-mirror-panel .redaktion-link-content {
    flex: 1;
    min-width: 0;
}


.redaktion-mirror-panel .redaktion-link-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    min-width: 0;
}


.redaktion-mirror-panel .redaktion-link-kind {
    flex: 0 0 auto;

    padding: 2px 6px;

    border-radius: 999px;

    background: rgba(0, 0, 0, 0.055);

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.redaktion-mirror-panel .redaktion-link-title {
    min-width: 0;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}


.redaktion-mirror-panel .redaktion-link-detail {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.45;

    overflow-wrap: anywhere;
}


.redaktion-mirror-panel .redaktion-link-actions {
    flex: 0 0 auto;

    margin-left: auto;
}


.redaktion-mirror-panel .redaktion-links-empty {
    color: var(--muted);

    font-size: 10px;
    line-height: 1.45;
}


/* =========================================================
   Inhaltsverknüpfungen – Verknüpfung hinzufügen
   ========================================================= */

.redaktion-mirror-panel .redaktion-link-add-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 11px;
    padding-top: 10px;

    border-top: 1px solid rgba(0, 0, 0, 0.07);
}


.redaktion-mirror-panel .redaktion-link-add {
    min-width: 0;
}


.redaktion-mirror-panel .redaktion-link-add[open] {
    flex-basis: 100%;
}


.redaktion-mirror-panel .redaktion-link-add summary,
.redaktion-mirror-panel .redaktion-link-add-disabled {
    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 5px 9px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: #fff;

    color: var(--anthracite);

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    list-style: none;
}


.redaktion-mirror-panel .redaktion-link-add summary::-webkit-details-marker {
    display: none;
}


.redaktion-mirror-panel .redaktion-link-add summary:hover {
    border-color: rgba(215, 25, 32, 0.35);
}


.redaktion-mirror-panel .redaktion-link-add-panel {
    display: flex;
    align-items: center;
    gap: 8px;

    width: 100%;
    margin-top: 8px;
}


.redaktion-mirror-panel .redaktion-link-add-panel select {
    flex: 1;
    min-width: 0;
    min-height: 34px;
}


.redaktion-mirror-panel .redaktion-link-add-button {
    flex: 0 0 auto;

    min-height: 34px;
    padding: 6px 10px;

    border: 0;
    border-radius: 6px;

    background: #df1622;
    color: #fff;

    font: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}


.redaktion-mirror-panel .redaktion-link-add-disabled {
    opacity: 0.45;
    cursor: default;
}


/* =========================================================
   Verknüpfungen – kompaktere Auswahl
   ========================================================= */

.redaktion-mirror-panel .redaktion-link-add-panel {
    gap: 7px;
}


.redaktion-mirror-panel .redaktion-link-add-panel select {
    min-height: 31px;
    height: 31px;

    padding: 4px 28px 4px 8px;

    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;

    border-radius: 6px;
}


.redaktion-mirror-panel .redaktion-link-add-button {
    min-height: 31px;
    height: 31px;

    padding: 5px 10px;

    font-size: 9px;
}


.redaktion-mirror-panel .redaktion-link-add summary {
    min-height: 27px;

    padding: 4px 8px;

    font-size: 9px;
}


/* =========================================================
   Verknüpfungen – neuen Kontakt anlegen
   ========================================================= */

.redaktion-mirror-panel .redaktion-link-create {
    flex-basis: 100%;
}


.redaktion-mirror-panel .redaktion-link-create > summary {
    color: #b1121b;
}


.redaktion-mirror-panel .redaktion-link-create-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;

    margin-top: 9px;
    padding: 11px;

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.72);
}


.redaktion-mirror-panel .redaktion-link-create-full {
    grid-column: 1 / -1;
}


.redaktion-mirror-panel .redaktion-link-create-intro {
    grid-column: 1 / -1;

    margin-bottom: 2px;

    color: var(--muted);

    font-size: 9px;
    line-height: 1.45;
}


.redaktion-mirror-panel .redaktion-link-create-field {
    min-width: 0;
}


.redaktion-mirror-panel .redaktion-link-create-field label {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.redaktion-mirror-panel .redaktion-link-create-field input,
.redaktion-mirror-panel .redaktion-link-create-field textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 7px 8px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: #fff;

    color: var(--anthracite);

    font: inherit;
    font-size: 10px;
    line-height: 1.35;
}


.redaktion-mirror-panel .redaktion-link-create-field input {
    min-height: 32px;
}


.redaktion-mirror-panel .redaktion-link-create-field textarea {
    min-height: 58px;
    resize: vertical;
}


.redaktion-mirror-panel .redaktion-link-create-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding-top: 9px;

    border-top: 1px solid rgba(0, 0, 0, 0.07);
}


.redaktion-mirror-panel .redaktion-link-create-footer > span {
    color: var(--muted);

    font-size: 8px;
    line-height: 1.4;
}


.redaktion-mirror-panel .redaktion-link-create-button {
    flex: 0 0 auto;

    min-height: 31px;
    padding: 6px 10px;

    border: 0;
    border-radius: 6px;

    background: #df1622;
    color: #fff;

    font: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   Verknüpfungen – Auswahlmanager
   ========================================================= */

.redaktion-mirror-panel .redaktion-link-manager {
    margin-top: 12px;
    padding-top: 10px;

    border-top: 1px solid rgba(0, 0, 0, 0.07);
}


.redaktion-mirror-panel .redaktion-link-manager-heading {
    margin-bottom: 7px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


.redaktion-mirror-panel .redaktion-link-manager-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


.redaktion-mirror-panel .redaktion-link-mode-button {
    min-height: 28px;
    padding: 5px 9px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: #fff;

    color: var(--anthracite);

    font: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}


.redaktion-mirror-panel .redaktion-link-mode-button:hover {
    border-color: rgba(215, 25, 32, 0.35);
}


.redaktion-mirror-panel .redaktion-link-mode-button.is-active {
    border-color: rgba(215, 25, 32, 0.45);

    background: rgba(215, 25, 32, 0.08);

    color: #b1121b;
}


.redaktion-mirror-panel .redaktion-link-mode-panel {
    margin-top: 9px;
    padding: 11px;

    border: 1px solid rgba(215, 25, 32, 0.16);
    border-left: 3px solid #df1622;
    border-radius: 7px;

    background: rgba(215, 25, 32, 0.035);
}


.redaktion-mirror-panel .redaktion-link-mode-panel[hidden] {
    display: none;
}


.redaktion-mirror-panel .redaktion-link-mode-title {
    margin-bottom: 8px;

    color: var(--anthracite);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.redaktion-mirror-panel .redaktion-link-mode-row {
    display: flex;
    align-items: center;
    gap: 7px;
}


.redaktion-mirror-panel .redaktion-link-mode-row select {
    flex: 1;
    min-width: 0;

    height: 31px;
    min-height: 31px;

    padding: 4px 28px 4px 8px;

    font-size: 9px;
    font-weight: 500;
}


.redaktion-mirror-panel .redaktion-link-create-panel {
    display: block;
}


.redaktion-mirror-panel .redaktion-link-create-panel[hidden] {
    display: none;
}


.redaktion-mirror-panel .redaktion-link-create-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}


/* Neue Person – Funktionsauswahl */

.redaktion-mirror-panel .redaktion-link-create-field select {
    width: 100%;
    box-sizing: border-box;

    min-height: 32px;
    padding: 6px 28px 6px 8px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: #fff;

    color: var(--anthracite);

    font-size: 10px;
    font-weight: 500;
}


/* =========================================================
   Verknüpfungen – neue Stammdaten als Unterfunktion
   ========================================================= */

.redaktion-mirror-panel .redaktion-link-create-choice {
    margin-top: 9px;
    padding-top: 8px;

    border-top: 1px solid rgba(0, 0, 0, 0.07);
}


.redaktion-mirror-panel .redaktion-link-create-choice-button {
    appearance: none;

    padding: 5px 8px;

    border: 0;
    border-radius: 5px;

    background: transparent;

    color: #b1121b;

    font: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}


.redaktion-mirror-panel .redaktion-link-create-choice-button:hover {
    background: rgba(215, 25, 32, 0.055);
}


.redaktion-mirror-panel .redaktion-link-create-choice-button.is-active {
    background: rgba(215, 25, 32, 0.09);
}


/* =========================================================
   Neue Person – neue Funktion als Unterfunktion
   ========================================================= */

.redaktion-mirror-panel .redaktion-function-create-choice {
    margin-top: 7px;
}


.redaktion-mirror-panel .redaktion-function-create-toggle {
    appearance: none;

    padding: 4px 7px;

    border: 0;
    border-radius: 5px;

    background: transparent;

    color: #b1121b;

    font: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}


.redaktion-mirror-panel .redaktion-function-create-toggle:hover,
.redaktion-mirror-panel .redaktion-function-create-toggle.is-active {
    background: rgba(215, 25, 32, 0.07);
}


.redaktion-mirror-panel .redaktion-function-create-panel {
    margin-top: 7px;
    padding: 9px;

    border: 1px solid rgba(215, 25, 32, 0.15);
    border-left: 2px solid #df1622;
    border-radius: 6px;

    background: rgba(215, 25, 32, 0.025);
}


.redaktion-mirror-panel .redaktion-function-create-panel[hidden] {
    display: none;
}


.redaktion-mirror-panel .redaktion-function-create-panel label {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.redaktion-mirror-panel .redaktion-function-create-panel input {
    width: 100%;
    box-sizing: border-box;

    min-height: 32px;
    padding: 6px 8px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: #fff;

    color: var(--anthracite);

    font: inherit;
    font-size: 10px;
}


.redaktion-mirror-panel .redaktion-function-create-hint {
    margin-top: 5px;

    color: var(--muted);

    font-size: 8px;
    line-height: 1.4;
}


/* Neue Funktion aktiv – bestehende Auswahl zurücknehmen */

.redaktion-mirror-panel
.redaktion-link-create-field.is-function-replaced {
    opacity: 0.48;
}

.redaktion-mirror-panel
.redaktion-link-create-field.is-function-replaced select {
    cursor: not-allowed;
}


/* =========================================================
   Neue Funktion – nur bestehendes Dropdown zurücknehmen
   ========================================================= */

.redaktion-mirror-panel
.redaktion-link-create-field.is-function-replaced {
    opacity: 1;
}


.redaktion-mirror-panel
.redaktion-link-create-field.is-function-replaced
> select[name="new_person_function_id"] {
    opacity: 0.48;

    background: #f3f4f5;
    color: var(--muted);

    cursor: not-allowed;
}


/* =========================================================
   Verknüpfungen – AJAX-Feedback
   ========================================================= */

.redaktion-mirror-panel .redaktion-link-feedback {
    margin-bottom: 9px;
    padding: 7px 8px;

    border-radius: 6px;

    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;
}


.redaktion-mirror-panel .redaktion-link-feedback[hidden] {
    display: none;
}


.redaktion-mirror-panel .redaktion-link-feedback.is-success {
    border: 1px solid rgba(35, 122, 68, 0.18);
    background: rgba(35, 122, 68, 0.07);
    color: #25633b;
}


.redaktion-mirror-panel .redaktion-link-feedback.is-error {
    border: 1px solid rgba(190, 38, 48, 0.2);
    background: rgba(190, 38, 48, 0.07);
    color: #9b2029;
}


.redaktion-mirror-panel .redaktion-link-feedback.is-info {
    border: 1px solid rgba(70, 80, 90, 0.15);
    background: rgba(70, 80, 90, 0.05);
    color: var(--muted);
}


.redaktion-mirror-panel .redaktion-links-box.is-updating {
    opacity: 0.65;
    pointer-events: none;
}
