/* Die Netzhandwerker – style.css v2 */
:root {
    --navy: #1A2E44;
    --navy-light: #22384F;
    --blue: #2E6B8A;
    --blue-light: #E8F2F7;
    --teal: #2A8F7A;
    --teal-light: #E4F5F1;
    --orange: #B95000;
    --orange-hover: #C86A2F;
    --orange-light: #FEF0E4;
    --orange-on-dark: #FFB366;
    --cream: #F5F3EF;
    --white: #FFFFFF;
    --text: #1A2E44;
    --text-mid: #4A5568;
    --text-light: #556070;
    --border: #E2DDD5;
    --font-display: 'Barlow Condensed', Impact, sans-serif;
    --font-body: 'Barlow', -apple-system, sans-serif;
    --max-width: 1100px;
    --radius: 14px;
    --radius-sm: 10px;
    --transition: 0.25s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* NAV */
.nav { height: 72px; position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--navy); height: 80px; box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; color: white; }
.nav-logo { width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.nav-logo svg { width: 22px; height: 22px; color: var(--orange); }
.nav-title { display: flex; flex-direction: column; line-height: 1.15; }
.nav-title-top { font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.82); letter-spacing: 0.5px; }
.nav-title-main { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-link { color: rgba(255,255,255,0.82); font-size: 0.88rem; font-weight: 500; transition: color var(--transition); }
.nav-link:hover { color: white; }
.nav-cta { background: var(--orange); color: white !important; padding: 0.45rem 1.2rem; border-radius: 8px; font-weight: 600; font-size: 0.88rem; transition: all var(--transition); }
.nav-cta:hover { background: var(--orange-hover); }

.nav-title { font-size: 2rem; }
.pricing-cards { grid-template-columns: repeat(4, 1fr); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { width: 22px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; }
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* HERO */
.hero { padding: 9rem 2rem 4rem; background: var(--navy); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); }
.hero-grid-pattern { position: absolute; top: 0; right: 0; bottom: 0; width: 55%; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to left, rgba(0,0,0,0.4) 0%, transparent 80%); -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.4) 0%, transparent 80%); }
.hero-inner { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-content { max-width: 480px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.1; color: white; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.01em; }
.hero h1 em { font-style: italic; color: var(--orange); text-transform: none; }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 1.8rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--orange); color: white; padding: 0.7rem 1.5rem; border-radius: 8px; font-size: 0.95rem; font-weight: 600; font-family: var(--font-body); border: none; cursor: pointer; transition: all var(--transition); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(224,123,60,0.3); }
.btn-outline-light { display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; color: white; padding: 0.7rem 1.5rem; border-radius: 8px; font-size: 0.95rem; font-weight: 600; border: 1.5px solid rgba(255,255,255,0.5); transition: all var(--transition); }
.btn-outline-light:hover { border-color: rgba(255,255,255,0.82); }
.hero-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.9); font-size: 0.82rem; font-weight: 500; }
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Hero SVG illustration */
.hero-visual { display: flex; align-items: center; justify-content: center; }

