/*!
 * ==========================================================
 * WFB WebManager
 * Verwaltungs- und Redaktionssystem der Wählergemeinschaft Freier Bürger Sittensen
 *
 * Version: 1.4.4
 * Datei: style.css
 * Stand: 2026-08-04
 *
 * © 2026 Th. Kannenberg
 * Entwickelt mit Unterstützung von OpenAI ChatGPT
 * ==========================================================
 */

/* =========================================================
   WFB Sittensen
   Hero-Bild: 1693 × 929 Pixel
========================================================= */

:root {
    --fokusfarbe: #ffffff;

    --hintergrund-oben: #4f78ad;
    --hintergrund-mitte: #eca936;
    --hintergrund-unten: #d99227;

    /*
       Position des Inhaltsfensters innerhalb des Hero-Bildes.

       links:
       Abstand von der linken Bildkante.
       Der Wert hält das Fenster rechts neben den Wegweisern.

       rechts:
       Abstand von der rechten Bildkante.
       So bleibt der Hintergrund am rechten Rand sichtbar.

       oben:
       Abstand von der oberen Bildkante.

       unten:
       Abstand von der unteren Bildkante.
       Das Fenster endet oberhalb des Schriftzuges
       „ZUHÖREN – ANPACKEN – GESTALTEN“.
    */

    --fenster-links: 27%;
    --fenster-rechts: 9%;
    --fenster-oben: 4%;
    --fenster-unten: 17%;
}

/* =========================================================
   Grundeinstellungen
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-width: 320px;
    min-height: 100%;
}

body {
    width: 100%;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;

    margin: 0;
    overflow: hidden;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #17334d;

    background:
        linear-gradient(
            180deg,
            var(--hintergrund-oben) 0%,
            var(--hintergrund-mitte) 52%,
            var(--hintergrund-unten) 100%
        );
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   Bildschirmbereich
========================================================= */

.website {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: grid;
    place-items: center;

    padding:
        env(safe-area-inset-top)
        env(safe-area-inset-right)
        env(safe-area-inset-bottom)
        env(safe-area-inset-left);
}

/* =========================================================
   Hero-Container
========================================================= */

.hero {
    position: relative;

    width: min(
        100vw,
        calc(100dvh * 1693 / 929)
    );

    height: min(
        100dvh,
        calc(100vw * 929 / 1693)
    );

    max-width: 100%;
    max-height: 100dvh;

    overflow: hidden;
    isolation: isolate;

    background: #eaa331;

    box-shadow:
        0 10px 35px rgb(0 0 0 / 28%);
}

/* =========================================================
   Hero-Bild
========================================================= */

.hero__bild {
    position: absolute;
    inset: 0;

    z-index: 1;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    pointer-events: none;
    user-select: none;

    -webkit-user-drag: none;
}

/* =========================================================
   Inhaltsfenster
========================================================= */

.inhalt-fenster {
    position: absolute;

    left: var(--fenster-links);
    right: var(--fenster-rechts);
    top: var(--fenster-oben);
    bottom: var(--fenster-unten);

    z-index: 5;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    border:
        clamp(2px, 0.25vw, 5px)
        solid
        rgb(255 255 255 / 88%);

    border-radius:
        clamp(10px, 1.2vw, 24px);

    background:
        linear-gradient(
            145deg,
            rgb(255 255 255 / 95%),
            rgb(255 249 224 / 92%)
        );

    box-shadow:
        0 15px 40px rgb(0 0 0 / 34%),
        inset 0 0 24px rgb(255 255 255 / 45%);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 1;
    visibility: visible;

    transform: translateY(0) scale(1);

    transition:
        opacity 220ms ease,
        visibility 220ms ease,
        transform 220ms ease;
}

/* Zustand bei geschlossenem Fenster */

.inhalt-fenster.is-versteckt {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(-12px)
        scale(0.985);
}

/* =========================================================
   Kopfzeile des Fensters
========================================================= */

