/* ===== PREMIUM DESIGN SYSTEM ===== */
/* Pfrommer GmbH - Sicherheitsbeleuchtung & Notlichtsysteme */

/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Colors */
    --primary: #0a1628;
    --primary-light: #1a365d;
    --primary-medium: #142850;
    --accent: #00d4ff;
    --accent-glow: rgba(0, 212, 255, 0.4);
    --accent-secondary: #ff6b35;

    /* Text Colors */
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dark: #1a202c;
    --text-gray: #64748b;

    /* Background Colors */
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --bg-overlay: rgba(10, 22, 40, 0.95);
    --border: #e2e8f0;

    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 0 20px var(--accent-glow);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(26, 54, 93, 0.85) 50%, rgba(20, 40, 80, 0.92) 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* ===== TYPOGRAPHY ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary);
    transition: all 0.4s ease;
}

.header.scrolled {
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
}

/* Header über Hero (Startseite) – initial transparent */
.header.header-hero {
    background: transparent;
}
.header.header-hero.scrolled {
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

/* ===== PRODUKTSUCHE ===== */
.header-search {
    position: relative;
    flex: 1;
    max-width: 280px;
}
.header-search input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.header-search input::placeholder {
    color: rgba(255,255,255,0.5);
}
.header-search input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 2px rgba(0,212,255,0.2);
}
.header-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1100;
    display: none;
}
.search-results.open {
    display: block;
}
.search-result-item {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.search-result-item:last-of-type {
    border-bottom: none;
}
.search-result-item:hover {
    background: rgba(0,212,255,0.15);
    color: var(--accent);
}
.search-no-results,
.search-more {
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
@media (max-width: 900px) {
    .header-search {
        display: none;
    }
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav a {
    color: var(--text-light);
    padding: 0.65rem 1.1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Magic Underline / Active State with Border */
.nav a.active,
/* Produkte nur markieren wenn .active (Index-Scroll-Spy oder Produktseiten) */
.nav a[data-popup="produkte"].active {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.nav a[data-popup="produkte"]:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent);
}

/* Nav Dropdown (Unternehmen) */
.nav .nav-dropdown {
    position: relative;
}
.nav .nav-dropdown .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    list-style: none;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 100;
}
.nav .nav-dropdown:hover .submenu {
    display: flex;
}
.nav .nav-dropdown .submenu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-light);
    white-space: nowrap;
}
.nav .nav-dropdown .submenu a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
}

.nav .submenu-produkte {
    min-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Produktliste (einfache Liste ohne Bilder) */
.produktliste {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}
.produktliste li {
    border-bottom: 1px solid var(--border);
}
.produktliste li:last-child {
    border-bottom: none;
}
.produktliste a {
    display: block;
    padding: 1rem 0;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
}
.produktliste a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

/* Produkt-Kategorien mit Bildern (nur auf produkte.html) */
.produkt-kategorien-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.produkt-kategorie-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-decoration: none;
    display: block;
    transition: all 0.4s ease;
}
.produkt-kategorie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.15);
}
.produkt-kategorie-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: var(--bg-light);
    padding: 1rem;
}
.produkt-kategorie-info {
    padding: 1.25rem;
}
.produkt-kategorie-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}
@media (max-width: 600px) {
    .produkt-kategorien-grid {
        grid-template-columns: 1fr;
    }
}

/* Produkt-Card Klick-Animation: andere fliegen weg, geklickte zoomt rein */
.produkt-kategorien-grid.animating {
    overflow: visible;
}
/* Container/Eltern: Überlauf erlauben, damit gezoomte Karte nicht abgeschnitten wird */
.container:has(.produkt-kategorien-grid.animating),
main:has(.produkt-kategorien-grid.animating) {
    overflow: visible;
}
.produkt-kategorie-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, box-shadow 0.5s ease;
}
.produkt-kategorie-card.fly-away {
    pointer-events: none;
}
.produkt-kategorie-card.fly-up { transform: translateY(-120vh); opacity: 0; }
.produkt-kategorie-card.fly-down { transform: translateY(120vh); opacity: 0; }
.produkt-kategorie-card.fly-left { transform: translateX(-120vw); opacity: 0; }
.produkt-kategorie-card.fly-right { transform: translateX(120vw); opacity: 0; }
.produkt-kategorie-card.fly-up-left { transform: translate(-120vw, -120vh); opacity: 0; }
.produkt-kategorie-card.fly-up-right { transform: translate(120vw, -120vh); opacity: 0; }
.produkt-kategorie-card.fly-down-left { transform: translate(-120vw, 120vh); opacity: 0; }
.produkt-kategorie-card.fly-down-right { transform: translate(120vw, 120vh); opacity: 0; }
.produkt-kategorie-card.zoom-in {
    position: relative;
    z-index: 100;
    overflow: visible;
    animation: produktCardZoomIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes produktCardZoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); box-shadow: 0 30px 60px rgba(0,0,0,0.25); }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== PAGE HERO ===== */
