/* =========================================================
 * REGENSBURGS BESTE – Komplettes konsolidiertes CSS
 * Enthält: Main Styles + Company Detail + Voting Integration
 * NAVIGATION CSS FINAL REPARIERT am 03.09.2025
 * ========================================================= */

/* ---------- Color System ---------- */
:root {
    /* Brand */
    --primary: #4169E1; /* Royal Blue */
    --primary-600: #3557bf; /* handpicked for hover */
    --primary-700: #2b47a0; /* deeper for active */
    --primary-100: #eef2ff;
    --primary-50: #f5f8ff; /* Ultra-light für Backgrounds */

    /* Accent (Logo-Kontrast) */
    --accent: #DC143C; /* Crimson */
    --accent-600: #b41031;
    --accent-700: #8f0d27;
    --accent-100: #ffe6ec;
    --accent-50: #fff5f7;

    /* Premium-Farben (edleres Gold) */
    --premium-gold: #D4AF37; /* Edleres Gold statt grelles #ffd700 */
    --premium-gold-light: #E8D174;
    --premium-gold-dark: #B8941F;
    --premium-bg: #FFFEF5; /* Dezenter Premium-Hintergrund */
    --premium-text: #6B5D00; /* Dunkleres Gold für Text */

    /* Vote/Heart-Farben */
    --vote-default: #E8E8F0; /* Neutraler Grauton mit Blau-Touch */
    --vote-hover: #FFE6EC; /* Accent-100 beim Hover */
    --vote-active: #DC143C; /* Accent beim Vote */

    /* UI */
    --text: #2c3e50;
    --muted: #586270; /* slightly darker for AA on soft bg */
    --border: #e9ecef;
    --bg: #ffffff;
    --bg-soft: #f8f9fa;

    /* Motion */
    --dur: .2s;
    --ease: cubic-bezier(.4, 0, .2, 1);
}


/* ---------- Base ---------- */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Screen reader helpers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
}
.skip-link {
    position: absolute;
    left: 6px;
    top: -40px;
    z-index: 999999;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    transition: top var(--dur) var(--ease);
}
.skip-link:focus {
    top: 7px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.header-top {
    background: #2c3e50;
    color: #fff;
    font-size: .9rem;
    padding: 8px 0;
}
.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
.contact-item a:hover {
    color: var(--primary);
}
.social-links {
    display: flex;
    gap: 10px;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}
.header-main {
    padding: 15px 0;
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.custom-logo {
    height: 60px;
    width: auto;
    max-width: 300px;
    transition: transform var(--dur) var(--ease);
}
.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}
.site-title a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
.site-title a:hover {
    color: var(--primary);
}
.site-description {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .9rem;
}


/* ==========================================================================
   NAVIGATION - KOMPLETT REPARIERTE VERSION
   ========================================================================== */

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    display: block;
    color: var(--text);
    transition: color var(--dur) var(--ease);
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 25px;
    height: 18px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop Navigation (ab 993px) */
@media (min-width: 993px) {
    .main-navigation ul.nav-menu {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 30px;
        position: static;
        box-shadow: none;
        padding: 0;
        border: none;
        background: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-navigation .menu-item {
        position: relative;
    }

    .main-navigation .nav-menu > li > a {
        padding: 15px 0;
        font-weight: 500;
        position: relative;
    }

    /* Hover-Effekt für Hauptmenü */
    .main-navigation .nav-menu > li > a:hover {
        color: var(--primary);
    }

    .main-navigation .nav-menu > li > a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        height: 2px;
        width: 0;
        background: var(--primary);
        transition: width var(--dur) var(--ease);
    }

    .main-navigation .nav-menu > li:hover > a::after {
        width: 100%;
    }

    /* Dropdown-Menüs */
    .main-navigation .menu-item-has-children:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-navigation .sub-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        min-width: 280px;
        max-width: 400px;
        z-index: 1000;
        padding: 15px 0;
        border: 1px solid #e9ecef;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        max-height: 70vh;
        overflow-y: auto;
        transition: all 0.3s ease;
    }

    .main-navigation .sub-menu a {
        padding: 12px 20px;
        font-size: 0.95rem;
        border-bottom: 1px solid #f8f9fa;
    }

    .main-navigation .sub-menu a:hover {
        background: var(--primary-50);
        color: var(--primary);
    }

    .main-navigation .sub-menu .sub-menu {
        top: -16px;
        left: 100%;
    }

    /* Chevron-Icons für Desktop */
    .main-navigation .fa-chevron-down {
        margin-left: 8px;
        font-size: 0.8rem;
        transition: transform var(--dur) var(--ease);
    }

    .main-navigation .menu-item-has-children:hover .fa-chevron-down {
        transform: rotate(180deg);
    }
}

