/*
Theme Name: Martina Stollhof
Author: Martina Stollhof
Description: Rekonstruktion der Website von Martina Stollhof
Version: 1.0
*/


/* =========================================================
   GRUNDLAGEN
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    background:
        url('assets/images/bg.png')
        repeat-y
        top center
        #ededee;

    color: #555;

    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5em;

    margin: 0;
    padding: 0;
}

p,
h2,
h3,
ul {
    margin: 1em 0;
}

h3 {
    margin-bottom: -7px;
}

a {
    color: #9d0d15;
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================================================
   HAUPTCONTAINER
   ========================================================= */

.main {
    width: 1100px;
    max-width: calc(100% - 40px);

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    background:
        url('assets/images/banner.jpg')
        no-repeat
        top center;

    height: 400px;

    margin-bottom: -120px;
}


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

.logo {
    float: right;

    width: 189px;
    height: 188px;

    margin: 25px 35px;

    background:
        url('assets/images/logo.png')
        no-repeat
        top left;

    background-size: 189px 188px;
}

.logo h1 {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}


/* =========================================================
   CONTENT
   ========================================================= */

.content {
    clear: both;

    width: 100%;
}


/* =========================================================
   DESKTOP ABSCHNITTE
   ========================================================= */

.content-section {
    display: grid;

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

    column-gap: 55px;

    align-items: start;

    width: 100%;

    margin: 0 0 30px 0;
}


/* =========================================================
   TEXTSPALTE
   ========================================================= */

.section-text {
    min-width: 0;
}


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

.content h2 {
    font-family:
        'Fauna One',
        Georgia,
        serif;

    font-weight: normal;

    font-size: 20px;

    display: inline-block;

    padding: 8px 45px;

    margin-top: 0;
    margin-left: -29px;
    margin-bottom: 0;

    background:
        url('assets/images/tab-right.png')
        no-repeat
        right center
        #a71528;

    color: #fff;

    line-height: 1.3em;
}

.content h3 {
    font-size: 18px;
    font-weight: 300;
}


/* =========================================================
   TEXTABSCHNITTE
   ========================================================= */

.content .section {
    padding:
        15px
        36px
        40px;
}

.content p {
    margin: 1em 0;
}


/* =========================================================
   LISTEN
   ========================================================= */

.content ul {
    list-style: none;

    padding-left: 3px;
}

.content li {
    background:
        url('assets/images/bullet.png')
        no-repeat
        0 9px;

    padding:
        4px
        14px;

    line-height: 1.2em;
}


/* =========================================================
   BILDSPALTE
   ========================================================= */

.section-image {
    width: 220px;

    display: flex;
    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    padding-top: 35px;

    min-width: 0;
}


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

.section-image img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin: 0 auto;
}


/* =========================================================
   BILDER MIT RAHMEN
   ========================================================= */

.section-image img.frame {
    box-sizing: border-box;

    max-width: 100%;

    border: 5px solid #fff;

    box-shadow:
        0 0 3px 2px #ccc;

    background: #fff;
}


/* =========================================================
   PORTRAIT
   ========================================================= */

.portrait-image {
    padding-top: 35px;
}

.portrait-image img {
    width: 190px;
}


/* =========================================================
   TÜR
   ========================================================= */

.door-image {
    padding-top: 40px;
}

.door-image img {
    width: 190px;
}


/* =========================================================
   ZITAT / IMAGE1
   ========================================================= */

.quote-image {
    padding-top: 35px;
}

.quote-image img {
    width: 190px;
    max-width: 100%;
    height: auto;
}

.quote-image img.quote {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}


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

/*
   Auf Desktop unsichtbar.
   Das Portrait wird auf Mobilgeräten separat
   neben dem Logo angezeigt.
*/

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


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

.footer {
    clear: both;

    width: 100%;

    height: 60px;

    margin: 0 auto;

    background:
        url('assets/images/bg-footer.png')
        no-repeat
        top center
        #ededee;
}


/* =========================================================
   COPYRIGHT
   ========================================================= */

.copyright {
    float: right;

    width: 125px;

    margin-top: -70px;
    margin-right: 35px;

    padding-top: 25px;

    color: #b1b2b0;

    font-size: 11px;

    text-align: right;

    background:
        url('assets/images/logo-grey.png')
        no-repeat
        top right;
}


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

@media (max-width: 1100px) {

    .main {
        width: auto;

        max-width: calc(100% - 40px);
    }

    .content-section {
        grid-template-columns:
            minmax(0, 1fr)
            200px;

        column-gap: 35px;
    }

    .section-image {
        width: 200px;
    }

    .portrait-image img,
    .door-image img,
    .quote-image img {
        width: 180px;
        max-width: 100%;
    }

}


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

