/* ==============================================
   kges_modern.css – modernes Layout für alle Seiten
   ============================================== */

/* Basis */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
background-color: #e9ecef;  /* hellgrau 200 */
    color: #333333;             /* Standardtextfarbe, optional */
}

/* Gesamt-Container */
.page_margins {
    max-width: 950px;
    margin: 0 auto;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
#header {
    text-align: center;

}

/* Navigation (oben, falls noch sichtbar) */
#nav .hlist ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#nav .hlist li.active a {
    font-weight: bold;
}

/* ==============================================
   Hauptbereich – 3 Spalten
   ============================================== */
#main {
    display: flex;
    flex-direction: row;   /* Spalten nebeneinander */
    flex-wrap: nowrap;
    gap: 10px;
    align-items: flex-start;
}

/* Linke Spalte - Navigation */
#col2 {
    flex: 0 0 115px;          /* feste Breite */
    background: #e9ecef; 
    padding: 10px;
    display: flex;
    flex-direction: column;   /* Links untereinander */
    align-self: stretch;      /* gleiche Höhe wie mittlere Spalte */
    position: sticky;         /* Sticky beim Scrollen */
    top: 20px;                /* Abstand vom oberen Rand */
}

/* Inhalt in linker Spalte */
#col2_content {
    padding: 10px;
}

.left-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.left-links li {
    margin-bottom: 10px;
}

.left-links a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    display: block;
}

.left-links a:hover {
    color: #0077cc;
}

/* Mittlere Spalte - Hauptinhalt */
#col1 {
    flex: 1 1 auto;        /* flexible Breite */
    background: #fff 
    padding: 20px;
}

/* Rechte Spalte - optional Bilder / Info */
#col3 {
    flex: 0 0 115px;       /* feste Breite */
    background: #e9ecef
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    position: sticky;
    top: 20px;
}

/* Rechte Spalte – Bilder untereinander */
#col3_content {
    display: flex;          /* Flexbox aktivieren */
    flex-direction: column; /* vertikal anordnen */
    gap: 10px;              /* Abstand zwischen den Bildern */
}

#col3_content img {
    width: 100%;     /* Bilder füllen die Spaltenbreite */
    height: auto;    /* Höhe proportional */
}

/* Floatende Bilder in mittlerer Spalte */
.float-left {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.float-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

/* Texte in mittlerer Spalte */
#col1 p {
    word-wrap: break-word;
    text-align: justify;
}

/* Überschriften */
h3, h4, h5 {
    margin-top: 0;
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
}

/* Footer */
#footer {
    flex-shrink: 0;
    text-align: center;
    padding: 10px 0;
    background-color: #551285; /* EVLKA purple */
 color: #fff;             /* Text weiß */
    border-top: 1px solid #ccc;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Skiplinks unsichtbar, aber zugänglich */
.skip, .hideme {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.skip:focus {
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    background: #ffff00;
    padding: 2px 5px;
    z-index: 1000;
}

/* ==============================================
   Responsive Layout für kleine Bildschirme
   ============================================== */
@media (max-width: 1000px) {
    #main {
        flex-direction: column; /* Spalten untereinander */
    }

    #col1, #col2, #col3 {
        flex: 1 0 auto;
        max-width: 100%;
        align-self: stretch;
    }

    .float-left, .float-right {
        float: none;
        margin: 0 0 10px 0;
    }

    #col2, #col3 {
        position: relative;
        top: 0;
    }

/* Topnav rechtsbündig */

#topnav {
    text-align: right;     /* Rechtsbündig */
    padding: 10px 20px 0 0; /* Abstand nach oben und rechts, optional */
}

#topnav a {
    color: #551285;           /* Linkfarbe */
    text-decoration: none;
    margin-left: 5px;      /* Abstand zwischen den Links */
}

#topnav a:hover {
    text-decoration: underline;
}