/*
 * Online-Akademie - Gestaltung der Akademie-Seiten.
 * Stand 20.11.2026, nach dem Entwurf "Telesense Online-Akademie" (Version 2).
 *
 * WARUM EINE EIGENE DATEI: css/style.css und css/bootstrap.css gelten fuer die
 * ganze Website. Diese Regeln gelten nur dort, wo eine Akademie-Seite die Datei
 * einbindet.
 *
 * WARUM UEBERALL "#akademie" DAVORSTEHT: Die Website setzt fuer alle
 * Ueberschriften Grossbuchstaben, Rot und duenne Schrift, fuer Listen eigene
 * Abstaende und fuer Links eigene Farben. Der Vorsatz sorgt dafuer, dass diese
 * Regeln innerhalb der Akademie sicher ueberstimmt werden - und dass nichts von
 * hier nach aussen wirkt, also weder in den Kopf noch in den Fuss der Seite.
 *
 * FARBEN (Telesense): Dunkelblau #15245B, Rot #9A161D, Gruen #72B626,
 * Hellgrau #F6F6F6, Linkblau #000066. Knoepfe tragen das abgedunkelte Gruen
 * #3F7612, weil weisse Schrift auf #72B626 zu wenig Kontrast hat.
 *
 * SCHRIFT: Prompt. Die Website liefert die Schnitte 200 und 300 selbst aus
 * (css/style.css). Die Schnitte 500 und 600 fuer Knoepfe und Ueberschriften
 * liegen im Ordner fonts/ neben dieser Datei.
 */

@font-face {
    font-family: "Prompt";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/prompt-latin-500-normal.woff2") format("woff2"),
         url("fonts/prompt-latin-500-normal.woff") format("woff");
}

@font-face {
    font-family: "Prompt";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/prompt-latin-600-normal.woff2") format("woff2"),
         url("fonts/prompt-latin-600-normal.woff") format("woff");
}

/* ---------------------------------------------------------------- Grundlage */

#akademie,
#akademie *,
#akademie *::before,
#akademie *::after {
    box-sizing: border-box;
}

#akademie {
    font-family: "Prompt", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #3D4152;
    text-align: left;
    background: #ffffff;
}

#akademie h1,
#akademie h2,
#akademie h3,
#akademie p,
#akademie ul,
#akademie li {
    margin: 0;
    padding: 0;
}

#akademie h1,
#akademie h2,
#akademie h3 {
    font-weight: 600;
    color: #15245B;
    text-transform: none;
    letter-spacing: normal;
}

#akademie ul {
    list-style: none;
}

#akademie a {
    color: #000066;
    text-decoration: none;
}

#akademie a:hover {
    color: #000066;
    text-decoration: underline;
}

#akademie a:focus {
    outline: none;
}

#akademie a:focus-visible {
    outline: 3px solid #15245B;
    outline-offset: 3px;
}

#akademie img {
    display: block;
    max-width: 100%;
    border: 0;
}

#akademie svg {
    display: block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Nur fuer Vorleseprogramme sichtbar. */
#akademie .ak-nur-vorlesen {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/*
 * Inhaltsbreite wie der Kopf der Website (Bootstrap 2: 940, 1170 und 724
 * Pixel), damit die Kanten unter Logo und Menue liegen.
 */
#akademie .ak-innen {
    width: 940px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1200px) {
    #akademie .ak-innen { width: 1170px; }
}

@media (min-width: 768px) and (max-width: 979px) {
    #akademie .ak-innen { width: 724px; }
}

@media (max-width: 767px) {
    /* Die Website gibt #wrapper auf dem Telefon 10 Pixel Rand. Die farbigen
       Flaechen der Akademie sollen aber bis an den Bildschirmrand reichen. */
    #akademie {
        margin-left: -10px;
        margin-right: -10px;
    }

    #akademie .ak-innen {
        width: auto;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ------------------------------------------------------------------ Knoepfe */

#akademie .ak-knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 8px 30px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#akademie .ak-knopf:hover {
    text-decoration: none;
}

#akademie .ak-knopf--gruen,
#akademie .ak-knopf--gruen:hover {
    background-color: #3F7612;
    border-color: #3F7612;
    color: #ffffff;
}

