/* Gestaltung von Karte, Legende, Seitenleiste, Begrüßung und Medienanzeige. */

/* Gemeinsame Projektfarben für Bedienelemente und Hervorhebungen. */
:root {
    --main-color: #154889;
    --secondary-color: rgba(80, 80, 80);
    --webgis-button-width: 45px;
    --webgis-button-height: 40px;
    --webgis-button-icon-size: 16px;
}

/* Bewahrt die bisherigen Link- und Legendenabstände nach dem Wechsel auf Bootstrap 5. */
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}
.layer-switcher label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.attribute-detail .attribute-value {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Seitenleiste und Kartenbedienung teilen die Grundmaße; die Karte passt ihre Flächen separat an. */
#sidebar .sidebar-tabs > ul > li,
#map .webgis-map-controls button {
    box-sizing: border-box;
    width: var(--webgis-button-width);
    height: var(--webgis-button-height);
    font-size: var(--webgis-button-icon-size);
}

/* Verkleinert die Kartenbuttons um rund 15 Prozent; die Symbole bleiben unverändert groß. */
#map {
    --webgis-button-width: 38px;
    --webgis-button-height: 34px;
    --map-control-edge: 10px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

/* Gemeinsame Kartenleiste: Zoom, Untersuchungsgebiet und Vollbild bleiben an einem festen Ort. */
#map .webgis-map-controls {
    display: flex;
    flex-direction: column;
    top: max(var(--map-control-edge), env(safe-area-inset-top, 0px));
    right: max(var(--map-control-edge), env(safe-area-inset-right, 0px));
    left: auto;
    width: var(--webgis-button-width);
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(22, 38, 56, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
}

/* OpenLayers liefert die Funktionen; Position und Abstände übernimmt die gemeinsame Leiste. */
#map .webgis-map-controls > .ol-control {
    position: static;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

/* Die Nordausrichtung benötigt nur bei gedrehter Karte einen eigenen Knopf. */
#map .webgis-map-controls > .ol-rotate.ol-hidden {
    display: none;
}

/* Randlose Buttons schließen ohne Trennlinien aneinander an; auch der Hoverbereich ist abgerundet. */
#map .webgis-map-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #000;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition:
        background-color 80ms ease,
        color 80ms ease;
}

#map .webgis-map-controls button i {
    padding: 0;
    font-size: var(--webgis-button-icon-size);
    line-height: 1;
    pointer-events: none;
}

/* Übernimmt den grauen Hoverzustand mit weißen Symbolen aus der linken Seitenleiste. */
@media (hover: hover) {
    #map .webgis-map-controls button:enabled:not([aria-pressed='true']):hover {
        background: rgba(150, 150, 150, 0.6);
        color: #fff;
    }
}
#map .webgis-map-controls button:enabled:not([aria-pressed='true']):active {
    background: rgba(150, 150, 150, 0.6);
    color: #fff;
}
/* Tastaturfokus bleibt sichtbar; ein aktiver Modus verwendet wie die Seitenleiste die Projektfarbe. */
#map .webgis-map-controls button:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: -4px;
}
#map .webgis-map-controls button[aria-pressed='true'] {
    background: var(--main-color);
    color: white;
}
#map .webgis-map-controls button[aria-pressed='true']:focus-visible {
    outline-color: white;
}
#map .webgis-map-controls button:disabled {
    background: transparent;
    color: #929ba6;
    cursor: default;
}
@media (prefers-reduced-motion: reduce) {
    #map .webgis-map-controls button {
        transition: none;
    }
}

.search-result-notice {
    margin: 14px 0;
    padding: 10px 12px;
    border-left: 4px solid #e89b00;
    background: #fff5d9;
    color: #393327;
    line-height: 1.4;
}

/* Mobile Suche: Der Sidebar-Abstand bleibt erhalten; rechts Platz für die Kartenbuttons lassen.
   #map setzt diese lokalen Regeln auch gegenüber der später geladenen search.css durch. */