@media (max-width: 700px) {

    /*
     * -----------------------------------------------------
     * HAUPTCONTAINER
     * -----------------------------------------------------
     */

    .main {
        width: 100%;

        max-width: none;

        margin: 0;
    }


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

    .header {
        position: relative;

        height: 300px;

        margin-bottom: -60px;

        background-size:
            auto 300px;

        background-position:
            top center;
    }


    /*
     * -----------------------------------------------------
     * MOBILE LOGO
     * -----------------------------------------------------
     *
     * Logo und Portrait verwenden exakt dieselbe
     * Größe.
     */

    .logo {

        /*
         * Gemeinsame Größe:
         *
         * 31vw bei einem 416px breiten Display
         * = ca. 129px.
         */

        width: 31vw;
        height: 31vw;

        max-width: 140px;
        max-height: 140px;

        min-width: 110px;
        min-height: 110px;


        /*
         * Gleiche Größe auch für das Hintergrundbild.
         */

        background-size:
            100% 100%;


        /*
         * Exakte Position rechts.
         */

        position: absolute;

        top: 25px;
        right: 5vw;

        margin: 0;

        float: none;

        transform: none;

        z-index: 20;
    }


    /*
     * -----------------------------------------------------
     * MOBILES PORTRAIT
     * -----------------------------------------------------
     *
     * Exakt gleiche Größe wie das Logo.
     * Exakt gleiche vertikale Position.
     * Symmetrisch auf der linken Seite.
     */

    .mobile-portrait {

        display: block !important;

        position: absolute;

        top: 25px;
        left: 5vw;

        width: 31vw;
        height: 31vw;

        max-width: 140px;
        max-height: 140px;

        min-width: 110px;
        min-height: 110px;

        z-index: 20;
    }


    .mobile-portrait img {

        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;

        box-sizing: border-box;

        border:
            4px solid #fff;

        box-shadow:
            0 0 3px 2px #ccc;
    }


    /*
     * -----------------------------------------------------
     * NORMALES DESKTOP-PORTRAIT AUSBLENDEN
     * -----------------------------------------------------
     */

    .desktop-portrait {
        display: none !important;
    }


    /*
     * -----------------------------------------------------
     * CONTENT
     * -----------------------------------------------------
     */

    .content {
        width: 100%;
    }


    /*
     * -----------------------------------------------------
     * ABSCHNITTE
     * -----------------------------------------------------
     *
     * Auf Mobilgeräten wieder untereinander.
     */

    .content-section {

        display: flex;

        flex-direction: column;

        width: 100%;

        margin:
            0 0 35px 0;
    }


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

    .section-text {

        width: 100%;

        min-width: 0;
    }


    /*
     * -----------------------------------------------------
     * BILDSPALTE
     * -----------------------------------------------------
     *
     * Bilder werden unter dem jeweiligen Abschnitt
     * angezeigt.
     */

    .section-image {

        width: 100%;

        padding:
            10px 0 30px;

        display: flex;

        justify-content: center;

        align-items: center;
    }


    /*
     * -----------------------------------------------------
     * BILDER AUF MOBILGERÄTEN
     * -----------------------------------------------------
     */

    .section-image img {

        display: block;

        max-width: 80%;

        height: auto;

        margin: 0 auto;
    }


    .portrait-image img,
    .door-image img,
    .quote-image img {

        width: 180px;

        max-width: 80%;

        height: auto;
    }


    /*
     * -----------------------------------------------------
     * TEXTABSCHNITTE
     * -----------------------------------------------------
     */

    .content .section {

        padding:
            12px
            15px
            30px;
    }


    /*
     * -----------------------------------------------------
     * SCHRIFT
     * -----------------------------------------------------
     */

    body {

        font-size: 15px;

        line-height: 1.6em;
    }


    .content h3 {

        font-size: 17px;

        line-height: 1.4em;
    }


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

    .content h2 {

        display: inline-block;

        font-size: 18px;

        padding:
            7px 30px;

        margin-left: 0;

        margin-top: 0;

        line-height: 1.3em;
    }


    /*
     * -----------------------------------------------------
     * LISTEN
     * -----------------------------------------------------
     */

    .content li {

        padding:
            4px 14px;

        line-height: 1.35em;
    }


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

    .footer {

        height: 60px;

        background-position:
            top center;
    }


    .copyright {

        float: none;

        width: auto;

        margin:
            0 20px;

        padding-top: 25px;

        text-align: center;
    }

}


/* =========================================================
   KLEINE SMARTPHONES
   ========================================================= */

@media (max-width: 480px) {

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

    .header {

        height: 240px;

        margin-bottom: -40px;

        background-size:
            auto 240px;
    }


    /*
     * -----------------------------------------------------
     * LOGO + PORTRAIT
     * -----------------------------------------------------
     *
     * Beide weiterhin exakt gleich groß.
     */

    .logo {

        width: 30vw;
        height: 30vw;

        max-width: 125px;
        max-height: 125px;

        min-width: 100px;
        min-height: 100px;

        top: 20px;

        right: 5vw;

        margin: 0;

        transform: none;

        background-size:
            100% 100%;
    }


    .mobile-portrait {

        width: 30vw;
        height: 30vw;

        max-width: 125px;
        max-height: 125px;

        min-width: 100px;
        min-height: 100px;

        top: 20px;

        left: 5vw;
    }


    .mobile-portrait img {

        width: 100%;
        height: 100%;

        border-width: 4px;
    }


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

    body {

        font-size: 15px;

        line-height: 1.6em;
    }


    .content .section {

        padding:
            10px
            20px
            30px;
    }


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

    .content h2 {

        font-size: 18px;

        padding:
            7px 30px;
    }


    .content h3 {

        font-size: 16px;

        line-height: 1.4em;
    }


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

    .section-image img {

        max-width: 75%;
    }

}


/* =========================================================
   SEHR KLEINE SMARTPHONES
   ========================================================= */

@media (max-width: 360px) {

    .logo {

        width: 29vw;
        height: 29vw;

        min-width: 90px;
        min-height: 90px;

        top: 18px;
    }


    .mobile-portrait {

        width: 29vw;
        height: 29vw;

        min-width: 90px;
        min-height: 90px;

        top: 18px;
    }


    .mobile-portrait img {

        border-width: 3px;
    }


    .content h2 {

        font-size: 17px;

        padding:
            7px 24px;
    }


    .content .section {

        padding-left: 15px;
        padding-right: 15px;
    }

}