.page-hero {
    background: var(--gradient-primary);
    padding: 9rem 2rem 4rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.page-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.breadcrumb a {
    color: var(--text-light);
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.page-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 600px;
}

/* ===== PRODUCT PAGE LAYOUT ===== */
.product-page {
    padding: 3rem 2rem;
    min-height: 60vh;
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
}

/* ===== SIDEBAR ===== */
.product-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.product-sidebar h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    font-weight: 600;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-left-color: var(--accent);
}

.sidebar-link.active {
    color: var(--accent);
    border-left-color: var(--accent);
}

.sidebar-group {
    margin-bottom: 0.25rem;
}

.sidebar-sub {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    margin-left: 0.85rem;
    margin-top: 0.25rem;
}

.sidebar-sub a {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    transition: all 0.3s;
}

.sidebar-sub a:hover {
    color: var(--accent);
}

/* ===== PRODUCT CONTENT ===== */
.product-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-intro {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.product-intro h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.content-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
    line-height: 1.8;
}
.content-list li {
    margin-bottom: 0.5rem;
}

/* ===== KONTAKT FORMULAR ===== */
.kontakt-form .form-group {
    margin-bottom: 1.25rem;
}
.kontakt-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--primary);
}
.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.kontakt-form input:focus,
.kontakt-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.kontakt-form textarea {
    resize: vertical;
    min-height: 120px;
}
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr !important;
    }
}

.referenzen-grid span {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

/* ===== STELLENANGEBOTE CARDS ===== */
.stellenangebote-page .stellenangebote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stellenangebot-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stellenangebot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
}

.job-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.95;
}

.job-location svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.job-type {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.job-type-service {
    background: rgba(0, 212, 255, 0.25);
    color: var(--accent);
}

.stellenangebot-card .job-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.25rem 1.5rem 0.5rem;
    line-height: 1.3;
}

.job-teaser {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0 1.5rem 1rem;
}

.job-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 1.5rem 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.5;
}

.job-highlights span strong {
    color: var(--primary);
}

.job-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 1.5rem 1.25rem;
}

.benefit-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    color: var(--primary);
    border-radius: 6px;
    font-weight: 500;
}

.job-toggle {
    margin: 0 1.5rem 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    background: none;
    border: 1px dashed var(--accent);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-toggle:hover {
    background: rgba(0, 212, 255, 0.08);
}

.job-details {
    margin: 0 1.5rem 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.job-details h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin: 1rem 0 0.4rem;
}

.job-details h4:first-child {
    margin-top: 0;
}

.job-details ul {
    margin: 0.3rem 0;
    padding-left: 1.2rem;
}

.job-details li {
    margin-bottom: 0.25rem;
}

.job-cta {
    display: block;
    margin: 0 1.5rem 1rem;
    padding: 0.9rem 1.25rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--accent) 0%, #00a8cc 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 212, 255, 0.35);
}

.job-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.45);
}

.job-contact {
    margin: 0 1.5rem 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-gray);
}

.job-contact a {
    color: var(--accent);
}

.job-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .stellenangebote-page .stellenangebote-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .stellenangebot-card .job-title {
        font-size: 1.05rem;
    }
    .job-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===== AKTUELLES GRID ===== */
.aktuelles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    min-height: 540px;
}

