/* ==========================
   FGN static site – light UI
   ========================== */

/* Self-hosted Inter (latin + latin-ext subsets) */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/inter-latin-ext-500-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/inter-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --primary: #b91c1c;
    --primary-dark: #991b1b;
    --secondary: #dc2626;
    --accent: #f59e0b;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.12);
    --radius: 16px;
}

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

[hidden] { display: none !important; }

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
}

.wrap {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}
.skip-link:focus { left: 1rem; top: 1rem; background: var(--primary); color: #fff; padding: .5rem 1rem; border-radius: 4px; z-index: 1000; }

/* Header / Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 1rem;
}
.logo { height: 40px; width: auto; }
.logo-link { display: inline-flex; align-items: center; }
.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    align-items: center;
}
.nav-list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--primary); }
.nav-list a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.lang-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 1rem;
}

/* Hero */
.hero {
    padding: 4rem 0 3rem;
    background-color: #f8fafc;
    background-image: url('assets/img/hero-bg.png');
    background-image: image-set(url('assets/img/hero-bg.webp') type('image/webp'), url('assets/img/hero-bg.png') type('image/png'));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border);
}
.hero .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 700;
}
.hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    line-height: 1.1;
    margin: .5rem 0 1rem;
    color: var(--primary-dark);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero h1 { color: transparent; }
}
.lede { color: var(--text-muted); font-size: 1.1rem; max-width: 52ch; }
.hero-sub { color: var(--text-muted); font-size: .95rem; margin-top: .5rem; }
.actions { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }
.btn-ghost:hover { background: var(--primary); color: #fff; }

.hero-copy {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.panel { fill: none; stroke: var(--border); stroke-width: 2; }
.screw { fill: var(--text-muted); }
.rail { stroke: var(--border); stroke-width: 1.5; }
.port { fill: var(--border); }
.port.on { fill: var(--secondary); }
.cable { fill: none; stroke: var(--accent); stroke-width: 2.5; }

/* Sections */
.section { padding: 2.5rem 0; }
.section h2 { font-size: 1.75rem; margin: .25rem 0 1.25rem; color: var(--primary-dark); }
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    container-type: inline-size;
    container-name: cards;
}
@container cards (max-width: 360px) {
    .card { padding: 1rem; }
    .card h3 { font-size: 1rem; }
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #fecaca; }

.card h3 { margin: .25rem 0 .5rem; color: var(--primary-dark); }
.card-track-icon {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    width: 48px;
    height: 48px;
    opacity: .22;
    pointer-events: none;
    user-select: none;
}
.card-link { display: inline-block; margin-top: .75rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.card-link:hover { text-decoration: underline; }
.kurs-card { cursor: pointer; }
.kurs-card:hover .card-link { text-decoration: underline; }
.kurs-card:has(.card-link:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.card-link:focus-visible { outline: none; }
.kurs-module { color: var(--text-muted); font-size: .9rem; margin: .25rem 0 .75rem; font-style: italic; }
.kursinhalte { margin: .5rem 0 0 1.25rem; }
.kursinhalte li { padding-left: .5rem; border-left: 3px solid var(--border); margin-bottom: .3rem; }
.kurs-detail ul:not(.modul-liste):not(.modul-kurse):not(.inhalte-list),
.modul-detail ul:not(.modul-liste):not(.modul-kurse):not(.inhalte-list) {
    margin: .5rem 0 0 1.5rem;
    display: grid;
    gap: .4rem;
}
.kurs-detail ul:not(.modul-liste):not(.modul-kurse):not(.inhalte-list) li,
.modul-detail ul:not(.modul-liste):not(.modul-kurse):not(.inhalte-list) li {
    padding-left: .5rem;
    border-left: 3px solid var(--border);
}

/* Content / prose */
.content { padding: 2rem 0; }
.prose { max-width: 72ch; }
.prose h1, .prose h2, .prose h3 { color: var(--primary-dark); margin: 1.5rem 0 .5rem; text-wrap: balance; }
.prose h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h2 { font-size: 1.35rem; }
.prose h3 { font-size: 1.15rem; }
.prose p { margin: .75rem 0; text-wrap: pretty; }
.prose ul, .prose ol { margin: .75rem 0 0 1.5rem; }
.prose blockquote { border-left: 4px solid var(--primary); padding: .5rem 1rem; margin: 1rem 0; background: #f1f5f9; border-radius: 4px; }
.prose .placeholder { color: #b91c1c; font-weight: 600; }

/* Tables */
.termin-table, .preis-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    margin: 1rem 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.termin-table { table-layout: fixed; }
.termin-table col.col-kurs { width: 37%; }
.termin-table col.col-datum { width: 21%; }
.termin-table col.col-ort { width: 17%; }
.termin-table col.col-status { width: 13%; }
.termin-table col.col-anfrage { width: 12%; }
.termin-table caption, .preis-table caption { caption-side: top; text-align: left; font-weight: 600; padding: .5rem 0; color: var(--primary-dark); }
.termin-table th, .termin-table td, .preis-table th, .preis-table td {
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    overflow-wrap: break-word;
}
.termin-table thead th, .preis-table thead th { background: #f1f5f9; color: var(--primary-dark); font-weight: 600; }
.termin-table tbody tr:nth-child(even) { background: #fafbfc; }
.termin-table tbody tr:hover { background: #f1f5f9; }
.preis-table th[scope="row"] { white-space: nowrap; }

.termin-kurs-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.termin-kurs-link:hover .termin-kurs-titel { text-decoration: underline; }
.termin-kurs-titel { display: block; font-weight: 600; color: var(--primary-dark); }
.termin-kurs-meta { display: block; margin-top: .2rem; color: var(--text-muted); font-size: .82rem; font-weight: 400; }
.termin-kurs-preis { display: block; margin-top: .25rem; color: var(--text); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.termin-anfrage {
    display: inline-block;
    padding: .3rem .55rem;
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}
.termin-anfrage:hover { background: var(--primary); color: #fff; }
.termin-anfrage:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.termin-table .badge { font-size: .7rem; }

.table-scroll { overflow-x: auto; margin: 1rem 0; }
.table-scroll:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius); }
.table-scroll .preis-table { margin: 0; min-width: 720px; }
.preis-hinweis { color: var(--text-muted); }
.preise-section { margin-top: 2rem; }
.individuell-section { margin-top: 2rem; }
.individuell-section h2 { margin-top: 1.5rem; }
.preis-legende { color: var(--text-muted); font-size: .85rem; margin-top: .5rem; }
.individuell-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: .75rem;
    max-width: 60ch;
}
.individuell-card .preis { font-size: 1.15rem; margin: .25rem 0 .75rem; }

/* Badges */
.badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    background: #e2e8f0;
    color: var(--text);
}
.badge-geplant { background: #fee2e2; color: #b91c1c; }
.badge-garantietermin { background: #dcfce7; color: #166534; }
.badge-ausgebucht { background: #fee2e2; color: #991b1b; }
.badge-abgesagt { background: #f3f4f6; color: #6b7280; }

/* Filter bar */
.filter-bar { display: flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; margin: 1rem 0; }
.filter-bar label { font-size: .9rem; font-weight: 600; color: var(--text-muted); }
.filter-bar select { max-width: 100%; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font: inherit; }
.filter-bar select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Pager */
.termin-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-top: 1rem;
}
.termin-pager--top { margin-top: 0; margin-bottom: 1rem; }
.pager-status { color: var(--text-muted); font-size: .9rem; }
.pager-controls, .pager-pages { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.pager-btn {
    min-width: 2.5rem;
    padding: .4rem .7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.pager-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager-btn[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-btn[aria-current="page"]:hover { color: #fff; border-color: var(--primary); }
.pager-btn:disabled { opacity: .45; cursor: not-allowed; }
.pager-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Fakten */
.fakten dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
.fakten dt { font-weight: 600; color: var(--primary-dark); }
.fakten dd { color: var(--text); }

/* Kurs-/Modul-Detailseiten */
.kurs-detail, .modul-detail { padding: 2rem 0; }
.kurs-detail h1, .modul-detail h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--text);
    margin-bottom: .25rem;
}
.kurs-detail .kurs-meta { color: var(--text-muted); font-size: .9rem; margin: .25rem 0 1.5rem; }

.kurs-detail section, .modul-detail section { margin-bottom: 2.5rem; }
.kurs-detail section h2, .modul-detail section h2 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border);
}

.fakten {
    margin-bottom: 2rem;
}

.modul-liste, .modul-kurse {
    list-style: none;
    display: grid;
    gap: .75rem;
}
.modul-liste li, .modul-kurse li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0;
    transition: border-color .15s ease;
}
.modul-liste li:hover, .modul-kurse li:hover { border-color: #fecaca; }
.modul-liste li a, .modul-kurse li a { color: var(--primary); font-weight: 600; }

.modul-card {
    display: block;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    transition: background .15s ease;
}
.modul-card:hover { background: #f8fafc; }
.modul-card h3 { margin: 0; color: var(--primary-dark); font-size: 1rem; }
.modul-abstract { color: var(--text-muted); font-size: .9rem; margin: .4rem 0 0; }

/* Accordion (Schulungsgruppen) */
details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}
summary {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background .15s ease;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "▸";
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(90deg); }
summary:hover { background: #f8fafc; }
details .cards { padding: 0 1rem 1rem; }

/* News section */
.news-section {
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: sticky;
    top: 80px;
}
.news-section h2 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border);
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}
.news-item {
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}
.news-item time {
    display: block;
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: .25rem;
}
.news-item p { margin: 0; font-size: .95rem; }

/* Schulungen layout */
.schulungen-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}
.schulungen-main { min-width: 0; }

/* News modal */
.news-trigger {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    width: 100%;
}
.news-trigger time { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: .25rem; }
.news-trigger p { margin: 0; font-size: .95rem; text-align: left; }
.news-trigger:hover p { text-decoration: underline; color: var(--primary); }

.news-modal {
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    margin: auto;
    inset: 0;
}
.news-modal::backdrop { background: rgba(0,0,0,0.5); }
.news-modal-content { position: relative; }
.news-modal-close {
    position: absolute;
    top: -1rem;
    right: -0.5rem;
    font-size: 2rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}
.news-modal-close:hover { color: var(--primary); }
.news-modal time { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; }
.news-modal p { margin: 0 0 .75rem; }
.news-modal-title { font-weight: 600; color: var(--primary-dark); }

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: #f1f5f9;
}
.site-footer .wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.site-footer h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: .5rem; }
.site-footer p { font-size: .9rem; color: var(--text-muted); margin: .15rem 0; }
.footer-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .5rem; }

/* Back to top */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 90;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Misc */
.no-termine { color: var(--text-muted); font-style: italic; }

.partner-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2.5rem;
    padding: 1rem 0;
}
.partner-logo {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(0.2);
    opacity: 0.85;
    transition: opacity .2s ease, filter .2s ease;
}
.partner-logo:hover { opacity: 1; filter: none; }
.stand { color: var(--text-muted); font-size: .9rem; }
.hinweis { color: var(--text-muted); font-size: .9rem; margin-top: 1rem; }
.preis { font-weight: 600; color: var(--primary-dark); }

/* Responsive */
/* 404 Error Page */
.error-page {
    padding: 5rem 0;
    text-align: center;
}
.error-content {
    max-width: 500px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
}
.error-code {
    display: block;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-dark);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 1rem;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .error-code { color: transparent; }
}
.error-content h1 {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.error-message {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.error-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-figure { order: -1; }
    .nav-list { gap: .25rem .75rem; }
    .schulungen-layout { grid-template-columns: 1fr; }
    .news-section { position: static; }
}
@media (max-width: 1000px) {
    .termin-table { display: block; table-layout: auto; border: 0; background: transparent; }
    .termin-table caption { padding-bottom: .75rem; }
    .termin-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .termin-table tbody { display: block; }
    .termin-table tr {
        display: block;
        margin-bottom: 1rem;
        padding: .9rem 1.1rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
    }
    .termin-table tbody tr:hover { background: var(--surface); }
    .termin-table th[scope="row"], .termin-table td {
        display: block;
        width: auto;
        padding: .2rem 0;
        border: 0;
        text-align: left;
    }
    .termin-table th[scope="row"] {
        padding-bottom: .55rem;
        margin-bottom: .45rem;
        border-bottom: 1px solid var(--border);
    }
    .termin-table td { display: grid; grid-template-columns: 6rem 1fr; gap: .5rem; }
    .termin-table td.termin-status--empty { display: none; }
    .termin-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: .85rem;
        font-weight: 600;
    }
    .termin-table .termin-empty td { display: block; }
    .termin-table .termin-empty td::before { content: none; }
    .termin-pager { justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .card:hover { transform: none; }
    .btn:hover { transform: none; }
}
