/*
 Theme Name: Radiate Child
 Theme URI: https://metallbau-rheinmain.de
 Description: Child-Theme von Radiate mit Navy-Blau als Hauptfarbe
 Author: Akif
 Template: radiate
 Version: 1.0
*/

/* ===========================
   Eigene Styles
   =========================== */

/* Hauptlinkfarbe Navy */
a,
a:visited {
    color: #214DAA;
}

a:hover {
    color: #163574;
}

/* Buttons in Navy */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.more-link {
    background-color: #214DAA;
    border-color: #214DAA;
    color: #fff;
}

button:hover,
input[type="submit"]:hover,
.more-link:hover {
    background-color: #163574;
    border-color: #163574;
}

/* Navigation in Navy */
.main-navigation a {
    color: #214DAA;
}

.main-navigation a:hover {
    color: #163574;
}

/* H3 in Navy + roter Bottom-Border */
h3 {
    color: #214DAA;              /* 33,77,170 */
    border-bottom: 2px solid #ff0000;
    padding-bottom: 4px;
    margin-bottom: 16px;
}



/* Navigation: Hover & active states Navy-Blau */
.main-navigation a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_ancestor > a,
.main-navigation ul li.current-menu-ancestor > a,
.main-navigation ul li.current_page_item > a,
.main-navigation ul li:hover > a {
    background-color: #214DAA !important; /* dein Navy */
    color: #ffffff !important;
}


/* 🔵 Standard-Button-Styling für Gutenberg-Buttons */
.wp-block-button__link,
.wp-element-button,
.wp-block-button a {
    background-color: #214DAA !important; /* Navy */
    color: #ffffff !important; /* Weiß */
    border: none !important;
    border-radius: 4px !important; /* kannst du 0px machen, wenn du eckig willst */
    padding: 12px 24px !important;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease-in-out;
}

/* Hover-Farbe */
.wp-block-button__link:hover,
.wp-element-button:hover,
.wp-block-button a:hover {
    background-color: #163574 !important; /* dunkleres Navy */
    color: #ffffff !important;
}

/* Zitate (Blockquotes) auf Navy-Blau umrüsten */
.wp-block-quote,
blockquote {
    border-left: 3px solid #214DAA !important; /* Navy-Blau */
}

.wp-block-quote p,
blockquote p {
    color: #444444; /* Optional: Zitattext in Navy */
}

/* Navy-Box für Absätze oder ganze Blöcke */
.navy-box {
    background-color: #214DAA !important; /* Navy */
    color: #ffffff !important;            /* Weißer Text */
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.navy-box p, .navy-box div, .navy-box ul, .navy-box li {
    color: #ffffff;
}


/* ============================
   Step-Box (Nummerierte Boxen)
   ============================ */

.step-box {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
}

.step-number {
    background-color: #ff0000;      /* Rot */
    color: #ffffff;                 /* Weiß */
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;             /* = Kreise */
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 15px auto;       /* Zentriert + Abstand nach unten */
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #214DAA;                 /* Navy Titel */
}

.step-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Optionale Schattenbox */
.step-box-wrapper {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.08);
}


.step-box-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

/* ============================
   Footer Layout wie in Wix
   ============================ */

.site-footer {
    background: #f8fafc;
    color: #111827;
    margin-top: 40px;
    font-size: 14px;
}

/* Oberer Bereich */
.footer-top {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 30px 0;
}

.footer-top-inner {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.2fr;
    gap: 30px;
    align-items: flex-start;
}

.footer-col {
    min-width: 0;
}

/* Logo-Spalte */
.footer-logo {
    max-width: 260px;
    height: auto;
}

/* Titel wie "Hauptsitz", "Anfragen" */
.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #214DAA; /* Navy */
}

/* Textformatierung */
.footer-address,
.footer-phone,
.footer-email,
.footer-text {
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.footer-phone a,
.footer-email a {
    color: #214DAA;
    text-decoration: underline;
}

/* Buttons im Footer */
.footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.footer-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 4px;
    background-color: #214DAA;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.footer-btn:hover {
    background-color: #163574;
    color: #ffffff;
}

.footer-btn-outline {
    background: transparent;
    color: #214DAA;
    border: 1px solid #214DAA;
}

