
/* Skip Navigation (Accessibility) */
.skip-nav { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 9999; padding: 12px 24px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; border-radius: 0 0 8px 0; font-size: 0.9rem; }
.skip-nav:focus { position: fixed; left: 0; top: 0; width: auto; height: auto; overflow: visible; }
/* ══════════════════════════════════════════════════════════════
   SERAS Elektro GmbH – Light Theme
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-dark:     #EEF2F8;
    --bg-card:     #FFFFFF;
    --bg-card2:    #F1F5FB;
    --border:      rgba(0,0,0,0.08);
    --accent:      #2563EB;
    --accent-dim:  rgba(37,99,235,0.08);
    --accent-glow: rgba(37,99,235,0.25);
    --blue:        #0EA5E9;
    --blue-dim:    rgba(14,165,233,0.08);
    --text:        #0F172A;
    --muted:       #64748B;
    --red-dim:     rgba(239,68,68,0.08);
    --radius:      16px;
    --radius-sm:   10px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── NAV ──────────────────────────────────────────────── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 24px;
    background: #FFFFFF;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    transition: background .3s;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo-text .brand { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: #0F172A; }
.nav-logo-text .brand span { color: var(--accent); }
.nav-logo-text .sub { font-size: .72rem; color: #64748B; letter-spacing: .05em; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
    display: block; padding: 8px 14px; border-radius: 8px;
    text-decoration: none; color: #475569; font-size: .9rem; font-weight: 500;
    transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active       { color: var(--accent); background: rgba(37,99,235,.06); }
.nav-links .nav-konfig    { color: var(--accent) !important; }
.nav-links .nav-konfig:hover { background: var(--accent-dim) !important; }
.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.nav-cta:hover { background: #1d4ed8 !important; transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; color: var(--text); font-size: 1.5rem; }

/* ── MOBILE NAV (Dropdown) ───────────────────────────── */
@media (max-width: 768px) {
    nav {
        overflow: visible;
    }
    .nav-burger {
        display: block;
        z-index: 1002;
        position: relative;
    }
    .nav-inner {
        height: 60px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        padding: 8px 16px 16px;
        gap: 2px;
        list-style: none;
        box-shadow: 0 12px 32px rgba(0,0,0,.12);
        border-top: 1px solid var(--border);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1001;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block; padding: 12px 14px; border-radius: 8px;
        font-size: .95rem; font-weight: 500; color: var(--text);
        text-decoration: none;
    }
    .nav-links a:hover,
    .nav-links a.active { background: var(--accent-dim); color: var(--accent); }
    .nav-cta {
        margin-top: 8px;
        text-align: center;
        border-radius: 8px !important;
    }
    .nav-notdienst-li { order: -1; }
    .nav-notdienst-li a {
        background: rgba(239,68,68,.08) !important;
        color: #dc2626 !important;
        text-align: center;
        border-radius: 8px;
        font-weight: 600 !important;
    }
    .nav-logo-text .sub { display: none; }
}

/* Desktop Hero Video - Responsive 16:9 aspect ratio */
.hero-video-section {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 100vh;
    overflow: hidden;
    background: #0a0c14;
}

.hero-video-section .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}
/* Desktop: show 16:9, hide 9:16 */
.hero-video--mobile { display: none; }
.hero-video--desktop { display: block; }

@media (max-width: 768px) {
    /* Mobile: show 9:16, hide 16:9 */
    .hero-video--desktop { display: none; }
    .hero-video--mobile { display: block; }
    .hero-video-section {
        height: 100vh;
        height: 100svh;
    }
    
    /* Mobile 9:16 video – show full video without zoom */
    .hero-video-section .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-width: unset;
        min-height: unset;
        transform: none;
        object-fit: contain;
    }
}

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: var(--radius-sm);
    font-size: .95rem; font-weight: 600; text-decoration: none;
    transition: all .25s; cursor: pointer; border: none;
    font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: rgba(0,0,0,.15); background: rgba(0,0,0,.04); transform: translateY(-2px); }

