:root {
    /* Farbschema - Orange Version */
    --school-primary: #e65100;
    --school-primary-light: #ff7d33;
    --school-primary-dark: #bf360c;
    --school-secondary: #ffab00;
    --school-accent: #d84315;
    --school-light: #fff8f5;
    --school-dark: #212529;
    --school-gray: #6c757d;
    --school-border: #ffe0cc;
    
    /* Typografie */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Abstände */
    --header-height: 280px;
    --header-height-mobile: 180px;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--school-dark);
    background-color: #f0f2f5;
}

h1, h2, h3, h4, h5, h6 {
    unused:~ font-family: var(--font-heading);
    font-weight: 600;
    color: var(--school-primary-dark);
}

#main{
  display: flex;
  flex-direction: column;
  z-index: 1;
  position: relative;
  margin-top: 0px!important;  
}

.info{
  display: inline-block;
  background-color: #1800F0;
  color: #fff;
  font-weight: 600;
  border : 1px solid #000;
  border-radius: 1rem;
  width:1rem;
  height:1rem;
  text-align: center;
  cursor: help;
  margin: 0 3px;
  
}
.color{
  width:60px!important;
}
/* ==================== HEADER ==================== */
/* ==================== MODERN HEADER STYLES ==================== */
:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-blur: 12px;
}

.school-header.modern-variant {
    position: relative;
    min-height: var(--header-height);
    background: var(--c_content_background);
    display: flex;
    align-items: center;
    overflow: visible; /* Wichtig für schwebende Elemente */
}

