:target::before {
    content: '';
    display: block;
    height: 100px;
    margin-top: -100px;
}

* {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

hr {
    height: 1px;
    background-color: black;
    border: none;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    border: 0;
    min-height: 100vh;
}
.container {
    display: grid;
    grid-template-rows: 80px auto 1fr auto 68px;
    grid-template-columns: 1fr 4fr 1fr;
    min-height: 100vh;
    grid-template-areas:
        "header        header        header"
        "navigation    slider        left-aside"
        "navigation    main          left-aside"
        "navigation    main          left-aside"
        "footer        footer        footer";
    font-weight: 600;
    font-size: 20px;
}

.header {
    grid-area: header;
    background-color: #cf0000;
    padding: 20px;
    height: auto;
    text-align: center;
    position: relative;
    color: white;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
}

.left-aside {
    grid-area: left-aside;
    min-height: 84.4vh;
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    border-left: 1px solid black;
}

.left-aside ul li a {
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-anker {
    position: relative;
    color: black;
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
}


.news-anker:hover::after {
    width: 100%;
    left: 0;
}

.go-up {
    height: 60px;
    width: 60px;
    position: fixed;
    font-size: 52px;
    bottom: 40px;
    right: 50px;
    background-color: rgba(255, 0, 0, 0.8);
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0; /* Anfangs unsichtbar */
    visibility: hidden; /* Anfangs unsichtbar */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 98; /* Über anderen Elementen */
}

.go-up.show {
    opacity: 1; /* Sichtbar */
    visibility: visible; /* Sichtbar */
}

.go-up a i {
    font-weight: bold;
    color: white;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 2px;
    font-size: 36px;
}


/* Standardstil für das Logo */
.logo-start {
    transition: transform 0.5s ease;
    cursor: pointer;
}

/* Rotation beim Klick */
.logo-start:active {
    transform: rotate(360deg);
}


.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
}

.sidebar-menu ul li {
    margin: 10px 0;
}

.sidebar-menu ul li a {
    position: relative;
    color: black;
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
}

.sidebar-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: rgb(0, 0, 0);
    transition: width 0.2s ease, left 0.2s ease;
}

.sidebar-menu ul li a:hover::after {
    width: 100%;
    left: 0;
}

.main {
    grid-area: main;
    background-color: #efefef;
    padding: 20px;
    justify-content: center;
    gap: 15px;
    font-size: 12px;
    font-weight: 400;
}

.main h3 {
    font-size: 32px;
}

.main h4 {
    font-size: 20px;
}

.main p {
    font-size: 16px;
    text-align: justify;
    display: flex;
    align-items: center;
}

.main h5 {
    font-size: 20px;
}

.main li {
    list-style-type: none;
    margin-bottom: 16px;
    font-size: 14px;
}

.logo-main {
    display: flex;
    text-align: center;
    justify-content: center;
}

.adress-main {
    display: flex;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    color: black;
    font-weight: bold;
    transition: 0.2s linear;
}

.adress-main:hover {
    color: rgb(100, 0, 0);
}

.navigation {
    grid-area: navigation;
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    position: relative;
    color: black;
    border-right: 1px solid black;
}

.slider {
    grid-area: absolute;
    background-color: #efefef;
    padding: 0px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    height: 26px;
    border-bottom: 1px solid black;
}

.footer {
    grid-area: footer;
    background-color: #cf0000;
    padding: 20px;
    text-align: center;
    color: white;
    width: 100%; /* Volle Breite des Containers */
    min-height: 66px;
}

.footer a {
    color: white;
    font-size: 16px;
    text-decoration: none;
    transition: all .55s ease;
}

.close-menu {
    display: none;
}

.logo-header,
.logo-header2 {
    position: absolute;
    top: 0;
    height: 80px;
}

.logo-header {
    right: 20px;
}

.logo-header2 {
    left: 20px;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-continuous 28s linear infinite;
    font-size: 16px;
    font-weight: 500;
}

.arcticle-pic {
    height: 100px;
    margin-right: 20px;
}

.likeandunlikeform {
    display: flex;
    margin-right: 8px;
}

.likebtn,
.unlikebtn {
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    margin-right: 8px;
    font-weight: 800;
}

.likebtn {
    background: rgb(80, 147, 80);
}

.unlikebtn {
    background: rgb(255, 80, 80);
}

.likebtn:hover {
    background: rgb(113, 193, 113);
}

.unlikebtn:hover {
    background: rgb(255, 124, 124);
}

.link {
    color: blue;
}

.link:hover {
    color: rgb(61, 61, 135);
}

.navbar-extra {
    width: 100%;
    position: absolute;
    margin: 0;
    padding: 0;
    left: 0;
    top: 460px;
}

.instagram-logo {
    height: 28px;
    width: 28px;
}