.inhalt-fenster__kopf {
    flex: 0 0 auto;

    min-height:
        clamp(38px, 4vw, 64px);

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

    gap: 12px;

    padding:
        clamp(7px, 0.8vw, 14px)
        clamp(12px, 1.4vw, 24px);

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgb(12 68 116 / 96%),
            rgb(26 108 156 / 94%)
        );

    border-bottom:
        1px solid
        rgb(255 255 255 / 50%);
}

.inhalt-fenster__titel {
    margin: 0;

    overflow: hidden;

    font-size:
        clamp(13px, 1.5vw, 25px);

    font-weight: 800;

    line-height: 1.15;

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

/* =========================================================
   Schließen-Schaltfläche
========================================================= */

.fenster-schliessen {
    flex: 0 0 auto;

    width:
        clamp(27px, 2.7vw, 44px);

    height:
        clamp(27px, 2.7vw, 44px);

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

    margin: 0;
    padding: 0;

    color: #ffffff;
    background: rgb(255 255 255 / 14%);

    border:
        1px solid
        rgb(255 255 255 / 70%);

    border-radius: 50%;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(21px, 2.2vw, 35px);

    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.fenster-schliessen:hover {
    background: rgb(255 255 255 / 28%);

    box-shadow:
        0 4px 12px rgb(0 0 0 / 22%);
}

.fenster-schliessen:active {
    transform: scale(0.92);
}

.fenster-schliessen:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* =========================================================
   Startinhalt
========================================================= */

.start-inhalt {
    flex: 1 1 auto;

    min-width: 0;
    min-height: 0;

    overflow-x: hidden;
    overflow-y: auto;

    padding:
        clamp(16px, 2.2vw, 42px);

    scrollbar-width: thin;
    scrollbar-color:
        rgb(17 86 132 / 65%)
        transparent;
}

.start-inhalt h1 {
    margin:
        0
        0
        clamp(7px, 0.8vw, 14px);

    color: #0b5184;

    font-size:
        clamp(20px, 3vw, 50px);

    line-height: 1.05;
}

.start-inhalt h2 {
    margin:
        0
        0
        clamp(12px, 1.5vw, 25px);

    color: #c57311;

    font-size:
        clamp(15px, 1.7vw, 29px);

    line-height: 1.2;
}

.start-inhalt p {
    margin:
        0
        0
        clamp(10px, 1.1vw, 18px);

    font-size:
        clamp(12px, 1.2vw, 20px);

    line-height: 1.55;
}

/* Starttext wird ausgeblendet, sobald ein iframe aktiv ist. */

.start-inhalt.is-versteckt {
    display: none;
}

/* =========================================================
   Iframe für die Unterseiten
========================================================= */

.seiten-frame {
    flex: 1 1 auto;

    display: none;

    width: 100%;
    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;

    background: #ffffff;

    border: 0;
}

/* Sichtbarer Zustand */

.seiten-frame.is-aktiv {
    display: block;
}

/* =========================================================
   SVG-Navigation
========================================================= */

.wegweiser-hotspots {
    position: absolute;
    inset: 0;

    z-index: 10;

    display: block;

    width: 100%;
    height: 100%;

    overflow: visible;

    pointer-events: none;
}

.schild-link {
    outline: none;
}

.schild-link polygon {
    fill: transparent;
    stroke: transparent;
    stroke-width: 0;

    pointer-events: all;
    cursor: pointer;

    transition:
        fill 160ms ease,
        stroke 160ms ease,
        filter 160ms ease;
}

.schild-link:hover polygon,
.schild-link:focus-visible polygon,
.schild-link:active polygon,
.schild-link.is-aktiv polygon {

    fill: transparent;
    stroke: transparent;
    stroke-width: 0;

    filter: none;
}

/* =========================================================
   Musikschalter
========================================================= */

.musik-button {
    position: absolute;

    top: 2.1%;
    right: 2%;

    z-index: 20;

    width: 10.5%;
    min-width: 74px;
    max-width: 180px;

    aspect-ratio: 2.8 / 1;

    margin: 0;
    padding: 0;

    appearance: none;
    -webkit-appearance: none;

    color: transparent;
    background: transparent;

    border: 0;
    border-radius: 12px;

    cursor: pointer;

    transition:
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.musik-button:hover {
    background: rgb(255 255 255 / 10%);

    box-shadow:
        0 0 0 2px rgb(255 255 255 / 45%),
        0 5px 14px rgb(0 0 0 / 20%);
}

.musik-button:active {
    transform: scale(0.97);
}

.musik-button:focus-visible {
    outline: 4px solid var(--fokusfarbe);
    outline-offset: 3px;

    background: rgb(255 255 255 / 12%);
}

.musik-button[aria-pressed="true"] {
    background: rgb(255 255 255 / 10%);

    box-shadow:
        0 0 0 3px rgb(255 255 255 / 70%),
        0 5px 15px rgb(0 0 0 / 24%);
}

/* =========================================================
   Barrierefrei versteckter Text
========================================================= */

.visuell-versteckt {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}

/* =========================================================
   Tablet und kleinere Bildschirme
========================================================= */

@media (max-width: 1000px) {
    :root {
        --fenster-links: 27%;
        --fenster-rechts: 7%;
        --fenster-oben: 4%;
        --fenster-unten: 17%;
    }
}

/* =========================================================
   Hochformat

   Im Hochformat ist das Motiv naturgemäß sehr flach.
   Das Fenster bleibt innerhalb des Bildes, kann aber kleiner
   erscheinen. Der Inhalt erhält eine Scrollleiste.
========================================================= */

@media (orientation: portrait) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .website {
        min-height: 100vh;
        min-height: 100dvh;

        align-items: center;
    }

    .hero {
        width: 100vw;

        height:
            calc(100vw * 929 / 1693);

        max-width: 100%;
        max-height: none;
    }

    :root {
        --fenster-links: 27%;
        --fenster-rechts: 5%;
        --fenster-oben: 3%;
        --fenster-unten: 15%;
    }
}

/* =========================================================
   Kleine Smartphones

   Auf sehr kleinen Geräten wird das Inhaltsfenster als
   größeres, gut lesbares Fenster über dem Motiv dargestellt.
========================================================= */

@media (max-width: 600px) and (orientation: portrait) {
    body {
        overflow-y: auto;
    }

    .website {
        display: block;

        min-height: 100dvh;

        padding: 0;
    }

    .hero {
        width: 100%;
        height: 100dvh;

        max-height: none;

        background:
            linear-gradient(
                180deg,
                var(--hintergrund-oben),
                var(--hintergrund-unten)
            );
    }

    .hero__bild {
        height: auto;
        max-height: 100%;

        object-fit: contain;
        object-position: top center;
    }

    .inhalt-fenster {
        left: 5%;
        right: 5%;
        top: 12%;
        bottom: 8%;

        z-index: 30;
    }

    .wegweiser-hotspots {
        height:
            calc(100vw * 929 / 1693);
    }

    .musik-button {
        top: 1.0%;
        right: 1.0%;

        min-width: 25%;

        border-radius: 7px;
    }

}

/* =========================================================
   Querformat mit geringer Höhe
========================================================= */

@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        width:
            calc(100dvh * 1693 / 929);

        height: 100dvh;
    }

    :root {
        --fenster-oben: 3%;
        --fenster-unten: 15%;
    }

    .inhalt-fenster__kopf {
        min-height: 34px;
    }
}

