: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 ==================== */
.school-header {
    position: relative;
    background: linear-gradient(135deg, var(--c_content_background) 0%, var(--c_content_background) 100%);
    min-height: var(--header-height);
    overflow: hidden;
    order: 0;
}

.header-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
    opacity: 0.9;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.school-logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.school-logo {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 12px;
    unused:~ padding: 0.75rem;
    padding: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.school-logo:hover {
    transform: scale(1.05);
}

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

.school-logo-placeholder {
    font-size: 3rem;
    color: var(--school-primary);
}

.school-title {
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.school-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.school-title p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Search Box im Header */
.header-search {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 3;
}

.header-search .input-group {
    background: rgba(255,255,255,0.95);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    max-width: 300px;
}

.header-search input {
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

.header-search input:focus {
    box-shadow: none;
}

.header-search .btn {
    border: none;
    background: var(--c_content_background);
    color: white;
    padding: 0.75rem 1.25rem;
    transition: background 0.2s;
}

.header-search .btn:hover {
    background: var(--c_navi_background_level_0);
}

/* ==================== NAVIGATION ==================== */
.main-navigation {
    background: var(--school-primary-dark);
    unused:~ position: sticky;
    top: 0;
    unused:~ z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    order: 0;
}
#mtitle{
  unused:~ height: unset!important;
  padding: 8px!important;
  display: block;
  z-index: 4999!important;
  background-color: #fff!important;
  color: #000!important;
}
.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 ==================== */
/* Pfeil nur, wenn direkt ein .dropdownmenu-Kind existiert */
/* Pfeil standardmäßig aus */
.me.has-submenu > a > span::after {
  content: none;
}

.n-1-0 > .me.has-submenu:has(> .dropdownmenu) > a > span::after {
  content: "\f078"; /* chevron-down */
}
.n-1-1 > .me.has-submenu:has(> .dropdownmenu) > a > span::after,
.n-1-2 > .me.has-submenu:has(> .dropdownmenu) > a > span::after,
.n-1-3 > .me.has-submenu:has(> .dropdownmenu) > a > span::after{
  content: "\f054";                 /* chevron-right */
}

.me.hide-submenu-indicator > a > span::after{
  content: "" !important;
}


.n-1-1 > .me.on-1-1,
.n-1-2 > .me.on-1-2,
.n-1-3 > .me.on-1-3{
    unused:~ background-image: linear-gradient(rgba(100,100,100,.1), rgba(255,255,255,.1), rgba(100,100,100,.1));
    background-image: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7));
    background-blend-mode: multiply;   
}


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

/* Hintergrundfarbe (vom System vorgegeben, hier als Platzhalter) */
.c_navibox_background {
    /* Wird vom System überschrieben */
}

/* Border-Klasse */
.c_border {
    /* Wird vom System überschrieben */
}

/* Level 0 - Hauptnavigation Farbe (nur für Container) */
.n-1-0.c_navi_level_0 {
    unused:~ background: var(--school-primary-dark);
}

/* Level 1 - Untermenü Farbe (nur für Container) */
.n-1-1.c_navi_level_1 {
    background: white;
}

/* Level 2 - Unter-Untermenü Farbe (nur für Container) */
.n-1-2.c_navi_level_2 {
    background: var(--school-light);
}

/* 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;
}

.c_navi_textsize_level_0:hover {
    color: white;
}

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

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

/* Dropdown-Pfeil für Elemente mit Untermenü 
.n-1-0 > .me.has-submenu > a > span::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    margin-left: 0.5rem;
    font-size: 0.75em;
}
*/

.n-1-0 > .me.has-submenu > a > span::after {
  content: "\f078";                 /* chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;                 /* Solid */
  margin-left: 0.5rem;
  font-size: 0.75em;
}

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

/* ==================== Level 1 - Untermenü ==================== */
.n-1-1 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: visible;
    animation: fadeIn 0.2s ease;
    unused:~ z-index: 1001;
}

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

.n-1-0 > .me.has-submenu:hover > .n-1-1 {
    display: block;
    overflow: visible; 
    z-index: 1001;
}

.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;
    border-left: 3px solid transparent;
    background: transparent;
}

.n-1-1 > .me > a:hover,
.n-1-1 > .me > a:focus {
    unused:~ background: var(--c_content_background)!important;
    background: var(--c_tagcloud_background)!important;
    border-left-color: var(--c_border);  /*school-secondary*/
}

.n-1-1 > .me > a:hover span,
.n-1-1 > .me > a:focus span {
    color: white !important;
}

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

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

.n-1-1 > .me.on-1-1 > a {
    unused:~ background: var(--school-light);
    border-left-color: var(--c_border); /* --school-primary   #368C16 */
}

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

/* ==================== Level 2 - Unter-Untermenü ==================== */
.n-1-2 {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: visible;
    unused:~ z-index: 1002;
}

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

.n-1-1 > .me.has-submenu:hover > .n-1-2 {
    display: block;
    z-index: 1002;
}

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

.n-1-2 > .me > a:hover,
.n-1-2 > .me > a:focus {
    unused:~ background: var(--c_content_background)!important;
    background: var(--c_tagcloud_background)!important;    
    border-left-color: var(--c_border);  /*school-secondary*/
}

.n-1-2 > .me > a:hover span,
.n-1-2 > .me > a:focus span {
    color: white !important;
}

/* 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;
}

.n-1-2 > .me.on-1-2 > a {
    unused:~ background: white;
    border-left-color: var(--c_border);   /*school-primary*/
}

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

/* ==================== Level 3 - Vierte Navigationsebene ==================== */
.n-1-3 {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: visible;
    unused:~ z-index: 1003;
}

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

/* Level 3 - Hintergrundfarbe (nur für Container) */
.n-1-3.c_navi_level_3 {
    background: white;
}

