/**
 * Dieses Skript definiert die Stilattribute der gesamten Seite.
 *
 * @author      Lukas H. Eichenauer
 * @version     2.0 - 03.02.2021
 * 
 * Inhalt / Übersicht
 *      1.0 Grundaufbau der Seite
 *          1.1 Aufbau HTML-Dokument
 *          1.2 Aufbau Body-Element
 *          1.3 Navigationsleiste
 *          1.4 Footer
 *          1.5 Nach-Oben-Button
 *      2.0 Startseite
 *          2.1 Parallax Bild
 *          2.2 Artikelvorschläge
 *      3.0 Kategorieseite & Suche
 *          3.1 Leere Kategorie
 *          3.2 Suchergebnisse
 *      4.0 Artikelvorschau
 *          4.1 Vorschaukarte
 *          4.2 Vorschaubild
 *      5.0 Artikeldarstellung
 *          5.1 Wrapper-Box
 *          5.2 Artikelbeschreibung
 *          5.3 Artikellinks
 *          5.4 Artikelbilder
 *      6.0 Galeriedarstellung
 *          6.1 Thumbnail-Wrappers
 *          6.2 Thumbnail-Links
 *          6.3 Thumbnail-Bild
 *          6.4 Thumbnail-Overlay
 *          6.5 Thumbnail-Unterschrift
 *      7.0 Modals und Dialoge
 *          7.1 Backdrop
 *          7.2 Modal-Wrapper
 *          7.3 Modal-Body
 *          7.4 Modal-Button 
 *          7.5 Close-Button
 */


/*
    Importiere die Definition der Schriftarten und Animationen.
*/

@import '/assets/style/fonts.css';
@import '/assets/style/animation.css';
@import '/assets/style/style-responsive.css';

/* 
    1.0 Grundaufbau der Seite 
*/


/** 1.1 Aufbau HTML-Dokument */

html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}


/** 1.2 Aufbau Body-Element */

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 4rem 0 0 0;
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    font-family: "Lato", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 18px;
    text-align: left;
}

body.modal-open {
    padding: 0;
}

body.lg-on {
    overflow: hidden;
}


/** 1.3 Navigationsleiste */

.navbar .navbar-nav {
    -ms-flex-pack: justify;
    justify-content: space-between;
    font-weight: 400;
    font-size: 1.3rem;
}

.navbar a.nav-link i {
    text-align: center;
    margin-left: 0.2rem;
}


/** 1.4 Footer */

footer.footer {
    margin-top: 2rem;
    padding: 2.5rem 0;
    position: relative;
}

footer.footer .list-inline {
    margin-bottom: 0.2rem;
}

footer.footer p {
    margin-bottom: 0;
    font-weight: 400;
}

footer.footer div.col-10,
footer.footer div.col-2 {
    height: 100%;
    margin: auto 0;
}

footer.footer div.col-10 {
    text-align: left;
}

footer.footer div.col-2 {
    text-align: right;
}


/** 1.5 Nach-Oben-Button */

button#top-btn {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    right: 2rem;
    z-index: 100;
}


/*
    2.0 Startseite
*/


/** 2.1 Parallax Bild */

header.header {
    position: relative;
    height: 100%;
    text-align: center;
    color: #fff;
    padding: 15rem 0;
    background-color: #343a40;
    background-image: url("/assets/images/header/header-desktop.jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

header.header .overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0.3;
    background-color: #24272b;
}

header.header .title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-shadow: 4px 2px 3px #585858;
}

header.header .form-control {
    font-weight: 300;
}

header.header .button-wrapper {
    margin-top: 3rem;
}


/** 2.2 Artikelvorschläge */

section.main {
    border-top: 1px solid #c7c1c1;
    padding-top: 2rem;
}


/*
    3.0 Kategorieseite & Suche
*/


/** 3.1 Leere Kategorie */

