/* IMKEREI SIMON – Gestaltung mit mehr sichtbarem Hintergrund */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: #263322;

    /* DESKTOP: Hintergrund unten */
    background-image: url("Hintergrund.jpg");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    background-color: #edf4e7;
}

#wrapper {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Kopfbereich */
header {
    padding: 25px 20px 10px;
    min-height: 145px;
    text-align: center;
}

header img {
    max-width: 420px;
    width: 40%;
    height: auto;
}

/* Navigation */
nav {
    text-align: center;
    font-size: 20px;
    margin-bottom: 18px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline;
    margin-right: 35px;
    font-weight: bold;
}

nav li:last-child {
    margin-right: 0;
}

a {
    color: #405633;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

a:hover {
    color: #718d5e;
}

/* Kleineres, hellgrünes Farbfeld */
section {
    width: 68%;
    max-width: 1050px;
    margin: 10px 0 35px 0;
    padding: 24px 28px;
    text-align: justify;

    background-color: rgba(239, 247, 233, 0.91);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(50, 70, 40, 0.11);
}

/* Startseite */
.article {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.55;
}

.article table {
    width: 100%;
    border-spacing: 0;
}

.article td {
    vertical-align: top;
}

.article td:first-child {
    width: 43%;
    padding-right: 48px;
}

.article td:last-child {
    width: 57%;
}

.article img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto 15px;
    border-radius: 5px;
}

.article h1 {
    font-size: 25px;
    margin: 8px 0 8px;
    color: #49663a;
}

.article h2 {
    color: #49663a;
    font-size: 17px;
    font-weight: bold;
    margin: 15px 0 5px;
}

.article p {
    margin: 0 0 10px;
}

/* Kontakt */
#Kontakt {
    margin: 15px;
}

#Kontakt h1 {
    padding-bottom: 10px;
}

.Kontakt {
    margin: 15px 15px 10px 55px;
    padding-top: 15px;
    min-height: 300px;
}

.Kontakt img {
    float: left;
    max-width: 420px;
    width: 42%;
    height: auto;
    margin: 0 40px 20px 15px;
    border-radius: 5px;
}

.Kontakt h1 {
    font-size: 30px;
    margin-top: 15px;
    color: #49663a;
}

.Kontakt p {
    font-size: 15px;
    font-weight: bold;
    color: #263322;
    line-height: 1.5;
}

/* Preisliste */
#Preisliste {
    margin: 15px;
}

#Preisliste h1 {
    padding-bottom: 10px;
}

.Preisliste {
    color: #263322;
    font-size: 15px;
}

.Preisliste table {
    width: 100%;
    border-spacing: 30px 8px;
    margin-left: 0;
    padding-top: 15px;
    color: #263322;
}

.Preisliste td {
    padding: 4px 8px;
}

.Preisliste h1 {
    margin-left: 0;
    color: #49663a;
}

.Preisliste img {
    float: right;
    width: 27%;
    max-width: 320px;
    height: auto;
    margin: 15px 0 20px 40px;
    border-radius: 5px;
}

/* Fußzeile */
footer {
    min-height: 50px;
    padding: 15px;
    clear: both;
    margin-top: auto;
    width: 68%;
    max-width: 1050px;
    text-align: left;
}

footer a {
    color: #405633;
}


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

@media (max-width: 900px) {

    section {
        width: 82%;
        padding: 24px;
        margin-left: 0;
        margin-right: auto;
    }

    .article td:first-child {
        padding-right: 30px;
    }
}


/* ==================================================
   MOBILE – FESTER HINTERGRUND + MOBILE LAYOUT
   ================================================== */

