
/* ==============================
   DREAMLAND RESPONSIVE DESIGN
   ============================== */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* DESKTOP MENÜ – ursprüngliche Menübreite erhalten */
@media screen and (min-width: 769px) {

    #table1 {
        width: 90% !important;
        max-width: none !important;
    }

    #table3 {
        display: table !important;
        width: auto !important;
        max-width: none !important;
        table-layout: auto !important;
        white-space: nowrap;
    }

    #table3 td {
        white-space: nowrap;
        padding: 0 2px;
    }

    #table3 img {
        max-width: none !important;
        height: auto;
    }

    .mobile-menu {
        display: none !important;
    }
}


/* Mobiles Menü am PC ausblenden */
.mobile-menu {
    display: none;
}

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

@media screen and (max-width: 768px) {

    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    body > div {
        width: 100%;
    }

    /* Äußere Tabelle */
    #table1 {
        width: 100% !important;
        max-width: 100% !important;
        border-width: 0 !important;
    }

    #table1 > tbody > tr > td {
        padding: 5px !important;
    }

    /* Kopfbereich */
    #table2 {
        width: 100% !important;
    }

    #table2 tr {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #table2 td {
        display: block;
        width: 100% !important;
        text-align: center;
    }

    #table2 img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 10px auto;
    }

    /* Desktop-Menü ausblenden */
    #table3 {
        display: none !important;
    }

    /* Mobiles Menü */
    .mobile-menu {
        display: block;
        width: 100%;
        margin: 15px 0;
        font-family: Arial, sans-serif;
    }

    .mobile-menu summary {
        display: block;
        background: #ffffff;
        color: #1345DD;
        padding: 14px;
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        border: 1px solid #1345DD;
        border-radius: 5px;
        list-style: none;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 5px;
    }

    .mobile-menu nav a {
        display: block;
        width: 100%;
        padding: 12px;
        margin-bottom: 3px;
        background: #ffffff;
        color: #1345DD;
        text-decoration: none;
        text-align: center;
        border-radius: 4px;
        font-size: 16px;
    }

    .mobile-menu nav a:active {
        background: #dce5ff;
    }

    /* Hauptinhalt */
    #table4 {
        width: 100% !important;
        max-width: 100% !important;
    }

    #table4 tr {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #table4 td {
        display: block;
        width: 100% !important;
        padding: 10px !important;
    }

    #table4 img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    /* Texte */
    p, li, span {
        overflow-wrap: break-word;
    }

    blockquote {
        margin-left: 10px;
        margin-right: 10px;
    }

    ul {
        padding-left: 25px;
    }

}

/* Kleine Smartphones */
@media screen and (max-width: 480px) {

    #table2 img {
        max-width: 95% !important;
    }

    #table4 {
        padding: 5px !important;
    }

    #table4 p {
        font-size: 14px;
    }

    .mobile-menu nav a {
        font-size: 15px;
    }
}
