/* AMÖ Corporate Identity CSS */

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaThin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaThinItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaLightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaRegular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaRegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaBook.otf') format('opentype');
  font-weight: 450;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaBookItalic.otf') format('opentype');
  font-weight: 450;
  font-style: italic;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaBoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaXBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaXBoldItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaHeavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaHeavyItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaBlack.otf') format('opentype');
  font-weight: 950;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa';
  src: url('/static_files/fonts/NexaBlackItalic.otf') format('opentype');
  font-weight: 950;
  font-style: italic;
}

:root {
    --amoe-border-color: #E0BB74;
    --amoe-primary-color: #E0BB74;
    --amoe-primary-rgb: rgb(224,187,116);
    --amoe-secondary-color: #9D0377;
    --bs-primary: var(--amoe-primary-color);
    --bs-primary-rgb: rgba(var(--amoe-primary-rgb), 0.3);
    --bs-secondary: var(--amoe-secondary-color);
    --button-hover: #9D0377;
    --bs-info-text-emphasis: #9D0377;
    --bs-info-bg-subtle: #E0BB74;
    --bs-info-border-subtle: #E0BB74;
    --bs-card-border-radius: 6px;
    --bs-card-border: 0px transparent solid;
    --bs-card-spacer-x: 2em;
    --bs-card-spacer-y: 2em;
}


/* Allgemeine Stile */
body {
    font-family: "Nexa", sans-serif;
    font-weight: 450;
    font-size: 16px;
    font-weight: 400;
    background-color: var(--background-color);
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:has(.sticky-transparent-navbar) .page-content {
    padding-top: 0!important;
    padding-bottom: 0 !important;
}

@-webkit-keyframes slidein {
    from {background-position: center; background-size:150vw; }
    to {background-position: -12.5vw 0vw;background-size:125vw;}
}
@keyframes slidein {
    from {background-position: center;background-size:150vw; }
    to {background-position: -12.5vw 0vw;background-size:125vw;}
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Nexa", sans-serif;
    font-weight: 950;
    font-style: italic;
}

h1 {
    font-size: 1.35em;
}
h2 {
    font-size: 1.225em;
}
h3 {
    font-size: 1.1em;
}

/* p mit .small */
.small, small {
    font-size: 1em;
}

a {
    color: var(--text-color);
}
a:hover {
    color: var(--amoe-secondary-color);
}


/* Header */
header {
    padding: 15px;
    text-align: center;
}


/* Buttons */
button, .btn {
    background-color: var(--bs-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover, .btn:hover {
    background-color: var(--amoe-secondary-color);
}


/* Formulare */
input, textarea, select {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid var(--amoe-border-color);
    border-radius: 5px;
}


/* Fortschrittsbalken */
.progress-bar {
    background-color: var(--amoe-secondary-color);
}


/* Doppellinie Verweis Bewertungrelevant */
.double-line-box {
    position: relative;
    padding-left: 17px;
    margin: 0px;
    margin-left: -17px;
    border-radius: 8px;
}

.double-line-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--amoe-secondary-color);
    margin-top: -1px;
    margin-bottom: 3px;
}

.double-line-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--amoe-secondary-color);
    margin-top: -1px;
    margin-bottom: 3px;
}


/* Button Papierkorb */
.btn-outline-primary {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: var(--amoe-secondary-color) !important;
    --bs-btn-border-color: var(--amoe-secondary-color) !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--amoe-secondary-color);
    --bs-btn-hover-border-color: var(--amoe-secondary-color);
    --bs-btn-focus-shadow-rgb: inset 0 0px 0px rgba(0, 0, 0, 0);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--amoe-secondary-color);
    --bs-btn-active-border-color: var(--amoe-secondary-color);
    --bs-btn-active-shadow: inset 0 0px 0px rgba(0, 0, 0, 0);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--amoe-secondary-color);
    --bs-btn-disabled-border-color: var(--amoe-secondary-color);
    --bs-gradient: none;
}


/* Button Ja/Nein */
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.form-check-input {
    border-color: var(--bs-primary);
}


