/* ==============================================
   INDEX / DASHBOARD PAGE (Landing)
   ============================================== */
.lp-header {
    padding: 3rem 0 2rem 0;
    text-align: center;
}

.lp-hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-main);
}

@media (max-width: 640px) {
    .lp-hero-title {
        font-size: 2.25rem;
        word-break: break-word;
        /* Prevent overflow on long words */
    }
}

.lp-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.dashboard-grid {
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 5rem;
}

.dashboard-card {
    text-decoration: none;
    color: inherit;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
    .dashboard-card {
        padding: 1.25rem;
    }
}

.dashboard-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Dashboard Card Variants */
.card-tipps {
    background: color-mix(in srgb, var(--color-green), transparent 85%);
}

.card-tipps .dashboard-card-icon,
.card-tipps h3 {
    color: var(--color-green);
}

.card-projekte {
    background: color-mix(in srgb, var(--color-purple), transparent 85%);
}

.card-projekte .dashboard-card-icon,
.card-projekte h3 {
    color: var(--color-purple);
}

.card-experten {
    background: color-mix(in srgb, var(--color-blue), transparent 85%);
}

.card-experten .dashboard-card-icon,
.card-experten h3 {
    color: var(--color-blue);
}

.card-wegweiser {
    background: var(--bg-hint-blue);
}

.card-wegweiser .dashboard-card-icon,
.card-wegweiser h3 {
    color: var(--color-blue);
}

.card-termine {
    background: color-mix(in srgb, var(--color-coral), transparent 85%);
}

.card-termine .dashboard-card-icon,
.card-termine h3 {
    color: var(--color-coral);
}

.card-marktplatz {
    background: color-mix(in srgb, var(--color-yellow), transparent 85%);
}

.card-marktplatz .dashboard-card-icon,
.card-marktplatz h3 {
    color: var(--color-text-on-yellow);
}



/* Section Backgrounds */
.section-teaser.bg-tipps {
    background: color-mix(in srgb, var(--color-green), transparent 90%);
}

.section-teaser.bg-projekte {
    background: color-mix(in srgb, var(--color-purple), transparent 90%);
}

.section-teaser.bg-experten {
    background: color-mix(in srgb, var(--color-blue), transparent 90%);
}

.section-teaser.bg-wegweiser {
    background: var(--bg-hint-blue);
}

.section-teaser.bg-termine {
    background: color-mix(in srgb, var(--color-coral), transparent 90%);
}

.section-teaser.bg-marktplatz {
    background: color-mix(in srgb, var(--color-yellow), transparent 90%);
}

.section-teaser.bg-kieztalk {
    background: color-mix(in srgb, var(--color-green), transparent 90%);
}

.section-teaser.bg-ki-assistent {
    background: color-mix(in srgb, var(--color-green), transparent 90%);
}

/* Section Text Colors */
.section-teaser h2 {
    background: none;
    margin-bottom: 0.5rem;
}

.text-tipps {
    color: var(--accent-tipps-dark);
}

.text-projekte {
    color: var(--accent-projekte-solid);
}

.text-experten {
    color: var(--accent-experten-solid);
}

.text-wegweiser {
    color: var(--accent-wegweiser-solid);
}

.text-termine {
    color: var(--accent-termine-text);
}

.text-marktplatz {
    color: var(--accent-marktplatz-solid);
}

.text-kieztalk {
    color: var(--accent-kieztalk-text);
}

.text-ki {
    color: var(--accent-tipps-solid);
}

.section-teaser p.section-intro {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Teaser Icon Circles & Buttons */
.teaser-icon-tipps {
    background: var(--accent-tipps-bg);
    color: var(--accent-tipps-text);
}

.teaser-btn-tipps {
    background: var(--accent-tipps-text);
    color: var(--text-light);
}

.teaser-icon-projekte {
    background: var(--accent-projekte-bg);
    color: var(--accent-projekte-text);
}

.teaser-btn-projekte {
    background: var(--accent-projekte-text);
    color: var(--text-light);
}

.teaser-icon-experten {
    background: var(--accent-experten-bg);
    color: var(--accent-experten-text);
}

.teaser-btn-experten {
    background: var(--accent-experten-text);
    color: var(--text-light);
}

.teaser-icon-wegweiser {
    background: var(--accent-wegweiser-bg);
    color: var(--accent-wegweiser-text);
}

.teaser-btn-wegweiser {
    background: var(--accent-wegweiser-text);
    color: var(--text-light);
}

.teaser-icon-termine {
    background: var(--accent-termine-bg);
    color: var(--accent-termine-text);
}

/* Note: Using lighter bg for icon circle */
.teaser-date-box {
    background: var(--accent-termine-date);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.teaser-btn-termine {
    background: var(--accent-termine-text);
    color: var(--text-light);
}

.teaser-icon-marktplatz {
    background: var(--accent-marktplatz-bg);
    color: var(--accent-marktplatz-text);
}

.teaser-btn-marktplatz {
    background: var(--accent-marktplatz-text);
    color: var(--text-light);
}

.teaser-icon-kieztalk {
    background: var(--accent-kieztalk-bg);
    color: var(--accent-kieztalk-text);
}

.teaser-btn-kieztalk {
    background: var(--accent-kieztalk-text);
    color: var(--text-light);
}

.kim-tipp-box {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-tipps-solid);
    margin-top: 1.5rem;
}

.section-teaser {
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .section-teaser {
        padding: 1.5rem;
    }
}

.section-teaser-content {
    position: relative;
    z-index: 2;
}

.teaser-bg-icon {
    position: absolute;
    right: -20px;
    top: 10%;
    font-size: 18rem;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 640px) {
    .teaser-bg-icon {
        font-size: 10rem;
        opacity: 0.03;
    }
}

.teaser-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.teaser-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaser-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}


