:root {
  /* Hauptfarben für die verschiedenen Informatikbereiche */
  --color-technical: #522546;
  --color-applied: #7bc9ff;
  --color-theoretical: #0766ad;
  --color-practical: #b1afff;
  --color-partner: #c0e5dc;
  --color-lehrplan: #006769;
  
  /* Weitere Designfarben */
  --color-header: #3498db;
  --color-footer: #34495e;
  --color-text: #333;
  --color-text-light: #7f8c8d;
  --color-background-blocks: #e9ecef;
  --color-background-tables:#fafafa;
  --color-task: #e74c3c; /* Roter Farbton für Aufgaben*/
  --color-test: #f1c40f; /* Gelber Farbton für Tests (Farbe ist exemplarisch) */
  --color-video: #3498db; /* Blauer Farbton für Videos (Beispiel: nutzt die Header-Farbe) */
}
/* Grundlegende Stilregeln */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
p{
    font-size: 1em;
}
body {
    background-color: #f5f5f5; /* Grundfarbe beibehalten */
    color: var(--color-text);
    font-family: 'Arial', sans-serif;
    position: relative;
    /* Hintergrundmuster hinzufügen */
    background-image: 
        /* Feines Punktmuster */
        radial-gradient(
            circle at 50% 50%, 
            #e8e8e8 1px, 
            transparent 1px
        ),
        /* Subtiles Gittermuster */
        linear-gradient(rgba(52, 152, 219, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 152, 219, 0.05) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 0 0;
    /* Damit der Hintergrund während des Scrollens fix bleibt */
    background-attachment: fixed;
}


/* Gemeinsamer Header-Bereich für Header und Navigation */
header {
    position: relative;
    display: flex;
    flex-direction: column; /* Stapelt Header und Navigation vertikal */
    align-items: center;
    justify-content: center;
    padding: 20px 0 0 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Gemeinsames Hintergrundbild für Header und Navigation */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Bilder/Nav_hell.jpg'); /* Bildpfad anpassen */
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Blauer Overlay für das Hintergrundbild */
header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(41, 128, 185, 0.85) 0%,
        rgba(41, 128, 185, 0.7) 50%,
        rgba(41, 128, 185, 0.85) 100%
    );
    z-index: -1;
}

/* Header-Logo-Positionierung - auf rechte Seite verschoben und größer gemacht */
.header-logo {
    position: absolute;
    right: 20px; /* Geändert von left zu right */
    top: 10px; /* Etwas nach oben verschoben */
    width: 150px; /* Vergrößert von 80px */
    height: 150px; /* Vergrößert von 80px */
    z-index: 2;
    transition: transform 0.3s ease;
}

/* Titel im Header - Platz schaffen, damit das Logo nicht überlappt */
header h1 {
    position: relative;
    z-index: 1;
    font-size: 2.2em;
    text-align: center;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    color: white;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 0;
    margin-right: 120px; /* Platz für das Logo schaffen */
}

/* Navigationsbereich, der sich nun im Header befindet */
nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    position: relative;
    margin-top: 10px; /* Abstand vom Titel */
    box-shadow: none; /* Entferne den alten Schatten */
    background-color: transparent; /* Entferne Hintergrundfarbe */
    z-index: 1;
}

/* Weißer halbtransparenter Streifen für die Navigation */
nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2); /* Weißer halbtransparenter Hintergrund */
    z-index: -1;
}

/* Stil für die Navigationsliste */
nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0 0 0 20px;
}

