/*
 * Copyright (c) 2025 microdat GmbH. Alle Rechte vorbehalten.
 *
 * Dieser Code ist Eigentum von microdat GmbH und darf in keiner Weise
 * verwendet, kopiert, modifiziert, verteilt, lizenziert, vermarktet oder anderweitig
 * genutzt werden. Jegliche unbefugte Nutzung ist strengstens untersagt und wird
 * rechtlich verfolgt.
 *
 * Keine Garantie oder Haftung für Fehler, Schäden oder Verluste, die durch diesen Code entstehen.
 */

/**
    Overflow muss innerhalb des Wrappers erledigt werden.
 */
body > .wrapper {
    overflow-x: clip;
}

/**
    Links in FIBU-Nachrichten müssen unterstrichen sein
 */
.category-fibu-nachrichten .single-post-wrap a {
    text-decoration-line: underline !important;
}

/**
    Ergebnisliste
 */
.entry-summary {
    font-size: 18px;
}

/* serif abstellen */
.hestia-title, .title, .card-title, .info-title, .footer-brand, .footer-big h4, .footer-big h5, .media .media-heading, .woocommerce ul.products[class*="columns-"] li.product-category h2,
.hestia-about h1, .hestia-about h2, .hestia-about h3, .hestia-about h4, .hestia-about h5 {
    font-family: inherit !important;
}

/* graue Text-Farbe abstellen */
.description, .card-description, .footer-big,
.hestia-info p, .info p {
    color: inherit !important;
}

/* auf mobilgeräten mind 100vh für header */
.page-header {
    min-height: 90vh;

    @media (max-width: 768px) {
        min-height: 100vh;
    }
}

/**
    vorschau von Bildern auf Mobil-Geräten besser
 */
@media (max-width: 768px) {
    #fancybox-left:hover span,
    #fancybox-left span {
        left: 5px;
    }

    #fancybox-right:hover span,
    #fancybox-right span {
        left: auto;
        right: 5px;
    }
}

/**
    Es darf keinen Überlauf bei sections geben
 */
section {
    overflow: inherit !important;
}

/**
    Konnte zu groß werden
 */
ul {
    max-width: 100%;
}

/**
    Generelle Anpassung des Containers
 */
.container {
    @media (min-width: 768px) {
        width: 90%;
    }
}

/**
    Standardpadding der Table wird reduziert
 */
table, .table {
    & > thead,
    & > tbody,
    & > tfoot {
        & > tr {
            & > th,
            & > td {
                padding: 4px 2px;
            }
        }
    }
}

/**
    Texte auf Buttons waren sonst in CAPS
 */
.btn,
button,
input[type="button"],
input[type="submit"] {
    text-transform: none;
}

/**
    "Client" Bilder auf der Startseite anpassen
 */
.hestia-clients-bar {
    padding: 0;

    & .clients-bar-wrapper li img {
        max-height: 100px;
        max-width: 150px;
        -webkit-filter: grayscale(100%);
        /* Safari 6.0 - 9.0 */
        filter: grayscale(100%);
    }

    & .clients-bar-wrapper li a img {
        -webkit-filter: grayscale(0%);
        /* Safari 6.0 - 9.0 */
        filter: grayscale(0%);
    }
}


/**
    Sorgt dafür, dass Artikelbildbild verschwinden.
 */
article.card.has-post-thumbnail.hentry > .row > div {
    &:first-child {
        display: none;
    }

    &:last-child {
        width: unset;
    }
}

/**
   Sorgt dafür, dass Veröffentlichungsinfos verschwinden
 */
.posted-by,
.author {
    display: none;
}

/**
    Sonst wird der Inhalt der Startseite (Seite bearbeiten) falsch angezeigt
 */
.about,
.hestia-about {
    padding: 0 !important;
    color: rgb(60, 72, 88) !important;
}

.error404 .search-form,
.search-no-results .search-form {
    margin-top: inherit !important;
}

.error404 .main .search-form,
.search-no-results .main .search-form {
    margin-top: 40px !important;
}

/**
    Footer anpassen
 */
.footer {
    & .footer-menu {
        & * {
            text-transform: none !important;
        }

        & a {
            text-decoration: underline;
        }
    }

    & > .container {
        & > .content > .row > .col-md-4 {
            --left-footer-width: 268px;

            &:nth-child(1) {
                @media (min-width: 992px) {
                    width: var(--left-footer-width) !important;
                }
            }

            &:nth-child(2) {
                @media (min-width: 992px) {
                    width: calc(33% + (33% - var(--left-footer-width)));
                }
            }
        }

        & > div.hestia-bottom-footer-content {
            & > .copyright {
                display: none;
            }

            &::after {
                content: "© 1999 - 2025 — microdat GmbH";
                padding: 15px;
                display: inline-block;
                position: absolute;
                right: 0;
                color: #fff5;
            }
        }
    }
}