@font-face {
    font-family: 'Frutiger lightitalic';
    src: url('../fonts/FrutigerLTStd-LightItalic.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger ultrablack';
    src: url('../fonts/FrutigerLTStd-UltraBlack.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-UltraBlack.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger roman';
    src: url('../fonts/FrutigerLTStd-Roman.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-Roman.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger light';
    src: url('../fonts/FrutigerLTStd-Light.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger black';
    src: url('../fonts/FrutigerLTStd-Black.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger blackitalic';
    src: url('../fonts/FrutigerLTStd-BlackItalic.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger bold';
    src: url('../fonts/FrutigerLTStd-Bold.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger loghtcond';
    src: url('../fonts/FrutigerLTStd-LightCn.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-LightCn.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger blackcond';
    src: url('../fonts/FrutigerLTStd-BlackCn.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-BlackCn.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger italic';
    src: url('../fonts/FrutigerLTStd-Italic.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger bolditalic';
    src: url('../fonts/FrutigerLTStd-BoldItalic.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger cond';
    src: url('../fonts/FrutigerLTStd-Cn.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-Cn.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger boldcond';
    src: url('../fonts/FrutigerLTStd-BoldCn.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-BoldCn.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Frutiger extrablackcond';
    src: url('../fonts/FrutigerLTStd-ExtraBlackCn.woff2') format('woff2'),
    url('../fonts/FrutigerLTStd-ExtraBlackCn.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

html {
@charset "UTF-8_uniode_ci";
}
/* Definition der Farben */
:root {
    --color-kg: rgba(0, 134, 171, 1);   /* Genossenschaft */
    --color-kve: rgba(116, 57, 138, 1); /* Verwaltungseinheiten */
    --color-km: rgba(196, 23, 24, 1);   /* Mitglieder */
    --color-khi: rgba(222, 105, 9, 1);  /* Historie */
    --color-kall: rgba(223, 178, 8, 1);/* Alle Kategorien */
}

:root {
    --color-kg-soft:  color-mix(in srgb, var(--color-kg) 70%, transparent);
    --color-kve-soft: color-mix(in srgb, var(--color-kve) 70%, transparent);
    --color-km-soft:  color-mix(in srgb, var(--color-km) 70%, transparent);
    --color-khi-soft: color-mix(in srgb, var(--color-khi) 70%, transparent);
    --color-kall-soft: color-mix(in srgb, var(--color-kall) 70%, transparent);
}

.wrap-kg  .chronikheadline, .wrap-kg  .headline { color: var(--color-kg); }
.wrap-kve .chronikheadline, .wrap-kve .headline { color: var(--color-kve); }
.wrap-km  .chronikheadline, .wrap-km  .headline { color: var(--color-km); }
.wrap-khi .chronikheadline, .wrap-khi .headline { color: var(--color-khi); }

.chronikimgwrap.wrap-kg  { --wrap-bg: var(--color-kg); } /* KG  → Genossenschaft*/
.chronikimgwrap.wrap-kve { --wrap-bg: var(--color-kve); } /* KVE → Verwaltungseinheiten */
.chronikimgwrap.wrap-km  { --wrap-bg: var(--color-km); } /* KM  → Mitglieder */
.chronikimgwrap.wrap-khi { --wrap-bg: var(--color-khi); } /* KHI → Historie */

.chronikimgwrappopup.wrap-kg  { --wrap-bg: var(--color-kg); } /* KG  → Genossenschaft*/
.chronikimgwrappopup.wrap-kve { --wrap-bg: var(--color-kve); } /* KVE → Verwaltungseinheiten */
.chronikimgwrappopup.wrap-km  { --wrap-bg: var(--color-km); } /* KM  → Mitglieder */
.chronikimgwrappopup.wrap-khi { --wrap-bg: var(--color-khi); } /* KHI → Historie */

.ve-foto-wrapper.wrap-kg  { --wrap-bg: var(--color-kg); }
.ve-foto-wrapper.wrap-kve { --wrap-bg: var(--color-kve); }
.ve-foto-wrapper.wrap-km  { --wrap-bg: var(--color-km); }
.ve-foto-wrapper.wrap-khi { --wrap-bg: var(--color-khi); }



body {
    font-family: "Frutiger light", sans-serif;
    line-height: 1.5em;
}

a {
    color: black;
    text-decoration: none;
}

li {
}

.clearfix:after {
    display: block;
    clear: both;
    content: "Per CSS eingefügte Clear-Box für float";
    color: blue !Important;
    height: 0;
    visibility: hidden;
}

:target {
    scroll-margin-top: 55vh;
}

.backgroundWrapper {
    margin: 0 auto;
}

.underconstruction {
    height: 100vh;
    width: 100vw;
    background-color: rgba(255,255,255,.95);
    font-size: 1.5rem;
    color: rgba(0,0,0,.8);
    font-family: "Frutiger bold", sans-serif;
    text-align: center;
    margin: 0 auto;
}

.underconstruction img {
    width: 100%;
}
/*Ende Seite*/

/*hauptnavigation*/
.wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    background-color: rgba(232, 242, 252, 1);
}

#header,
#headerDB {
    position: fixed;
    width: 100%;
    max-width: 1280px;
    background-color: rgba(255,255,255,.95);
    transition: all 0.5s ease-in-out;
    z-index: 200;
    overflow: hidden;
}

#header.scrolled {
    margin-top: -28rem !important;
}

#header.scrolled ~ #stagechronik {
    top: 10rem;
    height: calc(100vh - 10rem); /* 100vh minus neue top minus footer (ca 4rem) */
}

#stagechronik {
    position: relative;
    z-index: 100;
    top: 37rem;
    height: calc(100vh - 37rem);
    overflow: scroll;
    padding: 0 0 2rem 0;
    transition: top 0.5s ease-in-out, height 0.5s ease-in-out;
    background-color: rgba(232, 242, 252, 1);
}

.footer {
    position: fixed;
    width: 100%;
    background-color: rgba(255,255,255,1);
    z-index: 200;
    bottom: 0;
    max-width: 1280px;
}


/* Überschriften */
h1, h2, h3 {
    font-family: "Frutiger bold", sans-serif;
}
h1 {
    position: relative;
    z-index: 100;
    float: left;
}

h2 {
    font-size: 200%;
    padding-bottom: 1rem;
    line-height: 100%;
}

h3 {
    font-size: 150%;
    padding-top: 1.5rem;
    padding-bottom: .5rem;
    text-decoration: none;
}

h4 {
    font-size: 120%;
    padding-top: 1rem;
    padding-bottom: .5rem;
    text-decoration: none;
}

h5 {
    font-size: 110%;
    padding-top: 1rem;
    padding-bottom: .5rem;
}

h6 {
    font-size: 100%;
}

.logo {
    position: relative;
    z-index: 15;
    width: 16rem;
    margin-top: 2rem;
    margin-left: 1rem;
}

.logoDB {
    width: 16rem;
    margin-top: 2rem;
    margin-left: 1rem;
}

.text-hidden {
    display: none;
}

.menu {
}

#main_nav {
    position: absolute;
    top: 7.45rem;
    right: 0;
    z-index: 120;
    width: 45rem;
    display: inline-block;
}

#main_nav ul li {
    position: relative;
    float: left;
    text-decoration: none;
    list-style: none;
}

#main_nav ul li a{
    font-size: 130%;
    text-align: center;
    padding: 0 1rem 0 1rem;
    display: inline-block;
    text-decoration: none;
    color: rgba(0,129,227,1);
}

.nav_mark:hover{
    color: rgba(0,174,174,1) !important;
}

.navActiv{
    background-color: rgba(230,0,126,1);
    color: rgba(255, 237, 0,1) !important;
}

#main_nav_bottom {
    z-index: 120;
    float: right;
    margin: .5rem 0 .5rem 0;
}

#main_nav_bottom ul li {
    position: relative;
    float: left;
    text-decoration: none;
    list-style: none;
}

#main_nav_bottom ul li a{
    text-align: center;
    display: inline-block;
    padding: 0 1rem 0 1rem;
    text-decoration: none;
    color: rgba(0,129,227,1);
}

.footertxt {
    font-size: .7rem;
    display: inline-block;
    padding-left: 1rem;
    margin-top: .3rem;
}

.link {
    color: rgba(0,129,227,1);
    font-size: 80%;
    padding-left: 1rem;
    text-decoration: none;
}

.link:hover {
    color: rgba(230,0,126,1);
    text-decoration: none;
}

.glyphicon {
    padding: .5rem .5rem .5rem .5rem;
    font-size: 1.5rem;
    border-radius: 2rem;
    border-style: solid;
    border-width: 1px;
}

.btn-lg {
    font-size: 1em;
}

.btnLogout {
    color: rgba(230,0,126,1);
}
/* Ende Login-Logout-Button*/

/* Header Chronik */
.logo {
    width: 20rem;
    margin-top: 3rem;
    margin-left: 3rem;
}

.header-slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.headerpic {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.headerpic.active {
    opacity: 1;
}

.h2header {
    font-family: "Frutiger bold", sans-serif;
    font-size: 1.8rem;
    background-color: rgba(74, 132, 168, .7);
    padding: 1rem 1rem 1rem 1rem;
    color: rgba(255, 255, 255, 1);
    border-radius: .5rem;
    text-align: center;
    width: 94%;
    margin: 20rem 2.5rem 0 2.5rem;
}

.katbutton {
    font-family: "Frutiger bold", sans-serif;
    color: rgba(255, 255, 255, .6);
    padding: .5rem 2rem .5rem 2rem;
    margin: .5rem 2rem .5rem 2rem;
    border-radius: .25rem;
    border: none;
    vertical-align: bottom;
}

.katbutton.aktiv {
    font-family: "Frutiger bold", sans-serif;
    color: rgba(255, 255, 255, 1);
    opacity: 1;
}

.allkatbutton {
    width: calc(100% - 6rem);
    font-size: 180%;
    padding: 1rem 0 1rem 0;
    line-height: 100%;
    font-family: "Frutiger bold", sans-serif;
    color: rgba(255, 255, 255, 1);
    padding: 1rem 2rem 1rem 2rem;
    margin: .5rem 2rem .5rem 2rem;
    border-radius: .25rem;
    border: none;
    vertical-align: bottom;
}

.headerform {
    position: relative;
    text-align: center;
    margin: 17rem 0 0 0;
    z-index: 10;
}

.katcol0 {
    background-color: rgba(0, 0, 0, 0);
    margin: 0 0 0 0;
    padding: 0 0 0 0;
}

.katcol-kg {
    background-color: var(--color-kg-soft);
}

.katcol-kve {
    background-color: var(--color-kve-soft);
}

.katcol-km {
    background-color: var(--color-km-soft);
}

.katcol-khi {
    background-color: var(--color-khi-soft);
}

.katcol-kall {
    background-color: var(--color-kall-soft);
}

.chronikhHeaderButtons {
    position: relative;
    z-index: 100;
    text-align: center;
    background-color: rgba(232, 242, 252, 1);
}

.chronikheaderspace {
    height: 1rem;
}
.chronikheaderspaceall {
    height: 3.5rem;
}

.yearNAV {
    font-size: 80%;
    font-family: "Frutiger bold", sans-serif;
    padding: .3rem 1rem .1rem 1rem;
    margin: 1rem .5rem .5rem .5rem;
    color: rgba(0, 0, 0, .8);
    background-color: rgba(0, 0, 0, .1);
    border-radius: 1rem;
    border: none;
}

/* Chronik */
#chronik {
    display: block;     /* wichtig, falls vorher flex/grid-inline */
}

.chronik-highlight {
    animation: chronikFlash .8s ease;
}

@keyframes chronikFlash {
    0% {
        background-color: rgba(0, 134, 171, .2);
        opacity: .2;
    }
    100% {
        background-color: transparent;
        opacity: 1;
    }
}

.chroniklist {
    position: relative;
    z-index: 1; /* Inhalt-Ebene */

    width: 100%;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 40% 8% 47%;
    grid-template-rows: auto auto;
    gap: 1rem;
    cursor: pointer;
}

/* MK immer sichtbar */
.chroniklist[data-mk="1"] {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

/* Nicht-MK initial geschlossen */
.chroniklist[data-mk="0"].is-hidden {
    height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Nicht-MK geöffnet */
.chroniklist[data-mk="0"] {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.chroniklist[data-mk="0"].open {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px; /* groß genug für jeden Inhalt */
}

.chroniklist.is-hidden {
    display: none;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
}

.toggleYear {
    margin-left: 10px;
    cursor: pointer;
}

.toggleYearGraphic {
    display: inline-flex;
    gap: 4px; /* Abstand zwischen Punkten */
    cursor: pointer;
    margin-left: 10px;
    align-items: center;

    /* Linie wie ein Button */
    border: 1px solid rgba(0,0,0,0.3); /* Farbe der Linie */
    border-radius: 20px;               /* runde Enden */
    padding: 2px 5px;                 /* Abstand innen */
    background-color: rgba(255,255,255,0.1); /* leicht transparentes Hintergrund */
    transition: background-color 0.2s ease;

    display: inline-flex;      /* nicht flex! */
    align-self: flex-start;    /* verhindert volle Höhe */
    height: auto;              /* wichtig */
    min-height: 24px;          /* gewünschte Mindesthöhe */
}

.toggleYearGraphic:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Punkte */
.katColorDot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Vertikallinie in der Chroniklist */
.chroniklist::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 45.3%;
    width: .15rem;
    transform: translateX(-50%);
    z-index: 0;

    /* Runde Punkte */
    background-image: linear-gradient(
            rgba(0, 134, 171, 1) .5px,
            transparent 2.5px
    );
    background-size: 100% .1rem;/* Abstand der Punkte */
    background-repeat: repeat-y;
}

/* Datum oben */
.chronikdate {
    position: relative;
    z-index: 2;
    display: inline-block;
    color: rgba(0,0,0,1);
    grid-column: 2;      /* 👈 mittlere Spalte */
    grid-row: 1;
    justify-self: center;
    align-self: self-start;
    background-color: rgba(232, 242, 252, 1);
    padding: .4rem 0 .2rem 0;
    font-weight: bold;
}

/* Bildcontainer im Grid  */
.chronikimgwrap {
    --wrap-bg: #f5f5f5;              /* Default-Fallback */
    display: block;
    width: 100%;
    max-width: 16rem;
    height: auto;
    justify-self: right;
    position: relative; /* wichtig für Pseudo-Elemente */
}

/* ======================
   Linien (Pseudo-Elemente)
====================== */

/* Rechte, vertikale Linie */
.chronikimgwrap::after {
    content: '';
    position: absolute;
    top: .6rem;
    bottom: -.6rem;
    left: -.6rem;
    width: .6rem;
    background-color: var(--wrap-bg);
    z-index: 2;
}

/* Untere, horizontale Linie */
.chronikimgwrap::before {
    content: '';
    position: absolute;
    left: 0;
    right: .6rem;
    bottom: -.6rem;
    height: .6rem;
    background-color: var(--wrap-bg);
    z-index: 2;
}

/* ======================
   Bild im Wrapper
====================== */
/* Bild im Grid */
.chronikimg {
    display: block;
    max-width: 16rem;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 3; /* über den Linien */
}

/* Headline */
.chronikheadline {
    grid-column: 3;

    display: flex;
    justify-content: flex-start;
    padding-top: .5rem;

    font-family: "Frutiger light", sans-serif;
    line-height: 2rem;
    font-size: 1.5rem;
}
/* Ende Chronik */

/* CMS */
.formelemente {
    height: 8rem;
}

.chroniklistDB {
    width: 100%;
}

.cmslist {
    float: left;
    display: inline-block;
    min-height: 2rem;
    width: 100%;
    margin: 1rem 0 1rem 0;
    padding: .25rem .5rem .25rem;
    text-align: left;
    color: rgba(0,0,0,1);
    background-color: rgba(230,0,126,0.1);
    border-radius: .25rem;
    border-width: 2px;
    border-color: rgba(230,0,126,1);
    vertical-align: bottom;
}

.chronikdateDB {
    font-weight: bold;
}

.cmsbutton {
    float: left;
    display: inline-block;
    min-height: 2rem;
    padding: .25rem .5rem .25rem;
    text-align: center;
    color: rgba(255,255,255,1);
    background-color: rgba(230,0,126,.75);
    border-radius: .25rem;
    border: none;
    vertical-align: bottom;
}

.cmb100 {
    width: 98%;
    margin: 1rem 1% 1rem 1%;
}

.cmb50 {
    width: 48%;
    margin: 1rem 1% 1rem 1%;
}

.cmb30 {
    width: 31.3%;
    margin: 1rem 1% 1rem 1%;
}

.cmb25 {
    width: 23%;
    margin: 1rem 1% 1rem 1%;
}

/* CMS Button */
.cmsbutton:hover {
    background-color: rgba(0,129,227,.75);
    text-decoration: none;
    color: rgba(255,255,255,1);
}

.btnEdit {
    position: relative;
    float: right;
    margin: .5rem 2rem 0 0;
    z-index: 1200;
}

.btnEdit:hover {
    background-color: rgba(0,129,227,.9);
}

.btnEdit:hover:after {
    font-family: "urw-din", sans-serif;
    font-size: 1rem;
    content: "BEARBEITEN";
}

/* Grundstil für alle Checkboxen */
.chkbox {
    width: 20px;        /* Breite */
    height: 20px;       /* Höhe */
    cursor: pointer;    /* Mauszeiger */
    accent-color: #0078ff; /* Moderne Browser: Farbe der Checkbox */
}

/* Optional: Hover-Effekt */
.chkbox:hover {
    filter: brightness(1.2);
}

/* Optional: Fokus-Ring (Keyboard-Navigation) */
.chkbox:focus {
    outline: 2px solid #0078ff;
    outline-offset: 2px;
}

/* ALLE K-Elemente in EINER Zeile */
.k-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: center;
    margin: 2rem 0 1rem 2rem;
    padding: 10px 0;
}

/* Einzelne Einträge in der K-Zeile */
.k-row .item {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0 1rem 0 0;
}

.k-row span {
    white-space: nowrap;
}

.item {
    display: flex;
    align-items: flex-start;
    margin: 0 2rem 1rem 2rem;
}

.item span {
    align-self: flex-start;
    width: 18%;
    display: inline-block;
}

.item textarea {
    width: 80%;
}

textarea {
    height: 2rem;
}

textarea.text {
    height: 12rem;
}
/* Ende Chronikedit */

/*BarriereMenü*/
#barriere {
    position: absolute;
    top: 2rem;
    right: 20rem;
    z-index: 130;
}

.button {
    float: left;
    display: inline-block;
    height: 2rem;
    margin: 0 .25rem;
    padding: .25rem .5rem .25rem;
    text-align: center;
    min-width: 2rem;
    color: rgba(255,255,255,1);
    background-color: rgba(51,51,51,.15);
    border-radius: .25rem;
    border: none;
}

.button:hover {
    background-color: rgba(51,51,51,.25);
    text-decoration: none;
    color: rgba(255,255,255,1);
}

#px16 {
    font-size: 100%;
}

#px24 {
    font-size: 120%;
}

#px32 {
    font-size: 150%;
}

.normal {
    font-size: 110%;
    line-height: 115%;
}

.mittel {
    font-size: 150%;
    line-height: 135%
}

.gross {
    font-size: 200%;
    line-height: 160%;
}

.active {
    color: rgba(0,0,0,.5);
}

#gerade {
    padding: 0 1rem;
}