.instagram-div {
    align-items: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.instagram-link {
    margin-left: 8px;
    font-size: 16px;
    color: blue;
    text-decoration: none;
}

.flex {
    display: flex;
}

.addadform .textfield {
    resize: none;
    width: 300px;
    border: 1px solid black;
    padding: 4px 8px;
    border-radius: 4px;
}

.uploadfile::file-selector-button {
    color: black;
    padding: 0.2em 0.4em;
    border: none;
    border-radius: 3px;
    border: 1px solid black;
}

.submitbtn {
    color: rgb(255, 255, 255);
    background:  rgb(0, 100, 25);
    padding: 0.2em 0.4em;
    border: none;
    border-radius: 3px;
    border: 1px solid black;
}

.verwaltung-pic {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.verwaltung-pic img {
    height: 100px;
    border-radius: 4px;
    margin: 10px 0;
}

.verwaltung-pic form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.ads-flex {
    display: flex;
}

.ads-flex div {
    margin: 0px 20px;
    width: 100%;
}

.edit-area {
    min-width: 300px;
}

.edit-area .textfield {
    resize: none;
    width: 300px;
    border: 1px solid black;
    padding: 4px 8px;
    border-radius: 4px;
}

.deletepicbtn {
    position: inherit;
    border: none;
    background: none;
    margin-right: 24px;
    font-size: 18px;
}

.deleteallbtn {
    color: rgb(255, 255, 255);
    background:  rgb(255, 0, 0);
    padding: 0.2em 0.4em;
    border: none;
    border-radius: 3px;
    border: 1px solid black;
}

.login-form {
    text-align: center;
    margin-top: 60px;
}

.login-form input {
    width: 300px;
    padding: 4px 8px;
    border: 1px solid black;
    border-radius: 8px;
}

.login-form button {
    color: rgb(255, 255, 255);
    background:  black;
    padding: 0.2em 0.4em;
    border: none;
    border-radius: 3px;
    border: 1px solid black;
}

.steckbrief {
    display: flex;
}

.steckbrief img {
    width: 350px;
    height: 350px;
    object-fit: contain;
}

.steckbrief-info {
    margin-top: 48px;
    margin-left: 32px;
}

.steckbrief-info p {
    margin-left: 5px;
    font-size: 14px;
}

.trainingsplan {
    min-width: 300px;
    max-width: 800px;
    width: 100%;
}

.download-files a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    margin: 10px 0;
    font-size: 16.342px;
}

.download-icon {
    margin-top: 4px;
    margin-right: 8px;
    font-size: 18px;
}

.verlinkung {
    font-weight: bold;
    text-decoration: none;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    margin: auto;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2em;
    cursor: pointer;
}

.eye-icon {
    position: absolute;
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    margin-left: 2px;
}

.articlediv-wrap´{
    display: flex;
    flex-wrap: wrap;
}

.guertel {
    position: absolute;
    width: 100%;
    margin: 0;
    padding: 0;
    left: 0;
}

@keyframes scroll-continuous {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (min-width: 1200px) {
    .menu-toggle {
        display: none;
    }

    .navigation {
        display: block;
    }
}

@media (max-width: 1199px) {
    .container {
            grid-template-columns: 1fr;
            grid-template-rows: auto;
            grid-template-areas:
                "header"
                "slider"
                "main"
                "left-aside"
                "footer";
        }

    .left-aside {
        position: absolute;
        visibility: hidden;
    }

    .navigation {
        position: fixed;
        top: 0;
        left: -250px; 
        height: 100%;
        width: 250px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s ease;
    }

    .navigation.open {
        left: 0;
    }

    .menu-toggle {
        display: block;
        z-index: 10;
        position: absolute;
        top: 10px;
        left: 20px;
    }

    .close-menu {
        display: block;
        background: transparent;
        border: none;
        color: black;
        font-size: 30px;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    .header h1 {
        font-size: 18px;
    }

    .logo-header {
        height: 50px;
    }

    .logo-header2 {
        visibility: hidden;
    }
    .main h3 {
        font-size: 24px;
    }
    .main h5 {
        font-size: 16px;
    }

    .main li {
        margin-bottom: 8px;
    }
}

@media (max-width: 599px) {
    .instagram-link {
        margin-left: 8px;
        font-size: 14px;
        color: blue;
        text-decoration: none;
    }
    .instagram-div {
        left: 5%;
        bottom: 18%;
    }
    .logo-header {
        visibility: hidden;
    }
    .main h3 {
        font-size: 20px;
    }

    .steckbrief {
        display: block;
    }

    .steckbrief-info {
        margin: 0;
    }

    .steckbrief-info p {
        margin-left: 2px;
    }

    .footer {
        display: flex;
        flex-direction: column;
        min-height: 120px;
    }

    .footer a {
        padding: 5px 0;
    }

    .footer a::after{
        content: "";
    }
}