/* Grundlayout für AKTIV & VITAL Sportstudio 
Hellgrün: #99d42e
Dunkelgrün: #4b904a
Grau: #848182
Schwarz: #000000

Grundlegendes Design für Desktop-Bildschirme (ab 768 Pixel Breite, Standard) */

* {
    margin: 0;
    box-sizing: border-box;    
}

body {
    display: flex;
    background-color: #99d42e;
    justify-content: center;
    font-family: "Comic Sans MS", sans-serif;
    color: #4b904a;
    /*text-align: center;*/
    padding: 1em 0;
}

#page {
    display: grid;
    width: 1070px;
    height: auto; 
    grid-template-columns: 210px 1fr;
    grid-template-areas:
        "head head head"
        "nav  main main"
        "foot main main";
    grid-template-rows: auto;
    gap: 20px;
}

#page > header {
    grid-area: head;
    background: #fff;
	box-shadow: #222 5px 5px 10px;
}

header {
    justify-content: center;
    max-width: 1070px;
    border-radius: 20px;
    padding: 10px 0 10px 10px;
}

span, .child-1, .child-2, .child-3 {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    max-width: 100%;
    height: auto;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;    
}

#page > nav{
    grid-area: nav;
    background-color: #4b904a;
	box-shadow: #222 5px 5px 10px;
    border-radius: 20px;
    height: max-content;
}

/* Grundlegendes Layout der Navbar */
.navbar {
    display: flex;
    align-items: center;
    padding: 20px/* 50px 20px 20px*/;
    position: relative;
}

/* Checkbox unsichtbar machen */
.menu-toggle {
    display: none;
}

/* Menü-Links (Standard für Desktop) */
.nav-links {
    list-style: none;
    display: block;
	font-size: 1.2em;
	line-height: 1.5em;    
    text-align: left;
    margin: 0;
    padding: 0;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
	color: #99d42e;
}

.current-nav {
	color: #99d42e;
}

.current-nav:hover {
	color: #fff;
}

#page > main {
    grid-area: main;
    background-color: #fff;
	box-shadow: #222 5px 5px 10px;
    border-radius: 20px; 
}

.vidcontainer{
    justify-content: center;
    display: flex;
    }

.vid {
    padding: 20px 0 20px 0;
    margin: 20px;
    width: 100%;
    height: 331px;
	box-shadow: #222 5px 5px 10px;
    border-radius: 20px;
    background-color: #4b904a;          
}

.list {
    text-align: left;
	padding-left: 40px    
}

.post, p, h2{
	padding: 10px 10px 10px 20px;    
    text-align: left;
}

.post a{
	color: #4b904a;
}

.post a:hover{
	color: #99d42e;
}

.wirzwei {
    width: auto;
    height: 161px;
    margin: -50px 40px -20px 10px;
    float: right;
}

.turm {
    margin: -10px 10px 100px 10px;
    float: right;
    width: 150px;
    height: 149px;
}

.plan {
    width: 550px;
    height: 309px
}
    
.plan:hover {
    opacity: 1;
    transform: scale(1.5);
}

#page > footer {
    grid-area: nav-start;
    position: relative;
    text-align: center;
    background-color: #fff;
    border-radius: 20px;
	box-shadow: #222 5px 5px 10px;
    margin-top: 290px;
    height: max-content;
}

.under-nav{
	color:#848182;
	list-style: none;
    padding: 10px;
}

.under-nav a {
	color: #848182;
    display: flow-root;
}

.under-nav a:hover {
	color: #4b904a;
}

.current {
    color: #4b904a !important;
}

.current:hover {
    color: #848182 !important;
}

.img_fb {
    width: 40px;
    height: 40px;
    margin: 10px 0;
    border-radius: 5px;
}

/* Anpassung für Mobilgeräte (Bildschirm unter 768 Pixel Breite) */

@media (max-width: 768px) {
    body {
        position: relative;
    }
    
    #page {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar {
        display: flex;
        align-content: center;
        padding: 20px 20px 20px 50%;
    }

/* Hamburger Icon (3 Balken) */
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        gap: 3px;
    }

    .hamburger-icon span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-links {
        display: none; /* Standardmäßig ausgeblendet auf Handys */
        flex-direction: column;
        position: absolute;
        top: 80%;
        left: 80px;
        right: 80px;
        background-color: #4b904a;
        border-radius: 20px;
        text-align: center;
        padding: 1rem 0;
    }

    .nav-links li {
        margin: 5px 0;
    }

  /* Wenn Checkbox aktiviert ist, Menü anzeigen */
    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }

  /* Animation des Hamburger-Icons zum "X" */
    .menu-toggle:checked + .hamburger-icon span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle:checked + .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .hamburger-icon span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .topvid {
        max-width:100%;
        margin: 0;        
    }

    .wirzwei {
        margin: 10px 40px 10px 10px;
        float: right;
    }
    
    .plan:hover {
        transform: scale(1);
}
    
    #page > footer {
        margin-top: 0px;
    }
    
    .under-nav {
	    list-style: none;
        content-align: center;       
    }
}   
    