body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: clip;
}

header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

header nav {
    display: flex;
    align-items: center;
}

header a {
    color: white;
    text-decoration: none;
    line-height: 1.2;
    padding: 2px 0;
}

h1,
h2 {
    font-weight: 300;
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #222;
}

header img {
    height: 40px;
}

header nav a {
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
}

.hero {
    height: 100vh;
    overflow: hidden;
    position: relative;
    --hero-fade-duration: 1.26s;
}

.hero-media {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity var(--hero-fade-duration) linear;
}

.hero-media.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-image-slide {
    background-size: cover;
    background-position: center;
}

.hero-image-1 {
    background-image: url("app/images/IMG_1468.jpg");
}

.hero-image-2 {
    background-image: url("app/images/IMG_1472.jpg");
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 45%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-text {
    position: absolute;
    bottom: 100px;
    left: 50px;
    z-index: 2;
}

.hero-logo {
    height: clamp(72px, 10vw, 150px);
    width: auto;
    display: block;
}

section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: auto;
}

#about {
    padding-bottom: 64px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.about-video-full {
    width: 100vw;
    max-width: 100vw;
    margin-top: 40px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.gallery img,
.gallery video {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border: 1px solid #333;
    display: block;
}

.about-video-full video {
    height: auto;
    max-height: none;
    object-fit: cover;
    border: 0;
}

button {
    background: white;
    color: black;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: #111;
    border: 1px solid #333;
    color: white;
    box-sizing: border-box;
}

form label {
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
    color: #d8d8d8;
}

/* Konfigurator */
.configurator {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 24px;
    margin: 24px 0 12px;
    padding: 20px;
    border: 1px solid #2f2f2f;
    background: #0a0a0a;
}

.configurator-controls {
    align-self: start;
}

.config-hint {
    margin: 10px 0 0;
    color: #c9c9c9;
    font-size: 0.95rem;
}

.config-error {
    margin: 8px 0 0;
    min-height: 1.2em;
    color: #ff8a8a;
    font-size: 0.95rem;
}

.config-price {
    margin: 12px 0 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.configurator-preview {
    margin: 0;
    padding: 0;
}

.configurator-preview img {
    width: 100%;
    border: 1px solid #333;
    background: #111;
}

.configurator-preview figcaption {
    margin-top: 10px;
    color: #d8d8d8;
    font-size: 0.95rem;
}

.configurator-note {
    margin: 6px 0 0;
    color: #bdbdbd;
    font-size: 0.9rem;
    line-height: 1.4;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

footer a,
footer a:visited,
footer a:active {
    color: #fff;
    text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
    text-decoration: underline;
}

@media (min-width: 769px) {
    #about {
        padding-bottom: 56px;
    }

    .about-video-full {
        margin-top: 48px;
    }

    .about-video-full video {
        height: clamp(620px, 82vh, 860px);
    }
}

@media (max-width: 768px) {
    header {
        padding-left: 16px;
        padding-right: 16px;
    }

    header nav a {
        margin-left: 12px;
    }

    .hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 55%;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.32) 45%,
            rgba(0, 0, 0, 0) 100%
        );
        pointer-events: none;
        z-index: 1;
    }

    .hero-text {
        left: 20px;
        right: 20px;
        bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .hero-logo {
        height: clamp(64px, 18vw, 112px);
    }

    .about-video-full video {
        height: auto;
        max-height: none;
    }

    #about {
        padding-bottom: 100px;
    }

    .about-video-full {
        margin-top: 24px;
    }

    .configurator {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding-left: 12px;
        padding-right: 12px;
    }

    header nav a {
        margin-left: 10px;
    }
}
