/* RSG Wettkampf – Designs (System → Design). Erzeugt, Farben an den Urkunden-Vorlagen orientiert.
   Aktives Design: <html data-theme="…">. Schriften: Inter, Montserrat, Playfair Display (SIL Open Font License). */
@font-face { font-family: "RSG Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("vendor/fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "RSG Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("vendor/fonts/montserrat-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "RSG Playfair"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("vendor/fonts/playfair-display-latin-wght-normal.woff2") format("woff2"); }

:root, [data-theme="modern"] {
  --rsg-p: #1648a0; --rsg-p-rgb: 22,72,160; --rsg-p-dark: #0b1d3a; --rsg-a: #e0a52a; --rsg-a-rgb: 224,165,42; --rsg-a2: #86b1f3;
  --rsg-soft: #eaf1fd; --rsg-a-soft: #fdf3dc; --rsg-bg: #f3f5f9; --rsg-surface: #ffffff; --rsg-line: #e3e8f0;
  --rsg-ink: #1b2433; --rsg-muted: #6b7484;
  --rsg-side: linear-gradient(165deg,#0b1d3a 0%,#11295a 70%,#163777 100%); --rsg-side-ink: #c9d6ee; --rsg-side-active: rgba(224,165,42,.18); --rsg-nav: linear-gradient(100deg,#0b1d3a 0%,#1648a0 100%);
  --rsg-head: "RSG Montserrat", "RSG Inter", system-ui, sans-serif; --rsg-head-w: 700; --rsg-head-ls: .01em;
  --rsg-sb-bg: radial-gradient(ellipse at 85% 0%,#1d4fa8 0%,#0b1d3a 60%); --rsg-sb-accent: #f2b84b; --rsg-info: #2f6fd0; --rsg-side-top: #0b1d3a;
  --rsg-side-deco: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 250 260%22 preserveAspectRatio=%22xMidYMax slice%22%3E%3Cg opacity=%22.4%22%3E%3Cpolygon points=%220,140 0,260 170,260%22 fill=%22%231648a0%22 opacity=%22.7%22/%3E%3Cpolygon points=%220,200 0,260 80,260%22 fill=%22%2386b1f3%22 opacity=%22.6%22/%3E%3Cline x1=%220%22 y1=%22115%22 x2=%22250%22 y2=%22262%22 stroke=%22%23e0a52a%22 stroke-width=%223%22/%3E%3C/g%3E%3C/svg%3E");
  --rsg-login-bg: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 400%22 preserveAspectRatio=%22xMaxYMin meet%22%3E%3Cpolygon points=%22130,0 400,0 400,165%22 fill=%22%230b1d3a%22/%3E%3Cpolygon points=%22270,0 400,0 400,215%22 fill=%22%231648a0%22/%3E%3Cpolygon points=%22330,120 400,165 400,290%22 fill=%22%2386b1f3%22/%3E%3Cline x1=%2295%22 y1=%220%22 x2=%22400%22 y2=%22190%22 stroke=%22%23e0a52a%22 stroke-width=%225%22/%3E%3C/svg%3E") top right / min(52vw, 380px) auto no-repeat, url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 400%22 preserveAspectRatio=%22xMinYMax meet%22%3E%3Cg transform=%22rotate(180 200 200)%22%3E%3Cpolygon points=%22130,0 400,0 400,165%22 fill=%22%230b1d3a%22/%3E%3Cpolygon points=%22270,0 400,0 400,215%22 fill=%22%231648a0%22/%3E%3Cpolygon points=%22330,120 400,165 400,290%22 fill=%22%2386b1f3%22/%3E%3Cline x1=%2295%22 y1=%220%22 x2=%22400%22 y2=%22190%22 stroke=%22%23e0a52a%22 stroke-width=%225%22/%3E%3C/g%3E%3C/svg%3E") bottom left / min(52vw, 380px) auto no-repeat, var(--rsg-bg);
  --rsg-corner: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 400%22 preserveAspectRatio=%22xMaxYMin meet%22%3E%3Cpolygon points=%22130,0 400,0 400,165%22 fill=%22%230b1d3a%22/%3E%3Cpolygon points=%22270,0 400,0 400,215%22 fill=%22%231648a0%22/%3E%3Cpolygon points=%22330,120 400,165 400,290%22 fill=%22%2386b1f3%22/%3E%3Cline x1=%2295%22 y1=%220%22 x2=%22400%22 y2=%22190%22 stroke=%22%23e0a52a%22 stroke-width=%225%22/%3E%3C/svg%3E");
}
[data-theme="band"] {
  --rsg-p: #7a1f4b; --rsg-p-rgb: 122,31,75; --rsg-p-dark: #4f1230; --rsg-a: #c69a4f; --rsg-a-rgb: 198,154,79; --rsg-a2: #e8a0bf;
  --rsg-soft: #fbeef4; --rsg-a-soft: #f8efe1; --rsg-bg: #fbf6f8; --rsg-surface: #ffffff; --rsg-line: #efe2e8;
  --rsg-ink: #3a2430; --rsg-muted: #8d7280;
  --rsg-side: linear-gradient(170deg,#4f1230 0%,#6b1a41 60%,#7a1f4b 100%); --rsg-side-ink: #f1d9e4; --rsg-side-active: rgba(232,160,191,.22); --rsg-nav: linear-gradient(100deg,#4f1230 0%,#7a1f4b 70%,#9a3566 100%);
  --rsg-head: "RSG Playfair", "RSG Inter", system-ui, sans-serif; --rsg-head-w: 700; --rsg-head-ls: 0;
  --rsg-sb-bg: radial-gradient(ellipse at 85% 0%,#8e2a5c 0%,#3f0e27 65%); --rsg-sb-accent: #f3c77b; --rsg-info: #b03a72; --rsg-side-top: #4f1230;
  --rsg-side-deco: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 250 260%22 preserveAspectRatio=%22xMidYMax slice%22%3E%3Cg opacity=%22.4%22%3E%3Cpath d=%22M-10 200 C 60 150 110 250 180 200 S 250 170 270 210%22 stroke=%22%23e8a0bf%22 stroke-width=%2216%22 fill=%22none%22 opacity=%22.75%22/%3E%3Cpath d=%22M-10 240 C 70 190 120 270 200 225 S 260 220 270 240%22 stroke=%22%23b03a72%22 stroke-width=%2222%22 fill=%22none%22/%3E%3Cpath d=%22M-10 170 C 70 210 140 140 270 230%22 stroke=%22%23c69a4f%22 stroke-width=%223%22 fill=%22none%22/%3E%3C/g%3E%3C/svg%3E");
  --rsg-login-bg: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 400%22 preserveAspectRatio=%22xMaxYMin meet%22%3E%3Cpath d=%22M110 0 C 190 40 250 95 320 60 S 390 40 420 120%22 stroke=%22%237a1f4b%22 stroke-width=%2230%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M170 -10 C 230 50 290 120 340 90 S 395 90 420 170%22 stroke=%22%23e8a0bf%22 stroke-width=%2214%22 fill=%22none%22 opacity=%22.9%22/%3E%3Cpath d=%22M80 0 C 160 15 220 40 290 95 S 380 160 420 190%22 stroke=%22%23c69a4f%22 stroke-width=%224%22 fill=%22none%22/%3E%3C/svg%3E") top right / min(52vw, 380px) auto no-repeat, url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 400%22 preserveAspectRatio=%22xMinYMax meet%22%3E%3Cg transform=%22rotate(180 200 200)%22%3E%3Cpath d=%22M110 0 C 190 40 250 95 320 60 S 390 40 420 120%22 stroke=%22%237a1f4b%22 stroke-width=%2230%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M170 -10 C 230 50 290 120 340 90 S 395 90 420 170%22 stroke=%22%23e8a0bf%22 stroke-width=%2214%22 fill=%22none%22 opacity=%22.9%22/%3E%3Cpath d=%22M80 0 C 160 15 220 40 290 95 S 380 160 420 190%22 stroke=%22%23c69a4f%22 stroke-width=%224%22 fill=%22none%22/%3E%3C/g%3E%3C/svg%3E") bottom left / min(52vw, 380px) auto no-repeat, var(--rsg-bg);
  --rsg-corner: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 400%22 preserveAspectRatio=%22xMaxYMin meet%22%3E%3Cpath d=%22M110 0 C 190 40 250 95 320 60 S 390 40 420 120%22 stroke=%22%237a1f4b%22 stroke-width=%2230%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M170 -10 C 230 50 290 120 340 90 S 395 90 420 170%22 stroke=%22%23e8a0bf%22 stroke-width=%2214%22 fill=%22none%22 opacity=%22.9%22/%3E%3Cpath d=%22M80 0 C 160 15 220 40 290 95 S 380 160 420 190%22 stroke=%22%23c69a4f%22 stroke-width=%224%22 fill=%22none%22/%3E%3C/svg%3E");
}
[data-theme="reifen"] {
  --rsg-p: #0f4c5c; --rsg-p-rgb: 15,76,92; --rsg-p-dark: #0a3742; --rsg-a: #ff7a5c; --rsg-a-rgb: 255,122,92; --rsg-a2: #1a9ba0;
  --rsg-soft: #e6f5f4; --rsg-a-soft: #fff0eb; --rsg-bg: #f2f8f8; --rsg-surface: #ffffff; --rsg-line: #dcecec;
  --rsg-ink: #1d3a40; --rsg-muted: #6b8a91;
  --rsg-side: linear-gradient(165deg,#0a3742 0%,#0f4c5c 55%,#14636f 100%); --rsg-side-ink: #cfeceb; --rsg-side-active: rgba(26,155,160,.35); --rsg-nav: linear-gradient(100deg,#0a3742 0%,#0f4c5c 55%,#1a9ba0 100%);
  --rsg-head: "RSG Montserrat", "RSG Inter", system-ui, sans-serif; --rsg-head-w: 700; --rsg-head-ls: .01em;
  --rsg-sb-bg: radial-gradient(ellipse at 85% 0%,#1a7f88 0%,#0a3742 60%); --rsg-sb-accent: #ff8a6e; --rsg-info: #1a9ba0; --rsg-side-top: #0a3742;
  --rsg-side-deco: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 250 260%22 preserveAspectRatio=%22xMidYMax slice%22%3E%3Cg opacity=%22.4%22%3E%3Ccircle cx=%2230%22 cy=%22260%22 r=%2295%22 stroke=%22%231a9ba0%22 stroke-width=%2214%22 fill=%22none%22/%3E%3Ccircle cx=%22190%22 cy=%22270%22 r=%2270%22 stroke=%22%23bfe8e5%22 stroke-width=%228%22 fill=%22none%22 opacity=%22.6%22/%3E%3Ccircle cx=%22120%22 cy=%22190%22 r=%2230%22 stroke=%22%23ff7a5c%22 stroke-width=%226%22 fill=%22none%22/%3E%3C/g%3E%3C/svg%3E");
  --rsg-login-bg: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 400%22 preserveAspectRatio=%22xMaxYMin meet%22%3E%3Ccircle cx=%22390%22 cy=%2210%22 r=%22150%22 stroke=%22%230f4c5c%22 stroke-width=%2220%22 fill=%22none%22/%3E%3Ccircle cx=%22300%22 cy=%22-30%22 r=%22105%22 stroke=%22%231a9ba0%22 stroke-width=%2212%22 fill=%22none%22 opacity=%22.9%22/%3E%3Ccircle cx=%22345%22 cy=%2295%22 r=%2244%22 stroke=%22%23bfe8e5%22 stroke-width=%2211%22 fill=%22none%22/%3E%3Ccircle cx=%22420%22 cy=%22140%22 r=%2270%22 stroke=%22%23ff7a5c%22 stroke-width=%228%22 fill=%22none%22/%3E%3C/svg%3E") top right / min(52vw, 380px) auto no-repeat, url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 400%22 preserveAspectRatio=%22xMinYMax meet%22%3E%3Cg transform=%22rotate(180 200 200)%22%3E%3Ccircle cx=%22390%22 cy=%2210%22 r=%22150%22 stroke=%22%230f4c5c%22 stroke-width=%2220%22 fill=%22none%22/%3E%3Ccircle cx=%22300%22 cy=%22-30%22 r=%22105%22 stroke=%22%231a9ba0%22 stroke-width=%2212%22 fill=%22none%22 opacity=%22.9%22/%3E%3Ccircle cx=%22345%22 cy=%2295%22 r=%2244%22 stroke=%22%23bfe8e5%22 stroke-width=%2211%22 fill=%22none%22/%3E%3Ccircle cx=%22420%22 cy=%22140%22 r=%2270%22 stroke=%22%23ff7a5c%22 stroke-width=%228%22 fill=%22none%22/%3E%3C/g%3E%3C/svg%3E") bottom left / min(52vw, 380px) auto no-repeat, var(--rsg-bg);
  --rsg-corner: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 400%22 preserveAspectRatio=%22xMaxYMin meet%22%3E%3Ccircle cx=%22390%22 cy=%2210%22 r=%22150%22 stroke=%22%230f4c5c%22 stroke-width=%2220%22 fill=%22none%22/%3E%3Ccircle cx=%22300%22 cy=%22-30%22 r=%22105%22 stroke=%22%231a9ba0%22 stroke-width=%2212%22 fill=%22none%22 opacity=%22.9%22/%3E%3Ccircle cx=%22345%22 cy=%2295%22 r=%2244%22 stroke=%22%23bfe8e5%22 stroke-width=%2211%22 fill=%22none%22/%3E%3Ccircle cx=%22420%22 cy=%22140%22 r=%2270%22 stroke=%22%23ff7a5c%22 stroke-width=%228%22 fill=%22none%22/%3E%3C/svg%3E");
}
[data-theme="gala"] {
  --rsg-p: #4b2a7b; --rsg-p-rgb: 75,42,123; --rsg-p-dark: #1b1340; --rsg-a: #d4af37; --rsg-a-rgb: 212,175,55; --rsg-a2: #8a6fc0;
  --rsg-soft: #f1ecf8; --rsg-a-soft: #f8f0d6; --rsg-bg: #faf6ea; --rsg-surface: #fffdf8; --rsg-line: #ece4cf;
  --rsg-ink: #241c3a; --rsg-muted: #7a7390;
  --rsg-side: linear-gradient(175deg,#1b1340 0%,#231850 70%,#2c1d5e 100%); --rsg-side-ink: #d9d2ee; --rsg-side-active: rgba(212,175,55,.18); --rsg-nav: linear-gradient(100deg,#1b1340 0%,#2c1d5e 70%,#4b2a7b 100%);
  --rsg-head: "RSG Playfair", "RSG Inter", system-ui, sans-serif; --rsg-head-w: 700; --rsg-head-ls: 0;
  --rsg-sb-bg: radial-gradient(ellipse at 85% 0%,#3a2470 0%,#140e30 60%); --rsg-sb-accent: #e2c35c; --rsg-info: #6a4bb0; --rsg-side-top: #1b1340;
  --rsg-side-deco: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 250 260%22 preserveAspectRatio=%22xMidYMax slice%22%3E%3Cg opacity=%22.4%22%3E%3Cpath d=%22M-10 190 C 60 150 120 240 190 190 S 250 170 270 200%22 stroke=%22%23d4af37%22 stroke-width=%222.5%22 fill=%22none%22/%3E%3Cpath d=%22M-10 210 C 70 250 130 160 200 210 S 260 230 270 200%22 stroke=%22%23d4af37%22 stroke-width=%221%22 fill=%22none%22 opacity=%22.7%22/%3E%3Ccircle cx=%2230%22 cy=%22120%22 r=%222%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%22200%22 cy=%22100%22 r=%221.6%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%22120%22 cy=%22140%22 r=%221.3%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%22230%22 cy=%22240%22 r=%221.8%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%2260%22 cy=%22245%22 r=%221.4%22 fill=%22%23d4af37%22/%3E%3C/g%3E%3C/svg%3E");
  --rsg-login-bg: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 300%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 60 C 80 20 160 110 240 50 S 360 30 400 70%22 stroke=%22%23d4af37%22 stroke-width=%223%22 fill=%22none%22/%3E%3Cpath d=%22M0 75 C 90 110 170 10 260 60 S 360 100 400 55%22 stroke=%22%23d4af37%22 stroke-width=%221.2%22 fill=%22none%22 opacity=%22.6%22/%3E%3Ccircle cx=%2240%22 cy=%22140%22 r=%222.5%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%22120%22 cy=%22200%22 r=%221.6%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%22330%22 cy=%22150%22 r=%222.2%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%22370%22 cy=%22230%22 r=%221.6%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%22260%22 cy=%22210%22 r=%221.3%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%2270%22 cy=%22250%22 r=%221.4%22 fill=%22%23d4af37%22/%3E%3C/svg%3E") top / 100% 240px no-repeat, linear-gradient(176deg, #1b1340 0 210px, #4b2a7b 210px 218px, #d4af37 218px 220px, transparent 220px) top / 100% 260px no-repeat, var(--rsg-bg);
  --rsg-corner: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 300%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 60 C 80 20 160 110 240 50 S 360 30 400 70%22 stroke=%22%23d4af37%22 stroke-width=%223%22 fill=%22none%22/%3E%3Cpath d=%22M0 75 C 90 110 170 10 260 60 S 360 100 400 55%22 stroke=%22%23d4af37%22 stroke-width=%221.2%22 fill=%22none%22 opacity=%22.6%22/%3E%3Ccircle cx=%2240%22 cy=%22140%22 r=%222.5%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%22120%22 cy=%22200%22 r=%221.6%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%22330%22 cy=%22150%22 r=%222.2%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%22370%22 cy=%22230%22 r=%221.6%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%22260%22 cy=%22210%22 r=%221.3%22 fill=%22%23d4af37%22/%3E%3Ccircle cx=%2270%22 cy=%22250%22 r=%221.4%22 fill=%22%23d4af37%22/%3E%3C/svg%3E");
}
/* ------------------------------------------------------------ Grundlagen */
:root { --rsg-radius: .75rem; --rsg-radius-sm: .5rem; }
body { font-family: "RSG Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--rsg-ink);
       -webkit-font-smoothing: antialiased; }
.content-wrapper { background: var(--rsg-bg); }
a { color: var(--rsg-p); } a:hover { color: var(--rsg-p-dark); }
.text-primary { color: var(--rsg-p) !important; }
.text-muted { color: var(--rsg-muted) !important; }
.bg-primary, .badge-primary { background: var(--rsg-p) !important; color: #fff !important; }
h1, .h1, .modal-title, .brand-text, .navbar-brand, .rsg-display { font-family: var(--rsg-head); letter-spacing: var(--rsg-head-ls); font-variant-numeric: lining-nums; }
.bg-info, .badge-info { background-color: var(--rsg-info) !important; color: #fff !important; }
.alert-info { background: var(--rsg-info); border-color: var(--rsg-info); color: #fff; }
.alert-info a { color: #fff; text-decoration: underline; }
.btn-info { background: var(--rsg-info); border-color: var(--rsg-info); color: #fff; }
.btn-info:hover { filter: brightness(.92); color: #fff; }
.text-info { color: var(--rsg-info) !important; }
.card-info:not(.card-outline) > .card-header { background: var(--rsg-info); }
.card-outline.card-info { border-top: 3px solid var(--rsg-info); }
.content-header h1 { font-weight: var(--rsg-head-w); font-size: 1.65rem; color: var(--rsg-p-dark); position: relative; padding-bottom: .45rem; }
.content-header h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; border-radius: 2px; background: var(--rsg-a); }
.content-header h1:empty { display: none; }
.content-header h1 small { font-family: "RSG Inter", system-ui, sans-serif; letter-spacing: 0; }
.card-title { font-weight: 600; }

/* ------------------------------------------------------------ Karten, Tabellen */
.card { border-radius: var(--rsg-radius); border: 1px solid var(--rsg-line); background: var(--rsg-surface);
        box-shadow: 0 1px 2px rgba(var(--rsg-p-rgb), .05), 0 6px 18px rgba(var(--rsg-p-rgb), .06); }
.card > .card-header { border-top-left-radius: var(--rsg-radius); border-top-right-radius: var(--rsg-radius); border-bottom-color: var(--rsg-line); background: transparent; }
.card > .card-footer { background: transparent; border-top-color: var(--rsg-line); border-radius: 0 0 var(--rsg-radius) var(--rsg-radius); }
.card > .card-body.p-0 > .table:last-child tr:last-child td:first-child { border-bottom-left-radius: var(--rsg-radius); }
.card-primary:not(.card-outline) > .card-header { background: var(--rsg-nav); color: #fff; border-bottom: 0; }
.card-primary:not(.card-outline) > .card-header .btn-tool { color: rgba(255,255,255,.8); }
.card-outline.card-primary { border-top: 3px solid var(--rsg-p); }
.card-outline.card-success { border-top: 3px solid #2e9e6a; }
.card-success:not(.card-outline) > .card-header { background: #2e9e6a; }
.table thead th { border-bottom: 2px solid var(--rsg-line); color: var(--rsg-muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.table td, .table th { border-top-color: var(--rsg-line); }
.table-hover tbody tr:hover { background: var(--rsg-soft); }
.list-group-item { border-color: var(--rsg-line); background: var(--rsg-surface); }
.list-group-item.active { background: var(--rsg-p); border-color: var(--rsg-p); }
.callout { border-radius: var(--rsg-radius-sm); background: var(--rsg-surface); box-shadow: 0 1px 2px rgba(var(--rsg-p-rgb), .06); }
.callout.callout-info { border-left-color: var(--rsg-a2); }
.callout.callout-info h5, .callout.callout-info b:first-child { color: var(--rsg-p); }
.callout.callout-warning { border-left-color: var(--rsg-a); }
.alert { border-radius: var(--rsg-radius-sm); }
.modal-content { border-radius: var(--rsg-radius); border: 0; }
.modal-header { border-bottom-color: var(--rsg-line); } .modal-footer { border-top-color: var(--rsg-line); }
.rsg-toast { border-radius: 999px; }

/* ------------------------------------------------------------ Buttons & Formulare */
.btn { border-radius: var(--rsg-radius-sm); font-weight: 500; transition: background .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-xs, .btn-sm { border-radius: .4rem; }
.btn-lg { border-radius: .65rem; }
.btn-primary { background: var(--rsg-p); border-color: var(--rsg-p); color: #fff; box-shadow: 0 2px 6px rgba(var(--rsg-p-rgb), .25); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active {
  background: var(--rsg-p-dark); border-color: var(--rsg-p-dark); color: #fff; }
.btn-primary:focus, .btn-outline-primary:focus { box-shadow: 0 0 0 .2rem rgba(var(--rsg-p-rgb), .3); }
.btn-primary.disabled, .btn-primary:disabled { background: var(--rsg-p); border-color: var(--rsg-p); opacity: .55; }
.btn-outline-primary { color: var(--rsg-p); border-color: var(--rsg-p); }
.btn-outline-primary:hover, .btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-group-toggle > .btn-outline-primary.active { background: var(--rsg-p); border-color: var(--rsg-p); color: #fff; }
.btn-default { background: var(--rsg-surface); border-color: var(--rsg-line); color: var(--rsg-ink); }
.btn-default:hover { background: var(--rsg-soft); }
.btn-accent { background: var(--rsg-a); border-color: var(--rsg-a); color: #fff; }
.btn-accent:hover { filter: brightness(.93); color: #fff; }
.form-control, .custom-select, .input-group-text { border-radius: var(--rsg-radius-sm); border-color: #d5dbe3; }
.input-group > .form-control:not(:last-child), .input-group > .custom-select:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-append > .input-group-text, .input-group > .input-group-append > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .input-group-prepend > .input-group-text, .input-group > .input-group-prepend > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-text { background: var(--rsg-soft); color: var(--rsg-p); }
.form-control:focus, .custom-select:focus { border-color: var(--rsg-p); box-shadow: 0 0 0 .2rem rgba(var(--rsg-p-rgb), .15); }
.custom-control-input:checked ~ .custom-control-label::before { background: var(--rsg-p); border-color: var(--rsg-p); }
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 .2rem rgba(var(--rsg-p-rgb), .2); }
.custom-control-input:focus:not(:checked) ~ .custom-control-label::before { border-color: var(--rsg-p); }
.page-item.active .page-link { background: var(--rsg-p); border-color: var(--rsg-p); }
.page-link { color: var(--rsg-p); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--rsg-p); }
.nav-tabs .nav-link.active { color: var(--rsg-p); border-top: 2px solid var(--rsg-a); }
.progress-bar { background-color: var(--rsg-p); }
.dropdown-item.active, .dropdown-item:active { background: var(--rsg-p); }
.badge { border-radius: .4rem; font-weight: 600; }

/* ------------------------------------------------------------ Kopfleiste */
.main-header.navbar-white { background: rgba(255,255,255,.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rsg-line); }
[data-theme="gala"] .main-header.navbar-white { background: rgba(255,253,248,.9); }
.navbar-primary, .main-header.navbar-primary { background: var(--rsg-nav) !important; border-bottom: 2px solid var(--rsg-a); }
.navbar-primary .navbar-brand .fa-ribbon, .brand-link .fa-ribbon { color: var(--rsg-a); }
.navbar-primary .navbar-brand .brand-text { font-weight: 600 !important; }

/* ------------------------------------------------------------ Seitenleiste */
.main-sidebar, .main-sidebar::before { background: var(--rsg-side) !important; }
.main-sidebar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: var(--rsg-side-deco) bottom / cover no-repeat;
                       pointer-events: none; z-index: 0; }
.main-sidebar .sidebar, .main-sidebar .brand-link { position: relative; z-index: 1; }
.main-sidebar .brand-link, .layout-navbar-fixed .wrapper .sidebar-dark-primary .brand-link:not([class*=navbar]) {
  background: var(--rsg-side-top) !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; }
.main-sidebar .brand-link .brand-text { font-weight: 600 !important; color: #fff; }
.sidebar-dark-primary .nav-sidebar .nav-link { color: var(--rsg-side-ink); border-radius: var(--rsg-radius-sm); }
.sidebar-dark-primary .nav-sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-dark-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active,
.sidebar-dark-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active:hover {
  background: var(--rsg-side-active); color: #fff; box-shadow: inset 3px 0 0 var(--rsg-a); }
.sidebar-dark-primary .nav-sidebar > .nav-item.menu-open > .nav-link { background: rgba(255,255,255,.06); color: #fff; }
.nav-sidebar .nav-header { color: var(--rsg-a) !important; font-size: .7rem; font-weight: 700; letter-spacing: .12em; opacity: .9; padding-top: 1rem; }

/* ------------------------------------------------------------ Anmeldung (mit Urkunden-Verzierung) */
body.rsg-login .content-wrapper { background: var(--rsg-login-bg); }
body.rsg-login .card { box-shadow: 0 10px 40px rgba(var(--rsg-p-rgb), .18); backdrop-filter: blur(2px); }
body.rsg-login .card-header h3 { font-family: var(--rsg-head); font-weight: var(--rsg-head-w); color: var(--rsg-p-dark); }
body.rsg-login .card-header h3 .fa-ribbon { color: var(--rsg-a); }
body.rsg-login .mode-btn { border: 1px solid var(--rsg-line); }
.rsg-apparatus { display: flex; justify-content: center; gap: 1.1rem; color: var(--rsg-p); opacity: .85; }
.rsg-apparatus svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------ Live-Elemente */
.routine-list tr.current { background: var(--rsg-a-soft) !important; box-shadow: inset 4px 0 0 var(--rsg-a); }
.club-row.open, .block-list li.dragging { background: var(--rsg-soft); }
.music-matrix .mcell:hover { background: var(--rsg-soft); }
.music-matrix .mcell.used { background: color-mix(in srgb, var(--rsg-soft) 55%, transparent); }
.player-progress > div { background: var(--rsg-p); }
.score-input, .ded-display { border-radius: var(--rsg-radius-sm); }
.keypad button, .ded-grid button { border-radius: .6rem; }

/* ------------------------------------------------------------ Anzeigetafel */
body.scoreboard { background: var(--rsg-sb-bg); background-color: #0b1d3a; font-family: "RSG Inter", system-ui, sans-serif; }
body.scoreboard .sb-name, body.scoreboard .sb-ttitle { font-family: var(--rsg-head); font-variant-numeric: lining-nums; }

/* ------------------------------------------------------------ Seite „Design“ */
.theme-card { cursor: pointer; overflow: hidden; transition: transform .15s, box-shadow .15s; border: 2px solid transparent !important; }
.theme-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.theme-card.active { border-color: var(--rsg-a) !important; }
.theme-card .tc-badge { display: none; } .theme-card.active .tc-badge { display: inline-block; }
.tp { display: grid; grid-template-columns: 26% 1fr; height: 170px; background: var(--rsg-bg); font-family: "RSG Inter", system-ui, sans-serif; }
.tp-side { background: var(--rsg-side); position: relative; padding: 10px 8px; }
.tp-side::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: var(--rsg-side-deco) bottom / cover no-repeat; }
.tp-side i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.25); margin: 0 0 7px; }
.tp-side i.on { background: var(--rsg-side-active); box-shadow: inset 2px 0 0 var(--rsg-a); }
.tp-side b { display: block; height: 5px; width: 50%; background: var(--rsg-a); border-radius: 3px; margin: 10px 0 7px; opacity: .9; }
.tp[data-theme="gala"] .tp-main::before { width: 100%; height: 44px; background: var(--rsg-corner) top / 100% 100% no-repeat, linear-gradient(176deg, #1b1340 0 34px, #d4af37 34px 36px, transparent 36px); }
.tp[data-theme="gala"] .tp-main { padding-top: 52px; }
.tp-main { padding: 12px 14px; position: relative; overflow: hidden; }
.tp-main::before { content: ""; position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: var(--rsg-corner) top right / 100% auto no-repeat; opacity: .9; }
.tp-h { font-family: var(--rsg-head); font-weight: var(--rsg-head-w); color: var(--rsg-p-dark); font-size: 1.05rem; position: relative; }
.tp-h::after { content: ""; display: block; width: 26px; height: 3px; background: var(--rsg-a); border-radius: 2px; margin-top: 3px; }
.tp-card { background: var(--rsg-surface); border: 1px solid var(--rsg-line); border-radius: 8px; padding: 8px; margin-top: 10px; width: 78%; position: relative; }
.tp-card i { display: block; height: 6px; border-radius: 3px; background: var(--rsg-line); margin-bottom: 6px; }
.tp-btn { display: inline-block; font-size: .7rem; padding: 2px 10px; border-radius: 6px; background: var(--rsg-p); color: #fff; }
.tp-btn.o { background: transparent; border: 1px solid var(--rsg-p); color: var(--rsg-p); }
.tp-btn.a { background: var(--rsg-a); }
.swatches { display: flex; gap: 6px; } .swatches span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }

/* ------------------------------------------------------------ Logo turnpi (static/brand) */
.navbar-brand .tp-nav { height: 40px; width: auto; display: block; }
.main-header .navbar-brand { padding-top: 0; padding-bottom: 0; }
.main-sidebar .brand-link, .layout-navbar-fixed.layout-fixed .wrapper .main-sidebar .brand-link,
.layout-navbar-fixed.sidebar-mini.sidebar-collapse .wrapper .main-sidebar .brand-link {
  height: 100px; padding: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.main-sidebar .brand-link .tp-full { height: 84px; width: auto; }
.main-sidebar .brand-link .tp-mark { height: 56px; width: auto; display: none; }
.layout-navbar-fixed.layout-fixed .wrapper .main-sidebar .sidebar { margin-top: 100px; height: calc(100vh - 100px); height: calc(100dvh - 100px); }
@media (min-width: 992px) {   /* eingeklappte Leiste: nur die Turnerin */
  .sidebar-mini.sidebar-collapse .main-sidebar:not(:hover):not(.sidebar-focused) .tp-full { display: none; }
  .sidebar-mini.sidebar-collapse .main-sidebar:not(:hover):not(.sidebar-focused) .tp-mark { display: block; }
}

/* ------------------------------------------------------------ Anmeldeseite: ganzflächig in den Farben des Logos */
body.rsg-login, body.rsg-login .wrapper { background: #020b28; }
body.rsg-login .wrapper { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.rsg-login .content-wrapper { flex: 1 0 auto; min-height: 0 !important; margin: 0 !important; display: flex; flex-direction: column; justify-content: center;
  background: #06225c url("brand/login-bg.svg") center / cover no-repeat; padding: 1rem 0; }
body.rsg-login .content-header { display: none; }
body.rsg-login .content { flex: 0 0 auto; }
body.rsg-login .content .alert { max-width: 420px; margin: 0 auto 1rem; }
.tp-box { max-width: 420px; margin: 0 auto; }
.tp-login { margin: 0 0 1.25rem; line-height: 0; text-align: center; }
.tp-login img { width: 92%; height: auto; }
body.rsg-login .card { margin: 0; color: #e8f1ff; background: rgba(3, 18, 58, .78); border: 1px solid rgba(110, 190, 255, .35); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 6, 30, .6); backdrop-filter: blur(10px); }
body.rsg-login .card-body { padding: 1.6rem 1.5rem 1.2rem; }
body.rsg-login .card-header, body.rsg-login .card-footer { background: transparent; border-color: rgba(110, 190, 255, .2); color: #fff; }
body.rsg-login .card-header h3, body.rsg-login .card-header h3 i { color: #fff; }
body.rsg-login .text-muted { color: #b5cdf2 !important; }
body.rsg-login .form-control, body.rsg-login .form-control:focus { background: rgba(255, 255, 255, .09); color: #fff; border: 1px solid rgba(140, 200, 255, .45); }
body.rsg-login .form-control:focus { border-color: #3fd8ff; box-shadow: 0 0 0 3px rgba(25, 216, 255, .22); }
body.rsg-login .form-control::placeholder { color: #a9c3ec; opacity: 1; }
body.rsg-login .form-control:-webkit-autofill { -webkit-text-fill-color: #fff; caret-color: #fff; box-shadow: 0 0 0 100px #12306e inset; }
body.rsg-login .input-group-text { background: rgba(255, 255, 255, .09); color: #7fe0ff; border: 1px solid rgba(140, 200, 255, .45); border-left: 0; }
body.rsg-login .btn-primary { color: #fff; border: 0; background: linear-gradient(100deg, #0b6fe0, #1747d1); box-shadow: 0 6px 20px rgba(10, 110, 255, .4); }
body.rsg-login .btn-primary:hover, body.rsg-login .btn-primary:focus { background: linear-gradient(100deg, #0a60c4, #123bb0); }
body.rsg-login .mode-btn.btn-outline-primary, body.rsg-login .btn-outline-secondary { color: #d6e8ff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(140, 200, 255, .45); }
body.rsg-login .mode-btn.btn-outline-primary:hover, body.rsg-login .btn-outline-secondary:hover { background: rgba(255, 255, 255, .15); color: #fff; }
body.rsg-login .mode-btn { border: 1px solid transparent; }
body.rsg-login .btn-link { color: #9fd8ff; }
body.rsg-login hr { border-color: rgba(110, 190, 255, .25); }
body.rsg-login .rsg-apparatus { color: #5fd0ff; }
body.rsg-login .mode-btn { padding-left: .25rem; padding-right: .25rem; white-space: nowrap; font-size: 1.1rem; }
@media (max-height: 520px) { .tp-login { margin-bottom: .5rem; } .tp-login img { width: auto; max-height: 84px; } body.rsg-login .content-wrapper { padding: .5rem 0; }
  body.rsg-login .card-body { padding: .8rem 1rem .5rem; } body.rsg-login .card-body .mb-3 { margin-bottom: .6rem !important; } body.rsg-login .card-footer, body.rsg-login #hint:empty { display: none; } }
