/* ==========================
   RESET
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f8f8;
}

/* ==========================
   HEADER
========================== */
header {
    background: #111;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.mod_randomImage {
    text-align: center;
    padding: 20px;
}

.mod_randomImage img {
    max-width: 250px;
    height: auto;
}

/* ==========================
   NAVIGATION
========================== */

#main-menu {
    position: relative;
}

.smartmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hauptmenü */
.smartmenu > ul.level_1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* Wichtig für Submenü */
.smartmenu li {
    position: relative;
}

.smartmenu a,
.smartmenu strong {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 18px 20px;
    transition: .3s;
}

.smartmenu a:hover,
.smartmenu strong.active {
    color: #d4a373;
}

/* ==========================
   SUBMENU
========================== */

.smartmenu li ul {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 250px;
    background: #111;

    display: none;
    flex-direction: column;

    border-radius: 10px;
    overflow: hidden;

    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    z-index: 9999;
}

.smartmenu li:hover > ul {
    display: flex;
}

.smartmenu li ul li {
    width: 100%;
}

.smartmenu li ul a {
    width: 100%;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
}

.smartmenu li ul li:last-child a {
    border-bottom: none;
}

/* ==========================
   MOBILE BUTTON
========================== */

#smartmenu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 15px;
}

/* ==========================
   HERO
========================== */

.hero {
    position: relative;
}

.hero figure {
    width: 100%;
}

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

/* doppeltes Bild ausblenden */
.hero .rte {
    display: none;
}

/* ==========================
   CONTENT
========================== */

.content-text {
    text-align: center;
    padding: 70px 20px;
}

.content-text h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.content-text p {
    font-size: 18px;
    color: #666;
}

/* ==========================
   PRODUKTE
========================== */

#article-1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.sale {
    width: 320px;
    margin: 20px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: .3s;
    box-shadow: 0 5px 25px rgba(0,0,0,.08);
}

.sale:hover {
    transform: translateY(-8px);
}

.sale img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.sale .rte {
    padding: 20px;
}

.sale p {
    margin-bottom: 12px;
}

.sale a {
    text-decoration: none;
    color: #333;
}

.sale p:last-child a {
    font-size: 28px;
    font-weight: bold;
    color: #c68b59;
}

/* ==========================
   FOOTER
========================== */

#article-2 {
    background: #111;
    color: #fff;
    padding: 70px 30px;
    margin-top: 80px;
}

#article-2 h2 {
    margin-bottom: 25px;
}

#article-2 p {
    margin-bottom: 12px;
}

#article-2 a {
    color: #ccc;
    text-decoration: none;
    transition: .3s;
}

#article-2 a:hover {
    color: #fff;
}

/* ==========================
   MOBILE
========================== */

@media (max-width:900px) {

    #smartmenu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
    }

    .smartmenu {
        display: none;
        width: 100%;
        background: #111;
    }

    .smartmenu.active {
        display: block;
    }

    .smartmenu > ul.level_1 {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .smartmenu li {
        width: 100%;
    }

    .smartmenu a,
    .smartmenu strong {
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    /* verhindert "Submenu kommt von überall" */
    .smartmenu li ul {
        position: static;
        display: none;

        width: 100%;
        min-width: 100%;

        box-shadow: none;
        border-radius: 0;
        background: #1a1a1a;
    }

    .smartmenu li ul.active {
        display: block;
    }

    .smartmenu li:hover > ul {
        display: none;
    }

    .smartmenu li ul a {
        padding-left: 40px;
    }

    .hero img {
        height: 300px;
    }

    .content-text h2 {
        font-size: 30px;
    }

    .sale {
        width: 92%;
        margin: 15px auto;
    }
}