@media (max-width: 800px) {

    /* ----------------------------------------------
       HINTERGRUND
       ---------------------------------------------- */

    body {
        margin: 0;
        padding: 0;

        background-image: none;
        background-color: #edf4e7;
    }

    #mobile-background {
        position: fixed;

        top: 0;
        left: 0;

        width: 100vw;
        height: 100vh;

        background-image: url("Hintergrund.jpg");
        background-repeat: no-repeat;
        background-position: right top;
        background-size: 100% auto;

        z-index: 0;
        pointer-events: none;
    }


    /* ----------------------------------------------
       WRAPPER
       ---------------------------------------------- */

    #wrapper {
        position: relative;

        width: 100%;
        min-height: 100vh;

        margin: 0;
        padding: 0;

        display: flex;
        flex-direction: column;

        background: transparent;

        z-index: 1;
    }


    /* ----------------------------------------------
       HEADER
       ---------------------------------------------- */

    header {
        position: relative;

        z-index: 2;

        min-height: auto;

        padding: 25px 20px 10px;

        text-align: center;
    }

    header img {
        width: 65%;
        max-width: 420px;
        height: auto;
    }


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

    nav {
        position: relative;

        z-index: 2;

        text-align: center;

        font-size: 18px;

        margin-bottom: 18px;
    }

    nav ul {
        margin: 0;
        padding: 0;
    }

    nav li {
        display: inline;

        margin-right: 15px;

        font-weight: bold;
    }

    nav li:last-child {
        margin-right: 0;
    }


    /* ----------------------------------------------
       TEXTFELD
       ---------------------------------------------- */

    section {
        position: relative;

        z-index: 2;

        width: 94%;

        margin: 10px 0 35px 0;

        padding: 20px;

        text-align: justify;

        background-color: rgba(239, 247, 233, 0.91);

        border-radius: 14px;

        box-shadow: 0 4px 18px rgba(50, 70, 40, 0.11);
    }


    /* ----------------------------------------------
       STARTSEITE
       ---------------------------------------------- */

    .article {
        margin-bottom: 10px;

        font-size: 15px;

        line-height: 1.55;
    }

    .article table,
    .article tbody,
    .article tr,
    .article td {
        display: block;

        width: 100%;
    }

    .article td:first-child {
        padding-right: 0;
    }

    .article td:last-child {
        width: 100%;
    }

    .article img {
        display: block;

        width: 100%;
        max-width: 100%;

        height: auto;

        margin: 0 auto 25px;

        border-radius: 5px;
    }

    .article h1 {
        font-size: 25px;

        margin: 8px 0 8px;
    }

    .article h2 {
        font-size: 17px;

        margin: 15px 0 5px;
    }

    .article p {
        margin: 0 0 10px;
    }


    /* ----------------------------------------------
       PREISLISTE
       ---------------------------------------------- */

    #Preisliste {
        margin: 15px;
    }

    .Preisliste {
        color: #263322;

        font-size: 15px;

        line-height: 1.5;
    }

    .Preisliste table {
        width: 100%;

        border-spacing: 10px 6px;

        margin-left: 0;

        padding-top: 15px;
    }

    .Preisliste td {
        padding: 4px 8px;
    }

    .Preisliste h1 {
        margin-left: 0;

        color: #49663a;

        font-size: 25px;
    }

    .Preisliste img {
        float: none;

        display: block;

        width: 70%;
        max-width: 350px;

        height: auto;

        margin: 0 auto 25px;
    }


    /* ----------------------------------------------
       KONTAKT
       ---------------------------------------------- */

    #Kontakt {
        margin: 15px;
    }

    .Kontakt {
        margin: 15px 15px 10px 15px;

        padding-top: 15px;

        min-height: 300px;

        font-size: 15px;

        line-height: 1.5;
    }

    .Kontakt img {
        float: none;

        display: block;

        width: 80%;
        max-width: 400px;

        height: auto;

        margin: 0 auto 25px;
    }

    .Kontakt h1 {
        font-size: 30px;

        margin-top: 15px;

        color: #49663a;
    }

    .Kontakt p {
        font-size: 15px;

        font-weight: bold;

        color: #263322;

        line-height: 1.5;
    }


    /* ----------------------------------------------
       FOOTER
       ---------------------------------------------- */

    footer {
        position: relative;

        z-index: 2;

        min-height: 50px;

        padding: 15px;

        clear: both;

        margin-top: auto;

        width: 96%;

        text-align: left;
    }
}