.aktuell-card {
    display: flex;
    gap: 1.5rem;
    min-height: 0;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.aktuell-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.aktuell-date {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    color: var(--text-light);
}

.aktuell-day {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.aktuell-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.aktuell-year {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
}

.aktuell-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.aktuell-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.aktuell-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.aktuell-link {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    transition: color 0.2s;
}

.aktuell-link:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .aktuelles-grid {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        min-height: auto;
    }
    .aktuell-card {
        flex-direction: column;
        gap: 1rem;
        min-height: auto;
    }
    .aktuell-date {
        width: auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .aktuell-day {
        font-size: 1.5rem;
    }
    .aktuell-month, .aktuell-year {
        display: inline;
    }
    .aktuell-content p {
        -webkit-line-clamp: unset;
        overflow: visible;
    }
}

/* ===== SPECS GRID ===== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.spec-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.spec-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.spec-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    color: var(--accent);
}

.spec-icon svg {
    width: 100%;
    height: 100%;
}

.spec-card h4 {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
}

/* ===== FEATURE SECTIONS ===== */
.feature-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.feature-section.highlight {
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    position: relative;
    overflow: hidden;
}

.feature-section.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.feature-section.highlight h3 {
    color: var(--text-light);
}

.feature-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feature-list li {
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.6;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.cta-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.cta-section p {
    color: var(--text-gray);
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #00b8e6 100%);
    color: var(--primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--accent-glow), 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* ===== POPUP ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.popup-overlay.active {
    display: flex;
}

.popup {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    animation: popupIn 0.4s ease;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.3s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.popup h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.product-card:hover,
.product-card.active {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

.product-card.active {
    background: var(--gradient-primary);
}

.product-card.active h3,
.product-card.active .product-card-icon {
    color: var(--text-light);
}

.product-card-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.product-card.active .product-card-icon {
    background: rgba(255, 255, 255, 0.15);
}

.product-card h3 {
    color: var(--primary);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

/* ===== FOOTER ===== */
footer,
.footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 1.25rem 1.5rem;
    position: relative;
}

footer::before,
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* Index-Footer: zwei klare Zeilen, mittig */
.footer-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.footer-line-1 {
    margin-bottom: 0.5rem;
}

.footer-line-2 {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    gap: 1.5rem 2rem;
}

.footer-line a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
}

.footer-line a:hover {
    color: var(--accent);
}

.footer-sep {
    color: rgba(255, 255, 255, 0.4);
    user-select: none;
}

.footer-line .footer-copyright {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-line .footer-logo-inline {
    display: inline-flex;
    align-items: center;
    height: 1em;
}

.footer-line .footer-logo-inline img {
    height: 100%;
    width: auto;
    max-width: 60px;
}

.footer-icon-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-icon-link:hover {
    color: var(--accent);
}

/* Klar getrennte Adressblöcke in Zeile 2 */
.footer-company-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-company-block:first-child {
    padding-left: 0;
    border-left: none;
}

.footer-company-block strong {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.footer-company-block span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-company-block a {
    color: inherit;
}

.footer-company-block a:hover {
    color: var(--accent);
}

.footer-certs-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-line .footer-cert-badge {
    padding: 0.15rem 0.45rem;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.75);
}

/* Seiten mit footer-links + footer-bottom (Impressum, Produkte, …) */
.footer-container:has(.footer-links) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.footer .footer-links,
.footer-row .footer-links {
    display: inline-flex;
    align-items: center;
    gap: 0 1rem;
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem 1.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.5;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-credit a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s;
}

.footer-credit a:hover {
    color: var(--accent);
}

.footer-credit svg {
    width: 16px;
    height: 16px;
}

.footer-logo-inline {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    height: 1em;
}

.footer-logo-inline img {
    height: 100%;
    width: auto;
    max-width: 70px;
}

/* ===== SCROLL NACH OBEN & TELEFON ===== */
/* Im weißen Bereich oberhalb des Footers (Footer ~100–140px) */
.scroll-to-top {
    position: fixed;
    bottom: 11rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--accent);
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.25s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    z-index: 999;
}

/* Telefon-Button: gleicher Stil, oberhalb des Pfeils, immer sichtbar */
.scroll-to-phone {
    bottom: 15.25rem;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-phone:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.35);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.35);
}

/* Footer ohne footer-main (einfache Seiten wie Impressum, Produkte) */
.footer-container:not(:has(.footer-main)) {
    text-align: center;
}

.footer-container:not(:has(.footer-main)) .footer-links {
    justify-content: center;
    margin-bottom: 0.9rem;
}

@media (max-width: 900px) {
    .footer-line {
        gap: 0.35rem 0.5rem;
    }

    .footer-line-2 .footer-company-block {
        padding-left: 0;
        border-left: none;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .footer-line-2 .footer-company-block:first-child {
        padding-top: 0;
        border-top: none;
    }
}

/* ===== PRODUCT DETAIL (INLIGHT-STYLE) ===== */
/* Schnellzugriff – integriert am unteren Rand der Produkt-Card */
.product-schnellzugriff {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.product-schnellzugriff span {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-right: 0.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.product-schnellzugriff a {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}
.product-schnellzugriff a:hover {
    color: var(--accent);
}

/* Scroll-Abstand für Anker-Ziele (fixer Header) */
#zubehoer, #ausfuehrung, #technische-daten, #downloads {
    scroll-margin-top: 100px;
}

.product-serie-nav {
    margin-bottom: 2.5rem;
}

.product-serie-nav h4,
.product-zubehoer h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-serie-grid,
.product-zubehoer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.product-serie-item,
.product-zubehoer-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.product-serie-item:hover,
.product-zubehoer-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-serie-item.current {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.product-serie-item img,
.product-zubehoer-item img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: var(--bg-light);
    padding: 0.75rem;
}

.product-serie-item .item-info,
.product-zubehoer-item .item-info {
    padding: 0.85rem;
}

.product-serie-item h5,
.product-zubehoer-item h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-serie-item p,
.product-zubehoer-item p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.product-ausfuehrung {
    margin: 1.5rem 0;
}

.product-ausfuehrung ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.5rem;
}

.product-ausfuehrung li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-gray);
    line-height: 1.5;
}

.product-ausfuehrung li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.download-category {
    margin-bottom: 1.5rem;
}

.download-category h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.download-category .download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

/* ===== PRODUCTS LIST PAGE ===== */
.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-item {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    border-left: 4px solid var(--accent);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-item h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===== VORSCHRIFTEN PAGE ===== */
.vorschriften-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vorschrift-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 2rem;
    transition: all 0.4s;
    border: 1px solid var(--border);
}

.vorschrift-thumbnail {
    width: 120px;
    height: 160px;
    min-width: 120px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vorschrift-thumbnail canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vorschrift-thumbnail-placeholder {
    color: var(--text-gray);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
}

.vorschrift-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.vorschrift-info h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.vorschrift-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.btn-download {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.4s;
    font-size: 0.9rem;
}

.btn-download:hover {
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    border: 1px solid var(--border);
    text-decoration: none;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: var(--bg-light);
    padding: 1rem;
}

.gallery-item-info {
    padding: 1.25rem;
}

.gallery-item h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.gallery-item p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.product-image {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
}

.product-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

.product-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.8rem;
}

.product-info .lead {
    margin-bottom: 1.5rem;
}

.downloads-section {
    margin-top: 2rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.download-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s;
    border: 1px solid var(--border);
}

.download-card:hover {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: transparent;
    transform: translateY(-3px);
}

.download-card:hover .download-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.download-card:hover .download-info h5,
.download-card:hover .download-info p {
    color: var(--text-light);
}

.download-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
}

.download-info h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
    font-weight: 600;
}

