/*
==========================================================
MMHH.CSS
==========================================================

MMHH.DE – ZENTRALES DESIGN

- 3-D-Boxen
- Navigation + Logo in einer Kopfbox
- Navigation links
- Logo rechts
- Hamburger auf kleinen Bildschirmen
- Dropdown-Menüs
- Pastellfarben
- Darkmode
- Responsive
- keine Abhängigkeit von MeineNaviFarben.css

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


/* =========================================================
   FARBEN / VARIABLEN
   ========================================================= */

:root {

    /* Seite */
    --mmhh-page-bg: #eee7eb;

    /* Boxen */
    --mmhh-box-bg: #fffafb;
    --mmhh-box-bg-soft: #faf3f7;

    /* Text */
    --mmhh-text: #463e44;
    --mmhh-text-soft: #766d74;

    /* Rahmen */
    --mmhh-border: #ded1d8;

    /* Akzent */
    --mmhh-accent: #c9a5b9;
    --mmhh-accent-light: #ead9e2;
    --mmhh-accent-dark: #a98299;

    /* Navigation */
    --mmhh-nav-bg: #e8d4df;
    --mmhh-nav-text: #4c4048;

    --mmhh-nav-hover-bg: #d8b8c9;
    --mmhh-nav-hover-text: #382f35;

    --mmhh-nav-active-bg: #c9a5b9;
    --mmhh-nav-active-text: #ffffff;

    /* Dropdown */
    --mmhh-dropdown-bg: #fffafb;
    --mmhh-dropdown-text: #4c4048;

    --mmhh-dropdown-hover-bg: #ead9e2;
    --mmhh-dropdown-hover-text: #382f35;

    --mmhh-dropdown-active-bg: #c9a5b9;
    --mmhh-dropdown-active-text: #ffffff;

    /* Schatten */
    --mmhh-shadow:
        0 7px 0 rgba(190, 155, 177, 0.70),
        0 14px 28px rgba(75, 55, 68, 0.18),
        0 28px 55px rgba(75, 55, 68, 0.10);

    --mmhh-shadow-small:
        0 4px 0 rgba(190, 155, 177, 0.55),
        0 9px 18px rgba(75, 55, 68, 0.14);

    /* Rundungen */
    --mmhh-radius: 22px;
    --mmhh-radius-small: 12px;

    /* Übergang */
    --mmhh-transition: 0.25s ease;
}


/* =========================================================
   DARKMODE
   ========================================================= */