/* SECTIONS */
section { padding: 4.5rem 2rem; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-inner--wide { max-width: 1200px; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.6rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.02em; }
.section-desc { font-size: 0.95rem; color: var(--text-mid); max-width: 480px; margin: 0 auto; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.services-grid--large { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; max-width: 1200px; margin: 0 auto; }
.services-grid--large .service-card { padding: 2rem 1.4rem; }
.services-grid--large .service-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.services-grid--large .service-card p { font-size: 0.82rem; line-height: 1.55; }
.services-grid--large .service-icon { width: 56px; height: 56px; margin-bottom: 1rem; }
.services-grid--large .service-icon svg { width: 28px; height: 28px; }
.service-card--img { padding: 0 !important; overflow: hidden; }
.service-card--img .service-img { width: 100%; padding: 0; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--cream); aspect-ratio: 4/3; }
.service-card--img .service-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.service-card--img:hover .service-img img { transform: scale(1.05); }
.service-card--img h3 { padding: 1rem 1.2rem 0.2rem; font-size: 0.95rem; }
.service-card--img p { padding: 0 1.2rem 1.2rem; font-size: 0.82rem; line-height: 1.55; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.2rem; text-align: center; border: 1px solid var(--border); transition: all 0.3s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,46,68,0.07); border-color: transparent; }
.service-icon { width: 52px; height: 52px; margin: 0 auto 0.8rem; background: var(--blue-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.service-icon svg { width: 26px; height: 26px; }
.service-icon--teal { background: var(--teal-light); color: var(--teal); }
.service-icon--orange { background: var(--orange-light); color: var(--orange); }
.service-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
.service-card p { font-size: 0.78rem; color: var(--text-mid); line-height: 1.5; }

/* STEPS */
.steps-section { background: var(--white); }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { text-align: center; position: relative; }
.step-icon { width: 60px; height: 60px; margin: 0 auto 0.8rem; background: var(--cream); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.step-icon svg { width: 26px; height: 26px; }
.step-arrow { position: absolute; top: 28px; right: -10px; color: var(--border); font-size: 1.2rem; }
.step:last-child .step-arrow { display: none; }
.step h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.2rem; }
.step p { font-size: 0.78rem; color: var(--text-mid); }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; max-width: 650px; margin: 0 auto; }
.price-card { background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem; border-top: 3px solid var(--border); text-align: center; transition: all 0.3s; }
.price-card:hover { box-shadow: 0 8px 24px rgba(26,46,68,0.06); }
.price-card--featured { border-top-color: var(--orange); }
.price-card h3 { font-size: 0.82rem; font-weight: 700; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.price-amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--text); letter-spacing: 0.01em; }
.price-amount span { font-size: 0.9rem; font-weight: 400; color: var(--text-mid); }
.price-desc { font-size: 0.82rem; color: var(--text-mid); margin-top: 0.3rem; }

/* CONTACT */
.contact-section { background: var(--white); padding: 4rem 2rem 5rem; }
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .form-full { width: 100%; }
.form-input, .form-textarea { width: 100%; padding: 1rem 1.2rem; border: 1.5px solid var(--border); border-radius: 10px; font-size: 1rem; font-family: var(--font-body); background: var(--cream); color: var(--text); outline: none; transition: border-color var(--transition), box-shadow var(--transition); box-sizing: border-box; }
.form-input:focus, .form-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,78,122,0.08); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }
.form-textarea { resize: vertical; min-height: 180px; line-height: 1.6; }
.form-submit { display: flex; justify-content: flex-end; margin-top: 0.5rem; }
.btn-primary--large { padding: 1rem 2.2rem; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.form-hint { font-size: 0.8rem; color: var(--text-light); text-align: center; }
.form-success { background: rgba(42,143,122,0.08); border: 1.5px solid rgba(42,143,122,0.25); border-radius: 10px; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; color: var(--text); font-size: 0.95rem; line-height: 1.5; }
.form-error { background: rgba(200,60,60,0.06); border: 1.5px solid rgba(200,60,60,0.2); border-radius: 10px; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; color: var(--text); font-size: 0.95rem; }
.form-error a { color: var(--orange); }

/* TRUST */
.trust-row { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; padding: 1.5rem 0; }
.trust-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-mid); font-weight: 500; }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }


/* CONTRAST FIXES */
.contact-form label a { color: #9E4400 !important; text-decoration: underline; }
#cookieBanner a { color: var(--orange-on-dark) !important; text-decoration: underline; }

/* FOOTER */
.footer { background: var(--navy); color: white; padding: 3rem 2rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand { color: white; font-weight: 700; font-size: 0.9rem; }
.footer-sub { font-size: 0.78rem; color: rgba(255,255,255,0.95); margin-top: 0.2rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: white; font-size: 0.82rem; transition: color var(--transition); }
.footer-links a:hover { color: white; }


/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid--large { grid-template-columns: repeat(2, 1fr); }
    .steps-row { grid-template-columns: repeat(2, 1fr); }
    .step-arrow { display: none; }
    .form-row-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 1.5rem 2rem; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
    .nav-links.open { display: flex; }
    .nav-burger { display: flex; }
    .hero { padding: 6rem 1.5rem 3rem; }
    .services-grid { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 320px; }
    .form-row-2 { grid-template-columns: 1fr; }
    section { padding: 3rem 1.5rem; }
    .hero-badges { flex-direction: column; gap: 0.5rem; }
    .footer-inner { flex-direction: column; text-align: center; }
}

/* === SERVICE PAGE STYLES === */

/* Service Hero - reuses hero styling with slight variation */
.service-hero { min-height: auto; contain: layout style;
    padding: 6rem 2rem 1.5rem;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.service-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.service-hero + section { padding-top: 2rem; }
.service-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}
.service-hero-content { max-width: 520px; }
.service-hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
    background: rgba(224,123,60,0.12);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.service-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.service-hero h1 em {
    font-style: italic;
    color: var(--orange);
    text-transform: none;
}
.service-hero-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.8rem;
    line-height: 1.65;
}
.service-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step Numbers (alternative to icons for service pages) */
.step-num {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.8rem;
    background: var(--cream);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

/* Info Cards (for hints/notices) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    border: 1px solid var(--border);
}
.info-card--full {
    grid-column: 1 / -1;
}
.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    color: var(--navy);
}
.info-card-header--teal { color: var(--teal); }
.info-card-header--blue { color: var(--blue); }
.info-card-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
}
.info-card p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.65;
}
.info-card p strong {
    color: var(--text);
    font-weight: 600;
}

/* Nav dropdown for services */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    background: var(--navy-light);
    border-radius: 10px;
    padding: 0.8rem 0 0.6rem;
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    margin-top: 0;
    border: 1px solid rgba(255,255,255,0.06);
}
.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1.2rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.82);
    transition: all var(--transition);
}
.nav-dropdown-menu a:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}


