/**
 * Brückentage-Rechner Styles
 * Modern, clean & responsive
 */

.fdp-brueckentage-rechner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.fdp-bruecke-header {
    text-align: center;
    margin-bottom: 40px;
}

.fdp-bruecke-header h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: #1e293b;
}

.fdp-bruecke-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

/* Top Deals Section */
.fdp-bruecke-deals {
    margin-bottom: 50px;
}

.fdp-bruecke-deals h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1e293b;
}

.fdp-bruecke-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fdp-bruecke-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fdp-bruecke-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.fdp-bruecke-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.fdp-bruecke-medal {
    font-size: 1.5rem;
}

.fdp-bruecke-feiertag {
    font-weight: 600;
    font-size: 1.1rem;
}

.fdp-bruecke-card-deal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.fdp-bruecke-deal-input,
.fdp-bruecke-deal-output {
    text-align: center;
}

.fdp-bruecke-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.fdp-bruecke-number.highlight {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.fdp-bruecke-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.fdp-bruecke-deal-arrow {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.8;
}

.fdp-bruecke-card-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 1rem;
    opacity: 0.95;
}

.fdp-bruecke-kw {
    display: inline-block;
    padding: 4px 8px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.fdp-bruecke-card-efficiency {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}

/* No Deals */
.fdp-bruecke-no-deals {
    text-align: center;
    padding: 40px;
    background: #f1f5f9;
    border-radius: 12px;
}

.fdp-bruecke-no-deals p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

/* Calendar Section */
.fdp-bruecke-calendar-section {
    margin: 50px 0;
}

.fdp-bruecke-calendar-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1e293b;
}

/* Legend */
.fdp-bruecke-legend {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.fdp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #475569;
}

.fdp-legend-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
}

.fdp-legend-feiertag {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.fdp-legend-bridge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.fdp-legend-weekend {
    background: #cbd5e1;
}

/* Calendar Grid */
.fdp-bruecke-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.fdp-bruecke-month {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fdp-bruecke-month h4 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: #1e293b;
    text-align: center;
}

.fdp-month-kw {
    font-size: 0.85rem;
    font-weight: 400;
    color: #64748b;
    margin-left: 8px;
}

/* Wochentag-Header */
.fdp-bruecke-weekday-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.fdp-bruecke-weekday-header span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.fdp-bruecke-month-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.fdp-bruecke-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8fafc;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.fdp-bruecke-day.is-empty {
    background: transparent;
    cursor: default;
    pointer-events: none;
}

.fdp-bruecke-day:not(.is-empty):hover {
    transform: scale(1.1);
    z-index: 10;
}

.fdp-day-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.fdp-day-icon {
    font-size: 1rem;
    margin-top: 2px;
}

/* Day States */
.fdp-bruecke-day.is-weekend {
    background: #cbd5e1;
}

.fdp-bruecke-day.is-feiertag {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #b91c1c;
    color: white;
}

.fdp-bruecke-day.is-feiertag .fdp-day-number {
    color: white;
}

.fdp-bruecke-day.is-bridge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #047857;
    color: white;
    animation: pulse 2s infinite;
}

.fdp-bruecke-day.is-bridge .fdp-day-number {
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* Tips Section */
.fdp-bruecke-tips {
    margin-top: 50px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 30px;
    border-left: 5px solid #0ea5e9;
}

.fdp-bruecke-tips h3 {
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    color: #0c4a6e;
}

.fdp-bruecke-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fdp-bruecke-tips li {
    padding: 12px 0;
    font-size: 1rem;
    color: #0c4a6e;
    line-height: 1.6;
}

.fdp-bruecke-tips li strong {
    color: #075985;
}

/* Responsive */
@media (max-width: 768px) {
    .fdp-bruecke-header h2 {
        font-size: 2rem;
    }
    
    .fdp-bruecke-cards {
        grid-template-columns: 1fr;
    }
    
    .fdp-bruecke-calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .fdp-bruecke-deal-arrow {
        font-size: 1.5rem;
    }
    
    .fdp-bruecke-number {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .fdp-brueckentage-rechner {
        max-width: 100%;
    }
    
    .fdp-bruecke-card {
        break-inside: avoid;
        box-shadow: none;
        border: 2px solid #667eea;
    }
    
    .fdp-bruecke-month {
        break-inside: avoid;
    }
}
