/* ========================================
   SCHULPROFIL
   ======================================== */

.schulprofil,
.schulprofil button,
.schulprofil h1,
.schulprofil h2,
.schulprofil h3,
.schulprofil p {
    font-family: "Open Sans", Arial, sans-serif;
}

.schulprofil-inhalt {
    width: 100%;
    box-sizing: border-box;
}


/* ========================================
   Überschriften
   ======================================== */

.schulprofil-inhalt h2 {
    margin: 0 0 18px 0;
    color: #2468ad;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}


/* ========================================
   Schule auf einen Blick
   ======================================== */

.schulprofil-kennzahlen {
    margin: 20px 0 45px 0;
}

.schulprofil-kennzahlen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.schulprofil-kennzahl {
    min-height: 145px;
    padding: 22px 20px;

    background: #f4f8fc;
    border: 1px solid #d7e4f0;
    border-radius: 10px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.schulprofil-zahl {
    margin-bottom: 6px;

    color: #2468ad;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
}

.schulprofil-label {
    color: #34495e;
    font-size: 16px;
    line-height: 1.45;
}

.schulprofil-label small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
}

.schulprofil-kennzahl-text .schulprofil-zahl {
    font-size: 22px;
    line-height: 1.25;
}


/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {

    .schulprofil-kennzahlen-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .schulprofil-inhalt h2 {
        font-size: 24px;
    }

    .schulprofil-kennzahlen-grid {
        grid-template-columns: 1fr;
    }

    .schulprofil-kennzahl {
        min-height: auto;
    }

}
/* ========================================
   Schulgebäude
   ======================================== */

.schulprofil-gebaeude {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 30px;
    align-items: stretch;

    margin: 0 0 45px 0;
   	padding: 0;
	overflow: hidden;

    background: #f4f8fc;
	border: none;
	border-radius: 10px;

    box-sizing: border-box;
}

.schulprofil-gebaeude-text {
    padding: 32px 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.schulprofil-gebaeude-text h2 {
    margin-top: 0;
}

.schulprofil-gebaeude-text p {
    margin: 0 0 24px 0;

    color: #34495e;
    font-size: 16px;
    line-height: 1.6;
}


/* Bild */

.schulprofil-gebaeude-bild {
    min-height: 300px;
    overflow: hidden;
    border-radius: 0;
}

.schulprofil-gebaeude-bild img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: 0;
}


/* Button */

.schulprofil-button {
    display: inline-block;

    padding: 11px 18px;

    color: #2468ad;
    background: #ffffff;

    border: 1px solid #2468ad;
    border-radius: 5px;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.schulprofil-button:hover {
    color: #ffffff;
    background-color: #2468ad;
    text-decoration: none;
}


/* Tablet / Handy */

@media (max-width: 800px) {

    .schulprofil-gebaeude {
        grid-template-columns: 1fr;
    }

    .schulprofil-gebaeude-bild {
        min-height: 240px;
    }

    .schulprofil-gebaeude-bild img {
        min-height: 240px;
    }

}
/* Schulgebäude – Bild ohne Rahmen */

.schulprofil-gebaeude-bild {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.schulprofil-gebaeude-bild img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline: 0;
    box-shadow: none !important;
    object-fit: cover;
}
/* =========================================
   AUSSENANLAGEN
   Bild links – Text rechts
   ========================================= */

.schulprofil-aussenanlagen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f4f8fc;
    border-radius: 10px;
    overflow: hidden;
    margin: 46px 0;
}

.schulprofil-aussenanlagen-bild {
    min-height: 300px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.schulprofil-aussenanlagen-bild img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: 0 !important;
    box-shadow: none !important;
}

.schulprofil-aussenanlagen-text {
    padding: 32px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.schulprofil-aussenanlagen-text h2 {
    margin: 0 0 18px 0;
    color: #2468ad;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.schulprofil-aussenanlagen-text p {
    margin: 0 0 24px 0;
    line-height: 1.55;
}

/* Mobil */
@media (max-width: 700px) {

    .schulprofil-aussenanlagen {
        grid-template-columns: 1fr;
    }

    .schulprofil-aussenanlagen-bild {
        min-height: 240px;
    }

    .schulprofil-aussenanlagen-bild img {
        min-height: 240px;
    }

    .schulprofil-aussenanlagen-text {
        padding: 26px 24px;
    }
}
.schulprofil-aussenanlagen-text .schulprofil-button {
    align-self: flex-start;
    width: auto;
}

/* ========================================
   SCHULPROFIL – SCHWERPUNKTE MIT BILDERN
   ======================================== */

.schulprofil-schwerpunkte-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.schulprofil-schwerpunkt {
    background: #f4f8fc;
    border-radius: 8px;
    overflow: hidden;
}

.schulprofil-schwerpunkt img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.schulprofil-schwerpunkt h3 {
    margin: 0;
    padding: 18px 18px 6px 18px;
    color: #2468ad;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.schulprofil-schwerpunkt p {
    margin: 0;
    padding: 0 18px 20px 18px;
    line-height: 1.5;
}

/* Tablet */
@media (max-width: 900px) {
    .schulprofil-schwerpunkte-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Handy */
@media (max-width: 600px) {
    .schulprofil-schwerpunkte-grid {
        grid-template-columns: 1fr;
    }

    .schulprofil-schwerpunkt img {
        height: 220px;
    }
}

/* Icon in den Kennzahl-Karten */
.schulprofil-icon {
    width: 30px;
    height: 30px;
    color: #2468ad;
    margin: 0 0 8px 0;
}

.schulprofil-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Kennzahl mit Icon: Icon links, Text rechts */
.schulprofil-kennzahl-mit-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}

.schulprofil-kennzahl-mit-icon .schulprofil-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    margin: 0;
}

.schulprofil-kennzahl-mit-icon .schulprofil-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.schulprofil-kennzahl-inhalt {
    display: flex;
    flex-direction: column;
}

/* =========================================
   SCHULPROFIL – BILDERGALERIE
   ========================================= */

.schulprofil-galerie {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);

    align-items: center;
    justify-content: center;

    padding: 40px 80px;
    box-sizing: border-box;
}

