/*  
Theme Name: Default Theme with Mobile Header
Theme URI: 
Description: Theme with Stylesheet as Base for Brizy or Elementor
Version: 1.0
Author: desmeit
Author URI: https://schmeidt.de
*/


/* Basis */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* height: 50px; */
    background: #fff;
    min-height: 80px;
    padding: 0 20px;
    position: relative;
    z-index: 1000;
}

header .logo {
    display: flex;
    /* falls Bild/Text drin ist */
    align-items: center;
    /* Inhalt (Logo-Bild) auch mittig */
    color: #fff;
    font-weight: bold;
}

header .logo img {
    max-height: 40px;
    /* kleiner als header (50px) */
    height: auto;
    width: auto;
    display: block;
}


/* Hamburger */

.hamburger {
    display: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
    z-index: 1100;
}

.hamburger span {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transform-origin: center;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    transform: translateY(-10px);
}

.hamburger span:nth-child(2) {
    transform: translateY(0);
}

.hamburger span:nth-child(3) {
    transform: translateY(10px);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}


/* Navigation Desktop */


/* ========================= */


/* DESKTOP MENÜ (Header)     */


/* ========================= */

ul.menu {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
}

ul.menu>li {
    position: relative;
    margin: 0 5px;
}

ul.menu>li>a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

ul.menu>li:hover>a {
    background: #fce6f1;
    color: #7a005c;
}


/* ===== Pfeil an Elternpunkten ===== */

ul.menu li.menu-item-has-children>a {
    position: relative;
    padding-right: 30px;
    /* Platz für Pfeil */
}

ul.menu li.menu-item-has-children>a::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transform: translateY(-50%) rotate(0deg);
    /* Start nach unten */
    transform-origin: center center;
    /* Drehung um Mitte */
    transition: transform 0.3s ease;
}

ul.menu li:hover>a::after {
    transform: translateY(-50%) rotate(180deg);
    /* bei Hover nach oben */
}


/* ===== Dropdown Box ===== */

ul.menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    /* kein Space */
    padding: 10px 0;
    background: #fff;
    border-radius: 8px;
    list-style: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}


/* Dropdown sichtbar */

ul.menu li:hover>ul.sub-menu {
    opacity: 1;
    pointer-events: auto;
}


/* Einträge im Dropdown */

ul.menu li ul.sub-menu li {
    border: none;
}

ul.menu li ul.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #330033;
    text-decoration: none;
    transition: background-color 0.5s ease, color 0.5s ease;
}


/* Hover Effekt auf Unterpunkte */

ul.menu li ul.sub-menu li a:hover {
    background: #fce6f1;
    color: #7a005c;
}


/* Polylang: aktuelle Sprache im Sprachmenü ausblenden */

ul.menu li ul.sub-menu li.current-lang {
    display: none;
}


/* ========================= */


/* MOBILE MENÜ (Accordion)   */


/* ========================= */

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    ul.menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        margin: 0;
        padding: 0;
        position: absolute;
        top: 80px;
        left: 0;
        border-bottom: 1px solid #d6d6d6;
    }
    ul.menu.show {
        display: flex;
    }
    ul.menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #d6d6d6;
    }
    ul.menu li:last-child {
        border-bottom: none;
    }
    ul.menu>li>a {
        padding: 15px 20px;
        border-radius: 0;
        color: #333;
        text-decoration: none;
        background: #fff;
        /* Standard weiß */
    }
    /* Aktiver Hauptpunkt beim Aufklappen */
    ul.menu li.show-submenu>a {
        background: #fce6f1;
        /* deine Akzentfarbe */
        color: #7a005c;
    }
    /* Submenu = Teil der Struktur */
    ul.menu li ul.sub-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: static;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: #fff;
        /* bleibt weiß */
    }
    ul.menu li.show-submenu>ul.sub-menu {
        display: flex;
    }
    ul.menu li ul.sub-menu li a {
        padding: 12px 30px;
        background: #fff;
        /* wie Menü-Hintergrund */
        font-size: 0.95em;
        color: #333;
    }
    /* Pfeile rechts */
    ul.menu li.menu-item-has-children>a {
        position: relative;
        padding-right: 40px;
    }
    ul.menu li.menu-item-has-children>a::after {
        content: "";
        position: absolute;
        right: 15px;
        top: 50%;
        width: 16px;
        height: 16px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center;
        background-size: contain;
        transform: translateY(-50%) rotate(0deg);
        transition: transform 0.3s ease;
    }
    ul.menu li.show-submenu>a::after {
        transform: translateY(-50%) rotate(180deg);
    }
}


/* Content & Footer */

main {
    padding: 20px;
}

.site-footer {
    background: #111;
    color: #ddd;
    padding: 40px 20px;
    font-size: 14px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.footer-column {
    flex: 1 1 250px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-nav ul {
    padding: 0 !important;
    margin: 0 !important;
}

.footer-nav li {
    list-style: none !important;
    margin: 8px 0 !important;
}

.footer-nav a {
    color: #ddd;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-social a {
    margin-right: 10px;
    font-size: 20px;
    color: #ddd;
    text-decoration: none;
}

.footer-social a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
}


/* ab 768px Breite (Tablets/Handys) */

@media (max-width: 768px) {
    .footer-container {
        gap: 20px;
        /* weniger Abstand */
    }
    .footer-column h4 {
        font-size: 18px;
        /* Überschrift etwas größer */
    }
    .footer-column p,
    .footer-nav a,
    .footer-disclaimer {
        font-size: 16px;
        /* größere Schrift, besser lesbar */
    }
    ul.menu li.menu-item-has-children>a {
        position: relative;
        padding-right: 35px;
        /* Platz für Pfeil */
    }
    ul.menu li.menu-item-has-children>a::after {
        content: "";
        position: absolute;
        right: 15px;
        top: 50%;
        width: 16px;
        height: 16px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center;
        background-size: contain;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }
    /* gedreht wenn Submenu offen */
    ul.menu li.show-submenu>a::after {
        transform: translateY(-50%) rotate(180deg);
    }
}