#backtotop {
    z-index: 500;
    position: fixed;
    top: 10rem;
    right: 10rem;
    color: rgba(230,0,126,1);
    font-family: "urw-din", sans-serif;
}

.invisible {
    display: none;
}

.visible {
    display: block;
}
/*Ende BarriereMenü*/

/*Stages*/
#stage {
    position: relative;
    z-index: 100;
    overflow: scroll;
    padding-top: 12rem;
    padding-bottom: 2rem;
    height: 100vh !important;
}

.stagetitel {
    font-size: 66%;
}

.first {
    margin: 0 0 1rem 0;
}

.firstimg{
    width: 100%;
}

.firstp {
    padding: 1rem 0 0 0;
    float: unset;
}

.pw {
}

.spalte {
    display: flex;
    margin-top: .5rem;
}

.chronikDB {
    border-color: rgba(0,134,171, 1) !important;
    background-color: rgba(255,255,255,1);
    border: 2px solid;
    border-radius: .625rem;
    text-decoration: none;
    margin: 1rem 1rem 2rem 1rem;
}

.chronikdateDB {
    position: relative;
    display: inline-block;
    color: rgba(0,0,0,1);
    grid-column: 2;      /* 👈 mittlere Spalte */
    grid-row: 1;
    justify-self: center;
    align-self: self-start;
    padding: .5rem 0 .2rem 0;
    font-weight: bold;
}

