/* =========================================================
   Lehrgaenge und Trainings
   Bereinigte CSS-Datei fuer das aktuelle Grav-Twig-Template
========================================================= */

/* Grundeinstellungen */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body.lehrgaenge-page {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    color: #333;
    background: #fff;
    font-family: 'Inter', sans-serif;
}

img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: #d70000; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: 90%;
    max-width: 1200px;
    min-width: 0;
    margin-inline: auto;
}

.section-tag {
    display: inline-block;
    color: #e30613;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* =========================
   Header
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;

    background: transparent;
    transition: transform 0.3s ease;

    border: 0;
    box-shadow: none;
}
header.header-hidden {
    transform: translateY(-100%);
}
.navbar {
    position: relative;

    height: 110px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-menu-button {
    display: none;
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 18px;

    color: inherit;
    text-decoration: none;
}

.logo:hover,
.logo:focus,
.logo:focus-visible {
    color: inherit;
    text-decoration: none;
}

.logo:focus-visible {
    outline: 3px solid #e30613;
    outline-offset: 4px;
    border-radius: 6px;
}

.logo-icon img {
    display: block;

    width: auto;
    height: 120px;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.logo-icon img:hover {
    transform: scale(1.05);
}

.logo-text h3 {
    margin: 0;
    text-transform:uppercase;

    color: #e30613;
    font-size: 18px;
    line-height: 1;
}
.logo-text span {
    color: #ffffff;
    font-size: 16px;
}

/* Desktop-Navigation */

#hauptnavigation ul {
    display: flex;
    align-items: center;
    gap: 40px;

    margin: 0;
    padding: 0;

    list-style: none;
}

#hauptnavigation a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;

    transition: color 0.3s ease;
}

#hauptnavigation a:hover,
#hauptnavigation a:focus-visible {
    color: #d70000;
    text-decoration: none;
}

#hauptnavigation a:focus-visible {
    outline: 3px solid #e30613;
    outline-offset: 4px;
    border-radius: 3px;
}

/* =========================
   Mobile Navigation
========================= */