nav ul li {
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 15px 22px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hover-Effekt für Navigationselemente */
nav ul li:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Login-Bereich */
.login-area {
    display: flex;
    align-items: center;
    margin: 10px 0;
}
/* Dropdown-Menü Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    min-width: 250px;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--color-text) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: all 0.2s ease;
    text-shadow: none !important;
    border-left: 5px solid transparent;
}

/* Farbkodierung für die Dropdown-Links entsprechend der Kacheln */
.dropdown-content a:nth-child(1) {
    border-left-color: var(--color-technical); /* Technische Informatik */
}

.dropdown-content a:nth-child(2) {
    border-left-color: var(--color-applied); /* Angewandte Informatik */
}

.dropdown-content a:nth-child(3) {
    border-left-color: var(--color-theoretical); /* Theoretische Informatik */
}

.dropdown-content a:nth-child(4) {
    border-left-color: var(--color-practical); /* Praktische Informatik */
}

.dropdown-content a:nth-child(5) {
    border-left-color: var(--color-partner); /* Externe Partner */
}

.dropdown-content a:nth-child(6) {
    border-left-color: var(--color-lehrplan); /* Lehrplanumsetzung */
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    padding-left: 20px;
}

/* Zeige das Dropdown-Menü beim Hover */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Stil für den Dropdown-Button beim Hover */
.dropdown:hover .dropbtn {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Animation für das Einblenden des Dropdowns */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gemeinsamer Button-Stil für alle Buttons im Footer */
.footer-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95em;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 5px;
    line-height: 1.5;
}

.footer-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.login-status {
    color: white;
    font-size: 0.9em;
    display: none;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.close:hover {
    color: black;
}

.modal h3 {
    margin-bottom: 15px;
    color: #2980b9;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-btn {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--color-header);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 10px;
    display: none;
}

/* Hauptinhalt */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Kachelbereich */
.tiles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Der tile-link umschließt nun die gesamte Kachel */
.tile-link {
    text-decoration: none; /* Entfernt die Unterstreichung vom Link */
    color: inherit; /* Erbt die Textfarbe vom Elternelement */
    display: flex; /* Macht den Link zu einem Flex-Container */
    flex-direction: column; /* Ordnet die Kindelemente (die tile) spaltenweise an */
    height: 100%; /* Wichtig, damit der Link die volle Höhe im Grid-Kontext einnimmt */
    /* Auf der Startseite sind die Kacheln in einem Flex-Container, daher ist height:100% hier passend. */
}

/* Kachel selbst */
.tile {
    background-color: white;
    width: 280px; /* Behält die feste Breite bei */
    height: 280px; /* Behält die feste Höhe bei */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    
    /* Flexbox für die interne Anordnung des Inhalts */
    display: flex; 
    flex-direction: column; /* Stapelt Bild, h3 und p vertikal */
    align-items: center; /* Zentriert die Inhalte horizontal */
    justify-content: center; /* Zentriert die Inhalte vertikal im verfügbaren Raum */
    text-align: center;
    
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    
    /* Flex-Eigenschaften für die Skalierung innerhalb des .tiles-container */
    flex-grow: 1; /* Ermöglicht der Kachel, im tiles-container zu wachsen */
    flex-shrink: 1; /* Ermöglicht der Kachel, zu schrumpfen */
    flex-basis: 280px; /* Die Basisgröße */
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tile img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    flex-shrink: 0; /* Verhindert, dass das Bild schrumpft */
}

.tile h3 {
    margin-bottom: 10px;
    /* !important ist hier notwendig, um die Standard-Linkfarbe definitiv zu überschreiben */
    color: #2c3e50 !important; /* Setzt die Farbe der Überschrift explizit */
    text-decoration: none !important; /* Entfernt die Unterstreichung definitiv */
    flex-shrink: 0; /* Verhindert, dass die Überschrift schrumpft */
}

.tile p {
    /* !important ist hier notwendig, um die Standard-Linkfarbe definitiv zu überschreiben */
    color: var(--color-text-light) !important; /* Setzt die Farbe des Absatzes explizit */
    font-size: 0.9em;
    text-decoration: none !important; /* Entfernt die Unterstreichung definitiv */
    flex-grow: 1; /* Erlaubt dem Absatz, den verbleibenden vertikalen Platz auszufüllen */
    
    /* Zusätzliche Flexbox-Eigenschaften für den Absatz, um den Text zu zentrieren */
    display: flex; /* Macht den Absatz selbst zu einem Flex-Container */
    align-items: center; /* Vertikale Zentrierung des Textes im Absatz */
    justify-content: center; /* Horizontale Zentrierung des Textes im Absatz */
}

/* Standardmäßig alle Lehrerinhalte ausblenden */
.teacher-content {
  display: none;
}

/* Wenn der Body die Klasse 'teacher-logged-in' hat, DANN zeige .teacher-content an */
body.teacher-logged-in .teacher-content {
  display: block !important; /* !important kann helfen, andere display-Regeln zu überschreiben */
}

/* Farbkodierung für verschiedene Informatikbereiche */
.technical {
    border-top: 5px solid var(--color-technical);
}

.applied {
    border-top: 5px solid var(--color-applied);
}

.theoretical {
    border-top: 5px solid var(--color-theoretical); /*48a6a7*/
}

.practical {
    border-top: 5px solid var(--color-practical); /*9b59b6*/
}
.lehrplan {
    border-top: 5px solid var(--color-lehrplan);
}
.partner {
    border-top: 5px solid var(--color-partner); /*#d1f8ef*/
}

/* Footer-Bereich mit Impressum-Button */
footer {
    background-color: var(--color-footer);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Für Mobilgeräte */
}

/* Copyright-Bereich links mit vertikaler Zentrierung */
.copyright {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 10px 0;
}
/* Button-Bereich rechts */
.footer-buttons {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen den Buttons */
}
.footer-links {
    display: flex;
    gap: 15px;
    margin-left: 15px;
}

/* Für Mobilgeräte - Stapelt Copyright und Login-Bereich übereinander */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
    }
    
    .copyright, .footer-buttons {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin: 5px 0;
    }
    
    .footer-buttons {
        margin-top: 10px;
    }
}

.copyright p::before {
    content: ''; /* Erforderlich, um das Pseudo-Element zu erzeugen */
    display: inline-block;
    width: 147px; /* Passen Sie die Breite nach Bedarf an */
    height: 54px; /* Passen Sie die Höhe nach Bedarf an */
    margin-right: 8px; /* Abstand zwischen Icon und Text */
    vertical-align: text-bottom; /* Sorgt für eine saubere Ausrichtung mit dem Text */
    background-image: url('Bilder/schutz.png'); /* Pfad zu Ihrem Bild */
    background-size: contain; /* Stellt sicher, dass das Bild komplett sichtbar ist */
    background-repeat: no-repeat;
}

/* Brotkrumenpfad-Stil */
.breadcrumb {
    display: flex;
    list-style: none;
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 10px;
    color: #6c757d;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--color-header);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: #6c757d;
    font-weight: bold;
}

/* Styling für die Unterthemen-Karten (Diese Regeln sollten aus styles.css entfernt werden und nur in styles_subsites.css sein) */
/*
.subtopics-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.subtopic-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-left: 5px solid #e74c3c;
    transition: transform 0.3s;
}

.subtopic-card:hover {
    transform: translateY(-5px);
}

.subtopic-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtopic-card p {
    color: var(--color-text-light);
    font-size: 0.9em;
}
*/
/* Stil für den Inhaltsabschnitt auf der Impressum-Seite */
.content-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.content-section h3 {
    color: #2980b9;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.content-section h3:first-child {
    margin-top: 0;
}

.content-section h4 {
    color: var(--color-footer);
    margin-top: 15px;
    margin-bottom: 10px;
}

.content-section p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}