/*
Theme Name: Hausmeisterservice RZ
Author: Petra Kufleitner
Description: Custom Theme für Hausmeisterservice Webseite
Version: 1.0
*/


:root {
    --blue: #0064AD;
    --orange: #EC7C32;
    --purple: #6B4EFF;
    --dark: #1f2933;
    --gray: #6b7280;
    --light: #f5f7fa;
    }
    
    * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    }
    
    body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: #f7f9fc;
    }

    img {
    max-width: 100%;
    display: block;
    }
    
    /* Layout */
    
    .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    }
    
/* HERO */

.hero-full {
    position: relative;
    min-height: 75vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-full::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.45) 100%
    );
    z-index: 1;
}

.hero-full::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 25% 30%,
            rgba(255,255,255,0.12),
            transparent 60%
        ),
        radial-gradient(
            circle at 75% 70%,
            rgba(255,255,255,0.08),
            transparent 60%
        );
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 650px;
}

.hero-inner h1 {
    color: #fff;
    margin-bottom: 12px;
}

.hero-inner p {
    font-size: 1.1rem;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


    /* Buttons */
    
    .btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    }
    
    .btn-primary {
    background: var(--orange);
    color: #fff;
    }
    
    .btn-primary:hover {
    background: #d96f2c;
    }
    
    .btn-secondary {
    background:  var(--blue);
    color: #fff;
    }
    
    .btn-secondary:hover {
    background: #014b80;
    }
    
    /* Hero Image Floating */
    
    .hero-image img {
    max-width: 420px;
    position: relative;
    right: -30px;
    }
    
    /* USP */

    
    .usp-item h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    }
    
   /* SERVICES */



   .services {
    padding: 40px 0 80px 0;
    position: relative;
    background: #eef3fb;
}


.services h2 {
    text-align: left;
    font-size: 1.8rem;
    color: var(--blue);
    margin-bottom: 40px;
}


.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-item {
    background: #fff;
    padding: 28px 22px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}


.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    background: #fff;
}


.service-item h3 {
    margin-bottom: 8px;
    color: var(--blue);
}

.service-item p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 16px;
    flex-grow: 1;
}

.service-link {
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}

.service-link:hover {
    text-decoration: underline;
}

.service-icon {

    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    color: #333; /* dunkelgrau/schwarz */
}

.service-btn {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s ease;
    margin-top: auto;
}

.service-btn:hover {
    background: #e67e22;
}


    /* CTA */

    .cta {
        padding: 40px 0;
        text-align: center;
        color: #fff;
        position: relative;
        overflow: hidden;
        background: linear-gradient(
            135deg,
            var(--blue) 0%,
            #1e3a8a 100%
        );
    }

    .cta::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(
                circle at 20% 30%,
                rgba(255,255,255,0.18),
                transparent 60%
            ),
            radial-gradient(
                circle at 80% 70%,
                rgba(255,255,255,0.12),
                transparent 60%
            );
        pointer-events: none;
    }
    

.cta-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta h2 {
    margin-bottom: 18px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,0.9);
}

.cta .btn-primary {
    background: #fff;
    color: var(--blue);
    border: none;
    padding: 12px 28px;
}

.cta .btn-primary:hover {
    background: rgba(255,255,255,0.9);
}

/* ABOUT */

.about {
    padding: 80px 0;
    background: var(--light);
}

.about-text {
    max-width: 700px;
}

.about h2 {
    color: var(--blue);
    margin-bottom: 15px;
}


/* CONTACT */

.contact {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact h2 {
    color: var(--blue);
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    margin-bottom: 12px;
    font-family: inherit;
}

.contact-form input[type="submit"] {
    background: var(--orange);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.contact-form input[type="submit"]:hover {
    background: #d96f2c;
}



/* HEADER */

.site-header {
    position: fixed;
    z-index: 1000;
    width: 100%;
    z-index: 999;
    padding: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.site-header.scrolled {
    padding: 14px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.85);

}

.site-header.scrolled .logo img {
    max-height: 70px;
}

.site-header.scrolled .main-nav a {
    color: var(--dark);
}

    .header-grid {
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-cta a {
    white-space: nowrap;
}

.header-cta .btn {
    padding: 10px 18px;
    font-size: 0.95rem;
    border-radius: 6px;

}

.logo img {
    max-height: 55px;
    width: auto;
}
.logo a {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blue);
    text-decoration: none;
}

.main-nav {
    display: flex;
    justify-self: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.2s ease;
}

.main-nav a:hover::after, .main-nav .current-menu-item > a::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--blue);
}


