/* Custom Styles für dividendenkalender.at */

/* Chart-Styles */
.chart-placeholder {
    height: 200px;
    position: relative;
}

.chart-bars-container {
    display: flex;
    align-items: flex-end;
    height: 100%;
    position: relative;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
}

.chart-bar {
    flex-grow: 1;
    margin: 0 4px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    position: relative;
    min-height: 4px;
    /* Entfernen der Transition für die Bewegung */
}

.chart-tooltip {
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-x-axis {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
    margin-bottom: 8px;
}

.chart-x-label {
    font-size: 10px;
    color: #666;
    text-align: center;
    flex: 1;
}


/* Allgemeine Anpassungen */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Tabellen-Styles für bessere Lesbarkeit */
table th {
    position: relative;
}

table th[data-sort] {
    cursor: pointer;
}

table th[data-sort]:hover {
    background-color: rgba(243, 244, 246, 1);
}

/* Animationen für die Hover-Effekte */
.transition-transform {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Unternehmensbeschreibung Box-Design */
.company-description-box {
    border: 1px solid #e1e4e8; /* Hellgraue Umrandung für subtilen Look */
    border-radius: 5px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.company-description-box h3 {
    color: #e74c3c; /* Roter Titel wie im Screenshot */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.company-description-box p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

.company-description-box p:last-child {
    margin-bottom: 0;
}

/* SVG Chart Improvements */
.overflow-x-auto svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.chart-bar-group rect {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.chart-bar-group:hover rect {
    opacity: 0.85;
}

/* Tooltip styles */
#tooltip rect {
    stroke: #e5e7eb;
    stroke-width: 1;
    fill: white;
    rx: 4;
}

#tooltip text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    .year-label {
        font-size: 8px;
    }
}
