/**
 * Klimaprognose Stylesheet - Alle Styles für die Klimasimulation
 */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f8f9fa;
    color: #333;
}

.chart_explanation {
  width:100%;
  text-align:center;
  margin-bottom:5px;
  color:#3498db;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;
}

.subtitle {
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 0.9;
}

.current-status {
    background: #34495e;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.content {
    padding: 30px;
    padding-top:5px;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 400;
}

.probability-control {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 5px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.probability-control strong {
    color: #2c3e50;
    font-size: 1rem;
    white-space: nowrap;
}

.probability-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-grow: 1;
}

.prob-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 4px 8px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 38px;
}

.prob-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.prob-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

/* Netto-Null-Jahr Buttons (gleiche Styles wie prob-btn) */
.netz-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 4px 8px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 38px;
}

.netz-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.netz-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.control-description {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
    white-space: nowrap;
    margin-left: auto;
}

.chart-container {
    position: relative;
    height: 660px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0px;
    overflow-x: auto;
    overflow-y: hidden;
}

.chart-container canvas {
    width: 1200px !important;
    height: 660px !important;
}

.tipping-points-legend {
    margin-top: 0px;
    padding: 0px;
}

.tipping-points-legend h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
}

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

.legend-item {
    display: block;
    font-size: 0.9rem;
    padding: 12px;
    border-radius: 6px;
    background: #f8f9fa;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.legend-item-active {
    background-color: rgba(255, 235, 59, 0.3) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4) !important;
    transform: scale(1.02) !important;
    border: 2px solid rgba(255, 193, 7, 0.6);
}

.tipping-point-info-box {
    display: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 20px 0;
    padding: 20px;
    border-left: 5px solid #3498db;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.info-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
}

.info-counter {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 15px;
}

.info-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    font-size: 0.95rem;
    line-height: 1.4;
}

.info-row strong {
    color: #2c3e50;
}

.info-right {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.info-explanation {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #34495e;
}

.info-controls {
    text-align: center;
    font-size: 0.85rem;
    color: #7f8c8d;
    font-style: italic;
    border-top: 1px solid #ecf0f1;
    padding-top: 10px;
}

.legend-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-item-explanation {
    font-size: 0.85rem;
    color: #5a6c7d;
    line-height: 1.4;
    padding-left: 30px;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 10px;
    border: 1px solid rgba(0,0,0,0.2);
    flex-shrink: 0;
}


.timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.timeline-item {
    background: #fff;
    border-left: 5px solid #e74c3c;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-item.current {
    border-left-color: #e74c3c;
    background: #fee;
}

.timeline-item.near-term {
    border-left-color: #f39c12;
    background: #fef9e7;
}

.timeline-item.mid-term {
    border-left-color: #e67e22;
    background: #fdf2e9;
}

.timeline-item.long-term {
    border-left-color: #c0392b;
    background: #fadbd8;
}

.year {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.temp {
    font-size: 1.2rem;
    color: #e74c3c;
    font-weight: bold;
}

.co2 {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 5px 0;
}

.tipping-points {
    margin-top: 15px;
}

.tipping-point {
    background: #ecf0f1;
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.probability {
    color: #e74c3c;
    font-weight: bold;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning h3 {
    color: #856404;
    margin-top: 0;
}

.methodology {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.methodology h3 {
    color: #155724;
    margin-top: 0;
}

.footer {
    background: #34495e;
    color: white;
    padding: 20px 30px;
    text-align: center;
    font-size: 0.9rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