/* RESPONSIVE */
@media (max-width: 900px) {
    .service-hero + section { padding-top: 2rem; }
.service-hero-inner { grid-template-columns: 1fr; }
    .service-hero-icon { display: none; }
    .info-grid { grid-template-columns: 1fr; }
    .info-card--full { grid-column: auto; }
}
@media (max-width: 600px) {
    .service-hero { min-height: auto; contain: layout style; padding: 5rem 1.5rem 1.5rem; }

}

/* Careers page extras */
.nav-link--highlight { color: var(--orange) !important; font-weight: 600; }
.nav-link--highlight:hover { color: white !important; }
.contact-form--wide { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .contact-form--wide { grid-template-columns: 1fr; } }

/* Service cards as links */
a.service-card { text-decoration: none; color: inherit; display: block; }
a.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,46,68,0.07); border-color: transparent; }
a.service-card--img h3 { color: var(--text); }
a.service-card--img p { color: var(--text-mid); }


/* HERO SLIDER */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-slider { min-height: 280px; contain: layout; }
.hero-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    text-decoration: none;
    display: block;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-slide-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.2rem 1rem;
    background: linear-gradient(transparent, rgba(26,46,68,0.85));
    color: white;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.hero-slider-dots {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 5;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.82);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}
.hero-dot.active {
    background: var(--orange);
    border-color: var(--orange);
    transform: scale(1.15);
}
.hero-dot:hover {
    border-color: white;
}
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(26,46,68,0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    padding: 0 0 2px 0;
}
.hero-slider-arrow:hover {
    background: var(--orange);
}
.hero-slider-prev { left: 10px; }
.hero-slider-next { right: 10px; }

/* ========================================
   FIX: Responsive + Footer – v3.1.0
   ======================================== */

/* Prevent horizontal overflow */
html, body { overflow-x: hidden; }

/* Footer Columns */
.footer-col {
    min-width: 140px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 2rem;
    padding-top: 1.5rem;
}
.footer-bottom .footer-inner {
    justify-content: center;
}
.footer-bottom span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.95);
}

/* Fix: tools-grid responsive (inline styles override) */
.tools-grid {
    display: grid !important;
    gap: 1rem !important;
}

/* Fix: pricing-grid 4-col inline override */
.pricing-grid[style*="repeat(4"] {
    max-width: 900px;
    margin: 0 auto;
}

/* ---- RESPONSIVE OVERRIDES ---- */
@media (max-width: 900px) {
    /* Tools: 2 columns */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Pricing: 2 columns */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 500px !important;
    }
    
    /* Footer: wrap into 2x2 */
    .footer { padding: 2.5rem 2rem 2.5rem; }
    .footer-inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
        align-items: start !important;
    }
    .footer-left {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    /* Nav menu position fix (nav is 80px but mobile was 64px) */

    
    /* Tools: 2 columns on small mobile */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 100% !important;
    }
    
    /* Pricing: single column */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        max-width: 320px !important;
    }
    
    /* Services: single column */
    .services-grid,
    .services-grid--large {
        grid-template-columns: 1fr !important;
    }
    /* So gehts: 2 columns on small */
    #so-gehts > div > div:last-child {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Footer: single column */
    .footer { padding: 2rem 1.5rem 2rem; }
    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: left !important;
    }
    .footer-left {
        grid-column: auto;
        margin-bottom: 0.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .footer-col {
        min-width: auto;
    }
    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1rem;
        text-align: center;
    }
    
    /* Hero badges: prevent overflow */
    .hero-badges {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Trust badges: stack vertically */
    [style*="justify-content:center"][style*="flex-wrap:wrap"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding-left: 0.5rem;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .tools-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.6rem !important;
    }

}