/* ── LAYOUT ───────────────────────────────────────────── */
section { padding: 100px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
    display: inline-block;
    background: var(--accent-dim); border: 1px solid rgba(37,99,235,.3);
    color: var(--accent); padding: 4px 14px; border-radius: 999px;
    font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700; line-height: 1.2; margin-bottom: 16px;
}
.section-desc { color: var(--muted); font-size: 1.05rem; max-width: 600px; line-height: 1.75; }
.section-header { margin-bottom: 60px; }

/* ── HERO (Startseite) ────────────────────────────────── */
.hero {
    min-height: 56.25vw; display: flex; align-items: center;
    position: relative; overflow: hidden; padding: 120px 24px 80px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }

.loop-ring {
    position: absolute; border-radius: 50%; border: 1px solid;
    animation: loopPulse 6s ease-in-out infinite;
}
.loop-ring:nth-child(1) { width:600px; height:600px; top:-150px;  right:-150px;  border-color: rgba(37,99,235,.12); animation-delay: 0s; }
.loop-ring:nth-child(2) { width:900px; height:900px; top:-300px;  right:-300px;  border-color: rgba(37,99,235,.07); animation-delay: 1s; }
.loop-ring:nth-child(3) { width:400px; height:400px; bottom:-100px; left:-100px; border-color: rgba(14,165,233,.10); animation-delay: 2s; }
.loop-ring:nth-child(4) { width:700px; height:700px; bottom:-250px; left:-200px; border-color: rgba(14,165,233,.06); animation-delay: 3s; }
.loop-ring:nth-child(5) { width:300px; height:300px; top:40%;     left:40%;     border-color: rgba(37,99,235,.05); animation-delay: 1.5s; animation-duration: 8s; }

@keyframes loopPulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.05); opacity: .5; }
}
@keyframes floatParticle {
    0%   { transform: translateY(100vh) translateX(0);  opacity: 0; }
    10%  { opacity: .4; }
    90%  { opacity: .4; }
    100% { transform: translateY(-100px) translateX(60px); opacity: 0; }
}

.hero-particles { position: absolute; inset: 0; }
.hero-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(37,99,235,.06) 0%, transparent 60%),
                radial-gradient(ellipse 60% 50% at 20% 80%, rgba(14,165,233,.07) 0%, transparent 55%);
}

.hero-inner {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 48px; } }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-dim); border: 1px solid rgba(37,99,235,.3);
    color: var(--accent); padding: 6px 14px; border-radius: 999px;
    font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700; line-height: 1.15; margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero-desc { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin-bottom: 36px; line-height: 1.75; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
    display: flex; gap: 28px; flex-wrap: wrap;
    margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--border);
}
.stat-val { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* Hero card (rechte Seite) */
.hero-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 24px; padding: 32px; position: relative; overflow: hidden;

    box-shadow: 0 4px 24px rgba(37,99,235,.08);}
.hero-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
}
.hero-card-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }

.hero-svc-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hero-svc-list li {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card2); border: 1px solid var(--border);
    padding: 14px 16px; border-radius: var(--radius-sm);
    font-size: .9rem; font-weight: 500; transition: all .2s;
}
.hero-svc-list li:hover { border-color: rgba(37,99,235,.3); transform: translateX(4px); }
.svc-ico {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--accent-dim); display: flex; align-items: center;
    justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.hero-trust {
    margin-top: 20px; display: flex; align-items: center; gap: 10px;
    background: rgba(14,165,233,.08); border: 1px solid rgba(14,165,233,.2);
    padding: 12px 16px; border-radius: var(--radius-sm);
}
.hero-trust p { font-size: .82rem; color: var(--muted); }
/* Hero trust badges (WKO + Staatlich geprüft) */
.hero-trust-badges {
    margin-top: 20px; display: flex; align-items: center; gap: 20px;
    background: var(--bg-card2); border: 1px solid var(--border);
    padding: 14px 20px; border-radius: var(--radius-sm);
}
.trust-badge-item {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text);
}
.trust-badge-logo { height: 36px; width: auto; object-fit: contain; flex-shrink: 0; }
.trust-badge-text { font-size: .85rem; font-weight: 600; color: var(--text); white-space: nowrap; }

.hero-trust strong { color: var(--text); }

/* ── SERVICES ─────────────────────────────────────────── */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px;
}
.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    position: relative; overflow: hidden; transition: all .3s;

    box-shadow: 0 2px 12px rgba(0,0,0,.04);}