/* Rahmen bei Ja/Nein Feldern */
.form-select {
    border: var(--bs-border-width) solid var(--amoe-border-color);
}


/* Rahmen bei Datei Upload */
.form-control {
    border: var(--bs-border-width) solid var(--amoe-border-color);
}

/* Suchfeld in Navbar: Lupe im Input */
.navbar-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.navbar-search-icon {
    position: absolute;
    left: 8px;
    color: #6c757d;
    pointer-events: none;
    font-size: .875rem;
}
.navbar-search-wrapper .form-control {
    padding-left: 28px;
    border-radius: 50rem;
}


/* Button */
.btn {
    color: var(--text-color);
    background-color: #fff;
    border-color: var(--text-color);
    border-style: solid;
    border-width: 2px;
    padding: 12px 20px 8px 20px;
}
.btn:hover {
    --bs-btn-color: var(--text-color);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--text-color);
    border-style: solid;
    border-width: 2px;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--amoe-secondary-color);
    --bs-btn-hover-border-color: var(--amoe-secondary-color);
    --bs-btn-focus-shadow-rgb: inset 0 0px 0px rgba(0, 0, 0, 0);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--amoe-secondary-color);
    --bs-btn-active-border-color: var(--amoe-secondary-color);
    --bs-btn-active-shadow: inset 0 0px 0px rgba(0, 0, 0, 0);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--amoe-secondary-color);
    --bs-btn-disabled-border-color: var(--amoe-secondary-color);
}
.btn-primary {
    --bs-btn-color: var(--text-color);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--text-color);
    border-style: solid;
    border-width: 2px;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--amoe-secondary-color);
    --bs-btn-hover-border-color: var(--amoe-secondary-color);
    --bs-btn-focus-shadow-rgb: inset 0 0px 0px rgba(0, 0, 0, 0);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--amoe-secondary-color);
    --bs-btn-active-border-color: var(--amoe-secondary-color);
    --bs-btn-active-shadow: inset 0 0px 0px rgba(0, 0, 0, 0);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--amoe-secondary-color);
    --bs-btn-disabled-border-color: var(--amoe-secondary-color);
}
.btn-secondary {
    --bs-btn-color: var(--text-color);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--text-color);
    border-style: solid;
    border-width: 2px;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--amoe-secondary-color);
    --bs-btn-hover-border-color: var(--amoe-secondary-color);
    --bs-btn-focus-shadow-rgb: inset 0 0px 0px rgba(0, 0, 0, 0);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--amoe-secondary-color);
    --bs-btn-active-border-color: var(--amoe-secondary-color);
    --bs-btn-active-shadow: inset 0 0px 0px rgba(0, 0, 0, 0);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--amoe-secondary-color);
    --bs-btn-disabled-border-color: var(--amoe-secondary-color);
}


/* Navigation */
.navbar {
    background-color: rgba(255,255,255,1);
    position: sticky;
    top: 0px;
    z-index: 1020;
    /* AMOE-339: iPadOS/iOS Safari rendert den Inhalt unter seine transluzente
       Toolbar; env(safe-area-inset-top) ist dabei 0. --amoe-ios-toolbar-offset
       (= visualViewport.offsetTop, per JS in base.html) liefert die Überlappung.
       Als padding-top schiebt es den Navbar-Inhalt (Logo) darunter hervor – wirkt
       im Normalfluss UND im sticky-Zustand. Desktop/Android: offset 0 = unverändert. */
    padding-top: calc(var(--bs-navbar-padding-y, 0.5rem) + var(--amoe-ios-toolbar-offset, 0px));
}
.nav-link:focus, .nav-link:hover, .nav-link:active {
    color: var(--amoe-secondary-color) !important;
    background-color: transparent;
    box-shadow: 0 0 0 0rem rgba(255,255,255,0);
}
.dropdown-item:focus, .dropdown-item:hover {
    color: var(--amoe-secondary-color);
    background-color: transparent;
    box-shadow: 0 0 0 0rem rgba(255,255,255,0);
}
.dropdown-item:active {
    color: var(--amoe-secondary-color) !important;
    background-color: transparent;
    box-shadow: 0 0 0 0rem rgba(255,255,255,0);
}
.dropdown-menu.show {
    margin-bottom: 20px;
    max-height: 70vh;
    overflow-y: auto;
}
/* Menüblock Mobil */
@media (max-width:992px) {
    .navbar-collapse {
        position: fixed;
        display: block;
        top: 0px;
        right: 0px;
        bottom: 0px;
        left: 0px;
        background-color: rgba(255,255,255,0.97);
        width: 100vw;
        height: 100vh;
        margin: 0 auto;
        padding: 28vh 5vh ;
        font-size: 1.2em;
        text-align: center;
        vertical-align: middle;
        z-index: -1;
    }
}
@media (max-width:992px) {
    .dropdown-menu {
        font-size: 0.98em;
        text-align: center;
    }
}
/* Hamburger Menü Icon */
.navbar-toggler:active, .navbar-toggler:focus, .navbar-toggler:hover {
    background-color: rgba(0,0,0,0.05) !important;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.05);
}


