/*
Theme Name:     Divi Child
Theme URI:      http://www.elegantthemes.com
Description:    Divi Child
Template:       Divi
Version:        1.0.0
Projekt:		Malerbetrieb Scholz GmbH
Webdesign:		Corgi Media
*/

/* =Custom CSS
------------------------------------------------------- */

/* Global */

:root {
  --white: #ffffff;
  --black: #111111;
  --red: #60171c;
  --red2: #7f232a;
  --grey: #95938f;
  --grey2: #f8fafc;
  --font-standard: 'Source Sans Pro', sans-serif;
  --font-highlight: 'Inter Tight', sans-serif;
}

.et_pb_menu__logo img {
    object-fit: contain !important;
    width: auto !important;
    max-height: 60px;
}

b, strong {
  font-weight: 600;
}

body {
  hyphens: none;
  white-space: word-wrap;
}

body,
#page-container,
#et-main-area {
  background-color: #ffffff !important;
}

.et_pb_text {
  word-wrap: normal;
}

/* CF7 Formulare */

.form-section p,
.form-section br,
.form-section .wpcf7-form-control-wrap {
    display: contents !important;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.form-column {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.form-column-full-width {
    width: 100% !important;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
}

.form-section label {
    font-family: var(--font-highlight);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: var(--black);
    display: block;
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="tel"],
.form-section select,
.form-section textarea {
    width: 100% !important;
    border-radius: 0 !important;
    background-color: var(--grey2);
    border: 1px solid var(--grey2);
    padding: .7rem 1rem;
    font-family: var(--font-standard);
    font-size: 18px;
    color: var(--black);
    box-sizing: border-box;
    transition: background 0.2s;
    box-shadow: inset 0 15px 15px rgba(0, 0, 0, 0.01);
}

.form-section input:focus,
.form-section textarea:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--red);
}

.form-section textarea {
    min-height: 100px;
    resize: vertical;
}

.datenschutz-row {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0;
}

.form-section input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--grey);
    background: var(--white);
    border-radius: 0 !important;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    margin-top: 2px;
}

.form-section input[type="checkbox"]:checked {
    background: var(--red);
    border-color: var(--red);
}

.form-section input[type="checkbox"]:checked::after {
    content: '\2713';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.datenschutz-row .wpcf7-list-item-label {
    font-size: 16px;
    font-family: var(--font-standard);
    text-transform: none;
    font-weight: 400;
    line-height: 1.5;
}

.datenschutz-row .wpcf7-list-item-label a {
    color: var(--black);
    text-decoration: underline;
}

.wpcf7-list-item {
    display: inline-block;
    margin: 0;
}

.wpcf7-submit {
    background: var(--red) !important;
    color: var(--white) !important;
    font-family: var(--font-highlight);
    font-weight: 700;
    font-size: 16px;
    padding: 15px 35px;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
    width: auto;
    align-self: flex-start;
}

.wpcf7-submit:hover {
    background: var(--black) !important;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    color: var(--red2);
    margin-top: 5px;
    display: block !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
}

.wpcf7 form .wpcf7-response-output {
    margin: 1rem 0;
    padding: 1rem;
    color: var(--black);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #00a0d2;
}

/* Layout Helpers */

.valign {
    margin: auto;
}

.full-height {
    height: calc(100vh - 132px);
}

.flexcol {
    display: flex;
    flex-direction: column;
}

.flexcol .bottom-align {
    margin-top: auto;
}

.et_pb_scroll_top.et-pb-icon {
    background: var(--black);
    text-decoration: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#top-menu {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

/* Navigation */

.et_pb_menu .et-menu > li {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

#top-menu nav > ul > li.current-menu-item > a {
    color: var(--black) !important;
}

#top-menu nav > ul > li.active > a {
    color: var(--red) !important;
    position: relative;
}

#top-menu.et_pb_sticky nav > ul > li.active > a:after {
    content: '';
    height: 2px;
    width: 100%;
    background: var(--red) !important;
    position: absolute;
    top: 60px !important;
}

#top-menu nav > ul > li.active > a:after {
    content: '';
    height: 2px;
    width: 100%;
    background: var(--red) !important;
    position: absolute;
    top: 75px !important;
}

.et_mobile_menu li a {
    border-bottom: 0;
    color: var(--black);
    padding: .5rem 0;
    display: block;
}

/* Referenzen */

.referenzen-startseite {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
}

.referenzen-startseite .et_pb_module {
    width: 47%;
    margin-bottom: 2rem !important;
}

.referenzen-galerie .et_pb_gallery_item.et_pb_grid_item {
    margin-right: 2%;
    margin-bottom: 2%;
}