.service-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0; transition: opacity .3s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(37,99,235,.25); box-shadow: 0 20px 48px rgba(37,99,235,.12); }
.service-card:hover::after { opacity: 1; }
.service-card .card-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--accent-dim); border: 1px solid rgba(37,99,235,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 22px;
}
.service-card .card-icon.blue { background: var(--blue-dim); border-color: rgba(14,165,233,.2); }
.service-card .card-icon.red  { background: var(--red-dim);  border-color: rgba(239,68,68,.2); }
.service-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.service-card p  { color: var(--muted); font-size: .92rem; line-height: 1.7; }
.card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent); font-size: .85rem; font-weight: 600;
    text-decoration: none; margin-top: 20px; transition: gap .2s;
}
.card-link:hover { gap: 10px; }
.card-link.red { color: #f87171; }

/* Featured Photovoltaik card */
.service-card.featured {
    background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(37,99,235,.04));
    border-color: rgba(37,99,235,.3);
    grid-column: span 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
@media (max-width: 768px) { .service-card.featured { grid-column: span 1; grid-template-columns: 1fr; } }
.featured-label {
    display: inline-block;
    background: var(--accent); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 999px; margin-bottom: 16px;
}
.featured-points { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.featured-points li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.featured-points li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.featured-img {
    border-radius: var(--radius-sm); overflow: hidden;
    aspect-ratio: 4/3; background: var(--bg-card2);
    display: flex; align-items: center; justify-content: center; font-size: 6rem;
}

/* ── ABOUT ────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.about-img-wrap { position: relative; }
.about-main-img {
    width: 100%; aspect-ratio: 4/3;
    background: var(--bg-card2); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
}
.about-main-img img { width: 100%; height: 100%; object-fit: cover; }

.about-badge-card {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--bg-dark); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px 20px;
    display: flex; align-items: center; gap: 14px;
}
.about-badge-val { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.about-badge-sub { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.about-badge-stamp {
    padding: 10px; background: rgba(255,255,255,0.9);
    border-radius: 50%; width: 90px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.about-badge-stamp img { width: 70px; height: 70px; object-fit: contain; }


.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.about-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; 
    box-shadow: 0 2px 8px rgba(0,0,0,.04);}
.about-stat-val { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.about-stat-label { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.about-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 28px 0; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: .95rem; }
.about-list .chk { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ── WHY SECTION ──────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; text-align: center; transition: all .3s;

    box-shadow: 0 2px 12px rgba(0,0,0,.04);}
.why-card:hover { border-color: rgba(37,99,235,.25); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(37,99,235,.10); }
.why-icon { font-size: 2.5rem; margin-bottom: 16px; }
.why-card h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: .875rem; line-height: 1.65; }

/* ── CONTACT ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-items { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.contact-info-item {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 18px 20px;
}
.ci-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--accent-dim); border: 1px solid rgba(37,99,235,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.ci-label { font-size: .72rem; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .05em; }
.ci-val { font-size: .95rem; font-weight: 500; color: var(--text); }
.ci-val a { color: var(--text); text-decoration: none; }
.ci-val a:hover { color: var(--accent); }

/* ── FORMS ────────────────────────────────────────────── */
.form-wrap {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 16px;
    color: var(--text); font-size: .95rem; font-family: 'Inter', sans-serif;
    transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(100,116,139,.45); }
.form-group textarea { height: 130px; resize: vertical; }
.form-group select option { background: var(--bg-card2); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.alert-success { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.3);  color: #4ade80; }
.alert-error   { background: rgba(239,68,68,.1);   border: 1px solid rgba(239,68,68,.3);   color: #f87171; }
.alert-info    { background: rgba(14,165,233,.1);   border: 1px solid rgba(14,165,233,.3);   color: #93c5fd; }

/* ── PAGE HERO (Unterseiten) ──────────────────────────── */
.page-hero {
    padding: 120px 24px 48px;
    background: var(--bg-dark); position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(37,99,235,.05) 0%, transparent 60%);
}
.page-hero .section-inner { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: rgba(0,0,0,.2); }
.page-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 12px; }
.page-hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 560px; }

/* ── LEGAL PAGES ──────────────────────────────────────── */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-section { margin-bottom: 28px; }
.legal-section h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal-section h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 14px 0 6px; }
.legal-section p  { color: var(--muted); font-size: .95rem; line-height: 1.7; margin-bottom: 8px; }
.legal-section ul { color: var(--muted); font-size: .95rem; line-height: 1.8; padding-left: 20px; margin-bottom: 12px; }
.legal-section a  { color: var(--accent); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } }
.info-item {
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 18px;
    font-size: .9rem; color: var(--muted); line-height: 1.6;
}
.info-item strong { display: block; color: var(--text); margin-bottom: 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

/* Legal page section override */
.legal-content ~ * { }
section:has(.legal-content) { padding: 48px 24px 60px; }

/* ── KONFIGURATOR ─────────────────────────────────────── */
.konfig-wrap { max-width: 820px; margin: 0 auto; }
.konfig-step {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; margin-bottom: 20px;
    transition: border-color .3s;
}
.konfig-step.active { border-color: rgba(37,99,235,.3); }
.konfig-step-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.step-num {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent); color: #fff;
    font-weight: 700; font-size: .9rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-num.done { background: rgba(34,197,94,.2); color: #4ade80; }
.step-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.option-card {
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    padding: 18px 12px; text-align: center; cursor: pointer; transition: all .2s;
    background: var(--bg-card2);
}
.option-card:hover  { border-color: rgba(37,99,235,.4); background: var(--accent-dim); }
.option-card.selected { border-color: var(--accent); background: var(--accent-dim); }
.opt-icon  { font-size: 2rem; margin-bottom: 8px; }
.opt-label { font-size: .875rem; font-weight: 600; }
.opt-sub   { font-size: .75rem; color: var(--muted); margin-top: 4px; }

.konfig-result {
    background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(37,99,235,.03));
    border: 1px solid rgba(37,99,235,.3);
    border-radius: var(--radius); padding: 36px; margin-top: 28px;
}
.konfig-result h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; margin-bottom: 24px; }
.price-range { font-size: 2.8rem; font-weight: 800; color: var(--accent); font-family: 'Space Grotesk', sans-serif; }
.price-note  { color: var(--muted); font-size: .875rem; margin-top: 6px; }
.price-items { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.price-items li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.price-items li span { color: var(--text); font-weight: 600; }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
    background: #E2E8F0; border-top: 1px solid var(--border);
    padding: 60px 24px 28px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { max-width: 260px; }
.footer-brand .logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo-wrap img { height: 36px; }
.footer-brand p { color: var(--muted); font-size: .875rem; line-height: 1.7; }
.footer-col h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 18px; }
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a   { color: rgba(100,116,139,.85); text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-col li { color: rgba(100,116,139,.85); font-size: .875rem; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    padding-top: 24px; border-top: 1px solid var(--border);
}
.footer-bottom p { color: var(--muted); font-size: .825rem; }
.meister-badge {
    display: flex; align-items: center; gap: 6px;
    background: var(--accent-dim); border: 1px solid rgba(37,99,235,.25);
    color: var(--accent); padding: 4px 12px; border-radius: 999px;
    font-size: .75rem; font-weight: 600;
}

/* ── SCROLL ANIMATIONS ────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════════
   NEW SECTIONS – SERAS FEATURES
   ══════════════════════════════════════════════════════════════ */

/* ── HERO CREDENTIALS (WKO + Staatlich geprüft badges) ── */
.hero-credentials {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border);
}
.credential-item {
    display: flex; align-items: center; gap: 10px;
}
.wko-logo-link { display: flex; align-items: center; opacity: .85; transition: opacity .2s; }
.wko-logo-link:hover { opacity: 1; }
.credential-text { font-size: .75rem; color: var(--muted); font-weight: 500; }
.credential-item img { }
.footer-credentials { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.footer-credentials img { }

/* ── NAV NOTDIENST BUTTON ─────────────────────────────── */
.nav-notdienst {
    color: #f87171 !important; font-weight: 600 !important;
    animation: pulseRed 2s infinite;
}
@keyframes pulseRed {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}
.btn-notdienst-hero { border-color: rgba(239,68,68,.4) !important; color: #f87171 !important; }
.btn-notdienst-hero:hover { background: rgba(239,68,68,.1) !important; border-color: #f87171 !important; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* ── TRUST BAR ────────────────────────────────────────── */

/* hero-video base rules are above (line ~122) — no duplicate needed */


/* Disruptor Badges (rechts, like 3si Open House) */
.hero-disruptor {
    position: absolute;
    left: 28px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.hero-disruptor-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.hero-disruptor-badge:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.65);
}

.hero-disruptor-badge--round {
    padding: 10px;
    border-radius: 50%;
}

.hero-disruptor-badge--round img {
    display: block;
    border-radius: 50%;
}

.hero-disruptor-text {
    font-size: .7rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Scroll-Pfeil unten */
.hero-scroll-down {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    animation: hero-bounce 2s ease infinite;
    transition: color 0.2s;
}

.hero-scroll-down:hover {
    color: #fff;
}

@keyframes hero-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}

/* ── Hero Content Section (below video) ── */
.hero-content-section {
    background: var(--bg);
    padding: 60px 0 50px;
}

.hero-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.hero-content-section h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--heading);
    margin-bottom: 16px;
}