/* PERFORMANCE: content-visibility for below-fold sections */
/* content-visibility removed from contact-section + footer for accessibility */

/* Prevent hero image CLS */
.hero-visual img {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 1;
}

/* ========================================
   MOBILE OPTIMIZATION – v3.11.0
   Nur mobile Breakpoints, Desktop unberührt
   ======================================== */

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

    /* Pricing: 4-col inline grid → 2 columns */
    #preise [style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 500px !important;
    }

    /* Steps: 4-col inline grid → 2 columns */
    #so-gehts [style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Blog/Service inline 2-col comparison grids → stack */
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Service hero: less height */
    .service-hero {
        min-height: auto !important;
    }
}

/* --- MOBILE (max 600px) --- */
@media (max-width: 600px) {

    /* Nav: see consolidated block at end of file */

    /* === HERO === */
    .hero {
        padding: 5rem 1.2rem 2.5rem !important;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-sub {
        font-size: 0.92rem;
        margin-bottom: 1.2rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-outline-light {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
    .hero-badges {
        gap: 0.4rem;
    }

    /* === SERVICE HERO === */
    .service-hero {
        padding: 5rem 1.2rem 2.5rem !important;
        min-height: auto !important;
    }
    .service-hero h1 {
        font-size: 1.6rem;
    }
    .hero-sub,
    .service-hero-sub {
        font-size: 0.9rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    /* === SECTIONS === */
    section {
        padding: 2.5rem 1.2rem !important;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .section-desc {
        font-size: 0.88rem;
    }

    /* === PRICING === */
    #preise [style*="repeat(4"] {
        grid-template-columns: 1fr !important;
        max-width: 340px !important;
        gap: 0.8rem !important;
    }
    /* Pricing cards: ensure good mobile size */
    #preise [style*="repeat(4"] > div {
        padding: 1.8rem 1.2rem !important;
    }

    /* === STEPS (4-col inline) === */
    #so-gehts [style*="repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
    }
    #so-gehts [style*="repeat(4"] > div {
        padding: 1.2rem 0.8rem 1rem !important;
    }

    /* === SERVICE CARDS === */
    .services-grid--large {
        gap: 0.8rem !important;
    }
    .services-grid--large .service-card {
        padding: 1.4rem 1.2rem !important;
        text-align: left !important;
    }
    .services-grid--large .service-card h3 {
        font-size: 0.92rem;
    }

    /* === TOOLS GRID === */
    .tools-grid {
        gap: 0.6rem !important;
    }
    .tools-grid > a {
        padding: 1rem 0.6rem !important;
    }

    /* === FORMS === */
    .contact-section {
        padding: 2.5rem 1.2rem 3rem !important;
    }
    .form-input,
    .form-textarea {
        padding: 0.85rem 1rem;
        font-size: 16px; /* prevents iOS zoom on focus */
    }
    .form-textarea {
        min-height: 140px;
    }
    .form-submit {
        justify-content: stretch;
    }
    .btn-primary--large {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    /* === FAQ / ARTICLE SECTIONS === */
    article {
        padding: 5rem 1.2rem 2.5rem !important;
    }
    article h1 {
        font-size: 1.5rem !important;
    }
    article h2 {
        font-size: 1.1rem !important;
        margin: 2rem 0 0.6rem !important;
    }

    /* === COOKIE BANNER === */
    #cookieBanner > div {
        flex-direction: column !important;
        gap: 0.8rem !important;
        align-items: stretch !important;
    }
    #cookieBanner > div > div:last-child {
        display: flex;
        width: 100%;
    }
    #cookieBanner > div > div:last-child button {
        flex: 1;
        padding: 0.7rem 0.8rem !important;
        font-size: 0.9rem !important;
        min-height: 44px;
    }

    /* === FOOTER === */
    .footer {
        padding: 1.5rem 1.2rem 1.5rem !important;
    }
    /* Footer column headers as touch-friendly separators */
    .footer-col > div:first-child {
        font-size: 0.85rem !important;
        padding-bottom: 0.4rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        margin-bottom: 0.4rem;
    }
    .footer-col .footer-links a {
        font-size: 0.82rem;
        padding: 0.25rem 0;
        display: block;
    }
    .footer-bottom {
        margin-top: 1rem;
        padding-top: 0.8rem;
    }

    /* === GENERAL TOUCH TARGETS === */
    .btn-primary,
    .btn-outline-light,
    a.service-card {
        min-height: 44px;
    }

    /* === INLINE 2-COL GRIDS (blog/service pages) === */
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* === HERO SLIDER (homepage) === */
    .hero-slider {
        max-width: 100%;
        border-radius: 12px;
    }
    .hero-slide-label {
        font-size: 0.9rem;
        padding: 1.5rem 1rem 0.8rem;
    }

    /* === BLOG ARTICLE CONTENT === */
    /* Inline warning/info boxes */
    [style*="padding:1.5rem 1.8rem"] {
        padding: 1.2rem 1rem !important;
    }
    /* CTA boxes in articles */
    [style*="padding:2rem;margin:2.5rem"] {
        padding: 1.5rem 1.2rem !important;
        margin: 1.5rem 0 1rem !important;
    }

    /* === TRUST ROW === */
    .trust-row {
        gap: 0.8rem !important;
        padding: 1rem 0 !important;
    }
}

