/* === Blitz Elektrotechnik — Blueprint Technical === */
:root {
    --navy: #0D1B2A;
    --navy-mid: #1B4965;
    --navy-light: #274C6B;
    --yellow: #FFB703;
    --yellow-dark: #E5A200;
    --yellow-pale: #FFF3D0;
    --bg: #F0F4F8;
    --bg-alt: #E2E8F0;
    --white: #FFFFFF;
    --text: #0D1B2A;
    --text-mid: #3D5A73;
    --text-light: #6B8299;
    --border: #CBD5E0;
    --font-mono: 'Courier New', 'Lucida Console', 'Monaco', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow: 0 2px 8px rgba(13,27,42,0.08);
    --shadow-lg: 0 8px 32px rgba(13,27,42,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    background-image:
        linear-gradient(rgba(27,73,101,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27,73,101,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--yellow-dark); }
a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; padding: 0.75rem 1.5rem;
    background: var(--navy); color: #fff; z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* === SPLIT 3-PART NAV === */
.nav {
    background: var(--navy);
    position: sticky; top: 0; z-index: 100;
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; min-height: 60px;
}
.nav-logo {
    display: flex; align-items: center; gap: 0.5rem;
    color: #fff; font-weight: 700; font-size: 1.05rem;
    white-space: nowrap; text-decoration: none;
}
.nav-logo:hover { color: #fff; }
.nav-logo svg { width: 32px; height: 32px; }
.nav-links {
    display: flex; justify-content: center; gap: 0.25rem;
    list-style: none;
}
.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    padding: 0.4rem 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--yellow); }
.nav-emergency {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--yellow); color: var(--navy);
    padding: 0.45rem 1rem;
    font-weight: 700; font-size: 0.82rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    border: none; text-decoration: none;
    transition: background 0.2s;
}
.nav-emergency:hover { background: var(--yellow-dark); color: var(--navy); }
.nav-lang {
    font-family: var(--font-mono) !important;
    font-size: 0.72rem !important;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.2rem 0.5rem;
    color: rgba(255,255,255,0.6) !important;
}
.nav-lang:hover { color: #fff !important; border-color: rgba(255,255,255,0.6); }
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 0.5rem; color: #fff;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* === SPLIT HERO === */
.hero {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 460px;
}
.hero-text {
    background: var(--white);
    padding: 4rem 3rem 4rem 1.5rem;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 600px; margin-left: auto;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--yellow-dark);
    background: var(--yellow-pale);
    padding: 0.3rem 0.75rem;
    margin-bottom: 1rem;
    align-self: flex-start;
}
.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin-bottom: 1.75rem;
    max-width: 460px;
}
.hero-cta {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s;
    align-self: flex-start;
}
.hero-cta:hover { background: var(--navy-mid); color: #fff; }
.hero-visual {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.hero-visual::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(rgba(255,183,3,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,183,3,0.06) 1px, transparent 1px);
    background-size: 30px 30px;
}
.hero-visual::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,183,3,0.15) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(27,73,101,0.3) 0%, transparent 50%);
}

/* === SECTIONS === */
.section { padding: 4.5rem 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.section-alt { background: var(--white); }
.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.section-title--center { text-align: center; }
.section-subtitle {
    color: var(--text-mid);
    max-width: 550px;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}
.section-subtitle--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--yellow);
    margin-bottom: 0.5rem;
    display: block;
}
.section-code--center { text-align: center; }

/* === SERVICE CARDS === */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--yellow);
    transform: scaleY(0);
    transition: transform 0.2s;
    transform-origin: top;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleY(1); }
.service-card-icon {
    width: 44px; height: 44px;
    background: var(--yellow-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.service-card p { font-size: 0.9rem; color: var(--text-mid); }

/* === TRUST BADGES === */
.trust-row {
    display: flex; gap: 2rem; flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 0;
}
.trust-badge {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.85rem; font-weight: 600;
    color: var(--navy);
    background: var(--white);
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border);
}
.trust-badge svg { width: 22px; height: 22px; color: var(--yellow); flex-shrink: 0; }

/* === ABOUT === */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: center;
}
.about-img {
    height: 350px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
    position: relative; overflow: hidden;
}
.about-img::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(rgba(255,183,3,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,183,3,0.05) 1px, transparent 1px);
    background-size: 25px 25px;
}
.about-content h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 0.75rem; font-weight: 700; }
.about-content p { color: var(--text-mid); margin-bottom: 1rem; font-size: 0.95rem; }
.about-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    margin-top: 1.5rem;
}
.about-stat {
    text-align: center; padding: 1rem;
    background: var(--bg); border: 1px solid var(--border);
}
.about-stat strong {
    display: block; font-family: var(--font-mono);
    font-size: 1.5rem; color: var(--navy);
}
.about-stat span { font-size: 0.8rem; color: var(--text-light); }

