/* 
 * layout.css
 * Grundlegendes Layout und Struktur
 */

/* Hauptcontainer */
#leinwand {
    padding: 3.5rem 3.5rem 1.2rem 3.5rem;
    min-width: 900px;
}

/* Kopfzeilen-Bereich */
#kopfzeile__container {
    position: relative;
    z-index: 999;
    height: 100%;
}

#kopfzeile__container::after,
#inhalt__container::after,
#fusszeile__container::after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

/* Seitenleisten-Layout */
body.seitenleiste #kopfzeile__container {
    position: absolute;
    top: 3.5rem;
    left: 3.5rem;
    width: 15rem;
}

body.seitenleiste.fixiert #kopfzeile__container {
    position: fixed;
}

body.seitenleiste #inhalt__container,
body.seitenleiste #fusszeile__container {
    width: auto;
    margin-left: 18rem;
}

body.fixiert #kopfzeile__container.absolut {
    position: absolute;
}

/* Blaue Randleisten */
.rand__blau-links {
    background: var(--farbe-blau);
    background: linear-gradient(180deg,
            rgba(0, 128, 200, 1) 0%,
            rgba(0, 128, 200, 1) 20%,
            rgba(0, 128, 200, 0.8) 20%,
            rgba(0, 128, 200, 0.8) 40%,
            rgba(0, 128, 200, 0.6) 40%,
            rgba(0, 128, 200, 0.6) 60%,
            rgba(0, 128, 200, 0.4) 60%,
            rgba(0, 128, 200, 0.4) 80%,
            rgba(0, 128, 200, 0.2) 80%);
    position: fixed;
    top: 0;
    left: 0;
    width: 9px;
    height: 100%;
    z-index: 1000;
}

.rand__blau-rechts {
    background-color: rgba(0, 128, 200, 1);
    opacity: 0.5;
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    height: 100%;
    z-index: 25000;
    display: none;
}

/* Hauptcontainer */
#kopfzeile,
#seite,
#fusszeile {
    padding: 0;
}

#seite {
    position: relative;
}

/* Logo-Bereich */
#logo {
    line-height: 0;
    margin: 0;
    display: block;
    width: 300px;
    max-width: 15rem;
    margin-bottom: 2rem;
}

#logo .logo__untertitel {
    line-height: 1;
    color: var(--farbe-text-hell);
}

#logo .logo__untertitel a:hover {
    color: var(--farbe-blau) !important;
}

#logo .logo__titel {
    line-height: 1.2;
    font-size: 1.25rem;
    font-weight: 600;
}

#logo .logo__titel a:hover {
    color: var(--farbe-blau);
}

/* Überschriften-Bereich */
#ueberschrift {
    line-height: 0;
    display: block;
    margin-bottom: 2rem;
    text-align: left;
    margin-top: 2rem;
}

/* Anpassung für Unterseiten */
#ueberschrift {
    margin-top: 0;
}

#ueberschrift .ueberschrift__titel {
    line-height: 1.2;
    font-size: 1.25rem;
    font-weight: bolder;
    color: var(--farbe-rot);
}

#ueberschrift .ueberschrift__untertitel {
    line-height: 1;
    color: var(--farbe-text-hell);
}

/* Spalten-Layout */
.spalten__zwei {
    column-count: 2;
    column-gap: 1rem;
    column-span: all;
}

.spalten__fuenf {
    column-count: 5;
    column-gap: 1rem;
    column-span: all;
}

.spalten__fuenf img {
    width: auto !important;
    height: 5rem !important;
}

/* Fußzeile */
.fusszeile {
    color: var(--farbe-text-hell);
    font-size: 0.8rem;
    text-align: right;
    line-height: 1;
    padding: 1.2rem 3.5rem 1.2rem 3.5rem;
    margin-top: 1rem;
}

.fusszeile__hintergrund {
    background-color: var(--farbe-grau-hell);
}

/* Logo-Anpassungen */
.logo__cc {
    margin-left: 1rem;
    margin-bottom: 0.8rem;
    float: right;
}

.logo__wm {
    float: right;
}

.logo__cc img {
    width: auto;
    height: 4rem;
}

.logo__wm img {
    padding: 1rem 0;
    padding-left: 1.25rem;
    width: auto;
    height: 4rem;
}

/* Anzeigesteuerung für Responsive Layouts */
.nur__desktop {
    display: block;
}

.nur__mobil {
    display: none !important;
}

/* Responsive Anpassungen für Tablets und Mobilgeräte */
@media screen and (max-width: 768px) {
    /* Smartphone */
    #leinwand {
        min-width: 0;
        padding: 0;
    }

    #logo {
        margin-bottom: 0;
    }

    #logo .logo__untertitel {
        font-size: 1rem;
    }

    #logo .logo__titel {
        font-size: 2.1rem;
    }

    #inhalt__container {
        margin: 0 !important;
        padding: 1.2rem !important;
    }

    .nur__desktop {
        display: none !important;
    }

    .nur__mobil {
        display: block !important;
    }

    body {
        overflow: visible !important;
    }

    #kopfzeile__container {
        float: none !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        padding: 1.2rem;
    }

    #logo {
        margin-right: 5rem;
    }

    #nav__oben {
        margin-bottom: 0;
    }

    .galerie__item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .fusszeile {
        padding: 0 1rem 2rem 1rem;
        text-align: center;
    }
        
    .fusszeile__hintergrund {
        padding-top: 1rem;
    }

    .logo__cc img {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
        margin-left: 1rem;
    }
    
    .logo__wm img {
        width: 100%;
    }

    #ueberschrift {
        text-align: left;
        padding: 0;
        margin: 0;
        margin-bottom: 1rem;
    }
    
    .logo__cc {
        float: none;
    }

    .spalten__zwei {
        column-count: 1;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* Tablet */
    body {
        overflow: visible !important;
    }

    #leinwand {
        padding: 0;
    }

    #kopfzeile__container {
        float: none !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        padding: 1.2rem;
    }

    #logo {
        margin-right: 5rem;
        margin-bottom: 0;
    }

    #logo .logo__untertitel {
        font-size: 1rem;
    }

    #logo .logo__titel {
        font-size: 2.1rem;
    }

    #nav__oben {
        margin-bottom: 0;
    }

    #inhalt__container {
        margin: 0 !important;
        padding: 1.2rem !important;
    }

    .nur__desktop {
        display: none !important;
    }

    .nur__mobil {
        display: block !important;
    }

    .galerie__item {
        flex: 0 0 49.55%;
        max-width: 49.55%;
    }

    .fusszeile {
        padding: 0 1rem 2rem 1rem;
        text-align: center;
    }
        
    .fusszeile__hintergrund {
        padding-top: 1rem;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1200px) {
    /* Kleiner Desktop */
    .galerie__item {
        flex: 0 0 49.55%;
        max-width: 49.55%;
    }
}

@media screen and (min-width: 1201px) and (max-width: 1600px) {
    /* Standard-Desktop */
    .galerie__item {
        flex: 0 0 32.33%;
        max-width: 32.33%;
    }
}

@media screen and (min-width: 1601px) {
    /* Großer Desktop */
    .rand__blau-rechts {
        display: block;
    }

    .galerie__item {
        flex: 0 0 24.325%;
        max-width: 24.325%;
        margin-bottom: 0;
    }
}