.hero-content-section h1 span {
    color: var(--primary);
}

.hero-content-section .hero-desc {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-content-section .hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hero-content-section .hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}

.hero-content-section .stat-val {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-content-section .stat-label {
    font-size: .82rem;
    color: var(--muted);
}

.hero-content-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb, 0,122,255), 0.08);
    border: 1px solid rgba(var(--primary-rgb, 0,122,255), 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .82rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-content-section .badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Mobile: stack content */
@media (max-width: 768px) {
    .hero-video-section {
        aspect-ratio: auto;
        height: 100vh;
        height: 100svh;
    }
    .hero-video-section .hero-video {
        object-fit: contain;
    }
    
    .hero-disruptor {
        left: 16px;
        bottom: 80px;
        gap: 12px;
    }
    
    .hero-disruptor-badge {
        padding: 10px 14px;
    }
    
    .hero-disruptor-badge svg {
        width: 85px;
        height: 21px;
    }
    
    .hero-disruptor-badge--round {
        padding: 8px;
    }
    
    .hero-disruptor-badge--round img {
        width: 52px;
        height: 52px;
    }
    
    .hero-video-badges {
        bottom: 16px;
        right: 16px;
        padding: 8px 14px;
        gap: 12px;
    }
    
    .hero-video-badges svg {
        width: 80px;
        height: 20px;
    }
    
    .hero-video-badges img {
        width: 40px;
        height: 40px;
    }
    
    .hero-content-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-content-section {
        padding: 40px 0 36px;
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-video-section .hero-video {
        display: none;
    }
}

.trust-bar {
    background: var(--bg-card); padding: 48px 24px;
    border-bottom: 1px solid var(--border);
}
.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 768px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; border-radius: var(--radius-sm);
    background: var(--bg-card2); border: 1px solid var(--border);
}
.trust-icon { font-size: 1.8rem; flex-shrink: 0; }
.trust-item strong { display: block; font-size: .9rem; color: var(--text); margin-bottom: 2px; }
.trust-item span { font-size: .8rem; color: var(--muted); }

/* ── SERVICES TABS ────────────────────────────────────── */
.services-tabs {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.tabs-nav {
    display: flex; flex-wrap: wrap; gap: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card2);
    padding: 4px;
}
.tab-btn {
    padding: 12px 20px; background: none; border: none;
    color: var(--muted); font-size: .875rem; font-weight: 500;
    cursor: pointer; transition: all .2s;
    font-family: 'Inter', sans-serif; border-radius: 8px;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text); background: rgba(0,0,0,.04); }
