/* SHV-App – Vereinsfarben: Rot, Weiß, Schwarz. Mobile-first. */
:root {
  --red: #c8102e;
  --red-dark: #9d0c24;
  --red-soft: #fbe9ec;
  --ink: #111111;
  --ink-soft: #2b2b2b;
  --paper: #ffffff;
  --bg: #f3f2ef;
  --line: #e2e0db;
  --muted: #6a6862;
  --ok: #1f7a3d;
  --ok-soft: #e6f4ea;
  --radius: 12px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1 { font-size: 1.7rem; line-height: 1.15; margin: 0 0 .35rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1.4rem 0 .6rem; }
p { margin: 0 0 .85rem; }
code { background: #eee; padding: .05em .35em; border-radius: 4px; font-size: .92em; }

/* Kopfzeile */
.topbar { background: var(--ink); color: #fff; border-bottom: 4px solid var(--red); padding-top: env(safe-area-inset-top); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 760px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand:hover { color: #fff; }
.brand-mark { background: var(--red); color: #fff; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; font-size: .95rem; }
.brand-name { font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav-btn { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; font: inherit; font-size: .95rem; background: none; border: 0; cursor: pointer; min-height: 40px; }
.nav a:hover, .nav-btn:hover { background: var(--ink-soft); color: #fff; }
.nav a[aria-current="page"] { background: var(--red); }

.banner { background: var(--red-soft); border-bottom: 1px solid #f0c3cb; font-size: .92rem; }
.banner-inner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }

/* Layout */
.container { width: 100%; max-width: 760px; margin: 0 auto; padding: 20px var(--gutter) 28px; }
main.container { flex: 1; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; padding-bottom: env(safe-area-inset-bottom); }
.footer .container { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.footer a { color: var(--muted); }
.page-head { margin-bottom: 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--red); margin: 0 0 .3rem; }
.eyebrow a { color: var(--red); text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.strong { font-weight: 650; }
.center { text-align: center; }
.hint { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }

/* Karten */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.card-muted { background: transparent; border-style: dashed; }
.card-accent { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.card-danger { border-color: #e7b5bd; }
.card-danger h2 { color: var(--red-dark); }
.prose h2 { margin-top: 1.4rem; font-size: 1.05rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 .85rem; }
.prose li { margin-bottom: .4rem; }

/* Meldungen */
.flash { border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; font-size: .95rem; border: 1px solid transparent; }
.flash-success { background: var(--ok-soft); border-color: #bfe0c8; color: #14522a; }
.flash-error { background: var(--red-soft); border-color: #f0c3cb; color: var(--red-dark); }
.flash-info { background: #eef1f6; border-color: #d3dae6; color: #26324a; }

/* Formulare */
.field { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid #c9c7c1; border-radius: 10px; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus { outline: 3px solid var(--red-soft); border-color: var(--red); }
input[readonly] { background: #f3f2ef; color: #444; }
.copy-field { font-size: 14px !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 4px 0 16px; line-height: 1.4; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 18px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; color: #fff; background: var(--red);
  border: 2px solid var(--red); border-radius: 10px; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn:focus-visible, .nav a:focus-visible, .nav-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--red); }
.btn-block { width: 100%; }
.btn-small { min-height: 38px; padding: 6px 12px; font-size: .9rem; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #c9c7c1; }
.btn-ghost:hover { background: #f3f2ef; color: var(--ink); border-color: var(--ink); }
.btn-danger { background: #fff; color: var(--red-dark); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--red); text-decoration: underline; cursor: pointer; }
.inline-form { display: inline; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.actions-tight { gap: 6px; margin: 0; }

/* Listen */
.list { list-style: none; margin: 0 0 12px; padding: 0; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row-top { align-items: flex-start; }
.list-row form { margin: 0; flex: none; }
.grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 99px; background: #ece9e2; color: #44413b; vertical-align: middle; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-red { background: var(--red); color: #fff; }

@media (max-width: 480px) {
  .list-row-top { flex-wrap: wrap; }
  .list-row-top > form, .list-row-top > .actions { width: 100%; }
  .list-row-top > form .btn { width: 100%; }
  .brand-name { font-size: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, input, select { transition: background-color .12s, border-color .12s, box-shadow .12s; }
}
