/* ==================================================
   AI SEARCH CSS
   ==================================================

   Zweck:
   Gestaltung der KI-Suchvorschau im 70/30 Grid.

   Aufbau:
   - links im 70%-Container: Eingabe + simulierte KI-Vorschau
   - rechts im 30%-Container: Erklärung

   Wichtig:
   Diese CSS-Datei ist bewusst kompakt gehalten.

   Angezeigt werden:
   - mögliche KI-Antwort
   - Beispielfragen

   Entfernt wurden:
   - Thematische Signale
   - Sichtbare Signale
   - Kurzhinweise
   - Mögliche Quellenanzeige
   - Audit-artige Vierer-Karten
================================================== */


/* ==================================================
   Äußere Kacheln
================================================== */

.card-ai-search,
.card-ai-explain {
    background: rgba(98, 106, 127, 0.12);
    border: 1px solid var(--color-dark-blue);
    border-radius: 5px;
}


/* ==================================================
   Linker 70%-Container: internes Layout
   --------------------------------------------------
   Innerhalb der linken Kachel gibt es zwei Bereiche:
   - links: Eingabe
   - rechts: Vorschau
================================================== */

.ai-search-simulator {
    display: grid;
    grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
    gap: 24px;
    width: 100%;
}

.ai-search-simulator * {
    box-sizing: border-box;
}


/* ==================================================
   Eingabebereich
================================================== */

.ai-search-panel h2 {
    margin: 0 0 18px;
    color: #203665;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    text-align: left;
    text-shadow: none;
}

.ai-search-panel p,
.card-ai-explain p {
    color: #203665;
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: left;
}

.ai-search-panel .field {
    margin-top: 22px;
}

.ai-search-panel label {
    display: block;
    margin-bottom: 8px;
    color: #203665;
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 700;
}

.ai-search-panel input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(32, 54, 101, 0.35);
    border-radius: 5px;
    padding: 11px 12px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: #203665;
    background: rgba(255, 255, 255, 0.85);
}

.ai-search-panel input:focus {
    outline: none;
    border-color: #203665;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(32, 54, 101, 0.16);
}

.ai-search-panel button {
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    border: 1px solid #203665;
    border-radius: 5px;
    padding: 11px 16px;
    background: #203665;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 700;
    cursor: pointer;
}

.ai-search-panel button:hover {
    background: #18294f;
}

.ai-search-panel button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ai-message {
    margin-top: 10px;
    color: #203665;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 700;
    text-align: left;
}

.ai-message.is-error {
    color: #972727;
}


/* ==================================================
   Vorschaufläche
================================================== */

.ai-overview-preview {
    padding: 18px;
    border: 1px solid rgba(32, 54, 101, 0.25);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.86);
}

.ai-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #203665;
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 700;
}

.ai-status {
    color: #203665;
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 700;
}


/* ==================================================
   Vorschau-Boxen
   --------------------------------------------------
   Gilt nur noch für:
   - mögliche KI-Antwort
   - Beispielfragen
================================================== */

.ai-answer-box,
.ai-question-box {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 5px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.ai-question-box {
    margin-bottom: 0;
}


/* ==================================================
   Überschriften innerhalb der Vorschau
   --------------------------------------------------
   Diese Regeln überschreiben bewusst große globale
   h3-Regeln aus content.css.
================================================== */

.ai-overview-preview h3,
.ai-answer-box h3,
.ai-question-box h3 {
    margin: 0 0 10px;
    color: #203665;
    font-size: 1.1rem;
    line-height: 1.25;
    font-weight: 700;
    text-align: left;
    text-shadow: none;
}


/* ==================================================
   Text innerhalb der Vorschau
================================================== */

.ai-answer-box p,
.ai-question-box li {
    margin: 0;
    color: #202124;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

.ai-question-box ul {
    margin: 0;
    padding-left: 18px;
}

.ai-question-box li + li {
    margin-top: 6px;
}


/* ==================================================
   Rechter 30%-Container
================================================== */

.card-ai-explain h3 {
    margin: 0 0 16px;
    color: #203665;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    text-shadow: none;
}

.card-ai-explain p {
    margin-bottom: 14px;
}


/* ==================================================
   Alte nicht mehr genutzte Elemente deaktivieren
   --------------------------------------------------
   Falls im HTML oder Cache noch alte Klassen vorhanden sind,
   werden sie ausgeblendet.
================================================== */

.ai-signal-grid,
.ai-signal-card,
.ai-preview-source-box,
.ai-source-card,
.ai-source-domain {
    display: none;
}


/* ==================================================
   Responsive
================================================== */

@media (max-width: 900px) {
    .ai-search-simulator {
        grid-template-columns: 1fr;
    }

    .ai-overview-preview {
        padding: 16px;
    }

    .ai-search-panel h2 {
        font-size: 1.8rem;
    }

    .card-ai-explain h3 {
        font-size: 1.25rem;
    }
}