.teaser-card-title {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teaser-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.teaser-btn {
    transition: filter 0.2s ease, transform 0.2s ease;
}

.teaser-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Landing Page (Guest) */
.lp-guest-bg {
    background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-card) 100%);
    padding-bottom: 5rem;
}

.lp-guest-hero {
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.lp-alpha-badge {
    margin-top: 1rem;
    margin-bottom: 2rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-tipps-bg);
    color: var(--accent-tipps-text);
    border-radius: var(--brutal-radius);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Hilfe-Link über Login-Buttons (Gast-Startseite) */
.lp-help-link {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.lp-help-link a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.lp-help-link a:hover {
    color: var(--text-on-bright);
    background-color: var(--color-yellow);
    text-decoration: none;
}

.lp-help-link a i {
    font-size: 1.1rem;
}

.lp-guest-login-btn-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.lp-guest-login-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    box-shadow: none;
}

@media (max-width: 480px) {
    .lp-guest-login-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
    }
}

.lp-feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px var(--overlay-5);
    border: 1px solid var(--bg-soft);
}

.lp-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}



/* --- UTILITY CLASSES FOR CLEANUP (Index.php) --- */
.teaser-card-content {
    flex: 1;
    min-width: 0;
}

.teaser-empty-text {
    font-style: italic;
    color: inherit;
}

.teaser-empty-link {
    font-weight: 600;
    color: inherit;
}

/* Marketplace dynamic types (replacing inline styles) */
/* Note: Since these were dynamic PHP mapped colors, we define them here */
.marketplace-type-offer {
    color: var(--accent-tipps-solid);
    font-weight: 600;
}

.marketplace-type-search {
    color: var(--accent-wegweiser-text);
    font-weight: 600;
}

.marketplace-type-lend {
    color: var(--mp-type-lend);
    font-weight: 600;
}

.marketplace-type-swap {
    color: var(--mp-type-swap);
    font-weight: 600;
}

.marketplace-type-default {
    color: var(--mp-type-default);
    font-weight: 600;
}

.teaser-date-day {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-termine-text);
    line-height: 1;
}

.teaser-date-month {
    font-size: 0.65rem;
    color: var(--accent-termine-text);
    text-transform: uppercase;
}

.teaser-location-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Cleanup-Klassen (migriert von Inline-Styles) */
.lp-section-inner {
    max-width: 600px;
}

.lp-feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.lp-feature-icon-tipps {
    background: var(--accent-experten-bg);
    color: var(--primary-color);
}

.lp-feature-icon-marktplatz {
    background: var(--accent-termine-bg);
    color: var(--accent-termine-solid);
}

.lp-feature-icon-gemeinschaft {
    background: var(--accent-tipps-bg);
    color: var(--accent-tipps-text);
}

.lp-feature-icon-kim {
    background: var(--accent-kim-bg-alt);
    color: var(--accent-kim-hover);
}

.btn-kim-toggle {
    background: var(--accent-tipps-solid);
    color: var(--text-light);
}

/* --- News Grid / Homepage Listings --- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.news-list {
    display: grid;
    gap: 1rem;
    /* Enforce 2 columns on desktop/tablet for the items inside a section */
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .news-list {
        grid-template-columns: 1fr 1fr;
    }

    /* .news-grid is now handled uniformly in dashboard_compact.css to ensure 50:50 layout robustness */
}

.news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-soft);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.news-item:hover {
    background: var(--color-yellow);
    border-color: var(--text-on-bright);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--text-on-bright);
    color: var(--text-on-bright);
}

/* Alle Kinder beim Hover schwarz auf hellem Grund */
.news-item:hover .news-item-title,
.news-item:hover .news-item-meta,
.news-item:hover .news-item-icon {
    color: var(--text-on-bright);
}

.news-item:hover .news-item-icon {
    background: var(--surface-on-yellow);
    border-color: var(--text-on-bright);
}



.news-item-icon {
    min-width: 40px;
    min-height: 40px;
    padding: 0.25rem;
    border-radius: 10px;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-ink);
    flex-shrink: 0;
}

.news-item-text {
    flex: 1;
    min-width: 0;
}

.news-item-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}
