/*
 * Kickerbay 10-Theme-System
 * Zentrale Gestaltung für Dashboard, Menüs, Unterseiten, Formulare,
 * Tabellen, Karten, Dialoge und mobile Ansichten.
 */

:root {
  color-scheme: dark;
  --kb-theme-bg: #07110d;
  --kb-theme-bg-2: #0b251a;
  --kb-theme-surface: rgba(8, 20, 15, .93);
  --kb-theme-surface-2: rgba(17, 47, 33, .88);
  --kb-theme-surface-3: rgba(28, 65, 47, .78);
  --kb-theme-text: #f4fbf7;
  --kb-theme-muted: #b7c8bf;
  --kb-theme-border: rgba(126, 208, 161, .30);
  --kb-theme-accent: #53d18c;
  --kb-theme-accent-2: #bde98f;
  --kb-theme-danger: #ff6473;
  --kb-theme-warning: #f1bf55;
  --kb-theme-success: #4bd685;
  --kb-theme-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  --kb-theme-radius: 18px;
  --kb-theme-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --kb-theme-title-font: var(--kb-theme-font);
  --kb-theme-body-bg:
    radial-gradient(circle at 8% 0%, rgba(72, 194, 120, .20), transparent 30%),
    radial-gradient(circle at 92% 100%, rgba(44, 123, 77, .25), transparent 34%),
    linear-gradient(135deg, #06110c 0%, #0d271b 50%, #07110d 100%);
  --kb-theme-card-bg: linear-gradient(155deg, var(--kb-theme-surface), var(--kb-theme-surface-2));
  --kb-theme-button-bg: linear-gradient(135deg, var(--kb-theme-accent), var(--kb-theme-accent-2));
  --kb-theme-button-text: #06130c;
  --kb-theme-input-bg: rgba(2, 11, 7, .72);
  --kb-theme-table-head: rgba(76, 188, 120, .18);
  --kb-theme-focus: 0 0 0 3px color-mix(in srgb, var(--kb-theme-accent) 38%, transparent);
}

html[data-kb-theme="stadium-night"] {
  color-scheme: dark;
}

html[data-kb-theme="tv-broadcast"] {
  color-scheme: dark;
  --kb-theme-bg: #020810;
  --kb-theme-bg-2: #06182a;
  --kb-theme-surface: rgba(2, 11, 20, .96);
  --kb-theme-surface-2: rgba(4, 21, 36, .97);
  --kb-theme-surface-3: rgba(7, 36, 61, .94);
  --kb-theme-text: #f5f8ff;
  --kb-theme-muted: #aeb9c9;
  --kb-theme-border: rgba(40, 145, 255, .65);
  --kb-theme-accent: #1987ff;
  --kb-theme-accent-2: #ff2636;
  --kb-theme-danger: #ff3046;
  --kb-theme-warning: #ffb22e;
  --kb-theme-success: #5dd76f;
  --kb-theme-shadow: 0 17px 46px rgba(0, 0, 0, .56), inset 0 0 24px rgba(20, 121, 221, .035);
  --kb-theme-radius: 2px;
  --kb-theme-title-font: "Arial Narrow", "Roboto Condensed", var(--kb-theme-font);
  --kb-theme-body-bg:
    linear-gradient(rgba(1, 9, 19, .34), rgba(1, 9, 19, .68)),
    url("/assets/img/bg/match-3d.webp") center / cover fixed;
  --kb-theme-card-bg: linear-gradient(145deg, rgba(2, 10, 18, .98), rgba(5, 24, 39, .97));
  --kb-theme-button-bg: linear-gradient(115deg, #0759c8, #1b83ff);
  --kb-theme-button-text: #ffffff;
  --kb-theme-input-bg: rgba(1, 8, 17, .91);
  --kb-theme-table-head: linear-gradient(180deg, #103f88, #082760);
}

html[data-kb-theme="locker-room"] {
  --kb-theme-bg: #100f0e;
  --kb-theme-bg-2: #251a13;
  --kb-theme-surface: rgba(18, 18, 17, .96);
  --kb-theme-surface-2: rgba(45, 31, 22, .94);
  --kb-theme-surface-3: rgba(72, 47, 29, .88);
  --kb-theme-text: #f5efe8;
  --kb-theme-muted: #c8b9a9;
  --kb-theme-border: rgba(214, 156, 89, .31);
  --kb-theme-accent: #d79a4d;
  --kb-theme-accent-2: #f1c47c;
  --kb-theme-danger: #e55e62;
  --kb-theme-warning: #dda94c;
  --kb-theme-success: #6fc48d;
  --kb-theme-shadow: 0 20px 48px rgba(0, 0, 0, .52);
  --kb-theme-radius: 8px;
  --kb-theme-title-font: "Arial Narrow", "Roboto Condensed", var(--kb-theme-font);
  --kb-theme-body-bg:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 52px 100%,
    linear-gradient(90deg, #100f0e, #302014 48%, #120f0d);
  --kb-theme-card-bg: linear-gradient(145deg, rgba(16,16,15,.97), rgba(42,29,20,.96));
  --kb-theme-button-bg: linear-gradient(135deg, #a7672c, #e8ad62);
  --kb-theme-button-text: #17100a;
  --kb-theme-input-bg: rgba(8, 8, 8, .72);
  --kb-theme-table-head: rgba(215, 154, 77, .16);
}

html[data-kb-theme="tsv-club"] {
  color-scheme: light;
  --kb-theme-bg: #eef4ef;
  --kb-theme-bg-2: #ffffff;
  --kb-theme-surface: rgba(255, 255, 255, .98);
  --kb-theme-surface-2: rgba(246, 250, 247, .98);
  --kb-theme-surface-3: #e6f2e8;
  --kb-theme-text: #103a28;
  --kb-theme-muted: #577063;
  --kb-theme-border: rgba(0, 107, 54, .20);
  --kb-theme-accent: #00733c;
  --kb-theme-accent-2: #72b943;
  --kb-theme-danger: #d8293b;
  --kb-theme-warning: #d99b21;
  --kb-theme-success: #087c40;
  --kb-theme-shadow: 0 12px 30px rgba(20, 69, 42, .12);
  --kb-theme-radius: 16px;
  --kb-theme-body-bg:
    radial-gradient(circle at 50% 45%, rgba(0, 105, 52, .045) 0 18%, transparent 18%),
    linear-gradient(#f7faf7, #edf4ef);
  --kb-theme-card-bg: linear-gradient(145deg, #ffffff, #f6faf7);
  --kb-theme-button-bg: linear-gradient(135deg, #006b36, #4fae50);
  --kb-theme-button-text: #ffffff;
  --kb-theme-input-bg: #fbfdfb;
  --kb-theme-table-head: #e1f0e5;
}

/*
 * Vereinsfarben-Automatik:
 * Das Sportschau-Mockup bleibt erhalten, seine Palette wird jedoch aus den
 * gespeicherten Team-/Vereinsfarben oder ersatzweise aus dem Logo erzeugt.
 */
html[data-kb-theme="tv-broadcast"][data-kb-theme-variant="club-ai"] {
  color-scheme: dark;
  --kb-club-ai-primary: #006b36;
  --kb-club-ai-secondary: #f8fafc;
  --kb-club-ai-dark: #03130d;
  --kb-club-ai-deep: #05271a;
  --kb-club-ai-mid: #07532e;
  --kb-club-ai-bright: #409875;
  --kb-club-ai-soft: #fbfcfd;
  --kb-club-ai-primary-text: #ffffff;
  --kb-club-ai-secondary-text: #07101b;
  --kb-theme-bg: var(--kb-club-ai-dark);
  --kb-theme-bg-2: var(--kb-club-ai-deep);
  --kb-theme-surface: color-mix(in srgb, var(--kb-club-ai-dark) 94%, #000);
  --kb-theme-surface-2: color-mix(in srgb, var(--kb-club-ai-deep) 88%, #020810);
  --kb-theme-surface-3: color-mix(in srgb, var(--kb-club-ai-mid) 76%, #07101b);
  --kb-theme-text: #f7fbf9;
  --kb-theme-muted: #b9c9c1;
  --kb-theme-border: color-mix(in srgb, var(--kb-club-ai-primary) 68%, var(--kb-club-ai-secondary));
  --kb-theme-accent: var(--kb-club-ai-primary);
  --kb-theme-accent-2: var(--kb-club-ai-secondary);
  --kb-theme-shadow: 0 17px 46px rgba(0, 0, 0, .56), inset 0 0 24px color-mix(in srgb, var(--kb-club-ai-primary) 7%, transparent);
  --kb-theme-body-bg:
    linear-gradient(rgba(1, 9, 10, .34), rgba(1, 9, 12, .70)),
    url("/assets/img/bg/match-3d.webp") center / cover fixed;
  --kb-theme-card-bg: linear-gradient(145deg, var(--kb-club-ai-dark), var(--kb-club-ai-deep));
  --kb-theme-button-bg: linear-gradient(115deg, var(--kb-club-ai-mid), var(--kb-club-ai-primary));
  --kb-theme-button-text: var(--kb-club-ai-primary-text);
  --kb-theme-input-bg: color-mix(in srgb, var(--kb-club-ai-dark) 92%, #000);
  --kb-theme-table-head: linear-gradient(180deg, var(--kb-club-ai-mid), var(--kb-club-ai-deep));
}

html[data-kb-theme="champions-premium"] {
  --kb-theme-bg: #020810;
  --kb-theme-bg-2: #0a1723;
  --kb-theme-surface: rgba(3, 13, 22, .96);
  --kb-theme-surface-2: rgba(10, 28, 42, .94);
  --kb-theme-surface-3: rgba(24, 42, 55, .88);
  --kb-theme-text: #f8f2e6;
  --kb-theme-muted: #b6b1a5;
  --kb-theme-border: rgba(218, 175, 87, .35);
  --kb-theme-accent: #d9ad55;
  --kb-theme-accent-2: #f4dda1;
  --kb-theme-danger: #e95d63;
  --kb-theme-warning: #e2b24e;
  --kb-theme-success: #63c68d;
  --kb-theme-shadow: 0 22px 58px rgba(0, 0, 0, .55);
  --kb-theme-radius: 15px;
  --kb-theme-title-font: Georgia, "Times New Roman", serif;
  --kb-theme-body-bg:
    radial-gradient(circle at 50% -10%, rgba(217, 173, 85, .19), transparent 32%),
    radial-gradient(circle at 15% 70%, rgba(255,255,255,.035) 0 1px, transparent 2px) 0 0 / 34px 34px,
    linear-gradient(145deg, #01060b, #071724 58%, #020810);
  --kb-theme-card-bg: linear-gradient(145deg, rgba(3,13,22,.98), rgba(11,28,41,.96));
  --kb-theme-button-bg: linear-gradient(135deg, #9e762e, #e8c779);
  --kb-theme-button-text: #0b0b0a;
  --kb-theme-input-bg: rgba(0, 5, 10, .76);
  --kb-theme-table-head: rgba(217, 173, 85, .13);
}

html[data-kb-theme="tactics-board"] {
  --kb-theme-bg: #071a13;
  --kb-theme-bg-2: #133a2b;
  --kb-theme-surface: rgba(7, 31, 22, .93);
  --kb-theme-surface-2: rgba(18, 57, 42, .92);
  --kb-theme-surface-3: rgba(33, 76, 58, .83);
  --kb-theme-text: #eff4ef;
  --kb-theme-muted: #b8c9be;
  --kb-theme-border: rgba(226, 238, 229, .24);
  --kb-theme-accent: #85d089;
  --kb-theme-accent-2: #edf2e8;
  --kb-theme-danger: #ed685f;
  --kb-theme-warning: #e2bc5b;
  --kb-theme-success: #78d395;
  --kb-theme-shadow: 0 16px 40px rgba(0, 0, 0, .38);
  --kb-theme-radius: 10px;
  --kb-theme-title-font: "Arial Narrow", "Roboto Condensed", var(--kb-theme-font);
  --kb-theme-body-bg:
    linear-gradient(rgba(235,244,236,.045) 1px, transparent 1px) 0 0 / 100% 80px,
    linear-gradient(90deg, transparent 49.8%, rgba(235,244,236,.09) 50%, transparent 50.2%),
    linear-gradient(135deg, #061a12, #123c2b);
  --kb-theme-card-bg: linear-gradient(145deg, rgba(7,30,21,.96), rgba(18,55,41,.93));
  --kb-theme-button-bg: linear-gradient(135deg, #4da767, #a9dd9f);
  --kb-theme-button-text: #07130d;
  --kb-theme-input-bg: rgba(3, 19, 13, .72);
  --kb-theme-table-head: rgba(237, 242, 232, .09);
}

html[data-kb-theme="collector-cards"] {
  --kb-theme-bg: #020d15;
  --kb-theme-bg-2: #061c28;
  --kb-theme-surface: rgba(3, 17, 27, .96);
  --kb-theme-surface-2: rgba(4, 39, 45, .93);
  --kb-theme-surface-3: rgba(8, 66, 63, .86);
  --kb-theme-text: #eff9fb;
  --kb-theme-muted: #9eb9bf;
  --kb-theme-border: rgba(74, 217, 198, .35);
  --kb-theme-accent: #28c4b1;
  --kb-theme-accent-2: #d5a942;
  --kb-theme-danger: #e7545c;
  --kb-theme-warning: #d9a63d;
  --kb-theme-success: #43d09c;
  --kb-theme-shadow: 0 20px 54px rgba(0, 0, 0, .5);
  --kb-theme-radius: 6px;
  --kb-theme-title-font: "Arial Narrow", "Roboto Condensed", var(--kb-theme-font);
  --kb-theme-body-bg:
    linear-gradient(135deg, rgba(37,199,178,.07), transparent 25% 75%, rgba(217,169,66,.06)),
    linear-gradient(#020b12, #061927);
  --kb-theme-card-bg: linear-gradient(145deg, rgba(3,19,30,.98), rgba(5,48,52,.95));
  --kb-theme-button-bg: linear-gradient(135deg, #20b5a3, #d7a83e);
  --kb-theme-button-text: #031311;
  --kb-theme-input-bg: rgba(1, 10, 17, .78);
  --kb-theme-table-head: rgba(39, 194, 176, .13);
}

html[data-kb-theme="neon-arena"] {
  --kb-theme-bg: #010511;
  --kb-theme-bg-2: #080c24;
  --kb-theme-surface: rgba(2, 8, 22, .92);
  --kb-theme-surface-2: rgba(8, 15, 42, .90);
  --kb-theme-surface-3: rgba(21, 19, 61, .85);
  --kb-theme-text: #f1f6ff;
  --kb-theme-muted: #9faed1;
  --kb-theme-border: rgba(0, 217, 255, .42);
  --kb-theme-accent: #00d9ff;
  --kb-theme-accent-2: #d82cff;
  --kb-theme-danger: #ff3d71;
  --kb-theme-warning: #ffb42e;
  --kb-theme-success: #37f298;
  --kb-theme-shadow: 0 0 26px rgba(0, 217, 255, .12), 0 22px 54px rgba(0, 0, 0, .52);
  --kb-theme-radius: 15px;
  --kb-theme-title-font: "Arial Narrow", "Roboto Condensed", var(--kb-theme-font);
  --kb-theme-body-bg:
    linear-gradient(rgba(0,217,255,.045) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, rgba(216,44,255,.04) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 20% 0%, rgba(0,217,255,.18), transparent 28%),
    radial-gradient(circle at 90% 30%, rgba(216,44,255,.18), transparent 34%),
    #010511;
  --kb-theme-card-bg: linear-gradient(145deg, rgba(2,8,22,.97), rgba(10,15,45,.94));
  --kb-theme-button-bg: linear-gradient(135deg, #00d9ff, #b23cff);
  --kb-theme-button-text: #020817;
  --kb-theme-input-bg: rgba(0, 4, 14, .79);
  --kb-theme-table-head: rgba(0, 217, 255, .10);
}

html[data-kb-theme="matchday-magazine"] {
  color-scheme: light;
  --kb-theme-bg: #e9e0cf;
  --kb-theme-bg-2: #f4ecde;
  --kb-theme-surface: rgba(247, 241, 229, .97);
  --kb-theme-surface-2: rgba(237, 227, 209, .97);
  --kb-theme-surface-3: #e8deca;
  --kb-theme-text: #173629;
  --kb-theme-muted: #626a60;
  --kb-theme-border: rgba(20, 57, 43, .22);
  --kb-theme-accent: #153f2e;
  --kb-theme-accent-2: #c8372c;
  --kb-theme-danger: #c8372c;
  --kb-theme-warning: #bd8423;
  --kb-theme-success: #2e7a4c;
  --kb-theme-shadow: 0 12px 28px rgba(64, 48, 30, .13);
  --kb-theme-radius: 3px;
  --kb-theme-title-font: Impact, "Arial Narrow", "Roboto Condensed", sans-serif;
  --kb-theme-body-bg:
    radial-gradient(circle at 30% 15%, rgba(42,30,18,.045) 0 1px, transparent 1.5px) 0 0 / 7px 7px,
    linear-gradient(#f3ecdf, #e8dfcf);
  --kb-theme-card-bg: linear-gradient(145deg, rgba(249,244,234,.99), rgba(238,228,211,.98));
  --kb-theme-button-bg: linear-gradient(100deg, #153f2e 0 82%, #c8372c 82%);
  --kb-theme-button-text: #fffaf0;
  --kb-theme-input-bg: #fbf7ef;
  --kb-theme-table-head: #ded3bf;
}

html[data-kb-theme="pro-clean"] {
  color-scheme: light;
  --kb-theme-bg: #edf1f5;
  --kb-theme-bg-2: #ffffff;
  --kb-theme-surface: rgba(255, 255, 255, .99);
  --kb-theme-surface-2: rgba(247, 249, 251, .99);
  --kb-theme-surface-3: #eaf1ed;
  --kb-theme-text: #172942;
  --kb-theme-muted: #5f7187;
  --kb-theme-border: rgba(20, 48, 78, .13);
  --kb-theme-accent: #08783f;
  --kb-theme-accent-2: #39a165;
  --kb-theme-danger: #df3347;
  --kb-theme-warning: #db942b;
  --kb-theme-success: #14834d;
  --kb-theme-shadow: 0 10px 28px rgba(19, 45, 72, .09);
  --kb-theme-radius: 14px;
  --kb-theme-body-bg: linear-gradient(145deg, #f6f8fa, #e8eef3);
  --kb-theme-card-bg: #ffffff;
  --kb-theme-button-bg: linear-gradient(135deg, #08783f, #39a165);
  --kb-theme-button-text: #ffffff;
  --kb-theme-input-bg: #f8fafc;
  --kb-theme-table-head: #edf3f0;
}

/* Vier neue, vollständig responsive KickerBay-Standardansichten. */
html[data-kb-theme="stadium-dark-pro"] {
  color-scheme: dark;
  --kb-theme-bg: #040706;
  --kb-theme-bg-2: #0b1811;
  --kb-theme-surface: rgba(5, 10, 8, .97);
  --kb-theme-surface-2: rgba(9, 24, 16, .96);
  --kb-theme-surface-3: rgba(18, 48, 31, .92);
  --kb-theme-text: #f7fbf8;
  --kb-theme-muted: #aab9b0;
  --kb-theme-border: rgba(70, 167, 103, .31);
  --kb-theme-accent: #35d56f;
  --kb-theme-accent-2: #86f0a9;
  --kb-theme-danger: #ff4c55;
  --kb-theme-warning: #f3bd39;
  --kb-theme-success: #35d56f;
  --kb-theme-shadow: 0 18px 52px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .025);
  --kb-theme-radius: 13px;
  --kb-theme-title-font: "Arial Narrow", "Roboto Condensed", var(--kb-theme-font);
  --kb-theme-body-bg:
    radial-gradient(circle at 72% -12%, rgba(53, 213, 111, .13), transparent 30%),
    linear-gradient(150deg, #020403 0%, #07110b 55%, #030605 100%);
  --kb-theme-card-bg: linear-gradient(150deg, rgba(5, 10, 8, .985), rgba(10, 24, 16, .96));
  --kb-theme-button-bg: linear-gradient(135deg, #12853f, #35d56f);
  --kb-theme-button-text: #031008;
  --kb-theme-input-bg: rgba(1, 6, 3, .88);
  --kb-theme-table-head: rgba(53, 213, 111, .13);
  --kb-standard-dock-bg: rgba(3, 8, 5, .975);
  --kb-standard-dock-active: #35d56f;
}

html[data-kb-theme="clean-sports-pro"] {
  color-scheme: light;
  --kb-theme-bg: #f3f5f2;
  --kb-theme-bg-2: #ffffff;
  --kb-theme-surface: rgba(255, 255, 255, .995);
  --kb-theme-surface-2: rgba(249, 251, 249, .995);
  --kb-theme-surface-3: #edf3ee;
  --kb-theme-text: #101814;
  --kb-theme-muted: #647169;
  --kb-theme-border: rgba(22, 58, 39, .13);
  --kb-theme-accent: #146d3d;
  --kb-theme-accent-2: #238c52;
  --kb-theme-danger: #cb2738;
  --kb-theme-warning: #b97812;
  --kb-theme-success: #157844;
  --kb-theme-shadow: 0 8px 26px rgba(27, 48, 36, .075);
  --kb-theme-radius: 14px;
  --kb-theme-title-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --kb-theme-body-bg: linear-gradient(145deg, #fbfcfa 0%, #f0f4f1 100%);
  --kb-theme-card-bg: #ffffff;
  --kb-theme-button-bg: linear-gradient(135deg, #105d34, #1c8249);
  --kb-theme-button-text: #ffffff;
  --kb-theme-input-bg: #fbfcfb;
  --kb-theme-table-head: #edf4ef;
  --kb-standard-dock-bg: rgba(255, 255, 255, .98);
  --kb-standard-dock-active: #146d3d;
}

html[data-kb-theme="broadcast-blue-pro"] {
  color-scheme: dark;
  --kb-theme-bg: #010816;
  --kb-theme-bg-2: #041936;
  --kb-theme-surface: rgba(2, 11, 27, .97);
  --kb-theme-surface-2: rgba(4, 24, 54, .96);
  --kb-theme-surface-3: rgba(8, 48, 100, .94);
  --kb-theme-text: #f7faff;
  --kb-theme-muted: #abc0d9;
  --kb-theme-border: rgba(28, 118, 246, .46);
  --kb-theme-accent: #1675ff;
  --kb-theme-accent-2: #69e329;
  --kb-theme-danger: #ff3f4c;
  --kb-theme-warning: #ffbd31;
  --kb-theme-success: #69e329;
  --kb-theme-shadow: 0 18px 52px rgba(0, 5, 18, .58), inset 0 1px rgba(255, 255, 255, .025);
  --kb-theme-radius: 9px;
  --kb-theme-title-font: "Arial Narrow", "Roboto Condensed", var(--kb-theme-font);
  --kb-theme-body-bg:
    linear-gradient(120deg, rgba(16, 103, 239, .09) 0 16%, transparent 16% 84%, rgba(105, 227, 41, .035) 84%),
    radial-gradient(circle at 50% -20%, rgba(22, 117, 255, .27), transparent 42%),
    linear-gradient(155deg, #010713, #02142d 58%, #010814);
  --kb-theme-card-bg: linear-gradient(145deg, rgba(2, 11, 27, .985), rgba(4, 29, 63, .965));
  --kb-theme-button-bg: linear-gradient(135deg, #0755cc, #1675ff);
  --kb-theme-button-text: #ffffff;
  --kb-theme-input-bg: rgba(0, 6, 18, .9);
  --kb-theme-table-head: linear-gradient(180deg, rgba(18, 92, 210, .72), rgba(5, 43, 99, .74));
  --kb-standard-dock-bg: rgba(1, 10, 25, .98);
  --kb-standard-dock-active: #1675ff;
}

html[data-kb-theme="premium-matchday-pro"] {
  color-scheme: dark;
  --kb-theme-bg: #080707;
  --kb-theme-bg-2: #1c0c0d;
  --kb-theme-surface: rgba(12, 10, 10, .97);
  --kb-theme-surface-2: rgba(33, 15, 16, .96);
  --kb-theme-surface-3: rgba(76, 27, 31, .91);
  --kb-theme-text: #f4eadf;
  --kb-theme-muted: #bcaea4;
  --kb-theme-border: rgba(211, 126, 87, .32);
  --kb-theme-accent: #d7865f;
  --kb-theme-accent-2: #f2c5a8;
  --kb-theme-danger: #e5525f;
  --kb-theme-warning: #d9a24f;
  --kb-theme-success: #72c86f;
  --kb-theme-shadow: 0 20px 56px rgba(0, 0, 0, .54), inset 0 0 0 1px rgba(215, 134, 95, .035);
  --kb-theme-radius: 10px;
  --kb-theme-title-font: "Arial Narrow", "Roboto Condensed", var(--kb-theme-font);
  --kb-theme-body-bg:
    radial-gradient(circle at 76% -16%, rgba(151, 44, 50, .34), transparent 36%),
    linear-gradient(145deg, #070606, #1c0c0e 56%, #080707);
  --kb-theme-card-bg: linear-gradient(150deg, rgba(12, 10, 10, .985), rgba(34, 15, 16, .965));
  --kb-theme-button-bg: linear-gradient(135deg, #7d3032, #d7865f);
  --kb-theme-button-text: #fff7ef;
  --kb-theme-input-bg: rgba(7, 5, 5, .88);
  --kb-theme-table-head: rgba(126, 43, 47, .48);
  --kb-standard-dock-bg: rgba(10, 8, 8, .98);
  --kb-standard-dock-active: #d7865f;
}

html[data-kb-theme] {
  min-height: 100%;
  background: var(--kb-theme-bg);
  font-family: var(--kb-theme-font);
}

html[data-kb-theme] body {
  min-height: 100vh;
  margin: 0;
  color: var(--kb-theme-text) !important;
  background: var(--kb-theme-body-bg) !important;
  background-attachment: fixed !important;
  font-family: var(--kb-theme-font) !important;
  accent-color: var(--kb-theme-accent);
  transition: background-color .22s ease, color .22s ease;
}

html[data-kb-theme] body,
html[data-kb-theme] body * {
  box-sizing: border-box;
}

html[data-kb-theme] body :where(h1, h2, h3, h4, h5, h6, .title, .heading, .card-title, .panel-title) {
  color: var(--kb-theme-text) !important;
  font-family: var(--kb-theme-title-font) !important;
  overflow-wrap: anywhere;
}

html[data-kb-theme] body :where(p, small, .muted, .meta, .sub, .hint, .help, .subtitle, .description) {
  color: var(--kb-theme-muted) !important;
}

html[data-kb-theme] body :where(a, a:visited) {
  color: var(--kb-theme-accent) !important;
  text-decoration-color: color-mix(in srgb, var(--kb-theme-accent) 55%, transparent) !important;
}

html[data-kb-theme] body :where(a:hover, a:focus-visible) {
  color: var(--kb-theme-accent-2) !important;
}

html[data-kb-theme] body :where(
  .kb-card, .kb-tile, .card, .panel, .box, .tile, .widget,
  .content-card, .settings-card, .team-card, .term-card, .profile-card,
  .modal-content, .dialog-content, .menu-dd, .dropdown-menu, .popover,
  fieldset, .toolbar, .topbar, .kb-topbar, .lb-pro-topbar
) {
  color: var(--kb-theme-text) !important;
  background: var(--kb-theme-card-bg) !important;
  border-color: var(--kb-theme-border) !important;
  border-radius: var(--kb-theme-radius) !important;
  box-shadow: var(--kb-theme-shadow);
}

html[data-kb-theme] body :where(header, nav, .navbar, .app-header, .page-header) {
  color: var(--kb-theme-text);
  border-color: var(--kb-theme-border) !important;
}

html[data-kb-theme] body :where(.menu-link, .nav-link, nav a, .dropdown-item) {
  color: var(--kb-theme-text) !important;
  border-radius: calc(var(--kb-theme-radius) * .62) !important;
}

html[data-kb-theme] body :where(.menu-link, .nav-link, nav a, .dropdown-item):hover {
  background: color-mix(in srgb, var(--kb-theme-accent) 13%, transparent) !important;
}

html[data-kb-theme] body :where(button:not(.lb-pro-player), .btn:not(.lb-pro-player), input[type="submit"], input[type="button"], input[type="reset"]) {
  border-color: color-mix(in srgb, var(--kb-theme-accent) 48%, var(--kb-theme-border)) !important;
  border-radius: calc(var(--kb-theme-radius) * .72) !important;
  font-family: var(--kb-theme-font) !important;
}

html[data-kb-theme] body :where(.btn-primary, button.primary, button[type="submit"], input[type="submit"]) {
  color: var(--kb-theme-button-text) !important;
  background: var(--kb-theme-button-bg) !important;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--kb-theme-accent) 20%, transparent) !important;
}

html[data-kb-theme] body :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select, textarea
) {
  color: var(--kb-theme-text) !important;
  background: var(--kb-theme-input-bg) !important;
  border-color: var(--kb-theme-border) !important;
  border-radius: calc(var(--kb-theme-radius) * .64) !important;
}

html[data-kb-theme] body :where(input, select, textarea, button, a):focus-visible {
  outline: none !important;
  box-shadow: var(--kb-theme-focus) !important;
}

html[data-kb-theme] body :where(table) {
  width: 100%;
  color: var(--kb-theme-text) !important;
  background: var(--kb-theme-surface) !important;
  border-color: var(--kb-theme-border) !important;
  border-radius: var(--kb-theme-radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

html[data-kb-theme] body :where(th) {
  color: var(--kb-theme-text) !important;
  background: var(--kb-theme-table-head) !important;
  border-color: var(--kb-theme-border) !important;
}

html[data-kb-theme] body :where(td) {
  color: var(--kb-theme-text) !important;
  border-color: var(--kb-theme-border) !important;
}

html[data-kb-theme] body :where(tr:hover td) {
  background: color-mix(in srgb, var(--kb-theme-accent) 7%, transparent) !important;
}

html[data-kb-theme] body :where(.badge, .pill, .chip, .tag, .status) {
  color: var(--kb-theme-text) !important;
  background: color-mix(in srgb, var(--kb-theme-accent) 18%, var(--kb-theme-surface)) !important;
  border-color: color-mix(in srgb, var(--kb-theme-accent) 38%, transparent) !important;
}

html[data-kb-theme] body :where(.alert-success, .success, [data-status="success"]) {
  color: var(--kb-theme-success) !important;
  border-color: color-mix(in srgb, var(--kb-theme-success) 45%, transparent) !important;
}

html[data-kb-theme] body :where(.alert-danger, .danger, .error, [data-status="danger"]) {
  color: var(--kb-theme-danger) !important;
  border-color: color-mix(in srgb, var(--kb-theme-danger) 45%, transparent) !important;
}

html[data-kb-theme] body :where(.alert-warning, .warning, [data-status="warning"]) {
  color: var(--kb-theme-warning) !important;
  border-color: color-mix(in srgb, var(--kb-theme-warning) 45%, transparent) !important;
}

/* Quicklinks umbrechen sauber und erzeugen keinen horizontalen Schieberegler. */
html[data-kb-theme] body :where(.menu-scroller, .team-quicklinks, .quicklinks, .menu-links) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr)) !important;
  gap: 8px !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  white-space: normal !important;
}

html[data-kb-theme] body :where(.menu-scroller a, .team-quicklinks a, .quicklinks a, .menu-links a) {
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

/* Markante Unterschiede der zehn Stilrichtungen. */
html[data-kb-theme="tv-broadcast"] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) {
  border-top: 4px solid var(--kb-theme-accent) !important;
}

html[data-kb-theme="locker-room"] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) {
  outline: 1px solid rgba(0,0,0,.65);
  box-shadow: inset 0 1px rgba(255,255,255,.05), var(--kb-theme-shadow);
}

html[data-kb-theme="locker-room"] body :where(h1, h2, h3, .title, .card-title)::first-letter,
html[data-kb-theme="champions-premium"] body :where(h1, h2, h3, .title, .card-title)::first-letter {
  color: var(--kb-theme-accent);
}

html[data-kb-theme="tsv-club"] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) {
  border-left: 4px solid var(--kb-theme-accent) !important;
}

html[data-kb-theme="champions-premium"] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) {
  box-shadow: inset 0 0 0 1px rgba(217,173,85,.12), var(--kb-theme-shadow);
}

html[data-kb-theme="tactics-board"] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) {
  background-image:
    linear-gradient(rgba(235,244,236,.035) 1px, transparent 1px),
    var(--kb-theme-card-bg) !important;
  background-size: 100% 44px, auto !important;
}

html[data-kb-theme="collector-cards"] body :where(.kb-tile, .card, .panel, .box, .tile, .widget) {
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--kb-theme-accent) 26%, transparent), var(--kb-theme-shadow);
}

html[data-kb-theme="collector-cards"] body :where(.kb-tile, .card, .panel, .box, .tile, .widget):nth-of-type(3n + 2) {
  --kb-theme-accent: #467fe8;
}

html[data-kb-theme="collector-cards"] body :where(.kb-tile, .card, .panel, .box, .tile, .widget):nth-of-type(3n) {
  --kb-theme-accent: #d2a63e;
}

html[data-kb-theme="neon-arena"] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) {
  box-shadow: inset 0 0 18px rgba(0,217,255,.035), 0 0 0 1px rgba(216,44,255,.12), var(--kb-theme-shadow);
}

html[data-kb-theme="matchday-magazine"] body :where(h1, h2, h3, .title, .card-title, .panel-title) {
  letter-spacing: .025em;
  text-transform: uppercase;
}

html[data-kb-theme="matchday-magazine"] body :where(h1, h2, h3, .title, .card-title)::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 8px;
  background: var(--kb-theme-danger);
}

html[data-kb-theme="pro-clean"] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) {
  backdrop-filter: none !important;
}

/* Charakter und Dashboard-Silhouette der neuen Standardansichten. */
html[data-kb-standard-view="1"] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) {
  border-width: 1px !important;
}

html[data-kb-standard-view="1"] body :where(.kb-topbar, .topbar, .app-header) {
  backdrop-filter: blur(15px) saturate(125%);
  -webkit-backdrop-filter: blur(15px) saturate(125%);
}

html[data-kb-theme="stadium-dark-pro"] body :where(.kb-tile, .card, .panel, .box, .widget) {
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), var(--kb-theme-shadow) !important;
}

html[data-kb-theme="stadium-dark-pro"] body :where(.kb-tile, .card, .panel, .box, .widget)::selection {
  color: #031008;
  background: #35d56f;
}

html[data-kb-theme="clean-sports-pro"] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-kb-theme="clean-sports-pro"] body :where(.kb-matchday-banner) {
  background-color: #ffffff !important;
  background-blend-mode: luminosity, normal !important;
  border-color: rgba(20, 109, 61, .18) !important;
}

html[data-kb-theme="broadcast-blue-pro"] body :where(h1, h2, h3, .title, .card-title, .panel-title) {
  letter-spacing: .018em;
  text-transform: uppercase;
}

html[data-kb-theme="broadcast-blue-pro"] body :where(.kb-matchday-banner, .kb-live-scoreboard) {
  border-top: 4px solid #1675ff !important;
  box-shadow: inset 0 -2px rgba(105, 227, 41, .2), var(--kb-theme-shadow) !important;
}

html[data-kb-theme="premium-matchday-pro"] body :where(h1, h2, h3, .title, .card-title, .panel-title) {
  letter-spacing: .055em;
  text-transform: uppercase;
}

html[data-kb-theme="premium-matchday-pro"] body :where(.kb-matchday-banner) {
  border-color: rgba(215, 134, 95, .58) !important;
  box-shadow: inset 0 0 0 1px rgba(215, 134, 95, .12), 0 24px 64px rgba(0, 0, 0, .52) !important;
}

@media (min-width: 900px) {
  html[data-kb-standard-view="1"] body.kb-bg > .kb-card {
    width: min(1480px, calc(100vw - 28px)) !important;
    max-width: 1480px !important;
    padding: 18px !important;
  }
}

/* Theme-Auswahl */
#kb-theme-launcher,
.kb-theme-launcher,
[data-kb-theme-launcher] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  right: max(14px, env(safe-area-inset-right)) !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
  z-index: 2147483000 !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 9px 14px !important;
  color: var(--kb-theme-button-text) !important;
  background: var(--kb-theme-button-bg) !important;
  border: 1px solid color-mix(in srgb, var(--kb-theme-accent) 55%, white) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.30) !important;
  font: 800 14px/1 var(--kb-theme-font) !important;
  cursor: pointer !important;
}

.kb-theme-picker {
  position: fixed !important;
  inset: 50% auto auto 50% !important;
  z-index: 2147483001 !important;
  width: min(760px, calc(100vw - 28px)) !important;
  max-height: min(820px, calc(100vh - 28px)) !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--kb-theme-text) !important;
  background: var(--kb-theme-card-bg) !important;
  border: 1px solid var(--kb-theme-border) !important;
  border-radius: max(16px, var(--kb-theme-radius)) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.56) !important;
  transform: translate(-50%, -50%) !important;
  overflow: auto !important;
}

.kb-theme-picker:not([open]):not(.is-open) {
  display: none !important;
}

.kb-theme-picker::backdrop {
  background: rgba(1, 6, 13, .72);
  backdrop-filter: blur(8px);
}

.kb-theme-picker__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 16px;
  color: var(--kb-theme-text);
  background: var(--kb-theme-surface);
  border-bottom: 1px solid var(--kb-theme-border);
}

.kb-theme-picker__head h2 {
  margin: 3px 0 4px !important;
  font-size: clamp(1.3rem, 3vw, 1.8rem) !important;
}

.kb-theme-picker__head p {
  margin: 0 !important;
  color: var(--kb-theme-muted) !important;
  font-size: .9rem !important;
}

.kb-theme-picker__eyebrow {
  color: var(--kb-theme-accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kb-theme-picker__close {
  flex: 0 0 auto;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  color: var(--kb-theme-text) !important;
  background: var(--kb-theme-surface-3) !important;
  border: 1px solid var(--kb-theme-border) !important;
  border-radius: 50% !important;
  font-size: 26px !important;
  line-height: 1 !important;
  cursor: pointer;
}

.kb-theme-picker__current {
  margin: 16px 22px 0;
  padding: 10px 12px;
  color: var(--kb-theme-muted);
  background: color-mix(in srgb, var(--kb-theme-accent) 8%, transparent);
  border: 1px solid var(--kb-theme-border);
  border-radius: 12px;
  font-size: .88rem;
}

.kb-theme-picker__current strong {
  color: var(--kb-theme-text);
}

.kb-theme-picker__club-status {
  margin: 8px 22px 0;
  color: var(--kb-theme-muted);
  font-size: .78rem;
  line-height: 1.35;
}

.kb-theme-picker__groups {
  display: grid;
}

.kb-theme-picker__group + .kb-theme-picker__group {
  border-top: 1px solid var(--kb-theme-border);
}

.kb-theme-picker__group-head {
  padding: 18px 22px 0;
}

.kb-theme-picker__group-head h3 {
  margin: 0 0 4px !important;
  color: var(--kb-theme-text) !important;
  font-size: 1rem !important;
}

.kb-theme-picker__group-head p {
  margin: 0 !important;
  color: var(--kb-theme-muted) !important;
  font-size: .78rem !important;
}

.kb-theme-picker__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 22px 22px;
}

.kb-theme-choice {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 58px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 64px !important;
  padding: 10px 12px !important;
  color: var(--kb-theme-text) !important;
  text-align: left !important;
  background: var(--kb-theme-surface-2) !important;
  border: 1px solid var(--kb-theme-border) !important;
  border-radius: 13px !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.kb-theme-choice:hover {
  border-color: var(--kb-theme-accent) !important;
  transform: translateY(-1px);
}

.kb-theme-choice.is-active {
  background: color-mix(in srgb, var(--kb-theme-accent) 13%, var(--kb-theme-surface-2)) !important;
  border-color: var(--kb-theme-accent) !important;
  box-shadow: var(--kb-theme-focus) !important;
}

.kb-theme-choice__number {
  color: var(--kb-theme-muted);
  font-size: .72rem;
  font-weight: 900;
}

.kb-theme-choice__swatch {
  display: flex;
  width: 58px;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(127,127,127,.26);
  border-radius: 8px;
}

.kb-theme-choice__swatch i {
  flex: 1 1 0;
  background: var(--swatch);
}

.kb-theme-choice__name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.kb-theme-choice__check {
  width: 24px;
  height: 24px;
  color: var(--kb-theme-button-text);
  background: var(--kb-theme-accent);
  border-radius: 50%;
  display: none;
  place-items: center;
  font-weight: 1000;
}

.kb-theme-choice.is-active .kb-theme-choice__check {
  display: grid;
}

.kb-theme-choice--preview {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-content: start !important;
  min-height: 252px !important;
}

.kb-theme-choice__media {
  position: relative;
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 174px;
  margin-bottom: 2px;
  overflow: hidden;
  background: var(--kb-theme-bg);
  border: 1px solid color-mix(in srgb, var(--kb-theme-border) 78%, transparent);
  border-radius: 9px;
}

.kb-theme-choice__desktop {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.kb-theme-choice__mobile {
  position: absolute;
  right: 8px;
  bottom: -30px;
  width: 54px;
  height: 114px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .48);
}

.kb-theme-choice__name small {
  display: block;
  margin-top: 3px;
  color: var(--kb-theme-muted) !important;
  font-size: .7rem;
  font-weight: 650;
  line-height: 1.25;
}

/* Die neue Handy-Navigation erscheint nur bei den vier Standardansichten. */
.kb-standard-mobile-dock {
  display: none;
}

@media (max-width: 720px) {
  .kb-theme-picker__grid {
    grid-template-columns: 1fr;
  }

  .kb-theme-picker__group-head {
    padding: 16px 14px 0;
  }

  .kb-theme-choice--preview {
    min-height: 276px !important;
  }

  .kb-theme-choice__media {
    height: 196px;
  }

  .kb-theme-launcher span:last-child {
    display: none;
  }

  .kb-theme-launcher {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  html[data-kb-standard-view="1"] body.kb-has-standard-mobile-dock {
    padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  html[data-kb-standard-view="1"] .kb-standard-mobile-dock {
    position: fixed;
    left: 50%;
    bottom: max(7px, env(safe-area-inset-bottom));
    z-index: 2147483300;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    width: min(700px, calc(100vw - 14px));
    min-height: 64px;
    padding: 6px;
    color: var(--kb-theme-muted);
    background: var(--kb-standard-dock-bg, var(--kb-theme-surface));
    border: 1px solid var(--kb-theme-border);
    border-radius: 16px;
    box-shadow: 0 14px 42px rgba(0, 0, 0, .42);
    transform: translateX(-50%);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }

  .kb-standard-mobile-dock__item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0 !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 4px 3px !important;
    color: var(--kb-theme-muted) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 11px !important;
    box-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer;
  }

  .kb-standard-mobile-dock__item > span {
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1;
  }

  .kb-standard-mobile-dock__item > small {
    max-width: 100%;
    overflow: hidden;
    color: inherit !important;
    font-size: clamp(.58rem, 2.6vw, .72rem) !important;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .kb-standard-mobile-dock__item.is-active {
    color: var(--kb-standard-dock-active, var(--kb-theme-accent)) !important;
    background: color-mix(in srgb, var(--kb-standard-dock-active, var(--kb-theme-accent)) 13%, transparent) !important;
  }

  html[data-kb-theme] body :where(.kb-card, .container, .wrap, main) {
    max-width: 100% !important;
  }

  html[data-kb-theme] body :where(table) {
    font-size: .88rem;
  }
}

@media print {
  .kb-theme-launcher,
  .kb-theme-picker {
    display: none !important;
  }

  html[data-kb-theme] body {
    color: #111 !important;
    background: #fff !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-kb-theme] *,
  html[data-kb-theme] *::before,
  html[data-kb-theme] *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* -------------------------------------------------------------------------
 * R111 – globaler Feinschliff für alle Kickerbay-Mockups
 * Sorgt für stabilere Karten, saubere Bildbegrenzung, bessere Lesbarkeit
 * und robustere Layouts auf PC, Tablet und Handy.
 * ------------------------------------------------------------------------- */
html[data-kb-theme] body :where(main, .container, .wrap, .content, .content-wrap, .page, .page-shell, .kb-container, .chat-wrap) {
  min-width: 0;
}

html[data-kb-theme] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget,
  .content-card, .settings-card, .team-card, .term-card, .profile-card, fieldset,
  .dropdown-menu, .menu-dd, .popover, .modal-content, .dialog-content) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: saturate(118%) blur(8px);
  -webkit-backdrop-filter: saturate(118%) blur(8px);
}

html[data-kb-theme] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) > * {
  min-width: 0;
}

html[data-kb-theme] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) > :first-child {
  margin-top: 0;
}

html[data-kb-theme] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) > :last-child {
  margin-bottom: 0;
}

html[data-kb-theme] body :where(img, svg, canvas, video, iframe) {
  max-width: 100%;
}

html[data-kb-theme] body img {
  display: block;
}

html[data-kb-theme] body :where(.avatar, .kb-avatar, .kb-roster-avatar, .teamlogo, .kb-teamlogo,
  .profile-photo, .profile-image, .news-thumb, .thumb, .preview, .preview img) {
  min-width: 0;
}

html[data-kb-theme] body :where(.badge, .pill, .chip, .tag, .status) {
  max-width: 100%;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[data-kb-theme] body :where(.team-quicklinks a, .quicklinks a, .menu-links a, .menu-scroller a) {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px !important;
  text-align: center;
}

html[data-kb-theme] body :where(.table-responsive, .scroll-x, .overflow-x, .kb-scrollbox) {
  max-width: 100%;
  overflow-x: auto;
}

html[data-kb-theme] body :where(input, select, textarea) {
  min-height: 42px;
}

html[data-kb-theme] body :where(button:not(.lb-pro-player), .btn:not(.lb-pro-player), input[type="submit"], input[type="button"], input[type="reset"]) {
  min-height: 42px;
  font-weight: 700;
}

html[data-kb-theme] body :where(h1, h2, h3, h4, h5, h6, .title, .heading, .card-title, .panel-title) {
  line-height: 1.14;
  text-wrap: balance;
}

html[data-kb-theme] body :where(p, li, td, th, small, .muted, .meta, .sub, .hint, .help, .subtitle, .description) {
  line-height: 1.45;
}

@media (max-width: 900px) {
  html[data-kb-theme] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget,
    .content-card, .settings-card, .team-card, .term-card, .profile-card) {
    border-radius: max(14px, calc(var(--kb-theme-radius) * .82)) !important;
  }
}

@media (max-width: 640px) {
  html[data-kb-theme] body :where(.menu-scroller, .team-quicklinks, .quicklinks, .menu-links) {
    grid-template-columns: 1fr !important;
  }

  html[data-kb-theme] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget) {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22) !important;
  }
}


/* -------------------------------------------------------------------------
 * R112 – Kontrast-Sicherungen für Theme-/Mockup-Seiten
 * Verhindert hellgraue Schrift auf hellen Karten und dunkle Schrift auf
 * dunklen Hintergründen.
 * ------------------------------------------------------------------------- */
html[data-kb-theme] body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:linear-gradient(180deg, rgba(5,10,18,.22), rgba(5,10,18,.34));
}
html[data-kb-theme] body > *{ position:relative; z-index:1; }
html[data-kb-theme] body :where(.kb-card, .kb-tile, .card, .panel, .box, .tile, .widget,
  .content-card, .settings-card, .team-card, .term-card, .profile-card,
  .dropdown-menu, .menu-dd, .popover, .modal-content, .dialog-content,
  .kb-event-card, .kb-news-item, .kb-next-slide, .kb-next-viewport,
  .kb-profile-mini-card, .chat-shell.card, .chat-sidebar.card){
  color:#f4f8ff !important;
  background:linear-gradient(180deg, rgba(8,15,28,.90), rgba(9,16,29,.86)) !important;
  border-color:rgba(140,178,246,.18) !important;
}
html[data-kb-theme] body :where(.muted, .meta, .sub, .small, .tiny, .hint, .help,
  .description, .subtitle, .label, .card-subtitle, .team-sub, .kb-event-sub,
  .kb-news-sub, .kb-news-meta, .kb-roster-sub, .kb-term-meta){
  color:#c8d5e5 !important;
}
html[data-kb-theme] body :where(a, .kb-a){ color:#9fd2ff !important; }
html[data-kb-theme] body :where(a:hover, .kb-a:hover){ color:#c7e6ff !important; }
html[data-kb-theme] body :where(.btn, .btn-sm, .kb-btn, .btn.chip){
  background:#173b6b !important;
  color:#eef5ff !important;
  border-color:rgba(123,170,255,.30) !important;
}
html[data-kb-theme] body :where(.btn-danger){ background:#7a2330 !important; border-color:#a13d4d !important; color:#fff !important; }
html[data-kb-theme] body :where(.badge,.pill,.chip,.status){
  background:rgba(17,41,71,.92) !important;
  border-color:rgba(123,170,255,.28) !important;
  color:#eef5ff !important;
}
html[data-kb-theme] body :where(input, select, textarea){
  background:rgba(7,13,24,.92) !important;
  color:#f4f8ff !important;
  border-color:rgba(140,178,246,.20) !important;
}