.ve-row {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
    padding: 4px 0;
    gap: 10px; /* Abstand zwischen den Spalten */
}

/* Erste Spalte: schmaler */
.ve-info {
    flex: 0 0 120px;   /* feste Breite, anpassen wie du willst */
    text-align: left;
    overflow: hidden;  /* falls Text zu lang ist */
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Zweite Spalte: nimmt den restlichen Platz */
.ve-strasse {
    flex: 1;
    text-align: left; /* explizit linkbündig */
}

.titelChronik {
    display: inline-block;
    width: calc(100% - 10rem);
    vertical-align: top;
}

.marg {
    margin-left: 2rem;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.creditimg {
    font-size: 70%;
    font-weight: 100;
    color: rgba(0,0,0,1) !important;
    margin: -1.5rem 0 0 1rem;
}

.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 102.333333%;
    margin: 1rem 1rem 1rem 1rem;
}

.flex-container > a {
    margin: 0 2% 2rem 0;
    width: 30.5%;
    background-color: rgba(255,255,255,1);
}

.flex-container > a.a-work {
    margin: 0 2% 0 0;
    border-radius: 2rem;
}

.stagefooterspace {
    height: 5rem;
    margin-top: 0;
}

#stagechronik .footerspace {
    height: 1rem;
}
/*Ende stages work, fraktion, themes, press und aktuell*/