/* Galerie geöffnet */
.schulprofil-galerie.ist-offen {
    display: flex;
}

/* Bildbereich */
.schulprofil-galerie-inhalt {
    position: relative;
    max-width: 1100px;
    max-height: 85vh;
    text-align: center;
}

/* Großes Bild */
.schulprofil-galerie-inhalt img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Bildzähler */
.schulprofil-galerie-zaehler {
    margin-top: 12px;
    color: #fff;
    font-size: 16px;
}

/* Schließen */
.schulprofil-galerie-schliessen {
    position: absolute;
    top: 20px;
    right: 25px;

    border: 0;
    background: transparent;
    color: #fff;

    font-size: 48px;
    line-height: 1;
    cursor: pointer;
}

/* Pfeile */
.schulprofil-galerie-zurueck,
.schulprofil-galerie-weiter {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 55px;
    height: 70px;

    border: 0;
    background: rgba(255,255,255,0.12);
    color: #fff;

    font-size: 50px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}

.schulprofil-galerie-zurueck {
    left: 20px;
}

.schulprofil-galerie-weiter {
    right: 20px;
}

.schulprofil-galerie-zurueck:hover,
.schulprofil-galerie-weiter:hover {
    background: rgba(255,255,255,0.25);
}

/* Handy */
@media (max-width: 700px) {

    .schulprofil-galerie {
        padding: 60px 15px 30px;
    }

    .schulprofil-galerie-zurueck,
    .schulprofil-galerie-weiter {
        width: 42px;
        height: 58px;
        font-size: 40px;
    }

    .schulprofil-galerie-zurueck {
        left: 5px;
    }

    .schulprofil-galerie-weiter {
        right: 5px;
    }

    .schulprofil-galerie-schliessen {
        top: 12px;
        right: 15px;
    }
}