/**
 * Bauturbo-Schnellcheck - Styles
 * Extends the main website design system
 */

/* ===== COMPACT HERO ===== */
.page-hero--compact {
    min-height: 40vh;
}

.page-hero--compact .page-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
}

/* ===== CHECK FORM ===== */
.check-form-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.check-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .check-form__grid {
        grid-template-columns: 1fr;
    }
}

.check-form__submit {
    width: 100%;
    position: relative;
}

.check-form__submit .btn__loading {
    display: none;
}

.check-form__submit.is-loading .btn__text {
    display: none;
}

.check-form__submit.is-loading .btn__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.check-form__hint {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-align: center;
}

/* ===== RESULTS SECTION ===== */
.results-section {
    margin-top: var(--space-xl);
}

/* Map */
.results-map-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.results-map {
    height: 400px;
    width: 100%;
}

.map-legend {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-light);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.legend-marker {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

/* Results Panel */
.results-panel {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.results-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.results-header h2 {
    margin: 0;
    color: var(--text-dark);
}

.results-meta {
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Check Results */
.results-checks {
    margin-bottom: var(--space-xl);
}

.results-source {
    margin-bottom: var(--space-lg);
}

.results-source__title {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color-light);
}

.check-item:last-child {
    border-bottom: none;
}

.check-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.check-icon--ok { color: #22c55e; }
.check-icon--warnung { color: var(--warm); }
.check-icon--kritisch { color: var(--accent); }

.check-content {
    flex: 1;
}

.check-thema {
    font-weight: 600;
    color: var(--text-dark);
}

.check-ergebnis {
    color: var(--text-body);
}

.check-details {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* KI Einschätzung */
.results-ki {
    background: var(--bg-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.results-ki h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.results-ki p {
    margin: 0;
    color: var(--text-body);
    line-height: 1.6;
}

/* Eignung Badge */
.results-eignung {
    text-align: center;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.results-eignung--geeignet {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22c55e;
}

.results-eignung--bedingt_geeignet {
    background: rgba(201, 169, 110, 0.1);
    border: 2px solid var(--warm);
}

.results-eignung--nicht_geeignet {
    background: rgba(153, 1, 0, 0.1);
    border: 2px solid var(--accent);
}

.eignung-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.eignung-text {
    font-size: var(--text-lg);
    font-weight: 700;
}

.results-eignung--geeignet .eignung-text { color: #22c55e; }
.results-eignung--bedingt_geeignet .eignung-text { color: var(--warm); }
.results-eignung--nicht_geeignet .eignung-text { color: var(--accent); }

/* Actions */
.results-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

/* Hinweis */
.results-hinweis {
    background: var(--bg-light);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.results-hinweis p {
    margin: 0;
}

/* ===== EXPERT UPSELL ===== */
.expert-upsell {
    background: linear-gradient(135deg, var(--accent) 0%, #7a0100 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    color: white;
}

@media (max-width: 768px) {
    .expert-upsell {
        grid-template-columns: 1fr;
    }
}

.expert-upsell__content h3 {
    color: white;
    margin-bottom: var(--space-sm);
}

.expert-upsell__content p {
    opacity: 0.9;
    margin-bottom: var(--space-sm);
}

.expert-upsell__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expert-upsell__content li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: var(--space-xs);
    opacity: 0.9;
}

.expert-upsell__content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--warm);
}

.expert-form {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.expert-form .form-group label {
    color: white;
}

.expert-form .form-input {
    background: rgba(255,255,255,0.9);
    border-color: transparent;
}

.expert-form .btn {
    width: 100%;
    margin-top: var(--space-sm);
}

/* ===== INFO CARDS ===== */
.info-card {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.info-card__icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.info-card__title {
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.info-card__text {
    color: var(--text-body);
    margin: 0;
}

/* ===== ALERT ===== */
.alert--error {
    background: rgba(153, 1, 0, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
}