/* Mobile Navigation (bis 992px) */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
    }

    /* WICHTIG: Standard-Zustand (versteckt) */
    .main-navigation ul.nav-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        margin: 10px 20px;
        max-height: 80vh;
        overflow-y: auto;
        transition: all 0.3s ease;
    }

    /* WICHTIG: Sichtbarer Zustand */
    .main-navigation.toggled ul.nav-menu,
    .main-navigation ul.nav-menu.show {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-navigation .menu-item {
        border-bottom: 1px solid #f8f9fa;
    }

    .main-navigation .menu-item:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        padding: 15px 20px;
        font-weight: 500;
    }

    .main-navigation .sub-menu {
        display: none;
        background: var(--bg-soft);
        margin: 0;
        padding: 0;
    }

    .main-navigation .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    .main-navigation .sub-menu a {
        padding: 12px 40px;
        font-size: 0.9rem;
        color: var(--muted);
    }

    .main-navigation .fa-chevron-down {
        float: right;
        margin-top: 2px;
        transition: transform var(--dur) var(--ease);
    }

    .main-navigation .is-open > a .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* Body-Scroll sperren wenn Menü offen */
    body.menu-open {
        overflow: hidden;
    }
}

/* Spezielle Styling für "Alle Branchen" Links */
.menu-all-branches a {
    background: var(--primary-50) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    margin: 5px 10px !important;
}

.menu-all-branches a:hover {
    background: var(--primary) !important;
    color: white !important;
}

@media (max-width: 992px) {
    .menu-all-branches a {
        margin: 5px 20px !important;
    }
}



/* ---------- Search Button ---------- */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}
.search-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.search-toggle:hover {
    background: var(--accent-600);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 20, 60, .35);
}
@media (max-width:480px) {
    .search-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ---------- Search Overlay ---------- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-container {
    position: relative;
    width: 90%;
    max-width: 600px;
}
.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
}
.search-form {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.search-field {
    flex: 1;
    padding: 20px;
    border: 0;
    font-size: 1.2rem;
    outline: 0;
}
.search-submit {
    background: var(--primary);
    color: #fff;
    border: 0;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background var(--dur) var(--ease);
}
.search-submit:hover {
    background: var(--primary-600);
}

/* ---------- Breadcrumbs ---------- */
.branchen-breadcrumbs,
.breadcrumb-container {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 20px;
}
.breadcrumb-container {
    background: white;
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.breadcrumb-list,
.breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
}
.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #6c757d;
    font-weight: bold;
}
.breadcrumb-item a,
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
.breadcrumb-item a:hover,
.breadcrumb a:hover {
    color: var(--accent);
    text-decoration: underline;
}
.breadcrumb-item.active span,
.breadcrumb .current {
    color: #495057;
    font-weight: 500;
}
.breadcrumb .separator {
    color: #cbd5e0;
    font-weight: bold;
}

/* ---------- Hero ---------- */
.branchen-hero {
    position: relative;
    color: #fff;
    padding: 80px 0;
    margin-bottom: 40px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
}
.branchen-hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.branchen-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 2;
}
.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.branchen-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.branchen-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: .9;
}
.branchen-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
}
.branchen-subtitle {
    font-size: 1.25rem;
    margin: 0 0 30px;
    opacity: .95;
}

/* ---------- Sections / Cards ---------- */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 30px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
	justify-content:center;
}
.section-title i {
    color: var(--primary);
}
.unterbranchen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.unterbranche-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    overflow: hidden;
    border: 2px solid transparent;
}
.unterbranche-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(65, 105, 225, .15);
    border-color: var(--primary);
}
.card-link {
    display: block;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.card-icon {
    font-size: 2.4rem;
    color: var(--primary);
    flex-shrink: 0;
}
.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}
.card-description {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 20px;
    font-size: .95rem;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}