/* === GALLERY === */
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.gallery-item {
    height: 200px;
    background: linear-gradient(var(--angle, 135deg), var(--navy) 0%, var(--navy-mid) 100%);
    position: relative; overflow: hidden;
    transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(rgba(255,183,3,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,183,3,0.04) 1px, transparent 1px);
    background-size: 20px 20px;
}
.gallery-item:nth-child(1) { --angle: 120deg; }
.gallery-item:nth-child(2) { --angle: 200deg; }
.gallery-item:nth-child(3) { --angle: 45deg; }
.gallery-item:nth-child(4) { --angle: 300deg; }
.gallery-item:nth-child(5) { --angle: 160deg; }
.gallery-item:nth-child(6) { --angle: 270deg; }

/* === REVIEWS === */
.reviews-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.review-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.75rem;
    border-left: 4px solid var(--yellow);
}
.review-stars { color: var(--yellow); font-size: 0.9rem; margin-bottom: 0.75rem; letter-spacing: 3px; }
.review-text { font-size: 0.92rem; color: var(--text-mid); margin-bottom: 1rem; font-style: italic; }
.review-author { font-size: 0.82rem; font-weight: 700; color: var(--navy); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }

/* === FAQ === */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; background: none; border: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.95rem; font-weight: 700; color: var(--text);
    text-align: left; padding: 1.25rem 0;
    font-family: var(--font-sans);
}
.faq-icon {
    width: 28px; height: 28px; flex-shrink: 0; margin-left: 1rem;
    background: var(--yellow-pale);
    display: flex; align-items: center; justify-content: center;
    color: var(--navy); font-size: 1rem; font-weight: 700;
    transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 0 1.25rem; color: var(--text-mid); font-size: 0.9rem; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 1rem; }
.contact-info p { margin-bottom: 0.75rem; color: var(--text-mid); font-size: 0.95rem; }
.contact-info a { color: var(--navy-mid); font-weight: 600; }
.contact-emergency {
    margin-top: 1.5rem; padding: 1.25rem;
    background: var(--yellow-pale); border-left: 4px solid var(--yellow);
}
.contact-emergency h4 {
    font-family: var(--font-mono); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--navy); margin-bottom: 0.5rem;
}
.contact-emergency p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 0; }
.contact-emergency a { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.contact-form label {
    display: block; font-size: 0.82rem; font-weight: 700;
    margin-bottom: 0.3rem; color: var(--text);
    text-transform: uppercase; letter-spacing: 0.05em;
    font-family: var(--font-mono);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%; padding: 0.7rem 0.9rem;
    border: 1px solid var(--border); font-size: 0.95rem;
    font-family: var(--font-sans);
    background: var(--white); color: var(--text);
    margin-bottom: 1rem; transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none; border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255,183,3,0.15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
    background: var(--navy); color: #fff; border: none;
    padding: 0.8rem 2rem; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: background 0.2s;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.contact-form button:hover { background: var(--navy-mid); }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: -0.5rem; margin-bottom: 1rem; }

/* === FOOTER === */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem; margin-bottom: 2.5rem;
}
.footer h4 {
    color: var(--yellow);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.footer p, .footer li { font-size: 0.88rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.4rem; }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--yellow); }
.footer-brand { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem; text-align: center; font-size: 0.8rem;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: var(--navy); border-top: 3px solid var(--yellow);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
}
.cookie-banner p { font-size: 0.85rem; color: rgba(255,255,255,0.8); flex: 1; min-width: 250px; }
.cookie-banner a { color: var(--yellow); text-decoration: underline; }
.cookie-btn {
    padding: 0.5rem 1.25rem; font-size: 0.85rem;
    font-weight: 700; cursor: pointer;
    background: var(--yellow); color: var(--navy); border: none;
    text-transform: uppercase; letter-spacing: 0.05em;
    transition: background 0.2s; font-family: var(--font-sans);
}
.cookie-btn:hover { background: var(--yellow-dark); }

/* === LEGAL MODALS === */
.legal-overlay {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(13,27,42,0.7); overflow-y: auto; padding: 2rem;
}
.legal-overlay.open { display: flex; justify-content: center; align-items: flex-start; }
.legal-box {
    background: var(--white); padding: 2.5rem;
    max-width: 780px; width: 100%; margin: 2rem auto; position: relative;
}
.legal-box h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--navy); }
.legal-box h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; color: var(--text); }
.legal-box p { margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; }
.legal-close {
    position: absolute; top: 1rem; right: 1rem; background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: var(--text-light); padding: 0.25rem; line-height: 1;
}
.legal-close:hover { color: var(--text); }
.legal-disclaimer {
    background: var(--yellow-pale); border-left: 4px solid var(--yellow);
    padding: 1rem; margin-bottom: 1.5rem;
    font-size: 0.85rem; color: var(--navy);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 60px; left: 0; right: 0;
        background: var(--navy); padding: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-toggle { display: block; }
    .nav-inner { grid-template-columns: auto auto; }
    .nav-emergency { display: none; }
    .hero { grid-template-columns: 1fr; }
    .hero-text { padding: 3rem 1.5rem; max-width: 100%; }
    .hero-visual { min-height: 250px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-row { gap: 0.75rem; }
    .cookie-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
}
