/*
=================================================
VARIABLEN
=================================================
*/

:root{
    --sidebar-width: 280px;
}

/*
=================================================
GRUNDEINSTELLUNGEN
=================================================
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    color:#333;
    min-height:100vh;

    background-image:url('../images/hintergrund.jpg');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment:fixed;
}

/*
=================================================
SIDEBAR
=================================================
*/

.sidebar{
    position:fixed;
    top:0;
    left:0;

    width:var(--sidebar-width);
    height:100vh;

    background:rgba(0,0,0,0.35);

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    border-right:1px solid rgba(255,255,255,0.1);

    padding:30px;

    z-index:1000;
}

.logo{
    color:white;
    font-size:28px;
    font-weight:bold;
    margin-bottom:40px;
}

/*
=================================================
NAVIGATION
=================================================
*/

.sidebar ul{
    list-style:none;
}

.sidebar ul li{
    margin-bottom:10px;
}

.sidebar ul li a{
    display:block;

    padding:12px;

    color:white;
    text-decoration:none;

    border-radius:8px;

    transition:all .3s ease;
}

.sidebar ul li a:hover{
    background:rgba(255,255,255,0.15);
}

/*
=================================================
HAUPTBEREICH
=================================================
*/

main{

    margin-left:var(--sidebar-width);

    width:calc(100% - var(--sidebar-width));

    min-height:100vh;

    padding:40px;

    background:transparent;

   
}

main h1{
    margin-bottom:20px;
}

main h2{
    margin-bottom:15px;
}

main p{
    line-height:1.7;
    margin-bottom:15px;
}

/*
=================================================
CONTENT BOXEN
=================================================
*/

.content-box{
    background:white;
    padding:25px;
    border-radius:12px;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.08);

    margin-bottom:25px;
}

/*
=================================================
FORMULARE
=================================================
*/

form{
    max-width:700px;
}

input,
textarea{
    width:100%;

    padding:12px;

    margin-bottom:15px;

    border:1px solid #ccc;
    border-radius:8px;

    font-size:16px;
}

textarea{
    min-height:180px;
    resize:vertical;
}

button{
    border:none;

    background:#0077cc;
    color:white;

    padding:12px 20px;

    border-radius:8px;

    cursor:pointer;

    transition:.3s;
}

button:hover{
    background:#005ea1;
}

/*
=================================================
TABELLEN
=================================================
*/

table{
    width:100%;
    border-collapse:collapse;
    background:white;
}

table th{
    background:#0077cc;
    color:white;
}

table th,
table td{
    padding:12px;
    border:1px solid #ddd;
}

table tr:nth-child(even){
    background:#f7f7f7;
}

/*
=================================================
BILDER
=================================================
*/

img{
    max-width:100%;
    height:auto;
    border-radius:8px;
}

/*
=================================================
ONLINE ZÄHLER
=================================================
*/

.online-counter{
    position:fixed;

    right:20px;
    bottom:20px;

    background:rgba(0,0,0,0.75);

    color:white;

    padding:10px 16px;

    border-radius:50px;

    font-size:14px;

    backdrop-filter:blur(10px);

    z-index:9999;
}

/*
=================================================
MOBILE BUTTON
=================================================
*/

.menu-toggle{

    display:none;

    position:fixed;

    top:15px;
    left:15px;

    width:50px;
    height:50px;

    border:none;

    background:rgba(0,0,0,0.75);

    color:white;

    font-size:24px;

    border-radius:8px;

    cursor:pointer;

    z-index:1100;
}

/*
=================================================
FOOTER
=================================================
*/

footer{
    margin-left:var(--sidebar-width);

    width:calc(100% - var(--sidebar-width));

    padding:20px 40px;
}

/*
=================================================
MOBILE ANSICHT
=================================================
*/

@media(max-width:768px){

    .menu-toggle{
        display:block;
    }

    .sidebar{

        width:100%;
        height:100vh;

        transform:translateX(-100%);

        transition:.3s ease;

        background:rgba(0,0,0,0.95);

        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
    }

    .sidebar.active{
        transform:translateX(0);
    }

    .logo{
        text-align:center;
        margin-bottom:50px;
    }

    .sidebar ul{
        width:100%;
        text-align:center;
    }

    .sidebar ul li a{
        font-size:24px;
        padding:15px;
    }

    main{

        margin-left:0;

        width:100%;

        padding:
            120px
            20px
            20px
            20px;
    }

    footer{
        margin-left:0;
        width:100%;
        padding:20px;
    }

    .online-counter{
        right:10px;
        bottom:10px;
        font-size:12px;
    }
}