/* Fragebogen Kategorien links */
.list-group-item {
    z-index: 1;
}
.list-group-item.active {
    border-color: var(--amoe-secondary-color);
    background-color: var(--amoe-secondary-color);
    z-index: 1;
}
.list-group-item-action:focus, .list-group-item-action:hover {
    color: var(--amoe-secondary-color);
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 1;
}


/* Tabellenfelder Ausrichtung */
.table {
    vertical-align: middle;
}

/* Mitgliederverzeichnis: Zebra-Striping (helles Grau) + AMOE-Hover (AMOE-336)
   Die Tabellenfarben kommen von Bootstrap (CDN) und werden über dessen
   CSS-Variablen gesetzt. Korrektes Override = eben diese Variablen überschreiben,
   nicht per !important die Spezifität erhöhen. */
.member-table {
    --bs-table-striped-bg: #fafafa;                   /* alternierende Zeilen, sehr helles Grau */
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(224, 187, 116, 0.15);   /* #E0BB74 mit 15 % Deckkraft */
    --bs-table-hover-color: #9D0377;
    /* Safari/WebKit wendet position:sticky auf <th> NICHT an, wenn die Tabelle
       border-collapse:collapse hat (gesetzt durch Bootstrap-Reboot + globales
       inline CMS-CSS). separate + spacing:0 macht den Sticky-Header dort möglich,
       ohne Zellabstände. Siehe AMOE-337. */
    border-collapse: separate;
    border-spacing: 0;
}

/* Link in der ersten Spalte trägt .text-dark (mit !important) und muss beim
   Zeilen-Hover ebenfalls die AMOE-Farbe annehmen. */
.member-table > tbody > tr:hover a.text-dark {
    color: #9D0377 !important;
}

/* Mitgliederverzeichnis: Sticky Tabellenkopf beim Scrollen (AMOE-337)
   Bootstrap .table-responsive setzt overflow-x:auto, wodurch overflow-y zu auto
   berechnet wird und der Wrapper zum Scroll-Container wird – das würde sticky
   gegen den Wrapper statt gegen den Viewport „einfangen". overflow-x:clip ist
   KEIN Scroll-Container, lässt overflow-y:visible bestehen und der Header haftet
   korrekt beim Seiten-Scroll. Funktioniert so auf Desktop, Tablet und Smartphone. */
.member-table-responsive {
    overflow-x: clip;
}