.footer-btn-outline:hover {
    background: #214DAA;
    color: #ffffff;
}

/* Unterer Bereich */
.footer-bottom {
    background: #ffffff;
    padding: 12px 0;
    font-size: 13px;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.footer-bottom-right a {
    color: #214DAA;
    text-decoration: none;
    margin-left: 8px;
}

.footer-bottom-right a:hover {
    text-decoration: underline;
}

.footer-sep {
    color: #9ca3af;
    margin: 0 4px;
}

/* Responsiv */
@media (max-width: 900px) {
    .footer-top-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================
   Leistungen / Kacheln mit Icon
   ============================ */

/* Gesamter Abschnitt */
.services-section {
    margin: 60px 0;
}

/* Überschrift & Intro (links) + Button (rechts) – optional */
.services-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
}

.services-header-text {
    max-width: 700px;
}

.services-eyebrow {
    font-size: 22px;
    color: #214DAA;
    font-weight: 700;
    margin-bottom: 5px;
}

.services-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
}

.services-intro {
    font-size: 18px;
    line-height: 1.7;
}

/* Kachel-Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

/* Einzelne Kachel */
.service-card {
    text-align: center;
    padding: 20px 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Icon oben */
.service-card-icon img,
.service-card-icon svg {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 12px;
}

/* Titel + Link */
.service-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.service-card-title a {
    color: #214DAA;
    text-decoration: none;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.service-card-title a:hover {
    text-decoration: underline;
}

/* Optionaler Text unter dem Titel */
.service-card-text {
    font-size: 14px;
    margin-top: 6px;
    color: #4b5563;
}

.service-icon-svg path {
    fill: #214DAA;
}

/* 📞 Anrufen-Button dunkelblau */
.nav-call-button {
    background-color: #112F5B; /* dunkles Navy */
    color: #fff;
    padding: 10px 18px;
    margin-left: 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.nav-call-button:hover {
    background-color: #0d254a;
    color: #fff;
}

/* 🔝 Top-Bar ganz oben über dem Header */
.header-top-bar {
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 6px 10px;
    font-size: 15px;
    line-height: 1.4;
    display: block;

    position: relative;
    z-index: 1000;  /* 🔴 neu */
}

.header-top-bar span {
    color: #333333;
}

.header-top-bar a {
    color: #333333;
    text-decoration: none;
    font-weight: 700;
}

#parallax-bg {
    margin-bottom: 0;
}


.header-top-bar a:hover {
    text-decoration: underline;
}

/* 🔵 Logo zentriert, volle Breite im Header */
.site-header .site-branding {
    float: none;              /* Radiate hebt hier wahrscheinlich float left an */
    text-align: center;
    margin: 15px 0 10px;
}

.site-header .site-branding img,
.site-header .site-branding svg {
    max-width: 100%;
    height: auto;
}

/* optional: Such-Icon / Suche darunter etwas Luft geben */
.header-search-icon,
.search-form {
    margin-top: 5px;
}

/* falls die Navigation zu dicht dran klebt */
.main-navigation {
    margin-top: 10px;
}

/* Navigation zentrieren */
.main-navigation {
    float: none !important;       /* float entfernen */
    text-align: center !important;
    width: 100%;
}

/* UL (Liste) zentrieren */
.main-navigation ul.nav-menu {
    float: none !important;       /* float rechts entfernen */
    display: inline-block;        /* macht zentrieren möglich */
}

/* Li-Elemente horizontal */
.main-navigation ul.nav-menu > li {
    float: none !important;       /* alten float entfernen */
    display: inline-block;        /* Menü nebeneinander */
}

/* Links im Menü */
.main-navigation ul.nav-menu > li > a {
    display: inline-block;
    padding: 15px 18px;
}


/* Sidebar Widget Titles – Navy + roter Border */
.widget-title,
.widgettitle,
h2.wp-block-heading,
h3.wp-block-heading {
    border-bottom: 2px solid #ff0000; /* Rot */
    padding-bottom: 6px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Benefits – 3 Boxen nebeneinander erzwingen */
.benefits-section {
    padding: 3rem 1rem;
}

.benefits-section .benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}


.benefit-card {
    text-align: center;
    padding: 1.5rem 1.25rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Icons in den Benefit-Boxen kleiner + zentriert */
.benefit-card-icon img {
    display: block;
    max-width: 48px !important;
    max-height: 48px !important;
    width: 48px !important;
    height: auto;
    margin: 0 auto 0.75rem auto;
}


.benefit-card-title {
    font-size: 26px;
    margin-bottom: 0.75rem;
}

.benefit-card-text {
    font-size: 100%;
    line-height: 1.5;
}


/* Gesamtstreifen */
.feature-strip {
    padding: 40px 20px;
}

.feature-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

/* Einzelne Kachel */
.feature-item {
    flex: 1 1 250px;
    text-align: center;
}

/* Icon-Größe steuern */
.feature-icon svg {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 15px;
}

/* Überschrift */
.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 420px;           /* Höhe anpassen wie beim Parallax-Header */
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
}

/* dunkles Overlay über dem Bild */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

/* Text-Bereich */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;  /* oder center, wenn du mittig willst */
    color: #ffffff;
}

.hero-title {
    font-size: 32px;
    margin: 0 0 10px;
}

.hero-subtitle {
    font-size: 18px;
    margin: 0 0 20px;
}

/* Button im Radiate-/Navy-Stil */
.hero-btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: #214DAA;
    color: #ffffff;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
}