/*Popups*/

#popup {
    display:none;
    position:fixed;
    top:50%; left:50%;
    transform:translate(-50%, -50%);
    background:rgba(255,255,255,1);
    box-shadow: 0 0 35px rgba(0,0,0,.5);
    max-height: 90vh; /* Höhe des Inhalts */
    overflow-y: auto;      /* vertikales Scrollen */
    z-index: 1000;
}

#popupOverlay {
    display: none;
    inset: 0;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.1);
    z-index: 999;
}

#closePopup {
    position: relative;
    float: right;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    color: var(--color-kg-soft);
    cursor: pointer;
    border-radius: 1rem;
    z-index: 1001;
    width: 2rem;
    height: 2rem;
    text-align: center;
    line-height: 2rem;
}

#popupContent {
    padding-right: 8px;    /* Platz für Scrollbar */
    text-align: justify;
}

.btn-reset {
    all: unset; /* setzt ALLES zurück */
    background-color: rgba(255,255,255,1);
    cursor: pointer;
}

.logopopup {
    float: right;
    position: relative;
    bottom: .6rem;
    width: 20%;
    height: auto;
}

/* Popup chronik */
.chronik {
    width: 90vw;
    max-width: 768px;
    width: 35vw;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
}

.datum {
    font-weight: 700;
    margin-bottom: 1rem;
}

