/* ==========================================================================
   ifV Seminare — Frontend Styles
   ========================================================================== */

/* ==========================================================================
   Autocomplete Dropdown
   ========================================================================== */

.ifv-ac-wrap {
    position: relative;
    display: flex;
    flex: 1;
}

.ifv-ac-wrap > input {
    width: 100%;
}

.ifv-ac-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 360px;
    overflow-y: auto;
}

.ifv-ac-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #1a2a3a;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid #f2f4f7;
    cursor: pointer;
    transition: background-color 0.1s;
}

.ifv-ac-item:last-child {
    border-bottom: none;
}

.ifv-ac-item:hover,
.ifv-ac-item--active {
    background: #f0f6fb;
    color: #0a2a40;
}

.ifv-ac-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ifv-ac-type {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.ifv-ac-type--seminar {
    background: #e8f4fd;
    color: #0a5a8a;
}

.ifv-ac-type--dozent {
    background: #f0e8fd;
    color: #5a2a8a;
}

.ifv-ac-type--themengruppe {
    background: #e8fde8;
    color: #2a6a2a;
}

.ifv-ac-type--thema {
    background: #fdf8e8;
    color: #6a5a1a;
}

/* Utility bar — dropdown positioned relative to the form, not the input */
.ifv-utility-search.ifv-ac-wrap {
    position: relative;
}

.ifv-utility-search .ifv-ac-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-color: rgba(255,255,255,0.15);
    margin-top: 2px;
    border-radius: 6px;
}

/* Sidebar + filter bar — stack items vertically in narrow containers */
.ifv-sidebar-field.ifv-ac-wrap,
.ifv-filter-field.ifv-ac-wrap {
    position: relative;
}

.ifv-sidebar-field .ifv-ac-dropdown,
.ifv-filter-field .ifv-ac-dropdown {
    min-width: 100%;
    border-radius: 0 0 6px 6px;
}

.ifv-sidebar-field .ifv-ac-item,
.ifv-filter-field .ifv-ac-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.ifv-sidebar-field .ifv-ac-text,
.ifv-filter-field .ifv-ac-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 13px;
}

.ifv-sidebar-field .ifv-ac-type,
.ifv-filter-field .ifv-ac-type {
    font-size: 10px;
}

/* ==========================================================================
   Main Styles
   ========================================================================== */

/* Ensure wide layout for ifV content (uses WP alignwide) */
.ifv-seminare-wrap,
.ifv-seminar-detail,
.ifv-themengruppen-wrap,
.ifv-suche-wrap {
    box-sizing: border-box;
}

:root {
    --ifv-primary: #1a5a8a;
    --ifv-primary-dark: #0d3f66;
    --ifv-primary-light: #e8f0f7;
    --ifv-accent: #5bb5a2;
    --ifv-accent-hover: #4a9e8d;
    --ifv-coral: #e06060;
    --ifv-orange: #e0944a;
    --ifv-text: #333;
    --ifv-text-light: #666;
    --ifv-border: #ddd;
    --ifv-bg: #f5f6f7;
    --ifv-white: #fff;
    --ifv-gruen: #28a745;
    --ifv-gelb: #ffc107;
    --ifv-rot: #dc3545;
    --ifv-grau: #999;
    --ifv-radius: 6px;
    --ifv-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Theme overrides — handled by ifV theme; kept minimal for plugin portability
   ========================================================================== */

/* Hero banner on the home page */
.ifv-hero-banner {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 280px;
    background: url('../img/header-bg.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.ifv-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,63,102,0.7) 0%, rgba(91,181,162,0.5) 100%);
}

.ifv-hero-banner h2 {
    position: relative;
    color: var(--ifv-white);
    font-size: 2.4em;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    margin: 0;
    padding: 0 20px;
    letter-spacing: 0.02em;
}

/* Three colored action boxes */
.ifv-action-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 32px;
}

.ifv-action-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
    color: var(--ifv-white);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: filter 0.2s;
    line-height: 1.3;
}

