/* Home Page */
/* VERBOTEN: Keine zentralen base- Klassen in dieser Datei überschreiben (Regel 011-ui-css-overrides.mdc). */
/* Base-Klassen (base-headline-h3 bis h5, base-hero, base-tile, base-grid, base-layout-*, etc.) → ausschließlich in theme1/base/ definiert. */
/* Verwendete Widget-Klassen (nur Referenz): */
/* - .base-layout-*, .base-hero, .base-grid, .base-tile, .base-tile-title, .base-tile-description → layout.css, widgets-hero.css, widgets-grid.css, widgets-tiles.css */

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Hero-Intro zweispaltig, Trefferliste volle Content-Breite */
.base-home-hero {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .base-home-hero {
        flex-direction: column;
    }
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Mobile: Text, Bild, Suche; Desktop: Grid-Bereiche */
.base-home-hero-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Mobile-Reihenfolge Intro-Text (inkl. Suche) vor Hero-Bild */
.base-home-hero-content {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.base-home-hero-visual {
    order: 2;
}

@media (min-width: 1024px) {
    .base-home-hero-intro {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "copy visual";
        align-items: center;
        column-gap: 3rem;
        row-gap: 1.5rem;
        width: 100%;
    }

    .base-home-hero-content {
        grid-area: copy;
        order: unset;
    }

    .base-home-hero-visual {
        grid-area: visual;
        order: unset;
        align-self: center;
    }
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Hero-Textspalte nutzt linke Grid-Spalte */
.base-home-hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Hero-Visual zentriert, quadratisch wie Top-Kategorien */
.base-home-hero-visual {
    width: 100%;
    max-width: min(320px, 88vw);
    margin-inline: auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 600px) {
    .base-home-hero-visual {
        max-width: min(400px, 80vw);
    }
}

@media (min-width: 1024px) {
    .base-home-hero-visual {
        max-width: 100%;
        width: 100%;
        margin-inline: 0;
        justify-content: center;
    }
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Hero-Bildwrapper 1:1 wie Top-Kategorie-Kacheln */
.base-home-hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Quadratisches Hero-Bild, object-fit cover */
.base-home-hero-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Inline-Suchergebnisse volle erlaubte Content-Breite */
.base-home-inline-search-results {
    width: 100%;
    margin-top: 1.25rem;
    text-align: left;
    box-sizing: border-box;
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Treffer-Header mit Abstand zur Hero-Suche */
.base-home-inline-search-header-section {
    padding-top: 1.25rem;
    padding-bottom: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Änderungsprotokoll: 2026-06-04 | Composer-Agent | @skill-css-rules, @skill-change-provenance | Trefferzeile näher an Inline-Suchtabelle */
.base-home-inline-search-results-section {
    padding-top: 0.35rem;
    padding-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.base-home-inline-search-result-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Änderungsprotokoll: 2026-06-04 | agent | @skill-css-rules | Inline-Suche Tabellenkopf Primary, Text weiß */
#home-inline-search-results #suche-results-table .base-div-table-header {
    background: var(--color-primary);
    border-bottom: none;
}

/* Änderungsprotokoll: 2026-06-04 | agent | @skill-css-rules | Inline-Suche Tabellenkopf Primary, Text weiß */
#home-inline-search-results #suche-results-table .base-div-table-header .base-div-table-cell {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-right: 0;
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Home-Section-Intros linksbündig, volle Content-Breite */
.base-home-section-header {
    text-align: left;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Home-CTA linksbündig */
.base-home-cta-box {
    text-align: left;
    padding: 10px 3px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 600px) {
    /* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Home-CTA linksbündig */
    .base-home-cta-box {
        padding: 10px 5px;
    }
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Home-H1-Wrapper linksbündig */
div.base-home-headline-h1-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    text-align: left;
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Home-H1 linksbündig */
h1.base-home-headline-h1 {
    font-family: var(--font-family-primary);
    font-size: clamp(1.625rem, 4.5vw + 0.75rem, var(--font-size-4xl));
    font-weight: var(--font-weight-extrabold);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.9rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: wrap;
    text-align: left;
    color: var(--color-headline);
    border-bottom: var(--headline-h1-rule-height) solid var(--color-headline-rule);
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Home-H2-Wrapper linksbündig */
div.base-home-headline-h2-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    text-align: left;
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Home-H2 linksbündig */
h2.base-home-headline-h2 {
    font-family: var(--font-family-primary);
    font-size: clamp(1.25rem, 2.5vw + 0.5rem, var(--font-size-2xl));
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-left: 0.85rem;
    border-left: var(--headline-h2-accent-width) solid var(--color-headline-accent);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: wrap;
    text-align: left;
    color: var(--color-headline-soft);
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Home-H3-Wrapper linksbündig */
div.base-home-headline-h3-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    text-align: left;
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules | Home-H3 linksbündig */
h3.base-home-headline-h3 {
    font-family: var(--font-family-primary);
    font-size: clamp(1.0625rem, 1.5vw + 0.5rem, var(--font-size-xl));
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.012em;
    margin-top: 0;
    margin-bottom: 0.95rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: wrap;
    text-align: left;
    color: var(--color-headline);
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules, @skill-change-provenance | Live-Stats-Kacheln kompakter, weniger Leerraum */
#home-live-stats-grid {
    gap: 0.75rem;
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules, @skill-change-provenance | Live-Stats-Kacheln kompakter, weniger Leerraum */
#home-live-stats-grid .base-tile-premium {
    min-height: 0;
    padding: 1rem 0.875rem;
    gap: 0.25rem;
}

@media (min-width: 600px) {
    /* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules, @skill-change-provenance | Live-Stats-Kacheln kompakter, weniger Leerraum */
    #home-live-stats-grid .base-tile-premium {
        padding: 1.125rem 1rem;
    }
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules, @skill-change-provenance | Live-Stats-Kacheln kompakter, weniger Leerraum */
#home-live-stats-grid .base-live-stats-value {
    font-size: clamp(1.65rem, 4.5vw, 2.35rem);
    margin-bottom: 0.125rem;
}

/* Änderungsprotokoll: 2026-06-04 | Auto | @skill-css-rules, @skill-change-provenance | Live-Stats-Kacheln kompakter, weniger Leerraum */
#home-live-stats-grid .base-live-stats-label {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
}

@media (min-width: 600px) and (max-width: 1023px) {
    .base-home-hero-intro {
        align-items: stretch;
        gap: 1.5rem;
    }

    .base-home-hero-content {
        max-width: 100%;
        width: 100%;
        padding-inline: 0;
    }

    .base-home-hero-visual {
        max-width: min(400px, 80vw);
    }
}