.headline {
    font-size: 150%;
    font-weight: 700;
    margin-bottom: 1rem;
}

[class^="text"] {
    margin-bottom: 1rem;
    font-weight: 500;
}

.chronikimgwrappopup {
    --wrap-bg: #f5f5f5;              /* Default-Fallback */
    display: block;
    width: 100%;
    height: auto;
    justify-self: right;
    position: relative;              /* wichtig für Pseudo-Elemente */
    margin-bottom: 2rem;
}

/* Rechte, vertikale Linie */
.chronikimgwrappopup::after {
    content: '';
    position: absolute;
    top: .6rem;
    bottom: -.6rem;
    left: -.6rem;
    width: .6rem;
    background-color: var(--wrap-bg);
    z-index: 2;
}

/* Untere, horizontale Linie */
.chronikimgwrappopup::before {
    content: '';
    position: absolute;
    left: 0;
    right: .6rem;
    bottom: -.6rem;
    height: .6rem;
    background-color: var(--wrap-bg);
    z-index: 2;
}

.chronikimgpopup {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 3; /* über den Linien */
}

.bilder1,
.bilder2 {
    width: 100%;
    margin-bottom: 1rem;
}

.bilder1 img,
.bilder2 img {
    width: 100%;
}

/* Popup verwaltungseinheit */
.verwaltungseinheit {
    width: 90vw;
    max-width: 1200px;
    padding: 2rem;
}