.card-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: .9rem;
}
.card-arrow {
    color: var(--primary);
    font-size: 1.1rem;
    transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.unterbranche-card:hover .card-arrow {
    transform: translateX(5px);
    color: var(--primary);
}
.unternehmen-liste {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}
.unternehmen-card,
.unternehmen-item {
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.unternehmen-card:hover,
.unternehmen-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}
.unternehmen-card.premium,
.unternehmen-item.premium {
    border-left: 4px solid var(--premium-gold);
    background: linear-gradient(135deg, #fff 0%, var(--premium-bg) 100%);
}
.unternehmen-item.sorting {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}
.company-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
}
.company-main {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    min-width: 0;
}
.company-logo-compact {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.company-logo-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.company-info {
    flex: 1;
    min-width: 0;
}
.company-header-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.company-name-compact {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.company-name-compact a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
.company-name-compact a:hover {
    color: var(--primary);
}
.premium-badge-compact {
    background: linear-gradient(135deg, var(--premium-gold) 0%, var(--premium-gold-light) 100%);
    color: var(--premium-text);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.company-description-compact {
    margin: 4px 0 8px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.4;
}
.company-contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: .85rem;
}
.contact-item-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}
.contact-item-compact i {
    width: 14px;
    text-align: center;
    color: var(--primary);
}
.contact-item-compact a {
    color: var(--muted);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
.contact-item-compact a:hover {
    color: var(--accent);
}
.company-actions-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ---------- Voting Integration Styles ---------- */
.unternehmen-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}
.action-buttons {
    flex: 1;
}
.voting-section {
    flex-shrink: 0;
    margin-left: 15px;
}
.voting-info {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}
.voting-stats {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.stats-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #4a5568;
    font-size: 14px;
}
.stats-info i {
    color: var(--primary);
}
.premium .heart-voting-container {
    background: linear-gradient(135deg, var(--premium-bg) 0%, var(--premium-gold-light) 20%);
    padding: 8px 12px;
    border-radius: 20px;
    border: 2px solid var(--premium-gold);
}
.basis .heart-voting-container {
    opacity: 0.9;
}

/* ---------- Buttons ---------- */
.btn,
.btn-primary,
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
    text-decoration: none;
}
.btn-primary,
.cta-button {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover,
.cta-button:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(65, 105, 225, .28);
    color: #fff;
}
.btn-primary:active,
.cta-button:active {
    background: var(--primary-700);
    transform: translateY(0);
}
.btn-primary:focus-visible,
.cta-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.btn-details-compact {
    background: var(--primary);
    color: #fff;
}
.btn-details-compact:hover {
    background: var(--primary-600);
    box-shadow: 0 4px 12px rgba(65, 105, 225, .25);
}

/* ---------- Company Detail Page ---------- */
.company-detail-page {
    background: var(--bg-soft);
    min-height: 100vh;
}
.company-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-600) 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.company-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.company-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}
.company-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
}
.company-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.premium-badge {
    background: linear-gradient(135deg, var(--premium-gold), var(--premium-gold-light));
    color: var(--premium-text);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, .4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
.company-slogan {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 10px;
    opacity: .9;
}
.company-tagline {
    font-size: 1.1rem;
    margin: 0 0 20px;
    opacity: .8;
}
.rating-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}
.stars {
    display: flex;
    gap: 3px;
    font-size: 1.2rem;
    color: var(--premium-gold);
}
.rating-text {
    font-size: 1.1rem;
    font-weight: 600;
}
.company-facts {
    display: flex;
    gap: 25px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.fact {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 25px;
    font-size: .95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.company-voting {
    display: flex;
    justify-content: center;
    align-items: center;
}
.company-content {
    padding: 60px 0;
}
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.contact-card,
.opening-hours-card,
.social-card,
.map-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover,
.opening-hours-card:hover,
.social-card:hover,
.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.contact-card h3,
.opening-hours-card h3,
.social-card h3,
.map-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 25px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-card h3 i,
.opening-hours-card h3 i,
.social-card h3 i,
.map-card h3 i {
    color: var(--primary);
    font-size: 1.1rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    transition: background 0.3s;
}
/*.contact-item:hover {
    background: var(--bg-soft);
}*/
.contact-item i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 20px;
}
.contact-details a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-details a:hover {
    color: var(--primary);
}
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-soft);
    border-radius: 10px;
    transition: background 0.3s;
}
.hours-item:hover {
    background: #edf2f7;
}
.day {
    font-weight: 600;
    color: var(--text);
}
.time {
    color: #4a5568;
    font-weight: 500;
}
.closed {
    color: var(--accent);
    font-weight: 600;
}
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    color: white;
}
.social-link.facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}
.social-link.instagram {
    background: linear-gradient(135deg, #e4405f, #f093fb);
}
.social-link.linkedin {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}
.social-link.youtube {
    background: linear-gradient(135deg, #ff0000, #ff4444);
}
.social-link.tiktok {
    background: linear-gradient(135deg, #000000, #333333);
}
.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.social-link i {
    font-size: 1.2rem;
}
.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-fallback {
    text-align: center;
}
.map-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-700));
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4);
    color: white;
}
.gallery-section,
.description-section,
.services-section {
    margin-bottom: 50px;
}
.gallery-section h2,
.description-section h2,
.services-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 30px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}
.gallery-section h2 i,
.description-section h2 i,
.services-section h2 i {
    color: var(--primary);
}
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}
.gallery-item:hover {
    transform: scale(1.05);
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(65, 105, 225, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.service-card {
    background: var(--bg-soft);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-content {
    padding: 25px;
}
.service-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text);
}
.service-content p {
    color: #4a5568;
    margin: 0 0 15px;
    line-height: 1.6;
}
.service-price {
    background: linear-gradient(135deg, var(--primary), var(--primary-700));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    font-size: 1.1rem;
}
.back-to-list {
    background: white;
    padding: 30px 0;
    border-top: 1px solid var(--border);
}
.back-link {
    background: var(--bg-soft);
    color: var(--primary);
    padding: 15px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: 2px solid var(--border);
}
.back-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.3);
}