/* =========================================================
   Reduzierte Bewegung
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   Druckansicht
========================================================= */

@media print {
    body {
        overflow: visible;
        background: #ffffff;
    }

    .website {
        min-height: auto;
        padding: 0;
    }

    .hero {
        width: 100%;
        height: auto;

        aspect-ratio: 1693 / 929;

        box-shadow: none;
    }

    .wegweiser-hotspots,
    .musik-button,
    audio,
    .fenster-schliessen {
        display: none;
    }

    .inhalt-fenster {
        position: static;

        width: 100%;
        height: auto;

        border: 0;
        box-shadow: none;
    }
}

/* =========================================================
   Wegweiser: vollständig unsichtbare Klickflächen

   Es erscheinen weder beim Überfahren noch nach dem Anklicken
   Rahmen, Flächen, Schatten oder Browser-Fokusringe.
========================================================= */

.schild-link,
.schild-link:link,
.schild-link:visited,
.schild-link:hover,
.schild-link:active,
.schild-link:focus,
.schild-link:focus-visible,
.schild-link.is-aktiv {
    outline: none !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.schild-link polygon,
.schild-link:link polygon,
.schild-link:visited polygon,
.schild-link:hover polygon,
.schild-link:active polygon,
.schild-link:focus polygon,
.schild-link:focus-visible polygon,
.schild-link.is-aktiv polygon {
    fill: transparent !important;
    stroke: transparent !important;
    stroke-width: 0 !important;
    filter: none !important;
    outline: none !important;
}


/* =========================================================
   Startseite – verzögerte Begrüßung und Zusatzbereiche
========================================================= */

.inhalt-fenster {
    transition:
        opacity 420ms ease,
        visibility 420ms ease,
        transform 420ms ease;
}

.inhalt-fenster.is-versteckt {
    transform:
        translateY(-15px)
        scale(0.985);
}

.start-zusatzbereiche {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 20px);

    margin-top:
        clamp(16px, 2vw, 32px);
    padding-top:
        clamp(14px, 1.8vw, 28px);

    border-top:
        1px solid
        rgb(11 81 132 / 20%);
}

