@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(fonts/open-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(fonts/open-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url(fonts/open-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 800; font-display: swap; src: url(fonts/open-sans-latin-800-normal.woff2) format("woff2"); }

:root {
	--blue: #3d7ec1; --blue-d: #2c65a3; --blue-dd: #1d3f66; --navy: #16304f;
	--sky: #dbe9f7; --sky-2: #c4dbf2; --ice: #eef4fa; --bg: #e6eef7; --panel: #f5f8fc;
	--text: #1c2b3a; --muted: #6b7a8c; --line: #e3eaf2; --ok: #2e9d5b; --warn: #e0a526; --bad: #c0392b;
	--r-xl: 28px; --r-lg: 22px; --r-md: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Open Sans", Arial, sans-serif; font-size: 14px; }
button { font-family: inherit; }

/* Kniffel-Turnier-Tool – App (Open Sans liegt lokal im Plugin, keine Verbindung zu Google) */

/* Rahmen */
.frame { min-height: 100vh; padding: 18px; display: flex; }
.app { flex: 1; display: flex; background: var(--panel); border-radius: var(--r-xl); box-shadow: 0 20px 60px rgba(29, 63, 102, .12); overflow: hidden; }

/* Seitenleiste */
.side { width: 84px; flex: 0 0 84px; display: flex; flex-direction: column; align-items: center; padding: 22px 0; gap: 10px; background: #fff; }
.logo { width: 42px; height: 42px; border-radius: 12px; background: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nav a, .side .bottom a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #8a99ab; text-decoration: none; transition: .15s; position: relative; }
.nav a:hover, .side .bottom a:hover { background: var(--ice); color: var(--blue); }
.nav a.active { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(61, 126, 193, .35); }
.nav a svg, .side .bottom svg { width: 22px; height: 22px; }
.nav a .tip { position: absolute; left: 58px; background: var(--navy); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .15s; }
.nav a:hover .tip { opacity: 1; }
.side .bottom { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--sky-2), var(--blue)); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--sky-2); }

/* Hauptbereich */
.main { flex: 1; padding: 26px 30px 30px; overflow: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.hello h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.3px; }
.hello p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 0 18px; height: 44px; width: 280px; color: var(--muted); }
.search svg { width: 18px; height: 18px; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; }
.pill { height: 44px; border-radius: 999px; border: 0; padding: 0 20px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; }
.pill svg { width: 18px; height: 18px; }
.pill-dark { background: var(--navy); color: #fff; }
.pill-blue { background: var(--blue); color: #fff; }
.pill-white { background: #fff; color: var(--text); }
.pill-sky { background: var(--sky); color: var(--blue-dd); }
.select { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; height: 44px; padding: 0 16px 0 8px; font-weight: 600; cursor: pointer; }
.select .flag { width: 30px; height: 30px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; font-size: 15px; }
.select svg { width: 16px; height: 16px; color: var(--muted); }

/* Karten */
.grid { display: grid; gap: 18px; }
.g-top { grid-template-columns: 1.75fr 1fr; }
.g-mid { grid-template-columns: 1fr 1fr 1fr; margin-top: 18px; }
.card { background: #fff; border-radius: var(--r-lg); padding: 22px 24px; position: relative; overflow: hidden; }
.card h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card h3 .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--ice); color: var(--blue); display: grid; place-items: center; }
.card h3 .ic svg { width: 16px; height: 16px; }
.card .sub { color: var(--muted); font-size: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Hero */
.hero { min-height: 290px; background: radial-gradient(120% 140% at 85% 20%, #6aa6e0 0%, var(--blue) 45%, var(--blue-dd) 100%); color: #fff; padding: 30px 32px; }
.hero h2 { margin: 0; font-size: 36px; line-height: 1.12; font-weight: 800; letter-spacing: -.6px; max-width: 470px; }
.hero .date { margin-top: 12px; font-size: 15px; opacity: .92; display: flex; align-items: center; gap: 8px; }
.hero .date svg { width: 18px; height: 18px; }
.hero .badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.badge svg { width: 14px; height: 14px; flex: 0 0 auto; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #7ef0a7; }
.hero .bottom { position: absolute; left: 32px; right: 32px; bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.count { display: flex; align-items: baseline; gap: 8px; }
.count b { font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.count span { font-size: 14px; opacity: .9; }
.hero .pill-white { color: var(--blue-dd); }
.dice { position: absolute; right: 26px; top: 22px; width: 210px; height: 170px; opacity: .95; }

/* Kachel hellblau (wie „Hydration“) */
.sky { background: var(--sky); }
.slots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 16px 0 14px; }
.slots i { height: 18px; border-radius: 5px; background: #fff; display: block; }
.slots i.on { background: var(--blue); }
.slots i.half { background: var(--sky-2); }
.big { font-size: 46px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.big small { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.seg { display: flex; gap: 6px; }
.seg span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.7); font-weight: 700; font-size: 13px; color: var(--muted); }
.seg span.on { background: #fff; color: var(--blue-dd); box-shadow: 0 4px 10px rgba(29,63,102,.12); }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }

/* Balken (wie „Calories“) */
.bars { display: flex; gap: 4px; align-items: flex-end; height: 64px; margin: 14px 0 10px; }
.bars i { flex: 1; border-radius: 4px; background: var(--blue); display: block; }
.bars i.off { background: repeating-linear-gradient(90deg, #e9eff6 0 3px, #f6f9fc 3px 6px); }
.kpis { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.kpis div b { display: block; font-size: 18px; font-weight: 700; }
.kpis div span { font-size: 11px; color: var(--muted); }

/* Ring */
.ring { width: 130px; height: 130px; border-radius: 50%; background: conic-gradient(var(--blue) calc(var(--p) * 1%), var(--ice) 0); display: grid; place-items: center; margin: 14px auto 6px; }
.ring div { width: 98px; height: 98px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.ring b { font-size: 26px; font-weight: 800; display: block; line-height: 1; color: var(--text); }
.ring span { font-size: 11px; color: var(--muted); }

/* Liste letzte Anmeldungen */
.list { list-style: none; margin: 14px 0 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.ini { width: 36px; height: 36px; border-radius: 50%; background: var(--ice); color: var(--blue); font-weight: 700; display: grid; place-items: center; font-size: 13px; flex: 0 0 auto; }
.list .who { flex: 1; min-width: 0; }
.list .who b { display: block; font-size: 14px; font-weight: 600; }
.list .who span { font-size: 12px; color: var(--muted); }
.st { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.st-ok { background: #e3f4ea; color: var(--ok); }
.st-wait { background: #fff4d6; color: #8a6200; }
.st-blue { background: var(--ice); color: var(--blue); }

/* Tabellen / Reiter */
.tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; gap: 4px; margin-bottom: 16px; }
.tabs a { padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13px; }
.tabs a.on { background: var(--blue); color: #fff; }
.tabs a .n { opacity: .7; margin-left: 4px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; }
.act { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--blue-dd); cursor: pointer; }
.act.red { color: var(--bad); border-color: #f1d3cf; }
.nr { display: inline-block; font-weight: 800; color: var(--blue); background: var(--ice); border-radius: 8px; padding: 3px 9px; font-size: 13px; font-variant-numeric: tabular-nums; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.sum { font-weight: 800; color: var(--blue-dd); }
tr.lead td { background: #f3f8fd; }
tr.lead td:first-child { box-shadow: inset 4px 0 0 var(--blue); }
.entry { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.entry label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.entry input, .entry select { height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); padding: 0 14px; font: inherit; font-size: 17px; width: 130px; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; padding: 18px; gap: 18px; }
.login-art { border-radius: var(--r-xl); background: radial-gradient(120% 120% at 80% 10%, #7bb2e8 0%, var(--blue) 45%, var(--blue-dd) 100%); color: #fff; padding: 44px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.login-art h1 { font-size: 44px; line-height: 1.08; font-weight: 800; margin: 0; letter-spacing: -1px; max-width: 480px; }
.login-art p { font-size: 16px; opacity: .9; max-width: 420px; }
.login-art .dice { width: 330px; height: 270px; right: 40px; top: auto; bottom: 40px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.login-box { border-radius: var(--r-xl); background: #fff; display: grid; place-items: center; padding: 40px; }
.login-form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 28px; margin: 18px 0 6px; font-weight: 800; }
.login-form p { color: var(--muted); margin: 0 0 26px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field span { font-size: 13px; font-weight: 600; }
.field input { height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); padding: 0 16px; font: inherit; font-size: 15px; }
.field input:focus { outline: 2px solid var(--blue); border-color: var(--blue); background: #fff; }
.login-form .pill { width: 100%; justify-content: center; height: 52px; font-size: 15px; margin-top: 6px; }
.login-meta { display: flex; justify-content: space-between; font-size: 13px; margin: 4px 0 18px; }
.login-meta a { color: var(--blue); text-decoration: none; font-weight: 600; }

@media (max-width: 1100px) { .g-top, .g-mid { grid-template-columns: 1fr; } .login-wrap { grid-template-columns: 1fr; } .login-art { min-height: 260px; } }
@media (max-width: 760px) {
	.frame { padding: 0; } .app { border-radius: 0; flex-direction: column-reverse; }
	.side { width: auto; flex: 0 0 auto; flex-direction: row; padding: 10px 16px; justify-content: space-around; position: sticky; bottom: 0; box-shadow: 0 -6px 20px rgba(29,63,102,.08); }
	.side .logo, .side .bottom .ic-help { display: none; } .nav { flex-direction: row; flex: 0; } .side .bottom { flex-direction: row; }
	.main { padding: 18px 16px; } .top { flex-direction: column; align-items: flex-start; } .top-right { width: 100%; flex-wrap: wrap; } .search { width: 100%; }
	.hero h2 { font-size: 28px; } .dice { width: 140px; height: 110px; opacity: .35; } .count b { font-size: 42px; }
	.hero { min-height: 0; } .hero .bottom { position: static; margin-top: 22px; flex-direction: column; align-items: flex-start; }
	.login-art h1 { font-size: 32px; } .login-art .dice { width: 160px; height: 130px; opacity: .4; }
}


/* ===================================================================== */
/* Ergänzungen für die echte App                                         */
/* ===================================================================== */
[hidden] { display: none !important; }
a { color: var(--blue); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.frame { height: 100vh; }
.main { min-width: 0; }
.logo { text-decoration: none; }
.avatar { text-decoration: none; }
.avatar.on, .avatar:hover { box-shadow: 0 0 0 2px var(--blue); }
.side .bottom a .tip { position: absolute; left: 58px; background: var(--navy); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .15s; z-index: 5; }
.side .bottom a:hover .tip { opacity: 1; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.select { position: relative; }
.select.static { cursor: default; }
.select select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--text); padding-right: 22px; cursor: pointer; max-width: 320px; text-overflow: ellipsis; }
.select select:focus { outline: none; }
.select:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.select > svg { position: absolute; right: 14px; pointer-events: none; }
.select .flag { font-size: 11px; font-weight: 800; color: var(--blue-dd); letter-spacing: .3px; flex: 0 0 auto; }
.select .ms-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.pill:focus-visible, .act:focus-visible, .tabs a:focus-visible, .nav a:focus-visible { outline: 3px solid rgba(61,126,193,.45); outline-offset: 2px; }
.pill-glass { background: rgba(255,255,255,.16); color: #fff; }
.pill-glass:hover { background: rgba(255,255,255,.26); }
.pill-blue:hover { background: var(--blue-d); }
.pill-white:hover { background: var(--ice); }
.pill[disabled] { opacity: .6; cursor: default; }

/* Meldungen */
.kna-flash { border-radius: var(--r-md); padding: 12px 16px; margin: 0 0 16px; font-weight: 600; background: #e3f4ea; color: #1d6b3d; }
.kna-flash.is-error { background: #fbe9e7; color: #8e2a1f; }
.kna-flash.is-warning { background: #fff4d6; color: #6b4d00; }

/* Übersicht */
.hero { display: flex; flex-direction: column; }
.hero h2 { max-width: calc(100% - 230px); }
.hero .date { max-width: calc(100% - 230px); }
.hero-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.badge .dot.off { background: #ffb4a8; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--muted); text-align: right; }
.legend li { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 2px 0; }
.legend i { width: 12px; height: 12px; border-radius: 4px; background: #fff; display: inline-block; }
.legend i.on { background: var(--blue); }
.legend i.half { background: var(--sky-2); }
.kpi-week { font-size: 18px; white-space: nowrap; }
.kpis a, .kpis div { text-decoration: none; color: inherit; }
.kpis a:hover b { color: var(--blue); }
.list li.empty { color: var(--muted); }
.sub.link { color: var(--blue); font-weight: 600; text-decoration: none; }
.quick { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.st-grey { background: #eef1f4; color: var(--muted); }
.st { white-space: nowrap; display: inline-block; }

/* Listen */
.kna-toolbar { flex-wrap: wrap; margin-bottom: 4px; align-items: flex-start; }
.tabs { flex-wrap: wrap; }
.kna-listsearch { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; flex-wrap: wrap; }
.search-sm { height: 40px; width: 340px; max-width: 100%; }
.kna-reset { font-weight: 600; font-size: 13px; text-decoration: none; }
.card-table { padding: 8px 18px; }
.table-scroll { overflow-x: auto; }
.kna-list td { font-size: 13px; }
.kna-list td a[href^="mailto"] { color: var(--text); text-decoration: none; }
.kna-list td.empty { color: var(--muted); text-align: center; padding: 28px; }
.kna-list .hint { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.kna-list .hint.bad { color: var(--bad); font-weight: 600; }
.nl { color: #8a99ab; vertical-align: middle; }
.nl svg { width: 15px; height: 15px; vertical-align: -3px; }
.act { display: inline-block; text-decoration: none; white-space: nowrap; font-family: inherit; line-height: 1.3; }
.act:hover { background: var(--ice); }
.act.red:hover { background: #fdf0ee; }
.kna-foot { margin: 12px 4px 0; }
.kna-danger-zone { margin-top: 28px; text-align: right; }

/* Popups (Bestätigung, Person hinzufügen, Turniermodus) */
.kna-app .kna-modal-backdrop { position: fixed; inset: 0; background: rgba(22,48,79,.45); backdrop-filter: blur(3px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.kna-app .kna-modal-backdrop.is-open { display: flex; }
.kna-app .kna-modal { background: #fff; border-radius: var(--r-lg); max-width: 520px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(22,48,79,.3); padding: 26px 28px 22px; }
.kna-app .kna-modal.kna-modal-wide { max-width: 640px; }
.kna-app .kna-modal h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--text) !important; display: flex; align-items: center; gap: 8px; }
.kna-app .kna-modal h2 .dashicons { color: var(--bad); }
.kna-app .kna-modal.is-primary h2 .dashicons { color: var(--blue); }
.kna-app .kna-modal p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.kna-app .kna-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.kna-app .kna-modal-actions .button { height: 42px; border-radius: 999px; padding: 0 20px; font-weight: 600; }
.kna-app .kna-modal input[type=text], .kna-app .kna-modal input[type=email] { width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 6px 0; }

/* Profil */
.g-two { grid-template-columns: 1fr 1fr; }
.facts { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; margin: 18px 0; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-weight: 600; }
.card .field { margin-top: 14px; }

/* Login: Einzelkarte */
.login-wrap.one { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.login-form .logo { margin: 0; }
.login-form .kna-flash { margin-bottom: 18px; }
.login-meta label { display: inline-flex; gap: 6px; align-items: center; }

/* ------------------------------------------------------------------ */
/* Turniermodus in der App: WordPress-Admin-Klassen im App-Look         */
/* ------------------------------------------------------------------ */
.kna-app-turnier .kna-t > h1, .kna-app-turnier .wp-header-end { display: none; }
.kna-app-turnier .kna-t > .kna-t-live { margin: 0 0 12px; }
.kna-app-turnier h2 { font-size: 18px; font-weight: 800; margin: 26px 0 10px; }
.kna-app-turnier h2:first-child { margin-top: 0; }
.kna-app-turnier .description { color: var(--muted); font-size: 12px; }
.kna-app-turnier .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--blue-dd); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.kna-app-turnier .button:hover { background: var(--ice); }
.kna-app-turnier .button-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.kna-app-turnier .button-primary:hover { background: var(--blue-d); }
.kna-app-turnier .button-primary:disabled { opacity: .6; }
.kna-app-turnier .button-hero { height: 52px; padding: 0 30px; font-size: 16px; }
.kna-app-turnier .button-link { background: none; border: 0; cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.kna-app-turnier .button.kna-btn-danger, .kna-app .button-danger { color: var(--bad); border-color: #f1d3cf; }
.kna-app .kna-modal-actions .button-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.kna-app .kna-modal-actions .button-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.kna-app .kna-modal-actions .button { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.kna-app .kna-modal-actions .button.button-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.kna-app .kna-modal-actions .button.button-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.kna-app-turnier .button .dashicons { font-size: 16px; width: 16px; height: 16px; }
.kna-app-turnier input[type=text], .kna-app-turnier input[type=search], .kna-app-turnier input[type=number], .kna-app-turnier input[type=email], .kna-app-turnier select, .kna-app .kna-modal input:not([type=checkbox]):not([type=radio]) { height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); padding: 0 12px; font: inherit; font-size: 14px; color: var(--text); }
.kna-app-turnier input:focus, .kna-app-turnier select:focus, .kna-app .kna-modal input:focus { outline: 2px solid var(--blue); border-color: var(--blue); background: #fff; }
.kna-app-turnier .small-text { width: 76px; }
.kna-app-turnier .notice { border-radius: var(--r-md); padding: 4px 16px; margin: 0 0 14px; background: #e3f4ea; color: #1d6b3d; }
.kna-app-turnier .notice p { margin: 8px 0; }
.kna-app-turnier .widefat { width: 100%; border-collapse: collapse; background: #fff; }
.kna-app-turnier .widefat th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fff; }
.kna-app-turnier .widefat td { font-size: 14px; }
.kna-app-turnier .striped > tbody > tr:nth-child(odd) td { background: #fbfcfe; }

.kna-app-turnier .kna-t-start { background: #fff; border: 0; border-radius: var(--r-lg); padding: 30px 34px; margin: 0; max-width: 860px; }
.kna-app-turnier .kna-t-start-icon, .kna-app-turnier .kna-t-start-list .dashicons { color: var(--blue); }
.kna-app-turnier .kna-t-start h2 { font-size: 26px; }
.kna-app-turnier .kna-t-start-list { padding: 0; list-style: none; }
.kna-app-turnier .kna-t-start-hints { border-radius: var(--r-md); border-left: 0; }
.kna-app-turnier .button.kna-t-start-btn { height: 54px; line-height: 1; font-size: 17px; }
.kna-app-turnier .kna-t-running { background: #fff; border-left: 0; border-radius: var(--r-md); }
.kna-app-turnier .kna-t-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.kna-app-turnier .kna-t-card { border: 0; border-radius: var(--r-lg); padding: 16px 20px; min-width: 0; }
.kna-app-turnier .kna-t-card span { font-size: 12px; font-weight: 600; color: var(--muted); }
.kna-app-turnier .kna-t-card strong { font-size: 32px; font-weight: 800; color: var(--text); }
.kna-app-turnier .kna-t-card:first-child { background: var(--blue); }
.kna-app-turnier .kna-t-card:first-child span, .kna-app-turnier .kna-t-card:first-child strong, .kna-app-turnier .kna-t-card:first-child em { color: #fff; }
.kna-app-turnier .kna-t-tabs { display: inline-flex; flex-wrap: wrap; background: #fff; border-radius: 999px; padding: 5px; gap: 4px; margin: 0 0 4px; border: 0; }
.kna-app-turnier .kna-t-tabs .nav-tab { float: none; margin: 0; border: 0; background: none; padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13px; }
.kna-app-turnier .kna-t-tabs .nav-tab-active { background: var(--blue); color: #fff; }
.kna-app-turnier .kna-t-panel { background: #fff; border-radius: var(--r-lg); padding: 20px 22px; margin-top: 14px; }
.kna-app-turnier .kna-t-toolbar input[type=search] { min-width: 260px; }
.kna-app-turnier .kna-t-scrollbox { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.kna-app-turnier .kna-t-scrollbox thead th { box-shadow: inset 0 -1px 0 var(--line); }
.kna-app-turnier .kna-t-nr { font-family: inherit; font-weight: 800; color: var(--blue); background: var(--ice); border: 0; border-radius: 8px; padding: 3px 9px; font-size: 15px; font-variant-numeric: tabular-nums; }
.kna-app-turnier .kna-t-entry { border: 0; background: var(--ice); border-radius: var(--r-lg); top: 0; box-shadow: none; }
.kna-app-turnier .kna-t-field label { font-size: 12px; color: var(--muted); }
.kna-app-turnier .kna-t-field input, .kna-app-turnier .kna-t-field select { height: 48px; font-size: 18px; border-radius: 14px; background: #fff; }
.kna-app-turnier #kna-t-nr { font-family: inherit; font-weight: 700; }
.kna-app-turnier .kna-t-ranking thead tr:first-child th { background: #fff; }
.kna-app-turnier .kna-t-ranking th.kna-t-total, .kna-app-turnier .kna-t-ranking td.kna-t-sum { background: var(--ice); }
.kna-app-turnier .kna-t-ranking td { border-bottom: 1px solid var(--line); }
.kna-app-turnier .kna-t-sum { color: var(--blue-dd); font-weight: 800; }
.kna-app-turnier .kna-t-settings { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.kna-app-turnier .kna-t-flash { border-radius: var(--r-md); border-left: 0; }
.kna-app-turnier .kna-t-live { background: #e3f4ea; color: var(--ok); font-weight: 600; margin-left: 0; }
.kna-app-turnier .kna-t-beamer-link { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 1100px) {
	.g-two { grid-template-columns: 1fr; }
	.kna-app-turnier .kna-t-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.frame { height: auto; min-height: 100vh; }
	.app { min-height: 100vh; }
	.side { z-index: 50; }
	.nav a .tip, .side .bottom a .tip { display: none; }
	.select, .select select, .select .ms-name { max-width: 100%; width: 100%; }
	.hero h2, .hero .date { max-width: 100%; }
	.form-grid { grid-template-columns: 1fr; }
	.facts { grid-template-columns: 1fr; gap: 2px; }
	.facts dd { margin-bottom: 10px; }
	.kna-toolbar .top-right { width: 100%; }
	.kna-toolbar .top-right .pill { flex: 1; justify-content: center; }
	.legend { display: none; }
	/* Listen als Karten */
	.kna-list thead { display: none; }
	.kna-list, .kna-list tbody, .kna-list tr, .kna-list td { display: block; width: 100%; }
	.kna-list tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
	.kna-list td { border: 0; padding: 3px 0; display: flex; gap: 10px; }
	.kna-list td::before { content: attr(data-l); flex: 0 0 92px; color: var(--muted); font-size: 12px; }
	.kna-list td.empty::before { content: none; }
	.kna-app-turnier .kna-t-panel { padding: 14px; }
	.kna-app-turnier .kna-t-toolbar input[type=search] { min-width: 0; width: 100%; }
}

@media print {
	html, body { background: #fff; }
	.side, .top, .quick, .kna-danger-zone, .kna-flash { display: none !important; }
	.frame { padding: 0; height: auto; display: block; }
	.app { box-shadow: none; border-radius: 0; display: block; }
	.main { padding: 0; overflow: visible; }
	.kna-app-turnier .kna-t-panel { padding: 0; }
}
.kpis > * b { display: block; font-size: 18px; font-weight: 700; }
.kpis > * span { font-size: 11px; color: var(--muted); }
.side .bottom a.avatar { width: 42px; height: 42px; color: #fff; font-size: 14px; }
.side .bottom a.avatar:hover { background: linear-gradient(135deg, var(--sky-2), var(--blue)); color: #fff; }
.kna-list td b { white-space: nowrap; }

/* 2.1: Veranstalter-Bereiche */
.nav a { position: relative; }
.nav-sep { display: block; width: 26px; height: 1px; background: var(--line); margin: 6px auto; }
.nav a .cnt { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.sec-title { font-size: 18px; font-weight: 800; margin: 6px 0 14px; display: flex; align-items: center; gap: 8px; }
.sec-title .n { font-size: 12px; background: var(--ice); color: var(--blue); border-radius: 999px; padding: 2px 9px; }
.sec-row { margin: 22px 0 6px; flex-wrap: wrap; }
.sec-row .sec-title { margin: 0; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.req-card h3 { margin: 10px 0 0; font-size: 18px; }
.req-card .facts { grid-template-columns: 120px 1fr; font-size: 13px; margin: 14px 0; }
.req-card .acts { gap: 10px; }
.pill.red { color: var(--bad); }
.st-bad { background: #fbe9e7; color: var(--bad); }
.kna-ms-table td { vertical-align: middle; }
.kna-ms-table tr.is-off td { opacity: .65; }
.kna-ms-table a.small { font-size: 12px; text-decoration: none; }
.kna-ms-table .param { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); padding: 0 10px; font: inherit; font-size: 13px; }
.kna-ms-table .num-in { width: 90px; }
form.inline { display: inline; margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 42px; height: 24px; border-radius: 999px; background: #cfd9e4; position: relative; transition: .15s; flex: 0 0 auto; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { left: 21px; }
.switch input:focus-visible + span { outline: 3px solid rgba(61,126,193,.45); outline-offset: 2px; }
.switch em { font-style: normal; font-size: 12px; color: var(--muted); }
.kna-rejected { margin-top: 18px; background: #fff; border-radius: var(--r-lg); padding: 14px 20px; }
.kna-rejected summary { cursor: pointer; font-weight: 600; }
.kna-app .kna-modal select, .kna-app .kna-modal textarea { border-radius: 12px; border: 1px solid var(--line); background: var(--panel); padding: 10px 12px; font: inherit; font-size: 14px; color: var(--text); }
.kna-app .kna-modal select { height: 46px; }
.kna-app .kna-modal .field small { font-weight: 400; }
.kna-app .kna-modal .field input:disabled { opacity: .7; }
.ms-checks { border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 14px; margin: 4px 0 12px; max-height: 200px; overflow: auto; }
.ms-checks legend { font-size: 13px; font-weight: 600; padding: 0 6px; }
.kna-myreq { margin-top: 18px; }
.kna-myreq .row { flex-wrap: wrap; }
@media (max-width: 760px) {
	.nav-sep { width: 1px; height: 26px; margin: auto 4px; }
	.nav { gap: 4px; }
	.nav a { width: 42px; height: 42px; }
	.req-card .facts { grid-template-columns: 1fr; }
}

/* 2.1.1: Tooltips der Seitenleiste immer vor allen Karten */
.side { position: relative; z-index: 30; overflow: visible; }
.nav a .tip, .side .bottom a .tip { z-index: 1000; box-shadow: 0 6px 18px rgba(22,48,79,.25); }

/* 2.1.2: Meisterschafts-Auswahl als eigenes Menü im App-Design */
.ms-menu { padding: 0; position: relative; }
.ms-menu > summary { list-style: none; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 7px; border-radius: 999px; cursor: pointer; user-select: none; }
.ms-menu > summary::-webkit-details-marker { display: none; }
.ms-menu > summary:focus { outline: none; }
.ms-menu > summary:focus-visible { box-shadow: 0 0 0 3px rgba(61,126,193,.35); }
.ms-menu > summary > svg { position: static; width: 16px; height: 16px; color: var(--muted); transition: transform .15s; flex: 0 0 auto; }
.ms-menu[open] > summary > svg { transform: rotate(180deg); }
.ms-menu[open] { box-shadow: 0 0 0 2px var(--sky-2); }
.ms-menu.select:focus-within { box-shadow: none; }
.ms-menu[open].select:focus-within { box-shadow: 0 0 0 2px var(--sky-2); }
.ms-menu .flag { width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: var(--blue-dd); display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .3px; flex: 0 0 auto; }
.ms-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 360px; max-width: calc(100vw - 32px); background: #fff; border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(22,48,79,.22); padding: 10px; z-index: 900; cursor: default; }
.ms-panel-head { margin: 6px 10px 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.ms-filter { display: flex; align-items: center; gap: 8px; margin: 0 4px 8px; padding: 0 14px; height: 40px; border-radius: 999px; background: var(--panel); color: var(--muted); }
.ms-filter svg { width: 16px; height: 16px; }
.ms-filter input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; color: var(--text); }
.ms-panel ul { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow: auto; }
.ms-panel a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); text-decoration: none; color: var(--text); }
.ms-panel a:hover, .ms-panel a:focus-visible { background: var(--ice); outline: none; }
.ms-panel a.on { background: var(--ice); }
.ms-panel a.on .flag { background: var(--blue); color: #fff; }
.ms-panel .ms-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ms-panel .ms-txt b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-panel .ms-txt small { font-size: 12px; color: var(--muted); }
.ms-panel a > svg { width: 18px; height: 18px; color: var(--blue); flex: 0 0 auto; }
@media (max-width: 760px) {
	.ms-menu, .ms-menu > summary { width: 100%; }
	.ms-menu > summary .ms-name { flex: 1; }
	.ms-panel { left: 0; right: 0; width: auto; max-width: none; }
}

/* 2.1.4: Würfelgruppe mit 1er und 6er */
.hero .dice { width: 250px; height: 182px; top: 20px; right: 24px; }
.hero h2, .hero .date { max-width: calc(100% - 270px); }
@media (max-width: 760px) { .hero .dice { width: 150px; height: 110px; } .hero h2, .hero .date { max-width: 100%; } }
.login-art .dice { bottom: 84px; }
@media (max-width: 760px) { .login-art .dice { bottom: 40px; } }

/* 2.1.7: Hero wächst mit langen Namen – Countdown und Buttons rutschen nach unten statt zu überlappen */
.hero .bottom { position: static; margin-top: auto; padding-top: 24px; flex-wrap: wrap; }
.hero .badges { position: relative; z-index: 1; }
.hero h2 { overflow-wrap: break-word; }
.hero .date svg { flex: 0 0 auto; }
@media (max-width: 1300px) { .hero h2 { font-size: 30px; } .hero .dice { width: 200px; height: 146px; } .hero h2, .hero .date { max-width: calc(100% - 210px); } }
@media (max-width: 760px) { .hero h2 { font-size: 26px; } .hero h2, .hero .date { max-width: 100%; } .hero .dice { width: 150px; height: 110px; } }

/* 2.2: Hilfe & Touren */
.top { position: relative; }
.tour-btn { order: 2; flex: 0 0 auto; height: 44px; min-width: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 0; background: var(--navy); color: #fff; font: inherit; font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.tour-btn span { font-size: 13px; font-weight: 600; }
.tour-btn:hover { background: var(--blue-dd); }
.tour-btn[hidden] { display: none !important; }
.top .hello { flex: 1; }
.top .top-right { order: 3; }
.help-hero { position: relative; overflow: hidden; color: #fff; padding: 34px 36px 30px; background: radial-gradient(120% 140% at 85% 20%, #6aa6e0 0%, var(--blue) 45%, var(--blue-dd) 100%); }
.help-hero .dice { position: absolute; right: 26px; top: 18px; width: 220px; height: 160px; opacity: .9; }
.help-hero h2 { margin: 0 0 16px; font-size: 30px; font-weight: 800; letter-spacing: -.4px; }
.help-search { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--muted); border-radius: 999px; height: 56px; padding: 0 22px; max-width: 640px; position: relative; z-index: 1; box-shadow: 0 10px 30px rgba(22,48,79,.2); }
.help-search svg { width: 20px; height: 20px; flex: 0 0 auto; }
.help-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; width: 100%; color: var(--text); }
.help-sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; max-width: 700px; }
.chip { border: 0; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; }
.chip:hover { background: rgba(255,255,255,.3); }
.help-results { display: grid; gap: 14px; margin-top: 18px; }
.help-answer h3 { margin: 8px 0 8px; font-size: 17px; }
.help-answer.best { box-shadow: 0 0 0 2px var(--sky-2); }
.help-body { font-size: 14px; line-height: 1.6; }
.help-body p { margin: 0 0 8px; }
.help-body ol { margin: 0 0 8px; padding-left: 20px; }
.help-body li { margin: 3px 0; }
.tour-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: 13px; color: var(--blue); text-decoration: none; }
.tour-link svg { width: 15px; height: 15px; }
.help-none h3 { margin: 0 0 6px; }
.help-tours { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 8px; }
.tour-card { background: #fff; border-radius: var(--r-md); padding: 14px 16px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 2px; border: 2px solid transparent; }
.tour-card:hover { border-color: var(--sky-2); }
.tour-card .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--ice); color: var(--blue); display: grid; place-items: center; margin-bottom: 6px; }
.tour-card .ic svg { width: 16px; height: 16px; }
.tour-card small { color: var(--muted); font-size: 12px; }
#kna-help-browse > .sec-title { margin-top: 24px; }
.help-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.help-cat h3 { margin-bottom: 8px; }
.help-item { border-bottom: 1px solid var(--line); }
.help-item:last-child { border-bottom: 0; }
.help-item summary { cursor: pointer; padding: 11px 26px 11px 0; font-weight: 600; font-size: 14px; list-style: none; position: relative; }
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 18px; color: var(--blue); }
.help-item[open] summary::after { content: "–"; }
.help-item .help-body { padding: 0 0 12px; color: var(--text); }
.kna-tourpref { margin-top: 18px; }
.kna-tourpref h3 { margin-bottom: 8px; }
/* Tour */
.tour-shade { position: fixed; inset: 0; z-index: 2000; background: transparent; }
.tour-shade.on { background: rgba(22,48,79,.55); }
.tour-box { position: fixed; z-index: 2001; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(22,48,79,.55), 0 0 0 3px var(--sky-2); pointer-events: none; transition: all .25s ease; }
.tour-bubble { position: fixed; z-index: 2002; background: #fff; border-radius: 20px; padding: 18px 20px 16px; box-shadow: 0 24px 60px rgba(22,48,79,.35); transition: left .25s ease, top .25s ease; }
.tour-bubble h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 800; }
.tour-bubble p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--text); }
.tour-count { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.tour-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-acts span { display: flex; gap: 8px; }
.tour-acts .pill { height: 38px; padding: 0 16px; font-size: 13px; }
.tour-acts .pill-white { box-shadow: inset 0 0 0 1px var(--line); }
.tour-skip { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; padding: 0; text-decoration: underline; }
.tour-bubble.center { text-align: left; }
@media (max-width: 760px) {
	.tour-btn { position: absolute; top: 0; right: 0; height: 38px; min-width: 38px; padding: 0 12px; }
	.tour-btn span { display: none; }
	.top .hello { padding-right: 50px; }
	.help-hero { padding: 26px 20px; }
	.help-hero .dice { width: 140px; height: 100px; opacity: .3; }
	.help-hero h2 { font-size: 24px; }
	.help-cats { grid-template-columns: 1fr; }
}
@media print { .tour-btn, .tour-shade, .tour-box, .tour-bubble { display: none !important; } }
