/* ========== Mannweiler Custom Styles ========== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body {
    -webkit-font-smoothing: antialiased;
}

/* About Image: Wrapper für Rollo-Reveal */
[data-anim="about-image-wrap"] {
    overflow: hidden;
    position: relative;
}

/* Counter: 3 Blöcke, Desktop mittig, Mobile untereinander */
.counter-section .counter-grid {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
    text-align: center;
}
.counter-section .counter-block {
    align-items: center;
}
@media (max-width: 991px) {
    .counter-section .counter-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 40px;
    }
}

/* Über uns Bild: größer auf Mobile */
@media (max-width: 991px) {
    ._2-column-block .image-wrapper {
        width: 100% !important;
        max-width: 100%;
    }
    ._2-column-block [data-anim="about-image-wrap"] .square-image,
    ._2-column-block .image-wrapper .square-image {
        width: 100% !important;
        max-width: 100%;
        max-height: none !important;
        min-height: 380px;
        object-fit: cover;
    }
}
@media (max-width: 479px) {
    ._2-column-block [data-anim="about-image-wrap"] .square-image,
    ._2-column-block .image-wrapper .square-image {
        min-height: 320px;
    }
}

/* Testimonial Marquee: 2 Reihen, endlos Loop */
.testimonial-marquee-wrapper {
    margin-top: 50px;
    overflow: hidden;
}
.testimonial-marquee-row {
    overflow: hidden;
    margin-bottom: 20px;
}
.testimonial-marquee-row:last-child {
    margin-bottom: 0;
}
.testimonial-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}
.testimonial-marquee-track .testimonial-card {
    flex: 0 0 auto;
    width: 280px;
    min-width: 280px;
    padding: 24px;
    background: #2a2624;
    border-radius: 8px;
    box-sizing: border-box;
}
.testimonial-marquee-track .testimonial-card ._20px-text-white {
    font-size: 16px;
}
.testimonial-marquee-track .testimonial-card .secondary-paragraph {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.testimonial-marquee-track .testimonial-stars {
    margin-top: 8px;
    font-size: 16px;
    color: #FFD700;
    letter-spacing: 2px;
}
.testimonial-marquee-track .margin-top-15px {
    margin-top: 12px;
}
.testimonial-marquee-track .title-divider {
    margin-top: 6px;
}
@media (max-width: 991px) {
    .testimonial-marquee-track .testimonial-card {
        width: 260px;
        min-width: 260px;
        padding: 20px;
    }
}

/* Hero: Testimonial-Marquee statt Adresse/Telefon/E-Mail */
.hero-testimonial-block {
    width: 100%;
    margin-top: 0;
    padding: 0 0 30px 0;
    overflow: hidden;
}
.hero-testimonial-marquee {
    margin-top: 40px;
}
.hero-testimonial-marquee .testimonial-marquee-row {
    margin-bottom: 16px;
}

/* Newsletter entfernen */
.newsletter-block {
    display: none !important;
}

/* Footer: schwarz, direkt an Testimonial, Inhalt mit Abstand */
.section.with-bg:last-of-type {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Preise-Sektion: eigenes Hintergrundbild */
#preise.section.with-bg {
    background-image: linear-gradient(#000, #00000080 20% 80%, #000), url("../images/leistungen_bg.jpg");
}

footer.footer {
    background-color: #000 !important;
    background-image: none !important;
    margin-top: 0 !important;
}
footer.footer .container {
    padding-top: 80px !important;
}

/* Navbar */
.navbar {
    background-color: #333 !important;
    margin-top: 0 !important;
}

/* Navbar Desktop: Logo mittig zentrieren */
@media (min-width: 992px) {
    .navbar .nav-menu-wrapper {
        position: relative;
    }
    .navbar .site-logo-wrapper.hide-in-tablet {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Navbar Social Links (Instagram, Facebook) */
.nav-social-item .nav-border {
    display: none;
}
.nav-social-link {
    padding: 6px 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.nav-social-link:hover .nav-social-icon {
    opacity: 1;
}
/* Social-Icons auf dunkler Navbar: weiß darstellen, Hover = Gold (Primary) */
.navbar .nav-social-icon {
    filter: brightness(0) invert(1);
}
.navbar .nav-social-link:hover .nav-social-icon {
    filter: brightness(0) invert(1) sepia(1) saturate(8) hue-rotate(15deg);
}

/* Navbar: Termin buchen Button (Gold, Weiß) */
.nav-cta-button {
    background-color: var(--primary, #c9a962) !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}
.nav-cta-button:hover {
    background-color: #b8943f !important;
    color: #fff !important;
    opacity: 0.95;
}
.nav-list:has(.nav-cta-button) .nav-border {
    display: none;
}

/* Hero CTA: gleiche Farben wie Navbar-Button */
.hero-cta-button {
    background-color: var(--primary, #c9a962) !important;
    color: #fff !important;
    border-radius: 4px;
}

.hero-cta-button .default-text,
.hero-cta-button .hover-text {
    color: #fff !important;
}

.hero-cta-button .hover-color {
    background-color: #b8943f !important;
}

/* Mobile Navbar & Hamburger */
@media (max-width: 991px) {
    .navbar-container,
    .navbar .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
    .navbar-wrapper {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    .show-from-tablet .site-logo-wrapper {
        flex-shrink: 0;
    }
    .show-from-tablet .site-logo {
        max-width: 50px;
        max-height: 44px;
    }
    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        margin: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .hamburger-upper-line,
    .hamburger-middle-line,
    .hamburger-bottom-line {
        width: 24px;
        height: 2px;
        background-color: #fff;
        margin: 0;
        padding: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .hamburger-middle-line {
        margin-top: 6px;
        margin-bottom: 6px;
    }
    .hamburger-menu.w--open .hamburger-upper-line {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.w--open .hamburger-middle-line {
        opacity: 0;
    }
    .hamburger-menu.w--open .hamburger-bottom-line {
        transform: translateY(-8px) rotate(-45deg);
    }
    .navbar {
        position: relative;
    }
    .w-nav.w--open .nav-menu-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        background-color: #333;
        border-top: 1px solid rgba(255,255,255,0.15);
        padding: 16px 0 24px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }
    .w-nav.w--open .nav-menu,
    .w-nav.w--open .nav-menu._2nd-nav-menu {
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 0;
        gap: 0;
    }
    .w-nav.w--open .nav-menu._2nd-nav-menu {
        margin-top: 0;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .w-nav.w--open .nav-list {
        margin: 0;
        border: none;
    }
    .w-nav.w--open .nav-link {
        display: block;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 44px;
        color: #fff;
        border: none;
    }
    .w-nav.w--open .nav-link:hover,
    .w-nav.w--open .nav-link.w--current {
        color: var(--primary, #c9a962);
        background: rgba(255,255,255,0.05);
    }
    .w-nav.w--open .nav-cta-button:hover,
    .w-nav.w--open .nav-cta-button {
        color: #fff !important;
        background-color: var(--primary, #c9a962) !important;
        text-align: center;
    }
    .w-nav.w--open .nav-border {
        display: none;
    }
}
@media (max-width: 479px) {
    .navbar-container,
    .navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .show-from-tablet .site-logo {
        max-width: 44px;
        max-height: 40px;
    }
}

/* FAQ: Bild sichtbar + Höhe = letzte eingeklappte Frage-Card */
.faq-image-wrapper {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* FAQ: Bildhöhe strikt an Dropdown-FAQs koppeln – Bild aus Layoutfluss */
@media (min-width: 992px) {
    section:has(.dropdown-faq-wrapper) ._2-column-block {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: min-content;
        align-items: stretch;
        gap: 40px;
    }
    section:has(.dropdown-faq-wrapper) ._2-column-block > .contents {
        display: flex;
        flex-direction: column;
        min-height: 0;
        width: 100%;
        overflow: hidden;
    }
    section:has(.dropdown-faq-wrapper) ._2-column-block > .dropdown-faq-wrapper {
        width: 100%;
    }
    section:has(.dropdown-faq-wrapper) .faq-image-wrapper {
        flex: 1;
        min-height: 0;
        margin-top: 0 !important;
        overflow: hidden;
        position: relative;
    }
    /* Bild: position absolute → kein Einfluss auf Höhe, Grid-Row = nur FAQ-Höhe */
    section:has(.dropdown-faq-wrapper) .faq-image-wrapper img.image-560px-height {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: cover;
    }
}
@media (max-width: 991px) {
    section:has(.dropdown-faq-wrapper) .faq-image-wrapper {
        min-height: 320px;
    }
}

/* Hero: Zusätzliche Absätze unter dem Willkommenstext */
.hero-paragraph-more {
    margin-top: 1em;
}

/* Hero Desktop: Gleicher Abstand Navbar→Überschrift und Button→Testimonial */
@media (min-width: 992px) {
    .hero-slider {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 160px !important;
        padding-bottom: 0 !important;
        min-height: 101vh;
    }
    /* Textblock: Abstand unten = Abstand oben (90px) */
    .hero-slider > .container {
        flex: 0 0 auto;
        padding-bottom: 45px !important;
    }
    .hero-slider .hero-middle-align-contents {
        width: 100%;
    }
    .hero-slider .hero-testimonial-block {
        flex-shrink: 0;
        margin-top: 0 !important;
    }
    .hero-testimonial-marquee {
        margin-top: 45px !important;
    }
}

/* Hero Mobile */
@media (max-width: 991px) {
    .hero-slider {
        padding-top: 45px !important;
        min-height: 55vh !important;
        justify-content: flex-start !important;
    }
}
@media (max-width: 479px) {
    .hero-slider {
        padding-top: 28px !important;
        min-height: 48vh !important;
    }
}

/* Team Slider */
.team-slider-wrapper {
    position: relative;
    margin-top: 0;
    max-width: 75vw;
    margin-left: auto;
    margin-right: auto;
}

/* Standort / Google Maps */
.map-wrapper {
    margin-top: 40px;
}
.map-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.map-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Bewerte uns – Callout */
.review-callout {
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding: 32px 28px;
    background: #f8f6f2;
    color: #000;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.review-text {
    margin: 0 0 20px 0;
    font-size: 18px;
    line-height: 1.6;
    color: #000;
}
.review-button {
    margin-top: 4px;
    background-color: var(--primary, #c9a962) !important;
    color: #1a1a1a !important;
    border-radius: 999px;
    padding: 10px 28px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.review-button .hover-color {
    display: none;
}
.review-button:hover {
    background-color: #e0c57a !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.team-slider-container {
    overflow: hidden;
    width: 100%;
}
.team-intro-text {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}
@media (min-width: 992px) {
    .team-slider-wrapper {
        max-height: none;
    }
    .team-slider-container {
        max-height: none;
    }
    .team-member-image-col {
        flex: 0 0 40%;
        height: 320px;
        min-height: 320px;
    }
    .team-member-info-col {
        flex: 1;
        min-height: 200px;
        overflow-y: auto;
        padding: 20px 24px;
    }
}
.team-slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
}
.team-member-card {
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: calc((100% - 16px) / 2);
    display: flex;
    flex-direction: row;
    border: 2px solid rgba(214, 164, 84, 0.35);
    border-radius: 12px;
    overflow: hidden;
    background: #f8f6f2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.team-member-image-col {
    flex: 0 0 45%;
    min-width: 0;
    min-height: 0;
}
.team-member-photo {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    display: block;
}
.team-member-info-col {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
}
.team-member-name {
    margin: 0 0 2px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--heading, #1a1a1a);
}
.team-member-role {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.team-member-education {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.team-services-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 6px;
}
.team-services-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.team-services-list li {
    padding: 2px 0;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    position: relative;
    padding-left: 14px;
}
.team-services-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}
.team-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
}
.team-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.team-slider-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #1a1a1a;
}
.team-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.team-slider-counter {
    font-size: 14px;
    color: #1a1a1a;
}
/* Mobile: Bild füllt Karte, Infos per Tap mit Animation */
@media (max-width: 991px) {
    .team-slider-wrapper {
        max-width: 100%;
        max-height: 85vh;
    }
    .team-slider-container {
        max-height: 85vh;
    }
    .team-member-card {
        flex: 0 0 100%;
        min-width: 100%;
        flex-direction: column;
        max-height: 75vh;
        aspect-ratio: 3 / 4;
        position: relative;
        cursor: pointer;
    }
    .team-member-image-col {
        position: absolute;
        inset: 0;
        flex: none;
    }
    .team-member-photo {
        width: 100%;
        height: 100%;
        min-height: 200px;
        object-fit: cover;
        object-position: center top;
        background: #f0ede8;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }
    .team-member-info-col {
        position: absolute;
        inset: 0;
        flex: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 24px 24px;
        background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.85) 100%);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        overflow-y: auto;
        z-index: 2;
    }
    .team-member-card.team-card--info-open .team-member-image-col {
        pointer-events: none;
    }
    .team-member-card.team-card--info-open .team-member-photo {
        transform: scale(0.95);
        opacity: 0.7;
    }
    .team-member-card.team-card--info-open .team-member-info-col {
        opacity: 1;
        visibility: visible;
    }
    .team-member-card.team-card--info-open .team-member-name,
    .team-member-card.team-card--info-open .team-member-role,
    .team-member-card.team-card--info-open .team-member-education,
    .team-member-card.team-card--info-open .team-services-label,
    .team-member-card.team-card--info-open .team-services-list li {
        color: #fff !important;
    }
    .team-member-card.team-card--info-open .team-services-label,
    .team-member-card.team-card--info-open .team-member-role {
        color: var(--primary) !important;
    }
    .team-member-name {
        font-size: 20px;
    }
    .team-member-role {
        font-size: 13px;
    }
    .team-member-education {
        font-size: 14px;
    }
    .team-services-list li {
        font-size: 14px;
    }
}
@media (max-width: 479px) {
    .team-slider-wrapper {
        max-height: 80vh;
    }
    .team-slider-container {
        max-height: 80vh;
    }
    .team-member-card {
        max-height: 70vh;
    }
    .team-member-photo {
        min-height: 180px;
    }
    .team-member-info-col {
        padding: 20px 16px;
    }
    .team-member-name {
        font-size: 18px;
    }
}

/* Unsere Leistungen: Rollo-Animation */
.service-image-wrapper {
    overflow: hidden;
}
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card .white-overlay,
.service-card .content-test,
.service-card .content-test.reverse {
    flex-grow: 1;
}

/* Leistungen-Icons: kein gelber Kasten, bei Hover transparent + Icon weiß */
.service-card .feature-svg-wrapper {
    background-color: transparent !important;
    transition: background-color 0.3s ease;
}

.service-card .feature-svg-wrapper .image-50px {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Leistungen-Icons: doppelte Groesse (von 50px auf 100px) */
.service-card .feature-svg-wrapper .image-50px {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    height: 100px !important;
}

.service-card:hover .feature-svg-wrapper,
.service-card--hovered .feature-svg-wrapper {
    background-color: transparent !important;
}

.service-card:hover .feature-svg-wrapper .image-50px,
.service-card--hovered .feature-svg-wrapper .image-50px {
    filter: brightness(0) invert(1);
}

@media (min-width: 992px) {
    .service-card {
        min-height: 360px;
    }
}

/* Calligraphy Card: Textwechsel bei Hover, ohne Layoutsprung */
.calligraphy-card .features-block {
    position: relative;
}
.calligraphy-card .calligraphy-text-primary {
    position: relative;
    z-index: 1;
    transition: opacity 0.25s ease;
}
.calligraphy-card .calligraphy-text-hover {
    position: absolute;
    top: 2.2em;
    left: 0;
    right: 0;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.25s ease;
}
.calligraphy-card:hover .calligraphy-text-primary {
    opacity: 0;
}
.calligraphy-card:hover .calligraphy-text-hover {
    opacity: 1;
}
.service-rollo-overlay {
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 2;
    pointer-events: none;
    transform: translateX(0);
}
@keyframes rolloRevealRightToLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
@keyframes rolloRevealLeftToRight {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}
@media (min-width: 992px) {
    .service-card--hovered .service-rollo-overlay[data-rollo="right-to-left"] {
        animation: rolloRevealRightToLeft 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    .service-card--hovered .service-rollo-overlay[data-rollo="left-to-right"] {
        animation: rolloRevealLeftToRight 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}
@media (max-width: 991px) {
    #leistungen .service-card {
        min-height: 360px;
        height: 360px;
    }

    .service-card--hovered .service-rollo-overlay {
        animation: rolloRevealLeftToRight 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    }
}

/* Unsere Leistungen: Mittelbild */
@media (min-width: 992px) {
    .middle-image {
        align-self: center;
        border-radius: 16px;
        overflow: hidden;
        border: 3px solid rgba(214, 164, 84, 0.5);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    .middle-image img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 13px;
    }
}