#akademie .ak-knopf--gruen:hover {
    background-color: #33600E;
    border-color: #33600E;
}

#akademie .ak-knopf--rahmen {
    background-color: #ffffff;
    border-color: #15245B;
    color: #15245B;
}

#akademie .ak-knopf--rahmen:hover {
    background-color: #15245B;
    color: #ffffff;
}

#akademie .ak-knopf--weiss,
#akademie .ak-knopf--weiss:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #15245B;
}

#akademie .ak-knopf--weiss:hover {
    background-color: #E4E8F4;
    border-color: #E4E8F4;
}

#akademie .ak-knopf--klein {
    min-height: 48px;
    padding: 6px 22px;
}

/* Textverweis mit Pfeil. Der Pfeil laeuft im Text mit und bleibt am letzten
   Wort haengen, auch wenn der Verweis umbricht. */
#akademie .ak-verweis {
    font-size: 16px;
    font-weight: 500;
    color: #000066;
}

#akademie .ak-zusammen {
    white-space: nowrap;
}

#akademie .ak-verweis svg {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 7px;
    vertical-align: -3px;
    stroke-width: 2;
    color: #72B626;
}

/* Kleine Zeile in Grossbuchstaben ueber einer Ueberschrift. */
#akademie .ak-dach {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9A161D;
}

/* Ueberschrift links, Zusatz rechts. */
#akademie .ak-kopfzeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

#akademie .ak-kopfzeile h2 {
    font-size: 36px;
    font-size: clamp(28px, 5vw, 36px);
    line-height: 1.2;
}

/* --------------------------------------------------------------- Einstieg */

#akademie .ak-hero {
    background: #F6F6F6;
    padding-top: 48px;
}

/* Mit Kopffoto (bilder/header.jpg): Der weisse Kasten ragt in das Foto. */
#akademie .ak-hero--bild {
    padding-top: 0;
}

#akademie .ak-hero-foto {
    width: 100%;
    height: 380px;
    object-fit: cover;
    background: #D4D6DC;
}

#akademie .ak-hero--bild .ak-hero-kasten {
    position: relative;
    margin-top: -140px;
}

#akademie .ak-hero-kasten {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px 40px;
    padding: 48px;
    padding: clamp(24px, 5vw, 48px);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(21, 36, 91, 0.12);
}

/* 520 Pixel: so viel braucht die Ueberschrift fuer zwei saubere Zeilen. Ist
   daneben kein Platz mehr fuer die Knoepfe, rutschen sie darunter. */
#akademie .ak-hero-text {
    flex: 1 1 520px;
    min-width: 0;
}

#akademie .ak-hero h1 {
    margin-top: 8px;
    font-size: 46px;
    font-size: clamp(28px, 6vw, 46px);
    line-height: 1.13;
    overflow-wrap: break-word;
}

#akademie .ak-hero-zeile {
    overflow: hidden;
    margin-top: 14px;
    font-size: 19px;
    line-height: 1.4;
}

/*
 * Stichworte mit Punkt dazwischen. Bricht die Zeile um, steht am Zeilenanfang
 * kein Punkt: Jeder Punkt haengt links an seinem Stichwort, und der Punkt des
 * jeweils ersten Stichworts einer Zeile liegt im abgeschnittenen Rand.
 */
#akademie .ak-punktliste {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1.1em;
}

#akademie .ak-punktliste span {
    position: relative;
    padding-left: 1.1em;
    white-space: nowrap;
}

#akademie .ak-punktliste span::before {
    content: "\00B7";
    position: absolute;
    left: 0.42em;
}

#akademie .ak-hero-knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
}

/* ---------------------------------------------------------------- Angebote */

#akademie .ak-angebote {
    background: #F6F6F6;
    padding: 80px 0 96px;
}

#akademie .ak-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#akademie .ak-filter a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 4px 20px;
    border: 2px solid #C9CCD8;
    border-radius: 999px;
    background: #ffffff;
    color: #15245B;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

#akademie .ak-filter a:hover {
    border-color: #15245B;
    color: #15245B;
    text-decoration: none;
}