/* --- EXTRA SMALL (max 380px) --- */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    .service-hero h1 {
        font-size: 1.4rem;
    }
    .section-title {
        font-size: 1.15rem;
    }
    #preise [style*="repeat(4"] {
        max-width: 100% !important;
    }
    #so-gehts [style*="repeat(4"] {
        grid-template-columns: 1fr !important;
    }
}


/* ========================================
   MOBILE OPTIMIZATION – v3.12.0
   FAQ Accordion, Footer Accordion,
   Service Cards compact, Trust Badges,
   Video, Payment icons, Contact polish
   NUR MOBILE – Desktop bleibt unberührt
   ======================================== */

/* --- FAQ ACCORDION (mobile) --- */
@media (max-width: 600px) {
    .faq-item {
        cursor: pointer;
        position: relative;
        padding-right: 2.8rem !important;
        transition: background 0.2s;
    }
    .faq-item:active {
        background: #f0ede8;
    }
    .faq-item::after {
        content: '+';
        position: absolute;
        right: 1.2rem;
        top: 1.1rem;
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--text-light);
        transition: color 0.2s;
        line-height: 1;
    }
    .faq-item.faq-open::after {
        content: '\2212';
        color: var(--orange);
    }
    .faq-item p {
        max-height: 0;
        overflow: hidden;
        margin: 0 !important;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.2s ease;
    }
    .faq-item.faq-open p {
        max-height: 300px;
        opacity: 1;
        margin-top: 0.4rem !important;
    }
    .faq-item h3 {
        margin-bottom: 0 !important;
    }
    .faq-item.faq-open h3 {
        margin-bottom: 0.2rem !important;
        color: var(--orange);
    }
}

/* --- FOOTER ACCORDION (mobile) --- */
@media (max-width: 600px) {
    .footer-col {
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding-bottom: 0 !important;
    }
    .footer-col:last-child {
        border-bottom: none;
    }
    .footer-col-header {
        cursor: pointer;
        position: relative;
        padding: 0.9rem 2rem 0.9rem 0 !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
        -webkit-tap-highlight-color: transparent;
    }
    .footer-col-header::after {
        content: '+';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.3rem;
        font-weight: 600;
        color: rgba(255,255,255,0.7);
        line-height: 1;
        transition: color 0.2s;
    }
    .footer-col.footer-col-open .footer-col-header::after {
        content: '\2212';
        color: rgba(255,255,255,0.7);
    }
    .footer-col .footer-links {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease;
        padding-bottom: 0 !important;
    }
    .footer-col.footer-col-open .footer-links {
        max-height: 500px;
        opacity: 1;
        padding-bottom: 0.6rem !important;
    }
}