.n-1-2 > .me.has-submenu:hover > .n-1-3 {
    display: block;
    z-index: 1003;
}

.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;
    border-left: 3px solid transparent;
    background: transparent;
}

.n-1-3 > .me > a:hover,
.n-1-3 > .me > a:focus {
    unused:~ background: var(--c_content_background)!important;
    background: var(--c_tagcloud_background)!important;
    border-left-color: var(--c_border);   /*school-secondary  */
}

.n-1-3 > .me > a:hover span,
.n-1-3 > .me > a:focus span {
    color: white !important;
}

/* 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;
}

.n-1-3 > .me.on-1-3 > a {
    unused:~ background: var(--school-light);
    border-left-color: var(--c_border);  /*school-primary*/
}

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

/* ==================== BREADCRUMBS ==================== */
.breadcrumb-container {
    background: var(--c_navibox_background);
    unused:~ border-bottom: 1px solid #F0F0F0;
    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;
}

.breadcrumb-container.active {
    unused:~ color: var(--school-gray);
}
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;
}

#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;
        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: 575.98px), (pointer: coarse) {
    :root {
        --header-height-mobile: 160px;
    }
   
    .n-1-1 > .me.has-submenu:has(> .dropdownmenu) > a > span::after,
    .n-1-2 > .me.has-submenu:has(> .dropdownmenu) > a > span::after,
    .n-1-3 > .me.has-submenu:has(> .dropdownmenu) > a > span::after{
      content: "\f078";                 /* chevron-right */
    }

    /* alle aktiven Menus aufklappen*/
    .on-1-0 > .dropdownmenu,
    .on-1-1 > .dropdownmenu,
    .on-1-2 > .dropdownmenu{
      display: block!important;
    }
    
    /* Hover-Effekte für Modile abschalten*/
    .n-1-0 > .me.has-submenu:hover > .n-1-1,
    .n-1-1 > .me.has-submenu:hover > .n-1-2,
    .n-1-2 > .me.has-submenu:hover > .n-1-3{
      display: none!important;
    }
    .n-1-0 > .me.has-submenu.on-1-0:hover > .n-1-1,
    .n-1-1 > .me.has-submenu.on-1-1:hover > .n-1-2,
    .n-1-2 > .me.has-submenu.on-1-2:hover > .n-1-3{
      display: block!important;
    }
  
    /* Platz rechts für den Pfeil schaffen */
    .n-1-0 > .me.has-submenu > a > span,
    .n-1-1 > .me.has-submenu > a > span,
    .n-1-2 > .me.has-submenu > a > span,
    .n-1-3 > .me.has-submenu > a > span{
      display: block;
      position: relative;
      padding-right: 2.2rem; /* Hitbox für Pfeil */
    }

    /* Pfeil nach unten für Mobile*/
    .n-1-0 > .me.has-submenu > a > span::after,
    .n-1-1 > .me.has-submenu > a > span::after,
    .n-1-2 > .me.has-submenu > a > span::after,
    .n-1-3 > .me.has-submenu > a > span::after{
      unused:~ content: "\f078"!important;
      position: absolute;
      right: .5rem;
      top: 50%;
      transition: transform .2s ease;
      transform: translateY(-50%) rotate(0deg); /* falls du ihn absolut zentrierst */
      transform-origin: center;      
      padding-left: .5rem;
      padding-right: .5rem;
    }
     
    /* Open-Zustand: Pfeil nach oben (180° drehen) */
    .n-1-0 > .me.has-submenu.on-1-0 > a > span::after,
    .n-1-1 > .me.has-submenu.on-1-1 > a > span::after,
    .n-1-2 > .me.has-submenu.on-1-2 > a > span::after,
    .n-1-3 > .me.has-submenu.on-1-3 > a > span::after{
      transform: translateY(-50%) rotate(180deg);
    }

    /* Style Anpassungen für mobile Ansicht*/
    .n-1-0 > .me > a:focus,
    .n-1-1 > .me > a:focus,
    .n-1-2 > .me > a:focus,
    .n-1-3 > .me > a:focus{
      unused:~ border-left: 0!important;
      unused:~ border-left-color: unset!important;
      background: unset!important;
      color: var(--c_navi_active_level_1)!important;
    }
    
    .n-1-0 > .me.on-1-0 > a,
    .n-1-1 > .me.on-1-1 > a,
    .n-1-2 > .me.on-1-2 > a,
    .n-1-3 > .me.on-1-3 > a{
      unused:~ text-decoration:underline!important;
      border-left: 3px solid var(--c_border)!important;
    }    
    .n-1-0 > .me.on-1-0,
    .n-1-1 > .me.on-1-1,
    .n-1-2 > .me.on-1-2,
    .n-1-3 > .me.on-1-3{
      background: transparent!important;
      background-blend-mode: unset!important;
    }    
    
    
    
    .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 */
    .navbar-toggler {
        display: block;
    }
    
    .n-1-0 {
        display: none;
        flex-direction: column;
        background: var(--school-primary-dark);
        padding: 1rem;
    }
    
    .n-1-0.show {
        display: flex;
    }
    
    .n-1-0 > .me {
        width: 100%;
    }
    
    .n-1-0 > .me > a {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .n-1-0 > .me > a:hover,
    .n-1-0 > .me.on-1-0 > a {
        border-left-color: var(--c_border);  /*school-secondary*/
    }
    
    .n-1-1 {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        border-radius: 0;
        min-width: auto;
    }
    
    .n-1-2 {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        border-radius: 0;
        min-width: auto;
    }
    
    .n-1-3 {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        border-radius: 0;
        min-width: auto;
    }
    
    .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;
}

.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;
}
.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;
  }
}