.main-nav .current-menu-item > a {
    color: var(--blue);
    font-weight: 600;
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.phone-icon {
    display: flex;
    align-items: center;
}

.phone-icon svg {
    width: 18px;
    height: 18px;
}

.btn-phone:hover .phone-icon {
    transform: translateX(-1px);
    transition: transform 0.2s ease;
}



/* USP */


.usp {
    margin-top: -110px;
    padding: 80px 0 80px;
    position: relative;
    z-index: 5;
    
}


.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    text-align: center;
}


.usp-item {
    background: #fff;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}



.usp-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}


.usp-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 8px;
    color: var(--blue);
}



.usp-icon svg {
    shape-rendering: geometricPrecision;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
}

.usp-item h3 {
    color: var(--blue);
    font-size: 1.05rem;
    font-weight: 600;
}

.usp-item p {
    font-size: 0.95rem;
    color: var(--gray);
}


/* FOOTER */

.site-branding,
.footer-branding {
    text-decoration: none;
    color: inherit;
}


.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 40%;
  }

.site-branding img,
.footer-branding img {
    height: 70px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-size: 1.1rem;
    font-weight: 700;
}

.brand-sub {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
}

.site-branding .brand-main,
.site-branding .brand-sub {
    color: var(--dark);
}


.footer-branding .brand-main,
.footer-branding .brand-sub {
    color: #fff;
}

.footer-branding img {
    height: 70px;
}

.footer-branding .brand-main {
    font-size: 1rem;
}

.footer-branding .brand-sub {
    font-size: 0.8rem;
}


.site-footer {
    background: var(--dark);
    padding: 0;
  }


.footer-logo img {
    height: 46px;
    margin-bottom: 28px;
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
    margin-bottom: 10px;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    gap: 60px;
    display: flex;
    width: 60%;
    align-items: center;
}

.footer-links a {
    color: #fff;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-inner {
    display: flex;
  flex-flow: row wrap;
  justify-content: center;
}




/* LEISTUNGEN SEITE */

.page-hero {
    position: relative;
    padding: 145px 0 75px;
    background: linear-gradient(
        135deg,
        #dde7f5 0%,
        #cfdcf0 100%
    );
    overflow: hidden;
    text-align: center;
    display: flex;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 25% 30%,
            rgba(255,255,255,0.35),
            transparent 65%
        );
    pointer-events: none;
}
.page-hero h1 {
    color: var(--blue);
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.page-hero p {
    max-width: 720px;
    font-size: 1.05rem;
    color: #2b2b2b;
}


.leistungen {
    padding: 60px 0;
}

.leistung-item {
    max-width: 900px;
    margin: 0 auto;
    padding: 90px 0;
}

.leistung-item:first-child {
    padding-top: 70px;
}
.leistung-item:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.leistung-item h2 {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 20px;
    font-weight: 600;
}


.leistung-item p {
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
    margin-bottom: 32px;
}

.leistung-item ul {
    max-width: 760px;
    padding-left: 20px;
    margin: 0;
}

.leistung-item li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.leistung-item li::marker {
    color: var(--orange);
}

.leistung-item {
    scroll-margin-top: 120px; 
}

.leistung-item:first-child {
    padding-top: 60px;
}

.leistung-item:last-child {
    padding-bottom: 60px;
}

.leistung-icon {
    width: 48px;
    height: 48px;
    color: var(--blue);
}

.leistung-icon svg {
    width: 100%;
    height: 100%;
}



/* HOME CONTACT */

.home-contact-clean {
    padding: 100px 0;
    background: #fff;
}

.contact-headline {
    margin-bottom: 10px;
}

.contact-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0 0 40px;
}
.contact-main-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 60px;
    align-items: stretch;   /* wichtig */
    min-height: 380px;
}
.contact-image {
    height: 100%;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* füllt sauber die Höhe */
    display: block;
}


.contact-info-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    flex-grow: 1;   /* füllt den restlichen Platz */
}

.contact-usps {
    margin-bottom: 20px;
}

.contact-usps p {
    position: relative;
    padding-left: 22px;
    font-size: 1.05rem;
    color: #222;
    font-weight: 400;
}

.contact-usps p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;        /* vertikale Ausrichtung */
    width: 8px;
    height: 8px;
    background: var(--orange);
}


.contact-info-box,
.contact-map {
    border: none;
    padding: 0;
}

.contact-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
}

.contact-info-box .btn {
    margin-top: auto;   /* schiebt Button nach unten */
}

.contact-info-box address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 14px;
}

.contact-info-box p {
    margin-bottom: 20px;
}

.contact-info-box a {
    color: var(--blue);
    text-decoration: none;
}

.contact-info-box a:hover {
    text-decoration: underline;
}
.contact-map {
    height: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.home-contact-clean .btn-primary {
    background: var(--orange);
    color: #fff;
    border: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;   /* wichtig: kein underline */
    transition: background 0.2s ease, transform 0.15s ease;
}

.home-contact-clean .btn-primary:hover {
    background: #d96f2c;  /* leicht dunkleres Orange */
    color: #fff;
    text-decoration: none; /* sicherheitshalber */
}


.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 90px 0;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--blue);
    margin: 60px 0 20px;
}

