/*
 * Design angelehnt an www.tg-neuenhasslau.de (Joomla-Template Purity III):
 * Vereinsrot #cc0000, eckige Kanten, Helvetica/Arial. Alles lokal, keine externen Schriften.
 */
:root {
    --red: #cc0000;        /* Hauptfarbe (Navigation, Buttons, Links) */
    --red-dark: #b30000;   /* Raender, Logo-Bereich */
    --red-hover: #990000;  /* Buttons beim Ueberfahren */
    --link-hover: #800000;
    --nav-text: #ffcccc;   /* Menuetext auf Rot */
    --fg: #444444;
    --heading: #333333;
    --muted: #666666;
    --soft: #999999;
    --bg: #ffffff;
    --panel: #f7f7f7;
    --line: #dddddd;
    --line-soft: #eeeeee;
    --ok: #468847;  --ok-bg: #dff0d8;  --ok-line: #d6e9c6;
    --err: #b94a48; --err-bg: #f2dede; --err-line: #ebccd1;
    --warn: #8a6d3b; --warn-bg: #fcf8e3; --warn-line: #faebcc;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 15px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--fg);
    background: var(--bg);
    display: flex; flex-direction: column; min-height: 100vh;
}

/* ---------- Kopfbereich (rote Leiste wie auf der Vereinswebseite) ---------- */
.top {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
    padding: 0 1rem; background: var(--red); border-bottom: 1px solid var(--red-dark); color: #fff;
}
.brand {
    display: flex; align-items: center; gap: .65rem; padding: .45rem 0;
    color: #fff; text-decoration: none; font-size: 1.1rem; line-height: 1.15;
}
.brand img { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.brand span { display: flex; flex-direction: column; font-weight: bold; }
.brand small { font-weight: normal; font-size: .82rem; color: var(--nav-text); }
.brand:hover, .brand:focus { color: #fff; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.top nav a, .top nav .link {
    display: inline-block; padding: .9rem .75rem; color: var(--nav-text); text-decoration: none; font-size: .95rem;
}
.top nav a:hover, .top nav a:focus, .top nav .link:hover, .top nav .link:focus { color: #fff; background: var(--red-dark); text-decoration: none; }
.top button.link { background: none; border: 0; cursor: pointer; font: inherit; }

/* ---------- Inhalt ---------- */
main { width: 100%; max-width: 980px; margin: 1.25rem auto; padding: 0 1rem; flex: 1; }
h1 { font-size: 1.55rem; font-weight: normal; color: var(--heading); margin: .4rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--red); }
h2 { font-size: 1.2rem; font-weight: normal; color: var(--heading); margin: .2rem 0 .75rem; }
h3 { font-size: 1.05rem; color: var(--heading); margin: 1rem 0 .5rem; }
a { color: var(--red); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }
code { font-family: Consolas, Monaco, "Courier New", monospace; font-size: .9em; background: var(--panel); padding: 0 .25em; }

.card { background: #fff; border: 1px solid var(--line); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
a.card { display: block; color: var(--muted); text-decoration: none; }
a.card strong { color: var(--red); font-size: 1.05rem; }
a.card:hover, a.card:focus { background: var(--panel); border-color: var(--red); text-decoration: none; }

/* ---------- Formulare ---------- */
label { display: block; font-weight: bold; color: var(--heading); margin: .8rem 0 .3rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=file], select, textarea {
    width: 100%; padding: .55rem .65rem; font: inherit; color: var(--muted);
    background: #fff; border: 1px solid #cccccc; border-radius: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px rgba(204,0,0,.18); }
.check { display: flex; gap: .5rem; align-items: center; font-weight: normal; color: var(--fg); margin: .35rem 0; }
.check input { width: auto; }
.row { display: flex; gap: .5rem; }
.row input { flex: 1; }

button, .btn {
    display: inline-block; padding: .55rem 1.1rem; font: inherit; line-height: 1.3; cursor: pointer; text-decoration: none;
    color: #fff; background: var(--red); border: 1px solid var(--red-dark); border-radius: 0;
}
button:hover, button:focus, .btn:hover, .btn:focus { background: var(--red-hover); border-color: #750000; color: #fff; text-decoration: none; }
button.secondary, .btn.secondary { background: #fff; color: var(--red); border-color: var(--red); }
button.secondary:hover, button.secondary:focus, .btn.secondary:hover, .btn.secondary:focus { background: var(--panel); color: var(--link-hover); }
button.link { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; }
button.link:hover, button.link:focus { color: var(--link-hover); text-decoration: underline; background: none; }
form.inline { display: inline; margin: 0; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { border-bottom: 2px solid var(--line); color: var(--heading); background: var(--panel); }
tfoot th { border-top: 2px solid var(--line); background: var(--panel); }
tbody tr:hover { background: #fafafa; }

/* ---------- Hinweise ---------- */
.notice { padding: .6rem .85rem; border: 1px solid var(--line); background: #fff; }
.notice.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.notice.err { color: var(--err); background: var(--err-bg); border-color: var(--err-line); }
td .notice { display: inline-block; padding: .05rem .45rem; }
.err { color: var(--err); }
.draft { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); padding: .6rem .85rem; }
.muted { color: var(--soft); font-size: .92rem; }
.badge { display: inline-block; padding: .05rem .5rem; margin: 0 .2rem .2rem 0; font-size: .85rem; color: var(--red-dark); background: #fff0f0; border: 1px solid #f3c6c6; }

/* ---------- Fusszeile (wie t3-footer) ---------- */
footer { background: var(--panel); color: var(--muted); border-top: 1px solid var(--line-soft); padding: 1.25rem 1rem 2rem; font-size: .88rem; text-align: center; }
footer a { color: var(--muted); }
footer a:hover, footer a:focus { color: var(--red); }

/* ---------- Smartphone ---------- */
@media (max-width: 640px) {
    body { font-size: 16px; } /* verhindert Zoom bei Eingabefeldern auf iOS */
    .top { padding: 0 .75rem; }
    nav { width: 100%; border-top: 1px solid var(--red-dark); }
    .top nav a, .top nav .link { padding: .6rem .55rem; }
    main { margin-top: .75rem; }
    th, td { padding: .4rem .35rem; }
    .card { padding: .85rem; }
}