@media (max-width: 768px) {
    #map .ol-geocoder.gcd-gl-container {
        right: calc(
            var(--webgis-button-width) + 10px +
                max(var(--map-control-edge), env(safe-area-inset-right, 0px))
        );
        width: auto;
        min-width: 0;
        max-width: 320px;
    }
    #map .ol-geocoder .gcd-gl-control {
        width: 100%;
        min-width: 0;
    }
    #map .ol-geocoder .gcd-gl-input {
        left: 10px;
        width: calc(100% - 52px);
        min-width: 0;
    }
    #map .ol-geocoder .gcd-gl-btn {
        right: 5px;
    }
    #map .ol-geocoder ul.gcd-gl-result {
        left: 0;
        width: 100%;
        max-width: 100%;
        margin: 5px 0 0;
        overflow-wrap: anywhere;
    }
}

/* Platziert die Quellenangaben der Hintergrundkarte. */
.ol-attribution.ol-uncollapsible {
    max-width: 100%;
    background-color: rgba(235, 235, 235, 0.95);
    border-top: 3px solid transparent;
    height: 27px;
}
@media (max-width: 576px) {
    .ol-attribution.ol-uncollapsible {
        width: 100%;
        height: auto;
        text-align: center;
    }
}
.ol-attribution ul {
    font-size: 12px;
    font-family: 'Calibri';
    letter-spacing: 0.015em;
    color: rgb(0, 0, 0);
    text-shadow: 0 0 2px #fff;
    text-align: center;
    vertical-align: top;
}

/* Legt Schriftgrößen und Textdarstellung für die Seitenleiste fest. */
.intro-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.lorem {
    font-family: Calibri;
    font-size: 13pt;
    color: var(--secondary-color);
    margin-top: 9px;
}

h2 {
    font-family: Calibri;
    font-size: 15pt;
    color: #494949;
}
h2:after {
    content: ' ';
    display: block;
    margin-top: 5px;
    margin-left: 0;
    border: 1px solid var(--main-color);
}

/* Kartenmenü: Projekttext und vorhandene Funktionen in der vertrauten Seitenleiste. */
#home .map-menu-section {
    margin: 22px 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    overflow-wrap: anywhere;
}
#home .map-menu-section h2 {
    margin-bottom: 10px;
}
#home .map-menu-section .lorem {
    margin: 0 0 12px;
    font: inherit;
    color: inherit;
}
#home .map-menu-intro > :last-child,
#home .map-menu-intro-preview > :last-child,
#home .map-menu-intro-full > :last-child {
    margin-bottom: 0;
}
#home .map-menu-intro-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
}
/* Ein per Tastatur erreichter Link darf nicht hinter der Textkürzung liegen. */
#home .map-menu-intro-preview:focus-within {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
#home .map-menu-project:has(.map-menu-intro-more[open]) .map-menu-intro-preview {
    display: none;
}
#home .map-menu-intro-more > summary {
    width: fit-content;
    margin-top: 10px;
    color: var(--main-color);
    font-weight: 600;
    cursor: pointer;
    text-underline-offset: 3px;
}
#home .map-menu-intro-more > summary:hover {
    text-decoration: underline;
}
#home .map-menu-intro-more[open] > summary {
    margin-top: 0;
    margin-bottom: 10px;
}
#home .map-menu-collapse,
#home .map-menu-intro-more[open] .map-menu-expand {
    display: none;
}
#home .map-menu-intro-more[open] .map-menu-collapse {
    display: inline;
}
#home .map-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
#home .map-menu-list > li {
    margin: 0;
    padding: 0;
}
#home .map-menu-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: inherit;
    text-decoration: none;
}
#home .map-menu-link > i {
    flex: 0 0 18px;
    margin-top: 4px;
    text-align: center;
    font-size: 1em;
}
#home .map-menu-link > span {
    min-width: 0;
}
#home .map-menu-label,
#home .map-menu-description {
    display: block;
}
#home .map-menu-label {
    font-weight: 600;
}
#home .map-menu-description {
    margin-top: 2px;
    font-size: inherit;
    line-height: inherit;
    color: var(--secondary-color);
}
#home .map-menu-link:hover .map-menu-label {
    text-decoration: underline;
    text-underline-offset: 3px;
}
#home .map-menu-link:focus-visible,
#home .map-menu-intro-more > summary:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 3px;
    border-radius: 2px;
}
#home .map-menu-section .map-menu-note {
    margin: 10px 0 0;
    font-size: inherit;
}

