html {
    scroll-behavior: smooth
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: 'Poppins', sans-serif;
    color: #e6ebf2;
    line-height: 1.6;

    background-image: url("bilder/8.JPG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    transition: background-position 0.2s ease-out;
}

/* darker overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(12, 16, 24, 0.35) 0%,
            rgba(10, 14, 22, 0.55) 45%,
            rgba(6, 10, 18, 0.8) 100%);
    z-index: -1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    position: sticky;
    top: 0;
    background: rgba(10, 14, 22, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

nav {
    display: flex
}

nav a {
    color: #cfd7e2;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 400;
    transition: 0.25s;
}

nav a:hover {
    color: #ffe2a6;
    text-shadow: 0 0 8px rgba(255, 226, 166, 0.8), 0 0 18px rgba(255, 226, 166, 0.6), 0 0 35px rgba(255, 226, 166, 0.4);
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.hero-content {
    animation: heroFade 1.6s ease forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes heroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.4rem;
    margin-bottom: 18px;
    color: #f8fafc;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.hero p {
    opacity: 0.95;
    max-width: 620px;
    margin: auto;
    margin-bottom: 30px;
    color: #d4dbe5;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    background: #ffe2a6;
    color: #1a1f2a;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.btn:hover {
    transform: translateY(-3px) scale(1.04);
    background: #ffd27a;
    box-shadow: 0 0 10px rgba(255, 210, 120, 0.8), 0 0 30px rgba(255, 210, 120, 0.6);
}

.section {
    padding: 90px 8%;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    color: #f1f5fb
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: rgba(25, 30, 40, 0.45);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.35s;
    transform-style: preserve-3d;
}

.card:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 226, 166, 0.4);
}

footer {
    text-align: center;
    padding: 30px;
    background: rgba(10, 14, 22, 0.7);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    color: #c7cfdb;
}

@media (max-width:800px) {
    .menu-toggle {
        display: block
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 14, 22, 0.95);
        display: none;
    }

    nav.active {
        display: flex
    }

    nav a {
        padding: 15px;
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05)
    }

    .hero h1 {
        font-size: 2.2rem
    }

    .section {
        padding: 70px 6%
    }
}

/* contact links (email, instagram etc.) */
a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #ffd27a;
}