.start-karte {
    display: grid;
    grid-template-columns:
        auto minmax(0, 1fr);
    gap:
        clamp(9px, 1vw, 16px);

    min-width: 0;

    padding:
        clamp(12px, 1.4vw, 22px);

    border:
        1px solid
        rgb(11 81 132 / 22%);

    border-radius:
        clamp(10px, 1vw, 17px);

    background:
        linear-gradient(
            145deg,
            rgb(255 255 255 / 88%),
            rgb(239 247 252 / 82%)
        );

    box-shadow:
        0 5px 14px
        rgb(0 0 0 / 8%);
}

.start-karte__symbol {
    width:
        clamp(30px, 3vw, 48px);

    height:
        clamp(30px, 3vw, 48px);

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

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #0b5184,
            #147aa3
        );

    border-radius: 50%;

    font-size:
        clamp(17px, 1.6vw, 26px);

    font-weight: 900;
}

.start-karte h3 {
    margin:
        0
        0
        clamp(5px, 0.5vw, 9px);

    color: #0b5184;

    font-size:
        clamp(14px, 1.35vw, 22px);
}

.start-karte p {
    margin:
        0
        0
        clamp(8px, 0.8vw, 13px);

    font-size:
        clamp(11px, 1vw, 16px);

    line-height: 1.45;
}