#akademie .ak-filter a[aria-current="true"],
#akademie .ak-filter a[aria-current="true"]:hover {
    border-color: #15245B;
    background: #15245B;
    color: #ffffff;
}

#akademie .ak-karten {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 40px;
}

@media (max-width: 979px) {
    #akademie .ak-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    #akademie .ak-karten { grid-template-columns: minmax(0, 1fr); }
}

/*
 * Gleich hohe Karten: Das Raster streckt alle Karten einer Reihe auf die
 * Hoehe der hoechsten. Der Fuss wird nach unten gedrueckt, damit Preis und
 * Knopf in einer Reihe auf derselben Linie sitzen.
 */
#akademie .ak-karte {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(21, 36, 91, 0.08);
}

#akademie .ak-karte-foto {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #D4D6DC;
}

#akademie .ak-karte-inhalt {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 28px;
}

#akademie .ak-karte-bereich {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9A161D;
}

#akademie .ak-karte h3 {
    margin-top: 12px;
    font-size: 24px;
    line-height: 1.25;
    overflow-wrap: break-word;
}

#akademie .ak-karte h3 a,
#akademie .ak-karte h3 a:hover {
    color: #15245B;
}

#akademie .ak-karte-untertitel {
    margin-top: 6px;
}

#akademie .ak-karte-angaben {
    margin-top: 18px;
    margin-bottom: 20px;
}

#akademie .ak-karte-angaben li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#akademie .ak-karte-angaben li + li {
    margin-top: 4px;
}

#akademie .ak-karte-angaben svg {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    stroke-width: 1.6;
    color: #15245B;
}

/* Zeilen ohne Zeichen stehen buendig unter dem Text der ersten Zeile. */
#akademie .ak-karte-angaben .ak-ohne-zeichen {
    padding-left: 28px;
}

/* Preis oben, Handlung darunter: Die Beschriftungen der bisherigen Seite sind
   zu lang fuer eine gemeinsame Zeile. Die feste Mindesthoehe haelt Knopf und
   Textverweis benachbarter Karten auf einer Linie. */
#akademie .ak-karte-fuss {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #E3E5EC;
}

#akademie .ak-karte-handlung {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin-top: 14px;
}

#akademie .ak-karte-handlung .ak-knopf {
    width: 100%;
}

#akademie .ak-karte-handlung .ak-verweis {
    font-size: 15px;
}

#akademie .ak-preis {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: #15245B;
    white-space: nowrap;
}

#akademie .ak-preis-zusatz {
    display: block;
    font-size: 13px;
    font-weight: 300;
    color: #5D6170;
}

#akademie .ak-fussnote {
    margin-top: 24px;
    font-size: 14px;
    color: #5D6170;
}

/* Hinweis statt Karten: Stoerung oder kein Training ausgeschrieben. */
#akademie .ak-hinweis {
    margin-top: 40px;
    padding: 28px;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(21, 36, 91, 0.08);
    font-size: 17px;
}

#akademie .ak-hinweis p + p {
    margin-top: 12px;
}

#akademie .ak-hinweis a {
    font-weight: 500;
    text-decoration: underline;
}

/* -------------------------------------------------------------------- Team */

#akademie .ak-team {
    padding: 96px 0;
}

#akademie .ak-personen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 28px;
    margin-top: 40px;
}

/* Foto und Name sind ein Verweis auf die Teamseite der Website. */
#akademie .ak-person {
    display: block;
    padding: 38px 28px 34px;
    border: 1px solid #E3E5EC;
    border-radius: 6px;
    text-align: center;
    transition: border-color 0.15s ease;
}

#akademie .ak-person:hover {
    border-color: #15245B;
}

#akademie .ak-person-foto {
    width: 176px;
    height: 176px;
    margin: 0 auto 18px;
    border: 4px solid #F6F6F6;
    border-radius: 50%;
    object-fit: cover;
}

#akademie .ak-person h3 {
    font-size: 21px;
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* ----------------------------------------------------------------- Inhouse */

#akademie .ak-inhouse {
    background: #15245B;
    color: #DFE3F0;
}

#akademie .ak-inhouse-innen {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