.spaltenname {
    font-size: 10px;
    font-family: "Frutiger bold", sans-serif;
    display: inline-block;
    width: 12rem;
}

.spaltenwert {
    display: inline-block;
}

.Info {
    font-size: 120%;
    font-weight: 700;
}

.wohnanlage {
    font-size: 150%;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
}

.--berschrift {
    font-size: 150%;
    font-weight: 700;
    margin: 3rem 0 .5rem 0;
}

.subline {
    margin-bottom: 1rem;
}

[class^="copytext"] {
    margin-bottom: 1rem;
}

[class^="cr"] {
    font-size: 10px;
    line-height: 10px;
}

.ve-foto-wrapper {
    --wrap-bg: #f5f5f5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: .5rem;
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
}

.ve-foto-wrapper::after {
    content: '';
    position: absolute;
    top: .6rem;
    bottom: -.6rem;
    left: -.6rem;
    width: .6rem;
    background-color: var(--wrap-bg);
    z-index: 2;
}

.ve-foto-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    right: .6rem;
    bottom: -.6rem;
    height: .6rem;
    background-color: var(--wrap-bg);
    z-index: 2;
}

.ve-foto-item {
    width: 100%;
    position: relative;
    z-index: 3;
}

.ve-foto-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Popup video */

.video {
    position: relative;
    width: 25vw;
    max-width: 600px;
    padding: 2rem;
}

video {
    display: block;
    width: 103%;
    height: auto;
}

.headline {
    font-size: 150%;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.subline {
    margin-bottom: 1rem;
}

[class^="cr"] {
    font-size: 10px;
    line-height: 10px;
}

[class^="text"] {
    margin-bottom: 1rem;
}

/* CR Zeile */
.cr-zeile {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.cr-item {
    white-space: nowrap;
    margin-top: 1.5rem;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 20px 30px;
    cursor: pointer;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    line-height: 1;
}

.play-button::before {
    content: "▶";
    display: inline-block;
    transform: translateY(.5rem);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    background: black;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}
/* Popup Ende */

/*Stage_chronik*/

/*StageLegal*/
#stage.legal {
    width: 100%;
    padding: 14rem 3rem 0 3rem;
}

#stage.legal address {
    padding-bottom: .5rem;
}