.tab-btn.active {
    color: var(--accent); background: var(--accent-dim);
    font-weight: 600;
}
.tabs-content { padding: 0; position: relative; }
.tab-panel { position: absolute; left: -9999px; height: 0; overflow: hidden; padding: 0 40px; visibility: hidden; }
.tab-panel.active { position: static; left: auto; height: auto; overflow: visible; padding: 40px; visibility: visible; }
.tab-panel h3 {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem;
    font-weight: 700; margin-bottom: 12px;
}
.tab-panel > div > p { color: var(--muted); font-size: .95rem; line-height: 1.75; margin-bottom: 24px; }
.tab-panel-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
@media (max-width: 768px) { .tab-panel-grid { grid-template-columns: 1fr; } .tab-panel { padding: 24px; } }
.tab-features {
    list-style: none; display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 28px;
}
.tab-features li {
    display: flex; align-items: center; gap: 10px;
    color: var(--muted); font-size: .9rem;
}
.tab-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.tab-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.tab-benefits {
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 28px;
}
.tab-benefits h4 {
    font-family: 'Space Grotesk', sans-serif; font-size: 1rem;
    font-weight: 600; margin-bottom: 20px; color: var(--accent);
}
.benefit-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 0; border-bottom: 1px solid var(--border);
}
.benefit-item:last-child { border-bottom: none; padding-bottom: 0; }
.benefit-item > span { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.benefit-item strong { display: block; color: var(--text); font-size: .9rem; margin-bottom: 4px; }
.benefit-item p { color: var(--muted); font-size: .82rem; margin: 0; line-height: 1.5; }
@media (max-width: 768px) {
    .tabs-nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .tabs-nav::-webkit-scrollbar { display: none; }
}

/* ── NOTDIENST SECTION ────────────────────────────────── */
.notdienst-section {
    background: linear-gradient(135deg, rgba(239,68,68,.08), rgba(239,68,68,.02));
    border-top: 2px solid rgba(239,68,68,.3); border-bottom: 2px solid rgba(239,68,68,.3);
    padding: 100px 24px;
}
.notdienst-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin-bottom: 48px;
}
@media (max-width: 768px) { .notdienst-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .notdienst-grid { grid-template-columns: 1fr; } }
.notdienst-card {
    background: var(--bg-card); border: 1px solid rgba(239,68,68,.2);
    border-radius: var(--radius); padding: 28px; text-align: center;
    transition: all .3s;
}
.notdienst-card:hover { border-color: rgba(239,68,68,.5); transform: translateY(-4px); }
.notdienst-icon { font-size: 2.5rem; margin-bottom: 14px; }
.notdienst-card h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: #f87171; }
.notdienst-card p { color: var(--muted); font-size: .85rem; line-height: 1.65; }
.notdienst-cta {
    background: var(--bg-card); border: 2px solid rgba(239,68,68,.3);
    border-radius: var(--radius); padding: 40px;
}
.notdienst-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
}
.notdienst-cta h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; color: #f87171; margin-bottom: 8px; }
.notdienst-cta p { color: var(--muted); font-size: .95rem; max-width: 500px; }

