/* Einspruchsfrist-Rechner (einspruchsfrist-rechner.html).
   Eigene Datei, damit nicht jede Seite der Website das mitlaedt. */

.rechner {
    display: grid;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.rechner-feld { display: grid; gap: 0.4rem; min-width: 0; }
.rechner-feld label { font-weight: 600; color: var(--text-primary); font-size: var(--text-base); }

.rechner select,
.rechner input[type="date"] {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    box-sizing: border-box;
    font: inherit;
    font-size: var(--text-base); /* 16 px: iOS zoomt sonst beim Antippen */
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    padding: 0.6rem 0.8rem;
}
.rechner select:focus-visible,
.rechner input:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }

.rechner-hinweis { font-size: var(--text-sm); line-height: 1.5; color: var(--text-muted); }

.rechner-ergebnis {
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}
/* Eigene display-Werte wuerden sonst das hidden-Attribut schlagen. */
.rechner-ergebnis[hidden] { display: none; }

.rechner-ergebnis p { margin: 0; }
.rechner-marke { font-size: var(--text-sm); color: var(--text-secondary); }
.rechner .rechner-datum {
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin: 0.2rem 0 0.5rem;
}
.rechner-status { font-size: var(--text-md); color: var(--text-primary); }
.rechner-status-rot { color: var(--status-nein); font-weight: 600; }

.rechner .rechner-schritte {
    margin: 1rem 0;
    padding-left: 1.25rem;
    font-size: var(--text-md);
    color: var(--text-secondary);
}
.rechner .rechner-schritte li { margin-bottom: 0.35rem; }

.rechner-grundlage { font-size: var(--text-sm); color: var(--text-muted); }
.rechner .rechner-kalender { margin-top: 0.75rem; font-size: var(--text-md); color: var(--text-primary); }
.rechner-kalender a { color: var(--accent-text); font-weight: 600; }

/* U-Untersuchungs-Rechner (blog/u-untersuchungen-fristen.html) nutzt dieselben Bausteine. */
.u-datum { white-space: nowrap; }

.rechner-vorbehalt { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 2rem; }

@media (max-width: 560px) {
    .rechner { padding: 1.1rem; }
}