h4 {
    font-family: Calibri;
    font-size: 13pt;
    color: #494949;
}
h4:after {
    content: ' ';
    display: block;
    margin-top: 3px;
    margin-left: 0;
    border: 0.5px solid var(--main-color);
    opacity: 0.8;
}

hr {
    opacity: 1;
    margin-bottom: -0.6em;
    visibility: inherit;
    border: 0;
    clear: both;
    display: block;
    width: 96%;
    background-color: rgba(0, 0, 0, 0);
    height: 1px;
}

hr#horizontal-line {
    border-bottom: 1px solid;
    border-color: var(--main-color);
    height: 2px;
    margin-bottom: 9px;
    margin-top: 11px;
    margin-left: 0;
    width: 88%;
}

/* Richtet das Symbol im vorhandenen Suchfeld aus. */
.fa-search {
    font-size: 12px;
    padding-top: 3px;
}

/* Kennzeichnet das Laden der Kartendaten. */
.fa-spinner {
    color: var(--main-color);
}

/* Kennzeichnet vorläufige Karten, ohne die Kartenbedienung zu überdecken. */
.webgis-preview-notice {
    position: fixed;
    bottom: 2em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2001;
    max-width: calc(100% - 2em);
    padding: 6px 12px;
    border-radius: 4px;
    background: #fff3cd;
    color: #563b00;
    font-size: 14px;
    text-align: center;
    pointer-events: none;
}
/* Gestaltet die Auswahl der Layer und Layergruppen. */
.layer-switcher {
    top: 2.2em;
    left: 0.5em;
    width: 100%;
}
.layer-switcher li {
    display: grid;
}
.layer-switcher li label {
    margin-top: -5px;
    padding-right: 0.7em;
}
.layer-switcher .legend-resolution-hint {
    grid-column: 2;
    grid-row: 1;
    margin-top: -5px;
    margin-bottom: 0.5em;
    padding-right: 0.7em;
    color: #282828;
    font-size: 1em;
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
}
.layer-switcher li.layer.legend-has-resolution-hint {
    grid-template-columns: 2.7em minmax(0, 1fr);
}
.layer-switcher li.layer.legend-has-resolution-hint > label {
    grid-column: 2;
    grid-row: 2;
    padding-left: 0;
}
.layer-switcher li.layer.legend-has-resolution-hint > input {
    position: static;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-left: 1.2em;
}
.layer-switcher .group button {
    background-color: rgba(0, 0, 0, 0);
}

/* Gestaltet die Schaltflächen zur Auswahl der Hintergrundkarte. */
.bgmap {
    display: block;
    position: relative;
    padding: 0;
    overflow: hidden;
    color: inherit;
    font: inherit;
    border-radius: 5px;
    border: 1px solid black;
    cursor: pointer;
    height: 100px;
    width: 97%;
    max-width: 500px;
    min-width: 185px;
    background-size: cover;
}
.bw {
    background-image: url('https://rv-k.de/WebGIS/Hintergrundkarte/osm_bw.png');
}
.osm {
    background-image: url('https://rv-k.de/WebGIS/Hintergrundkarte/osm.png');
}
.sat {
    background-image: url('https://rv-k.de/WebGIS/Hintergrundkarte/sat.png');
}
.topo {
    background-image: url('https://rv-k.de/WebGIS/Hintergrundkarte/topo.png');
}
.cycle {
    background-image: url('https://rv-k.de/WebGIS/Hintergrundkarte/cycle.png');
}
.bgmap:hover {
    border: 1px solid rgba(200, 200, 200, 1);
    color: white;
}
.bgmap.selected {
    border: 1px solid rgba(200, 200, 200, 1);
    color: white;
}
.bgmap-name {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 35%;
    background-color: rgba(230, 230, 230, 0.9);
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    text-align: center;
    padding-top: 4px;
    font-family: Calibri;
    letter-spacing: 1px;
    font-size: 13pt;
}