/* ---------- FAQ / Empty ---------- */
.branchen-faq {
    margin-top: 50px;
}
.faq-liste {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .06);
}
.faq-frage {
    background: var(--bg-soft);
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.faq-antwort {
    padding: 20px;
    color: #495057;
    line-height: 1.6;
}
.no-results {
    text-align: center;
    padding: 60px 20px;
}
.no-results-content i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}
.no-results-content h2 {
    color: #6c757d;
    margin-bottom: 10px;
}
.no-results-content p {
    color: #adb5bd;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    margin-top: 60px;
}
.footer-main {
    padding: 60px 0 40px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.footer-column h4.footer-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}
.footer-logo-img {
    max-height: 50px;
    margin-bottom: 15px;
    background: white;
	border-radius:10px;
}
.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .1);
    color: #ecf0f1;
}
.footer-social .social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-menu li {
    margin-bottom: 10px;
}
.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--dur) var(--ease);
}
.footer-menu a:hover {
    color: #fff;
}
.footer-contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-contact .contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.footer-contact .contact-item i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.contact-details {
    color: #bdc3c7;
    line-height: 1.5;
}
.contact-details strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
}
.contact-details a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
.contact-details a:hover {
    color: #fff;
}
.footer-bottom {
    background: #1a252f;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.copyright p {
    margin: 0;
    color: #95a5a6;
    font-size: .9rem;
}
.legal-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}
.legal-links a {
    color: #95a5a6;
    text-decoration: none;
    font-size: .9rem;
    transition: color var(--dur) var(--ease);
}
.legal-links a:hover {
    color: #fff;
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
    z-index: 1000;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent-600);
    transform: translateY(-3px);
}