#stage.legal p {
    padding-bottom: .5rem;
    text-align: justify;
}

.indent {
    text-indent: -.75rem;
    padding-left: .75rem;
    margin-bottom: .5rem;
}

.indent p {
    margin-bottom: 0;
    text-align: left !important;
}

.indent2 {
    text-indent: -1.5rem;
    padding-left: 1.5rem;
    margin-bottom: .5rem;
}

.indent2 p {
    margin-bottom: 0;
    text-align: left !important;
}

#stage.legal p a {
    color: rgba(230,0,126,1);
}
/*Ende StageLegal*/

/*Stage_login, _register, _userInfo - Wird für alle Stages der Benutzerverwaltung gebraucht.*/
.hidden {
    visibility: hidden;
}

.result {
    position: relative;
}

.check {
    position: absolute;
    right: 0.7rem;
    top: 0.5rem;
    display: inline-block;
    width: 1.5rem !important;
    height: 1.5rem;
    background-repeat: no-repeat;
    background-size: 1.5rem, auto;
    background-position: 0 9rem;
}

.checkReg {
    position: absolute;
    right: -0.75rem;
    top: -3.15rem;
    display: inline-block;
    width: 1.5rem !important;
    height: 1.5rem;
    background-repeat: no-repeat;
    background-image: url(../images/checkNotes.svg);
    background-size: 1.5rem, auto;
    background-position: 0 9rem;
}

.okOnWork {
    background-position: 0 0;
}

.ok {
    background-position: 0 -1.5rem;
}

.attentionOnWork {
    background-position: 0 -3rem;
}

.attention {
    background-position: 0 -4.5rem;
}

.failOnWork {
    background-position: 0 -6rem;
}

.fail {
    background-position: 0 -7.5rem;
}

.message_false {
    width: 100% !important;
}
/*Ende_Stage_login, _register, _userInfo - Wird für alle Stages der Benutzerverwaltung gebraucht.*/


/* Buttonbeschriftung */

.newstoerer:after {
    content: "Neuer Störer";
}

.newstoerer:hover:after {
    content: "Legt einen neuen Störer an. Dann Inhalt eingeben und mit \'Änderung speichern\' sichern.";
}

.previousstoerer:after {
    content: "Vorheriger Störer";
}

.previousstoerer:hover:after {
    content: "Ruft den vorherigen Störer auf";
}

.savestoerer:after {
    content: "Änderungen speichern";
}

.savestoerer:hover:after {
    content: "Speichert die geänderten Texte";
}

.nextstoerer:after {
    content: "Nächster Störer";
}

.nextstoerer:hover:after {
    content: "Ruft den nächster Störer auf";
}

.copystoerer:after {
    content: "Kopie des Störers";
}

.copystoerer:hover:after {
    content: "Legt eine Kopie des Störers an. Änderungen eingeben und mit \'Änderung speichern\' sichern.";
}


/*ThemenEdit*/

.newtheme:after {
    content: "Neuer Datensatz";
}

.newtheme:hover:after {
    content: 'Legt einen neuen Datensatz an. Dann Inhalt eingeben und mit \'Änderung speichern\' sichern.';
}

.previoustheme:after {
    content: "Vorheriger Datensatz";
}

.previoustheme:hover:after {
    content: "Ruft den vorherigen Datensatz auf";
}

.savetheme:after {
    content: "Änderungen speichern";
}

.savetheme:hover:after {
    content: "Speichert die geänderten Texte";
}

.nexttheme:after {
    content: "Nächster Datensatz";
}

.nexttheme:hover:after {
    content: "Ruft den nächster Datensatz auf";
}

.copytheme:after {
    content: "Kopie des Datensatz";
}

.copytheme:hover:after {
    content: "Legt eine Kopie des Datensatzes an. Änderungen eingeben und mit \'Änderung speichern\' sichern.";
}

/*PressEdit*/

.newpress:after {
    content: "Neuer Datensatz";
}

.newpress:hover:after {
    content: 'Legt einen neuen Datensatz an. Dann Inhalt eingeben und mit \'Änderung speichern\' sichern.';
}

.previouspress:after {
    content: "Vorheriger Datensatz";
}

.previouspress:hover:after {
    content: "Ruft den vorherigen Datensatz auf";
}

