/*
 * Gestaltung nach 10-ux-senioren.md.
 *
 * Grosse Schrift, grosse Flaechen, viel Ruhe. Der Knopf "Fertig" ist 96 px
 * hoch -- das ist keine Geschmacksfrage, sondern der Wert aus dem Entwurf.
 */
:root {
    --papier: #faf8f4;
    --tinte: #1d1a16;
    --leise: #6a6259;
    --rand: #d6cfc4;
    --ton: #2f6f4f;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--papier);
    color: var(--tinte);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 22px;
    line-height: 1.5;
}

.mitte {
    max-width: 34rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

label {
    display: block;
    margin-bottom: 0.25rem;
}

.leise { color: var(--leise); font-size: 0.85em; }

input[type="text"], input[type="password"], textarea {
    width: 100%;
    font-size: 1.4rem;
    padding: 0.9rem 1rem;
    border: 2px solid var(--rand);
    border-radius: 12px;
    background: #fff;
    color: var(--tinte);
}

input:focus, button:focus {
    outline: 3px solid var(--ton);
    outline-offset: 2px;
}

.grossertaste {
    min-height: 96px;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    background: var(--ton);
    border: none;
    border-radius: 16px;
    padding: 0 1.5rem;
    cursor: pointer;
}

.grossertaste:disabled { opacity: 0.6; }

.kleinertaste {
    min-height: 56px;
    font-size: 1.1rem;
    color: var(--tinte);
    background: transparent;
    border: 2px solid var(--rand);
    border-radius: 12px;
    cursor: pointer;
}

/* Der Pegel: der einzige Beweis, dass das Mikrofon laeuft. */
.pegelrahmen {
    height: 28px;
    border: 2px solid var(--rand);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.pegel {
    height: 100%;
    width: 0%;
    background: var(--ton);
    transition: width 100ms linear;
}

.laufzeit {
    font-size: 2.4rem;
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.hinweis { color: var(--leise); min-height: 1.5em; margin: 0; }

.vorwarnung {
    background: #fff5da;
    border: 2px solid #e6d08a;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 0;
}

/* --- Stammbaum-Verwaltung --- */
.breit { max-width: 48rem; }

.kopf {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kopf nav a { color: var(--ton); }

.personenliste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.personzeile {
    width: 100%;
    min-height: 64px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1.15rem;
    background: #fff;
    border: 2px solid var(--rand);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.personzeile:hover { border-color: var(--ton); }
.pname { font-weight: 600; }
.pzusatz { font-size: 0.85em; white-space: nowrap; }

.feldpaar { display: flex; gap: 1rem; flex-wrap: wrap; }
.feldpaar > div { flex: 1 1 12rem; }

.knopfreihe { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.75rem 0; }

.wahl {
    min-height: 56px;
    font-size: 1.05rem;
    padding: 0 1.1rem;
    background: #fff;
    color: var(--tinte);
    border: 2px solid var(--rand);
    border-radius: 12px;
    cursor: pointer;
}

.wahl.gewaehlt { background: var(--ton); color: #fff; border-color: var(--ton); }

details { border: 2px solid var(--rand); border-radius: 12px; padding: 1rem; background: #fff; }
summary { font-size: 1.15rem; font-weight: 600; cursor: pointer; }
details[open] summary { margin-bottom: 1rem; }
h2 { font-size: 1.7rem; margin: 0.5rem 0 0; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
