* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.eishockey-liga-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.eishockey-liga-inner {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.eishockey-liga-header {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1a2e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.eishockey-liga-header .btn {
    margin: 5px;
}

.eishockey-liga-header #fileInput {
    display: none;
}

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

.eishockey-liga-tabs {
    display: flex;
    background: #f0f0f0;
    border-bottom: 3px solid #c41e3a;
}

.eishockey-liga-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    background: #e0e0e0;
    border: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s;
}

.eishockey-liga-tab:hover {
    background: #d0d0d0;
}

.eishockey-liga-tab.active {
    background: white;
    color: #c41e3a;
}

.eishockey-liga-content {
    padding: 30px;
}

.liga-section {
    display: none;
}

.liga-section.active {
    display: block;
}

.setup-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px solid #c41e3a;
}

.team-input {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.team-input input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.btn {
    background: #c41e3a;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    display: inline-block;
}

.btn:hover {
    background: #a01730;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.spieltag {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    border-left: 5px solid #c41e3a;
}

.spieltag h3 {
    color: #c41e3a;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.spiel {
    display: grid;
    grid-template-columns: 2fr 1fr 0.5fr 1fr 2fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: white;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.spiel input {
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
    width: 60px;
}

.spiel span {
    text-align: center;
    font-weight: bold;
}

.team-name {
    font-weight: bold;
    color: #1e3c72;
}

.overtime-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: #c41e3a;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.overtime-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #c41e3a;
}

.eishockey-liga-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.eishockey-liga-table th {
    background: #c41e3a;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

.eishockey-liga-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.eishockey-liga-table tr:hover {
    background: #f5f5f5;
}

.platz-1 {
    background: #ffd700;
    font-weight: bold;
}

.platz-2 {
    background: #c0c0c0;
    font-weight: bold;
}

.platz-3 {
    background: #cd7f32;
    font-weight: bold;
}

.eishockey-liga-content h2 {
    color: #c41e3a;
    margin: 20px 0;
    font-size: 1.8em;
    border-bottom: 3px solid #c41e3a;
    padding-bottom: 10px;
}

.info-text {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #1e3c72;
    margin: 15px 0;
}

.info-text strong {
    color: #c41e3a;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #c41e3a;
}

#dokuwikiOutput {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
    border: 2px solid #c41e3a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-input {
        grid-template-columns: 1fr;
    }
    
    .spiel {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .eishockey-liga-header h1 {
        font-size: 1.8em;
    }
    
    .eishockey-liga-tab {
        font-size: 0.9em;
        padding: 10px 5px;
    }
}