.header-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
    object-position: right 30%;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Verlaufs-Overlay für bessere Lesbarkeit links */
    background: linear-gradient(90deg, var(--c_content_background) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.header-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.header-top-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.school-identity {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.school-logo {
    width: 120px;
    height: 120px;
    background: white;
    unused:~ background: rgba(255, 255, 255, 0.8);
    unused:~ backdrop-filter: blur(10px);
    border-radius: 60px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.school-logo:hover {
    transform: translateY(-5px) rotate(2deg);
}

.school-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.school-logo:has(#logo[style*="display"][style*="none"]) {
    display: none;
}

.school-title-box h1 {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    line-height: 1.1;
}

/* Neue Variante */
.school-title-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.slogan-badge {
    /* Hintergrund entfernen, um Platz für das Suchfeld zu lassen */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    margin-top: 0.25rem;
    
    /* Dezente linke Border zur Abgrenzung */
    unused:~ border-left: 3px solid var(--c_content_background);
    unused:~ padding-left: 0.75rem;
    
    /* Animation für das sanfte Einblenden */
    animation: fadeInSlide 0.8s ease-out forwards;
}

.slogan-badge p {
    color: white;
    font-size: 1.1rem;
    font-weight: 300; /* Leichtere Schrift für weniger Dominanz */
    letter-spacing: 1px;
    text-transform: uppercase; /* Wirkt moderner und cleaner */
    opacity: 0.85;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Keyframes für den eleganten Auftritt */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Richtet Suche an der Baseline des Textes aus */
    gap: 2rem;
    padding-bottom: 1rem;
}

.header-search {
    position: static; /* Entfernt das "lost" absolute positioning */
    margin-bottom: 5px; /* Feinjustierung zur Grundlinie des Slogans */
}


.header-search .search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.3); /* Helles Glas */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; /* Voll abgerundet für modernen Look */
    padding: 4px 4px 4px 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hover & Focus Effekt: Das Feld wird breiter und heller */
.header-search .search-wrapper:hover,
.header-search .search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.95);
    min-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

.header-search input {
    border: none;
    background: transparent;
    padding: 8px 0;
    width: 100%;
    color: white; /* Weißer Text auf Glas */
    font-size: 0.95rem;
    outline: none;
    box-shadow: none;
    transition: color 0.3s;
}
.header-search input:focus{
    box-shadow: none!important;
}
/* Textfarbe ändern, wenn das Feld hell wird */
.header-search .search-wrapper:hover input,
.header-search .search-wrapper:focus-within input {
    color: #333;
}

/* Platzhalter-Farbe anpassen */
.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.header-search .search-wrapper:hover input::placeholder {
    color: #999;
}

.search-submit {
    background: var(--c_content_background);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%; /* Runder Button im Feld */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.search-submit:hover {
    transform: scale(1.1);
    background: var(--c_navi_background_level_0);
}

/* Icon-Größe im Button */
.search-submit i {
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 991.98px) {
    .school-header.modern-variant {
        min-height: var(--header-height-mobile);
        unused:~ padding: 2rem 0;
    }

    .header-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .header-overlay {
        background: rgba(0, 0, 0, 0.5); /* Dunkler für Kontrast auf Mobile */
    }

    .school-logo {
        width: 80px;
        height: 80px;
    }

    .header-search {
        width: 100%;
    }
    
    .header-search .search-wrapper {
        min-width: 100%;
    }
    .header-search .search-wrapper {
        background: white;
        min-width: 100%;
        color: #333;
    }
    .header-search input {
        color: #333;
    }
    .slogan-badge{
      display: none;
    }
}

@media (max-width: 575.98px) {
    .school-logo{
      display: none;
    }
    .school-identity {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .school-title-box h1 {
        font-size: 1.6rem;
    }
}






/* ==================== NAVIGATION ==================== */
.main-navigation {
    background: var(--school-primary-dark);
    top: 0;
    unused:~ z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    order: 0;
}
#mtitle{
  padding: 8px!important;
  display: block;
  z-index: 4999!important;
  background-color: #fff!important;
  color: #000!important;
}
.mm-toggle{
  display: none;  
}
.navbar-toggler {
    display: none;
    border: none;
    padding: 1rem;
    color: white;
    background: transparent;
    cursor: pointer;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.showedit { 
  display: block !important;
  z-index: unset!important;
}

/* ==================== DIV-NAVIGATION NACH VORGABE ==================== */

/* Level 0 Container - Hauptnavigation */
.n-1-0 {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    align-items: stretch;
    overflow: visible;
}

/* Menüelement (me) - Hintergrund transparent */
.me.c_navi_level_0,
.me.c_navi_level_1,
.me.c_navi_level_2 {
    background: transparent;
}

/* Menüelement (me) */
.n-1-0 > .me {
    position: relative;
}

.n-1-0 > .me > a {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.n-1-0 > .me > a:hover,
.n-1-0 > .me > a:focus {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--c_border);   /*school-secondary*/
}

/* Textgröße Level 0 */
.c_navi_textsize_level_0 {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 1rem;
    background: transparent;
}

/* Aktiver Zustand Level 0 */
.c_navi_active_level_0 {
    border-bottom-color: var(--c_border);  /*school-secondary*/
}

.n-1-0 > .me.on-1-0 > a {
    border-bottom-color: var(--c_border); /*school-secondary*/
}

.me:hover .edit img {
  right: 0px!important;
  top: -5px;
}

/* ==================== Level 1 - Untermenü ==================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.n-1-1 > .me {
    position: relative;
    display: block;
}

.n-1-1 > .me > a {
    display: block;
    padding: 0.6rem 1.25rem;
    text-decoration: none;
    transition: all 0.2s;
    unused:~ border-left: 3px solid transparent;
    background: transparent;
}

.n-1-1 > .me > a:hover span,
.n-1-1 > .me > a:focus span {
    text-decoration: underline;
}

/* Textgröße Level 1 - Hintergrund transparent */
.c_navi_textsize_level_1 {
    color: var(--school-dark);
    background: transparent;
}

/* Aktiver Zustand Level 1 */
.c_navi_active_level_1 {
    color: var(--c_navi_active_level_1) !important;
    font-weight: 600;
}

/* ==================== Level 2 - Unter-Untermenü ==================== */
.n-1-2 {
    margin-left:10px;
}

.n-1-2 > .me {
    position: relative;
    display: block;
}

.n-1-2 > .me > a {
    display: block;
    padding: 0.6rem 1.25rem;
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
}

.n-1-2 > .me > a:hover span,
.n-1-2 > .me > a:focus span {
    text-decoration: underline;
}

/* Textgröße Level 2 - Hintergrund transparent */
.c_navi_textsize_level_2 {
    color: var(--school-dark);
    font-weight: 400;
    font-size: 0.9rem;
    background: transparent;
}

/* Aktiver Zustand Level 2 */
.c_navi_active_level_2 {
    color: var(--c_navi_active_level_2) !important;   /*school-primary*/
    font-weight: 600;
}

/* Dropdown-Pfeil für Level 2 mit Untermenü */
.n-1-2 > .me.has-submenu > a > span::after {
    content: "";                 /* chevron-down */
    font-family: "Font Awesome 6 Free";
    float: right;
    margin-left: 0.5rem;
}

/* ==================== Level 3 - Vierte Navigationsebene ==================== */
.n-1-3 {
    margin-left:10px;
}

.n-1-3 > .me {
    position: relative;
    display: block;
}

.n-1-3 > .me {
    position: relative;
}

.n-1-3 > .me > a {
    display: block;
    padding: 0.6rem 1.25rem;
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
}

.n-1-3 > .me > a:hover,
.n-1-3 > .me > a:focus {
    text-decoration: underline;
}

/* Textgröße Level 3 - Hintergrund transparent */
.c_navi_textsize_level_3 {
    color: var(--school-dark);
    font-weight: 400;
    font-size: 0.85rem;
    background: transparent;
}

/* Aktiver Zustand Level 3 */
.c_navi_active_level_3 {
    color: var(--c_navi_active_level_3) !important;  /*school-primary*/
    font-weight: 600;
}

/* Menüelement Level 3 - Hintergrund transparent */
.me.c_navi_level_3 {
    background: transparent;
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumb-container {
    background: var(--c_navibox_background);
    border-bottom: 1px solid color-mix(in srgb, var(--c_border) 40%, transparent)!important;
    padding: 0.75rem 0;
    order: 0;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.breadcrumb-container a {
    unused:~ color: var(--school-primary);
    text-decoration: none;
}

.breadcrumb-container a:hover {
    text-decoration: underline;
}
nav[aria-label="Breadcrumb"] > span:last-child {
   color: var(--c_textcolor)!important;
}


/* ==================== MAIN LAYOUT ==================== */
.main-content{
  order: 3;
  position: absolute;
  top: 391px;
  left: auto;
  right: auto;
  width: 100%;  
}


.main-content-wrapper {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.sidebar-widget {
    position: relative;
    background: var(--c_item_background);
    border-radius: 12px!important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
    overflow: visible;
}

.sidebar-widget-header {
    unused:~ background: linear-gradient(135deg, var(--school-primary) 0%, var(--school-primary-dark) 100%);
    unused:~ background: linear-gradient(135deg, var(--c_content_background) 0%, var(--c_navi_background_level_0) 100%);
    background: linear-gradient(135deg, var(--c_navi_background_level_0) 0%, var(--c_focusbox_background) 100%);
    color: white;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.sidebar-widget-footer {
    height:8px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background-color: var(--c_item_background);    
}


.sidebar-widget-body {
    padding: 1.25rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid var(--school-border);
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--school-dark);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-nav a:hover {
    background: var(--school-light);
    color: var(--school-primary);
    padding-left: 1.5rem;
}

.sidebar-nav .active > a {
    background: var(--school-primary);
    color: white;
}

/* Untermenü in Sidebar */
.sidebar-nav .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--school-light);
}

.sidebar-nav .submenu a {
    padding-left: 2rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.sidebar-nav .submenu .submenu a {
    padding-left: 2.75rem;
    font-size: 0.85rem;
}

/* Login Widget */
.login-widget .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.login-widget .form-control {
    border-radius: 8px;
    border-color: var(--c_border);
    padding: 0.6rem 0.875rem;
    background-color: var(--c_item_background);
    color: var(--c_textcolor);    
}

.login-widget .form-control:focus {
    border-color: var(--school-primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
}

.login-widget .btn-primary {
    background: var(--c_content_background);
    border-color: var(--c_navi_background_level_0);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    width: 100%;
    margin-top: 0.5rem;
}

.login-widget .btn-primary:hover {
    background: var(--c_navi_background_level_0);
    border-color: var(--c_navi_background_level_0);
}

/* ==================== KALENDER ==================== */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.calendar-table caption {
    caption-side: top;
    background: var(--school-secondary);
    color: white;
    padding: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.calendar-table caption .nav-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0 0.5rem;
    font-size: 1rem;
}

.calendar-table caption .nav-btn:hover {
    opacity: 0.8;
}

.calendar-table th {
    background: var(--school-primary-dark);
    color: white;
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.75rem;
}

.calendar-table td {
    padding: 0.4rem;
    text-align: center;
    border: 1px solid var(--school-border);
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-table td:hover {
    background: var(--school-light);
}

.calendar-table td.today {
    unused:~ background: var(--school-primary);
    color: white;
    font-weight: 700;
    border-radius: 4px;
}

.calendar-table td.has-event {
    background: var(--school-secondary);
    color: white;
    font-weight: 600;
}

.calendar-table td.other-month {
    color: #ccc;
}

.calendar-table td.weekend {
    color: var(--school-accent);
}

 /* ==================== KALENDER KLEIN (SMALL) für CMS ==================== */
/* Deine Tabelle nutzt: .SimpleCalendarSmall */
table.SimpleCalendarSmall{
    width: 100%;
    border-collapse: collapse;   /* statt cellpadding/cellspacing */
    font-size: 0.85rem;
}

/* In deinem HTML gibt es kein <caption>, sondern <thead><tr><th colspan="7">... */
table.SimpleCalendarSmall thead tr:first-child th{
    background: var(--c_border);
    color: #fff;
    padding: 0.5rem;
    font-weight: 600;
    text-align: center;
}

/* Navigation (<< / >>) sind <a> im ersten Header-TH */
table.SimpleCalendarSmall thead tr:first-child th a{
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0 0.5rem;
    font-size: 1rem;
    text-decoration: none;
}
table.SimpleCalendarSmall thead tr:first-child th a:hover{
    opacity: 0.8;
}

/* Wochentage (zweite thead-Zeile) */
table.SimpleCalendarSmall thead tr:nth-child(2) th{
    background: var(--c_navi_background_level_0);
    color: #fff;
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.75rem;
}

/* Zellen */
table.SimpleCalendarSmall td{
    padding: 0.4rem;
    text-align: center;
    border: 1px solid var(--school-border);
    unused:~ cursor: pointer;
    transition: all 0.2s;
    background: var(--c_c_item_background);
}
table.SimpleCalendarSmall tbody td{
  background: var(--c_c_item_background)!important;
  color: var(--c_textcolor) !important;
}
table.SimpleCalendarSmall td:hover{
    unused:~ background: var(--school-light);
}



/* Andere Monate: in deinem HTML .SCprefix und .SCsuffix */
table.SimpleCalendarSmall td.SCprefix,
table.SimpleCalendarSmall td.SCsuffix{
    color: #ccc;
    cursor: default;
}

/* Wochenende (Sa/So) – ohne zusätzliche Klassen über Spalten selektiert */
table.SimpleCalendarSmall thead tr:nth-child(2) th:nth-child(6),
table.SimpleCalendarSmall thead tr:nth-child(2) th:nth-child(7){
    color: var(--c_border);
}
table.SimpleCalendarSmall tbody td:nth-child(6),
table.SimpleCalendarSmall tbody td:nth-child(7){
    color: var(--school-accent);
}

/* "has-event" – dein HTML setzt Events über inline style (font-weight:bold; cursor:pointer)
   und enthält .cal_desc/.eventdesc. Wir stylen die Zelle, sobald sie so ein Popup enthält. */
table.SimpleCalendarSmall td:has(.cal_desc_pos){
    unused:~ background: var(--c_border)!important;
    background: color-mix(in srgb, var(--c_content_background, #E04710) 35%, rgba(0,0,0,.08))!important;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
/* Heute (dein HTML nutzt bereits .today) */
table.SimpleCalendarSmall td.today{
    unused:~ background-color: transparent!important;
    unused:~ background-image: linear-gradient(rgba(255,255,255,.7), rgba(0,0,0,.4)) !important;
    unused:~ background-blend-mode: multiply;      
    unused:~ border-left: 2px solid var(--c_border)!important;
    unused:~ background-color: var(--c_navi_background_level_0)!important;
    background-color: color-mix(in srgb, var(--c_border) 60%, transparent)!important;
    unused:~ background-color: var(--c_border)!important;
    
    color: var(--c_navi_level_0)!important;
    font-weight: 700;
    border-radius: 6px;
}
/* Optional: Popup/Tooltip Styling (damit es nutzbar aussieht) */
table.SimpleCalendarSmall .cal_desc_pos{
    position: relative;
    unused:~ display: inline-block;
}
table.SimpleCalendarSmall .cal_desc{
    position: absolute;
    z-index: 10;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    color: #000;
    border: 1px solid color-mix(in srgb, var(--c_border) 60%, transparent)!important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
    text-align: left;
}
table.SimpleCalendarSmall .cal_desc_close{
    float: right;
    cursor: pointer;
    font-weight: 700;
    padding: 0.2rem 0.25rem;
    color: black;
}
table.SimpleCalendarSmall .eventdesc{
    margin-top: 0.35rem;
    font-size: 0.85em;
}
table.SimpleCalendarSmall .eventtime{
    float: left;
    font-weight: 700;
    margin-right: 0.4rem;
}



/****************************************************************
  SmallCalender, newStyle 
****************************************************************/
table.SimpleCalendar thead tr:first-child th {
  background: var(--c_item_background);
}
.SimpleCalendar th {
  border: 0!important;
  padding:0!important;
}
table.SimpleCalendar thead tr:first-child th,
table.SimpleCalendar thead tr:first-child th a {
  color: var(--c_textcolor);  
}
.SimpleCalendar td {
  border: 1px solid color-mix(in srgb, var(--c_navi_background_level_0) 10%, transparent) !important;
}
table.SimpleCalendar thead tr:nth-child(2) th {
  background: var(--c_item_background);
  color: var(--c_textcolor);
}
table.SimpleCalendar td.SCprefix,
table.SimpleCalendar td.SCsuffix{
  background: color-mix(in srgb, #808080 10%, transparent) !important
}


 /* ==================== KALENDER GROSS für CMS ==================== */

table.SimpleCalendar{
    width: 100%;
    border-collapse: collapse;   /* statt cellpadding/cellspacing */
    font-size: 0.85rem;
}
table.SimpleCalendar thead th{
  padding:0!important;
  font-size: 0.75rem!important;
}
table.SimpleCalendar tbody td {
  width: 14.2%!important;
  height: 80px!important;
  background: var(--c_item_background)!important;
  color: var(--c_textcolor) !important;
}
.SimpleCalendar .event{
  background-color: var(--c_navi_background_level_0)!important;
  unused:~ background-color: color-mix(in srgb, var(--c_navi_background_level_0) 10%, transparent)!important;
}

/* In deinem HTML gibt es kein <caption>, sondern <thead><tr><th colspan="7">... */
table.SimpleCalendar thead tr:first-child th{
    background: var(--c_content_background);
    color: #fff;
    unused:~ padding: 0.5rem;
    font-weight: 600;
    text-align: center;
}

/* Navigation (<< / >>) sind <a> im ersten Header-TH */
table.SimpleCalendar thead tr:first-child th a{
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    unused:~ padding: 0 0.5rem;
    unused:~ font-size: 1rem;
    font-size: 0.75rem!important;
    text-decoration: none;
}
table.SimpleCalendar thead tr:first-child th a:hover{
    opacity: 0.8;
}

/* Wochentage (zweite thead-Zeile) */
table.SimpleCalendar thead tr:nth-child(2) th{
    background: var(--c_navi_background_level_0);
    color: #fff;
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.75rem;
}

/* Zellen */
table.SimpleCalendar td{
    unused:~ padding: 0.4rem;
    unused:~ text-align: center;
    border: 1px solid color-mix(in srgb, var(--c_border) 10%, transparent) !important;
    unused:~ cursor: pointer;
    transition: all 0.2s;
}
table.SimpleCalendar td:hover{
    background: var(--school-light);
}



/* Andere Monate: in deinem HTML .SCprefix und .SCsuffix */
table.SimpleCalendar td.SCprefix,
table.SimpleCalendar td.SCsuffix{
    unused:~ color: #ccc;
    cursor: default;
}

/* Wochenende (Sa/So) – ohne zusätzliche Klassen über Spalten selektiert */
table.SimpleCalendar thead tr:nth-child(2) th:nth-child(6),
table.SimpleCalendar thead tr:nth-child(2) th:nth-child(7){
    color: #FFF; /*var(--c_border); */
}
table.SimpleCalendar tbody td:nth-child(6),
table.SimpleCalendar tbody td:nth-child(7){
    color: var(--school-accent);
}

/* "has-event" – dein HTML setzt Events über inline style (font-weight:bold; cursor:pointer)
   und enthält .cal_desc/.eventdesc. Wir stylen die Zelle, sobald sie so ein Popup enthält. */
table.SimpleCalendar td:has(.cal_desc_pos){
    unused:~ background: var(--c_border);
    unused:~ background: color-mix(in srgb, var(--c_border) 60%, transparent)!important;
    background: color-mix(in srgb, var(--c_content_background, #E04710) 35%, rgba(0,0,0,.08))!important;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
/* Heute (dein HTML nutzt bereits .today) */
table.SimpleCalendar td.today{
    unused:~ background-color: transparent!important;
    unused:~ background-image: linear-gradient(rgba(255,255,255,.7), rgba(0,0,0,.4)) !important;
    unused:~ background-blend-mode: multiply;      
    
    unused:~ background-color: var(--c_navi_background_level_0)!important;
    unused:~ background-color: color-mix(in srgb, var(--c_navi_background_level_0) 60%, transparent)!important;
    background-color: color-mix(in srgb, var(--c_border) 30%, transparent)!important;
    
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
}
/* Optional: Popup/Tooltip Styling (damit es nutzbar aussieht) */
table.SimpleCalendar .cal_desc_pos{
    position: relative;
    unused:~ display: inline-block;
}
table.SimpleCalendar .cal_desc{
    position: absolute;
    z-index: 100000;
    top: 110%;
    left: 90%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    color: #000;
    border: 1px solid color-mix(in srgb, var(--c_border) 60%, transparent)!important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
    text-align: left;
}
table.SimpleCalendar .cal_desc_close{
    float: right;
    cursor: pointer;
    font-weight: 700;
    padding: 0.2rem 0.25rem;
    color: black;
}
table.SimpleCalendar .eventdesc{
    margin-top: 0.35rem;
    font-size: 0.85em;
    clear: both;
    min-height: 2rem;
}
table.SimpleCalendar .eventtime{
    float: left;
    font-weight: 700;
    margin-right: 0.4rem;
}



/* ==================== CONTENT AREA ==================== */

.content-area {
    flex: 1;
    min-width: 0;
}

/* Artikel-Karte */
.article-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.article-card-body {
    padding: 1.75rem;
}

.article-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-card h2 a {
    color: var(--school-primary-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.article-card h2 a:hover {
    color: var(--school-primary);
}

.article-meta {
    font-size: 0.875rem;
    color: var(--school-gray);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Bild links oder rechts mit Textumfluss */
.article-image {
    max-width: 45%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.article-image.float-start {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.article-image.float-end {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.article-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content::after {
    content: "";
    display: table;
    clear: both;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--school-primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 0.625rem;
    color: var(--school-primary-dark);
}

/****************************************************************
  Für CMS angepasste Content Styles 
****************************************************************/

/* Artikel-Karte: #content ist der äußere Container */

#content .ce{
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin: 0;  
  margin-bottom: 2rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;  
}
#content .ce .c_border{
  unused:~ background: #fff;


}

#content .ce:hover{
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Inhalt/Body: entspricht .article-card-body */
#content .c.c_item_background{
  padding: 1.75rem;
}

/* Überschrift: entspricht .article-card h2 */
#content h1.atitle{
  unused:~ font-size: 1.75rem;
  margin: 0 0 1rem;
  unused:~ line-height: 1.3;
}

/* Textinhalt: entspricht .article-content */
#content .acontent{
  unused:~ font-size: 1rem;
  unused:~ line-height: 1.7;
  unused:~ color: #444;
  unused:~ overflow: auto;
}

#content .acontent p{
  margin: 0 0 1rem;
}

/* Float-Clearing (falls im Inhalt Bilder floaten) */
#content .acontent::after{
  content: "";
  display: table;
  clear: both;
}




/* ==================== FOOTER ==================== */
.school-footer {
    order: 4;
    background: var(--c_navi_background_level_0);   /*school-primary-dark*/
    unused:~ color: rgba(255,255,255,0.85);
    color: var(--c_navi_level_1000);
    padding: 3rem 0 0;
    margin-top: 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-widget h4 {
    unused:~ color: white;
    color: var(--c_navi_level_1000);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--c_border);
    font-family: var(--c_text);
    font-weight: 600;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    unused:~ color: rgba(255,255,255,0.75);
    color: var(--c_navi_level_1000);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-widget a:hover {
    unused:~ color: white;
    color: var(--c_navi_level_1000);
    padding-left: 0.25rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--c_border);
    margin-top: 0.25rem;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 1.25rem 0;
    font-size: 0.875rem;
    text-align: center;
}

.footer-bottom a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    margin: 0 0.75rem;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}




/* ==================== FooterNavi ==================== */
.n-2-1000{
  background-color: transparent!important;
    
  
}
.n-2-1000 > div{
  display: block!important;
  
}


/* ==================== RESPONSIVE ==================== */

/* Tablet  */
@media (max-width: 991.98px) {
    .header-search{
      top: unset!important;
      bottom: -90px!important;  
    }
    .main-content{
      top:310px;
    }
    
    .school-header {
        min-height: var(--header-height-mobile);
    }
    
    .header-image {
        width: 100%;
        opacity: 0.3;
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    .school-logo {
        width: 70px;
        height: 70px;
    }
    
    .school-title h1 {
        font-size: 1.75rem;
    }
    
    .school-title p {
        font-size: 0.95rem;
    }
    
    .header-search {
        position: static;
        unused:~ margin-top: 1.25rem;
    }
    
    .header-search .input-group {
        max-width: 100%;
    }
    
    .main-content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    .sidebar:empty { 
        display:none!important; /* oder width:0; padding:0; overflow:hidden; */ 
    }    
    
    .sidebar-widget {
        margin-bottom: 0;
    }
    
    .article-image {
        max-width: 40%;
    }
}

/* Mobile */
@media (max-width: 991.98px), (max-width: 575.98px), (pointer: coarse) {
    :root {
        --header-height-mobile: 160px;
    }
    #mainNav, #subnavi{
      display: none;
    }
    
    .main-content{
      top:300px;
    }
    
    .header-content {
        padding: 1.25rem;
    }
    
    .school-logo-container {
        gap: 1rem;
    }
    
    .school-logo {
        width: 60px;
        height: 60px;
    }
    
    .school-title h1 {
        font-size: 1.35rem;
    }
    
    .school-title p {
        font-size: 0.85rem;
    }
    
    /* Responsive Navigation für neue div-Struktur */
    .mm-toggle{
      display: block;  
    }
    .navbar-toggler {
        display: flex;
    }
    .navi{
      padding:0;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .article-card-body {
        padding: 1.25rem;
    }
    
    .article-card h2 {
        font-size: 1.35rem;
    }
    
    .article-image {
        float: none !important;
        max-width: 100%;
        margin: 0 0 1rem 0 !important;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}




/* ==================== UTILITY CLASSES ==================== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Skip Link für Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--school-primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
/* ========================== CMS Anpassungen ===========================*/
.me > .md{
  left: 5px!important;
}
.me > .md img{   
  left:0px!important;
  top: 6px!important;
}
.footer-widget .me > .md img{   
  left:-15px!important;
  top: 6px!important;
}
.suggestion{
  border: 1px var(--c_border) solid!important;
  overflow: hidden!important;
  border-radius: 12px!important;  
  margin-left:5px;
  background-color: var(--c_item_background)!important;
}
.c{
  padding: 1.75rem;
  overflow: auto;  
}

.page_navi {
  border-radius: 5px;
  padding: 7px 12px !important;
  background: unset!important;
  background-color: var(--c_border)!important;
  color: #FFF!important;
  border: 0!important;
  font-weight: 600;
}
.page_navi_active{
  background-color: var(--c_navi_background_level_0)!important;
}
#modalBlocker{
  background-color: #fff!important;
  opacity: 0.5!important;  
}
.suggsel{
  background-color: var(--c_border)!important;
}
.cal_desc_close{
  border:0!important;
}
#caldav_calendar{
  border-radius: 10px;
  overflow: auto;  
}
.SimpleCalendar{
  width:100%!important;

}
.SimpleCalendar tbody td div.event {
  width: 100%!important;
}

.SimpleCalendarSmall th,
.SimpleCalendarSmall td{
  border: 1px solid var(--c_border)!important;  
}

/****************************************************************
  SmallCalender, newStyle 
****************************************************************/
table.SimpleCalendarSmall thead tr:first-child th {
  background: var(--c_item_background);
}
.SimpleCalendarSmall th {
  border: 0!important;
  padding:0!important;
}
table.SimpleCalendarSmall thead tr:first-child th,
table.SimpleCalendarSmall thead tr:first-child th a {
  color: var(--c_textcolor);  
}
.SimpleCalendarSmall td {
  border: 1px solid color-mix(in srgb, var(--c_border) 10%, transparent) !important;
}
table.SimpleCalendarSmall thead tr:nth-child(2) th {
  background: var(--c_item_background);
  color: var(--c_textcolor);
}
table.SimpleCalendarSmall td.SCprefix,
table.SimpleCalendarSmall td.SCsuffix{
  unused:~ background: #F3F3F3!important;
  background: color-mix(in srgb, #808080 10%, transparent) !important
}





/* Sucheergebnisseite & Passwortgeschütze Runbriken Login */
#part000{
  background-color: var(--c_item_background)!important;
}

.content form[name="sf2"] input,
.content form[name="catlogin"] input{
  all:unset!important;
  background-color: var(--c_item_background)!important;
  border: 1px solid var(--c_border)!important;
  border-color: var(--c_border)!important;
  border-radius: .35rem!important;
  unused:~ padding: .25rem .55rem!important;
  padding: 0.6rem 0.875rem!important;
  width:60%!important;
  
}
.content form[name="sf2"] input[type="submit"],
.content form[name="catlogin"] input[type="submit"]{
  all:unset!important;
  background-color: var(--c_navi_background_level_0)!important;
  border: 1px solid var(--c_border)!important;
  border-color: var(--c_border)!important;
  border-radius: .35rem!important;
  margin-left:10px!important;  
  unused:~ padding: .25rem .55rem!important;
  padding: 0.6rem 1.875rem!important;
  color: #fff!important;
}
.content form[name="catlogin"]{
  unused:~ display: grid!important; 

  max-width: unset!important;
  width:99%!important;  
}
@media(max-width:800px){
  .content form[name="catlogin"] input{
    all:unset!important;
    background-color: var(--c_item_background)!important;
    border: 1px solid var(--c_border)!important;
    border-color: var(--c_border)!important;
    border-radius: .35rem!important;
    unused:~ padding: .25rem .55rem!important;
    padding: 0.6rem 0.875rem!important;
    unused:~ width:80%!important;
    margin:10px!important;
    
  }  
  .content form[name="catlogin"] input[type="submit"]{
    all:unset!important;
    background-color: var(--c_navi_background_level_0)!important;
    border: 1px solid var(--c_border)!important;
    border-color: var(--c_border)!important;
    border-radius: .35rem!important;
    padding: 0.6rem 1.875rem!important;
    color: #fff!important;
    margin:10px!important;
    text-align: center!important;
  }
  .content form[name="catlogin"]{
    display: grid!important; 

    max-width: unset!important;
  }  
}


.license-summary{
  padding: 1.5rem 0.5rem 0.5rem 1.6rem!important;  
}

/* cms toolwins */
fieldset {
  border: 1px solid #999;
  padding: 12px 14px 14px;   /* innenabstand */
  border-radius: 6px;        /* optional */
  height: unset!important;
  margin: 3px;
}
legend {
  float: unset!important;
  width: unset!important;
  padding: unset!important;
  margin-bottom: unset!important;
  font-size: unset!important;
  line-height: unset!important;
}

#toolbar > *{
  --_:~ transform: scale(2);
  --_:~ transform-origin: top left;   
}




/* ==========================================================
   Formulare – kompakter Bootstrap-5 Look (CSS only)
   Ziel: weniger Höhe/Platz, sauberere Ausrichtung, ohne HTML zu ändern
   ========================================================== */

#itemForm{
  unused:~ display: none!important;  
}

/* Form: inline-block aus Inline-Style neutralisieren, aber kompakt halten */
.acontent form{
  font-family: var(--c_text, Verdana);
  font-size: var(--c_text_size, 14px);
  color: var(--c_textcolor, #5E1A08);

  display: block !important;
  width: 100%;
  max-width: 520px;          /* kompakter als volle Breite */
  margin: 0 !important;
  padding: 0 !important;
}

/* Wrapper */
.acontent form > div{
  width: 100%;
}

/* Jede Zeile: Label links, Feld rechts (spart Höhe) */
.acontent form .formelement{
  display: grid;
  grid-template-columns: 140px 1fr;  /* Labelspalte + Feldspalte */
  column-gap: .6rem;
  align-items: center;

  margin: 0 0 .5rem 0;              /* weniger Abstand */
  font-weight: 400;                  /* nicht alles fett */
  line-height: 1.2;
}

/* Der Label-Text ist im HTML als Textknoten vor dem Input.
   Wir können ihn nicht direkt stylen, aber wir stylen die Inputs kompakt. */
.acontent form .formelement > input:not([type="hidden"]):not([type="submit"]),
.acontent form .formelement > textarea{
  width: 100%;
  unused:~ background-color: #FFF;
}

/* Inputs/Textareas kompakter wie Bootstrap-sm */
.acontent form input:not([type="hidden"]):not([type="submit"]),
.acontent form textarea{
  display: block;
  box-sizing: border-box;

  font-family: var(--c_text, Verdana);
  font-size: var(--c_text_size, 14px);
  line-height: 1.25;

  color: var(--c_textcolor, #5E1A08);
  unused:~ background-color: #fff;
  background-color: var(--c_item_background);

  border: 1px solid color-mix(in srgb, var(--c_border, #FF7003) 75%, #000 25%);
  border-radius: .35rem;

  padding: .25rem .55rem;   /* weniger Padding */
  margin: 0;                /* kein extra Abstand */
}

/* Fokus dezenter (weniger "wuchtig") */
.acontent form input:not([type="hidden"]):not([type="submit"]):focus,
.acontent form textarea:focus{
  outline: 0;
  border-color: var(--c_border, #FF7003);
  box-shadow: 0 0 0 .12rem color-mix(in srgb, var(--c_border, #FF7003) 25%, transparent 75%);
}

/* Nachricht: Label-DIV + Textarea in 2 Zeilen, aber kompakt */
.acontent form .formelement > div[style*="display: inline"]{
  display: block !important;
  grid-column: 1 / 2;
  align-self: start;
  padding-top: .25rem;
  font-weight: 600;
}

/* Textarea neben dem Label-DIV */
.acontent form .formelement > div[style*="display: inline"] + textarea{
  grid-column: 2 / 3;
}

/* Textarea Höhe reduzieren */
.acontent form textarea{
  min-height: 90px;  /* deutlich kompakter */
  resize: vertical;
  overflow: auto;
}

/* br und Clearfix entfernen */
.acontent form .formelement br{ display: none; }
.acontent form .formelement div[style*="clear: both"]{ display: none !important; }

/* Spamschutz: Label links, rechts Captcha+Button in einer Zeile */
.acontent form .formelement:has(input[name="sicherheitscode"]){
  align-items: start;
}
.acontent .formelement{
  text-align: unset!important;
}
/* Rechte Box als flex, kompakt */
.acontent form .formelement_right{
  grid-column: 2 / 3;
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  font: inherit !important;
}

/* Captcha-Input: nicht 100% breit, damit Button daneben passt */
.acontent form input[name="sicherheitscode"]{
  all: unset !important;
  font-size: initial !important;
  font-family: initial !important; 


  display: block!important;
  flex: 0 1 220px!important;

  /* Inline-Styles überschreiben */
  width: auto!important;
  unused:~ height: 50px !important;
  margin: 0 !important;

  unused:~ background: url(/?m=captcha) left top no-repeat #EEEEEE !important;
  background-size: 90px 100%!important;
  padding-left: 92px !important;

  font-family: var(--c_text, Verdana)!important;
  font-size: var(--c_text_size, 14px)!important;
  border: 1px solid color-mix(in srgb, var(--c_border, #FF7003) 75%, #000 25%) !important;
  border-radius: .35rem !important;
  padding-top: .25rem !important;
  padding-bottom: .25rem !important;
}

/* Button kompakt wie btn-sm */
.acontent form input[type="submit"]{
  all: unset!important;
  
  appearance: none;
  -webkit-appearance: none;

  /* Inline-Styles überschreiben */
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;

  padding: .18rem .55rem !important;
  font-family: var(--c_text, Verdana) !important;
  font-size: var(--c_text_size, 14px) !important;
  font-weight: 600!important;
  line-height: 1.2!important;

  color: #fff!important;
  background-color: var(--c_navi_background_level_0, #B81200) !important;
  unused:~ border: 1px solid var(--c_navi_background_level_0, #B81200) !important;
  border-radius: .35rem!important;

  cursor: pointer!important;
  white-space: nowrap!important;
}

.acontent form input[type="submit"]:hover{
  background-color: color-mix(in srgb, var(--c_navi_background_level_0, #B81200) 85%, #000 15%) !important;
  border-color: color-mix(in srgb, var(--c_navi_background_level_0, #B81200) 85%, #000 15%) !important;
}

.acontent form input[type="submit"]:focus{
  outline: 0;
  box-shadow: 0 0 0 .12rem color-mix(in srgb, var(--c_border, #FF7003) 25%, transparent 75%);
}
@media (max-width: 1400px) {
  .acontent form .formelement{
    display: block;
    unused:~ grid-template-columns: 1fr;
    unused:~ row-gap: .25rem;
  }  
}
/* Mobile: einspaltig, damit nichts gequetscht wird */
@media (max-width: 480px){
  .acontent form{
    max-width: 100%;
  }

  .acontent form .formelement{
    display: block;
    unused:~ grid-template-columns: 1fr;
    unused:~ row-gap: .25rem;
  }
  
  .acontent .formelement {
    text-align: left !important;
  }

  .acontent form .formelement_right{
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }

  .acontent form input[name="sicherheitscode"]{
    width: 100% !important;
    flex-basis: 100%;
  }

  .acontent form input[type="submit"]{
    width: 100% !important;
  }
}

/* Widget ausblenden, wenn .sidebar-widget-body leer ist */
.sidebar-widget:has(.sidebar-widget-body:empty) {
  display: none;
}






/*  EXPLICIT MOBILE  MENU */

/* --- Hamburger-Button (außerhalb .mobilnavi, im CMS einfügbar) --- */
.nav-toggle {
  unused:~ display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 52px;
  background: var(--c_navi_background_level_0);
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.nav-toggle span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}

.hamburger i {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open .hamburger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .hamburger i:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .hamburger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* --- Wrapper: standardmäßig ausgeblendet --- */
.mobilnavi {
  display: none;
  background-color: #808080;
  position: relative;
  z-index: 1000;
}

.mobilnavi.is-open {
  display: block;
}

/* --- Haupt-Container Level 0 --- */
.mobilnavi .m-1-0 {
  background: var(--c_navi_background_level_0);
  overflow: hidden;
  font-weight: 600;
}

/* --- Alle Menüeinträge (.me) --- */
.mobilnavi .me {
  position: relative;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobilnavi .me:last-child {
  border-bottom: none;
}

/* --- Links allgemein --- */
.mobilnavi .me > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 14px 16px;
  transition: background 0.2s;
}

.mobilnavi .me > a:active {
  background: rgba(255,255,255,0.1);
}

/* --- Level 0 Links --- */
.mobilnavi .c_navi_level_0 > a {
  color: var(--c_navi_level_0);
}

.mobilnavi .c_navi_textsize_level_0 {
  color: unset;
  unused:~ font-size: 15px;
  font-weight: unset;
  unused:~ font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Aktiver Eintrag Level 0 --- */
.mobilnavi .c_navi_active_level_0 {
  unused:~ color: #5bb8f5 !important;
}

/* --- Pfeil-Indikator für has-submenu --- */
.mobilnavi .has-submenu > a::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  transition: transform 0.25s, border-color 0.25s;
  flex-shrink: 0;
  margin-left: 10px;
}

.mobilnavi .has-submenu.submenu-open > a::after {
  transform: rotate(-135deg);
  border-color: #DADADA;
}

/* --- Untermenü-Container Level 1 --- */
.mobilnavi .m-1-1 {
  display: none;
  unused:~ background: #808080;
  background: color-mix(in srgb, var(--c_navi_background_level_0, #808080) 35%, rgba(255,255,255,.2));
  overflow: hidden;
  font-weight: 500;
}

.mobilnavi .m-1-1.submenu-open {
  display: block;
  animation: slideDown 0.22s ease-out;
}

/* --- Level 1 Einträge --- */
.mobilnavi .c_navi_level_1 > a {
  color: #F3F3F3!important;
  padding-left: 30px;
}

.mobilnavi .c_navi_textsize_level_1 {
  color: unset;
  font-weight: unset;
  unused:~ font-size: 14px;
  unused:~ font-weight: 500;
}

.mobilnavi .c_navi_active_level_1 {
  color: #5bb8f5 !important;
}

/* Pfeil Level 1 */
.mobilnavi .c_navi_level_1.has-submenu > a::after {
  unused:~ border-color: rgba(200,223,240,0.4);
  border-color: rgba(255,255,255,0.4);
}

.mobilnavi .c_navi_level_1.has-submenu.submenu-open > a::after {
  border-color: #DADADA;
}

/* --- Untermenü-Container Level 2 --- */
.mobilnavi .m-1-2 {
  display: none;
  unused:~ background: #A0A0A0;
  background: color-mix(in srgb, var(--c_navi_background_level_0, #A0A0A0) 35%, rgba(255,255,255,.4));  
  overflow: hidden;
  font-weight: 400;
}

.mobilnavi .m-1-2.submenu-open {
  display: block;
  animation: slideDown 0.2s ease-out;
}

/* --- Level 2 Einträge --- */
.mobilnavi .c_navi_level_2 > a {
  color: #1B1B1B!important;
  padding-left: 46px;
}

.mobilnavi .c_navi_textsize_level_2 {
  color: unset;
  font-weight: unset;
  unused:~ font-size: 13px;
  unused:~ font-weight: 400;
}

/* Pfeil Level 2 */
.mobilnavi .c_navi_level_2.has-submenu > a::after {
  unused:~ border-color: rgba(146,184,212,0.4);
  border-color: rgba(255,255,255,0.4);
}

.mobilnavi .c_navi_level_2.has-submenu.submenu-open > a::after {
  border-color: #DADADA;
}
/* --- Trennlinie zwischen Level-1-Einträgen --- */
.mobilnavi .m-1-1 > .me,
.mobilnavi .m-1-2 > .me {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}


/* --- Untermenü-Container Level 3 --- */
.mobilnavi .m-1-3 {
  display: none;
  unused:~ background: #C0C0C0;
  background: color-mix(in srgb, var(--c_navi_background_level_0, #C0C0C0) 35%, rgba(255,255,255,.6));  
  overflow: hidden;
  font-weight: 400;
}

.mobilnavi .m-1-3.submenu-open {
  display: block;
  animation: slideDown 0.2s ease-out;
}

/* --- Level 3 Einträge --- */
.mobilnavi .c_navi_level_3 > a {
  color: #0D0D0D!important;
  padding-left: 62px;
}

.mobilnavi .c_navi_textsize_level_3 {
  color: unset;
  font-weight: unset;
  unused:~ font-size: 13px;
  unused:~ font-weight: 400;
}

/* Pfeil Level 2 */
.mobilnavi .c_navi_level_3.has-submenu > a::after {
  unused:~ border-color: rgba(146,184,212,0.4);
  border-color: rgba(255,255,255,0.4);
}

/* --- Trennlinie zwischen Level-1-Einträgen --- */
.mobilnavi .m-1-2 > .me,
.mobilnavi .m-1-3 > .me {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

#mcurcat{
  font-weight: 800!important;
  unused:~ outline: 2px solid white;
  unused:~ border-radius: 20px;
}
#mcurcat > a {
  background: rgba(255,255,255,0.05);
  border-left: 4px solid var(--c_border);
}







/* --- Aktiver Elternknoten hervorheben --- */
.mobilnavi #curcat > a {
  color: #5bb8f5;
  background: rgba(91,184,245,0.08);
}

/* --- Hover-Feedback (Desktop-Fallback / Maus) --- */
@media (hover: hover) {
  .mobilnavi .me > a:hover {
    background: rgba(255,255,255,0.06);
  }
}

/* --- Animation --- */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* clear:both aus CMS-HTML entfernen (kein Einfluss auf Flex-Layout) */
.mobilnavi [style*="clear:both"] {
  display: none !important;
}