/* ---------- A11y Focus ---------- */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width:1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width:768px) {
    .container {
        padding: 0 15px;
    }
    .header-main {
        padding: 12px 0;
    }
    .branchen-hero {
        padding: 60px 0;
    }
    .branchen-title {
        font-size: 2.2rem;
    }
    .branchen-icon {
        font-size: 3rem;
    }
    .unterbranchen-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .unternehmen-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .unternehmen-logo {
        align-self: center;
    }
    .detail-row {
        flex-direction: column;
        gap: 10px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    .company-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .company-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    .company-facts {
        justify-content: center;
    }
    .main-content {
        padding: 25px;
    }
    .contact-card,
    .opening-hours-card,
    .social-card,
    .map-card {
        padding: 20px;
    }
    .unternehmen-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .voting-section {
        margin-left: 0;
        display: flex;
        justify-content: center;
    }
    .voting-info {
        display: none;
    }
}
@media (max-width:480px) {
    .branchen-title {
        font-size: 1.9rem;
    }
    .card-link {
        padding: 20px;
    }
    .company-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    .company-name-compact {
        font-size: 1rem;
    }
    .company-description-compact {
        font-size: .86rem;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
.branchen-hero-image::after {
    background: rgba(0, 0, 0, 0.35);
}
.branchen-title,
.branchen-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.company-hero::before {
    opacity: 0.3;
}
.company-title,
.company-slogan,
.company-tagline,
.rating-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
:root {
    --bg-soft: #f5f8ff; /* tinted light blue for panels and sections */
    --border: #dee5f3; /* lighter border with a hint of blue */
    --muted: #556987; /* softer text for secondary information */
    --vote-default: #f0f4ff; /* light blue for vote button background */
    --vote-hover: #ffeef5; /* light blush on hover */
}
.header-top {
    background: var(--primary-700);
    color: #fff;
}
.branchen-hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    color: var(--text);
}
.branchen-hero-image::after {
    background: rgba(0, 0, 0, 0.35);
}
.branchen-title,
.branchen-subtitle {
    color: var(--primary-700);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.company-hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 100%);
    color: var(--text);
}
.company-hero::before {
    opacity: 0.3;
}
.company-title,
.company-slogan,
.company-tagline,
.rating-text {
    color: var(--primary-700);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.search-overlay {
    background: rgba(65, 105, 225, 0.85);
}
.search-form {
    background: var(--bg);
}
.search-field {
    background: var(--bg-soft);
    color: var(--text);
}
.search-submit {
    background: var(--accent);
}
.search-submit:hover {
    background: var(--accent-600);
}
.site-footer {
    background: linear-gradient(180deg, var(--primary-700) 0%, var(--primary) 100%);
    color: #f0f4fc;
}
.footer-bottom {
    background: var(--primary-700);
}
.footer-menu a:hover,
.footer-social .social-link:hover {
    color: var(--accent);
}
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.voting-section-compact {
    flex-shrink: 0;
}
.heart-vote-btn,
.voting-section-compact .heart-vote-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #fff 0%, var(--vote-default) 100%);
    border: 2px solid var(--border);
    border-radius: 25px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
    min-width: 70px;
}
.heart-vote-btn:hover,
.voting-section-compact .heart-vote-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #fff 0%, var(--vote-hover) 100%);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.12);
}
.heart-vote-btn.voted,
.voting-section-compact .heart-vote-button.voted {
    background: linear-gradient(135deg, var(--accent-100) 0%, #fff 100%);
    border-color: var(--accent);
    color: var(--accent);
}
.heart-vote-btn .heart-icon,
.voting-section-compact .heart-vote-button .heart-icon {
    font-size: 1rem;
}
.heart-vote-btn.voted .heart-icon,
.heart-vote-btn.voted .vote-count,
.voting-section-compact .heart-vote-button.voted .heart-icon,
.voting-section-compact .heart-vote-button.voted .vote-count {
    color: var(--accent);
}
.details-section-compact {
    flex-shrink: 0;
}
.btn-details-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--primary);
    color: #fff;
    border-radius: 25px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-details-compact:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.25);
}
.basis-label-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.company-preview-category-link {
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--dur) var(--ease);
    opacity: 0.8;
    font-weight: 500;
}
.company-preview-category-link:hover {
    color: var(--primary);
    opacity: 1;
    text-decoration: underline;
}

/* Anchor-Link Highlight für Unternehmen-Cards */
.highlight-company {
    animation: companyHighlight 3s ease-in-out;
    box-shadow: 0 0 20px rgba(65, 105, 225, 0.3) !important;
    border-left: 4px solid var(--primary) !important;
}

