/* Reset & Basics */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, article, aside,
details, figcaption, figure, footer, header,
hgroup, main, menu, nav, section {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

ol, ul {
    list-style: none;
}

html {
    scroll-behavior: smooth;
    /* Scroll-Padding für festen Header */
    scroll-padding-top: 70px; /* Angepasst von 60px auf 70px für mobile Anpassungen */
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 70px; /* Angepasst für mobile Ansicht */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.menu-button {
    position: absolute;
    left: 20px; /* Menü-Button links */
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 25px;
    height: 20px;
}

.hamburger-icon div {
    width: 100%;
    height: 3px;
    background: #fff;
}

/* Logo in der Mitte, zentriert */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center; /* Center vertically */
    height: 100%;
    flex-grow: 1; /* Logo-Container nimmt den verfügbaren Raum ein */
}

.logo {
    max-height: 100px; /* Erhöht von 60px auf 80px */
    display: block;
    transition: transform 0.3s;
    margin-top: 0; /* Entfernt oberes Margin für vertikale Zentrierung */
}

/* Hover-Effekt am PC: Logo wird größer */
@media (hover: hover) and (pointer: fine) {
    .logo:hover {
        transform: scale(1.1);
    }
}

.dropdown {
    position: absolute;
    top: 70px; /* Angepasst zur Header-Höhe */
    left: 20px; /* Menü-Links links */
    background: #111;
    border-radius: 5px;
    display: none;
    flex-direction: column;
    width: 150px;
    padding: 10px;
    z-index: 2000;
}

.dropdown.show {
    display: flex;
}

.dropdown li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    font-size: 1rem;
    display: block;
    transition: color 0.3s;
    text-align: left;
}

.dropdown li a:hover {
    color: #ff4500;
}

/* Hero */
.hero {
    position: relative;
    margin-top: 70px; /* Angepasst zur Header-Höhe */
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    -webkit-filter: blur(3px);
}

.hero-content {
    position: relative; /* Für Platzhalter-Bilder */
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    display: inline-block;
    max-width: 80%;
    margin: 0 auto;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Platzhalter-Bilder */
.hero-buttons::before,
.hero-buttons::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.hero-buttons::before {
    /* Platzhalter für Automatenbild */
    background-image: url('images/automat-placeholder.png'); /* Ersetze durch tatsächlichen Pfad */
    top: -10px;
    left: -60px;
}

.hero-buttons::after {
    /* Platzhalter für Vape-Bild */
    background-image: url('images/vape-placeholder.png'); /* Ersetze durch tatsächlichen Pfad */
    top: -10px;
    right: -60px;
}

.standort-btn, .sortiment-btn { /* Aktualisiert */
    background: #ff4500;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.standort-btn:hover, .sortiment-btn:hover { /* Aktualisiert */
    background: #ff6500;
}

/* Standort Section */
.standort-section {
    padding: 60px 20px;
    padding-top: 80px; /* Hinzugefügt, um Überlappung mit Header zu vermeiden */
}

.standort-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.standort-section p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.map-wrapper {
    display: flex;
    justify-content: center;
    overflow: hidden;
    max-width: 100%;
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    max-width: 600px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.7);
}

/* Kontakt Section */
.kontakt-section {
    padding: 60px 20px;
}

.kontakt-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.kontakt-section form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    gap: 20px;
    width: 100%;
    text-align: left;
}

.kontakt-section label {
    font-size: 1rem;
    margin-bottom: 5px;
}

.kontakt-section input,
.kontakt-section textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    color: #000;
}

.kontakt-section button {
    background: #ff4500;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    text-align: center;
}

.kontakt-section button:hover {
    background: #ff6500;
}

/* Impressum Section */
.impressum-section {
    padding: 60px 20px;
    padding-top: 80px; /* Hinzugefügt, um Überlappung mit Header zu vermeiden */
    opacity: 0;
    animation: fadeIn 2s forwards;
    -webkit-animation: fadeIn 2s forwards;
}

.impressum-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.impressum-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.impressum-section h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Sortiment Section */
.sortiment-section {
    padding: 60px 20px;
    padding-top: 80px; /* Hinzugefügt, um Überlappung mit Header zu vermeiden */
}

.sortiment-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Sortiment Content */
.sortiment-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.real-life-automat {
    flex: 1 1 300px;
    max-width: 400px;
}

.real-life-automat img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.7);
}

.vending-machine {
    flex: 2 1 600px;
    background: linear-gradient(145deg, #3a3a3a, #2c2c2c);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border: 4px solid #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: glow 5s infinite alternate;
}

/* Glow Animation für Automaten */
@keyframes glow {
    from {
        box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
    }
    to {
        box-shadow: 0 0 25px rgba(255, 69, 0, 0.9);
    }
}

/* Produktliste als Raster */
.produkt-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Spalten auf PCs */
    grid-auto-rows: minmax(200px, auto); /* Mindesthöhe für Reihen */
    gap: 20px;
    width: 100%;
    padding: 20px 0;
    position: relative;
}

/* Einzelne Produkte */
.produkt {
    background: #444;
    padding: 10px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    overflow: hidden;
    border: 2px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.produkt img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s;
    border-radius: 5px;
}

.produkt:hover img {
    transform: scale(1.1);
}

.produkt:hover {
    background: #555;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.7);
}

/* Pop-up Info */
.product-info {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    width: 200px;
    display: none;
    z-index: 4000;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.product-info h4 {
    margin-bottom: 10px;
    color: #ff4500;
}

.product-info p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #111;
}

/* Fade-In Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 2s forwards;
    -webkit-animation: fadeIn 2s forwards;
}

@-webkit-keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive Anpassungen */
@media (max-width: 1200px) {
    .produkt-list {
        grid-template-columns: repeat(3, 1fr); /* 3 Spalten auf mittelgroßen Bildschirmen */
    }
}

@media (max-width: 900px) {
    .produkt-list {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf kleinen Bildschirmen */
    }
}

@media (max-width: 600px) {
    .header {
        height: 70px;
    }
    .hero {
        margin-top: 70px;
        min-height: calc(100vh - 70px);
    }
    .logo {
        max-height: 80px; /* Vergrößert für kleinere Bildschirme */
        margin-top: 0; /* Entfernt oberes Margin für vertikale Zentrierung */
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .standort-btn, .sortiment-btn { /* Anpassung für vertikale Anordnung */
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .produkt-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .produkt {
        padding: 5px;
    }
    .produkt img {
        height: 120px;
        object-fit: cover;
    }
    .product-info {
        width: 150px;
        font-size: 0.8rem;
    }
    .sortiment-content {
        flex-direction: column;
        align-items: center;
    }
    .real-life-automat {
        max-width: 100%;
    }
    .vending-machine {
        max-width: 100%;
    }

    /* Platzhalter-Bilder Anpassung für Mobile */
    .hero-buttons::before,
    .hero-buttons::after {
        width: 40px;
        height: 40px;
        top: -5px;
        left: -50px; /* Anpassung für kleinere Bildschirme */
        right: -50px;
    }
}
