/*
 * Site styles for Müllers Hofkartoffel.
 * Loaded after the theme stylesheet (style1.css), so these rules take precedence.
 */

/* ---------- Spacing helpers used by the templates (from the theme) ---------- */
.mt-35 {
    margin-top: 35px;
}

.pl-60 {
    padding-left: 60px;
}

@media (min-width: 768px) and (max-width: 991px) {
    .mb-md-50 {
        margin-bottom: 50px;
    }

    .pl-md-15 {
        padding-left: 15px;
    }
}

@media (max-width: 767px) {
    .pl-xs-15 {
        padding-left: 15px;
    }
}

/* ---------- Buttons (from the theme) ---------- */
button.btn {
    display: inline-block;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 17px 50px !important;
    border: 2px solid transparent;
    border-radius: 5px;
    background: var(--color-primary);
    box-shadow: inherit;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.35s ease-in-out;
}

button.btn::after {
    position: absolute;
    left: -5%;
    z-index: -1;
    width: 115%;
    height: 150px;
    content: "";
    background: var(--dark);
    transform: translateY(-45%) skew(25deg) scale(0);
    transition: all 0.25s ease-in-out;
}

button.btn:hover,
button.btn:focus-visible {
    color: #ffffff;
}

button.btn:hover::after,
button.btn:focus-visible::after {
    transform: translateY(-45%) skew(25deg) scale(1.2);
}

/* ---------- Header ---------- */
header nav.navbar.validnavs {
    box-shadow: 0 -10px 40px -10px #111111;
}

/* ---------- Hero ---------- */
.hero-wrapper {
    background-image: url('../Images/36.png');
    background-repeat: repeat-x;
    background-position: left bottom;
}

.hero-text {
    border-top-right-radius: 50% 30%;
    border-bottom-right-radius: 50% 30%;
}

.hero-image img {
    object-fit: cover;
}

.hero-title {
    color: var(--color-primary);
    font-size: 60px;
}

.hero-subtitle {
    color: var(--black);
    font-size: 30px !important;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 50px !important;
    }

    .hero-subtitle {
        font-size: 25px !important;
    }
}

@media (max-width: 991.9px) {
    .hero-image {
        display: none;
    }

    .hero-wrapper {
        height: auto !important;
        background-size: contain;
    }
}

/* ---------- Team, products and hints: background images from the backend ---------- */
.teammember-image,
.product-image,
.hints-image {
    aspect-ratio: 1;
    background-position: center;
    background-size: cover;
}

.product-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.product-item-style {
    padding-top: 20px;
}

/* The theme styles these names through links; they are no longer links. */
.farmer-style-one-item .info h4,
.gallery-style-one .overlay h4 {
    font-weight: 800;
}

.gallery-style-one .overlay h4 {
    color: var(--white);
}

/* ---------- Section backgrounds ---------- */
.farmer-area {
    background-image: url('../Images/36.png');
}

.choose-us-style-one .shape img {
    max-width: 100%;
    height: 100%;
}

.testimonials-area {
    background-image: url('../Images/23.png');
}

.testimonial-info::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    content: "";
    background-image: url('../Images/quote-2.png') !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 120px;
    opacity: 0.05;
    transform: translate(-50%, -50%);
}

.testimonial-info::after {
    position: absolute;
    top: -12%;
    left: -12%;
    z-index: -1;
    width: 124%;
    height: 124%;
    content: "";
    border-radius: 50%;
    background-image: url('../Images/37.png') !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* ---------- Contact ---------- */
.contact-area {
    background-image: url('../Images/28.png');
}

.contact-map {
    display: block;
    width: 100%;
    height: 200px;
    border: 0;
}

/* The fixed header would otherwise cover the form after jumping to it. */
.contact-form-style-one form,
.contact-confirmation {
    scroll-margin-top: 140px;
}

/* Labels stay readable for screen readers; the placeholders show the field names. */
.contact-form-style-one .form-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.contact-form-style-one .invalid-feedback {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 14px;
    font-weight: 600;
}

.contact-form-style-one .is-invalid .form-control {
    box-shadow: inset 0 0 0 2px #c0392b;
}

.contact-confirmation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 25px;
    border-radius: 50%;
    background-color: rgba(73, 167, 96, 0.12);
    color: var(--color-primary);
}

.contact-confirmation-text {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}

/* ---------- Footer ---------- */
footer.site-footer {
    position: initial;
    margin-top: 0;
    padding-top: 20px;
    background-image: url('../Images/brush-down.png');
}

@media (min-width: 1500px) {
    nav.navbar.validnavs.inc-shape::after {
        display: none;
    }

    footer.site-footer {
        padding: 10px;
        background-image: none;
    }
}

/* ---------- Scrollbar ---------- */
html::-webkit-scrollbar {
    width: 12px;
    background-color: #f5f5f5;
}

html::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #f5f5f5;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

html::-webkit-scrollbar-thumb {
    background-color: rgba(150, 150, 150, 0.9);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
}