/* --- TRUST BADGES (mobile stack) --- */
@media (max-width: 600px) {
    .trust-badges-row {
        flex-direction: column !important;
        gap: 0.8rem !important;
        align-items: stretch !important;
        padding: 0 !important;
    }
    .trust-badges-row > div {
        background: rgba(42,143,122,0.04);
        border-radius: 10px;
        padding: 0.7rem 0.8rem !important;
    }
}

/* --- SERVICE IMAGE CARDS (compact horizontal on mobile) --- */
@media (max-width: 600px) {
    .service-card--img {
        display: grid !important;
        grid-template-columns: 90px 1fr !important;
        grid-template-rows: auto auto !important;
        text-align: left !important;
        overflow: hidden;
    }
    .service-card--img .service-img {
        grid-row: 1 / 3 !important;
        aspect-ratio: 1 / 1 !important;
        height: 100% !important;
        min-height: 0;
        border-bottom: none !important;
        border-right: 1px solid var(--border);
        border-radius: var(--radius) 0 0 var(--radius) !important;
        overflow: hidden;
    }
    .service-card--img .service-img img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover;
    }
    .service-card--img h3 {
        padding: 0.7rem 0.9rem 0.15rem !important;
        align-self: end;
        font-size: 0.88rem !important;
    }
    .service-card--img p {
        padding: 0.1rem 0.9rem 0.7rem !important;
        align-self: start;
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
    }
}

/* --- VIDEO PLAY BUTTON (smaller on mobile) --- */
@media (max-width: 600px) {
    .play-btn {
        width: 56px !important;
        height: 56px !important;
    }
    .play-btn svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* --- PAYMENT ICONS ROW (compact mobile grid) --- */
@media (max-width: 600px) {
    .payment-icons-row {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem !important;
        justify-items: center;
        align-items: center;
        max-width: 320px;
        margin: 0 auto;
    }
    .payment-icons-row > span:first-child {
        grid-column: 1 / -1;
        font-size: 0.78rem !important;
        margin-bottom: 0.2rem;
    }
    .payment-icons-row > span:nth-child(3) {
        display: none !important;
    }
    .payment-icons-row svg {
        width: 46px !important;
        height: 28px !important;
    }
    .payment-icons-row svg[width="68"] {
        width: 56px !important;
    }
}

/* --- CONTACT FORM LEGAL (more readable on mobile) --- */
@media (max-width: 600px) {
    .contact-form label {
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
        gap: 0.5rem !important;
    }
    .contact-form label input[type="checkbox"] {
        min-width: 20px !important;
        min-height: 20px !important;
        margin-top: 0.15rem !important;
    }
    .form-hint {
        font-size: 0.75rem !important;
    }
}

/* --- COOKIE BANNER (compact bottom sheet) --- */
@media (max-width: 600px) {
    #cookieBanner {
        padding: 0.8rem 1rem !important;
    }
    #cookieBanner > div {
        gap: 0.6rem !important;
    }
    #cookieBanner > div > div:first-child {
        font-size: 0.8rem !important;
        min-width: auto !important;
        line-height: 1.45 !important;
    }
    #cookieBanner > div > div:last-child {
        width: 100%;
    }
    #cookieBanner > div > div:last-child button {
        flex: 1;
        min-height: 44px;
        font-size: 0.88rem !important;
    }
}

