/* ========================================
   startseite.css – Homepage / Startseite
   Baut auf bestehendem Design-System auf
   ======================================== */

/* ── HERO SEKTION ── */
.hero {
    text-align: center;
    padding: 40px 20px 32px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
    color: var(--color-text-light, #2a2a2a);
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.0rem;
    color: #666;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Statistik-Badges */
.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 28px;
    font-size: 0.88rem;
    color: #555;
}

.hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.hero-stats .stat-num {
    font-weight: 700;
    color: var(--color-link, #1a73e8);
}

/* ── HERO SUCHFELD ── */
.hero-search {
    position: relative;
    max-width: 620px;
    margin: 0 auto 20px;
}

.hero-search .search-wrapper {
    border-radius: 28px;
    padding: 14px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    border: 1.5px solid var(--color-border-light, #c8c8c8);
    transition: box-shadow 0.25s, border-color 0.25s;
}

.hero-search .search-wrapper:focus-within {
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.18);
    border-color: var(--color-link, #1a73e8);
}

.hero-search .search-input {
    font-size: 17px;
}

.hero-search .search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-link, #1a73e8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    margin-left: 8px;
}

.hero-search .search-btn:hover {
    background: var(--color-link-hover, #174ea6);
}

.hero-search .search-btn svg {
    width: 18px;
    height: 18px;
}

/* Hero-Autocomplete Anpassungen */
.hero-search .search-results {
    border-radius: 0 0 16px 16px;
    margin-top: 2px;
    border-color: var(--color-border-light, #c8c8c8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    text-align: left;
}

.hero-search .search-results li {
    text-align: left;
}

.hero-search .clear-icon,
.hero-search .dropdown-icon {
    position: static;
    transform: none;
    font-size: 16px;
    width: 24px;
    height: 24px;
    color: var(--color-link, #1a73e8);
    margin-left: 4px;
}

.hero-search .clear-icon {
    font-size: 14px;
}

.hero-search .dropdown-icon {
    transition: transform 0.2s ease;
}

/* ── SCHNELLFILTER CHIPS ── */
.quick-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto;
    max-width: 620px;
}

.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-link, #1a73e8);
    background: #f2f2f2;
    border: 1px solid var(--color-border-light, #c8c8c8);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.18s;
    white-space: nowrap;
}

.quick-chip:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    color: var(--color-link-hover, #174ea6);
    transform: translateY(-1px);
}

.quick-chip svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Kategorie-Chips (Künstler, Veranstalter, Fortbildungen) */
.quick-chip.chip-kat {
    background: rgba(26, 115, 232, 0.08);
    border-color: rgba(26, 115, 232, 0.25);
    font-weight: 600;
}

.quick-chip.chip-kat:hover {
    background: rgba(26, 115, 232, 0.15);
    border-color: var(--color-link, #1a73e8);
}

/* ── CARD GRID (Schnellzugang) ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 36px auto 0;
    padding: 0 8px;
}

.card-grid .card {
    background: #f2f2f2;
    border: 0.3px solid var(--color-border-light, #c8c8c8);
    border-radius: 16px 16px 0 0;
    padding: 28px 20px 24px;
    text-align: center;
    box-shadow: var(--main-shadow, 0 2px 6px rgba(111, 110, 110, 0.4));
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card-grid .card:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--color-link, #1a73e8);
    border-radius: 14px;
    color: #fff;
}

.card .card-icon svg {
    width: 28px;
    height: 28px;
}

/* Karten-Thumbnail (echtes Bild statt SVG-Icon) */
.card .card-thumb {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card .card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

/* Karte als vollflächiger Link */
a.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

a.card-link:hover {
    text-decoration: none;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--color-text-light, #2a2a2a);
}

.card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 18px;
    line-height: 1.5;
}

.card .btn-primary {
    font-size: 13px !important;
    padding: 9px 18px !important;
    min-height: 38px !important;
    min-width: 100px;
    border-radius: 6px !important;
}

/* ── ZIELGRUPPEN TABS ── */
.section-heading {
    text-align: center;
    margin: 48px 0 24px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-light, #2a2a2a);
}

.zg-tabs {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 8px;
}

.zg-tab-btns {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.zg-tab-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    color: var(--color-link, #1a73e8);
    background: #f2f2f2;
    border: 0.3px solid var(--color-border-light, #c8c8c8);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: var(--main-shadow, 0 2px 6px rgba(111, 110, 110, 0.4));
}

.zg-tab-btn:hover {
    background: #eaeaea;
}

.zg-tab-btn.active {
    background: #fff;
    color: var(--color-text-light, #2a2a2a);
    font-weight: 600;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.zg-tab-content {
    display: none;
    background: #fff;
    border: 0.3px solid var(--color-border-light, #c8c8c8);
    border-radius: 0 0 16px 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.zg-tab-content.active {
    display: flex;
    align-items: center;
    gap: 24px;
}

.zg-tab-content .zg-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-link, #1a73e8), #4a9af5);
    border-radius: 16px;
    color: #fff;
}

.zg-tab-content .zg-icon svg {
    width: 32px;
    height: 32px;
}

.zg-tab-content .zg-text {
    flex: 1;
}

.zg-tab-content .zg-text p {
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.zg-tab-content .zg-text .btn-primary {
    font-size: 13px !important;
    padding: 9px 18px !important;
    min-height: 38px !important;
}

/* ── AKTUELLE HIGHLIGHTS ── */
.highlights {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 8px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.highlight-card {
    background: #f2f2f2;
    border: 0.3px solid var(--color-border-light, #c8c8c8);
    border-radius: 16px 16px 0 0;
    padding: 0;
    box-shadow: var(--main-shadow, 0 2px 6px rgba(111, 110, 110, 0.4));
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Kategorie-Header-Streifen */
.hl-kategorie-header {
    border-top: 3px solid #1a73e8;
    padding: 14px 18px 0;
}

.hl-content {
    padding: 10px 18px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hl-content.has-thumb {
    flex-direction: row;
    gap: 14px;
    align-items: flex-start;
}

.hl-vorschau {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 8px;
}

.hl-footer {
    padding: 0 18px 16px;
    margin-top: auto;
}

.hl-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hl-more-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.hl-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.hl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hl-body {
    flex: 1;
    min-width: 0;
}

.highlight-card:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.highlight-card .hl-sparte {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-link, #1a73e8);
    background: rgba(26, 115, 232, 0.08);
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.highlight-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
    color: var(--color-text-light, #2a2a2a);
}

.highlight-card h3 a {
    color: inherit;
    text-decoration: none;
}

.highlight-card h3 a:hover {
    color: var(--color-link, #1a73e8);
    text-decoration: underline;
}

.highlight-card .hl-meta {
    font-size: 0.82rem;
    color: #888;
    margin-top: auto;
    padding-top: 10px;
}

/* ── TRUST SEKTION ── */
.trust-section {
    max-width: 800px;
    margin: 48px auto 0;
    padding: 0 8px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

.trust-item {
    padding: 20px 12px;
}

.trust-item .trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: rgba(26, 115, 232, 0.08);
    border-radius: 50%;
    color: var(--color-link, #1a73e8);
}

.trust-item .trust-icon svg {
    width: 24px;
    height: 24px;
}

.trust-item .trust-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-light, #2a2a2a);
    display: block;
    margin-bottom: 4px;
}

.trust-item .trust-label {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.4;
}

/* ── SEO AKKORDEON ── */
.seo-accordion {
    max-width: 800px;
    margin: 40px auto 20px;
    padding: 0 8px;
}

.seo-accordion details {
    background: #f2f2f2;
    border: 0.3px solid var(--color-border-light, #c8c8c8);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: var(--main-shadow, 0 2px 6px rgba(111, 110, 110, 0.4));
}

.seo-accordion summary {
    padding: 16px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-light, #2a2a2a);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    transition: background 0.2s;
}

.seo-accordion summary:hover {
    background: #eaeaea;
}

.seo-accordion summary::-webkit-details-marker {
    display: none;
}

.seo-accordion summary::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(-45deg);
    transition: transform 0.25s;
    margin-left: auto;
    flex-shrink: 0;
}

.seo-accordion details[open] summary::after {
    transform: rotate(45deg);
}

.seo-accordion .seo-content {
    padding: 8px 24px 24px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #444;
}

.seo-accordion .seo-content h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 20px 0 8px;
    color: var(--color-text-light, #2a2a2a);
}

.seo-accordion .seo-content h2:first-child {
    margin-top: 4px;
}

.seo-accordion .seo-content p {
    margin: 0 0 14px;
}

.seo-accordion .seo-content a {
    color: var(--color-link, #1a73e8);
}

/* ── CTA BANNER ── */
.cta-banner {
    text-align: center;
    max-width: 700px;
    margin: 40px auto 16px;
    padding: 32px 24px;
    background: linear-gradient(135deg, #1a73e8, #4a9af5);
    border-radius: 16px;
    color: #fff;
}

.cta-banner h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.cta-banner p {
    font-size: 0.95rem;
    margin: 0 0 20px;
    opacity: 0.92;
}

.cta-banner .btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-link, #1a73e8);
    background: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .hero {
        padding: 28px 14px 24px;
    }

    .hero h1 {
        font-size: 1.35rem;
    }

    .hero-sub {
        font-size: 0.92rem;
    }

    .hero-search .search-wrapper {
        padding: 10px 14px;
        border-radius: 22px;
    }

    .hero-search .search-input {
        font-size: 15px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }

    .card-grid .card {
        padding: 20px 18px 18px;
    }

    .zg-tab-btns {
        flex-direction: column;
        gap: 0;
    }

    .zg-tab-btn {
        border-radius: 0;
        border: 0.3px solid var(--color-border-light, #c8c8c8);
    }

    .zg-tab-btn:first-child {
        border-radius: 16px 16px 0 0;
    }

    .zg-tab-content.active {
        flex-direction: column;
        text-align: center;
        padding: 20px 18px;
        gap: 16px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .trust-item {
        padding: 14px 8px;
    }

    .cta-banner {
        margin-left: 8px;
        margin-right: 8px;
        padding: 24px 18px;
        border-radius: 12px;
    }

    .seo-accordion {
        padding: 0 4px;
    }

    .section-heading {
        font-size: 1.15rem;
        margin: 36px 0 18px;
    }
}

/* ── DARK MODE ── */
@media (prefers-color-scheme: dark) {
    .hero h1 {
        color: var(--color-text-dark, #e6e6e6);
    }

    .hero-sub {
        color: #aaa;
    }

    .hero-stats {
        color: #999;
    }

    .hero-stats .stat-num {
        color: var(--color-link, #95bcfa);
    }

    .hero-search .search-wrapper {
        background: #1e1e1e;
        border-color: var(--color-border-dark, #5c5c5c);
    }

    .hero-search .search-input {
        color: var(--color-text-dark, #e6e6e6);
    }

    .hero-search .search-results {
        background: #1e1e1e;
        border-color: var(--color-border-dark, #5c5c5c);
    }

    .hero-search .search-results li:hover:not(.no-results) {
        background: #2a2a2a;
    }

    .hero-search .clear-icon,
    .hero-search .dropdown-icon {
        color: var(--color-link, #95bcfa);
    }

    .quick-chip {
        background: #1e1e1e;
        border-color: var(--color-border-dark, #5c5c5c);
        color: var(--color-link, #95bcfa);
    }

    .quick-chip:hover {
        background: #2a2a2a;
    }

    .quick-chip.chip-kat {
        background: rgba(149, 188, 250, 0.1);
        border-color: rgba(149, 188, 250, 0.3);
    }

    .quick-chip.chip-kat:hover {
        background: rgba(149, 188, 250, 0.18);
    }

    .card-grid .card,
    .highlight-card {
        background: #1e1e1e;
        border-color: var(--color-border-dark, #5c5c5c);
    }

    .card .card-thumb,
    .hl-thumb {
        background: #333;
    }

    .card-grid .card:hover,
    .highlight-card:hover {
        background: #252525;
    }

    .card h3,
    .highlight-card h3,
    .section-heading {
        color: var(--color-text-dark, #e6e6e6);
    }

    .card p {
        color: #aaa;
    }

    .zg-tab-btn {
        background: #1e1e1e;
        border-color: var(--color-border-dark, #5c5c5c);
        color: var(--color-link, #95bcfa);
    }

    .zg-tab-btn:hover {
        background: #252525;
    }

    .zg-tab-btn.active {
        background: #2a2a2a;
        color: var(--color-text-dark, #e6e6e6);
    }

    .zg-tab-content {
        background: #2a2a2a;
        border-color: var(--color-border-dark, #5c5c5c);
    }

    .zg-tab-content .zg-text p {
        color: #bbb;
    }

    .highlight-card .hl-sparte {
        background: rgba(149, 188, 250, 0.12);
        color: var(--color-link, #95bcfa);
    }

    .highlight-card .hl-meta {
        color: #777;
    }

    .trust-item .trust-num {
        color: var(--color-text-dark, #e6e6e6);
    }

    .trust-item .trust-icon {
        background: rgba(149, 188, 250, 0.12);
        color: var(--color-link, #95bcfa);
    }

    .trust-item .trust-label {
        color: #aaa;
    }

    .seo-accordion details {
        background: #1e1e1e;
        border-color: var(--color-border-dark, #5c5c5c);
    }

    .seo-accordion summary {
        color: var(--color-text-dark, #e6e6e6);
    }

    .seo-accordion summary:hover {
        background: #252525;
    }

    .seo-accordion summary::after {
        border-color: #999;
    }

    .seo-accordion .seo-content {
        color: #bbb;
    }

    .seo-accordion .seo-content h2 {
        color: var(--color-text-dark, #e6e6e6);
    }

    .cta-banner {
        background: var(--color-btn-bg-dark, #1a1a1a);
        border: 1px solid var(--color-border-dark, #5c5c5c);
    }

    .cta-banner h2 {
        color: var(--color-text-dark, #e6e6e6);
    }

    .cta-banner p {
        color: #aaa;
        opacity: 1;
    }

    .cta-banner .btn-cta-white {
        background: #fff;
        color: #1a73e8;
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
    }

    .cta-banner .btn-cta-white:hover {
        background: #e8e8e8;
        box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
    }
}

/* ── JSON-LD wird inline im HTML eingebunden ── */