.hero-btn:hover {
    background-color: #163574;
}

/* Mobil etwas kleiner */
@media (max-width: 768px) {
    .hero-slider {
        height: 280px;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
}


/* Responsive */
@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}



/* Responsive Header */
@media (max-width: 768px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .feature-strip-inner {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        max-width: 320px;
    }
}


/* Mobile: Branding (Logo) und Top-Bar untereinander statt nebeneinander */
@media (max-width: 768px) {
    .header-wrap {
        text-align: center;
    }

    .header-wrap .site-branding,
    .header-wrap .header-top-bar {
        float: none;        /* Floats aufheben */
        display: block;     /* Block-Elemente, ganze Zeile */
        width: 100%;        /* volle Breite */
    }

    .header-wrap .header-top-bar {
        margin-top: 8px;    /* kleiner Abstand unter dem Logo */
    }

    .step-box-grid {
        grid-template-columns: 1fr;
    }

    .nav-call-button {
        display: block;
        width: 100%;
        text-align: center;
        margin: 8px 0 0 0;
        background-color: #112F5B;
        color: #fff;
    }

    .nav-call-button a {
        display: block;
        padding: 12px 16px;
        color: #fff !important;
    }
    

     .header-top-bar {
        font-size: 14px;
        padding: 4px 8px;
        line-height: 1.3;
        text-align: center;
        display: block;
    }

    /* Hamburger-Button sichtbar machen */
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    /* Desktop-Menü standardmäßig VERSTECKEN */
    .main-navigation ul.nav-menu {
        display: none;
        float: none;
        width: 100%;
    }

    /* Wenn Radiate die Klasse 'toggled-on' setzt → Menü anzeigen */
    .main-navigation.toggled-on ul.nav-menu {
        display: block;
    }

    /* Menüpunkte untereinander */
    .main-navigation ul.nav-menu > li {
        float: none;
        display: block;
        text-align: left;
    }

    .main-navigation ul.nav-menu > li > a {
        display: block;
        padding: 12px 16px;
    }

     .site-header .site-branding {
        float: none !important;
        text-align: center !important;
        width: 100% !important;
        margin: 10px auto !important;
        display: block !important;
    }

    .site-header .site-branding img {
        display: block !important;
        margin: 0 auto !important;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .benefits-section .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .benefits-section .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Header und Top-Bar sauber über dem Parallax-Hintergrund stapeln */
.site-header {
    position: relative;
    z-index: 10;
}

/* Top-Bar sicher ganz oben */
.header-top-bar {
    position: relative;
    z-index: 20;
    background: rgba(0, 0, 0, 0.05);
    color: #333333;
}

/* Nur zum Testen – wenn du siehst, dass die Bar da ist, kannst du die Farbe wieder ändern */
.header-top-bar {
    background: #f3f4f6;
}