@keyframes companyHighlight {
    0% { background-color: var(--primary-50); }
    50% { background-color: var(--primary-100); }
    100% { background-color: transparent; }
}

/* Search Results Sections */
.search-section {
    margin-bottom: 40px;
}

.search-section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}

.branchen-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.branch-result-item {
    background: var(--bg-soft);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.branch-result-item h3 {
    margin: 0 0 10px 0;
}

.branch-result-item h3 a {
    color: var(--primary);
    text-decoration: none;
}

.branch-result-item h3 a:hover {
    text-decoration: underline;
}

.branch-count {
    font-size: 0.9rem;
    color: var(--muted);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

/* Spezielle Styling für "Alle Branchen" Links */
.menu-all-branches a {
    background: var(--primary-50) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    margin: 5px 10px !important;
}

.menu-all-branches a:hover {
    background: var(--primary) !important;
    color: white !important;
}

@media (max-width: 992px) {
    .menu-all-branches a {
        margin: 5px 20px !important;
    }
}

/* ==========================================================================
   BRANCHEN-ÜBERSICHT SHORTCODE
   ========================================================================== */

.branchen-uebersicht {
    margin: 40px 0;
}

.branchen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .branchen-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Branchen-Card */
.branchen-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.branchen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Card Image/Icon */
.branchen-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.branchen-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.branchen-card:hover .branchen-card-image img {
    transform: scale(1.05);
}

.branchen-card-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.branchen-card-overlay i {
    font-size: 20px;
    color: var(--primary);
}

.branchen-card-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
}

.branchen-card-icon i {
    font-size: 48px;
    color: var(--primary);
}

/* Card Content */
.branchen-card-content {
    padding: 25px;
}

.branchen-card-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.branchen-card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.branchen-card-title a:hover {
    color: var(--primary);
}

.branchen-card-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Stats */
.branchen-card-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.stat-item i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* Toggle Button */
.branchen-toggle {
    width: 100%;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    color: var(--primary);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 0 0;
}

.branchen-toggle:hover {
    background: var(--primary-100);
    border-color: var(--primary);
}

.branchen-toggle[aria-expanded="true"] {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.branchen-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.branchen-toggle i {
    transition: transform 0.3s ease;
}

/* Unterbranchen Liste */
.unterbranchen-liste {
    margin-top: 15px;
    border-radius: 8px;
    background: var(--bg-soft);
    overflow: hidden;
}

.unterbranchen-liste[aria-hidden="true"] {
    display: none;
}

.unterbranchen-liste.static {
    display: block;
    margin-top: 20px;
}

.unterbranche-item {
    border-bottom: 1px solid #e9ecef;
}

.unterbranche-item:last-child {
    border-bottom: none;
}

.unterbranche-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.unterbranche-link:hover {
    background: #fff;
    color: var(--primary);
    padding-left: 25px;
}

.unterbranche-name {
    font-weight: 500;
}

.unterbranche-count {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
    .branchen-card-content {
        padding: 20px;
    }
    
    .branchen-card-title {
        font-size: 1.2rem;
    }
    
    .branchen-card-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .branchen-toggle {
        padding: 15px;
        font-size: 0.95rem;
    }
}

/* Animation für Aufklappen */
.unterbranchen-liste {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.unterbranchen-liste.show {
    max-height: 800px;
    display: block !important;
}

.unterbranchen-liste.static {
    max-height: none;
    overflow: visible;
}

/* Erweiterte Styles für 3-Ebenen Hierarchie */

/* Level 1 - Unterbranchen */
.unterbranche-item.level-1 {
    border-left: 3px solid var(--primary-100);
}

.unterbranche-item.level-1.has-children {
    background: var(--bg-soft);
}

.unterbranche-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unterbranche-header .unterbranche-link {
    flex: 1;
    margin-right: 10px;
}

/* Sub-Toggle Button für Ebene 2 */
.sub-toggle {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sub-toggle:hover {
    background: var(--primary-50);
}

.sub-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.sub-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

/* Level 2 - Sub-Unterbranchen */
.unterbranchen-level-2 {
    margin-left: 20px;
    border-left: 2px solid var(--primary-50);
    background: #fafbfc;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.unterbranchen-level-2[aria-hidden="true"] {
    display: none;
    max-height: 0;
}

.unterbranchen-level-2.show {
    display: block !important;
    max-height: 600px;
}

.unterbranchen-level-2.static {
    display: block;
    max-height: none;
    margin-top: 10px;
}

.unterbranche-item.level-2 {
    border-left: none;
    background: transparent;
}

.unterbranche-item.level-2 .unterbranche-link {
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--muted);
    position: relative;
}

.unterbranche-item.level-2 .unterbranche-link::before {
    content: "└";
    position: absolute;
    left: -10px;
    color: var(--primary-200);
    font-weight: bold;
}

.unterbranche-item.level-2 .unterbranche-link:hover {
    background: #fff;
    color: var(--primary);
    padding-left: 20px;
}

.unterbranche-item.level-2 .unterbranche-name {
    font-weight: 400;
}

.unterbranche-item.level-2 .unterbranche-count {
    background: var(--muted);
    font-size: 0.75rem;
}

/* Mobile Anpassungen für 3 Ebenen */
@media (max-width: 768px) {
    .unterbranchen-level-2 {
        margin-left: 15px;
    }
    
    .unterbranche-item.level-2 .unterbranche-link {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    .sub-toggle {
        padding: 12px 8px;
    }
    
    .unterbranche-header {
        align-items: stretch;
    }
}

/* Visuelle Hierarchie-Indikatoren */
.unterbranche-item.level-1 > .unterbranche-header > .unterbranche-link .unterbranche-name {
    font-weight: 600;
    color: var(--text);
}

.unterbranche-item.level-2 .unterbranche-name {
    font-weight: 400;
    color: var(--muted);
}

/* Hover-Effekte für bessere UX */
.unterbranche-item.level-1:hover {
    background: var(--primary-25);
}

.unterbranche-item.level-2:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Accordion-Animation für Level 2 */
.unterbranchen-level-2 {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.unterbranchen-level-2[aria-hidden="true"] {
    opacity: 0;
    max-height: 0;
}

.unterbranchen-level-2.show {
    opacity: 1;
}


/* ==========================================================================
   SEO-TEXTE FÜR BRANCHEN-ÜBERSICHT
   ========================================================================== */

/* Intro-Text oben */
.branchen-intro-text {
    margin-bottom: 50px;
    text-align: center;
}

.branchen-intro-text h1 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 20px;
}

.branchen-intro-text > p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 auto 40px;
}

.intro-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-box {
    background: var(--bg-soft);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.highlight-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.highlight-box h3 i {
    margin-right: 10px;
}

.highlight-box p {
    color: var(--muted);
    line-height: 1.6;
}

/* CTA-Section */
.cta-section {
    margin: 60px 0;
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-radius: 16px;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

.cta-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cta-icon.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.cta-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.cta-icon.premium i {
    color: #b8860b;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.cta-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.cta-button.primary {
    background: var(--primary);
    color: white;
}

.cta-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cta-button.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #b8860b;
}

.cta-button.premium:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    transform: translateY(-2px);
}

.cta-note {
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
    margin: 0;
}

/* SEO-Content unten */
.seo-content {
    margin-top: 60px;
}

.seo-content h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.seo-column h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.seo-column p {
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 25px;
}

.seo-column strong {
    color: var(--text);
}

.seo-column a {
    color: var(--primary);
    text-decoration: none;
}

.seo-column a:hover {
    text-decoration: underline;
}

/* Beliebte Branchen Tags */
.popular-branches {
    text-align: center;
    padding: 40px 0;
    background: var(--bg-soft);
    border-radius: 12px;
    margin-top: 40px;
}

.popular-branches h3 {
    margin-bottom: 30px;
    color: var(--text);
    font-size: 1.4rem;
}

.branch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.branch-tag {
    background: #fff;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--primary-100);
    transition: all 0.3s ease;
}

.branch-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .branchen-intro-text h1 {
        font-size: 2rem;
    }
    
    .intro-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .branch-tags {
        gap: 10px;
    }
    
    .branch-tag {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
