/*
Theme Name: Pegasus Bau GmbH
Theme URI: https://pegasus-bau.com
Author: Pegasus Bau GmbH
Author URI: https://pegasus-bau.com
Description: Professionelles Theme für die Pegasus Bau GmbH Frankfurt – Rohbau & Spezialbau seit über 20 Jahren.
Version: 1.0.0
License: Private
Text Domain: pegasus-bau
Tags: construction, business, one-page
*/

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', sans-serif;
    color: #1a2030;
    background: #ffffff;
    overflow-x: hidden;
}

/* === CSS VARIABLES === */
:root {
    --blue-dark:    #0f2e4e;
    --blue:         #1a4a7a;
    --blue-mid:     #1e5a96;
    --blue-light:   #2d7ac8;
    --accent:       #4a9ed4;
    --white:        #ffffff;
    --off-white:    #f5f7fa;
    --text-mid:     #4a5568;
}

/* === GOOGLE FONTS === */
/* Fonts werden lokal geladen – kein Google-Kontakt */
/* Montserrat + Open Sans via WordPress (bitte fonts-plugin oder lokale Dateien nutzen) */

/* ══ ELZA BOLD + BLACK – lizenzierte Schrift ══ */
@font-face {
    font-family: 'Elza';
    src: url('assets/fonts/elza-bold.woff2') format('woff2'),
         url('assets/fonts/elza-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Elza';
    src: url('assets/fonts/elza-black.woff2') format('woff2'),
         url('assets/fonts/elza-black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* === NAVIGATION === */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5vw; height: 82px;
    background: rgba(15,46,78,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(74,158,212,0.2);
}
.site-logo a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none !important;
}
.site-logo img,
.site-logo .custom-logo {
    height: 42px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain !important;
    object-position: left center;
    filter: brightness(1.1);
    display: block !important;
    flex-shrink: 0;
    margin: 0 !important;
}
.site-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.site-logo-text strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff !important;
    line-height: 1;
    white-space: nowrap;
}
.site-logo-text span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(74,158,212,0.9) !important;
    line-height: 1;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .site-logo-text { display: none; }
    .site-logo img, .site-logo .custom-logo { height: 36px !important; }
}
.main-nav ul { display: flex; gap: 2.5rem; list-style: none; }
.main-nav a {
    font-family: 'Montserrat', sans-serif; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.7); text-decoration: none;
    transition: color 0.2s;
    border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.main-nav a:hover { color: #fff; border-bottom-color: var(--accent); }
.nav-cta-btn {
    background: #2d7ac8 !important; color: #ffffff !important;
    padding: 0.65rem 1.6rem; font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; text-decoration: none !important;
    border: 2px solid #4a9ed4 !important; transition: all 0.2s;
    border-radius: 0 !important; -webkit-appearance: none;
}
.nav-cta-btn:hover, .nav-cta-btn:focus {
    background: #4a9ed4 !important; transform: translateY(-1px); color: #ffffff !important;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* === HERO === */
.hero-section {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
    padding: 100px 8vw 180px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-image: linear-gradient(110deg, rgba(10,30,55,0.92) 45%, rgba(15,46,78,0.55) 100%);
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image: var(--hero-bg-url);
    background-size: cover; background-position: center;
    z-index: -1;
}
.hero-badge {
    position: relative; display: inline-flex; align-items: center; gap: 0.7rem;
    background: rgba(74,158,212,0.15); border: 1px solid rgba(74,158,212,0.5);
    color: var(--accent); padding: 0.45rem 1.1rem;
    font-family: 'Montserrat', sans-serif; font-size: 0.72rem;
    font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 2rem; animation: fadeUp 0.7s ease both;
}
.hero-badge::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); animation: pulse 2s infinite;
}
.hero-section h1 {
    position: relative; font-family: 'Montserrat', sans-serif;
    font-weight: 900; font-size: clamp(2.8rem, 6.5vw, 6rem);
    line-height: 1.0; color: #fff; letter-spacing: -0.02em;
    animation: fadeUp 0.7s 0.1s ease both;
}
.hero-section h1 span { color: var(--accent); }
.hero-sub {
    position: relative; margin-top: 1.8rem; max-width: 560px;
    font-size: clamp(1rem,1.4vw,1.18rem); font-weight: 300;
    line-height: 1.75; color: rgba(255,255,255,0.78);
    animation: fadeUp 0.7s 0.2s ease both;
}
.hero-actions {
    position: relative; margin-top: 2.8rem;
    display: flex; gap: 1.2rem; align-items: center;
    animation: fadeUp 0.7s 0.3s ease both;
}
.btn-primary {
    background: #2d7ac8 !important; color: #ffffff !important;
    padding: 1rem 2.5rem; font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; text-decoration: none !important;
    border: 2px solid #2d7ac8 !important; transition: all 0.25s; display: inline-block;
    border-radius: 0 !important; box-shadow: none !important; -webkit-appearance: none;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: #4a9ed4 !important; border-color: #4a9ed4 !important;
    color: #ffffff !important; transform: translateY(-2px);
}
.btn-outline {
    color: rgba(255,255,255,0.85) !important; padding: 1rem 2rem;
    font-family: 'Montserrat', sans-serif; font-size: 0.85rem;
    font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none !important; border: 2px solid rgba(255,255,255,0.3) !important;
    transition: all 0.25s; border-radius: 0 !important; background: transparent !important;
}
.btn-outline:hover, .btn-outline:focus {
    border-color: #ffffff !important; color: #ffffff !important;
}