/* Sichtbarer Tastaturfokus und einheitliche native Schließbuttons. */
.bgmap:focus-visible,
#sidebar .sidebar-tabs a:focus-visible {
    outline: 3px solid var(--main-color);
    outline-offset: -3px;
}
button.sidebar-close {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
button.sidebar-close:focus-visible {
    outline: 2px solid white;
    outline-offset: -4px;
    background: rgba(0, 0, 0, 0.2);
}
#map .ol-geocoder .gcd-gl-input.keyboard-focus:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 1px;
}
#map .ol-geocoder .gcd-gl-btn:focus-visible {
    /* Das Suchplugin unterdrückt die Button-Outline mit !important. */
    outline: 2px solid var(--main-color) !important;
    outline-offset: -2px;
}

/* Legt die Größe und Ausrichtung der Legendensymbole fest. */
#legend_img,
.legend-custom-svg {
    height: 1.1em;
    width: auto;
}
.legend-custom-list {
    display: block;
    margin: 4px 0 0 4px;
    font-weight: normal;
}
.legend-custom-item {
    display: block;
    margin: 3px 0;
    line-height: 1.45;
}
.legend-custom-svg {
    max-width: 2.2em;
    object-fit: contain;
    vertical-align: middle;
}

/* WMS-Grafiken enthalten oft mehrere Symbolzeilen statt eines einzelnen Icons. */
.layer-switcher li.layer > label:has(.legend-wms-list) {
    min-width: 0;
}
.layer-switcher .legend-wms-list {
    display: block;
    min-width: 0;
    margin-top: 8px;
    font-weight: normal;
    line-height: 1.4;
}
.layer-switcher .legend-wms-entry {
    display: block;
    min-width: 0;
    margin: 0 0 12px;
}
.layer-switcher .legend-wms-heading {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.layer-switcher img.legend-wms-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: left top;
    background: #fff;
}
.layer-switcher .legend-wms-error,
.layer-switcher .legend-wms-note {
    display: block;
    color: #555;
    font-size: 0.85em;
    overflow-wrap: anywhere;
}
.layer-switcher .legend-wms-error {
    padding: 6px 8px;
    border-left: 3px solid #a86613;
    background: #fff7e7;
    color: #67400a;
}
.layer-switcher .legend-wms-image[hidden],
.layer-switcher .legend-wms-error[hidden] {
    display: none;
}

/* Hebt die Symbole der Seitenleiste beim Überfahren hervor. */
.hvr-grow {
    color: var(--secondary-color);
    display: inline-block;
    vertical-align: middle;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: color 0.04s cubic-bezier(0.04, 0, 0.2, 1);
}

.hvr-grow:hover,
.hvr-grow:focus,
.hvr-grow:active {
    color: var(--main-color);
}

/* Formatiert die Detailinhalte eines ausgewählten Kartenobjekts. */
.popupContent {
    margin-top: 1em;
    margin-left: 0.1em;
    width: 100%;
    line-height: 150%;
}
h3 {
    font-family: Calibri;
    font-size: 13pt;
    color: rgb(50, 50, 50);
    font-weight: bold;
    display: inline;
}
/*hr {
        visibility: hidden; 
        margin-bottom: -.6em; }*/
#typ {
    color: var(--main-color);
    font-weight: bold;
    font-size: 12pt;
}

/* Gestaltet die Vorschaubilder für Fotos und PDF-Dokumente. */
#thumbnail {
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 174px;
}
#thumbnail:hover {
    box-shadow: 0 0 0 2px var(--main-color);
}
#pdf-thumbnail {
    border: 1px solid #ddd;
    padding: 3px;
    width: 115px;
}
#pdf-thumbnail:hover {
    box-shadow: 0 0 0 2px var(--main-color);
}

