
* {
    box-sizing: border-box;
    outline: none;
}

html,
body {
    padding: 0;
    margin: 0;
    min-height: 100%;
}

body {
    overflow-x: hidden;
    background-image: url('_img/fotoco-bg.jpg');
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    font-family: 'Open Sans', sans-serif;
    line-height: 23px;
    color: #000;
}


h1 {
    padding: 50px 0 0 50px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.2em;
}

h1.kontakt {
    padding: 0;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.2em;
    color: #FFF;
}

h2 {
    padding: 20px 50px 0 50px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1em;
}

p {
    font-size: 0.8em;
    padding: 0 75px 0 50px;
    text-align: justify;
}

span {
    color: #FFF;
    text-transform: none;
    font-size: 12px;
    padding-top: 10px;
    word-spacing: 0.2em;
    font-weight: 400;
}

ul {
    padding: 0 0 0 75px;
    font-size: 0.8em;
}

a {
    color: #000;
    text-decoration: none;
}

p.breadcrumb {
    font-size: 0.7em;
    color: #000;
    text-decoration: none;
}

a.breadcrumb {
    font-size: 1em;
    text-decoration: underline;
}


/* =========================================
   MARKEN
   ========================================= */

.marken {
    filter: grayscale(100%);
    transition: filter 0.4s ease-in-out;
}

a.marken-hover:hover img {
    filter: grayscale(0%);
}


/* =========================================
   LOGO
   ========================================= */

#fotoco-logo {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
}

#content {display: flex;
    justify-content: center; /* centers horizontally */
    align-items: center;     /* centers vertically */
    gap: 10px;               /* adds space between divs */
    margin-top:0px;
    }

.content {background-color:#FFF; width:50%; opacity:0.85;}

/* =========================================
   GRID
   Desktop:
   1 - 2 - 3 - 4 - 5
   ========================================= */

#fotoco-content {
    display: grid;
    /* Eine Reihe mit 5 Elementen */
    grid-template-columns: repeat(5, auto);
    /* Reihenfolge */
    grid-template-areas:
        "item1 item2 item3 item4 item5";
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 220px;
}


/* Grid-Elemente */

.item-1 {
    grid-area: item1;
}

.item-2 {
    grid-area: item2;
}

.item-3 {
    grid-area: item3;
}

.item-4 {
    grid-area: item4;
}

.item-5 {
    grid-area: item5;
}


/* Bilder */

#fotoco-content img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* Weißer Inhaltsbereich */

.content {
    background-color: #FFF;
    width: 50%;
    opacity: 0.85;
}


/* =========================================
   FOOTER
   ========================================= */

#fotoco-footer {
    display: flex;
    justify-content: center;
    width: 100%;
    background: #000;
}

#footer {
    position: absolute;
    text-align: center;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
}

.footer {
    text-align: center;
    color: #FFF;
    background: #000;
    width: 100%;
    text-transform: uppercase;
    font-size: 15px;
    padding-top: 20px;
    word-spacing: 2em;
    font-weight: 400;
}


/* =========================================
   MOBILE / SMARTPHONE
   Samsung + iPhone

   Reihenfolge:
   3
   1
   2
   4
   5
   ========================================= */

