/* ===== RESET & GRUNDLEGENDE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1f2937;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, #0066B3 0%, #004d87 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 102, 179, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
}

.header-text {
    flex: 1;
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.title-highlight {
    color: #E30613;
}

.header-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 3rem 0;
}

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

/* ===== PAGE SYSTEM ===== */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.decoration-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0066B3 0%, #E30613 100%);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0066B3 0%, #E30613 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    text-align: center;
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ===== SELECT BOX ===== */
.select-container {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.apothekentyp-select {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    border: 3px solid #0066B3;
    border-radius: 12px;
    background: white;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 179, 0.1);
}

.apothekentyp-select:hover {
    border-color: #E30613;
    box-shadow: 0 6px 16px rgba(227, 6, 19, 0.15);
}

.apothekentyp-select:focus {
    outline: none;
    border-color: #E30613;
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1);
}

/* ===== INFO BOX ===== */
.info-box {
    background: white;
    border-left: 5px solid #E30613;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1rem;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0066B3;
    margin-bottom: 0.5rem;
}

.info-text {
    color: #6b7280;
    line-height: 1.7;
}

/* ===== STATISTIK-KARTEN ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-card-blue {
    border-top: 4px solid #0066B3;
}

.stat-card-red {
    border-top: 4px solid #E30613;
}

.stat-card-gradient {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #0066B3, #E30613) 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066B3;
    margin-bottom: 0.5rem;
}

.stat-card-red .stat-number {
    color: #E30613;
}

.stat-card-gradient .stat-number {
    background: linear-gradient(135deg, #0066B3 0%, #E30613 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* ===== DETAIL NAVIGATION ===== */
.detail-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.back-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0066B3 0%, #004d87 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 179, 0.2);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 179, 0.3);
}

.detail-select {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #0066B3;
    border-radius: 8px;
    background: white;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-select:hover {
    border-color: #E30613;
}

.detail-select:focus {
    outline: none;
    border-color: #E30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

/* ===== DETAIL CONTENT ===== */
.detail-card {
    background: white;
    border: 2px solid #0066B3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 102, 179, 0.1);
}

.detail-image-container {
    position: relative;
    height: 500px;
    background: #f3f4f6;
    overflow: hidden;
}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 102, 179, 0.2), transparent);
}

.detail-body {
    padding: 2.5rem;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0066B3 0%, #E30613 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

/* ===== MERKMALE ===== */
.merkmale-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0066B3;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #E30613;
    display: inline-block;
}

.merkmale-list {
    list-style: none;
    padding: 0;
}

.merkmal-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.8;
}

.merkmal-item::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #E30613;
    font-size: 1.2rem;
}

/* ===== UMSATZVERTEILUNG ===== */
.umsatzverteilung-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #fef2f2 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.umsatz-item {
    margin-bottom: 1.5rem;
}

.umsatz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.umsatz-label {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
}

.umsatz-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.rx-value {
    color: #0066B3;
}

.nonrx-value {
    color: #E30613;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    width: 100%;
    height: 2rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s ease-out;
    position: relative;
}

.rx-progress {
    background: linear-gradient(90deg, #0066B3 0%, #0080e0 100%);
    box-shadow: 0 2px 8px rgba(0, 102, 179, 0.3);
}

.nonrx-progress {
    background: linear-gradient(90deg, #E30613 0%, #ff1a2a 100%);
    box-shadow: 0 2px 8px rgba(227, 6, 19, 0.3);
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.umsatz-info {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-left: 4px solid #0066B3;
    border-radius: 6px;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #E30613 0%, #b30410 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
}

.footer-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .detail-title {
        font-size: 1.75rem;
    }

    .detail-image-container {
        height: 300px;
    }

    .detail-body {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .detail-navigation {
        flex-direction: column;
    }

    .umsatz-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
