/* Stylesheet für WTEED.com */
/*
@import url(basic.css);
@import url(layout.css);
@import url(layout-modern.css);
@import url(navi-responsive.css);
@import url(content.css);
*/

/* 1) Globale Einstellungen für die gesamte Wenbseite */

/* Variablen */

:root {
    --bars_bg_color: #FFCA00;
    --bars_bg_color_dark: #F0E084;
    --bars_max_width: 80vw;
}



/* Schriften Fonts */

@font-face {
    font-family: "PT Sans";
    src: url('../fonts/PT_Sans-Web-Italic.woff2') format('woff2'), url('../fonts/PT_Sans-Web-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic
}


/* border-box aktivieren */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* sanftest scrollen aktivieren */
    scroll-behavior: smooth;
}

img,
video {
    max-width: 100%;
    height: auto;
}

figure,
blockquote {
    margin-right: 0;
    margin-left: 0;
}


h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
blockquote {
    margin-top: 0;
}

/* 2) Grundlegende Gestaltung von Schrift und Text */

body {
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */

    font-family: "PT Sans";
    font-size: 1rem;
    display: flex;
    flex-flow: column;
    min-height: 100vh;
    margin: 0;
}


h1 {
    font-size: 0.1rem;
    font-weight: 500;
}



/* 3) nützliche allgemeine Klassen */


.visually-hidden {
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
    overflow: hidden !important;
    white-space: nowrap !important;

    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    margin: -1px !important;
}

.float-right {
    float: right;
    margin: 0rem 0 0 1rem;
}

.float-left {
    float: right;
    margin: 1rem 0 0 0rem;
}

.float-stop {
    clear: both;
}

figure[class~="float-right"],
figure[class~="float-left"] {
    text-align: center;
}

.float-umschliessen {
    overflow: hidden;
}

@supports (display: flow-root) {
    .float-umschliessen {
        display: flow-root;
        overflow: initial;
    }
}

/* 1) Klasisches Seintenlayout (begrenzte Breite, zentriert) */

body {
    background-image: url(../pictures/vintage-concrete.png);
    min-width: 320px;
}

/* 2) Kopfbereich (inclusive Inhalte) */


/* 3) Fußbereich (inclusive Inhalte) */

/* Grundllegende Gestaltung für den Footer */
.site-footer {
    font-size: smaller;
    background-image: linear-gradient(var(--bars_bg_color_dark), var(--bars_bg_color));
    padding: 0.8rem 2rem;
}

/* Navigation im Fußbereich gestalten */

.footer-nav ul {
    display: flex;
    padding: 0;
    list-style: none;
    margin: 0;
    max-width: var(--bars_max_width);
    margin-left: auto;
    margin-right: auto;
}

.footer-nav li {
    /* display: inline; */
    margin-right: 00.5rem;
}

.footer-nav li:first-child {
    padding-right: 00.5rem;
    border-right: 1px solid #eee;
}

.footer-nav li:last-child {
    margin-right: 00rem;
    margin-left: auto;
}

.site-footer a {
    display: block;
    color: white;
    text-decoration: none;
    padding-top: 0;
    margin-top: 0px;
}

/* umgestalten auf volle Bildschirmbreite (modern) */


body {
    max-width: none;
    padding: 0;
    margin: 0;
}

.site-header,
.site-content,
.site-footer {
    padding-left: 0;
    padding-right: 0;
}


/* 1) Gestaltung der Links im Inthaltsbereich */

.site-content a:hover,
.site-content a:focus {
    color: #ff6633;
}



/* 2) Gestaltung des Artikel Textes */

article {
    padding: 0 2rem 0 2rem;
}

article>h2 {
    color: #268BD2;
    font-size: clamp(2rem, 3vw, 4rem);
    font-weight: 500;
    margin: 0;
}

article>h3 {
    color: #268BD2;
    font-size: 2rem;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 500;
}

/* ------------ Navigation  */
/* zuerst das schmale Burgermenu */
.site-nav {

    background-image: linear-gradient(var(--bars_bg_color), var(--bars_bg_color_dark));
    z-index: 2;
}
.site-nav ul {
    display: flex;
    flex-flow: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav a {
    /* Links zu Blöcken damit das Menü ausgefüllt wird */
    display: block;
    text-decoration: underline;
    font-size: x-large;
    color: black;
    padding: 0.5rem 1rem;
}


.site-nav a:hover,
.site-nav a:focus {
    background-color: orange;
}


.no-js .menubutton {
    /* wenn kein JS vorhanden Menubuton ausblenden */
    display: none;
}

.js .menubutton {
    display: flex;
    /* das ist notwendig da ::before Inlinebox erzeugt und dann keine width und height akzepiert wird, durch flex geht das wieder */
    align-items: center;
    cursor: pointer;
    background: inherit;
    color: white;
    font: inherit;
    text-align: center;

    padding: 0.5rem 1rem;
    border: 0;
    margin: 0;
}

.js .menubutton::before {
    content: url(../pictures/menuburger.svg);
    width: 1rem;
    /* klappt nur in einem Flex container */
    height: 1rem;
    margin-right: 0.25rem;
}

/* navigation ausblenden, die soll erst bei Klick auf Menubuton erscheinen */
.js .site-nav ul {
    max-height: 0;
    overflow: hidden;
    padding: 0;
}


.js .showmenu+ul {
    /* showmenu wird im HTML mit onclick hinzugefügt */
    max-height: 100rem;
    transition: max-height 0.5s ease;
    overflow: auto;
}

.js .showmenu.menubutton::before {
    /* Burgersymbol gegen ein X austauschen */
    content: url(../pictures/menuclose.svg);
}


/* breites Menü */

@media screen and (min-width: 600px) {
    .menubutton {
        display: none !important;
    }

    .site-nav {
        position: sticky;
        top: 0;
    }

    .site-nav {
        padding: 0 1rem;
    }

    .site-nav ul {
        max-height: none !important;
        flex-flow: row;
        padding: 0;
        align-items: center; /* vertikal in die Mitte */
        max-width: var(--bars_max_width);
        margin-left: auto;
        margin-right: auto;
    }

    .site-nav li {
        flex: 1; /* macht alle Listenelemente gleich breit */
        max-width: 10rem;
        text-align: center;
    }

    .site-nav li:last-child {
        margin-right: 0; /* Letzes Element nach rechts schieben */
        margin-left: auto;
    }
}

/* Ende @media */

/* ---------------- Header Grid mit den Bildern und einem Text ---*/
header {
    height: fit-content;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* grid-template-rows: 1fr 1fr; das würde beide Zeilen gleich hoch machen */
    place-items: center;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.bg_header_image {
    width: 100vw;
    grid-column: 1 / span 3;
    grid-row: 1 / span 2;
}

.apaled_pic_anim_set {
    grid-column: 2 / span 1;
    grid-row: 1 / span 1;
}

.text_header_pic {
    grid-column: 1 / span 3;
    grid-row: 2 / span 1;
    color: #268BD2;
    font-size: clamp(2rem, 3vw, 4rem);
    font-weight: 500;
    background-color: var(--bars_bg_color);
    padding: 0.5rem 2rem 0.5rem 2rem;

}


/* --------------------Ein und Ausblenden (Überblenden) des ApaLED Bildes */
/* code von https://blog.hubspot.com/website/css-fade-in#image-transition */
@keyframes apaled_pic_anim {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.apaled_pic_anim_pic2 {
    animation-name: apaled_pic_anim;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-duration: 3s;
}

/* END --------------------Ein und Ausblenden (Überblenden) der Gloriettebilder */