.start-karte__link {
    display: inline-flex;
    align-items: center;

    min-height: 36px;

    padding:
        clamp(7px, 0.6vw, 10px)
        clamp(11px, 1vw, 16px);

    color: #08315d;
    background: #ffd21a;

    border-radius: 9px;

    font-size:
        clamp(11px, 1vw, 16px);

    font-weight: 800;
    text-decoration: none;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.start-karte__link:hover {
    background: #ffdd4d;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px
        rgb(0 0 0 / 15%);
}

.start-karte__link:focus-visible {
    outline: 3px solid #0b5184;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .start-zusatzbereiche {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) and (orientation: portrait) {
    .start-zusatzbereiche {
        grid-template-columns: 1fr;
    }

    .start-karte {
        padding: 12px;
    }
}


/* =========================================================
   Startseite – Hintergrund-Overlay für Inhaltsfenster
========================================================= */

.fenster-overlay {
    position: absolute;
    inset: 0;

    z-index: 4;

    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    appearance: none;
    -webkit-appearance: none;

    border: 0;
    border-radius: 0;

    background:
        rgb(5 28 48 / 34%);

    cursor: default;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 360ms ease,
        visibility 360ms ease;
}

.fenster-overlay.is-versteckt {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}

.fenster-overlay:focus {
    outline: none;
}

.inhalt-fenster {
    z-index: 5;
}

/*
   Die Wegweiser bleiben oberhalb des Overlays anklickbar.
   Dadurch kann jederzeit direkt zu einer anderen Seite
   gewechselt werden.
*/

.wegweiser-hotspots {
    z-index: 10;
}

.musik-button {
    z-index: 20;
}

@media (max-width: 600px) and (orientation: portrait) {
    .fenster-overlay {
        position: fixed;
        inset: 0;

        width: 100vw;
        height: 100dvh;
    }
}


/* =========================================================
   KI-Bildhinweis
========================================================= */

.ki-hinweis-button {
    position: absolute;
    right: 1.4%;
    bottom: 1.8%;

    z-index: 25;

    min-width: 42px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    margin: 0;
    padding: 0 7px;

    color: #ffffff;
    background: rgb(11 81 132 / 72%);

    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 999px;

    font:
        700 11px/1
        Arial,
        Helvetica,
        sans-serif;

    cursor: pointer;

    box-shadow:
        0 3px 8px rgb(0 0 0 / 18%);

    transition:
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.ki-hinweis-button:hover {
    background: rgb(11 81 132 / 100%);

    box-shadow:
        0 5px 12px rgb(0 0 0 / 28%);

    transform: translateY(-1px);
}

.ki-hinweis-button:active {
    transform: scale(0.96);
}

.ki-hinweis-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.ki-hinweis-overlay {
    position: absolute;
    inset: 0;

    z-index: 40;

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

    padding: 24px;

    background:
        rgb(5 28 48 / 56%);

    opacity: 1;
    visibility: visible;

    transition:
        opacity 220ms ease,
        visibility 220ms ease;
}

.ki-hinweis-overlay.is-versteckt {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}

.ki-hinweis-dialog {
    width: min(520px, 92%);

    overflow: hidden;

    border:
        2px solid
        rgb(255 255 255 / 88%);

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 18px 48px rgb(0 0 0 / 38%);

    transform: translateY(0) scale(1);

    transition:
        transform 220ms ease;
}

.ki-hinweis-overlay.is-versteckt .ki-hinweis-dialog {
    transform:
        translateY(-10px)
        scale(0.985);
}

.ki-hinweis-dialog__kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 14px 18px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0b5184,
            #147aa3
        );
}

.ki-hinweis-dialog__kopf h2 {
    margin: 0;

    font-size: 1.15rem;
}

.ki-hinweis-dialog__schliessen {
    width: 34px;
    height: 34px;

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

    margin: 0;
    padding: 0;

    color: #ffffff;
    background: rgb(255 255 255 / 14%);

    border:
        1px solid
        rgb(255 255 255 / 70%);

    border-radius: 50%;

    font-size: 26px;
    line-height: 1;

    cursor: pointer;
}

.ki-hinweis-dialog__schliessen:hover,
.ki-hinweis-dialog__schliessen:focus-visible {
    background: rgb(255 255 255 / 28%);
}

.ki-hinweis-dialog__inhalt {
    padding: 22px;
}

.ki-hinweis-dialog__inhalt p {
    margin: 0 0 18px;

    color: #17334d;

    font-size: 1rem;
    line-height: 1.65;
}

.ki-hinweis-dialog__button {
    min-height: 40px;

    padding: 9px 16px;

    color: #08315d;
    background: #ffd21a;

    border: 0;
    border-radius: 9px;

    font-weight: 800;

    cursor: pointer;
}

.ki-hinweis-dialog__button:hover {
    background: #ffdd4d;
}

@media (max-width: 600px) and (orientation: portrait) {
    .ki-hinweis-button {
        position: fixed;
        right: 10px;
        bottom: 10px;

        z-index: 50;
    }

    .ki-hinweis-overlay {
        position: fixed;
        inset: 0;

        z-index: 60;
    }
}


/* =========================================================
   Dynamische Wegweiser
========================================================= */

.wegweiser-hotspots--deaktiviert {
    display: none !important;
}

.dynamische-wegweiser {
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
}

