:root {
    --asb-rot: #c8102e;
    --asb-rot-dunkel: #a10d25;
    --text: #1f2224;
    --text-muted: #5b6266;
    --border: #e4e6e8;
    --bg-card: #ffffff;
    --bg-page: #f7f7f8;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg-page);
    line-height: 1.55;
}

body.is-embed {
    background: transparent;
}

a { color: var(--asb-rot); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 8px;
}

.site-header h1 {
    font-size: 2rem;
    margin: 0 0 8px;
    border-left: 6px solid var(--asb-rot);
    padding-left: 14px;
}

.lead {
    color: var(--text-muted);
    max-width: 720px;
}

.course-list-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 14px;
}

.filter-search {
    flex: 1 1 220px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .92rem;
    font-family: inherit;
}

.filter-select {
    flex: 1 1 220px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .92rem;
    font-family: inherit;
    background: #fff;
}

.filter-bar .button {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.filter-reset {
    font-size: .85rem;
    color: var(--text-muted);
    text-decoration: underline;
}

.result-count {
    color: var(--text-muted);
    font-size: .85rem;
    margin: 0 0 14px 4px;
}

.no-results {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    color: var(--text-muted);
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Zeilen-Layout: Bild links / Text Mitte / Optionen rechts */
.course-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: stretch;
    transition: box-shadow .15s ease, transform .15s ease;
}

.course-row:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.row-image {
    display: block;
    background: #f0f1f2;
}

.row-image img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    display: block;
}

.row-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 140px;
    color: var(--asb-rot);
    font-weight: 700;
    font-size: .85rem;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #fbe7ea, #f5f5f6);
}

.row-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.card-category {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--asb-rot);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.course-row h2 {
    font-size: 1.15rem;
    margin: 0;
}

.course-row h2 a { color: var(--text); }
.course-row h2 a:hover { color: var(--asb-rot); text-decoration: none; }

.row-body p {
    color: var(--text-muted);
    font-size: .92rem;
    margin: 0;
}

.row-target {
    font-size: .85rem !important;
    color: var(--text-muted);
}

.row-options {
    padding: 18px 20px;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
}

.meta-list {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    display: flex;
    gap: 14px;
    font-size: .85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.meta-list-stacked {
    flex-direction: column;
    gap: 4px;
}

.button {
    display: inline-block;
    text-align: center;
    background: var(--asb-rot);
    color: #fff;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
}

.button:hover {
    background: var(--asb-rot-dunkel);
    text-decoration: none;
}

.button-outline {
    background: transparent;
    color: var(--asb-rot) !important;
    border: 1.5px solid var(--asb-rot);
    padding: 7.5px 16px;
}

.button-outline:hover {
    background: #fbe7ea;
    text-decoration: none;
}

@media (max-width: 720px) {
    .course-row {
        grid-template-columns: 1fr;
    }
    .row-image img,
    .row-image-placeholder {
        min-height: 160px;
    }
    .row-options {
        border-left: none;
        border-top: 1px solid var(--border);
        flex-direction: row;
        flex-wrap: wrap;
    }
    .meta-list-stacked {
        flex-direction: row;
    }
}

.button-large {
    padding: 13px 24px;
    font-size: 1rem;
    margin-top: 20px;
}

/* Detailseite */
.course-detail {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.breadcrumb { margin-bottom: 16px; display: block; }

.course-detail h1 {
    font-size: 1.9rem;
    margin: 6px 0 10px;
}

.detail-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 18px 0;
}

.detail-meta {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    margin: 18px 0;
    flex-direction: column;
    gap: 6px;
}

.detail-description {
    font-size: 1rem;
}

@media (max-width: 480px) {
    .site-header { padding: 24px 16px 4px; }
    .course-grid { padding: 16px; }
}
