/* =========================================
   Farben & Grundwerte
   ========================================= */
:root {
    --frame-bg: #f2f2f2;
    --page-bg: #ffffff;
    --text-color: #000000;

    --font-family-mono: CourierPrime-Regular, monospace;
    --font-family-arial: Arial, Helvetica, sans-serif;

    --color-black: #000;
    --color-login-link: #000;
}

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

/* html + body zusammen, damit Scrollbar wirklich weg ist */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--page-bg);
    font-family: var(--font-family-arial);
    color: var(--text-color);

    /* Scrollen erlaubt, Balken versteckt */
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* WebKit (Chrome, Safari, neuer Edge) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* =========================================
   Allgemeine Links (z.B. E-Mail)
   ========================================= */
a {
    color: var(--color-black);
    text-decoration: none;
}

a:visited {
    color: var(--color-black);
}

a:hover,
a:focus {
    color: var(--color-black);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

/* =========================================
   Layout
   ========================================= */
.page-frame {
    min-height: 100vh;
    padding: 1em;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Titel überlagert .inner oben links – wie index.css */
.title-wrapper {
    position: absolute;
    top: 0.25em;
    left: 0.8em;
    z-index: 10;
    pointer-events: auto;
}

.title {
    font-size: clamp(4rem, 7vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

/* Innerer Rahmen */
.inner {
    position: relative;
    background: var(--frame-bg);
    border: 0 solid #000;
    padding: 8rem 3rem 4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hauptinhalt */
.layout-main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* =========================================
   SCHULEN / INTRO TEXT – TYPOGRAFIE SAUBER
   ========================================= */

/* Wrapper – du nutzt ihn bereits */
.intro-text{
    max-width: 48rem;
    font-family: var(--font-family-arial);
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.0825em;
}

/* p */
.intro-text p {
    margin: 0 0 1rem;
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Headings NUR innerhalb Intro/Schools */
.intro-text h2,
.intro-text h3,
.intro-text h4{
    font-family: var(--font-family-arial);
    font-weight: 600;
    line-height: 1.15;
    hyphens: none;
}

/* H2 – Kapitel */
.intro-text h2{
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
    letter-spacing: 0.10em;
    margin: 3rem 0 0.9rem;
	  text-transform: uppercase;
}

/* H3 – Unterkapitel */
.intro-text h3{
    font-size: clamp(1.1rem, 1.45vw, 1.2rem);
    letter-spacing: 0.085em;
    margin: 2.1rem 0 0.65rem;
}

/* H4 – Zwischenüberschrift */
.intro-text h4{
    font-size: clamp(1.1rem, 1.25vw, 1.2rem);
    letter-spacing: 0.075em;
    margin: 1.5rem 0 0.45rem;
    font-weight: 700;
    opacity: 0.95;
}

/* Strong sichtbar, aber nicht fett-klotzig */
.intro-text strong{
    font-weight: 700;
}

/* Links im Fließtext */
.intro-text a{
    font-weight: 700;
}

/* =========================================
   QUOTE + LISTEN wie Quote (Dash „–“)
   (funktioniert für .quote UND für <ul><li>)
   ========================================= */

/* Quote-Block */
.intro-text .quote{
    position: relative;
    margin: 0.2rem 0 1.1rem;
    padding: 0.25rem 0 0.25rem 1.55rem;
    font-style: normal;
    opacity: 0.95;
}

.intro-text .quote::before{
    content: "—";
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Listen wie Quote */
.intro-text ul{
    margin: 0;
    padding: 0em;
    list-style: none;
}

.intro-text ul li{
    position: relative;
    margin: 0 0 0rem;
    padding: 0.1rem 0 0.1rem 1.55rem;
    opacity: 0.95;
}

.intro-text ul li::before{
    content: "—";
    position: absolute;
    left: 0;
    top: 0rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Verschachtelte Listen etwas leiser + minimal mehr Einzug */
.intro-text ul ul{
    margin-top: 0.35rem;
}

.intro-text ul ul li{
    padding-left: 1.6rem;
    opacity: 0.86;
}

/* Merksatz */
.intro-text .merk{
    margin: 1.3rem 0 1.2rem;
    padding: 1rem 1rem;
    border: 4px solid rgba(0,0,0,1);
    border-radius: 0px;
}

/* =========================================
   Bilder im Fließtext
   ========================================= */
.intro-text img{
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
}

/* Zwei Bilder nebeneinander */
.intro-text .image-pair{
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.intro-text .image-pair img{
    width: 50%;
}

/* PDF-Link */
.pdf-link{
    font-family: var(--font-family-arial);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-black);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin: 1.5rem 0;
}

.pdf-link:hover,
.pdf-link:focus{
    color: var(--color-black);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

.pdf-icon{
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 0.6em;
    background: url('../img/icon.svg') no-repeat center center;
    background-size: contain;
}

/* =========================================
   Einfache Galerie
   ========================================= */
.gallery{
    margin: 2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gallery-item{
    flex: 0 0 calc(33.333% - 0.75rem);
}

.gallery-item img{
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Tabellen/Flex-Zeilen
   ========================================= */
.flex-container.header .flex-item{
    font-weight: 700;
}

.flex-container{
    display: flex;
    border-bottom: 1px solid #000;
    padding: 0.35rem 0;
}

.flex-container:last-child{
    border-bottom: none;
}

.flex-item{
    flex: 1;
}

/* =========================================
   kleines Menü – rechts unten (wie Startseite)
   ========================================= */
.bottom-menu{
    position: absolute;
    right: 2rem;
    bottom: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.0823em;
    font-weight: 700;
}

.bottom-menu a{
    color: var(--color-login-link);
    text-decoration: none;
    margin-left: 0.75rem;
}

.bottom-menu a:first-child{
    margin-left: 0;
}

.bottom-menu span{
    margin-left: 0.75rem;
}

.bottom-menu a:hover,
.bottom-menu a:focus{
    color: var(--color-black);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

/* =========================================
   Close-Button (X oben rechts)
   ========================================= */
.close-button{
    position: absolute;
    top: -12px;
    right: -12px;
    width: 110px;
    height: 110px;
    text-decoration: none;
}

.close-button span{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 9px;
    background: #000;
    transform-origin: center;
}

.close-button span:first-child{
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-button span:last-child{
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Small Phones (bis 480px) */
@media (max-width: 480px){
    .inner{
        padding: 4rem 1.5rem 3rem;
    }

    .title-wrapper{
        top: 0.78em;
        left: 1em;
    }

    .title{
        font-size: clamp(2rem, 6vw, 3rem);
        letter-spacing: 0.1em;
    }

    .intro-text{
        max-width: 100%;
        font-size: 0.95rem;
    }

    .intro-text .image-pair{
        flex-direction: column;
    }

    .intro-text .image-pair img{
        width: 100%;
    }

    .gallery-item{
        flex: 0 0 100%;
    }

    .bottom-menu{
        left: 50%;
        right: auto;
        bottom: 1rem;
        transform: translateX(-50%);
        text-align: center;
        font-size: 0.7rem;
    }

    .bottom-menu a,
    .bottom-menu span{
        margin: 0 0.5rem;
    }

    .close-button{
        top: 0rem;
        right: 0rem;
        width: 40px;
        height: 40px;
    }
}

/* Medium Phones / Phablets (481px – 767px) */
@media (min-width: 381px) and (max-width: 767px){
    .inner{
        padding: 5rem 0rem 3.5rem;
    }

    .title-wrapper{
        top: 0.7em;
        left: 1.2em;
    }

    .title{
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .intro-text{
        max-width: 100%;
        font-size: 0.95rem;
    }

    .gallery-item{
        flex: 0 0 calc(50% - 0.75rem);
    }

    .bottom-menu{
        left: 50%;
        right: auto;
        bottom: 1.2rem;
        transform: translateX(-50%);
        text-align: center;
        font-size: 0.75rem;
    }

    .bottom-menu a,
    .bottom-menu span{
        margin: 0 0.6rem;
    }

    .close-button{
        top: 0.3rem;
        right: 0.3rem;
        width: 48px;
        height: 48px;
    }
}

/* Tablets / iPad (768px – 1024px) */
@media (min-width: 768px) and (max-width: 1024px){
    .page-frame{
        padding: 1.5rem;
    }

    .inner{
        padding: 6rem 1rem 3.5rem;
    }

    .title-wrapper{
        top: 1.2em;
        left: 1.5em;
    }

    .title{
        font-size: clamp(3rem, 5.5vw, 4.5rem);
    }

    .intro-text{
        max-width: 40rem;
        font-size: 1rem;
    }

    .gallery-item{
        flex: 0 0 calc(33.333% - 0.75rem);
    }

    .bottom-menu{
        left: 50%;
        right: auto;
        bottom: 1.5rem;
        transform: translateX(-50%);
        text-align: center;
        font-size: 0.8rem;
    }

    .bottom-menu a,
    .bottom-menu span{
        margin: 0 0.7rem;
    }
}

/* =========================================
   News-Block
   ========================================= */
.news-container{
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.news-container img{
    max-width: 260px;
    height: auto;
    flex-shrink: 0;
    display: block;
    margin: 5px 0 0 0;
}

.news-text{
    flex: 1;
}

.news-text .short-text{
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-text .full-text{
    display: none;
}

button{
    margin-top: 0.75rem;
    background: transparent;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.0823em;
    cursor: pointer;
    border: 0px solid #000;
}

button:hover,
button:focus{
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

@media (max-width: 768px){
    .news-container{
        flex-direction: column;
    }

    .news-container img{
        max-width: 100%;
    }
}
.inline-video{
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}