/* ════════════════════════════════════════════════════════
   ANZAHLRECHNER — LOCAL STYLES
   ════════════════════════════════════════════════════════ */

/* ── Textarea ── */
.text-area {
    width: 100%;
    min-height: 180px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: #e0e0f0;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.text-area::placeholder { color: #5a5a78; }
.text-area:focus {
    border-color: rgba(139,92,246,0.6);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}

/* ── Subtitle ── */
.subtitle {
    text-align: center;
    color: #8b8ba8;
    margin: -12px 0 28px 0;
    font-size: 0.9rem;
}

/* ── Result stats grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}

.stat-card {
    padding: 18px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    text-align: center;
    transition: border-color 0.25s, background 0.25s;
}
.stat-card:hover {
    border-color: rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.06);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    transition: transform 0.2s;
}
.stat-card:hover .stat-value {
    transform: scale(1.05);
}

.stat-label {
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #8b8ba8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Full-width card (if odd count) */
.stat-card.full {
    grid-column: 1 / -1;
}

/* ── Button row ── */
.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn-row .clear-btn {
    flex: 1;
}

/* ── Disclaimer spacing ── */
.anzahl-disclaimer {
    margin-top: 24px;
}

/* ── Footer spacing ── */
.anzahl-footer {
    margin-top: 40px;
}

/* ── Responsive ── */
@media (max-width: 400px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card.full { grid-column: auto; }
}