.date {
    bottom: 0;
    right: 0;
}

/* Positioniert und gestaltet das Begrüßungsfenster. */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 5000000000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#popup {
    height: auto;
    max-height: 100%;
    width: auto;
    max-width: 45%;
    position: absolute;
    display: flex;
    flex-direction: column;
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
    transition:
        opacity 0.4s ease,
        filter 0.4s ease,
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Der Dialog erhält den Startfokus; sichtbar markiert werden seine bedienbaren Links und Buttons. */
#popup:focus {
    outline: none;
}

/* Popup wird unscharf und verschwindet */
#popup.closing {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.96);
    pointer-events: none;
}

#popup-inline {
    margin: 0.15vw;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1.5vw;
    position: relative;
    text-align: justify;
    hyphens: auto;
    background: rgba(255, 255, 255, 1);
    border-radius: 6px;
    box-shadow: 10px 10px 25px rgba(70, 70, 70, 0.4);
}

/* Automatische Ränder zentrieren kurzen Inhalt; bei Platzmangel bleibt er von oben scrollbar.
   flow-root bezieht auch den rechts ausgerichteten Weiter-Button in die Inhaltshöhe ein. */
.welcome-content {
    display: flow-root;
    flex: 0 0 auto;
    margin-block: auto;
}

@media (max-width: 768px) {
    #popup {
        max-width: 100%;
        height: 100%;
    }

    #popup-inline {
        max-width: 100%;
        padding: 7vw;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    #popup {
        max-width: 67%;
        height: 100%;
        left: 0;
    }

    #popup-inline {
        max-width: 100%;
        padding: 7vw;
    }
}

@keyframes dissolve {
    0% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        filter: blur(3px);
        transform: scale(0.95);
    }
    100% {
        opacity: 0;
        filter: blur(8px);
        transform: scale(0.88);
    }
}

button.close {
    padding: 10px 12px 10px 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    -webkit-font-smoothing: antialiased;
}

#popup.closing button.close {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.9) translateZ(0);
    pointer-events: none;
}

.close {
    float: right;
    font-size: 1em;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 0.7;
    opacity: 1;
    text-shadow: none;
    transition: color 0.04s cubic-bezier(0.04, 0, 0.2, 1);
}

.close:hover {
    color: #ffffff;
    border: 1px solid var(--main-color);
    background: var(--main-color);
    text-decoration: none;
    text-shadow: none;
}

.close:not(:disabled):not(.disabled):hover {
    opacity: 1;
}