.member-table > thead > tr > th {
    position: sticky;
    /* Die Navbar (.navbar) ist selbst sticky. Der Tabellenkopf muss bündig
       darunter haften – Offset = Navbar-Höhe (per JS gemessen, --amoe-navbar-height,
       Fallback Bootstrap-Standardhöhe) plus Abstand (--amoe-sticky-gap), damit der
       Kopf nicht direkt an der Navbar klebt. Zusätzlich --amoe-ios-toolbar-offset
       (AMOE-339), da die Navbar auf iOS um die transluzente Safari-Toolbar nach
       unten versetzt haftet – sonst rutschte der Tabellenkopf unter die Navbar. */
    top: calc(var(--amoe-ios-toolbar-offset, 0px) + var(--amoe-navbar-height, 90px) + var(--amoe-sticky-gap, 1.5rem));
    z-index: 2;  /* unter der Navbar (z-index:3), damit der Kopf darunter tuckt */
    /* table-light liefert bereits einen deckenden Hintergrund; explizit gesetzt,
       damit beim Scrollen keine Zeilen durchscheinen (kein visueller Bruch). */
    background-color: var(--bs-table-bg, #f8f9fa);
}

/* Mitgliederverzeichnis: Responsive auf Smartphones (AMOE-338)
   Auf schmalen Viewports war die Tabelle breiter als der Bildschirm – mit
   overflow-x:clip (AMOE-337, nötig für den Sticky-Header) wurde der Überhang
   abgeschnitten statt scrollbar, also waren Spalten unerreichbar bzw. die Seite
   ließ sich horizontal wischen. table-layout:fixed + feste Spaltenanteile zwingen
   die vier Spalten in die Viewport-Breite; overflow-wrap bricht lange Firmen-/
   Ortsnamen um, statt die Tabelle zu verbreitern. Kein horizontales Scrollen,
   alle Daten bleiben lesbar. */
@media (max-width: 767.98px) {
    .member-table {
        table-layout: fixed;
        width: 100%;
        font-size: 0.9rem;
    }
    .member-table th,
    .member-table td {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    /* Spalte 4 trägt nur noch das Siegel (AMOE-505): feste, schmale Breite,
       der Rest geht an Mitglied/PLZ/Ort. */
    .member-table th:nth-child(1), .member-table td:nth-child(1) { width: 47%; }  /* Mitglied */
    .member-table th:nth-child(2), .member-table td:nth-child(2) { width: 18%; }  /* PLZ */
    .member-table th:nth-child(3), .member-table td:nth-child(3) { width: 35%; }  /* Ort */
    .member-table th:nth-child(4), .member-table td:nth-child(4) { width: 2.5rem; padding-inline: 0.25rem; }  /* Siegel */
}

/* Mitgliederverzeichnis: Siegel „geprüfter amoe:spediteur" als Spaltenkopf und
   Status je Zeile (AMOE-505). Quelle ist 40×40 px, dargestellt mit 24 px. */
.member-table .member-table-seal {
    text-align: center;
}
.member-table .member-seal {
    width: 24px;
    height: 24px;
}


/* Contentbereich */
main {
    flex: 1;
}
/* Contentbereich Zwei-Faktor-Auth */
.col-md-5 {
    margin-top: 0px !important;
    padding: 1.5rem !important;
    background-color: rgba(255,255,255,0.97);
    border-radius: 6px;
    border: 0px transparent solid;
}
/* Contentbereich Formularebene / .col-lg-3, .col-md-4 > linke Spalte .col-lg-9, .col-md-8 > rechte Spalte */
.mt-4 {
    margin-top: 0px !important;
    padding: 2.5rem 2rem !important;
    background-color: rgba(255,255,255,0.97);
    border-radius: 6px;
    border: 0px transparent solid;
}
div.elevate-submission-form-group {
    padding-bottom: 35px;
}
.col-lg-9 {
    padding-left: 20px;
}
@media (min-width:992px) {
    .col-lg-3 {
        width: 30% !important;
    }
}
@media (min-width:992px) {
    .col-lg-9 {
        width: 70% !important;
    }
}
@media (min-width:768px) {
    #elevate-form-section-menu.col-md-4 {
        width: 38%;
    }
}
@media (min-width:768px) {
    #elevate-form-section-menu + .col-md-8 {
        width: 62%;
    }
}
/* Contentbereich .card (z.B. Startseite oder Profil */
.card {
    border-radius: 6px;
    border: 0px solid transparent;
    --bs-card-spacer-y: 2rem !important;
    --bs-card-spacer-x: 2rem !important;
    --bs-card-cap-padding-y: 1rem;
    --bs-card-cap-padding-x: 1.1rem;
    --bs-card-title-spacer-y: 0.5rem;
    --bs-card-title-spacer-x: 0.5rem;
}
.card-img, .card-img-bottom, .card-img-top {
    max-height: 235px;
    object-fit: cover;
    object-position: top;
}
@media (max-width:992px) {
    .card-img, .card-img-bottom, .card-img-top {
        max-height: 280px;
        object-fit: cover;
        object-position: top;
    }
}