@media screen and (max-width: 767px) {

    html,
    body {
        width: 100%;
        min-height: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    body {
        background-position: center top;
        background-attachment: scroll;
        background-size: cover;
        font-size: 16px;

        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }


    /* =====================================
       LOGO
       ===================================== */

    #fotoco-logo {
        width: 100%;
        margin: 0 auto;
        padding: 0 15px;
        text-align: center;
    }

    #fotoco-logo img {
        display: block;
        width: auto;
        max-width: 85%;
        height: auto;
        margin: -50px auto 0 auto;
    }


    /* =====================================
       MOBILE GRID

       3
       1
       2
       4
       5
       ===================================== */

    #fotoco-content {
        display: grid;

        /* Nur eine Spalte */
        grid-template-columns: 1fr;

        /* Reihenfolge */
        grid-template-areas:
            "item3"
            "item1"
            "item2"
            "item4"
            "item5";

        justify-items: center;
        align-items: center;

        width: 100%;

        gap: 0;

        margin-top: 0;
        padding: 0 10px;
    }


    /* =====================================
       MOBILE GRID ELEMENTE
       ===================================== */

    .item-1 {
        grid-area: item1;  margin-top:15px;
    }

    .item-2 {
        grid-area: item2;  margin-top:15px;
    }

    .item-3 {
        grid-area: item3; /* Logo auf Mobile: 200 x 200 px */ width: 200px; height: 200px; margin-top:15px; }

    .item-3 img { display: block; width: 200px; height: 200px; object-fit: contain; }

    .item-4 {
        grid-area: item4;  margin-top:15px;
    }

    .item-5 {
        grid-area: item5;  margin-top:15px; margin-bottom:15px;
    }


    /* =====================================
       BILDER
       ===================================== */

    #fotoco-content img {
        display: block;
        max-width: 100%;
        height: auto;
    }


    .content {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        opacity: 0.95;
    }


    /* =====================================
       ÜBERSCHRIFTEN
       ===================================== */

    h1 {
        padding: 30px 20px 0 20px;
        margin: 0;
        font-size: 1.2em;
        line-height: 1.4;
    }

    h1.kontakt {
        padding: 0;
        font-size: 1.2em;
    }

    h2 {
        padding: 20px 20px 0 20px;
        margin: 0;
        font-size: 1em;
        line-height: 1.4;
    }


    /* =====================================
       FLIESSTEXT
       ===================================== */

    p {
        padding: 0 20px;
        margin: 15px 0;
        font-size: 0.9em;
        line-height: 1.7;
        text-align: left;
    }


    /* =====================================
       LISTEN
       ===================================== */

    ul {
        padding: 0 20px 0 40px;
        margin: 15px 0;
        font-size: 0.9em;
        line-height: 1.7;
    }


    /* =====================================
       BREADCRUMB
       ===================================== */

    p.breadcrumb {
        padding: 0 20px;
        font-size: 0.75em;
        line-height: 1.5;
    }

    a.breadcrumb {
        font-size: 1em;
    }


    /* =====================================
       LINKS
       ===================================== */

    a {
        word-break: break-word;
    }


    /* =====================================
       SPAN
       ===================================== */

    span {
        font-size: 11px;
        padding-top: 5px;
        word-spacing: 0.1em;
    }


    /* =====================================
       BILDER
       ===================================== */

    img {
        max-width: 100%;
        height: auto;
    }


    .marken {
        max-width: 100%;
        height: auto;
    }


    /* =====================================
       FOOTER
       ===================================== */

    #fotoco-footer {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #footer {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        margin: 0;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .footer {
        width: 100%;
        padding: 15px 10px calc(15px + env(safe-area-inset-bottom));
        font-size: 11px;
        line-height: 1.6;
        word-spacing: 0.5em;
        text-align: center;
    }

}


/* =========================================
   SEHR KLEINE SMARTPHONES
   iPhone SE / kleine Android-Geräte
   ========================================= */

@media screen and (max-width: 380px) {

    h1 {
        padding: 25px 15px 0 15px;
        font-size: 1.1em;
    }

    h2 {
        padding: 15px 15px 0 15px;
        font-size: 0.95em;
    }

    p {
        padding: 0 15px;
        font-size: 0.85em;
    }

    ul {
        padding-left: 35px;
        padding-right: 15px;
        font-size: 0.85em;
    }

    p.breadcrumb {
        padding: 0 15px;
    }

    #fotoco-content {
        padding: 0 5px;
    }

    .footer {
        font-size: 10px;
        word-spacing: 0.3em;
    }

}


/* =========================================
   QUERFORMAT SMARTPHONE
   ========================================= */

@media screen and (max-width: 900px) and (orientation: landscape) {

    .content {
        width: 95%;
    }

    h1 {
        padding-top: 20px;
    }

    p {
        line-height: 1.5;
    }

}