@media (max-width: 1000px) {
    .navbar {
        height: auto;
        min-height: 90px;

        flex-direction: row;

        padding-top: 15px;
        padding-bottom: 15px;
    }

    .navbar .logo {
        min-width: 0;
        gap: 10px;
    }

    .navbar .logo-icon img {
        width: 65px;
        height: auto;
    }

    .navbar .logo-text h3 {
        margin: 0;
        font-size: 12px;
    }

    .navbar .logo-text span {
        font-size: 12px;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;

        margin-left: auto;
        padding: 12px 16px;

        border: 0;
        border-radius: 10px;

        background: #e30613;
        color: #ffffff;

        font: inherit;
        font-weight: 600;

        cursor: pointer;
    }

    .mobile-menu-button:focus-visible {
        outline: 3px solid #222222;
        outline-offset: 3px;
    }

    .navbar #hauptnavigation {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 1000;

        display: none;

        width: min(280px, 100%);
        padding: 12px;

        background: #ffffff;
        border-radius: 0 0 16px 16px;

        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .navbar #hauptnavigation.is-open {
        display: block;
    }

    .navbar #hauptnavigation ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        width: 100%;
        margin: 0;
        padding: 0;

        list-style: none;
    }

    .navbar #hauptnavigation a {
        display: block;

        width: 100%;
        padding: 14px 16px;

        border-radius: 8px;

        color: #222222;
        font-weight: 500;
        text-decoration: none;
        text-transform: uppercase;

        overflow-wrap: anywhere;
    }

    .navbar #hauptnavigation a:hover,
    .navbar #hauptnavigation a:focus-visible {
        background: #fff0f1;
        color: #e30613;
    }
}
/* Hero */
.lehrgaenge-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 750px;
    padding: 130px 0 110px;
    overflow: hidden;
    background-image: var(--lehrgaenge-hero-bild, url("../jpg/lergaenge/Hero.jpg"));
    background-position: center 58%;
    background-size: cover;
}
.lehrgaenge-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(10, 16, 24, 0.88) 0%,
        rgba(10, 16, 24, 0.78) 20%,
        rgba(10, 16, 24, 0.55) 45%,
        rgba(10, 16, 24, 0.30) 78%,
        rgba(10, 16, 24, 0.18) 100%
    );
    pointer-events: none;
}
.lehrgaenge-hero-content { position: relative; z-index: 1; width: 100%; max-width: 760px; }
.lehrgaenge-hero h1 {
    margin: 0 0 25px;
    color: #f6f6f6;
    font-size: clamp(35px, 6vw, 56px);
    line-height: 1.08;
}
.lehrgaenge-hero p { max-width: 720px; margin-bottom: 20px; color: #ffffff; font-size: 22px; line-height: 1.7; }
.lehrgaenge-hero-buttons { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 32px; }
.lehrgaenge-hero-buttons a,
.termin-karte > a,
.lehrgang-karte > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 10px;
    color: #fff;
    background: #e30613;
    font-weight: 700;
    text-align: center;
}
.lehrgaenge-hero-buttons a:hover,
.termin-karte > a:hover,
.lehrgang-karte > a:hover { background: #bd0010; text-decoration: none; }
.lehrgaenge-hero-buttons a:nth-child(2) { color: #222; background: #fff; box-shadow: 0 8px 25px rgba(0,0,0,.1); }

/* Allgemeine Inhaltsbereiche */
.lehrgaenge-bereich { padding: 80px 0; }
.lehrgaenge-bereich h1,
.lehrgaenge-bereich h2,
.zweck-bereich h2,
.kontakt-bereich h2 {
    margin: 0 0 25px;
    color: #222;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.2;
}
.lehrgaenge-bereich h3,
.zweck-bereich h3 { margin: 25px 0 15px; color: #d70000; font-size: 24px; line-height: 1.3; }
.lehrgaenge-bereich p,
.zweck-bereich p,
.kontakt-bereich p { margin: 0 0 20px; color: #555; font-size: 18px; line-height: 1.8; }
.lehrgaenge-bereich ul,
.lehrgaenge-bereich ol { margin: 20px 0; padding-left: 26px; }
.lehrgaenge-bereich li { margin-bottom: 12px; color: #555; font-size: 18px; line-height: 1.7; }

/* Einleitung und Bilder */
.lehrgaenge-bildtext {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: stretch;
}
.lehrgaenge-bilder {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 1002px;
    gap: 36px;
}
.lehrgaenge-bild { width: 88%; overflow: hidden; border-radius: 20px; background: #f1f3f5; box-shadow: 0 15px 35px rgba(0,0,0,.12); }
.lehrgaenge-bild-1, .lehrgaenge-bild-3 { align-self: flex-start; }
.lehrgaenge-bild-2 { align-self: flex-end; }
.lehrgaenge-bild img { width: 100%; height: 310px; object-fit: cover; }

/* Naechster Termin */
.termin-bereich { padding: 55px 0; background: #f5f7fa; }
.termin-karte {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 36px 40px;
    background: #fff;
    border-left: 6px solid #e30613;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}
.termin-symbol { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff0f1; font-size: 32px; }
.termin-inhalt h1, .termin-inhalt h2 { margin-bottom: 12px; color: #222; font-size: clamp(25px,3vw,36px); line-height: 1.2; }
.termin-inhalt p { margin-bottom: 10px; color: #555; font-size: 17px; line-height: 1.7; }

/* Lehrgangskarten */
.lehrgaenge-uebersicht { background: #fff; }
.bereich-header { max-width: 850px; margin: 0 auto 45px; text-align: center; }
.lehrgaenge-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 35px; }
.lehrgang-karte {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 42px 38px;
    background: #fff;
    border-top: 5px solid #e30613;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0,0,0,.09);
}
.lehrgang-karte-inhalt { flex: 1; min-width: 0; }
.lehrgang-karte h1, .lehrgang-karte h2 { margin-bottom: 22px; color: #222; font-size: 30px; line-height: 1.2; }
.lehrgang-karte h3 { margin: 26px 0 12px; color: #d70000; font-size: 22px; }
.lehrgang-karte p, .lehrgang-karte li { color: #555; font-size: 17px; line-height: 1.7; }
.lehrgang-karte ul, .lehrgang-karte ol { margin: 16px 0 22px; padding-left: 24px; }
.lehrgang-karte > a { align-self: flex-start; margin-top: 20px; }

/* Ablauf */
.ablauf-bereich { background: #f5f7fa; }
.ablauf-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.ablauf-schritt { padding: 32px; background: #fff; border-radius: 18px; box-shadow: 0 8px 28px rgba(0,0,0,.07); }
.ablauf-schritt > span { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 50%; color: #fff; background: #e30613; font-size: 21px; font-weight: 800; }
.ablauf-schritt h3 { margin: 0 0 14px; color: #222; font-size: 22px; }
.ablauf-schritt p { margin: 0; font-size: 17px; line-height: 1.7; }

/* Zweck der Einnahmen */
.zweck-bereich { padding: 80px 0; background: #fff4f4; }
.zweck-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 60px; align-items: center; }
.zweck-grid > img { width: 100%; height: 430px; object-fit: cover; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,.12); }

/* Kontakt und L-Formular */
.kontakt-bereich { padding: 80px 0; background: #f5f7fa; }
.kontakt-grid {
    display: grid;
    grid-template-columns: minmax(0,.72fr) minmax(580px,1.28fr);
    gap: 50px;
    align-items: start;
}
.kontakt-karte {
    min-width: 0;
    padding: 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}
.form-header { margin-bottom: 18px; }
.form-header span { color: #e30613; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.kontakt-bereich .form-header h3 { margin: 4px 0 0; color: #222; font-size: 1.35rem; }

.kontakt-l-form {
    display: grid;
    grid-template-columns: minmax(220px,.9fr) minmax(280px,1.1fr);
    grid-template-areas:
        "message fields"
        "button button";
    gap: 16px;
    align-items: stretch;
}
.formular-links { grid-area: message; display: flex; flex-direction: column; min-width: 0; }
.formular-rechts { grid-area: fields; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.form-gruppe { display: flex; flex-direction: column; min-width: 0; }
.formular-links label, .form-gruppe label { margin-bottom: 5px; color: #333; font-size: .82rem; font-weight: 600; }
.formular-links textarea,
.form-gruppe input,
.form-gruppe select {
    width: 100%;
    border: 1px solid #d8dde4;
    border-radius: 11px;
    background: #fff;
    color: #222;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-gruppe input, .form-gruppe select { height: 44px; padding: 0 13px; }
.formular-links textarea { flex: 1; min-height: 236px; padding: 12px 13px; resize: vertical; }
.formular-links textarea:focus,
.form-gruppe input:focus,
.form-gruppe select:focus { border-color: #e30613; box-shadow: 0 0 0 3px rgba(227,6,19,.1); }
.formular-button {
    grid-area: button;
    width: 100%;
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg,#e30613,#b9000d);
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.formular-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(195,0,15,.2); }
.formular-button:focus-visible { outline: 3px solid rgba(227,6,19,.3); outline-offset: 3px; }
/* Formularmeldungen und unsichtbarer Spam-Schutz */
.formular-meldung {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .92rem;
    line-height: 1.5;
}
.formular-meldung-erfolg {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
}
.formular-meldung-fehler {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}
.formular-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Footer */
.site-footer { padding: 28px 0; color: #fff; background: #111827; }
.footer-inhalt { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-copyright, .footer-ersteller { color: #d1d5db; font-size: 14px; line-height: 1.5; }
.footer-links, .footer-rechtliches { display: flex; align-items: center; gap: 18px; }
.footer-rechtliches { gap: 12px; }
.site-footer a { color: #fff; font-size: 14px; font-weight: 600; }
.site-footer a:hover, .site-footer a:focus-visible { color: #ff626c; text-decoration: none; }
.footer-trenner, .footer-haupttrenner { color: #6b7280; }

/* Scroll-Animation */
.reveal-item { opacity: 0; transform: translateY(32px); }
.reveal-item.is-visible { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }

/* Tablet */
@media (max-width: 1000px) {
    .container { width: 100%; padding-inline: 20px; }
    .navbar { min-height: 90px; height: auto; padding-block: 15px; }
    .logo { gap: 10px; }
    .logo-icon img { width: 65px; height: auto; }
    .logo-text h2 { font-size: 30px; }
    .logo-text span { font-size: 14px; }
    .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; padding: 12px 16px; border: 0; border-radius: 10px; color: #fff; background: #e30613; font-weight: 700; cursor: pointer; }
    #hauptnavigation { position: absolute; top: 100%; right: 0; display: none; width: min(280px,100%); padding: 12px; background: #fff; border-radius: 0 0 16px 16px; box-shadow: 0 15px 35px rgba(0,0,0,.15); }
    #hauptnavigation.is-open { display: block; }
    #hauptnavigation ul { flex-direction: column; align-items: stretch; gap: 4px; }
    #hauptnavigation a { padding: 14px 16px; border-radius: 8px; }

    .lehrgaenge-hero { min-height: auto; padding: 115px 0 65px; background-position: 60% center; }
    .lehrgaenge-hero-overlay { background: linear-gradient(
        120deg,
        rgba(10, 16, 24, 0.88) 0%,
        rgba(10, 16, 24, 0.78) 30%,
        rgba(10, 16, 24, 0.55) 55%,
        rgba(10, 16, 24, 0.30) 88%,
        rgba(10, 16, 24, 0.18) 100%
    ); }
    .lehrgaenge-hero p { font-size: 18px; line-height: 1.6; }

    .lehrgaenge-bereich, .zweck-bereich, .kontakt-bereich { padding: 55px 0; }
    .lehrgaenge-bildtext, .zweck-grid, .kontakt-grid { grid-template-columns: minmax(0,1fr); gap: 35px; }
    .lehrgaenge-bilder { min-height: auto; gap: 30px; }
    .lehrgaenge-bild { width: 88%; }
    .zweck-grid > img { height: 330px; }
    .termin-karte { grid-template-columns: auto minmax(0,1fr); }
    .termin-karte > a { grid-column: 1 / -1; justify-self: start; }
    .lehrgaenge-grid, .ablauf-grid { grid-template-columns: 1fr; }
    .kontakt-karte { width: 100%; }
}

/* Smartphone */
@media (max-width: 600px) {
    .container { padding-inline: 16px; }
    .mobile-menu-button { padding: 10px 12px; font-size: 14px; }
    #hauptnavigation { right: 0; width: min(280px,100%); }

    .lehrgaenge-hero { min-height: 620px; padding: 118px 0 58px; align-items: flex-start; background-position: 62% center; }
    .lehrgaenge-hero-overlay { background: linear-gradient(
        120deg,
        rgba(10, 16, 24, 0.88) 0%,
        rgba(10, 16, 24, 0.78) 20%,
        rgba(10, 16, 24, 0.55) 45%,
        rgba(10, 16, 24, 0.30) 78%,
        rgba(10, 16, 24, 0.18) 100%
    ); }
    .lehrgaenge-hero h1 { margin-bottom: 18px; font-size: clamp(28px,8.8vw,39px); line-height: 1.12; }
    .lehrgaenge-hero p { font-size: 16px; line-height: 1.55; }
    .lehrgaenge-hero-buttons { flex-direction: column; width: 100%; margin-top: 22px; gap: 10px; }
    .lehrgaenge-hero-buttons a { width: 100%; }

    .lehrgaenge-bereich, .zweck-bereich, .kontakt-bereich { padding: 45px 0; }
    .lehrgaenge-bereich p, .lehrgaenge-bereich li, .zweck-bereich p, .kontakt-bereich p { font-size: 17px; }

    .lehrgaenge-bilder { position: relative; display: block; width: 100%; height: 300px; }
    .lehrgaenge-bild { position: absolute; margin: 0; border: 4px solid #fff; border-radius: 18px; }
    .lehrgaenge-bild-1 { top: 0; left: 0; z-index: 1; width: 68%; height: 218px; }
    .lehrgaenge-bild-2 { right: 0; bottom: 0; z-index: 2; width: 52%; height: 185px; }
    .lehrgaenge-bild-3 { left: 0; bottom: 0; z-index: 3; width: 44%; height: 120px; }
    .lehrgaenge-bild img { width: 100%; height: 100%; object-fit: cover; }

    .termin-bereich { padding: 35px 0; }
    .termin-karte { grid-template-columns: 1fr; padding: 28px 22px; border-left-width: 4px; }
    .termin-karte > a { width: 100%; }
    .lehrgang-karte { padding: 34px 24px; }
    .ablauf-schritt { padding: 28px 24px; }
    .zweck-grid > img { height: 240px; border-radius: 15px; }

    .kontakt-karte { padding: 22px 18px; }
    .form-header { margin-bottom: 16px; }
    .kontakt-l-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .formular-rechts { order: 1; }
    .formular-links { order: 2; }
    .formular-button { order: 3; }
    .formular-links textarea { min-height: 140px; flex: none; }

    .footer-inhalt, .footer-links { flex-direction: column; justify-content: center; gap: 12px; text-align: center; }
    .footer-haupttrenner { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal-item { opacity: 1; transform: none; }
}


/* Header und Navigation exakt wie auf der Startseite */
header {
    background: transparent;
}

#hauptnavigation a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

@media (max-width: 1000px) {
    header {
        background: transparent;
    }

    .navbar .logo-text h2 {
        margin: 0;
        font-family: 'Inter', sans-serif;
        font-size: 30px;
        font-weight: 700;
        line-height: 1;
    }

    .navbar .logo-text span {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 400;
    }

    .mobile-menu-button {
        font-family: 'Inter', sans-serif;
        font-weight: 700;
    }

    .navbar #hauptnavigation a {
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 500;
    }
}


/* Navigationsschrift exakt wie auf der Startseite */
header .navbar #hauptnavigation ul li a {
    font-family: 'Inter', sans-serif;
    font-weight: 500 !important;
}


/* =========================================================
   Einheitliche Navigation nach dem Standard der Galerie-Seite
========================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

.navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 110px;
}

.mobile-menu-button {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
    color: inherit;
    text-decoration: none;
}

.logo:hover,
.logo:focus,
.logo:focus-visible {
    color: inherit;
    text-decoration: none;
}

.logo-icon img {
    display: block;
    width: auto;
    height: 120px;
    object-fit: contain;
}

.logo-text h2 {
    margin: 0;
    color: #e30613;
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    line-height: 1;
}

.logo-text span {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
}

#hauptnavigation ul {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

header .navbar #hauptnavigation ul li a {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500 !important;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

header .navbar #hauptnavigation ul li a:hover,
header .navbar #hauptnavigation ul li a:focus-visible {
    color: #d70000;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .navbar {
        height: auto;
        min-height: 90px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .navbar .logo {
        min-width: 0;
        gap: 10px;
    }

    .navbar .logo-icon img {
        width: 65px;
        max-width: none;
        height: auto;
    }

    .navbar .logo-text h3 {
        margin: 0;
        font-size: 12px;
    }

    .navbar .logo-text span {
        font-size: 12px;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-left: auto;
        padding: 12px 16px;
        border: 0;
        border-radius: 10px;
        background: #e30613;
        color: #ffffff;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .navbar #hauptnavigation {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 1000;
        display: none;
        width: min(280px, 100%);
        padding: 12px;
        background: #ffffff;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .navbar #hauptnavigation.is-open {
        display: block;
    }

    .navbar #hauptnavigation ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    header .navbar #hauptnavigation ul li a {
        display: block;
        width: 100%;
        padding: 14px 16px;
        border-radius: 8px;
        color: #222222;
        font-size: 16px;
        font-weight: 500 !important;
        overflow-wrap: anywhere;
    }

    header .navbar #hauptnavigation ul li a:hover,
    header .navbar #hauptnavigation ul li a:focus-visible {
        background: #fff0f1;
        color: #e30613;
    }
}


/* =========================================================
   Einheitlicher Hero-Bereich nach dem Standard der Galerie
========================================================= */
.lehrgaenge-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    width: 100%;
    min-height: 820px;
    height: 850px;
    max-height: 850px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lehrgaenge-hero .lehrgaenge-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 70px;
    padding-bottom: 70px;
}

@media (max-width: 650px) {
    html,
    body,
    body main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .lehrgaenge-hero {
        width: 100vw;
        min-height: 620px;
        height: 620px;
        max-height: 620px;
        margin: 0;
        margin-left: calc(50% - 50vw);
        padding: 0;
        background-size: cover;
        background-position: center;
    }

    .lehrgaenge-hero .lehrgaenge-hero-content {
        width: 100%;
        max-width: 100%;
        padding-top: 55px;
        padding-bottom: 55px;
    }
}

/* =========================================================
   MODERNES GRAV-KONTAKTFORMULAR
   ========================================================= */

.kontakt-karte {
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    background: #ffffff;
    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.08),
        0 3px 12px rgba(15, 23, 42, 0.04);
}


/* Kopfbereich */

.kontakt-karte .form-header {
    position: relative;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8ebf0;
}

.kontakt-karte .form-header::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 62px;
    height: 3px;
    border-radius: 20px;
    background: #e30613;
    content: "";
}

.kontakt-karte .form-header span {
    display: block;
    margin-bottom: 7px;
    color: #e30613;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.kontakt-karte .form-header h3 {
    margin: 0;
    color: #18181b;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.2;
}


/* =========================================================
   FORMULAR-LAYOUT
   ========================================================= */

.kontakt-karte form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0;
}

.kontakt-karte form > div,
.kontakt-karte .form-field,
.kontakt-karte .form-group,
.kontakt-karte .form-data {
    min-width: 0;
    margin: 0;
}


/* Nachrichtenfeld über volle Breite */

.kontakt-karte form > div:has(textarea),
.kontakt-karte .form-field:has(textarea),
.kontakt-karte .form-group:has(textarea) {
    grid-column: 1 / -1;
}


/* =========================================================
   BESCHRIFTUNGEN
   ========================================================= */

.kontakt-karte form label {
    display: block;
    margin: 0 0 9px;
    color: #27272a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}


/* =========================================================
   EINGABEFELDER
   ========================================================= */

.kontakt-karte form input[type="text"],
.kontakt-karte form input[type="email"],
.kontakt-karte form input[type="tel"],
.kontakt-karte form input[type="number"],
.kontakt-karte form select,
.kontakt-karte form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #dfe3e8;
    border-radius: 13px;
    outline: none;
    background: #f7f8fa;
    color: #18181b;
    font: inherit;
    font-size: 16px;
    line-height: 1.45;
    box-sizing: border-box;
    appearance: none;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.kontakt-karte form input[type="text"],
.kontakt-karte form input[type="email"],
.kontakt-karte form input[type="tel"],
.kontakt-karte form input[type="number"],
.kontakt-karte form select {
    min-height: 54px;
}

.kontakt-karte form textarea {
    min-height: 175px;
    resize: vertical;
}


/* Select-Pfeil */

.kontakt-karte form select {
    padding-right: 48px;
    background-image:
        linear-gradient(45deg, transparent 50%, #515866 50%),
        linear-gradient(135deg, #515866 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 23px,
        calc(100% - 14px) 23px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
}


/* Platzhalter */

.kontakt-karte form input::placeholder,
.kontakt-karte form textarea::placeholder {
    color: #9298a2;
    opacity: 1;
}


/* Hover */

.kontakt-karte form input:hover,
.kontakt-karte form select:hover,
.kontakt-karte form textarea:hover {
    border-color: #bac1ca;
    background-color: #ffffff;
}


/* Fokus */

.kontakt-karte form input:focus,
.kontakt-karte form select:focus,
.kontakt-karte form textarea:focus {
    border-color: #e30613;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1);
}


/* =========================================================
   ROTER ABSENDE-BUTTON
   ========================================================= */

.kontakt-karte form .buttons,
.kontakt-karte form .button-wrapper,
.kontakt-karte form > div:has(button),
.kontakt-karte form > div:has(input[type="submit"]) {
    grid-column: 1 / -1;
    margin: 4px 0 0;
}

.kontakt-karte form button[type="submit"],
.kontakt-karte form input[type="submit"],
.kontakt-karte form .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 15px 28px;
    border: 0;
    border-radius: 13px;

    /* Roter Button */
    background: linear-gradient(135deg, #f10b1a 0%, #d90412 100%);
    color: #ffffff;

    font: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    appearance: none;

    box-shadow:
        0 12px 24px rgba(227, 6, 19, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    transition:
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.kontakt-karte form button[type="submit"]:hover,
.kontakt-karte form input[type="submit"]:hover,
.kontakt-karte form .button:hover {
    background: linear-gradient(135deg, #d90412 0%, #b8000c 100%);
    box-shadow:
        0 16px 30px rgba(227, 6, 19, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.kontakt-karte form button[type="submit"]:active,
.kontakt-karte form input[type="submit"]:active,
.kontakt-karte form .button:active {
    box-shadow: 0 6px 14px rgba(227, 6, 19, 0.22);
    transform: translateY(0);
}

.kontakt-karte form button[type="submit"]:focus-visible,
.kontakt-karte form input[type="submit"]:focus-visible,
.kontakt-karte form .button:focus-visible {
    outline: 3px solid rgba(227, 6, 19, 0.25);
    outline-offset: 4px;
}

.kontakt-karte form button[type="submit"]:disabled,
.kontakt-karte form input[type="submit"]:disabled {
    background: #9da3ad;
    color: #ffffff;
    cursor: wait;
    box-shadow: none;
    transform: none;
    opacity: 0.8;
}

/* =========================================================
   ERFOLGS- UND FEHLERMELDUNGEN
   ========================================================= */

.kontakt-karte .notices,
.kontakt-karte .alert,
.kontakt-karte .notice {
    margin: 0 0 28px;
}

.kontakt-karte .notices p,
.kontakt-karte .alert,
.kontakt-karte .notice {
    margin: 0;
    padding: 15px 18px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.kontakt-karte .notices.green p,
.kontakt-karte .alert-success {
    border: 1px solid #a4d9b6;
    background: #eefaf2;
    color: #176b35;
}

.kontakt-karte .notices.red p,
.kontakt-karte .alert-error,
.kontakt-karte .alert-danger {
    border: 1px solid #f0b0b5;
    background: #fff1f2;
    color: #a20c18;
}


/* Validierungsfehler */

.kontakt-karte form .form-errors,
.kontakt-karte form .error,
.kontakt-karte form .help-block {
    display: block;
    margin-top: 7px;
    color: #bc101c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}


/* Versteckte Felder */

.kontakt-karte form input[type="hidden"],
.kontakt-karte form .form-field.hidden,
.kontakt-karte form .form-group.hidden {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
    .kontakt-karte {
        padding: 32px;
        border-radius: 22px;
    }

    .kontakt-karte form {
        grid-template-columns: 1fr;
    }

    .kontakt-karte form > div,
    .kontakt-karte .form-field,
    .kontakt-karte .form-group,
    .kontakt-karte form > div:has(textarea),
    .kontakt-karte form > div:has(button),
    .kontakt-karte form > div:has(input[type="submit"]) {
        grid-column: 1;
    }
}


/* =========================================================
   HANDY
   ========================================================= */

@media (max-width: 600px) {
    .kontakt-karte {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .kontakt-karte .form-header {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .kontakt-karte form {
        gap: 19px;
    }

    .kontakt-karte form input[type="text"],
    .kontakt-karte form input[type="email"],
    .kontakt-karte form input[type="tel"],
    .kontakt-karte form input[type="number"],
    .kontakt-karte form select {
        min-height: 52px;
    }

    .kontakt-karte form button[type="submit"],
    .kontakt-karte form input[type="submit"],
    .kontakt-karte form .button {
        min-height: 54px;
    }
}