/* Startkarte: Formular zum Erstellen der PDF-Startkarte */
:root {
    --bg: #f3f6f8;
    --surface: #ffffff;
    --fg: #16232c;
    --muted: #5b6b76;
    --line: #d9e1e6;
    --accent: #1f5f8b;
    --warn: #a2471a;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f171d; --surface: #16212a; --fg: #e4ecf1; --muted: #93a4b0;
        --line: #2a3a46; --accent: #7db4dc; --warn: #f0a070;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.45; }
.wrap { max-width: 760px; margin: 0 auto; padding-inline: 16px; padding-block: 24px 48px; }
a { color: var(--accent); }
h1 { margin: 0; font-size: 26px; }
.kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.zurueck { margin-top: 0; font-size: 14px; }

fieldset { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 14px 16px 16px; margin: 0 0 16px; min-width: 0; }
legend { font-weight: bold; padding: 0 6px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; }
input, select, button { font: inherit; font-size: 15px; color: var(--fg); }
input, select { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); min-width: 0; }
input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.felder .breit { grid-column: 1 / -1; }

.spieler { display: grid; grid-template-columns: 210px 1fr; gap: 4px 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.spieler:last-of-type { border-bottom: 0; }
.spieler label { font-size: 14px; color: var(--fg); }
.spieler label b { display: inline-block; width: 16px; }
.hinweis { grid-column: 2; font-size: 13px; color: var(--warn); }
.hinweis:empty { display: none; }
.info { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.aktion { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.aktion label { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; }
.aktion select { width: auto; }
button { background: var(--accent); color: var(--surface); border: 0; border-radius: 6px; padding: 9px 18px; font-weight: bold; cursor: pointer; }

.login { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin: 16px 0; }
.fehler { color: var(--warn); margin: 0; }
.termine { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.termine li + li { border-top: 1px solid var(--line); }
.termine a { display: block; padding: 9px 12px; text-decoration: none; color: var(--fg); }
.termine a:hover { background: var(--bg); }
.termine b { display: inline-block; min-width: 92px; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
    .felder { grid-template-columns: 1fr; }
    .spieler { grid-template-columns: 1fr; }
    .hinweis { grid-column: 1; }
}
