/* Bienenkönigin Entwicklungskalender - Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffd700, #ffeb3b);
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Input Section */
.input-section {
    padding: 30px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.form-group label {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.form-group input {
    padding: 12px 20px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s ease;
    max-width: 300px;
    width: 100%;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group button {
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Export Section */
.export-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.export-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.export-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.link-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.pdf-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.ics-btn {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
}

/* Permanent Link */
.permanent-link {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.permanent-link label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
}

.link-container {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.link-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9em;
    background: white;
}

.copy-btn {
    padding: 10px 15px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background: #5a6268;
}

.copy-btn.copied {
    background: #28a745;
}

/* Results Section */
.results {
    padding: 0 30px 30px;
    display: none;
}

.results.show {
    display: block;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
}

.phase-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.phase-table caption {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    padding: 10px;
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.phase-table th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.phase-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.phase-table tr:hover {
    background-color: #f8f9fa;
}

.phase-table tr:last-child td {
    border-bottom: none;
}

.phase-name {
    font-weight: 600;
    color: #2c3e50;
    min-width: 200px;
}

.phase-date {
    color: #e74c3c;
    font-weight: 600;
}

.weekday {
    color: #7f8c8d;
    font-size: 0.9em;
}

.ics-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.ics-button:hover {
    background: #219a52;
}

/* Development Info */
.development-info {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    border-left: 5px solid #27ae60;
}

.development-info h3 {
    color: #27ae60;
    margin-bottom: 10px;
}

.development-info p {
    color: #2c3e50;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        margin: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .input-section {
        padding: 20px;
    }
    
    .phase-table {
        font-size: 0.9em;
    }
    
    .phase-table th,
    .phase-table td {
        padding: 10px;
    }

    .export-buttons {
        flex-direction: column;
        align-items: center;
    }

    .export-btn {
        width: 250px;
    }
    
    /* Sticky column for mobile */
    .phase-table th:last-child,
    .phase-table td:last-child {
        position: sticky;
        right: 0;
        background: white;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    
    .phase-table th:last-child {
        background: linear-gradient(135deg, #2c3e50, #34495e);
    }
    
    .phase-table tr:hover td:last-child {
        background-color: #f8f9fa;
    }
}