/* Footer */
footer {
    background-color: rgba(255,255,255,1);
    text-align: center;
    padding: 50px;
    width: 100%;
    flex-shrink: 0;
}
.bg-light {
    background-color: rgba(255,255,255,1) !important;
}

.djhj-button {
    color: var(--amoe-secondary-color);
}

/* Edit page link */
.edit-page-link {
    text-decoration: none;
    font-size: 0.6em;
    vertical-align: middle;
}
.edit-page-link:hover {
    color: var(--amoe-secondary-color) !important;
}

/* WordPress Block Columns Compatibility */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}
.wp-block-columns.are-vertically-aligned-center {
    align-items: center;
}
.wp-block-column {
    flex: 1 1 0;
    min-width: 0;
}
.wp-block-column[style*="flex-basis"] {
    flex-grow: 0;
}
@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }
    .wp-block-column {
        flex-basis: 100% !important;
    }
}
.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.wp-block-button.is-style-outline .wp-block-button__link {
    border: 1px solid currentColor;
    background: transparent;
    padding: 4px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
}
.wp-block-group.is-layout-flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wp-block-group.is-nowrap {
    flex-wrap: nowrap;
}

/* WordPress Block Cover Compatibility */
.wp-block-cover {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wp-block-cover__image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.wp-block-cover__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.has-background-dim-0 {
    opacity: 0;
}
.has-background-dim {
    opacity: 0.5;
}
.has-background-dim-0.has-background-dim {
    opacity: 0;
}
.wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #fff;
}

/* Search highlight */
mark {
    background-color: #FFFF00;
    padding: 0 2px;
}


/* ============================================
   Topnav, Stage & Signatur (ehem. css-amoe.css)
   ============================================ */

/* begin #topnav */
#topnav {
	background-repeat: repeat;
	background-color: rgba(228,196,125,1);
	width: 100%;
	border-width: 0;
	border-style: none;
	margin: 0 auto;
	padding: 3px 0 3px 0;
	top: 0;
	display: block;
	position: sticky;
	z-index: 2000;
}
#topnav p {
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 300;
	font-size: 16px;
	color: rgba(0,0,0,1);
	line-height: 1.45em;
	text-decoration: none;
	text-align: center;
	letter-spacing: 0;
}
/* end #topnav */

img.sign-img {
	width: 175px;
}
@media only screen and (max-width: 480px) {
	img.sign-img {
	width: 150px; }
}

#stage:not(:target) .stage-inhalt,
#stage:not(:target) .hide,
#stage:target .show {display: block;}
#stage:target .stage-inhalt {display: block;}
.stage-inhalt {
box-shadow: inset 0 0 10px rgba(0,0,0,0.15);
}

