/* ============================================================
   FOOTER (Blauer Balken - Full Width)
   ============================================================ */
.school-footer {
    width: 100%;
    background-color: #2e5d8b; /* Gymnasium-Blau */
    color: #fff;
    padding: 15px 0;
    margin-top: 3px;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.footer-content {
    /* WICHTIG: Volle Breite nutzen, damit nichts gequetscht wird */
    width: 100%;
    padding: 0 40px; /* Abstand zu den Bildschirmrändern */

    display: flex;
    justify-content: space-between; /* Verteilt Links - Mitte - Rechts */
    align-items: center;            /* Vertikal mittig */

    box-sizing: border-box; /* Verhindert Scrollbalken durch Padding */
}

/* --- Die 3 Bereiche (jeder bekommt 1/3 Platz) --- */

/* 1. LINKS: Schulname */
.f-left {
    flex: 1; /* Nimmt 1 Teil Platz */
    text-align: left; /* Text linksbündig */
    font-weight: 600;
}

/* 2. MITTE: Credits */
.f-center {
    flex: 1; /* Nimmt 1 Teil Platz */
    text-align: center; /* WICHTIG: Damit es wirklich in der MITTE steht */
    opacity: 0.7;
    white-space: nowrap; /* Verhindert Umbruch in der Mitte */
}

/* 3. RECHTS: Impressum & Datenschutz */
.f-right {
    flex: 1; /* Nimmt 1 Teil Platz */

    /* Flexbox, um den Inhalt nach GANZ RECHTS zu schieben */
    display: flex;
    justify-content: flex-end;
}

/* Der kleine Wrapper für die Links rechts */
.f-right-content {
    /* Trick: Die Box ist rechts, aber der Text darin ist linksbündig */
    text-align: left;
    display: flex;
    flex-direction: column; /* Untereinander */
    line-height: 1.4;
}

/* Links Styling allgemein */
.school-footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.school-footer a:hover {
    opacity: 0.8;
}

/* --- Handy Ansicht (Alles untereinander) --- */
@media screen and (max-width: 700px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        text-align: center;
    }

    .f-left, .f-center, .f-right {
        text-align: center;
        width: 100%;
    }

    .f-right {
        justify-content: center; /* Auch rechts mittig auf Handy */
    }

    .f-right-content {
        text-align: center; /* Links mittig auf Handy */
        flex-direction: row; /* Nebeneinander statt untereinander um Platz zu sparen */
        gap: 20px;
    }
}



/* --- Handy Ansicht (Kompakter) --- */
@media screen and (max-width: 700px) {
    /* 1. Gesamtrahmen verkleinern */
    .school-footer {
  /* Weniger Polsterung oben/unten (statt 15px) */
        font-size: 0.75rem; /* Schrift etwas kleiner (statt 0.9rem) */
        padding-bottom: 60px;
    }

    .footer-content {
        flex-direction: column;
        gap: 4px;           /* WICHTIG: Abstand drastisch reduziert (von 20px auf 4px) */
        padding: 0 15px;
        text-align: center;
    }

    .f-left, .f-center, .f-right {
        text-align: center;
        width: 100%;
        /* Verhindert unnötige Zeilenhöhen */
        line-height: 1.2;
    }

    /* Schulname etwas hervorheben, aber eng anliegend */
    .f-left {
        margin-bottom: 2px;
    }

    /* Credits noch etwas dezenter */
    .f-center {
        font-size: 0.7rem;
        margin-bottom: 5px; /* Kleiner Abstand zum Impressum */
    }

    .f-right {
        justify-content: center;
    }

    /* Links nebeneinander (wie vorher), aber enger */
    .f-right-content {
        text-align: center;
        flex-direction: row;
        gap: 15px; /* Abstand zwischen Impressum und Datenschutz etwas verringert */
    }
}