/* ── PARTNER SLIDER ───────────────────────────────────── */
.partner-slider-section { padding: 80px 24px; }
.partner-slider { overflow: hidden; position: relative; }
.partner-slider::before,
.partner-slider::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
}
.partner-slider::before { left: 0; background: linear-gradient(90deg, var(--bg-card), transparent); }
.partner-slider::after  { right: 0; background: linear-gradient(270deg, var(--bg-card), transparent); }
.partner-track {
    display: flex; gap: 32px; animation: partnerScroll 30s linear infinite;
    width: max-content;
}
.partner-logo-item {
    flex-shrink: 0;
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px 28px;
    display: flex; align-items: center; justify-content: center;
    min-width: 140px; height: 60px;
}
.partner-logo-item span {
    font-family: 'Space Grotesk', sans-serif; font-weight: 600;
    font-size: .95rem; color: var(--muted); white-space: nowrap;
}
@keyframes partnerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.partner-slider:hover .partner-track { animation-play-state: paused; }

/* ── BEZIRKE GRID ─────────────────────────────────────── */
.bezirke-grid {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.bezirk-tag {
    display: inline-block; padding: 8px 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 999px; color: var(--muted); font-size: .85rem;
    text-decoration: none; transition: all .2s; font-weight: 500;
}
.bezirk-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.bezirk-tag.noe { border-color: rgba(14,165,233,.2); }
.bezirk-tag.noe:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }
.bezirke-noe {
    margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border);
    text-align: center;
}
.bezirke-noe h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }

