nav {
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

nav a {
    margin-right: 20px;
    text-decoration: none;
    color: inherit;
}

nav a:hover {
    text-decoration: underline;
}

body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    line-height: 1.6;
}

h1, h2 {
    margin-top: 40px;
}

.hero {
    margin-top: 60px;
}

.hero-image {
    margin: 30px auto 0 auto;
    width: 70%;
    max-width: 700px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hero-image {
        width: 100%;
    }
}

.feature {
    margin-bottom: 10px;
}

footer {
    margin-top: 60px;
    font-size: 0.9em;
    color: #666;
}

.device-image {
    margin-top: 20px;
    max-width: 360px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
    margin-top: 30px;

    scroll-snap-type: x mandatory;
}

.gallery-scroll img {
    width: 300px;
    flex-shrink: 0;
    border-radius: 12px;

    scroll-snap-align: center;
}

.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Die Buttons schick machen */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Zentriert den Button vertikal */
    background: rgba(0, 0, 0, 0.4); /* Halbtransparenter Hintergrund */
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Button-Positionen links und rechts */
.nav-btn.left {
    left: 10px;
}

.nav-btn.right {
    right: 10px;
}

/* Versteckt die Buttons auf Handys, da man dort eh wischt */
@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }
}
