/* ------------------------------
   Tab Navigation
--------------------------------*/
.content-column .nav {
    display: flex;
    border-bottom: 2px solid #003366; /* dunkle Linie unter Tabs */
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
    overflow-x: auto; /* horizontales Scrollen auf kleinen Bildschirmen */
}

.content-column .nav li {
    margin-right: 10px;
}

.content-column .nav li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #003366;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    background-color: #e9f0f8;
    transition: all 0.3s ease;
}

.content-column .nav li a:hover {
    background-color: #d0e2f3;
    color: #001f4d;
}

.content-column .nav li.active a {
    background-color: #003366;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    top: 2px;
}
/* ------------------------------
   Stundenpläne
--------------------------------*/

        .stundenplan-container {
            max-width: 1000px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .stundenplan-header {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .stundenplan-header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .stundenplan-header .klasse {
            font-size: 1.8em;
            font-weight: bold;
            margin-bottom: 10px;
            background: rgba(255,255,255,0.2);
            padding: 10px 20px;
            border-radius: 25px;
            display: inline-block;
        }

        .stundenplan-header .schule {
            font-size: 1.2em;
            opacity: 0.9;
        }

        .stundenplan-main {
            padding: 30px;
        }

        .edit-info {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
            text-align: center;
            color: #495057;
            font-weight: bold;
            font-size: 1.1em;
            border-left: 4px solid #6c5ce7;
        }

        .stundenplan-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }

        .stundenplan-table th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            font-size: 1.3em;
            font-weight: bold;
            text-align: center;
            position: relative;
        }

        .stundenplan-table th:first-child {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            width: 100px;
        }

        .stundenplan-table td {
            padding: 15px;
            text-align: center;
            font-size: 1.1em;
            font-weight: bold;
            border-bottom: 1px solid #eee;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
        }

        .stundenplan-table td:hover {
            background: #f8f9ff;
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            z-index: 10;
        }

        .stunde-zeit {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
            font-weight: bold;
            color: #333;
        }

        /* Fächer-Farben - Dezent und professionell */
        .fach-DE { background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 50%); color: #2c3e50; border-left: 4px solid #3498db; }
        .fach-MA { background: linear-gradient(135deg, #f0f8e8 0%, #e1f2d1 50%); color: #2c3e50; border-left: 4px solid #27ae60; }
        .fach-SU { background: linear-gradient(135deg, #f8f0e8 0%, #f2e1d1 50%); color: #2c3e50; border-left: 4px solid #e67e22; }
        .fach-SPO { background: linear-gradient(135deg, #f0e8f8 0%, #e1d1f2 50%); color: #2c3e50; border-left: 4px solid #9b59b6; }
        .fach-WE { background: linear-gradient(135deg, #fef8e8 0%, #fdf2d1 50%); color: #2c3e50; border-left: 4px solid #f39c12; }
        .fach-KU { background: linear-gradient(135deg, #f8e8f0 0%, #f2d1e1 50%); color: #2c3e50; border-left: 4px solid #e91e63; }
        .fach-MU { background: linear-gradient(135deg, #efe8f8 0%, #e0d1f2 50%); color: #2c3e50; border-left: 4px solid #8e44ad; }
        .fach-ETH { background: linear-gradient(135deg, #f5f6fa 0%, #dcdde1 50%); color: #2c3e50; border-left: 4px solid #636e72; }
        .fach-REL { background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 50%); color: #2c3e50; border-left: 4px solid #ff9800; }
        .fach-FÖ { background: linear-gradient(135deg, #e8f8f5 0%, #d1f2e8 50%); color: #2c3e50; border-left: 4px solid #1abc9c; }
        .fach-leer { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%); color: #6c757d; border-left: 4px solid #adb5bd; }

        .legende {
          color: #2c3e50;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 15px;
            padding: 25px;
            margin-top: 30px;
            border-left: 4px solid #17a2b8;
        }

        .legende h3 {
            color: #495057;
            margin-bottom: 20px;
            text-align: center;
            font-size: 1.5em;
        }

        .legende-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .legende-item {
            display: flex;
            align-items: center;
            padding: 10px;
            border-radius: 10px;
            background: rgba(255,255,255,0.8);
            border: 1px solid rgba(0,0,0,0.1);
        }

        .legende-farbe {
            width: 30px;
            height: 30px;
            border-radius: 5px;
            margin-right: 10px;
            border: 2px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

     @media (max-width: 768px) {
            .stundenplan-main {
                padding: 20px;
            }
            
            .stundenplan-table th,
            .stundenplan-table td {
                padding: 10px 5px;
                font-size: 0.9em;
            }
            
            .stundenplan-header h1 {
                font-size: 2em;
            }
            
            .stundenplan-header .klasse {
                font-size: 1.5em;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            
            .stundenplan-table th,
            .stundenplan-table td {
                padding: 8px 3px;
                font-size: 0.8em;
            }
            
            .legende-grid {
                grid-template-columns: 1fr;
            }
        }