/* Ki-Suche: Suchleiste, KI-Überblick und SERP-ähnliche Trefferliste (eine Klasse pro Element; Mobile-First) */

.base-ki-suche-page-column {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.base-ki-suche-page-intro {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
}

/* Ki-Suche-Root: gleiche Content-Spalte wie Home und übrige Screens (.base-layout-content-container in layout.css, max-width wie Header/Footer). */
.base-ki-suche-layout {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-bottom: 2.5rem;
}

.base-ki-suche-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.base-ki-suche-input-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

.base-ki-suche-form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-sizing: border-box;
}

@media (min-width: 600px) {
    .base-ki-suche-form-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 1.25rem;
    }

    .base-ki-suche-input-wrap {
        width: 100%;
        min-width: 0;
    }
}

.base-home-ki-suche-examples {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    box-sizing: border-box;
}

.base-home-ki-suche-examples-intro {
    margin: 0 0 0.75rem 0;
    padding: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-align: center;
}

.base-home-ki-suche-examples-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.65rem;
    box-sizing: border-box;
}

.base-home-ki-suche-examples-link {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}

.base-home-ki-suche-examples-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.base-ki-suche-loading {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.base-ki-suche-loading[hidden] {
    display: none !important;
}

.base-ki-suche-loading-gif {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.base-ki-suche-loading-label {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.base-ki-suche-section-heading-wrap {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0.5rem;
}

.base-ki-suche-section-heading {
    margin: 0;
    padding: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.base-ki-suche-overview-section {
    margin-top: 1.25rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.base-ki-suche-overview-body {
    margin-top: 0.5rem;
    padding: 1rem 1.1rem;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-ai-overview-bg);
    border: 1px solid var(--color-ai-overview-border);
    border-radius: 0.75rem;
}

.base-ki-suche-overview-product-link {
    color: var(--color-serp-title-link);
    text-decoration: underline;
    text-underline-offset: 0.12em;
    font-weight: var(--font-weight-medium);
    word-break: break-word;
}

.base-ki-suche-overview-product-link:hover {
    color: var(--color-primary);
}

.base-ki-suche-overview-product-link:visited {
    color: var(--color-serp-title-link-visited);
}

.base-ki-suche-overview-product-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.base-ki-suche-products-section {
    margin-top: 1.75rem;
}

.base-ki-suche-serp-list {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.base-ki-suche-serp-result {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.125rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    background: var(--color-gray-10);
    box-shadow: var(--shadow-ki-suche-serp-card);
    transition: box-shadow 0.26s ease, border-color 0.26s ease, background-color 0.26s ease;
}

.base-ki-suche-serp-result:hover {
    border-color: var(--color-border-highlight);
    background: var(--color-surface);
    box-shadow: var(--shadow-ki-suche-serp-card-hover);
}

.base-ki-suche-serp-result-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

@media (min-width: 600px) {
    .base-ki-suche-serp-result {
        padding: 1.125rem 1.35rem;
    }
}

.base-ki-suche-serp-thumb-wrap {
    flex-shrink: 0;
    width: 92px;
    height: 92px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-ki-suche-thumb);
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.base-ki-suche-serp-thumb-wrap:hover {
    border-color: var(--color-accent-light);
    box-shadow: var(--shadow-ki-suche-thumb-hover);
}

.base-ki-suche-serp-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    text-decoration: none;
}

.base-ki-suche-serp-thumb-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.base-ki-suche-serp-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease, filter 0.32s ease;
    filter: saturate(1.02);
}

.base-ki-suche-serp-thumb:hover {
    transform: scale(1.06);
    filter: saturate(1.08) brightness(1.04);
}

.base-ki-suche-serp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.base-ki-suche-serp-title {
    margin: 0;
    padding: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.base-ki-suche-serp-title-link {
    color: var(--color-serp-title-link);
    text-decoration: none;
    word-break: break-word;
}

.base-ki-suche-serp-title-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.base-ki-suche-serp-title-link:visited {
    color: var(--color-serp-title-link-visited);
}

.base-ki-suche-serp-title-text {
    color: var(--color-serp-title-link);
    word-break: break-word;
}

.base-ki-suche-serp-url-line {
    display: block;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    color: var(--color-serp-url-text);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.base-ki-suche-serp-url-line:hover {
    text-decoration: underline;
}

.base-ki-suche-serp-url-line:visited {
    color: var(--color-serp-url-text);
}

.base-ki-suche-serp-snippet {
    margin: 0.1rem 0 0 0;
    padding: 0;
    width: 100%;
    min-width: 0;
    font-size: var(--font-size-sm);
    line-height: 1.55;
    color: var(--color-text-muted);
    word-break: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 9;
    overflow: hidden;
}

.base-ki-suche-serp-extras {
    margin: 0.35rem 0 0 0;
    padding: 0;
    font-size: var(--font-size-xs);
    line-height: 1.45;
    color: var(--color-text-muted);
    word-break: break-word;
}

.base-ki-suche-serp-extras-price {
    font-weight: 700;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    color: var(--color-text);
    letter-spacing: 0.03em;
}

@media (max-width: 575px) {
    .base-ki-suche-serp-thumb-wrap {
        width: 72px;
        height: 72px;
    }

    .base-ki-suche-serp-title {
        font-size: var(--font-size-base);
    }
}

.base-home-hero-ki-suche-autosuggest-data {
    display: none;
}

.base-home-hero-ki-suche-autosuggest-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    margin-top: 0.35rem;
    max-width: 100%;
    max-height: 14rem;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 0.25rem 0;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.base-home-hero-ki-suche-autosuggest-panel[hidden] {
    display: none !important;
}

.base-home-hero-ki-suche-autosuggest-option {
    padding: 0.5rem 0.85rem;
    font-size: var(--font-size-base);
    line-height: 1.35;
    color: var(--color-text);
    cursor: pointer;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.base-home-hero-ki-suche-autosuggest-option[aria-selected="true"] {
    background-color: var(--color-gray-10);
}