.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 40px 0 16px;
    color: #222;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 14px;
    max-width: 760px;
}

.legal-content address {
    font-style: normal;
    line-height: 1.7;
    margin-bottom: 20px;
}

.legal-content hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin: 60px 0;
}

.legal-content ul {
    max-width: 760px;
    padding-left: 20px;
    margin: 16px 0 28px;
}

.legal-content li {
    margin-bottom: 8px;
}

.about-section {
    padding: 90px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 18px;
    color: #333;
}


.contact-simple {
    padding: 90px 0;
}

.contact-intro {
    max-width: 760px;
    margin-bottom: 60px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    padding-left: 40px;
    border-left: 1px solid rgba(0,0,0,0.08);
}
.wpcf7-form input,
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: var(--blue);
    outline: none;
}


.service-icon svg {
    width: 60px;
    height: 60px;
    fill: #2b2b2b; /* oder var(--blue) */
}


/* =========================
   MOBILE NAVIGATION
========================= */

/* Burger Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #2b2b2b;
    display: block;
    border-radius: 2px;
}

/* Mobile Header */
@media (max-width: 900px) {

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Burger anzeigen */
    .menu-toggle {
        display: flex;
    }

    /* Desktop Navigation verstecken */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.85);
        padding: 25px 20px;
        display: none;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

    /* Wenn aktiv */
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-flow: column;
        align-items: flex-start;        
    }
    /* Menü vertikal */
    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }

    .nav-menu li a {
        font-size: 1.1rem;
    }

    /* Telefonbutton NICHT im Header quetschen */
    .phone-btn {
        display: none;
    }
}



/* =========================
   MOBILE OPTIMIERUNG
========================= */
@media (max-width: 900px) {

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    section {
        padding: 70px 0;
    }

    h1 {
        font-size: 1.9rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .header-inner {
        padding: 12px 0;
    }

    .site-header {
        padding: 0;
    }
    .phone-text {
        display: none;
    }
    .brand-main {
        font-size: 0.9rem;
    
    }

    .services h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .brand-sub {
        font-size: 0.7rem;
    }

    .page-hero {
        padding: 75px 0 15px;
    }
    .page-hero h1 {
        font-size: 1.5rem;
    }

    .usp {
        padding: 80px 0 20px;
    }

    .usp-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px 10px;
        margin-top: 35px;
    }

    .usp-item {
        padding: 8px 4px;
        background: transparent;
        box-shadow: none;
        border: none;
        text-align: center;
    }

    .usp-item:hover {
        transform: none;
        box-shadow: none;
    }
    .usp-item h3 {
        font-size: 0.7rem;
        line-height: 1.3;
        margin-top: 6px;
        margin-bottom: 0;
        font-weight: 600;
    }

    .usp-item p {
        display: none;
    }

    .usp-icon {
        margin-bottom: 0;
        width: 45px;
        height: 45px;
    }

    .usp-icon svg {
        width: 45px;
        height: 45px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-item {
        padding: 25px;
    }

    .service-item .btn {
        width: 100%;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(0,0,0,0.08);
        padding-top: 30px;
    }

    .leistung-item {
        padding: 40px 0;
    }

    .legal-content, .leistungen {
        padding: 0;
    }

    .contact-simple, .about-section {
        padding: 40px 0;
    }

}


@media (max-width: 768px) {



    h2 {
        font-size: 1.2rem;
    }
    .hero {
        padding: 50px 0 50px;
        text-align: center;
    }
    .hero-full {
        min-height: 60vh;
    }
    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.25;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }
    .hero-content {
        max-width: 480px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
      }

    .hero-buttons .btn {
        width: auto;
        min-width: 160px;
        padding: 10px 10px;
        font-size: 0.8rem;
    }
    .cta .btn-primary {
        width: auto;
        min-width: 160px;
        padding: 10px 10px;
        font-size: 0.8rem;
    }
    .contact-main-grid {
        grid-template-columns: auto;
        gap: 20px;
    }
    .contact-info-map {
        grid-template-columns: auto;
    }
    .footer-inner {
        flex-flow: column;
    }
    .footer-branding {
        width: 100%;
        justify-content: center;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid #6b7280;
    }
    .footer-links {
        gap: 10px;
        justify-content: center;
        flex-flow: column;
        width: 100%;
    }
    .about-grid { 
        gap: 20px;
    }
}


@media (max-width: 568px) {
    .about-grid { 
        grid-template-columns: auto;
    }
}

@media (max-width: 380px) {
    .header-right {
        gap: 20px;
      }


    .usp-item h3 {
        font-size: 0.8rem;
    }

    .usp-icon svg {
        width: 40px;
        height: 40px;
    }

}