.firmenverzeichnis-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.firmenverzeichnis-header {
    text-align: center;
    margin-bottom: 3rem;
}

.firmenverzeichnis-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #3b0764;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.firmenverzeichnis-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 42rem;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #64748b;
}

.breadcrumb a {
    color: #7e22ce;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #6b21a8;
    text-decoration: underline;
}

.breadcrumb span {
    color: #94a3b8;
}

.breadcrumb-current {
    color: #475569;
    font-weight: 600;
}

.bundesland-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3e8ff;
}

.bundesland-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #3b0764;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #7e22ce;
    display: inline-block;
}

.orte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.ort-link {
    display: block;
    padding: 0.75rem 1rem;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.2s;
}

.ort-link:hover {
    background: #7e22ce;
    color: white;
    border-color: #7e22ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(126, 34, 206, 0.3);
}

.firmen-table-container {
    margin-top: 2rem;
}

.firmen-count {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.firmen-table {
    width: 100%;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    border-collapse: separate;
    border-spacing: 0;
}

.firmen-table thead {
    background: #f8fafc;
}

.firmen-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.firmen-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.firmen-table tbody tr:last-child td {
    border-bottom: none;
}

.firmen-table tbody tr:hover {
    background: #faf5ff;
}

.firmen-name-link {
    color: #7e22ce;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.firmen-name-link:hover {
    color: #6b21a8;
    text-decoration: underline;
}

.firmen-details {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.firmen-register {
    display: inline-block;
    background: #f8fafc;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #475569;
    border: 1px solid #e5e7eb;
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    justify-content: center;
    align-items: center;
}

.alphabet-tab {
    display: inline-block;
    min-width: 2.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e9d5ff;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

.alphabet-tab:hover:not(.disabled) {
    background: #7e22ce;
    color: white;
    border-color: #7e22ce;
    transform: translateY(-2px);
}

.alphabet-tab.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.5;
}

.letter-header {
    background: #faf5ff;
}

.letter-header td {
    padding: 1rem;
}

.letter-header strong {
    font-size: 1.5rem;
    color: #7e22ce;
}

.letter-count {
    font-size: 0.875rem;
    color: #64748b;
    margin-left: 0.5rem;
}

.no-companies {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
}

.back-link {
    margin: 1rem 0 2rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-left: 4px solid #7e22ce;
    border-radius: 0.25rem;
}

.back-link a {
    color: #7e22ce;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link a:hover {
    color: #6b21a8;
    text-decoration: underline;
}

.statistik-box {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #faf5ff 0%, #f8fafc 100%);
    border-radius: 0.75rem;
    margin: 2rem 0;
    border: 1px solid #e9d5ff;
}

.statistik-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #7e22ce;
    display: block;
    margin-bottom: 0.5rem;
}

.statistik-text {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.statistik-hint {
    font-size: 0.875rem;
    color: #94a3b8;
    font-style: italic;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .firmenverzeichnis-container {
        padding: 1rem;
    }

    .firmenverzeichnis-title {
        font-size: 2rem;
    }

    .bundesland-section {
        padding: 1.5rem;
    }

    .orte-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .ort-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .firmen-table-container {
        overflow-x: auto;
    }

    .firmen-table {
        min-width: 600px;
    }

    .alphabet-nav {
        gap: 0.25rem;
    }

    .alphabet-tab {
        min-width: 2rem;
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}