#akademie .ak-inhouse-foto {
    flex: 0 0 47.5%;
    width: 47.5%;
    min-height: 360px;
    object-fit: cover;
    background: #C3C6CF;
}

#akademie .ak-inhouse-text {
    flex: 1 1 320px;
    align-self: center;
    padding: 72px 0;
}

#akademie .ak-inhouse--bild .ak-inhouse-text {
    padding-left: 64px;
}

#akademie .ak-inhouse .ak-dach {
    color: #9FD36A;
}

#akademie .ak-inhouse h2 {
    margin-top: 10px;
    font-size: 34px;
    font-size: clamp(26px, 5vw, 34px);
    line-height: 1.2;
    color: #ffffff;
}

#akademie .ak-inhouse-zeile {
    margin-top: 12px;
    font-size: 17px;
}

#akademie .ak-inhouse .ak-knopf {
    margin-top: 28px;
}

#akademie .ak-inhouse a:focus-visible {
    outline-color: #ffffff;
}

@media (max-width: 979px) {
    #akademie .ak-inhouse-foto {
        flex-basis: 100%;
        width: 100%;
        min-height: 0;
        height: 240px;
    }

    #akademie .ak-inhouse--bild .ak-inhouse-text {
        padding: 48px 0 56px;
    }
}

/* ---------------------------------------------------------------- Vorteile */

#akademie .ak-vorteile {
    padding: 80px 0 0;
}

#akademie .ak-vorteile ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px 32px;
}

#akademie .ak-vorteile li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    color: #15245B;
    white-space: nowrap;
}

#akademie .ak-vorteile svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.7;
    color: #9A161D;
}

@media (max-width: 979px) {
    #akademie .ak-vorteile ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #akademie .ak-vorteile li { white-space: normal; }
}

@media (max-width: 479px) {
    #akademie .ak-vorteile ul { grid-template-columns: minmax(0, 1fr); }
}

/* ----------------------------------------------------------------- Kontakt */

#akademie .ak-kontakt {
    padding: 72px 0 56px;
}

#akademie .ak-kontakt-kasten {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    padding: 44px 48px;
    padding: clamp(28px, 5vw, 44px) clamp(24px, 5vw, 48px);
    border-top: 2px solid #9A161D;
    border-radius: 6px;
    background: #F6F6F6;
}

/* Auf breiten Bildschirmen ragt der Kasten ueber die Inhaltsbreite hinaus,
   der Text darin steht dann buendig unter den Ueberschriften darueber. */
@media (min-width: 1300px) {
    #akademie .ak-kontakt-kasten {
        margin-left: -48px;
        margin-right: -48px;
    }
}

#akademie .ak-kontakt h2 {
    font-size: 28px;
    font-size: clamp(24px, 4.5vw, 28px);
    line-height: 1.25;
}

#akademie .ak-kontakt-knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
}

/* ---------------------------------------------------------------- Telefon */

@media (max-width: 767px) {
    #akademie .ak-hero { padding-top: 24px; }
    #akademie .ak-hero-foto { height: 220px; }
    #akademie .ak-hero--bild .ak-hero-kasten { margin-top: -70px; }
    #akademie .ak-hero-zeile { font-size: 17px; }
    #akademie .ak-angebote { padding: 56px 0 64px; }
    #akademie .ak-team { padding: 64px 0; }
    #akademie .ak-inhouse-text { padding: 56px 0; }
    #akademie .ak-vorteile { padding-top: 56px; }
    #akademie .ak-kontakt { padding: 56px 0 40px; }
    #akademie .ak-karte-inhalt { padding: 24px; }
}

@media (max-width: 479px) {
    /* Knoepfe untereinander und so breit wie der Kasten: leichter zu treffen. */
    #akademie .ak-hero-knoepfe,
    #akademie .ak-kontakt-knoepfe {
        flex: 1 1 100%;
        flex-direction: column;
    }

    #akademie .ak-hero-knoepfe .ak-knopf,
    #akademie .ak-kontakt-knoepfe .ak-knopf {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #akademie .ak-knopf,
    #akademie .ak-filter a,
    #akademie .ak-person {
        transition: none;
    }
}