.savepress:after {
    content: "Änderungen speichern";
}

.savepress:hover:after {
    content: "Speichert die geänderten Texte";
}

.nextpress:after {
    content: "Nächster Datensatz";
}

.nextpress:hover:after {
    content: "Ruft den nächster Datensatz auf";
}

.copypress:after {
    content: "Kopie des Datensatz";
}

.copypress:hover:after {
    content: "Legt eine Kopie des Datensatzes an. Änderungen eingeben und mit \'Änderung speichern\' sichern.";
}

/* Ende Buttonbeschriftung */


/*Socialmedia-Links*/
#social_nav {
    position: relative;
    float: right;
    margin: 0 1rem 0 2rem;
    animation: Social_nav_fadedown ease 1s; animation-iteration-count: 1; transform-origin: 0; animation-fill-mode:forwards; /*when the spec is finished*/
    -webkit-animation: Social_nav_fadedown ease 1s; -webkit-animation-iteration-count: 1; -webkit-transform-origin: 0; -webkit-animation-fill-mode:forwards; /*Chrome 16+, Safari 4+*/
}

#social_nav ul{
    overflow: hidden;
    display: inline-block;
}

#social_nav li{
    display: inline-block;
    width: 2rem;
    height: 2rem;
    text-align: center;
    text-decoration: none;
    margin-right: .25rem;
}

#social_nav li a {
    display: inline-block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url('../images/socialmedia.svg');
    background-size: 8rem;
    background-repeat: no-repeat;
}

.social_media_twitter {
}

.social_media_facebook {
    background-position: -2rem 0;
}

.social_media_xing {
    background-position: -4rem 0;
}

.social_media_instagram {
    background-position: -6rem 0;
}

.social_media_twitter:hover {
    background-position: 0 -6rem;
}

.social_media_facebook:hover {
    background-position: -2rem -6rem;
}

.social_media_xing:hover {
    background-position: -4rem -6rem;
}

.social_media_instagram:hover {
    background-position: -6rem -6rem;
}

.social_media_twitter:focus {
    background-position: 0 -6rem;
}

.social_media_facebook:focus {
    background-position: -2rem -6rem;
}

.social_media_xing:focus {
    background-position: -4rem -6rem;
}

.social_media_instagram:focus {
    background-position: -6rem -6rem;
}

.social_media_twitter:active{
    background-position: 0 -6rem;
}

.social_media_facebook:active {
    background-position: -2rem -6rem;
}

.social_media_xing:active {
    background-position: -4rem -6rem;
}

.social_media_instagram:active {
    background-position: -6rem -6rem;
}
/*Ende Socialmedia-Links*/

/*Stage_login*/

#stage.stgLogin {
    width: 60%;
    margin: 12rem auto;
}

.stgLogin input {
    width: 98%;
    box-sizing: content-box;
}

.stgLogin i {
    font-style: italic;
}

.stgLogin p {
    text-align: center;
    margin-top: 1rem;
}

.stgLogin .button {
    float: right;
    margin-top: 3rem;
    margin-right: 0;
}

.stgLogin span {
    display: inline-block;
    margin-left: .5rem;
    width: 40%;
    box-sizing: content-box;
}

/*Ende StageLogin*/

/*Stage_userInfo*/
#stage.userInfo {
    width: 80%;
    margin: 12rem auto;
}

.userInfo input {
    width: 100%;
}

.userInfo .button {
    width: 49%;
    margin: .25rem 0;
    display: inline-block;
}

.userInfo .logout.button {
    float: right;
}

.userInfo span {
    display: inline-block;
    width: 20%;
}
/*Ende Stage_userInfo*/

/*Stage_register*/
#stage.register {
    width: 80%;
    margin: 12rem auto;
}
#register  {
    position: relative;
    margin: 1rem;
}

.register input {
    width: 100%;
    box-sizing: content-box;
}

.register .button {
    width: 100%;
    margin: .25rem 0;
    display: inline-block;
    box-sizing: content-box;
}

.register .save {
    width: 100%;
    margin-top: 2rem;
}

.register span {
    display: inline-block;
    width: 20%;
    margin: 0.5rem;
    box-sizing: content-box;
}

#register .messagespan {
    display: inline-block;
    width: 100%;
    box-sizing: content-box;
}

.register i {
    display: inline-block;
    font-size: .8rem;
    color: rgba(230,0,126,1)
}

.errormessage {
    font-size: 1rem;
    color: rgba(230,0,126,1);
    background-color: rgba(255,255,255,.5);
    border-radius: 1rem;
}
/*Ende Stage_register*/