/* ===================================
   REFERENZEN PAGE STYLES
   =================================== */

/* ===================================
   BASE
   =================================== */
.page-referenzen {
    background: #fff;
    color: #1a1a1a;
}

.page-referenzen .text-accent {
    color: var(--color-accent, #c0003a);
}

.page-referenzen .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   HERO - Centered Dark
   =================================== */
.hero-centered-dark {
    background: #0a0a0a;
    padding: 10rem 2rem 4rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ref-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.ref-hero-content .overline {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.ref-hero-content h1 {
    font-family: var(--font-headline);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subline {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ref-hero-content .overline,
.ref-hero-content h1,
.hero-subline {
    transform: translateY(20px);
}

/* ===================================
   STATS BAR
   =================================== */
.stats-bar {
    background: var(--color-accent);
    padding: 2rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat {
    padding: 0.5rem;
}

.stat-number {
    display: block;
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================================
   MAP SECTION
   =================================== */
.section-map {
    background: #0a0a0a;
    padding: 5rem 0;
}

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

.section-header h2 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 0.75rem;
}

.section-header p {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
}

.section-header.light h2 {
    color: #1a1a1a;
}

.section-header.light p {
    color: #666;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.map-wrapper {
    position: relative;
}

/* Austria Map SVG */
.austria-map {
    width: 100%;
    height: auto;
    max-height: 400px;
}

.bundesland {
    fill: #2e2e2e;
    cursor: pointer;
    transition: all 0.3s ease;
    stroke: rgba(255,255,255,0.25);
    stroke-width: 0.75;
}

.bundesland:hover {
    fill: #3a1f29;
    stroke: var(--color-accent);
    stroke-width: 1;
}

.bundesland.active {
    fill: #3a1f29;
    stroke: var(--color-accent);
    stroke-width: 1;
}

.bundesland.dimmed {
    fill: #242424;
    opacity: 0.85;
}

/* Location dots - reine Anzeige (kein Klick) */
.location-dot {
    fill: var(--color-accent);
    pointer-events: none;
}

/* Map Legend */
.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 100px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.legend-item:hover {
    border-color: #555;
    color: #fff;
}

.legend-item.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.legend-item.active .legend-dot {
    background: #fff;
}

/* Locations Panel */
.locations-panel {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.locations-panel h3 {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 0.25rem;
    text-transform: uppercase;
}

.locations-count {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #222;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.location-tag {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    padding: 0.4rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.location-tag:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Scrollbar */
.locations-panel::-webkit-scrollbar {
    width: 6px;
}

.locations-panel::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.locations-panel::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.locations-panel::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* ===================================
   ZENTRALEN SECTION
   =================================== */
.section-zentralen {
    background: #fff;
    padding: 5rem 0;
    border-bottom: 1px solid #eee;
}

.zentralen-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
}

.zentralen-content h2 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
}

.zentralen-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #a00030;
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: var(--color-accent);
}

.btn-light:hover {
    background: #f5f5f5;
}

.zentralen-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.zentralen-region h4 {
    font-family: var(--font-headline);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 1rem;
}

.zentralen-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zentralen-tags span {
    font-size: 0.85rem;
    color: #555;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.zentralen-tags span:hover {
    background: var(--color-accent);
    color: #fff;
}

/* ===================================
   CLIENTS SECTION
   =================================== */
.section-clients {
    background: #f5f5f7;
    padding: 5rem 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.client-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.client-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.client-icon .material-symbols-outlined {
    font-size: 28px;
    color: var(--color-accent);
}

.client-card:hover .client-icon {
    background: var(--color-accent);
}

.client-card:hover .client-icon .material-symbols-outlined {
    color: #fff;
}

.client-card h3 {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}

.client-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.client-list span {
    font-size: 0.85rem;
    color: #666;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.client-list span:last-child {
    border-bottom: none;
}

.client-list span:hover {
    color: var(--color-accent);
    padding-left: 0.5rem;
}

/* ===================================
   CTA SECTION
   =================================== */
.section-cta {
    background: var(--color-accent);
    padding: 5rem 2rem;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-headline);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.5rem;
}

.cta-content h2 .text-accent {
    color: rgba(255,255,255,0.6);
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .map-container {
        grid-template-columns: 1fr;
    }
    
    .locations-panel {
        max-height: 300px;
    }
    
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .zentralen-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-centered-dark {
        padding: 10rem 1.5rem 4rem;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .section-map,
    .section-zentralen,
    .section-clients {
        padding: 3rem 0;
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .map-legend {
        gap: 0.5rem;
    }
    
    .legend-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
}