section.empty-section {
    height: 100%;
    margin: auto;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

section.empty-section h1.empty-title {
    text-align: center;
    font-size: 3rem;
    color: #6c757d;
}

section.empty-section h4.empty-subtitle {
    display: block;
    text-align: center;
    color: #6c757d;
}


/** 3.2 Suchergebnisse */

h1.search-title,
h2.search-title,
h5.search-subtitle {
    text-align: center;
}

h1.search-title,
h5.search-subtitle {
    margin-bottom: 2rem;
}

h5.search-subtitle {
    font-weight: 300;
    color: #6c757d;
}


/*
    4.0 Artikelvorschau
*/


/** 4.1 Vorschaukarte */

div.card.preview-card {
    border-radius: 0;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

div.card.preview-card:hover {
    cursor: pointer;
}

div.card.preview-card:not(:last-child) {
    margin-bottom: 2.5rem;
}


/** 4.2 Vorschaubild */

div.card.preview-card div.preview-img-wrapper {
    overflow: hidden;
}

div.card.preview-card div.preview-img-wrapper img.preview-img {
    width: 100%;
    height: auto;
}


/*
    5.0 Artikeldarstellung
*/


/** 5.1 Wrapper-Box */

section.main.article-wrapper {
    border: none;
}


/** 5.2 Artikelbeschreibung */

p.article-description {
    margin-top: 2rem;
}


/** 5.3 Artikellinks */

.article-link {
    color: rgba(0, 0, 0, 0.9) !important;
}

.article-link:hover {
    color: rgba(0, 0, 0, 0.5) !important;
}


/** 5.4 Artikelbilder */

.article-content img {
    margin-bottom: 1rem;
}


/*
    6.0 Galeriedarstellung
*/


/** 6.1 Thumbnail-Wrappers */

div.gallery-picture-wrapper {
    width: calc(25% - 3px);
    cursor: pointer;
    display: inline-block;
    padding: 1rem;
}


/** 6.2 Thumbnail-Links */

div.gallery-picture-wrapper a.gallery-link {
    height: 100%;
    display: block;
    overflow: hidden;
    position: relative;
    border: 1px solid #dbd4d4;
}


/** 6.3 Thumbnail-Bild */

div.gallery-picture-wrapper img.gallery-picture {
    width: 100%;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    overflow: hidden;
}


/** 6.4 Thumbnail-Overlay */

div.gallery-picture-wrapper div.gallery-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    background: rgba(44, 41, 41, 0.4);
    transition: .3s ease;
}

div.gallery-picture-wrapper div.gallery-overlay img {
    width: 36px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}

div.gallery-picture-wrapper a.gallery-link:hover div.gallery-overlay {
    opacity: 1;
}


/** 6.5 Thumbnail-Unterschrift */

div.gallery-picture-wrapper span.gallery-subtitle {
    font-family: "Lato";
    font-weight: 200;
    text-align: center;
    position: absolute;
    display: block;
    width: 100%;
    padding: 5px;
    bottom: 0;
    color: #fff;
    background: rgba(85, 67, 70, 0.85);
    background: linear-gradient(90deg, rgba(85, 67, 70, 0.85), rgba(69, 80, 91, 0.85));
}


/*
    7.0 Modals und Dialoge
*/


/** 7.1 Backdrop */

div.modal-backdrop.show {
    opacity: 0.8;
}


/** 7.2 Modal-Wrapper */

div.modal-confirm {
    text-align: center;
    color: #434e65;
    width: 525px;
}

div.modal-confirm div.modal-content {
    font-size: 16px;
    border-radius: 0.2rem;
    border: none;
}


/** 7.2 Modal-Header */

div.modal-confirm div.modal-header {
    background: #e85e6c;
    border-bottom: none;
    position: relative;
    border-radius: 0.2rem 0.2rem 0 0;
    padding: 3rem;
}

div.modal-confirm div.modal-header div.icon-box {
    color: #fff;
    padding: 1rem;
    display: inline-block;
    position: relative;
    margin: auto auto;
}

div.modal-confirm div.modal-header div.icon-box i {
    font-size: 5rem;
}


/** 7.3 Modal-Body */

div.modal-confirm div.modal-body {
    text-align: center;
}

div.modal-confirm h4.modal-title {
    font-size: 2.5rem;
}

div.modal-confirm p.modal-message {
    margin-top: 0.5rem;
}


/** 7.4 Modal-Button */

div.modal-confirm div.modal-body button.modal-btn {
    color: #fff;
    background: #eeb711;
    padding: 0.75rem 1.5rem !important;
    text-decoration: none;
    transition: all 0.4s;
    line-height: normal;
    padding: 6px 20px;
    border: none;
    text-align: center;
    border-radius: 1rem;
}

div.modal-confirm div.modal-body button.modal-btn:hover,
div.modal-confirm div.modal-body button.modal-btn:focus {
    background: #eda645;
    outline: none;
}


/** 7.5 Close-Button */

div.modal-confirm .close {
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0.3rem;
    right: 0.5rem;
    color: #fff;
    text-shadow: none;
    opacity: 0.5;
    font-size: 2rem;
}

div.modal-confirm .close:hover {
    opacity: 1;
}


/*
    8.0 Tablet Darstellung Porträt (Responsive)
*/


/** 8.1 Navigationsleiste */

.navbar-collapse.collapse.show .nav-item:first-child,
.navbar-collapse.collapsing .nav-item:first-child {
    margin-top: 1rem;
}

.navbar-collapse.collapse.show .nav-item,
.navbar-collapse.collapsing .nav-item {
    width: 100%;
}

.navbar-collapse.collapse.show .nav-link,
.navbar-collapse.collapsing .nav-link {
    width: 100%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
}

@media (max-width: 768px) {
    /** 8.2 Parallax Bild */
    header.header {
        padding: 4rem 0;
        background-image: url("/assets/images/header/header-tablet.jpg");
    }
    /** 8.3 Artikelvorschau */
    div.preview-card p.card-text {
        font-size: 16px;
    }
    /** 8.4 Galerie */
    div.gallery-picture-wrapper {
        width: calc(50% - 3px);
    }
}


/*
    9.0 Smartphone Darstellung Porträt (Responsive)
*/

@media (max-width: 576px) {
    header.header {
        background-image: url("/assets/images/header/header-smartphone.jpg");
    }
    footer.footer {
        padding: 1.25rem 0;
        font-size: 16px;
    }
    footer.footer div.col-10,
    footer.footer div.col-2 {
        flex: none;
        max-width: 100%;
        text-align: center;
    }
    footer.footer div.col-2 {
        margin-top: 0.5rem;
    }
    /** 8.3 Artikelvorschau */
    div.preview-card p.card-text {
        font-size: 14px;
    }
    /** 8.4 Galerie */
    div.gallery-picture-wrapper {
        width: 100%;
    }
    p.article-description {
        font-size: 16px;
    }
}


/*
    10.0 Kleine Smartphone Darstellung Porträt (Responsive)
*/

@media (max-width: 435px) {
    footer.footer {
        padding: 1rem 0;
        font-size: 14px;
    }
}