/* --- GENERAL MOBILE BREATHING ROOM --- */
@media (max-width: 600px) {
    /* Reduce heavy inline paddings on sub-sections */
    [style*="padding:4rem 2rem"] {
        padding: 2.5rem 1.2rem !important;
    }
    [style*="padding:3rem 2rem"] {
        padding: 2rem 1.2rem !important;
    }
    /* Inline max-width containers */
    [style*="max-width:740px"],
    [style*="max-width:720px"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* --- ALLE WEITEREN LEISTUNGEN: Mobile Fix --- */
@media (max-width: 600px) {
    .alle-leistungen-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
    .alle-leistungen-grid .al-card {
        padding: 0.55rem 0.6rem !important;
        font-size: 0.78rem !important;
    }
    .alle-leistungen-grid .al-card svg {
        width: 16px !important;
        height: 16px !important;
    }
    /* Reduce container padding */
    [style*="padding:2.5rem"] {
        padding: 1.5rem 1rem !important;
    }
}
@media (max-width: 380px) {
    .alle-leistungen-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   MOBILE NAV – consolidated v3.14
   ======================================== */

/* Base: hide mobile-only elements on desktop */
.nav-accordion-toggle { display: none; }
.nav-chevron { transition: transform 0.25s ease; }

@media (max-width: 768px) {

    /* --- Header bar --- */
    .nav { height: 68px !important; }
    .nav-inner { padding: 0 1rem; }
    .nav-title { font-size: 1.15rem !important; letter-spacing: 0 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
    .nav-burger { display: flex; }

    /* --- Full-screen overlay --- */
    .nav-links {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: var(--navy) !important;
        flex-direction: column !important;
        padding: 76px 1.5rem 2rem !important;
        gap: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        z-index: 99 !important;
        border-top: none !important;
        align-items: stretch !important;
    }
    .nav-links.open { display: flex; }

    /* --- Toggle buttons (mobile) / Hide desktop links --- */
    .nav-link-desktop { display: none !important; }
    .nav-accordion-toggle {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0.9rem 0 !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: rgba(255,255,255,0.9) !important;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        background: none;
        border-top: none;
        border-left: none;
        border-right: none;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
    }
    .nav-chevron { opacity: 0.4; flex-shrink: 0; }
    .nav-dropdown.expanded .nav-chevron {
        transform: rotate(180deg);
        opacity: 0.8;
    }

    /* --- Dropdown menus (collapsed by default) --- */
    .nav-dropdown-menu {
        display: none !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    .nav-dropdown.expanded .nav-dropdown-menu {
        display: block !important;
        padding: 0.2rem 0 0.6rem 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .nav-dropdown-menu a {
        display: block !important;
        padding: 0.55rem 1rem !important;
        font-size: 0.9rem !important;
        color: rgba(255,255,255,0.6) !important;
        line-height: 1.3 !important;
        text-align: left !important;
        text-decoration: none !important;
        border-radius: 6px;
    }
    .nav-dropdown-menu a:active {
        background: rgba(255,255,255,0.08);
        color: white !important;
    }

    /* --- Desktop hover: disable on mobile --- */
    .nav-dropdown:hover .nav-dropdown-menu { display: none !important; }
    .nav-dropdown.expanded:hover .nav-dropdown-menu,
    .nav-dropdown.expanded .nav-dropdown-menu { display: block !important; }
    .nav-dropdown::after { display: none !important; }

    /* --- Standalone links (Blog etc.) --- */
    .nav-links > a.nav-link {
        padding: 0.9rem 0 !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: rgba(255,255,255,0.9) !important;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        text-align: left !important;
        display: block;
    }

    /* --- CTA --- */
    .nav-links .nav-cta {
        width: 100% !important;
        text-align: center !important;
        padding: 0.85rem 1.2rem !important;
        margin-top: 1rem !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
        display: block;
    }

    /* --- Ensure nav bar stays on top --- */
    .nav-inner { position: relative; z-index: 100; }
}

@media (max-width: 380px) {
    .nav-title { font-size: 0.95rem !important; letter-spacing: 0 !important; }
}


/* Pricing cards mobile fix */
@media (max-width: 600px) {
    #preise [style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 100% !important;
        gap: 0.8rem !important;
        padding: 0 !important;
    }
    #preise [style*="repeat(4"] > div {
        padding: 1.5rem 1rem 1.5rem !important;
    }
    #preise {
        padding: 3rem 1rem !important;
    }
}
@media (max-width: 380px) {
    #preise [style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }
    #preise [style*="repeat(4"] > div {
        padding: 1.2rem 0.6rem 1.2rem !important;
    }
}


/* Inline grid stacking – mobile */
@media (max-width: 768px) {
    [style*="grid-template-columns:280px 1fr"],
    [style*="grid-template-columns:1.2fr 0.8fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    [style*="grid-template-columns:1fr 1fr"][style*="gap:0"] {
        grid-template-columns: 1fr !important;
    }
}


/* Pricing cards – class-based mobile fix */
@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 100% !important;
        gap: 0.8rem !important;
    }
}
@media (max-width: 400px) {
    .pricing-cards {
        gap: 0.6rem !important;
    }
    .pricing-cards > div {
        padding: 1.4rem 0.8rem !important;
    }
}




/* ==========================================================================
   MEGA MENU (Desktop Flyout + Mobile Accordion)
   Added 2026-04-08
   ========================================================================== */

