:root {
    --bg-gradient-start: #1b4fd8;
    --bg-gradient-end: #4f9cff;
    --header-bg: #0f152b;
    --footer-bg: #0f152b;
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --accent: #4f9cff;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-main);
    color: var(--text-main);
    background: linear-gradient(180deg, var(--bg-gradient-start), var(--bg-gradient-end));
}

/* ---------------------------------------------------
   HEADER
--------------------------------------------------- */

.header {
    background: var(--header-bg);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: relative; /* WICHTIG für Mobile-Menü */
}

.header-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
}

.dropdown {
position: relative;
}

.dropdown-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
min-width: 180px;
padding: 8px 0;
margin: 0;

list-style: none;

background: var(--header-bg);
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);

z-index: 1000;
}

.dropdown-menu li {
width: 100%;
}

.dropdown-menu a {
display: block;
padding: 10px 15px;
color: var(--text-main);
text-decoration: none;
}

.dropdown-menu a:hover {
background: rgba(255,255,255,0.08);
}

.dropdown:hover .dropdown-menu {
display: block;
}

/* Klickbares Logo + Titel */
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-link:hover,
.brand-link:focus,
.brand-link:visited,
.brand-link:active {
    color: var(--text-main);
    text-decoration: none;
}

.logo {
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-main);
    line-height: 1;
}

/* NAVBAR Container */
.navbar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto; /* Schiebt Burger + Menü nach rechts */
}

/* Desktop-Navigation */
.nav-links-header {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.nav-links-header li {
    list-style: none;
}

.nav-links-header a {
    color: var(--text-main);
    text-decoration: none;
    padding: 5px 10px;
    font-size: 0.95rem;
}

/* Burger-Button (Standard: versteckt auf Desktop) */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: auto; /* Burger ganz nach rechts */
}


.burger-menu .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
}
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;

    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
}

.feature-card {
    background: linear-gradient(
        135deg,
        rgba(15, 21, 43, 0.95),
        rgba(8, 15, 30, 0.95)
    );

    border: 1px solid rgba(79, 156, 255, 0.15);
    border-radius: 25px;

    padding: 30px;

    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);

    border-color: rgba(79, 156, 255, 0.4);

    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;

    border-radius: 15px;

    background: rgba(79, 156, 255, 0.1);

    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}
/* ---------------------------------------------------
   MOBILE
--------------------------------------------------- */

@media (max-width: 768px) {

    /* Header Layout */
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    margin-left: 15px;}

    .dropdown:hover .dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    .dropdown > a::after {
    margin-left: 5px;
    }

    .logo {
    font-size: 1.3rem;
    }

    .header-logo {
    width: 52px;
    height: 52px;
    }
    /* Burger auf Mobile anzeigen */
    .burger-menu {
        display: flex;
    }

    /* Navigation auf Mobile verstecken */
    .nav-links-header {
        display: none;
        align-items: center;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0; /* Menü rechts ausrichten */
        width: 70%;
        background-color: #333;
        padding: 10px 0;
        z-index: 999;
        border-radius: 0 0 0 10px;
    }

    /* Aktiviertes Mobile-Menü */
    .nav-links-header.active {
        display: flex;
    }

    .nav-links-header a {
        padding: 15px;
        text-align: left;
    }

}

/* ---------------------------------------------------
   MAIN / HERO
--------------------------------------------------- */

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
    text-align: center;
}

.hero h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
}

.hero p {
    margin: 0;
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}

/* ---------------------------------------------------
   IMPRESSUM
--------------------------------------------------- */

.impressum {
    text-align: left;
    line-height: 1.6;
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.impressum h1 {
    text-align: left;
}
/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
.footer{
    background: var(--footer-bg);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: relative; /* WICHTIG für Mobile-Menü */
}

/* HIER kommt es rein */
.footer-left,
.footer-center,
.footer-navbar {
    flex: 1;
}

.footer-center {
    text-align: center;
    color: var(--text-muted);
    font-size: 2.0rem;
}

.footer-navbar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto; /* Schiebt Burger + Menü nach rechts */
}

/* NAVBAR Container */
.navbar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto; /* Schiebt Burger + Menü nach rechts */
}

/* Desktop-Navigation */
.nav-links-footer {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.nav-links-footer li {
    list-style: none;
}

.nav-links-footer a {
    color: var(--text-main);
    text-decoration: none;
    padding: 5px 10px;
    font-size: 0.95rem;
}

/* Burger-Button (Standard: versteckt auf Desktop) */
.footer-burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: auto; /* Burger ganz nach rechts */
}
.footer-burger-menu .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
}

@media (max-width: 768px) {

    .footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        margin-left: auto;
    }

    .nav-links-footer {
        display: none;
        flex-direction: column;
        position: absolute;
        bottom: 100%;
        right: 0;
        width: 70%;
        margin: 0;
        padding: 10px 0;
        background-color: #333;
        z-index: 9999;
        border-radius: 10px 0 0 0;
    }

    .nav-links-footer.active {
        display: flex;
    }

    .nav-links-footer li {
        list-style: none;
        width: 100%;
    }

    .nav-links-footer a {
        display: block;
        padding: 15px;
        text-align: left;
    }
}