/* ==================================================
   KI-SIMULATION CSS
   Nur für /analysen/ki-simulation/
   Das Grunddesign von Grid und Card kommt aus content.css.
   ================================================== */

.ki-sim-root {
    width: 100%;
}

.ki-sim-title {
    margin-bottom: 12px !important;
    text-align: center !important;
}

.ki-sim-subtitle {
    margin: 0 0 26px !important;
    font-size: 1rem !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-shadow: none !important;
}

.ki-sim-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.ki-sim-field {
    min-width: 0;
}

.ki-sim-label {
    display: block;
    margin-bottom: 7px;
    color: #203665;
    font-size: 0.95rem;
    font-weight: 700;
}

.ki-sim-input {
    display: block;
    width: 100%;
    min-height: 84px;
    resize: vertical;
    padding: 11px 13px;
    border: 1px solid #b9c6d2;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.4;
}

.ki-sim-input:focus {
    border-color: #244c7c;
    outline: 3px solid rgba(36, 76, 124, 0.14);
}

.ki-sim-button {
    min-width: 220px;
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 6px;
    background: #244c7c;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.ki-sim-button:hover {
    background: #173657;
}

.ki-sim-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ki-sim-loading {
    width: 100%;
    height: 6px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(32, 54, 101, 0.18);
}

.ki-sim-loading[hidden] {
    display: none;
}

.ki-sim-loading-bar {
    width: 35%;
    height: 100%;
    border-radius: inherit;
    background: #81ab2e;
    animation: ki-sim-loading 1.1s ease-in-out infinite;
}

@keyframes ki-sim-loading {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

.ki-sim-answer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(32, 54, 101, 0.25);
}

.ki-sim-answer[hidden] {
    display: none;
}

.ki-sim-answer h3 {
    margin-bottom: 10px !important;
    font-size: 1rem !important;
    text-align: left !important;
}

.ki-sim-answer p {
    margin: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    text-align: left !important;
}

.ki-sim-message {
    margin-top: 10px !important;
    font-size: 10px !important;
    text-align: left !important;
}

.ki-sim-message.is-error {
    color: #9b2c2c !important;
}

.ki-sim-provider-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.ki-sim-provider-list[hidden] {
    display: none;
}

.ki-sim-provider-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(32, 54, 101, 0.22);
}

.ki-sim-provider-item:last-child {
    border-bottom: 0;
}

.ki-sim-provider-name,
.ki-sim-provider-domain,
.ki-sim-provider-type {
    display: block;
}

.ki-sim-provider-name {
    color: #203665;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 700;
}

.ki-sim-provider-domain,
.ki-sim-provider-type {
    margin-top: 2px;
    color: #203665;
    font-size: 10px;
    line-height: 1.35;
}

.ki-sim-table {
    width: 100%;
    border-collapse: collapse;
    color: #203665;
}

.ki-sim-table th,
.ki-sim-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(32, 54, 101, 0.22);
    text-align: left;
    vertical-align: top;
}

.ki-sim-table th {
    width: 34%;
    font-weight: 700;
}

.ki-sim-flat-list,
.ki-sim-numbered-list {
    margin: 0;
    padding-left: 22px;
    color: #203665;
}

.ki-sim-flat-list {
    list-style: disc;
}

.ki-sim-numbered-list {
    list-style: decimal;
}

.ki-sim-flat-list li,
.ki-sim-numbered-list li {
    margin-bottom: 8px;
}

.ki-sim-note {
    margin-top: 14px !important;
    font-size: 10px !important;
    text-align: left !important;
}

@media (max-width: 760px) {
    .ki-sim-form-row {
        grid-template-columns: 1fr;
    }

    .ki-sim-button {
        width: 100%;
        min-width: 0;
    }
}