.dynamischer-wegweiser {
    position: absolute;

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

    padding: 0 1.8%;

    color: #37230f;
    text-align: center;
    text-decoration: none;

    border: 2px solid rgb(71 39 14 / 72%);
    border-radius: 7px 13px 13px 7px;

    background:
        linear-gradient(
            180deg,
            #c88a4d 0%,
            #a96731 48%,
            #8d5227 100%
        );

    box-shadow:
        inset 0 2px 0 rgb(255 255 255 / 20%),
        inset 0 -3px 0 rgb(61 28 8 / 24%),
        0 5px 12px rgb(0 0 0 / 26%);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 900;
    line-height: 1.05;

    letter-spacing: -0.02em;

    text-shadow:
        0 1px 0 rgb(255 255 255 / 25%);

    pointer-events: auto;
    cursor: pointer;

    transform: rotate(0.8deg);

    transition:
        transform 160ms ease,
        filter 160ms ease,
        box-shadow 160ms ease;
}

.dynamischer-wegweiser::after {
    content: "";

    position: absolute;
    right: -10%;
    top: 0;

    width: 18%;
    height: 100%;

    background: inherit;

    clip-path:
        polygon(
            0 0,
            100% 50%,
            0 100%
        );

    filter: brightness(0.97);

    pointer-events: none;
}

.dynamischer-wegweiser:hover,
.dynamischer-wegweiser:focus-visible,
.dynamischer-wegweiser.is-aktiv {
    transform:
        translateX(3px)
        rotate(0.8deg);

    filter: brightness(1.08);

    box-shadow:
        inset 0 2px 0 rgb(255 255 255 / 24%),
        inset 0 -3px 0 rgb(61 28 8 / 20%),
        0 8px 16px rgb(0 0 0 / 31%);
}

.dynamischer-wegweiser:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.dynamischer-wegweiser.design-dunkel {
    color: #f9e8c9;
    border-color: #2d1609;

    background:
        linear-gradient(
            180deg,
            #724321,
            #4c2a14 55%,
            #32190c
        );

    text-shadow:
        0 1px 1px #000000;
}

.dynamischer-wegweiser.design-hell {
    color: #513315;
    border-color: #a46b31;

    background:
        linear-gradient(
            180deg,
            #f0c98f,
            #d7a968 55%,
            #bd8447
        );
}

.dynamischer-wegweiser.design-blau {
    color: #ffffff;
    border-color: #063d70;

    background:
        linear-gradient(
            135deg,
            #0b5184,
            #147aa3
        );

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    text-shadow:
        0 1px 1px rgb(0 0 0 / 30%);
}


/* =========================================================
   Wegweiser – transparente Darstellung
========================================================= */

/*
 * Diese Einstellung ist für das vorhandene hero.png vorgesehen.
 * Nur Beschriftung und Klickfläche bleiben aktiv. Hintergrund,
 * Rahmen, Pfeilfläche und Schatten sind vollständig transparent.
 */

.dynamischer-wegweiser.rahmen-unsichtbar {
    color: #22180f;

    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;

    text-shadow:
        0 1px 1px rgb(255 255 255 / 58%),
        0 0 3px rgb(255 255 255 / 34%);
}

.dynamischer-wegweiser.rahmen-unsichtbar::after {
    display: none !important;
}

.dynamischer-wegweiser.rahmen-unsichtbar:hover,
.dynamischer-wegweiser.rahmen-unsichtbar:focus-visible,
.dynamischer-wegweiser.rahmen-unsichtbar.is-aktiv {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;

    transform:
        translateX(2px)
        rotate(0.8deg);
}

.dynamischer-wegweiser.rahmen-unsichtbar:focus-visible {
    outline: 2px dashed rgb(255 255 255 / 75%);
    outline-offset: 2px;
}

/* Sichtbare Schildfläche bleibt als alternative Designoption erhalten. */

.dynamischer-wegweiser.rahmen-sichtbar {
    opacity: 1;
}


/* =========================================================
   Wegweiser – Beschriftung sichtbar oder unsichtbar
========================================================= */

.dynamischer-wegweiser.schrift-unsichtbar {
    color: transparent !important;
    text-shadow: none !important;
}

