:root {
  color-scheme: light;
  --bg: #f8faf6; --fg: #263d38; --karte: #fff; --akzent: #087d79;
  --rand: #dfe9e2; --muted: #5f756b; --fehler: #b52e45; --ok: #08744e; --eigen: #fff4c2;
  --shadow: 0 12px 40px #345b450a;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.55; }
body > header { min-height: 88px; padding: 18px max(24px, calc((100vw - 1200px) / 2)); display: flex; align-items: center; flex-wrap: wrap; gap: 20px; background: var(--karte); border-bottom: 1px solid var(--rand); }
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; color: var(--fg); text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #e1f3e8; color: #087d79; }
.brand-mark svg { width: 30px; height: 30px; }
.brand h1 { margin: 0; font-size: 20px; letter-spacing: -.6px; line-height: 1.3; }
.brand small { display: block; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; margin-top: 3px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
nav span { color: var(--muted); margin-right: 12px; }
main { max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px; }
h2 { margin: 0 0 24px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -1px; line-height: 1.2; }
h3 { margin: 0 0 16px; font-size: 18px; }
p { margin: 0 0 20px; }
a { color: var(--akzent); text-underline-offset: 4px; }
button, .button-link { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 9px; background: var(--akzent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s; }
button:hover, .button-link:hover { background: #09645f; box-shadow: 0 4px 14px #087d7925; }
button:disabled { opacity: .5; cursor: default; }
nav button, button[type="button"] { background: var(--karte); border-color: var(--rand); color: var(--fg); }
nav button { border-color: transparent; }
nav button:hover, button[type="button"]:hover { background: #e9f3f3; }
nav button[aria-current="page"] { background: #e1f2ef; color: var(--akzent); }
:focus-visible { outline: 3px solid #22b8a7; outline-offset: 3px; }
input, select { min-height: 44px; padding: 10px 12px; border: 1px solid var(--rand); border-radius: 8px; background: var(--karte); color: var(--fg); font: inherit; font-size: 14px; max-width: 100%; }
input:hover, select:hover { border-color: #93aab8; }
input[type="checkbox"] { min-height: auto; width: 18px; height: 18px; accent-color: var(--akzent); }
.formular { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; margin-bottom: 24px; padding: 24px; background: var(--karte); border: 1px solid var(--rand); border-radius: 14px; box-shadow: var(--shadow); }
.formular label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.formular label.check { display: flex; align-items: center; align-self: center; max-width: 320px; }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 14px; padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.tabelle { overflow-x: auto; background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; margin-bottom: 24px; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--rand); font-size: 14px; vertical-align: middle; }
th { background: #f3f8f2; font-size: 11px; color: var(--muted); letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f3f9f8; }
td button { padding: 6px 10px; min-height: 34px; font-size: 12px; margin: 2px; }
tr.inaktiv td { opacity: .55; }
th.zahl, td.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.eigen td, tr.eigen:hover td { background: var(--eigen); }
small, .hinweis, .leer { color: var(--muted); }
.hinweis { font-size: 13px; line-height: 1.7; }
.leer { padding: 28px; margin: 0; }
#meldung { max-width: 1152px; margin: 16px auto 0; }
#meldung:empty { display: none; }
#meldung:not(:empty) { padding: 12px 18px; border: 1px solid currentColor; border-radius: 9px; background: var(--karte); }
#meldung.fehler { color: var(--fehler); }
#meldung.ok { color: var(--ok); }
.eyebrow { display: block; color: var(--akzent); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-bottom: 14px; }
.login-layout { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 570px; background: var(--karte); border: 1px solid var(--rand); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin-top: 22px; }
.login-intro { position: relative; overflow: hidden; background: linear-gradient(135deg, #e7f6ed 0%, #f0f8df 65%, #fff5da 100%); padding: 54px 48px; color: #24483d; }
.login-intro .eyebrow { color: #087d79; }
.login-intro h2 { font-size: clamp(34px, 4vw, 50px); max-width: 420px; letter-spacing: -2px; line-height: 1.1; }
.login-intro p { color: #526e61; max-width: 330px; font-size: 16px; }
.target-art { width: 290px; height: 290px; border: 1px solid #398b6430; border-radius: 50%; position: absolute; right: -58px; bottom: -65px; box-shadow: 0 0 0 42px #ffffff18, 0 0 0 43px #398b641a, 0 0 0 86px #ffffff14, 0 0 0 87px #398b6412; }
.target-art::before { content: ''; position: absolute; inset: 52px; border: 1px solid #398b6440; border-radius: 50%; }
.target-art::after { content: ''; position: absolute; inset: 105px; border: 18px solid #78bda0; border-radius: 50%; box-shadow: 0 0 40px #61d7c71a; }
.intro-note { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; margin-top: 55px; font-size: 13px; color: #526e61; }
.intro-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #388568; }
.login-panel { padding: 54px 48px; align-self: center; }
.login-panel h2 { margin-bottom: 12px; }
.login-panel > p { color: var(--muted); font-size: 14px; }
.login-panel .formular { display: grid; padding: 0; border: 0; box-shadow: none; gap: 20px; margin: 28px 0 24px; }
.login-panel input { width: 100%; min-height: 48px; }
.login-panel button { min-height: 48px; }
.login-public { border-top: 1px solid var(--rand); padding-top: 22px; font-size: 13px; color: var(--muted); }
.login-public a { display: inline-block; margin-top: 8px; font-weight: 600; }
.page-intro { max-width: 1200px; margin: 36px auto 0; padding: 0 24px; }
.page-intro h2 { margin-bottom: 12px; }
.page-intro p { color: var(--muted); }
.public-page main > h2 { font-size: 21px; margin-top: 30px; margin-bottom: 16px; }
.class-picker { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
footer { max-width: 1200px; padding: 0 24px 28px; margin: auto; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 16px; }
body.einbettung header, body.einbettung .page-intro, body.einbettung footer { display: none; }
body.einbettung main { padding: 12px; }
@media (max-width: 800px) {
  body > header { padding: 16px 20px; }
  nav { width: 100%; }
  main { padding: 28px 16px 40px; }
  .login-layout { grid-template-columns: 1fr; margin-top: 0; }
  .login-intro { padding: 32px; }
  .login-intro h2 { max-width: 360px; }
  .intro-note { margin-top: 28px; }
  .login-panel { padding: 32px; }
  .target-art { width: 220px; height: 220px; right: -100px; }
  .target-art::after { inset: 78px; border-width: 12px; }
  .formular { padding: 18px; }
  .formular label:not(.check) { flex: 1 1 180px; }
  th, td { padding: 12px; }
  #meldung { margin: 12px 16px 0; }
}
.verwaltung-intro { margin-bottom: 30px; }
.verwaltung-intro h2 { margin-bottom: 12px; }
.verwaltung-intro > p { color: var(--muted); }
.ablauf-hinweis { padding: 16px 20px; background: #eaf4e9; border: 1px solid #d4e6d5; border-radius: 12px; font-size: 14px; }
.verwaltung-bereiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.verwaltung-karte { min-width: 0; background: var(--karte); border: 1px solid var(--rand); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.bereich-kopf { display: flex; align-items: flex-start; gap: 16px; padding: 26px; border-bottom: 1px solid var(--rand); background: #fbfdf9; }
.bereich-nummer { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #e1f3e8; color: var(--akzent); font-weight: 700; font-size: 14px; }
.bereich-kopf h3 { margin: 0 0 6px; font-size: 21px; }
.bereich-kopf p { margin: 0; color: var(--muted); font-size: 14px; }
.verwaltung-formular.formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px; padding: 26px; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.verwaltung-formular label { min-width: 0; }
.verwaltung-formular input, .verwaltung-formular select { width: 100%; }
.verwaltung-formular small { font-size: 12px; font-weight: 400; line-height: 1.5; }
.feld-breit, .formular-abschluss, .zeitfenster { grid-column: 1 / -1; }
.formular-abschluss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--rand); }
.formular-abschluss span { flex: 1 1 180px; font-size: 12px; color: var(--muted); }
.runden-formular.formular { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zeitfenster { min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--rand); border-radius: 12px; background: #f8faf6; }
.zeitfenster legend { padding: 0 8px; font-size: 14px; font-weight: 600; }
.zeitfenster > p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.zeitfenster-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
select:disabled { background: #f2f5f1; color: var(--muted); }
@media (max-width: 950px) { .verwaltung-bereiche { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .verwaltung-formular.formular, .runden-formular.formular, .zeitfenster-felder { grid-template-columns: 1fr; }
  .bereich-kopf, .verwaltung-formular.formular { padding: 20px; }
  .formular-abschluss button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.status { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef3ef; color: var(--muted); }
.status.aktiv { background: #e1f3e8; color: var(--ok); }
.status.offen { background: var(--eigen); color: #6b5200; }
.status.gesperrt { background: #fbe7ea; color: var(--fehler); }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.aktionen button { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.link-kasten code { display: block; margin-top: 8px; word-break: break-all; }
tr.inaktiv td { opacity: .6; }
.pw-feld { position: relative; display: block; }
.pw-feld input { width: 100%; padding-right: 52px; }
.pw-feld .pw-auge, .pw-feld .pw-auge:hover { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 44px; min-height: 40px; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--muted); }
.pw-feld .pw-auge:hover { color: var(--akzent); }
.pw-auge svg { width: 20px; height: 20px; }
.login-layout.einzeln { grid-template-columns: 1fr; max-width: 600px; min-height: 0; margin-left: auto; margin-right: auto; }
.gruppe-vereine { padding: 20px 26px; border-bottom: 1px solid var(--rand); }
.gruppe-vereine:last-child { border-bottom: 0; }
.gruppe-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.verein-auswahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin-bottom: 14px; }
.verein-auswahl label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.tabelle.eingebettet { margin: 0; border: 0; border-top: 1px solid var(--rand); border-radius: 0; box-shadow: none; }
.sperr-hinweis { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--eigen); color: #6b5200; font-size: 13px; }
.kopf-rechts { margin-left: auto; }
[hidden] { display: none !important; }
input:disabled, select:disabled { background: #f1f4f2; color: var(--muted); cursor: not-allowed; }

/* Klar erkennbare Karten und lebendige, helle Wertungsbereiche. */
:root { --rand: #b9cec4; --shadow: 0 6px 0 #dce9e2, 0 16px 32px #294c3c0c; }
.verwaltung-karte, .karte, .login-layout { border: 2px solid var(--rand); }
.bereich-kopf { background: linear-gradient(110deg, #e0f3e9, #f5faed); border-bottom: 2px solid var(--rand); }
.bereich-nummer { background: #087d79; color: white; box-shadow: 0 3px 0 #055f5b; }
.verwaltung-karte:nth-child(even) .bereich-kopf { background: linear-gradient(110deg, #e4f1fc, #edf7f8); }
.verwaltung-karte:nth-child(even) .bereich-nummer { background: #276b9a; box-shadow: 0 3px 0 #1c5279; }
.zeitfenster { border: 2px solid #c0d6c7; background: #eff7ed; }
.public-page .page-intro { padding-top: 30px; padding-bottom: 30px; border-bottom: 3px solid #8bc7b2; background: radial-gradient(ellipse at right, #d7f2e3, transparent 65%); }
.public-page .page-intro h2 { font-size: clamp(32px, 5vw, 48px); }
.class-picker { padding: 8px 12px; background: #eaf6ee; border: 1px solid #b9cec4; border-radius: 12px; color: var(--fg); font-weight: 600; }
.ergebnis-ueberblick { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; padding: 26px; border: 2px solid #89beaa; border-radius: 16px; background: linear-gradient(120deg, #dcf3e6, #f2f9df); }
.ergebnis-ueberblick h2 { margin-bottom: 8px; }
.ergebnis-ueberblick p { margin: 0; color: var(--muted); }
.ergebnis-kennzahlen { display: flex; flex-wrap: wrap; gap: 12px; }
.ergebnis-kennzahlen > span { display: grid; min-width: 130px; padding: 14px 20px; border: 1px solid #a9c9ba; border-radius: 12px; background: #ffffffc9; font-size: 12px; color: var(--muted); }
.ergebnis-kennzahlen strong { font-size: 28px; line-height: 1.3; color: #086a62; font-variant-numeric: tabular-nums; }
.wertung-karte { margin-bottom: 32px; border: 2px solid #8db5aa; border-radius: 16px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.wertung-kopf { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 24px; background: #ddf3e9; border-bottom: 2px solid #8db5aa; }
.wertung-kopf h2 { font-size: 23px; margin: 0 0 6px; letter-spacing: -.5px; }
.wertung-kopf p { margin: 0; font-size: 13px; color: #48675b; }
.wertung-anzahl { padding: 6px 12px; background: white; border: 1px solid #a1c8b8; border-radius: 99px; font-size: 12px; font-weight: 600; }
.wertung-karte:nth-of-type(2) { border-color: #98b6d4; }
.wertung-karte:nth-of-type(2) .wertung-kopf { background: #e5f0fc; border-color: #98b6d4; }
.wertung-karte:nth-of-type(3) { border-color: #c8b586; }
.wertung-karte:nth-of-type(3) .wertung-kopf { background: #fff3d4; border-color: #c8b586; }
.wertung-karte .tabelle { border: 0; border-radius: 0; margin: 0; box-shadow: none; }
.wertung-karte table { white-space: nowrap; }
.wertung-karte th { background: #f0f5f2; color: #435e54; }
.wertung-karte td { padding-top: 17px; padding-bottom: 17px; }
.wertung-karte tbody tr:nth-child(even) { background: #f6f9f7; }
.wertung-karte tbody tr:hover td { background: #e8f5f0; }
.wertung-karte td:nth-child(2) { font-weight: 600; }
.wertung-karte th:last-child, .wertung-karte td:last-child { background: #e4f3ee; border-left: 2px solid #bad7cb; color: #075e57; }
.wertung-karte td:last-child { font-size: 16px; }
.wertung-karte tr.eigen td { background: #fff1bf; }
.wertung-karte tr.eigen td:first-child { box-shadow: inset 4px 0 #c49118; }
.rang { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 9px; background: #edf2ef; color: #4a6459; font-weight: 700; font-variant-numeric: tabular-nums; }
.rang-1 { background: #ffe8a0; color: #6c4c08; border: 1px solid #ddba52; }
.rang-2 { background: #e6edf5; color: #42566e; border: 1px solid #b5c6d9; }
.rang-3 { background: #f5dfca; color: #805122; border: 1px solid #d9b490; }
.ergebnis-hinweis { padding: 20px 24px; border: 1px solid #c8d8ce; border-left: 4px solid var(--akzent); background: #eef5ec; border-radius: 12px; }
@media (max-width: 600px) {
  .ergebnis-ueberblick, .wertung-kopf { padding: 20px; }
  .ergebnis-kennzahlen { width: 100%; }
  .ergebnis-kennzahlen > span { flex: 1; min-width: 110px; }
  .wertung-kopf h2 { font-size: 20px; }
}
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 9px; color: var(--akzent); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-link:hover { background: #e9f3f3; }
.begegnung-team h3 small { margin-left: 8px; font-weight: 500; }
.begegnung-team input.serie { width: 72px; min-height: 38px; padding: 6px 8px; text-align: right; }
.gegen { color: var(--muted); font-weight: 400; font-size: .7em; margin: 0 6px; }
.ablehnung { margin-top: 12px; }
.entscheidung textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--rand); border-radius: 8px; font: inherit; }
.entscheidung .formular { display: grid; gap: 12px; }
button.ablehnen { background: var(--fehler); }
button.ablehnen:hover { background: #962338; }
.freigabe-begegnung { margin-bottom: 28px; padding: 20px; border: 2px solid var(--rand); border-radius: 16px; background: #fbfdf9; }
td.zahl, th.zahl { text-align: right; }
button[type="button"].aktion { background: var(--akzent); border-color: transparent; color: #fff; }
button[type="button"].aktion:hover { background: #09645f; }