/* ── REVIEWS ──────────────────────────────────────────── */
.reviews-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 768px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
    background: var(--bg-dark); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    transition: all .3s;
}
.review-card:hover { border-color: rgba(37,99,235,.25); transform: translateY(-4px); }
.review-stars { font-size: 1.1rem; margin-bottom: 16px; }
.review-text { color: var(--muted); font-size: .92rem; line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.review-author {
    display: flex; align-items: center; gap: 12px;
    padding-top: 16px; border-top: 1px solid var(--border);
}
.review-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent-dim); border: 1px solid rgba(37,99,235,.3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--accent); font-size: .9rem;
}
.review-author strong { display: block; color: var(--text); font-size: .9rem; }
.review-author span { display: block; color: var(--muted); font-size: .78rem; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: border-color .3s;
}
.faq-item.open { border-color: rgba(37,99,235,.3); }
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 20px 24px;
    background: none; border: none; cursor: pointer;
    font-family: 'Space Grotesk', sans-serif; font-size: 1rem;
    font-weight: 600; color: var(--text); text-align: left;
}
.faq-toggle {
    font-size: 1.4rem; color: var(--accent);
    transition: transform .3s; flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease;
    padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { color: var(--muted); font-size: .92rem; line-height: 1.75; }
.faq-answer a { color: var(--accent); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* ── MOBILE STICKY CTA ────────────────────────────────── */
.mobile-sticky-cta {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 999; padding: 12px 16px;
    background: rgba(240,244,249,.95); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(37,99,235,.3);
    transform: translateY(100%); transition: transform .3s ease;
}
.mobile-sticky-cta.visible { transform: translateY(0); }
.sticky-cta-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 14px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff; font-weight: 700; font-size: .95rem;
    text-decoration: none; gap: 8px;
    animation: pulseCTA 2s ease-in-out infinite;
}
@keyframes pulseCTA {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.4); }
    50% { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
}
@media (max-width: 768px) {
    .mobile-sticky-cta { display: block; }
    body { padding-bottom: 70px; }
}

/* ── COOKIE BANNER ────────────────────────────────────── */
.cookie-banner {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 9999; padding: 16px;
    background: var(--bg-card); border-top: 1px solid var(--border);
    backdrop-filter: blur(20px);
}
.cookie-banner.visible { display: block; }
.cookie-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.cookie-inner p { color: var(--muted); font-size: .875rem; flex: 1; min-width: 200px; }
.cookie-inner a { color: var(--accent); text-decoration: none; }
.cookie-btns { display: flex; gap: 10px; }
@media (max-width: 768px) {
    .cookie-inner { flex-direction: column; text-align: center; }
    .mobile-sticky-cta { bottom: 0; }
}