#stage {
	max-width: calc(100vw - 0px);
	min-height: calc(100vh - 235px);
	height: calc(100vh - 235px);
    padding: 0;
    margin: 0 20px 240px 20px;
    position: relative;
    display: block;
	overflow: hidden;
    background: pink;
}
#stage-cover-top {
	width: 75vw;
	min-height: 20px;
    left: 20px;
    right: 20px;
	background: #fff;
	clip-path: polygon(
		0 0,
		98.7% 0,
		100% 0%,
		98.7% 100%,
		0 100%);
	z-index: 501;
	position: absolute;
}
@media only screen and (max-width: 1250px) {
	#stage-cover-top {
		width: 70vw;
		clip-path: polygon(
			0 0,
			98.3% 0,
			100% 0%,
			98.3% 100%,
			0 100%); }
}
@media only screen and (max-width: 885px) {
	#stage-cover-top {
		width: 69vw;
		clip-path: polygon(
			0 0,
			98.3% 0,
			100% 0%,
			98.3% 100%,
			0 100%); }
}
@media only screen and (max-width: 668px) {
	#stage-cover-top {
		width: 70vw;
		clip-path: polygon(
			0 0,
			98% 0,
			100% 0%,
			98% 100%,
			0 100%); }
}
@media only screen and (max-width: 400px) {
	#stage-cover-top {
		width: 78vw;
		clip-path: polygon(
			0 0,
			97.8% 0,
			100% 0%,
			97.8% 100%,
			0 100%); }
}
#stage-cover-bottom {
	width: 38vw;
	min-height: 125px;
	top: calc(100vh - 160px);
    left: 20px;
    right: 20px;
	clip-path: polygon(
		0 0,
		98% 0,
		100% 0%,
		98% 100%,
		0 100%);
	z-index: 501;
	position: absolute;
}
@media only screen and (max-width: 1250px) {
	#stage-cover-bottom {
		width: 45vw;
		clip-path: polygon(
			0 0,
			97.8% 0,
			100% 0%,
			97.8% 100%,
			0 100%); }
}
@media only screen and (max-width: 885px) {
	#stage-cover-bottom {
	width: 50vw; }
}
@media only screen and (max-width: 668px) {
	#stage-cover-bottom {
	width: 60vw; }
}
@media only screen and (max-width: 400px) {
	#stage-cover-bottom {
	width: 70vw; }
}

#stage-cover-bottom::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(228,196,125,1);
	clip-path: polygon(
		0 0,
		90% 0,
		100% 0%,
		90% 100%,
		0 100%);
	z-index: 501;
}
#stage-cover-bottom::after {
	content: "";
	position: absolute;
	margin-left: -5px;
	margin-top: -5px;
	min-height: 125px;
	inset: 5px;
	background: #fff;
	clip-path: polygon(
		0 0,
		90% 0,
		100% 0%,
		90% 100%,
		0 100%);
	z-index: 501;
}
#stage-cover-content {
	width: 35vw;
	top: calc(100vh - 125px);
    left: 20px;
	text-align: left;
	z-index: 502;
	position: absolute;
}
@media only screen and (max-width: 1250px) {
	#stage-cover-content {
	width: 41vw; }
}
@media only screen and (max-width: 885px) {
	#stage-cover-content {
	width: 45vw; }
}
@media only screen and (max-width: 668px) {
	#stage-cover-content {
	width: 54vw; }
}
@media only screen and (max-width: 400px) {
	#stage-cover-content {
	width: 61vw; }
}


/* Wagtail RichText Image Formats */
.richtext-image {
    height: auto;
    max-width: 100%;
}
.richtext-image.full-width {
    display: block;
    width: 100%;
    margin: 1rem 0;
}
.richtext-image.left {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}
.richtext-image.center {
    display: block;
    margin: 1rem auto;
}
.richtext-image.right {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}
.richtext-image.small {
    max-width: 25%;
}
.richtext-image.medium {
    max-width: 50%;
}
.richtext-image.large {
    max-width: 75%;
}
@media (max-width: 768px) {
    .richtext-image.left,
    .richtext-image.right {
        float: none;
        display: block;
        margin: 1rem auto;
    }
    .richtext-image.small,
    .richtext-image.medium,
    .richtext-image.large {
        max-width: 100%;
    }
}

/* ── RichText: Kleinschrift ──────────────────────────────────── */
.text-small {
    font-size: 0.7em;
}

/* ── Beitragsliste: 6 Spalten ab 1800px ─────────────────────── */
@media (min-width: 1800px) {
    .article-grid > * {
        flex: 0 0 auto;
        width: 16.6666666667%;
    }
}

/* ── Scroll-Utility ──────────────────────────────────────────── */
.scroll-hide-logo {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.scroll-hide-logo.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Stage background video (AMOE-294) */
#stage-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.stage-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}
#stage .stage-inhalt {
    position: relative;
    z-index: 2;
}