/* Desktop Mega Panels */
.mega-panel {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 98;
    justify-content: center;
    padding: 0 2rem;
    animation: megaFadeIn .2s ease;
}
.mega-panel.mega-panel--open {
    display: flex;
}
@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.mega-inner {
    background: var(--navy-light);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.3);
    display: flex;
    max-width: 820px;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    border-top: none;
}
.mega-sidebar {
    width: 220px;
    border-right: 1px solid rgba(255,255,255,.06);
    padding: .6rem 0;
    flex-shrink: 0;
}
.mega-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: .6rem 1.2rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--orange) !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.04);
    margin-bottom: .3rem;
}
.mega-all:hover {
    color: var(--orange-hover) !important;
}
.mega-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem 1.2rem;
    cursor: pointer;
    font-size: .84rem;
    font-weight: 400;
    color: rgba(255,255,255,.75);
    border-left: 3px solid transparent;
    transition: all .15s;
}
.mega-cat svg {
    opacity: .5;
    flex-shrink: 0;
}
.mega-cat:hover,
.mega-cat--active {
    font-weight: 600;
    color: white;
    background: rgba(255,255,255,.06);
    border-left-color: var(--orange);
}
.mega-cat--active svg {
    opacity: .8;
}
.mega-content {
    flex: 1;
    padding: 1rem 1.4rem;
    min-height: 200px;
}
.mega-items {
    display: none;
}
.mega-items--active {
    display: block;
}
.mega-items-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.4);
    margin-bottom: .8rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.mega-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .15rem;
}
.mega-items-grid a {
    display: block;
    padding: .5rem .8rem;
    font-size: .85rem;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    border-radius: 6px;
    transition: all .15s;
}
.mega-items-grid a:hover {
    color: white;
    background: rgba(255,255,255,.06);
}

/* Desktop trigger highlight */
.nav-mega-trigger {
    position: relative;
}
.nav-link-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link-desktop .nav-chevron {
    transition: transform .2s;
}
.nav-mega-trigger.mega-active .nav-link-desktop .nav-chevron {
    transform: rotate(180deg);
}
.nav-mega-trigger.mega-active .nav-link-desktop {
    color: white;
}

/* Backdrop */
.mega-backdrop {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 97;
    background: rgba(0,0,0,.15);
}
.mega-backdrop.mega-backdrop--open {
    display: block;
}

/* Mobile: mega menu mobile accordion */
.nav-mega-mobile {
    display: none;
}
.nav-mega-mobile-group {
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav-mega-mobile-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem .8rem;
    font-size: .88rem;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav-mega-mobile-cat .nav-chevron {
    opacity: .4;
    transition: transform .25s;
}
.nav-mega-mobile-group.mobile-cat-open .nav-mega-mobile-cat {
    color: rgba(255,255,255,.9);
    font-weight: 600;
}
.nav-mega-mobile-group.mobile-cat-open .nav-mega-mobile-cat .nav-chevron {
    transform: rotate(180deg);
    opacity: .7;
}
.nav-mega-mobile-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, opacity .2s;
    opacity: 0;
}
.nav-mega-mobile-group.mobile-cat-open .nav-mega-mobile-items {
    max-height: 600px;
    opacity: 1;
    padding-bottom: .4rem;
}
.nav-mega-mobile-items a {
    display: block;
    padding: .4rem 1.4rem;
    font-size: .85rem;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    line-height: 1.3;
}
.nav-mega-mobile-items a:active {
    background: rgba(255,255,255,.08);
    color: white;
}

/* Hide old dropdown classes */
.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none !important; }

/* Mobile overrides for mega menu */
@media (max-width: 768px) {
    .mega-panel { display: none !important; }
    .mega-backdrop { display: none !important; }
    .nav-link-desktop { display: none !important; }
    .nav-accordion-toggle {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: .9rem 0 !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: rgba(255,255,255,.9) !important;
        border-bottom: 1px solid rgba(255,255,255,.07);
        background: none;
        border-top: none;
        border-left: none;
        border-right: none;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
    }
    .nav-mega-trigger.expanded .nav-accordion-toggle .nav-chevron {
        transform: rotate(180deg);
        opacity: .8;
    }
    .nav-mega-trigger.expanded .nav-mega-mobile {
        display: block;
        padding: 0 0 .6rem;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }
}

/* Desktop: hide mobile-only elements */
@media (min-width: 769px) {
    .nav-accordion-toggle { display: none !important; }
    .nav-mega-mobile { display: none !important; }
}
