/* ========================================
   BRANCHEN-SEITE
   ======================================== */

/* --- Hero --- */
.branches-hero {
    background: linear-gradient(180deg, #f4f4ff 0%, #ffffff 100%);
    padding: 100px 0 48px;
    text-align: center;
}

.branches-hero .hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #3b31c8;
    background: rgba(59, 49, 200, 0.08);
    border: 1px solid rgba(59, 49, 200, 0.15);
    border-radius: 50px;
    padding: 6px 18px;
    margin-bottom: 20px;
}

.branches-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0c0a2e;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.25;
}

.branches-hero h1 span {
    color: #3b31c8;
}

.branches-hero .hero-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* --- Hero-Suche --- */
.branches-search {
    max-width: 560px;
    margin: 0 auto 20px;
    position: relative;
}

.branches-search .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

.branches-search input {
    width: 100%;
    border: 1px solid #e0e0e8;
    border-radius: 50px;
    font-size: 16px;
    height: 54px;
    outline: none;
    padding: 0 24px 0 52px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(59, 49, 200, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.branches-search input:focus {
    border-color: #3b31c8;
    box-shadow: 0 2px 12px rgba(59, 49, 200, 0.12);
}

.branches-search input::placeholder {
    color: #aaa;
}

/* --- Suggestion-Chips --- */
.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.suggestion-chips span.chip-label {
    font-size: 13px;
    color: #888;
    align-self: center;
}

.suggestion-chips a {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #3b31c8;
    background: #fff;
    border: 1px solid #e0e0e8;
    border-radius: 50px;
    padding: 5px 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.suggestion-chips a:hover {
    background: #3b31c8;
    color: #fff;
    border-color: #3b31c8;
}

/* --- Sticky Alphabet-Bar --- */
.alpha-bar-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    transition: box-shadow 0.2s;
}

.alpha-bar-wrapper.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.alpha-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.alpha-bar li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #3b31c8;
    text-decoration: none;
    transition: all 0.15s;
}

.alpha-bar li a:hover {
    background: #f0f0ff;
    color: #191d93;
}

.alpha-bar li a.active {
    background: #3b31c8;
    color: #fff;
    box-shadow: 0 2px 6px rgba(59, 49, 200, 0.25);
}

.alpha-bar li a.nav-arrow {
    color: #888;
    font-size: 16px;
}

.alpha-bar li a.nav-arrow:hover {
    color: #3b31c8;
    background: #f0f0ff;
}

/* --- Branchenliste --- */
.branches-list-section {
    padding: 40px 0 20px;
}

.branches-list-section .current-letter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b31c8, #5b4fd8);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 12px;
}

.branches-list-section .list-header {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.branches-list-section .list-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0c0a2e;
    margin: 0;
}

.branches-list-section .list-header .branch-count {
    font-size: 14px;
    color: #888;
    margin-left: 12px;
    font-weight: 400;
}

/* --- Branch-Items (aufgewertete Icon-Box) --- */
.branch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #eeeef5;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none !important;
    margin-bottom: 8px;
}

.branch-item:hover {
    transform: translateY(-2px);
    border-color: #d0d0e8;
    box-shadow: 0 4px 12px rgba(59, 49, 200, 0.08);
    background: #fafaff;
}

.branch-item .branch-name {
    font-size: 15px;
    font-weight: 500;
    color: #191d93;
    transition: color 0.15s;
    line-height: 1.4;
}

.branch-item:hover .branch-name {
    color: #3b31c8;
}

.branch-item .branch-arrow {
    color: #c0c0d0;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}

.branch-item:hover .branch-arrow {
    color: #3b31c8;
    transform: translateX(3px);
}

/* --- Untere Pagination --- */
.branches-bottom-pagination {
    padding: 20px 0 0;
    display: flex;
    justify-content: center;
}

/* --- CTA Section --- */
.branches-cta {
    background: linear-gradient(180deg, #ffffff 0%, #f4f4ff 100%);
    padding: 64px 0 80px;
    text-align: center;
    margin-top: 20px;
}

.branches-cta .cta-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.branches-cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0c0a2e;
    margin-bottom: 12px;
}

.branches-cta p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.branches-cta .btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3b31c8, #5b4fd8);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.branches-cta .btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 49, 200, 0.25);
}

.branches-cta .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #3b31c8;
    background: transparent;
    border: 1px solid #d0d0e8;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    margin-left: 12px;
}

.branches-cta .btn-cta-secondary:hover {
    background: #f0f0ff;
    border-color: #3b31c8;
}

/* --- jQuery UI Autocomplete Override --- */
.ui-autocomplete {
    border-radius: 12px !important;
    border: 1px solid #e0e0e8 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    padding: 6px 0 !important;
    max-height: 300px;
    overflow-y: auto;
    z-index: 5000 !important;
}

.ui-menu-item-wrapper {
    padding: 10px 20px !important;
    font-size: 14px !important;
    color: #333 !important;
}

.ui-menu-item-wrapper.ui-state-active {
    background: #f0f0ff !important;
    color: #3b31c8 !important;
    border: none !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    .branches-hero {
        padding: 80px 0 36px;
    }

    .branches-hero h1 {
        font-size: 1.75rem;
    }

    .branches-hero .hero-subtitle {
        font-size: 1rem;
    }

    .alpha-bar li a {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .branches-cta .cta-card {
        padding: 36px 24px;
    }

    .branches-cta .btn-cta-secondary {
        margin-left: 0;
        margin-top: 12px;
    }
}

/* Mobil */
@media (max-width: 576px) {
    .branches-hero {
        padding: 72px 0 28px;
    }

    .branches-hero h1 {
        font-size: 1.5rem;
    }

    .branches-hero .hero-subtitle {
        font-size: 0.95rem;
    }

    .branches-search input {
        height: 48px;
        font-size: 15px;
    }

    .suggestion-chips {
        gap: 6px;
    }

    .suggestion-chips a {
        font-size: 12px;
        padding: 4px 10px;
    }

    .alpha-bar {
        gap: 1px;
    }

    .alpha-bar li a {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-radius: 6px;
    }

    .branch-item {
        padding: 12px 14px;
    }

    .branch-item .branch-name {
        font-size: 14px;
    }

    .branches-list-section .current-letter-badge {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .branches-cta h2 {
        font-size: 1.25rem;
    }

    .branches-cta .btn-cta-primary,
    .branches-cta .btn-cta-secondary {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .branches-cta .btn-cta-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
}