html.dark-mode {

    --mmhh-page-bg: #242126;

    --mmhh-box-bg: #353037;
    --mmhh-box-bg-soft: #302b31;

    --mmhh-text: #f0e9ee;
    --mmhh-text-soft: #c7bdc4;

    --mmhh-border: #514751;

    --mmhh-accent: #a9859a;
    --mmhh-accent-light: #51404b;
    --mmhh-accent-dark: #c19caf;

    --mmhh-nav-bg: #3b3239;
    --mmhh-nav-text: #f0e9ee;

    --mmhh-nav-hover-bg: #554550;
    --mmhh-nav-hover-text: #ffffff;

    --mmhh-nav-active-bg: #8e6c82;
    --mmhh-nav-active-text: #ffffff;

    --mmhh-dropdown-bg: #353037;
    --mmhh-dropdown-text: #f0e9ee;

    --mmhh-dropdown-hover-bg: #51404b;
    --mmhh-dropdown-hover-text: #ffffff;

    --mmhh-dropdown-active-bg: #8e6c82;
    --mmhh-dropdown-active-text: #ffffff;

    --mmhh-shadow:
        0 7px 0 rgba(90, 65, 82, 0.80),
        0 14px 30px rgba(0, 0, 0, 0.35),
        0 30px 60px rgba(0, 0, 0, 0.25);

    --mmhh-shadow-small:
        0 4px 0 rgba(90, 65, 82, 0.70),
        0 9px 20px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   GRUNDLAYOUT
   ========================================================= */

html {

    margin: 0;
    padding: 0;

    scroll-behavior: smooth;

}

*,
*::before,
*::after {

    box-sizing: border-box;

}


body {

    margin: 0;
    padding: 0;

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;

    line-height: 1.6;

    background-color:
        var(--mmhh-page-bg);

    color:
        var(--mmhh-text);

    transition:
        background-color var(--mmhh-transition),
        color var(--mmhh-transition);

}


/* =========================================================
   SEITEN-CONTAINER
   ========================================================= */

.mmhh-page {

    width:
        calc(100% - 40px);

    max-width:
        1600px;

    margin:
        30px auto;

}


/* =========================================================
   KOPFBOX
   ========================================================= */

.mmhh-header {

    position: relative;

    z-index: 1000;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    align-items: center;

    width: 100%;

    min-height: 125px;

    padding:
        18px 24px;

    margin-bottom:
        30px;

    background:
        var(--mmhh-box-bg);

    border:
        1px solid var(--mmhh-border);

    border-radius:
        var(--mmhh-radius);

    box-shadow:
        var(--mmhh-shadow);

    transition:
        background-color var(--mmhh-transition),
        border-color var(--mmhh-transition),
        box-shadow var(--mmhh-transition);

}


/* =========================================================
   UNSICHTBARE INNERE BOX
   NAVIGATION
   ========================================================= */

.mmhh-header-navigation {

    position: relative;

    z-index: 2000;

    min-width: 0;

    width: 100%;

    display: flex;

    align-items: center;

}


/* =========================================================
   UNSICHTBARE INNERE BOX
   LOGO
   ========================================================= */

.mmhh-header-logo {

    position: relative;

    z-index: 1001;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    min-width: 0;

    padding-left:
        25px;

}


/* =========================================================
   LOGO
   ========================================================= */

.mmhh-logo {

    display: block;

    width: auto;

    max-width:
        300px;

    max-height:
        100px;

    height: auto;

    object-fit: contain;

    transition:
        transform var(--mmhh-transition),
        opacity var(--mmhh-transition);

}


.mmhh-logo:hover {

    transform:
        scale(1.02);

    opacity:
        0.95;

}


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

.mmhh-navigation {

    position: relative;

    width: 100%;

    margin: 0;

    padding: 0;

}


/* =========================================================
   NAVIGATIONS-BALKEN
   ========================================================= */

.mmhh-navigation-bar {

    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    min-width: 0;

}


/* =========================================================
   HAMBURGER
   ========================================================= */

.mmhh-menu-button {

    display: none;

    flex: 0 0 auto;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    width: 46px;

    height: 46px;

    padding: 8px;

    margin: 0;

    border:
        1px solid var(--mmhh-border);

    border-radius:
        var(--mmhh-radius-small);

    background:
        var(--mmhh-box-bg-soft);

    color:
        var(--mmhh-text);

    cursor: pointer;

    box-shadow:
        var(--mmhh-shadow-small);

    transition:
        background-color var(--mmhh-transition),
        border-color var(--mmhh-transition),
        transform var(--mmhh-transition);

}


.mmhh-menu-button:hover {

    transform:
        translateY(-2px);

}


.mmhh-menu-button span {

    display: block;

    width: 23px;

    height: 3px;

    margin: 3px 0;

    border-radius: 3px;

    background:
        currentColor;

    transition:
        transform var(--mmhh-transition),
        opacity var(--mmhh-transition);

}


/* =========================================================
   HAMBURGER -> X
   ========================================================= */

.mmhh-menu-button-open span:nth-child(1) {

    transform:
        translateY(9px) rotate(45deg);

}


.mmhh-menu-button-open span:nth-child(2) {

    opacity: 0;

}


.mmhh-menu-button-open span:nth-child(3) {

    transform:
        translateY(-9px) rotate(-45deg);

}


/* =========================================================
   MENÜ
   ========================================================= */

.mmhh-menu {

    width: 100%;

    min-width: 0;

}


/* =========================================================
   NAVIGATIONSLISTE
   ========================================================= */

.mmhh-nav-list {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 6px;

    width: 100%;

    margin: 0;

    padding: 0;

    list-style: none;

}


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

.mmhh-nav-item {

    position: relative;

    margin: 0;

    padding: 0;

    list-style: none;

}


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

.mmhh-nav-link {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    padding:
        9px 15px;

    border:
        1px solid transparent;

    border-radius:
        var(--mmhh-radius-small);

    background:
        var(--mmhh-nav-bg);

    color:
        var(--mmhh-nav-text);

    font-size: 15px;

    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color var(--mmhh-transition),
        color var(--mmhh-transition),
        transform var(--mmhh-transition);

}


.mmhh-nav-link:hover {

    background:
        var(--mmhh-nav-hover-bg);

    color:
        var(--mmhh-nav-hover-text);

    transform:
        translateY(-2px);

    text-decoration: none;

}


.mmhh-nav-link.menu-aktiv {

    background:
        var(--mmhh-nav-active-bg);

    color:
        var(--mmhh-nav-active-text);

}


/* =========================================================
   DROPDOWN BUTTON
   ========================================================= */

.mmhh-dropdown-button {

    border:
        1px solid transparent;

    font-family:
        inherit;

}


.mmhh-dropdown-arrow {

    margin-left:
        8px;

    font-size:
        12px;

    transition:
        transform var(--mmhh-transition);

}


.mmhh-dropdown-open .mmhh-dropdown-arrow {

    transform:
        rotate(180deg);

}


/* =========================================================
   DROPDOWN
   ========================================================= */

.mmhh-dropdown-menu {

    position: absolute;

    top:
        calc(100% + 8px);

    left: 0;

    z-index: 5000;

    display: none;

    min-width:
        230px;

    margin: 0;

    padding: 8px;

    list-style: none;

    background:
        var(--mmhh-dropdown-bg);

    border:
        1px solid var(--mmhh-border);

    border-radius:
        15px;

    box-shadow:
        var(--mmhh-shadow);

}


.mmhh-dropdown-open .mmhh-dropdown-menu {

    display: block;

}


/* =========================================================
   DROPDOWN LINKS
   ========================================================= */

.mmhh-dropdown-link {

    display: block;

    width: 100%;

    padding:
        10px 13px;

    border-radius:
        9px;

    background:
        transparent;

    color:
        var(--mmhh-dropdown-text);

    font-size:
        14px;

    line-height:
        1.4;

    text-decoration:
        none;

    transition:
        background-color var(--mmhh-transition),
        color var(--mmhh-transition),
        transform var(--mmhh-transition);

}


.mmhh-dropdown-link:hover {

    background:
        var(--mmhh-dropdown-hover-bg);

    color:
        var(--mmhh-dropdown-hover-text);

    transform:
        translateX(3px);

    text-decoration:
        none;

}


.mmhh-dropdown-link.menu-aktiv {

    background:
        var(--mmhh-dropdown-active-bg);

    color:
        var(--mmhh-dropdown-active-text);

    font-weight:
        700;

}


/* =========================================================
   INHALTSBEREICH
   ========================================================= */

.mmhh-content-area {

    position: relative;

    z-index: 1;

    width: 100%;

    margin: 0;

    padding: 0;

}


/* =========================================================
   INHALTSBOX
   ========================================================= */

.mmhh-content-box {

    position: relative;

    z-index: 1;

    width: 100%;

    min-height: 300px;

    padding:
        32px;

    background:
        var(--mmhh-box-bg);

    border:
        1px solid var(--mmhh-border);

    border-radius:
        var(--mmhh-radius);

    color:
        var(--mmhh-text);

    box-shadow:
        var(--mmhh-shadow);

    transition:
        background-color var(--mmhh-transition),
        color var(--mmhh-transition),
        border-color var(--mmhh-transition),
        box-shadow var(--mmhh-transition);

}


/* =========================================================
   TEXT
   ========================================================= */

.text_gb {

    display: block;

    width: 100%;

    color:
        var(--mmhh-text);

    line-height:
        1.7;

}


.text_gb p {

    margin-top: 0;

    margin-bottom: 16px;

}


/* =========================================================
   ÜBERSCHRIFTEN
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {

    margin-top: 0;

    color:
        var(--mmhh-text);

    line-height:
        1.3;

}


h1 {

    font-size: 30px;

    margin-bottom: 20px;

}


h2 {

    font-size: 25px;

    margin-bottom: 18px;

}


h3 {

    font-size: 21px;

    margin-bottom: 16px;

}


h4 {

    font-size: 18px;

    margin-bottom: 14px;

}


h5 {

    font-size: 16px;

}


h6 {

    font-size: 15px;

}


/* =========================================================
   LINKS
   ========================================================= */

a {

    color:
        var(--mmhh-accent-dark);

    text-decoration:
        none;

}


a:hover {

    color:
        var(--mmhh-accent);

    text-decoration:
        underline;

}


/* =========================================================
   BILDER
   ========================================================= */

img {

    max-width:
        100%;

    height:
        auto;

}


.bild {

    width:
        100%;

    text-align:
        center;

}


.bild img,
.bildanpassung img {

    display:
        block;

    width:
        auto;

    max-width:
        90%;

    height:
        auto;

    margin:
        15px auto;

    border-radius:
        14px;

    box-shadow:
        var(--mmhh-shadow-small);

}


/* =========================================================
   TABELLEN
   ========================================================= */

table {

    max-width:
        100%;

    border-collapse:
        separate;

    border-spacing:
        1px;

}


.mmhh-content-box table {

    width:
        100%;

}


.mmhh-content-box td,
.mmhh-content-box th {

    padding:
        9px;

    color:
        var(--mmhh-text);

}


/* =========================================================
   FORMULARE
   ========================================================= */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {

    width:
        100%;

    max-width:
        600px;

    padding:
        10px 12px;

    border:
        1px solid var(--mmhh-border);

    border-radius:
        10px;

    background:
        var(--mmhh-box-bg);

    color:
        var(--mmhh-text);

    font-family:
        inherit;

    font-size:
        15px;

}


input:focus,
textarea:focus,
select:focus {

    outline:
        none;

    border-color:
        var(--mmhh-accent);

    box-shadow:
        0 0 0 3px var(--mmhh-accent-light);

}


textarea {

    min-height:
        140px;

    resize:
        vertical;

}


/* =========================================================
   BUTTONS
   ========================================================= */

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {

    font-family:
        inherit;

}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {

    display:
        flex;

    flex-wrap:
        wrap;

    justify-content:
        center;

    align-items:
        center;

    gap:
        5px;

    margin:
        20px 0;

}


.pagination a,
.pagination .pageinfo {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-width:
        40px;

    min-height:
        40px;

    padding:
        6px 12px;

    border:
        1px solid var(--mmhh-border);

    border-radius:
        9px;

    background:
        var(--mmhh-box-bg-soft);

    color:
        var(--mmhh-text);

}


.pagination a:hover {

    background:
        var(--mmhh-accent-light);

    text-decoration:
        none;

}


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

.mmhh-footer {

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    width:
        100%;

    padding:
        25px 10px;

}


.mmhh-top-link {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        9px 17px;

    border:
        1px solid var(--mmhh-border);

    border-radius:
        10px;

    background:
        var(--mmhh-box-bg);

    color:
        var(--mmhh-text);

    box-shadow:
        var(--mmhh-shadow-small);

}


.mmhh-top-link:hover {

    background:
        var(--mmhh-box-bg-soft);

    text-decoration:
        none;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .mmhh-page {

        width:
            calc(100% - 30px);

        margin:
            20px auto;

    }


    .mmhh-header {

        padding:
            16px 18px;

    }


    .mmhh-logo {

        max-width:
            240px;

        max-height:
            90px;

    }


    .mmhh-nav-link {

        padding:
            8px 12px;

        font-size:
            14px;

    }

}


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

@media (max-width: 800px) {

    .mmhh-page {

        width:
            calc(100% - 12px);

        margin:
            8px auto;

    }


    /*
    ---------------------------------------------------------
    KOPFBOX
    ---------------------------------------------------------
    */

    .mmhh-header {

        display:
            grid;

        grid-template-columns:
            minmax(0, 1fr) auto;

        align-items:
            center;

        min-height:
            90px;

        padding:
            10px;

        margin-bottom:
            20px;

        border-radius:
            17px;

    }


    /*
    ---------------------------------------------------------
    NAVIGATION
    ---------------------------------------------------------
    */

    .mmhh-header-navigation {

        grid-column:
            1;

        grid-row:
            1;

        width:
            100%;

        align-self:
            center;

    }


    .mmhh-navigation {

        width:
            100%;

    }


    .mmhh-navigation-bar {

        display:
            flex;

        align-items:
            center;

        justify-content:
            flex-start;

        width:
            100%;

        min-height:
            46px;

    }


    /*
    ---------------------------------------------------------
    HAMBURGER ANZEIGEN
    ---------------------------------------------------------
    */

    .mmhh-menu-button {

        display:
            flex;

        flex: 0 0 46px;

        position:
            relative;

        z-index:
            10001;

    }


    /*
    ---------------------------------------------------------
    MENÜ AUSBLENDEN
    ---------------------------------------------------------
    */

    .mmhh-menu {

        display:
            none;

        position:
            absolute;

        top:
            calc(100% + 8px);

        left:
            0;

        z-index:
            10000;

        width:
            100%;

        max-height:
            calc(100vh - 120px);

        overflow-y:
            auto;

        padding:
            10px;

        background:
            var(--mmhh-box-bg);

        border:
            1px solid var(--mmhh-border);

        border-radius:
            15px;

        box-shadow:
            var(--mmhh-shadow);

    }


    /*
    ---------------------------------------------------------
    MENÜ GEÖFFNET
    ---------------------------------------------------------
    */

    .mmhh-menu.mmhh-menu-open {

        display:
            block;

    }


    /*
    ---------------------------------------------------------
    NAVIGATIONSLISTE
    ---------------------------------------------------------
    */

    .mmhh-nav-list {

        display:
            flex;

        flex-direction:
            column;

        align-items:
            stretch;

        width:
            100%;

        gap:
            5px;

    }


    .mmhh-nav-item {

        width:
            100%;

    }


    .mmhh-nav-link {

        width:
            100%;

        min-height:
            45px;

        justify-content:
            space-between;

        padding:
            10px 13px;

        white-space:
            normal;

    }


    /*
    ---------------------------------------------------------
    DROPDOWN
    ---------------------------------------------------------
    */

    .mmhh-dropdown-menu {

        position:
            static;

        width:
            100%;

        min-width:
            0;

        margin:
            4px 0 5px;

        padding:
            5px;

        border-radius:
            10px;

        box-shadow:
            none;

    }


    /*
    ---------------------------------------------------------
    LOGO
    ---------------------------------------------------------
    */

    .mmhh-header-logo {

        grid-column:
            2;

        grid-row:
            1;

        align-self:
            center;

        justify-content:
            flex-end;

        width:
            auto;

        padding:
            0 0 0 10px;

    }


    .mmhh-logo {

        max-width:
            150px;

        max-height:
            70px;

    }


    /*
    ---------------------------------------------------------
    INHALT
    ---------------------------------------------------------
    */

    .mmhh-content-box {

        min-height:
            250px;

        padding:
            22px 16px;

        border-radius:
            17px;

        box-shadow:
            0 6px 0 var(--mmhh-accent),
            0 12px 24px rgba(70, 50, 65, 0.16);

    }


    /*
    ---------------------------------------------------------
    ÜBERSCHRIFTEN
    ---------------------------------------------------------
    */

    h1 {

        font-size:
            25px;

    }


    h2 {

        font-size:
            22px;

    }


    h3 {

        font-size:
            19px;

    }


    h4 {

        font-size:
            17px;

    }


    /*
    ---------------------------------------------------------
    TEXT
    ---------------------------------------------------------
    */

    .text_gb {

        font-size:
            15px;

        line-height:
            1.65;

    }


    /*
    ---------------------------------------------------------
    TABELLEN
    ---------------------------------------------------------
    */

    .mmhh-content-box table {

        display:
            block;

        width:
            100%;

        overflow-x:
            auto;

        -webkit-overflow-scrolling:
            touch;

    }


    /*
    ---------------------------------------------------------
    BILDER
    ---------------------------------------------------------
    */

    .bild img,
    .bildanpassung img {

        max-width:
            100%;

    }

}


/* =========================================================
   SEHR KLEINE HANDYS
   ========================================================= */

@media (max-width: 480px) {

    .mmhh-page {

        width:
            calc(100% - 8px);

        margin:
            4px auto;

    }


    .mmhh-header {

        padding:
            8px;

        border-radius:
            14px;

    }


    .mmhh-logo {

        max-width:
            115px;

        max-height:
            60px;

    }


    .mmhh-menu-button {

        width:
            42px;

        height:
            42px;

        flex-basis:
            42px;

    }


    .mmhh-menu {

        top:
            calc(100% + 6px);

    }


    .mmhh-content-box {

        padding:
            18px 12px;

        border-radius:
            14px;

    }


    .text_gb {

        font-size:
            14px;

    }


    h1 {

        font-size:
            22px;

    }


    h2 {

        font-size:
            20px;

    }


    h3 {

        font-size:
            18px;

    }

}


/* =========================================================
   EXTREM KLEINE HANDYS
   ========================================================= */

@media (max-width: 360px) {

    .mmhh-header {

        grid-template-columns:
            minmax(0, 1fr) 95px;

    }


    .mmhh-logo {

        max-width:
            90px;

        max-height:
            55px;

    }

}