/* Stellenanzeigen Wrapper */

.stellenanzeigen-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.stellenanzeigen-wrapper .et_pb_module {
    width: 33%;
    margin-bottom: 0 !important;
}

.stellenanzeigen-wrapper .et_pb_button {
    font-size: 16px !important;
    margin-top: 2rem;
}

.stellenanzeigen-wrapper .et_pb_button:last-child {
    font-size: 16px !important;
    margin-top: 0;
}

/* Progress Bar */

#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    width: 0%;
    background: var(--red);
    z-index: 99999;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* Custom Cursor */

.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.2s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.4s ease, opacity 0.3s;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    mix-blend-mode: difference;
}

/* Scroll Reveal */

body:not(.et-fb) .sr {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

body:not(.et-fb) .sr.show {
    opacity: 1;
    transform: none;
}

/* Image Hover */

img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

img:hover {
    transform: scale(1.08);
    filter: brightness(0.85);
}

.wp-image-15:hover {
    transform: scale(1);
    filter: brightness(1);
}

.stellenanzeigen-wrapper .et_pb_text {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.stellenanzeigen-wrapper .et_pb_text:hover {
    transform: scale(1.08);
    filter: brightness(0.85);
}

/* Hero */

.hero {
    position: relative;
    width: 100vw;
    overflow: hidden;
    background: #f0f4f8;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.55) 50%, rgba(220,235,245,0.35) 100%);
    z-index: 1;
}

/* Hero Marquee */

.marquee-bg-wrapper {
    position: absolute;
    bottom: 50%;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.marquee-bg {
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.marquee-bg__track {
    display: inline-flex;
    animation: marquee-scroll 18s linear infinite;
}

.marquee-bg__text {
    font-weight: 900;
    font-size: clamp(80px, 14vw, 220px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.08);
    padding-right: 0.5em;
    line-height: 1;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero Content */

.hero__content {
    position: relative;
    z-index: 3;
    padding: clamp(60px, 8vw, 120px) clamp(24px, 6vw, 100px);
    max-width: 900px;
}

.hero__headline {
    max-width: 50%;
    padding: 0 3rem;
}

.hero__headline h1 {
    font-size: clamp(36px, 6.5vw, 110px) !important;
    line-height: 1.05 !important;
    word-break: break-word;
}

.hero__sub {
    margin-top: clamp(20px, 3vw, 40px);
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 400;
    max-width: 50%;
    line-height: 1.6;
    padding: 0 3rem;
}

/* Shimmer Button */

.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::before {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 10;
}

.shimmer-btn:hover::before {
    animation: shimmer-slide 1.2s linear infinite;
    opacity: 1;
    transform: skewX(-25deg);
}

.shimmer-btn:hover {
    transform: translateY(-5px);
}

@keyframes shimmer-slide {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Leistungen Grid */

.leistungen-liste {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.leistungen-liste li {
    background: var(--grey2);
    padding: 1.5rem;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--black);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #fff;
}

.leistungen-liste li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--red);
    flex-shrink: 0;
}

.leistungen-liste li:hover {
    border-color: var(--red);
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.1);
}

.leistungen-liste li:hover::before {
    background-color: var(--red2);
}

/* Stellenanzeigen Liste */

.stellenanzeigen-liste {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stellenanzeigen-liste li {
    background: #fff;
    padding: 1.5rem;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--black);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #fff;
    flex-direction: column;
}

.stellenanzeigen-liste li h3 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 26px;
    margin: 0;
    padding: 0;
    line-height: 26px;
}

.stellenanzeigen-liste li p {
    font-weight: normal;
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    padding: 0;
}

.stellenanzeigen-liste li a {
    color: var(--red);
    font-size: 18px;
    text-transform: uppercase;
    border: 0 !important;
    font-weight: 600;
}

.stellenanzeigen-liste li a:after {
    opacity: 1;
    font-size: 20px;
    right: -10px;
    top: 12px;
}

.stellenanzeigen-liste li:hover {
    border-color: var(--red);
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.1);
}

.stellenanzeigen-liste li:hover::before {
    background-color: var(--red2);
}


/* Kleinerer Screen */

@media (max-width: 1560px) {
	.leistungen-liste {
		grid-template-columns: repeat(3, 1fr);
	}
	.hero__headline,
    .hero__sub {
        max-width: 70%;
        padding: 0 2rem;
    }
}

@media (max-width: 1280px) {
	.leistungen-liste {
		grid-template-columns: repeat(2, 1fr);
	}
	.et_pb_menu .et-menu > li {
	  padding-left: 1rem;
	  padding-right: 1rem;
	}
	.et_pb_menu_0_tb_header .et_pb_menu_inner_container > .et_pb_menu__logo-wrap .et_pb_menu__logo img, .et_pb_menu_0_tb_header .et_pb_menu__logo-slot .et_pb_menu__logo-wrap img{
		height:60px!important;
	}
}

/* Tablet */

@media (max-width: 1024px) {
    .hero__headline,
    .hero__sub {
        max-width: 70%;
        padding: 0 2rem;
    }

    .et_pb_text h2 {
        font-size: clamp(28px, 5vw, 80px) !important;
        line-height: 1.1 !important;
    }

    .leistungen-liste {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .leistungen-liste li {
        font-size: 18px;
        padding: 1.2rem;
    }

    .stellenanzeigen-liste {
        grid-template-columns: repeat(2, 1fr);
    }

    .stellenanzeigen-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stellenanzeigen-wrapper .et_pb_module {
        width: 100%;
    }

    .referenzen-startseite .et_pb_module {
        width: 100%;
    }

    .et_pb_menu .et_mobile_menu {
        padding: 1rem;
    }
}

/* Mobile */

@media (max-width: 768px) {
    .hide-mobile {
        display: block;
        font-size: 0;
        visibility: hidden;
        height: 0;
    }

    .cursor,
    .cursor-ring {
        display: none !important;
    }

    .hero {
        min-height: 85vh;
    }

    .hero__bg {
        background: linear-gradient(to bottom, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.75) 50%, rgba(220,235,245,0.55) 100%);
    }

    .hero__content {
        padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 40px);
    }

    .hero__headline,
    .hero__sub {
        max-width: 100%;
        padding: 0;
    }

    .hero__headline h1 {
        font-size: 36px !important;
    }

    .et_pb_text h2 {
        font-size: 32px !important;
        line-height: 1.1 !important;
    }

    .marquee-bg-wrapper {
        display: none;
    }

    .full-height {
        height: calc(100vh - 80px);
    }

    .leistungen-liste {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .leistungen-liste li {
        font-size: 18px;
        padding: 1.2rem;
    }

    .stellenanzeigen-liste {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stellenanzeigen-liste li h3 {
        font-size: 22px;
        line-height: 1.2;
    }

    .stellenanzeigen-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .stellenanzeigen-wrapper .et_pb_module {
        width: 100%;
    }

    .referenzen-startseite {
        gap: 0;
    }

    .referenzen-startseite .et_pb_module {
        width: 100%;
        margin-bottom: 1rem !important;
    }

    .form-section {
        gap: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-column {
        min-width: 100%;
    }

    .form-section label {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .form-section input[type="text"],
    .form-section input[type="email"],
    .form-section input[type="tel"],
    .form-section select,
    .form-section textarea {
        font-size: 16px;
        padding: .6rem .8rem;
    }

    .wpcf7-submit {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    img:hover {
        transform: none;
        filter: none;
    }

    .stellenanzeigen-wrapper .et_pb_text:hover {
        transform: none;
        filter: none;
    }

    .shimmer-btn:hover {
        transform: none;
    }

    .et_mobile_menu li a {
        padding: .8rem 0;
        font-size: 18px;
    }

    .et_pb_menu .et_mobile_menu {
        padding: 1rem;
    }
}

/* Mobile Small */

@media (max-width: 480px) {
    .hero__headline h1 {
        font-size: 28px !important;
    }

    .et_pb_text h2 {
        font-size: 26px !important;
    }

    .hero__content {
        padding: 2rem 1rem;
    }

    .leistungen-liste li {
        font-size: 16px;
        padding: 1rem;
        gap: .75rem;
    }

    .leistungen-liste li::before {
        width: 8px;
        height: 8px;
    }

    .stellenanzeigen-liste li {
        padding: 1.2rem;
    }

    .stellenanzeigen-liste li h3 {
        font-size: 20px;
    }

    .datenschutz-row .wpcf7-list-item-label {
        font-size: 14px;
    }
}

.et_pb_section_0_tb_footer.sr {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

#page-container,
#et-boc,
#et-main-area {
  transition: none !important;
}

.et-l--footer,
.et-l--footer * {
  transition-duration: 0s !important;
}

.et_pb_sticky_module.et_pb_section_0_tb_header {
  transition: none !important;
}

/* Scroll-Anchoring deaktivieren – verhindert Konflikt mit Lenis beim Resize */
html {
  overflow-anchor: none;
  scroll-behavior: auto !important;
}
body {
  overflow-anchor: none;
}

/* Footer auf eigene GPU-Layer – verhindert Resize-Rendering-Glitches */
#et-main-area,
footer.et-l--footer {
  transform: translateZ(0);
  backface-visibility: hidden;
}