/* === HERO STATS === */
.hero-stats {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hstat {
    padding: 1.6rem 4vw;
    background: rgba(10,25,50,0.82); backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255,255,255,0.07);
}
.hstat:last-child { border-right: none; }
.hstat-num {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 2.4rem; line-height: 1; color: var(--accent);
}
.hstat-label {
    font-size: 0.73rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 0.3rem;
}

/* === TRUST BAR === */
.trust-bar {
    background: var(--blue);
    border-bottom: 3px solid var(--accent);
    padding: 1rem 6vw;
    display: flex; align-items: center; justify-content: center;
    gap: 3rem; flex-wrap: wrap;
}
.trust-item {
    display: flex; align-items: center; gap: 0.7rem;
    color: rgba(255,255,255,0.88); font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.trust-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* === SECTION BASE === */
.page-section { padding: 6rem 8vw; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--blue-dark); }
.section-blue { background: var(--blue); }

.section-label {
    font-family: 'Montserrat', sans-serif; font-size: 0.72rem;
    font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
    color: #2d7ac8 !important; display: flex; align-items: center; gap: 0.7rem;
    margin-bottom: 0.8rem;
}
.section-label::before { content: ''; width: 36px; height: 2px; background: #2d7ac8 !important; }
.section-label-accent { color: #4a9ed4 !important; }
.section-label-accent::before { background: #4a9ed4 !important; }

.section-title {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.1; color: #0f2e4e !important;
}
.section-title-white { color: #ffffff !important; }

/* === SERVICES GRID === */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2px; margin-top: 3.5rem; background: var(--blue-dark);
}
.service-card {
    background: #fff; padding: 2.5rem 2rem;
    position: relative; overflow: hidden; transition: background 0.3s;
}
.service-card::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0; height: 3px; background: var(--blue-light); transition: width 0.4s;
}
.service-card:hover { background: var(--off-white); }
.service-card:hover::after { width: 100%; }
.service-num {
    font-family: 'Montserrat', sans-serif; font-weight: 900;
    font-size: 4.5rem; line-height: 1; color: rgba(26,74,122,0.07);
    position: absolute; top: 1.5rem; right: 1.5rem; user-select: none;
}
.service-icon {
    width: 54px; height: 54px; margin-bottom: 1.5rem;
    background: rgba(26,74,122,0.08); border: 1px solid rgba(26,74,122,0.15);
    display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 24px; height: 24px; color: var(--blue-light); }
.service-card h3 {
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: 1.1rem; color: var(--blue-dark); margin-bottom: 0.7rem;
}
.service-card p { font-size: 0.88rem; line-height: 1.75; color: var(--text-mid); }

/* === GALLERY === */
.gallery-grid {
    display: grid; margin-top: 3.5rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 280px 280px; gap: 4px;
}
.gallery-item { overflow: hidden; position: relative; }
.gallery-item:first-child { grid-column: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease; filter: brightness(0.9);
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,46,78,0.65) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s;
    display: flex; align-items: flex-end; padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-tag {
    font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #fff; background: rgba(45,122,200,0.85); padding: 0.3rem 0.8rem;
}

/* === WHY SECTION === */
.why-section { display: grid; grid-template-columns: 1fr 1fr; }
.why-image { position: relative; min-height: 600px; background-size: cover; background-position: center; }
.why-badge-box {
    position: absolute; bottom: 0; right: 0;
    background: var(--blue-light); padding: 2rem 2.5rem; text-align: center;
}
.why-badge-num {
    font-family: 'Montserrat', sans-serif; font-weight: 900;
    font-size: 3rem; color: #fff; line-height: 1;
}
.why-badge-text {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
    text-transform: uppercase; color: rgba(255,255,255,0.8); margin-top: 0.3rem;
}
.why-content {
    padding: 5rem 4vw 5rem 5vw; background: var(--blue-dark);
    display: flex; flex-direction: column; justify-content: center;
}
.why-list { margin-top: 2.5rem; list-style: none; display: flex; flex-direction: column; gap: 1.3rem; }
.why-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding-bottom: 1.3rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.why-item:last-child { border-bottom: none; }
.why-check {
    width: 30px; height: 30px; flex-shrink: 0;
    background: rgba(74,158,212,0.15); border: 1px solid rgba(74,158,212,0.4);
    display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.why-check svg { width: 14px; height: 14px; color: var(--accent); }
.why-item-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.92rem; color: #fff; margin-bottom: 0.25rem; }
.why-item-text { font-size: 0.84rem; line-height: 1.65; color: rgba(255,255,255,0.45); }

/* === PROCESS === */
.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem; margin-top: 4rem; position: relative;
}
.process-grid::before {
    content: ''; position: absolute; top: 27px; left: 6%; right: 6%;
    height: 1px; background: rgba(26,74,122,0.2); z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.step-num {
    width: 54px; height: 54px; margin: 0 auto 1.5rem;
    background: var(--blue-dark); border: 2px solid var(--blue-light);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 1.2rem; color: var(--accent);
}
.process-step h4 {
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: 1rem; color: var(--blue-dark); margin-bottom: 0.5rem;
}
.process-step p { font-size: 0.84rem; line-height: 1.7; color: var(--text-mid); }

/* === REF SPLIT === */
.ref-split { display: grid; grid-template-columns: 1fr 1fr; }
.ref-image { background-size: cover; background-position: center; min-height: 500px; filter: brightness(0.85) contrast(1.1); }
.ref-content { background: var(--blue); padding: 5rem 4vw; display: flex; flex-direction: column; justify-content: center; }
.ref-content p { color: rgba(255,255,255,0.7); line-height: 1.8; font-size: 0.92rem; margin-top: 1.5rem; }
.ref-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.ref-metric { background: rgba(255,255,255,0.06); padding: 1.3rem; border-left: 3px solid var(--accent); }
.ref-metric-num { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 2rem; color: var(--accent); line-height: 1; }
.ref-metric-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 0.3rem; }

/* === CTA CONTACT === */
.cta-section {
    background: var(--blue-dark); padding: 5.5rem 8vw;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
    border-top: 3px solid var(--accent);
}
.cta-section h2 {
    font-family: 'Montserrat', sans-serif; font-weight: 900;
    font-size: clamp(1.8rem,3vw,2.6rem); color: #fff; line-height: 1.15;
}
.cta-section > div > p { margin-top: 1rem; color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.7; }
.contact-info { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.contact-info-item { display: flex; align-items: center; gap: 0.8rem; }
.contact-info-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.contact-info-item a, .contact-info-item span { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; }
.contact-info-item a:hover { color: var(--accent); }

/* === CONTACT FORM === */
.cta-form { display: flex; flex-direction: column; gap: 1rem; }
.cta-form input,
.cta-form textarea,
.cta-form select {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18);
    color: #fff; padding: 0.9rem 1.1rem;
    font-family: 'Open Sans', sans-serif; font-size: 0.9rem; outline: none;
    transition: border-color 0.2s; width: 100%;
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.cta-form input:focus, .cta-form textarea:focus { border-color: var(--accent); }
.cta-form select option { background: var(--blue-dark); color: #fff; }
.cta-form textarea { height: 90px; resize: none; }
.cta-form button, .cta-form input[type="submit"] {
    background: var(--blue-light); color: #fff;
    padding: 1.05rem; font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; border: 2px solid var(--blue-light);
    cursor: pointer; transition: all 0.2s; width: 100%;
}
.cta-form button:hover, .cta-form input[type="submit"]:hover {
    background: var(--accent); border-color: var(--accent);
}

/* === FOOTER === */
.site-footer {
    background: var(--blue-dark); padding: 3rem 8vw;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem; border-top: 1px solid rgba(74,158,212,0.2);
}
.footer-logo a { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none !important; margin-bottom: 1rem; }
.footer-logo img,
.footer-logo .custom-logo {
    height: 42px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain !important;
    filter: brightness(1.1);
    display: block;
    margin-bottom: 0 !important;
}
.footer-desc { font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-col-title {
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(255,255,255,0.4); margin-bottom: 1rem;
}
.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav-list a { font-size: 0.85rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-nav-list a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.7rem; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.footer-contact-item span, .footer-contact-item a {
    font-size: 0.84rem; color: rgba(255,255,255,0.55); text-decoration: none; line-height: 1.5;
}
.footer-contact-item a:hover { color: var(--accent); }
.footer-bottom {
    background: #0a1e35;
    padding: 1.2rem 8vw;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.45) !important; }
.footer-bottom a {
    color: #4a9ed4 !important; text-decoration: none !important;
    font-weight: 600;
}
.footer-bottom a:hover { color: #ffffff !important; }

/* === ANIMATIONS === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.6); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .main-nav ul { display: none; }
    .nav-toggle { display: block; }
    .main-nav.open ul {
        display: flex; flex-direction: column; position: absolute;
        top: 76px; left: 0; right: 0; background: var(--blue-dark);
        padding: 1.5rem 5vw; gap: 1.5rem;
    }
    .hero-stats { grid-template-columns: 1fr 1fr; position: static; }
    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-item { height: 220px; }
    .gallery-item:first-child, .gallery-item:nth-child(4) { grid-column: span 2; }
    .why-section { grid-template-columns: 1fr; }
    .why-image { min-height: 300px; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .process-grid::before { display: none; }
    .ref-split { grid-template-columns: 1fr; }
    .ref-image { min-height: 300px; }
    .cta-section { grid-template-columns: 1fr; gap: 2.5rem; }
    .site-footer { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ══ MASONRY PHOTO GALLERY ══ */
.photo-gallery { margin-top:3.5rem; columns:4; column-gap:6px; }
.gi { break-inside:avoid; margin-bottom:6px; position:relative; overflow:hidden; cursor:pointer; }
.gi img { width:100%; display:block; transition:transform 0.5s ease; filter:brightness(0.88); }
.gi:hover img { transform:scale(1.04); filter:brightness(1); }
.gi-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(15,46,78,0.7) 0%,transparent 55%); opacity:0; transition:opacity 0.3s; display:flex; align-items:flex-end; padding:0.9rem; }
.gi:hover .gi-overlay { opacity:1; }
.gi-tag { font-family:'Montserrat',sans-serif; font-size:0.65rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:#fff; background:rgba(45,122,200,0.85); padding:0.25rem 0.65rem; }
.gi-hidden { display:none; }
.gallery-show-more { text-align:center; margin-top:2.5rem; }
.gallery-show-more button { background:none; border:2px solid var(--blue-light); color:var(--blue-light); padding:0.85rem 2.5rem; font-family:Montserrat,sans-serif; font-size:0.8rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; cursor:pointer; transition:all 0.25s; }
.gallery-show-more button:hover { background:var(--blue-light); color:#fff; }

/* ══ LIGHTBOX ══ */
.lightbox { display:none; position:fixed; inset:0; z-index:9999; background:rgba(5,15,30,0.97); align-items:center; justify-content:center; }
.lightbox.open { display:flex; }
.lightbox img { max-width:92vw; max-height:90vh; object-fit:contain; }
.lb-close { position:absolute; top:1.5rem; right:2rem; color:rgba(255,255,255,0.7); font-size:2rem; cursor:pointer; background:none; border:none; }
.lb-close:hover { color:#fff; }
.lb-prev,.lb-next { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); color:#fff; font-size:1.6rem; padding:0.8rem 1.1rem; cursor:pointer; transition:background 0.2s; }
.lb-prev:hover,.lb-next:hover { background:rgba(45,122,200,0.5); }
.lb-prev { left:1.5rem; }
.lb-next { right:1.5rem; }
.lb-counter { position:absolute; bottom:1.5rem; left:50%; transform:translateX(-50%); color:rgba(255,255,255,0.5); font-family:Montserrat,sans-serif; font-size:0.75rem; letter-spacing:0.15em; }

/* ══ REFERENZPROJEKTE GRID ══ */
.ref-projects-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; margin-top:3.5rem; background:var(--blue-dark); }
.ref-project-card { background:#fff; overflow:hidden; transition:transform 0.3s; }
.ref-project-card:hover { transform:translateY(-4px); }
.ref-project-img { height:220px; background-size:cover; background-position:center; position:relative; filter:brightness(0.88); transition:filter 0.3s; }
.ref-project-card:hover .ref-project-img { filter:brightness(1); }
.ref-project-year { position:absolute; top:1rem; left:1rem; background:var(--blue-light); color:#fff; font-family:Montserrat,sans-serif; font-size:0.7rem; font-weight:700; letter-spacing:0.12em; padding:0.3rem 0.7rem; }
.ref-project-body { padding:1.5rem; }
.ref-project-body h3 { font-family:Montserrat,sans-serif; font-weight:700; font-size:1rem; color:var(--blue-dark); margin-bottom:0.6rem; }
.ref-project-meta { display:flex; flex-direction:column; gap:0.2rem; margin-bottom:0.8rem; }
.ref-project-meta span { font-size:0.78rem; color:var(--blue-light); }
.ref-project-body p { font-size:0.84rem; line-height:1.65; color:var(--text-mid); }

@media(max-width:960px) {
  .photo-gallery { columns:2; }
  .ref-projects-grid { grid-template-columns:1fr 1fr; }
}
@media(max-width:500px) {
  .photo-gallery { columns:1; }
  .ref-projects-grid { grid-template-columns:1fr; }
}

/* ══════════════════════════════════
   SAFARI & iOS FIXES
══════════════════════════════════ */

/* Safari backdrop-filter fallback */
@supports not (backdrop-filter: blur(1px)) {
    .site-header { background: rgba(15,46,78,0.99) !important; }
}

/* iOS Safari – prevent font size boost */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Safari smooth scroll */
html { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }

/* iOS tap highlight */
* { -webkit-tap-highlight-color: transparent; }

/* Safari button reset */
button, input[type="submit"] { -webkit-appearance: none; border-radius: 0; }

/* Safari flex gap fallback */
.trust-bar { gap: 2.5rem; }
.hero-actions { gap: 1.2rem; }

/* iOS – fix 100vh (browser chrome eats into it) */
.hero-section { min-height: -webkit-fill-available; min-height: 100dvh; }

/* Safari – fix fixed positioning on scroll */
.site-header { -webkit-transform: translateZ(0); transform: translateZ(0); }

/* Mobile nav spacing */
@media (max-width: 960px) {
    .hero-section { padding: 90px 5vw 200px; }
    .hero-stats { position: static; }
    .hero-stats .hstat { padding: 1.2rem 5vw; }
    .hstat-num { font-size: 1.8rem; }
    .hero h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; }
    .trust-bar { gap: 1.2rem; padding: 0.8rem 4vw; }
    .trust-item { font-size: 0.68rem; gap: 0.4rem; }
    .trust-item svg { width: 15px; height: 15px; }
    .page-section { padding: 3.5rem 5vw; }
    .cta-section { padding: 3.5rem 5vw; }
    .why-content { padding: 3rem 5vw; }
    .ref-content { padding: 3rem 5vw; }
    .process-grid { gap: 1.5rem; }
}

/* Small phones */
@media (max-width: 400px) {
    .hero h1 { font-size: 2rem; }
    .hstat-num { font-size: 1.5rem; }
    .site-header { padding: 0 4vw; }
}

/* ══ REF CARD AS LINK ══ */
a.ref-project-card {
    display: block; text-decoration: none !important; color: inherit !important;
    cursor: pointer;
}
a.ref-project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(15,46,78,0.15); }
a.ref-project-card .ref-project-body h3 { color: #0f2e4e !important; }

/* ══ LOGO WORDPRESS OVERRIDE – verhindert dass WP eigene Styles das Logo verzerren ══ */
.site-logo .custom-logo-link {
    display: flex !important;
    align-items: center !important;
    line-height: 0 !important;
}
.site-logo .custom-logo-link img {
    height: 42px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ══ LOGO – FINAL FIX ══ */
.site-logo { display: flex; align-items: center; }
.site-logo > a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.85rem !important;
    text-decoration: none !important;
    line-height: 1 !important;
}
.site-logo-img {
    height: 42px !important;
    width: auto !important;
    max-width: 130px !important;
    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}
.site-logo-fallback {
    height: 42px; width: 42px; flex-shrink: 0;
    background: #2d7ac8; display: flex; align-items: center; justify-content: center;
    font-family: Montserrat,sans-serif; font-weight: 900; color: #fff; font-size: 1.2rem;
}
.site-logo-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
    line-height: 1 !important;
}
.site-logo-text strong {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important; font-size: 0.95rem !important;
    letter-spacing: 0.1em !important; text-transform: uppercase !important;
    color: #ffffff !important; white-space: nowrap !important;
    display: block !important;
}
.site-logo-text span {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important; font-size: 0.55rem !important;
    letter-spacing: 0.22em !important; text-transform: uppercase !important;
    color: rgba(74,158,212,0.9) !important; white-space: nowrap !important;
    display: block !important;
}
/* Remove all old WordPress custom-logo styles */
.site-logo .custom-logo-link,
.site-logo .custom-logo { display: none !important; }
@media (max-width: 480px) {
    .site-logo-text { display: none !important; }
    .site-logo-img { height: 36px !important; }
}

/* Elza font for hero */
.hero-section h1 { font-family: 'Elza', 'Montserrat', sans-serif !important; font-weight: 900 !important; text-transform: uppercase !important; letter-spacing: -0.04em !important; }

.cta-section h2 { font-family: 'Montserrat',sans-serif !important; font-weight: 800 !important; text-transform: none !important; letter-spacing: normal !important; }

.hero-section h1 { line-height: 0.88 !important; }

/* ══ COOKIE BANNER ══ */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
    background: #0a1e35; border-top: 2px solid #2d7ac8;
    padding: 1.2rem 5vw; display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    transform: translateY(100%); transition: transform 0.4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p {
    font-family: 'Montserrat', sans-serif; font-size: 0.78rem;
    color: rgba(255,255,255,0.75) !important; margin: 0 !important;
    line-height: 1.6 !important; flex: 1; min-width: 200px;
}
#cookie-banner a { color: #4a9ed4 !important; text-decoration: underline !important; }
.cookie-buttons { display: flex; gap: 0.8rem; flex-shrink: 0; }
.cookie-btn-accept {
    background: #2d7ac8 !important; color: #fff !important;
    border: 2px solid #2d7ac8 !important; padding: 0.55rem 1.5rem;
    font-family: 'Montserrat', sans-serif; font-size: 0.72rem;
    font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; transition: background 0.2s;
}
.cookie-btn-accept:hover { background: #4a9ed4 !important; border-color: #4a9ed4 !important; }
.cookie-btn-decline {
    background: transparent !important; color: rgba(255,255,255,0.5) !important;
    border: 2px solid rgba(255,255,255,0.2) !important; padding: 0.55rem 1.2rem;
    font-family: 'Montserrat', sans-serif; font-size: 0.72rem;
    font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer; transition: all 0.2s;
}
.cookie-btn-decline:hover { color: #fff !important; border-color: rgba(255,255,255,0.5) !important; }
@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; align-items: flex-start; }
    .cookie-buttons { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}




/* ══ DATENSCHUTZ & SUBPAGES ══ */
.page-template-default .entry-content { max-width: 760px !important; margin: 120px auto 5rem !important; padding: 0 5vw !important; font-family: 'Montserrat', sans-serif !important; }
.page-template-default .entry-content h1 { font-size: 2.2rem !important; font-weight: 800 !important; color: #0f2e4e !important; border-bottom: 3px solid #2d7ac8 !important; padding-bottom: 1.2rem !important; margin-bottom: 2.5rem !important; }
.page-template-default .entry-content h2 { font-size: 11px !important; font-weight: 700 !important; letter-spacing: .18em !important; text-transform: uppercase !important; color: #2d7ac8 !important; margin: 2.2rem 0 .6rem !important; padding: 0 !important; }
.page-template-default .entry-content p { font-size: 14.5px !important; line-height: 1.85 !important; color: #4a5568 !important; margin: 0 0 .8rem !important; }
.page-template-default .entry-content ul { margin: .3rem 0 .8rem 1.3rem !important; padding: 0 !important; }
.page-template-default .entry-content li { font-size: 14.5px !important; line-height: 1.85 !important; color: #4a5568 !important; margin-bottom: .2rem !important; }
.page-template-default .entry-content strong { color: #0f2e4e !important; font-weight: 600 !important; }
.page-template-default .entry-content a { color: #2d7ac8 !important; text-decoration: underline !important; }
.page-template-default .entry-content hr { border: none !important; border-top: 3px solid #2d7ac8 !important; margin: 0 0 2.5rem !important; }

/* ══ DATENSCHUTZ & IMPRESSUM UNTERSEITEN ══ */
.page-template-default .entry-content {
    max-width: 760px;
    margin: 120px auto 5rem;
    padding: 0 5vw;
    font-family: 'Montserrat', sans-serif;
}
.page-template-default .entry-content h1 {
    font-size: 2.2rem !important; font-weight: 800 !important;
    color: #0f2e4e !important;
    border-bottom: 3px solid #2d7ac8 !important;
    padding-bottom: 1.2rem !important; margin-bottom: 2.5rem !important;
}
.page-template-default .entry-content h2 {
    font-size: 11px !important; font-weight: 700 !important;
    letter-spacing: .18em !important; text-transform: uppercase !important;
    color: #2d7ac8 !important; margin: 2.2rem 0 .6rem !important; padding: 0 !important;
}
.page-template-default .entry-content p {
    font-size: 14.5px !important; line-height: 1.85 !important;
    color: #4a5568 !important; margin: 0 0 .8rem !important;
}
.page-template-default .entry-content ul { margin: .3rem 0 .8rem 1.3rem !important; padding: 0 !important; }
.page-template-default .entry-content li { font-size: 14.5px !important; line-height: 1.85 !important; color: #4a5568 !important; }
.page-template-default .entry-content strong { color: #0f2e4e !important; font-weight: 600 !important; }
.page-template-default .entry-content a { color: #2d7ac8 !important; text-decoration: underline !important; }
.page-template-default .entry-content hr { border: none !important; border-top: 3px solid #2d7ac8 !important; margin: 0 0 2.5rem !important; }