.close:focus {
    color: #ffffff;
    opacity: 1;
    background: var(--main-color);
    border: 1px solid var(--main-color);
    text-decoration: none;
    text-shadow: none;
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

.close:not(:disabled):not(.disabled):focus {
    opacity: 1;
}

.close:active {
    transform: scale(0.98) translateY(0) translateZ(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.1s ease,
        box-shadow 0.1s ease;
}

/* Kennzeichnet Links, die zu einer externen Seite führen. */
a[target='_blank']:after {
    content: ' \f08e';
    font: normal 900 0.75em/1 'Font Awesome 6 Free';
}
a[href$='.png']:after,
a[href$='.pdf']:after {
    content: '';
}

/* Trennt die Montage von den Planungsangaben; Pfosten bleiben kompakte Textgruppen. */
.montage-progress { margin-top: 24px; }
.montage-progress::before { content: ''; display: block; width: 66.666%; margin-bottom: 16px; border-top: 2px solid var(--main-color); }
.montage-progress > h3 { display: block; margin: 0 0 16px; }
.montage-post { margin: 0; }
.montage-post + .montage-post { margin-top: 18px; padding-top: 18px; border-top: 1px solid #d5dbe2; }
.montage-post-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.montage-post h4 { margin: 0; font: inherit; font-weight: 700; color: inherit; overflow-wrap: anywhere; }
.montage-post h4::after { content: none; }
.montage-post dl { margin: 8px 0 0; }
.montage-post dl > div + div { margin-top: 4px; }
.montage-post dt { display: inline; font-weight: 600; color: #4d5660; }
.montage-post dd { display: inline; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Färbt die Kennzeichnungen für Handlungsfelder und Umsetzungsstände ein. */
.hlf.montage-status { display: inline-block; white-space: normal; }
.hlf.montage-status-completed { background-color: #298e68; color: #fff; }
.hlf.montage-status-pending { background-color: #dee1e6; color: #25323d; }
.hlf.montage-status-partial { background-color: #f2a23b; color: #25323d; }
.hlf.montage-status-rework { background-color: #c1363c; color: #fff; }
.hlf.montage-status-missing { background-color: #f4f5f7; color: #25323d; }
.fww-post-link { font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.fww-post-link:hover, .fww-post-link[aria-current="true"] { color: var(--main-color); text-decoration: underline; text-underline-offset: 3px; }
.montage-post.is-selected { background: color-mix(in srgb, var(--main-color) 6%, transparent); }
.fww-node-posts { margin: 10px 0 18px; }
.fww-node-posts > h3 { display: block; margin-bottom: 8px; }
.fww-post-list { list-style: disc; padding: 0 0 0 1.5em; margin: 0; }
.fww-post-list .fww-post-link { font-weight: 400; }
.fww-post-list .montage-post + .montage-post { margin-top: 4px; padding-top: 0; border-top: 0; }
.fww-post-status-legend { display: block; margin: 8px 0 0; font: inherit; }
.fww-post-key-heading { display: block; margin: 0 0 3px; padding-left: 4px; font: inherit; }
.fww-post-key-symbol { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: middle; }
.fww-post-key-row { display: block; font: inherit; }
.hlf {
    color: white;
    font-weight: 700;
    padding: 0 4px 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
}
#rad {
    background-color: rgb(218, 109, 108);
}
#fuss {
    background-color: rgb(222, 167, 63);
}
#ovm {
    background-color: rgb(159, 74, 139);
}
#leben {
    background-color: rgb(46, 162, 118);
}
#kfz {
    background-color: rgb(74, 153, 201);
}

#umgesetzt {
    background-color: #298e68;
}
#alternativ {
    background-color: #298e68;
}
#planung {
    background-color: #1a5baf;
}
#idee {
    background-color: #ffd900;
    color: #333;
}
#nicht-umgesetzt {
    background-color: #ff0000;
}
#zurueckgestellt {
    background-color: #a1a1a1;
}

/* Helligkeitspuls für Sidebar bei Klick auf Features */

@keyframes sidebarColorFlash {
    0% {
        background-color: rgba(255, 255, 255, 0.8);
    }
    50% {
        background-color: rgba(255, 255, 255, 0.95);
    }
    100% {
        background-color: rgba(255, 255, 255, 0.8);
    }
}

/* Klasse die die Animation auslöst */
.sidebar-pulse {
    animation: sidebarColorFlash 0.5s ease-in-out;
}

/* Skeleton Loader Animation für Planungsstand */
#lastModified {
    display: inline-block;
    min-width: 257px;
}

.skeleton-icon {
    opacity: 0.3;
    margin-right: 8px;
}

.skeleton-bar {
    display: inline-block;
    width: 238px;
    height: 15px;
    vertical-align: middle;
    background: linear-gradient(
        90deg,
        rgba(200, 200, 200, 0.2) 0%,
        rgba(200, 200, 200, 0.4) 50%,
        rgba(200, 200, 200, 0.2) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 3px;
}

/* Skeleton Animation */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.fww-node-list {
    list-style: none;
    padding: 0;
}
#keine-maengel {
    background: #298e68;
}
#hat-maengel {
    background: #703841;
}
#kein-zustand {
    background: #596579;
}
.fww-node-list li {
    margin: 0.5rem 0;
}
.fww-node-list button {
    padding: 0.6rem 0.8rem;
    width: 100%;
    text-align: left;
    font: inherit;
    color: var(--main-color);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
}
.fww-node-list button:hover,
.fww-node-list button:focus-visible {
    background: #eef3f9;
    outline: 2px solid var(--main-color);
}