.dynamischer-wegweiser.schrift-unsichtbar:hover,
.dynamischer-wegweiser.schrift-unsichtbar:focus-visible,
.dynamischer-wegweiser.schrift-unsichtbar.is-aktiv {
    color: transparent !important;
    text-shadow: none !important;
}

.dynamischer-wegweiser.schrift-sichtbar {
    visibility: visible;
}


/* =========================================================
   Startseite – sichtbare Funktionsleiste unten rechts
========================================================= */

.seiten-funktionsleiste {
    position: absolute;
    right: 1.35%;
    bottom: 1.55%;

    z-index: 55;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;

    pointer-events: none;
}

.funktionsleisten-eintrag {
    display: contents;
}

.funktionsleisten-eintrag[hidden] {
    display: none !important;
}

.funktionsleisten-button {
    position: static !important;

    width: auto !important;
    min-width: 48px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    margin: 0;
    padding: 0 8px;

    color: #ffffff;
    background: rgb(11 81 132 / 84%);

    border:
        1px solid
        rgb(255 255 255 / 78%);

    border-radius: 999px;

    font:
        700 11px/1
        Arial,
        Helvetica,
        sans-serif;

    opacity: 1 !important;
    visibility: visible !important;

    cursor: pointer;
    pointer-events: auto;

    box-shadow:
        0 3px 9px
        rgb(0 0 0 / 22%);

    transition:
        background-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.funktionsleisten-button:hover,
.funktionsleisten-button:focus-visible {
    background: #0b5184;

    transform: translateY(-1px);

    box-shadow:
        0 5px 13px
        rgb(0 0 0 / 30%);
}

.funktionsleisten-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.funktionsleisten-symbol {
    min-width: 12px;

    text-align: center;

    font-size: 12px;
    line-height: 1;
}

/*
 * Alte Einzelpositionen werden aufgehoben.
 * Beide Knöpfe werden ausschließlich von der
 * gemeinsamen Funktionsleiste positioniert.
 */

.ki-hinweis-button,
.musik-button {
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
}

@media (max-width: 600px) and (orientation: portrait) {
    .seiten-funktionsleiste {
        position: fixed;
        right: 10px;
        bottom: 10px;

        z-index: 70;
    }

    .funktionsleisten-button {
        min-width: 45px;
        height: 25px;

        padding: 0 7px;
    }
}


/* =========================================================
   Funktionsleiste – vollständig dynamische Widgets
========================================================= */

.seiten-funktionsleiste {
    max-width: min(75%, 820px);
    flex-wrap: wrap;
    row-gap: 6px;
}

.funktionsleisten-eintrag {
    display: block;
}

.funktionsleisten-eintrag[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .seiten-funktionsleiste {
        max-width: calc(100vw - 20px);
        justify-content: flex-end;
    }
}


/* =========================================================
   Version 1.4.4 – Startseite Responsive
========================================================= */

@media (max-width: 700px) {
    .hero {
        min-height: 100dvh;
        overflow: hidden;
    }

    .hero__bild {
        width: 114%;
        max-width: none;
        height: auto;
        margin-left: -7%;
        transform-origin: top center;
    }

    .dynamischer-wegweiser {
        min-height: 50px;
        padding: max(10px, 1.5vh) max(14px, 3vw);
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgb(255 210 26 / 28%);

        width:
            calc(
                var(--wegweiser-breite, 20%) *
                1.12
            );

        height:
            max(
                var(--wegweiser-hoehe, 7%),
                50px
            );
    }

    .dynamischer-wegweiser:active {
        transform:
            translateX(2px)
            scale(1.025)
            rotate(0.8deg);

        filter: brightness(1.1);
    }

    .dynamischer-wegweiser.rahmen-unsichtbar:active {
        background: rgb(255 210 26 / 8%) !important;
        border-radius: 10px;
    }

    .seiten-funktionsleiste {
        right: 8px;
        bottom: 8px;
        max-width: calc(100vw - 16px);
        gap: 6px;
    }

    .funktionsleisten-button {
        min-height: 34px;
        min-width: 56px;
        padding: 0 10px;
        font-size: 12px;
    }

    .inhalt-fenster {
        width: min(94vw, 620px);
        max-height: 88dvh;
    }

    .inhalt-fenster__kopf {
        padding: 10px 12px;
    }

    .inhalt-fenster__inhalt {
        padding: 14px;
    }

    .ki-hinweis-overlay {
        padding: 12px;
    }

    .ki-hinweis-dialog {
        width: min(94vw, 520px);
        max-height: 88dvh;
        overflow-y: auto;
    }

    .ki-hinweis-dialog__kopf {
        padding: 11px 14px;
    }

    .ki-hinweis-dialog__inhalt {
        padding: 16px;
    }
}

@media (max-width: 420px) {
    .hero__bild {
        width: 120%;
        margin-left: -10%;
    }

    .dynamischer-wegweiser {
        min-height: 52px;
    }

    .funktionsleisten-button {
        min-width: 54px;
        min-height: 34px;
    }

    .inhalt-fenster__inhalt,
    .ki-hinweis-dialog__inhalt {
        padding: 12px;
    }
}


/* =========================================================
   Version 1.4.4 – Layout Manager
========================================================= */

.dynamischer-wegweiser.element-typ-hotspot {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.dynamischer-wegweiser.element-typ-hotspot::after {
    display: none !important;
}

.dynamischer-wegweiser.element-typ-bild {
    background-image: var(--navigation-bild) !important;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.dynamischer-wegweiser.element-typ-bild::after {
    display: none !important;
}

.layout-debug .dynamischer-wegweiser {
    color: #ffffff !important;
    background: rgb(204 31 31 / 46%) !important;
    border: 2px solid #d71920 !important;
    box-shadow:
        inset 0 0 0 2px
        rgb(255 255 255 / 70%) !important;
    text-shadow: 0 1px 2px #000000 !important;
    opacity: 1 !important;
}

.layout-debug .dynamischer-wegweiser::after {
    display: none !important;
}

.layout-debug .dynamischer-wegweiser::before {
    content: attr(data-titel) " · " attr(data-profil);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    font: 700 10px/1.15 Arial, sans-serif;
    text-align: center;
}

@media (max-width: 700px) {
    .dynamischer-wegweiser {
        min-height: 0;
        padding: 0;
    }
}


/* =========================================================
   Version 1.4.4 – Layout-Editor-Vorschau
========================================================= */

.layout-editor-modus .seiten-funktionsleiste {
    display: none !important;
}

.layout-editor-modus .dynamischer-wegweiser:not(.layout-editor-ziel) {
    opacity: .28 !important;
}

.layout-editor-modus .layout-editor-ziel {
    z-index: 999 !important;
    color: #fff !important;
    background: rgb(204 31 31 / 46%) !important;
    border: 2px solid #d71920 !important;
    box-shadow:
        inset 0 0 0 2px rgb(255 255 255 / 75%),
        0 5px 18px rgb(0 0 0 / 35%) !important;
    text-shadow: 0 1px 2px #000 !important;
    opacity: 1 !important;
    cursor: grab;
    touch-action: none;
}

.layout-editor-modus .layout-editor-ziel:active {
    cursor: grabbing;
}

.layout-editor-modus .layout-editor-ziel::after {
    display: none !important;
}

.layout-editor-modus .layout-editor-ziel::before {
    content: attr(data-editor-titel) " · " attr(data-editor-profil);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #fff;
    font: 700 11px/1.2 Arial, sans-serif;
    text-align: center;
}


/* =========================================================
   Version 1.4.4 – Urheberhinweis für Mediathekbilder
========================================================= */

.mediathek-bild {
    position: relative;
}

.mediathek-bild img {
    display: block;

    width: 100%;
    height: auto;
}

.mediathek-bild__urheber {
    position: absolute;
    right: 8px;
    bottom: 6px;

    padding: 2px 5px;

    color: rgb(255 255 255 / 76%);
    background: rgb(0 0 0 / 24%);

    border-radius: 4px;

    font:
        600 11px/1.2
        Arial,
        sans-serif;

    text-shadow:
        0 1px 2px
        rgb(0 0 0 / 72%);

    pointer-events: none;
}