.ifv-action-box:hover {
    filter: brightness(1.08);
    color: var(--ifv-white);
}

.ifv-action-box--elearning { background: var(--ifv-coral); }
.ifv-action-box--kommunal  { background: var(--ifv-accent); }
.ifv-action-box--jobcenter  { background: var(--ifv-orange); }

@media (max-width: 768px) {
    .ifv-hero-banner {
        height: 180px;
    }
    .ifv-hero-banner h2 {
        font-size: 1.5em;
    }
    .ifv-action-boxes {
        grid-template-columns: 1fr;
    }
    .ifv-action-box {
        padding: 20px;
        font-size: 1em;
    }
}

/* Error & info */
.ifv-error {
    color: var(--ifv-rot);
    padding: 12px 16px;
    background: #fde8e8;
    border-radius: var(--ifv-radius);
}

.ifv-no-results {
    text-align: center;
    color: var(--ifv-text-light);
    padding: 40px 0;
}

.ifv-results-info {
    color: var(--ifv-text-light);
    font-size: 0.9em;
    margin: 0;
}

.ifv-results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.ifv-pro-seite-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.ifv-pro-seite-label {
    color: var(--ifv-text-light);
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ifv-pro-seite-select {
    padding: 4px 8px;
    border: 1px solid var(--ifv-border, #d2d6dc);
    border-radius: 4px;
    background: #fff;
    font-size: 0.9em;
    cursor: pointer;
}

.ifv-pro-seite-select:hover,
.ifv-pro-seite-select:focus {
    border-color: var(--ifv-blue, #1a4d80);
}

/* Bottom-Bar (zweite Pro-Seite-Auswahl + Back-to-top) */
.ifv-results-bar--bottom {
    margin: 24px 0 0;
    justify-content: space-between;
    border-top: 1px solid var(--ifv-border, #e1e4e8);
    padding-top: 16px;
}

.ifv-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--ifv-border, #c1c5cb);
    border-radius: 4px;
    color: var(--ifv-text, #333);
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ifv-back-to-top:hover,
.ifv-back-to-top:focus {
    background: var(--ifv-blue, #1a4d80);
    border-color: var(--ifv-blue, #1a4d80);
    color: #fff;
}

/* Floating-Modus: Button schwebt vertikal mit, wenn gescrollt wurde UND
   die Original-Bottom-Bar noch nicht im Viewport ist. Der right-Wert wird
   per JS dynamisch gesetzt, damit der Button rechtsbündig zur Inhalts-Spalte
   bleibt — kein Sprung beim Wechsel fixed ↔ static. */
.ifv-back-to-top.is-floating {
    position: fixed;
    bottom: 24px;
    z-index: 100;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

/* Vor Scroll: unsichtbar, nicht klickbar (gilt nur, wenn JS aktiv ist und die
   Klasse setzt — ohne JS bleibt der Button an Originalposition sichtbar). */
.ifv-back-to-top.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

/* ==========================================================================
   Start layout: Themengruppen tiles + search sidebar
   ========================================================================== */
.ifv-start-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

.ifv-start-heading {
    font-size: 1.4em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ifv-text);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ifv-border);
}

/* Themengruppen tiles — green buttons like existing site */
.ifv-tg-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ifv-tg-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 12px;
    background: var(--ifv-accent);
    color: var(--ifv-white);
    border-radius: var(--ifv-radius);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.3;
    min-height: 60px;
    transition: background 0.2s;
}

.ifv-tg-tile:hover {
    background: var(--ifv-accent-hover);
    color: var(--ifv-white);
}

/* Search sidebar */
.ifv-start-sidebar {
    position: sticky;
    top: 32px;
}

.ifv-sidebar-search {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ifv-sidebar-field label {
    font-size: 0.8em;
    color: var(--ifv-text-light);
}

.ifv-sidebar-input,
.ifv-sidebar-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ifv-border);
    border-radius: 4px;
    font-size: 0.95em;
    box-sizing: border-box;
}

.ifv-sidebar-btn {
    width: 100%;
    padding: 12px;
    background: var(--ifv-accent);
    color: var(--ifv-white);
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ifv-sidebar-btn:hover {
    background: var(--ifv-accent-hover);
}

/* Seminarnummer — subtle label */
.ifv-kachel-seminarnr {
    display: block;
    flex: 1 1 100%;
    font-size: 0.75em;
    color: var(--ifv-text-light);
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.ifv-detail-seminarnr {
    display: block;
    font-size: 0.85em;
    color: var(--ifv-text-light);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

/* Back link */
/* Breadcrumbs */
.ifv-breadcrumbs {
    margin-bottom: 12px;
    font-size: 0.88em;
    color: var(--ifv-text-light);
}
.ifv-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.ifv-breadcrumbs-list li {
    display: flex;
    align-items: center;
}
.ifv-breadcrumbs-list li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5em;
    color: var(--ifv-grau);
}
.ifv-breadcrumbs-list li a {
    color: var(--ifv-primary);
    text-decoration: none;
}
.ifv-breadcrumbs-list li a:hover {
    text-decoration: underline;
}
.ifv-breadcrumbs-list li[aria-current="page"] {
    color: var(--ifv-text);
    font-weight: 500;
}

.ifv-back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--ifv-accent);
    text-decoration: none;
    font-size: 0.95em;
}

.ifv-back-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Filter bar
   ========================================================================== */
.ifv-filter-bar {
    background: var(--ifv-bg);
    border: 1px solid var(--ifv-border);
    border-radius: var(--ifv-radius);
    padding: 16px;
    margin-bottom: 24px;
}

.ifv-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.ifv-filter-field {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ifv-filter-field label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--ifv-text-light);
}

.ifv-filter-field select,
.ifv-filter-field input[type="text"] {
    padding: 8px 10px;
    border: 1px solid var(--ifv-border);
    border-radius: 4px;
    font-size: 0.95em;
    background: var(--ifv-white);
}

.ifv-filter-submit {
    flex: 0 0 auto;
}

/* Buttons */
.ifv-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--ifv-primary);
    color: var(--ifv-white);
    border: none;
    border-radius: 4px;
    font-size: 0.95em;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.5;
}

.ifv-btn:hover {
    opacity: 0.9;
}

.ifv-btn--inhouse {
    background: #2e7d32;
}

/* ==========================================================================
   Seminar card grid
   ========================================================================== */
.ifv-seminare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ifv-seminar-kachel {
    background: var(--ifv-white);
    border: 1px solid var(--ifv-border);
    border-radius: var(--ifv-radius);
    padding: 20px;
    box-shadow: var(--ifv-shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.ifv-seminar-kachel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ifv-kachel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.ifv-kachel-titel {
    font-size: 1.1em;
    margin: 0;
    flex: 1 1 100%;
}

.ifv-kachel-titel a {
    color: var(--ifv-primary);
    text-decoration: none;
}

.ifv-kachel-titel a:hover {
    text-decoration: underline;
}

.ifv-kachel-beschreibung {
    font-size: 0.9em;
    color: var(--ifv-text-light);
    flex: 1;
    margin: 0 0 12px;
}

/* Tags */
.ifv-kachel-tags,
.ifv-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

/* Kachel: Tags kompakt halten, Spalte nicht aufweiten */
.ifv-kachel-tags {
    min-width: 0;
}

.ifv-tag {
    display: inline-block;
    background: var(--ifv-primary-light);
    color: var(--ifv-primary);
    font-size: 0.7em;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* "weitere"-Badge */
.ifv-tag--mehr {
    background: #e9ecef;
    color: #495057;
    cursor: default;
}

/* Tooltip */
.ifv-tag--tooltip {
    position: relative;
    cursor: default;
}

.ifv-tag--tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: normal;
    width: max-content;
    max-width: 240px;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.ifv-tag--tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a2e;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
}

.ifv-tag--tooltip:hover::after,
.ifv-tag--tooltip:hover::before {
    opacity: 1;
}

/* Detailseite: Abstand über Tags */
.ifv-detail-tags {
    margin-top: 1rem;
}

/* Detailseite: Tags dürfen größer sein */
.ifv-detail-tags .ifv-tag {
    font-size: 0.8em;
    padding: 3px 10px;
}

.ifv-tag--link {
    text-decoration: none;
}

.ifv-tag--link:hover {
    background: var(--ifv-primary);
    color: var(--ifv-white);
}

/* Card footer */
.ifv-kachel-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
    padding-top: 12px;
    border-top: 1px solid var(--ifv-border);
    margin-top: auto;
}

.ifv-kachel-termin {
    color: var(--ifv-text-light);
}

.ifv-kachel-preis {
    font-weight: 700;
    color: var(--ifv-primary);
}

/* Badges */
.ifv-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ifv-badge--format {
    background: var(--ifv-primary-light);
    color: var(--ifv-primary);
}

.ifv-badge--praesenz { background: #e3f2fd; color: #1565c0; }
.ifv-badge--online   { background: #e3f2fd; color: #1565c0; }
.ifv-badge--hybrid   { background: #e3f2fd; color: #1565c0; }

.ifv-badge--inhouse {
    background: transparent;
    color: var(--ifv-text-light);
    border: 1px solid var(--ifv-border);
    font-weight: 400;
    font-size: 0.7em;
    text-transform: none;
    letter-spacing: 0;
}

.ifv-badge--gesichert {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Ampel */
.ifv-ampel { font-size: 1.1em; line-height: 1; }
.ifv-ampel--gruen    { color: var(--ifv-gruen); }
.ifv-ampel--gelb     { color: var(--ifv-gelb); }
.ifv-ampel--rot      { color: var(--ifv-rot); }
.ifv-ampel--abgesagt { color: var(--ifv-grau); text-decoration: line-through; }

/* Nutri-Score (A–E like food labels) */
.ifv-nutri-score {
    display: inline-flex;
    gap: 0;
    border-radius: 4px;
    overflow: hidden;
    vertical-align: middle;
}

.ifv-ns {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.65em;
    font-weight: 700;
    color: var(--ifv-white);
    opacity: 0.35;
    line-height: 1;
}

.ifv-ns--active {
    opacity: 1;
    width: 26px;
    height: 26px;
    font-size: 0.8em;
    border-radius: 50%;
    margin: -3px 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 2px var(--ifv-white);
}

.ifv-ns--a { background: #038141; }
.ifv-ns--b { background: #85bb2f; }
.ifv-ns--c { background: #fecb02; color: #333; }
.ifv-ns--d { background: #ee8100; }
.ifv-ns--e { background: #e63e11; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.ifv-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.ifv-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--ifv-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--ifv-text);
    font-size: 0.9em;
}

.ifv-page:hover {
    background: var(--ifv-primary-light);
}

.ifv-page--current {
    background: var(--ifv-primary);
    color: var(--ifv-white);
    border-color: var(--ifv-primary);
}

/* ==========================================================================
   Seminar detail
   ========================================================================== */
.ifv-seminar-detail {
    max-width: 1000px;
}

.ifv-detail-titel {
    font-size: 1.8em;
    margin: 0 0 16px;
    color: var(--ifv-primary);
}

.ifv-detail-bild {
    max-width: 100%;
    height: auto;
    border-radius: var(--ifv-radius);
    margin-bottom: 20px;
}

.ifv-detail-beschreibung {
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Scroll-Button zu Terminen */
.ifv-btn-termine-scroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 20px;
    padding: 10px 22px;
    background: #2ecc71;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(46,204,113,0.35);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.ifv-btn-termine-scroll:hover {
    background: #27ae60;
    box-shadow: 0 5px 16px rgba(46,204,113,0.45);
    transform: translateY(-1px);
    color: #fff;
}


.ifv-detail-section {
    margin-bottom: 24px;
}

.ifv-detail-section h2 {
    font-size: 1.3em;
    margin: 0 0 12px;
    color: var(--ifv-primary);
}

.ifv-detail-inhouse {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: var(--ifv-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.ifv-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: var(--ifv-radius);
}

.ifv-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Durchführungen (accordion)
   ========================================================================== */
.ifv-durchfuehrungen {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ifv-df-item {
    border: 1px solid var(--ifv-border);
    border-radius: var(--ifv-radius);
    overflow: hidden;
}

.ifv-df-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--ifv-bg);
    cursor: pointer;
    user-select: none;
}

.ifv-df-header:hover {
    background: var(--ifv-primary-light);
}

.ifv-df-datum {
    font-weight: 600;
}

.ifv-df-ort {
    color: var(--ifv-text-light);
}

.ifv-df-preis {
    font-weight: 700;
    color: var(--ifv-primary);
    margin-left: auto;
}

.ifv-accordion-icon {
    font-size: 1.1em;
    transition: transform 0.2s;
}

.ifv-df-item.ifv-accordion--open .ifv-accordion-icon {
    transform: rotate(90deg);
}

.ifv-df-body {
    padding: 16px;
}

.ifv-df-anmeldeschluss {
    font-size: 0.9em;
    color: var(--ifv-text-light);
    margin: 0 0 12px;
}

/* Segmente table */
.ifv-segmente-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.ifv-segmente-table th,
.ifv-segmente-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--ifv-border);
}

.ifv-segmente-table th {
    background: var(--ifv-bg);
    font-weight: 600;
    font-size: 0.85em;
    color: var(--ifv-text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   Themengruppen
   ========================================================================== */
.ifv-themengruppen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.ifv-tg-card {
    background: var(--ifv-white);
    border: 1px solid var(--ifv-border);
    border-radius: var(--ifv-radius);
    padding: 20px;
    box-shadow: var(--ifv-shadow);
}

.ifv-tg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.ifv-tg-name {
    margin: 0;
    font-size: 1.1em;
    flex: 1;
}

.ifv-tg-count {
    font-size: 0.85em;
    color: var(--ifv-text-light);
}

.ifv-tg-beschreibung {
    font-size: 0.9em;
    color: var(--ifv-text-light);
    margin: 8px 0;
}

.ifv-tg-ansprechpartner {
    font-size: 0.85em;
    color: var(--ifv-text-light);
    margin: 4px 0;
}

.ifv-tg-themen-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ifv-tg-themen-list a {
    color: var(--ifv-primary);
    text-decoration: none;
    font-size: 0.95em;
}

.ifv-tg-themen-list a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Search form
   ========================================================================== */
.ifv-suche-wrap {
    margin-bottom: 24px;
}

.ifv-suche-form {
    background: var(--ifv-bg);
    border: 1px solid var(--ifv-border);
    border-radius: var(--ifv-radius);
    padding: 20px;
}

.ifv-suche-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.ifv-suche-field {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ifv-suche-field label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--ifv-text-light);
}

.ifv-suche-field input,
.ifv-suche-field select {
    padding: 8px 10px;
    border: 1px solid var(--ifv-border);
    border-radius: 4px;
    font-size: 0.95em;
}

.ifv-suche-submit {
    flex: 0 0 auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .ifv-start-layout {
        grid-template-columns: 1fr;
    }

    .ifv-tg-tiles {
        grid-template-columns: 1fr 1fr;
    }

    .ifv-seminare-grid,
    .ifv-themengruppen-grid {
        grid-template-columns: 1fr;
    }

    .ifv-filter-row,
    .ifv-suche-row {
        flex-direction: column;
    }

    .ifv-filter-field,
    .ifv-suche-field {
        flex-basis: 100%;
    }

    .ifv-df-header {
        font-size: 0.9em;
    }

    .ifv-segmente-table {
        font-size: 0.8em;
    }

    .ifv-segmente-table th,
    .ifv-segmente-table td {
        padding: 6px;
    }
}