.download-info p {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.specs-table th,
.specs-table td {
    padding: 0.9rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    background: var(--bg-light);
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    width: 40%;
}

.specs-table tr:hover td {
    background: rgba(0, 212, 255, 0.05);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out both;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-detail-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .product-container {
        grid-template-columns: 1fr;
    }

    .product-sidebar {
        position: static;
        order: -1;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sidebar-group {
        width: 100%;
    }

    .sidebar-sub {
        flex-direction: row;
        flex-wrap: wrap;
        padding-left: 0;
        border-left: none;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: visibility 0.3s, opacity 0.3s;
    }
    .nav.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* Backdrop: Klickbereich zum Schließen – deutlich markiert */
    .nav-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 22, 40, 0.7);
        backdrop-filter: blur(12px);
        cursor: pointer;
    }
    .nav-backdrop::after {
        content: 'Tippen zum Schließen';
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.5);
        letter-spacing: 0.05em;
    }

    /* Panel: entspringt von oben (Hamburger-Bereich), fährt nach unten */
    .nav-panel {
        position: relative;
        z-index: 1;
        width: 100%;
        max-height: 85vh;
        overflow-y: auto;
        background: var(--primary);
        padding: 5rem 1.5rem 2rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: top center;
    }
    .nav.active .nav-panel {
        transform: translateY(0);
    }

    .nav-panel ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
    }
    .nav-panel ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-panel ul > li > a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    /* Mobile: Untermenüs ausblenden, nur Hauptkategorien (Produkte, Unternehmen) als Links */
    .nav-dropdown .submenu {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .page-hero {
        padding: 8rem 1.5rem 3rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .product-page {
        padding: 2rem 1rem;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vorschrift-card {
        grid-template-columns: 120px 1fr;
        grid-template-rows: auto auto;
    }

    .vorschrift-card .btn-download {
        grid-column: 1 / -1;
    }

    .footer-line {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-line-2 {
        flex-direction: column;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-container:has(.footer-links) {
        flex-direction: column;
        text-align: center;
    }

    .scroll-to-top {
        bottom: 8rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }

    .scroll-to-phone {
        bottom: 12rem;
        width: 42px;
        height: 42px;
    }

    .product-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .scroll-to-top {
        bottom: 7rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }

    .scroll-to-phone {
        bottom: 10.5rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }
}