/* ── BLOG ─────────────────────────────────────────────── */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;
}
.blog-preview-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .blog-preview-grid { grid-template-columns: 1fr; } }
.blog-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: all .3s;
}
.blog-card:hover { transform: translateY(-6px); border-color: rgba(37,99,235,.25); box-shadow: 0 20px 48px rgba(37,99,235,.12); }
.blog-card-img {
    display: block; position: relative; overflow: hidden;
    aspect-ratio: 16/9;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-tag {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px;
}
.blog-card-body { padding: 24px; }
.blog-date { font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.blog-card-body h2,
.blog-card-body h3 {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem;
    font-weight: 600; margin-bottom: 10px; line-height: 1.35;
}
.blog-card-body h2 a,
.blog-card-body h3 a { color: var(--text); text-decoration: none; transition: color .2s; }
.blog-card-body h2 a:hover,
.blog-card-body h3 a:hover { color: var(--accent); }
.blog-card-body p { color: var(--muted); font-size: .88rem; line-height: 1.7; margin-bottom: 16px; }

/* Blog Article Page */
.blog-meta {
    display: flex; gap: 20px; flex-wrap: wrap;
    margin-top: 16px; color: var(--muted); font-size: .85rem;
}
.blog-hero-img {
    width: 100%; border-radius: var(--radius);
    margin-bottom: 40px; border: 1px solid var(--border);
}
.blog-article { padding: 80px 24px; }
.blog-article .legal-section { margin-bottom: 40px; }
.blog-cta-box {
    margin-top: 48px; padding: 32px;
    background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(37,99,235,.03));
    border: 1px solid rgba(37,99,235,.3);
    border-radius: var(--radius);
}
.blog-cta-box h3 {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem;
    font-weight: 700; margin-bottom: 8px;
}
.blog-cta-box p { color: var(--muted); font-size: .95rem; }


/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   ══════════════════════════════════════════════════════════════ */

/* Homepage: why-grid with 6 cards → 3 columns desktop */
.hero ~ section .why-grid,
body.home .why-grid { grid-template-columns: repeat(3, 1fr); }

/* All inline 2-col grids on subpages → stack on mobile */
@media (max-width: 768px) {
    /* Why-grid: 1 column on mobile (homepage + ueber-uns) */
    .why-grid { grid-template-columns: 1fr !important; }

    /* Partner werden section: stack 2-col grid */
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* Leistungen PV section: stack 2-col grid */
    [style*="grid-template-columns:1fr 1fr;gap:60px"],
    section > .section-inner > [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* PV partner grid on partner page: 2 cols instead of 3 */
    [style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Section padding reduce on mobile */
    section { padding: 60px 16px; }
    .page-hero { padding: 100px 16px 36px; }

    /* Reduce large gaps on mobile */
    .section-inner > div[style*="gap:60px"] { gap: 32px !important; }
    .section-inner > div[style*="margin-bottom:80px"] { margin-bottom: 48px !important; padding-bottom: 48px !important; }
}

@media (max-width: 480px) {
    /* PV partner grid: 1 col on small phones */
    [style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Buttons stack vertically on small screens */
    div[style*="display:flex;gap:12px;flex-wrap:wrap"],
    div[style*="display:flex;gap:14px"] {
        flex-direction: column;
        align-items: stretch;
    }
    div[style*="display:flex;gap:14px"] .btn { text-align: center; justify-content: center; }
}

/* Tablet: why-grid 2 cols */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero ~ section .why-grid,
    body.home .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── iOS ZOOM FIX – inputs must be >= 16px ────────────── */
@media (max-width: 768px) {
    input, textarea, select, .form-group input, .form-group textarea, .form-group select {
        font-size: 16px !important;
    }
}

/* ── WHATSAPP FLOATING BUTTON ────────────────────────── */

/* === Navigation Dropdown === */
.has-dropdown { position: relative; }
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    min-width: 220px;
    padding: 8px 0;
    z-index: 1000;
    list-style: none;
    margin: 0;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown { display: block; }
.nav-dropdown li { margin: 0; padding: 0; }
.nav-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--text) !important;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nav-dropdown li a:hover {
    background: var(--bg-card);
    color: var(--primary) !important;
}
.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 12px;
}
.nav-dropdown li:last-child a {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Mobile: dropdown becomes inline list */
@media (max-width: 768px) {
    .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-card);
        border-radius: 8px;
        min-width: auto;
        padding: 4px 0;
        margin: 4px 0 4px 16px;
    }
    .has-dropdown .nav-dropdown { display: none; }
    .has-dropdown.open .nav-dropdown { display: block; }
    .nav-dropdown li a { padding: 8px 16px; font-size: .85rem; }
    .nav-dropdown-divider { margin: 4px 8px; }
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    z-index: 998;
    transition: all .3s;
    text-decoration: none;
}

/* === Navigation Dropdown === */
.has-dropdown { position: relative; }
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    min-width: 220px;
    padding: 8px 0;
    z-index: 1000;
    list-style: none;
    margin: 0;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown { display: block; }
.nav-dropdown li { margin: 0; padding: 0; }
.nav-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--text) !important;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nav-dropdown li a:hover {
    background: var(--bg-card);
    color: var(--primary) !important;
}
.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 12px;
}
.nav-dropdown li:last-child a {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Mobile: dropdown becomes inline list */
@media (max-width: 768px) {
    .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-card);
        border-radius: 8px;
        min-width: auto;
        padding: 4px 0;
        margin: 4px 0 4px 16px;
    }
    .has-dropdown .nav-dropdown { display: none; }
    .has-dropdown.open .nav-dropdown { display: block; }
    .nav-dropdown li a { padding: 8px 16px; font-size: .85rem; }
    .nav-dropdown-divider { margin: 4px 8px; }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,.55);
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 16px;
        width: 54px;
        height: 54px;
    }
}
