/* SSK Bogensport – Plugin-Styles, passend zum neuen Website-Design */
:root {
	--ssk-ink: #0B1220;
	--ssk-muted: #4B5565;
	--ssk-line: #E4E8EF;
	--ssk-surf: #F3F5F9;
	--ssk-blue: #1D5BB5;
	--ssk-orange: #F29A1F;
	--ssk-lightor: #FFD08A;
}

.ssk-notice { padding: 14px 18px; border-radius: 14px; margin: 0 0 16px; font-weight: 600; }
.ssk-ok { background: #DFF3E6; color: #1D6B3A; }
.ssk-err { background: #FBE9E6; color: #9A2B1F; }
.ssk-hinweis { color: var(--ssk-muted); }
.ssk-klein { font-size: 13px; color: var(--ssk-muted); font-weight: 400; }

/* Tabelle */
.ssk-tabelle-wrap { overflow-x: auto; border: 1px solid var(--ssk-line); border-radius: 24px; }
.ssk-tabelle { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; }
.ssk-tabelle caption { text-align: left; padding: 18px 18px 6px; font-weight: 700; }
.ssk-tabelle th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--ssk-muted); padding: 14px 18px; }
.ssk-tabelle td { padding: 14px 18px; border-top: 1px solid var(--ssk-line); }
.ssk-tabelle .ssk-num { text-align: right; white-space: nowrap; }
.ssk-tabelle .ssk-eigenes td { background: #EEF3FB; font-weight: 700; }

/* Spieltage */
.ssk-spieltage { list-style: none; margin: 0; padding: 8px 24px; background: var(--ssk-surf); border-radius: 24px; }
.ssk-spieltage li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ssk-line); }
.ssk-spieltage li:first-child { border-top: 0; }
.ssk-st-nr { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ssk-st-info { flex: 1; }
.ssk-badge { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ssk-muted); }
.ssk-st-gespielt .ssk-badge { color: var(--ssk-ink); }
.ssk-st-entfaellt .ssk-badge { background: #FBE9E6; color: #9A2B1F; }

/* Formulare */
.ssk-form { background: var(--ssk-surf); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; }
.ssk-form h3 { margin: 0; }
.ssk-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; flex: 1 1 200px; }
.ssk-form input, .ssk-form select { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #C9D0DB; border-radius: 12px; background: #fff; color: var(--ssk-ink); }
.ssk-row { display: flex; flex-wrap: wrap; gap: 14px; }
.ssk-btn { font: inherit; font-weight: 700; font-size: 15px; background: var(--ssk-ink); color: #fff; border: 0; padding: 14px 24px; border-radius: 999px; cursor: pointer; align-self: flex-start; }
.ssk-btn-orange { background: var(--ssk-orange); color: var(--ssk-ink); }
.ssk-btn:focus-visible, .ssk-live-tab:focus-visible { outline: 3px solid var(--ssk-blue); outline-offset: 2px; }

/* Live-Rangliste */
.ssk-live { background: var(--ssk-ink); color: #fff; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.ssk-live-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ssk-live-titel h2 { margin: 6px 0 0; color: #fff; font-size: clamp(32px, 5vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -1.5px; }
.ssk-live-status { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ssk-lightor); display: flex; align-items: center; gap: 8px; }
.ssk-live-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ssk-orange); }
.ssk-live-offline { color: #FFB4A8; }
.ssk-live-offline::before { background: #FF7A66; }
.ssk-live-kacheln { display: flex; flex-wrap: wrap; gap: 12px; }
.ssk-live-kachel { background: #18233A; border-radius: 20px; padding: 14px 22px; display: flex; flex-direction: column; min-width: 150px; }
.ssk-live-kachel span { font-size: 13px; color: #C7CEDA; }
.ssk-live-kachel strong { font-size: 28px; font-weight: 800; }
.ssk-live-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ssk-live-tab { font: inherit; font-size: 16px; font-weight: 700; padding: 12px 22px; border-radius: 999px; cursor: pointer; background: transparent; color: #fff; border: 1px solid #3A4763; }
.ssk-live-tab[aria-selected="true"] { background: var(--ssk-orange); color: var(--ssk-ink); border-color: var(--ssk-orange); }
.ssk-live-body { display: flex; flex-wrap: wrap; gap: 24px; }
.ssk-live-liste { list-style: none; margin: 0; padding: 0; flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ssk-live-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 16px 22px; border-radius: 20px; background: #18233A; }
.ssk-live-erster { background: var(--ssk-blue); }
.ssk-live-platz, .ssk-live-summe { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.ssk-live-platz { width: 48px; }
.ssk-live-summe { min-width: 110px; text-align: right; }
.ssk-live-team { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; }
.ssk-live-team strong { font-size: 20px; }
.ssk-live-team small, .ssk-live-feed small { color: #C7CEDA; font-size: 13px; }
.ssk-live-neu { font-weight: 800; color: var(--ssk-lightor); font-size: 18px; }
.ssk-live-feed { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.ssk-live-feed h3 { margin: 0; color: #fff; font-size: 18px; }
.ssk-live-feed-item { background: #18233A; border-radius: 16px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ssk-live-feed-item > span:first-child { display: flex; flex-direction: column; }

/* Turnier-Anmeldung */
.ssk-anmeldung { display: flex; flex-direction: column; gap: 18px; }
.ssk-fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ssk-fakten > div { background: var(--ssk-surf); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.ssk-fakten span { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ssk-muted); }
.ssk-fakten strong { font-size: 17px; }
.ssk-hp { position: absolute !important; left: -9999px !important; }
.ssk-form textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #C9D0DB; border-radius: 12px; background: #fff; width: 100%; box-sizing: border-box; }
.ssk-form fieldset { border: 0; margin: 0; padding: 0; }
.ssk-radio { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.ssk-radio legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; width: 100%; }
.ssk-radio label, .ssk-form label.ssk-check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; flex: 0 0 auto !important; }
.ssk-form label.ssk-check { flex: 1 1 100% !important; }
.ssk-radio input, .ssk-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.ssk-person { background: #fff; border-radius: 16px !important; padding: 16px 18px !important; display: flex; flex-direction: column; gap: 12px; }
.ssk-person legend { font-weight: 700; padding: 0 4px; }
.ssk-teilnehmer { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ssk-teilnehmer > div { background: var(--ssk-surf); border-radius: 18px; padding: 18px 22px; }
.ssk-teilnehmer h4 { margin: 0 0 8px; }
.ssk-teilnehmer ul { margin: 0; padding-left: 1.1em; }
/* 1.2.0 Tabellenstand eintragen */
.ssk-stand-wrap { overflow-x: auto; margin: 8px 0 16px; }
.ssk-stand { width: 100%; min-width: 560px; border-collapse: collapse; }
.ssk-stand th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--ssk-muted); padding: 8px 6px; }
.ssk-stand td { padding: 6px; border-top: 1px solid var(--ssk-line); }
.ssk-stand td:first-child { font-weight: 600; min-width: 160px; }
.ssk-stand input { width: 100%; min-width: 58px; padding: 8px 6px; text-align: center; }
.ssk-stand tr.ssk-eigenes td { background: #FEF3E2; }
.ssk-check { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0 0 14px; }
.ssk-check input { width: auto; }
.ssk-stand td.ssk-diff { text-align: center; font-weight: 700; color: var(--ssk-muted); min-width: 52px; }
.ssk-stand td:nth-child(2) { font-weight: 600; min-width: 170px; }
.ssk-stand td:first-child { font-weight: 400; min-width: 0; width: 70px; }
/* 1.2.3 Personen hinzufügen / entfernen */
.ssk-personen { display: flex; flex-direction: column; gap: 14px; }
.ssk-person { position: relative; }
.ssk-person[hidden], .ssk-person-plus[hidden] { display: none !important; }
.ssk-person-weg { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--ssk-muted); font-size: 14px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.ssk-person-weg:hover, .ssk-person-weg:focus-visible { color: #b42318; background: #fdecea; }
.ssk-person-plus { align-self: flex-start; margin: 14px 0 6px; background: transparent !important; color: #1D5BB5 !important; border: 2px dashed #1D5BB5 !important; box-shadow: none !important; }
.ssk-person-plus:hover, .ssk-person-plus:focus-visible { background: #EEF3FB !important; }
.ssk-live-liste { flex: 1 1 100%; }
.ssk-live-body:has(.ssk-live-feed) .ssk-live-liste { flex: 2 1 480px; }
/* 1.6.1 Medaillen für Platz 1–3 in der Live-Rangliste */
.ssk-live-medaille { position: relative; display: inline-flex; flex-direction: column; align-items: center; width: 48px; height: 58px; font-size: 0; letter-spacing: 0; }
.ssk-live-medaille__band { width: 22px; height: 18px; background: linear-gradient(90deg, #F29A1F 0 33%, #fff 33% 66%, #F29A1F 66%); clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); }
.ssk-live-medaille__scheibe { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: -2px; border-radius: 50%; font-size: 20px; font-weight: 800; color: #3B2A06; box-shadow: inset 0 0 0 3px rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.18), 0 4px 10px rgba(0,0,0,.35); }
.ssk-live-medaille--1 .ssk-live-medaille__scheibe { background: radial-gradient(circle at 35% 30%, #FFF3B0, #F5C431 45%, #C9920E); }
.ssk-live-medaille--2 .ssk-live-medaille__scheibe { background: radial-gradient(circle at 35% 30%, #FFFFFF, #CBD3DE 45%, #8E99A8); color: #2B3340; }
.ssk-live-medaille--3 .ssk-live-medaille__scheibe { background: radial-gradient(circle at 35% 30%, #FFD9B5, #D08A4C 45%, #8F5526); color: #2E1806; }
.ssk-live-podest--2 { box-shadow: inset 4px 0 0 #CBD3DE; }
.ssk-live-podest--3 { box-shadow: inset 4px 0 0 #D08A4C; }
.ssk-live-podest--1 .ssk-live-medaille__scheibe { animation: ssk-glanz 3s ease-in-out infinite; }
@keyframes ssk-glanz { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.15); } }
@media (prefers-reduced-motion: reduce) { .ssk-live-podest--1 .ssk-live-medaille__scheibe { animation: none; } }
/* Dunkler Modus (Theme-Schalter) */
html[data-theme="dark"] .ssk-ok { background: rgba(30,158,90,.18); }
html[data-theme="dark"] .ssk-err { background: rgba(217,58,43,.2); }
html[data-theme="dark"] .ssk-hinweis { color: #A7B3C6; }
html[data-theme="dark"] .ssk-klein { color: #A7B3C6; }
html[data-theme="dark"] .ssk-tabelle-wrap { border: 1px solid #24344F; }
html[data-theme="dark"] .ssk-tabelle th { color: #A7B3C6; }
html[data-theme="dark"] .ssk-tabelle td { border-top: 1px solid #24344F; }
html[data-theme="dark"] .ssk-tabelle .ssk-eigenes td { background: #111D31; }
html[data-theme="dark"] .ssk-spieltage { background: #111D31; }
html[data-theme="dark"] .ssk-spieltage li { border-top: 1px solid #24344F; }
html[data-theme="dark"] .ssk-st-nr { background: #14223A; }
html[data-theme="dark"] .ssk-badge { background: #14223A; color: #A7B3C6; }
html[data-theme="dark"] .ssk-st-gespielt .ssk-badge { color: #E6ECF5; }
html[data-theme="dark"] .ssk-st-entfaellt .ssk-badge { background: rgba(217,58,43,.2); }
html[data-theme="dark"] .ssk-form { background: #111D31; }
html[data-theme="dark"] .ssk-form input, html[data-theme="dark"] .ssk-form select { border: 1px solid #24344F; background: #14223A; color: #E6ECF5; }
html[data-theme="dark"] .ssk-fakten > div { background: #111D31; }
html[data-theme="dark"] .ssk-fakten span { color: #A7B3C6; }
html[data-theme="dark"] .ssk-form textarea { border: 1px solid #24344F; background: #14223A; }
html[data-theme="dark"] .ssk-person { background: #14223A; }
html[data-theme="dark"] .ssk-teilnehmer > div { background: #111D31; }
html[data-theme="dark"] .ssk-stand th { color: #A7B3C6; }
html[data-theme="dark"] .ssk-stand td { border-top: 1px solid #24344F; }
html[data-theme="dark"] .ssk-stand tr.ssk-eigenes td { background: rgba(242,154,31,.16); }
html[data-theme="dark"] .ssk-stand td.ssk-diff { color: #A7B3C6; }
html[data-theme="dark"] .ssk-person-weg { color: #A7B3C6; }
html[data-theme="dark"] .ssk-person-weg:hover, html[data-theme="dark"] .ssk-person-weg:focus-visible { background: rgba(217,58,43,.2); }
html[data-theme="dark"] .ssk-person-plus:hover, html[data-theme="dark"] .ssk-person-plus:focus-visible { background: #111D31 !important; }


/* 1.7.0 – Live-Rangliste: Wartebildschirm vor dem Start */
.ssk-live--warten { position: relative; overflow: hidden; gap: 26px; }
.ssk-live--warten::after { content: ""; position: absolute; width: 560px; height: 560px; right: -200px; top: -200px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.06) 0 2px, transparent 2px 46px); pointer-events: none; }
.ssk-warten__kopf h2 { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; font-size: clamp(30px, 5vw, 52px); line-height: 1; margin: 14px 0 8px; color: #fff; }
.ssk-warten__wann { margin: 0; color: #C9D6EA; font-size: 17px; }
.ssk-warten__punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #F29A1F; box-shadow: 0 0 0 0 rgba(242,154,31,.6); animation: ssk-puls 1.8s infinite; margin-right: 4px; }
@keyframes ssk-puls { 70% { box-shadow: 0 0 0 10px rgba(242,154,31,0); } 100% { box-shadow: 0 0 0 0 rgba(242,154,31,0); } }
.ssk-warten__count { display: grid; grid-template-columns: repeat(4, minmax(0, 120px)); gap: 12px; position: relative; z-index: 1; }
.ssk-warten__count div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 16px 10px; text-align: center; }
.ssk-warten__count strong { display: block; font-family: "Anton", Impact, sans-serif; font-size: clamp(30px, 5vw, 46px); line-height: 1; color: #F29A1F; }
.ssk-warten__count span { font-size: 13px; color: #C9D6EA; text-transform: uppercase; letter-spacing: .1em; }
.ssk-warten__infos { display: flex; flex-wrap: wrap; gap: 12px 34px; position: relative; z-index: 1; }
.ssk-warten__infos span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #9FB3D1; }
.ssk-warten__infos strong { font-size: 19px; color: #fff; }
.ssk-warten__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.ssk-btn--orange { background: #F29A1F; color: #121826 !important; border-color: #F29A1F; }
.ssk-btn--orange:hover { background: #D9820A; border-color: #D9820A; }
.ssk-btn--hell { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.5); }
.ssk-btn--hell:hover { border-color: #fff; }
.ssk-warten__hinweis { margin: 0; font-size: 14px; color: #9FB3D1; position: relative; z-index: 1; }
@media (max-width: 560px) { .ssk-warten__count { grid-template-columns: repeat(4, 1fr); gap: 6px; } .ssk-warten__count div { padding: 12px 4px; border-radius: 14px; } }
.ssk-live--warten .ssk-live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #F29A1F; }
a.ssk-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

.ssk-warten__admin { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: 16px; background: rgba(242,154,31,.1); border: 1px dashed rgba(242,154,31,.5); position: relative; z-index: 1; font-size: 14px; color: #FFD08A; }
.ssk-warten__admin a { color: #fff; }
.ssk-warten__admin .ssk-btn { padding: 10px 18px; font-size: 14px; }

/* Felder direkt im (senkrechten) Formular nicht auf 200px Höhe strecken – sonst große Lücken */
.ssk-form > label, .ssk-form > label.ssk-check { flex: 0 0 auto !important; }

/* 1.7.7 – Heimspiel */
.ssk-heim { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--s-orange, #F29A1F); color: #0E2A52; vertical-align: 2px; }
.ssk-spieltage li.ssk-st-heim { box-shadow: inset 4px 0 0 var(--s-orange, #F29A1F); padding-left: 12px; margin-left: -12px; }

/* 1.7.9 – Platz 1–3 als Medaille, alte Punkte aus dem Theme aus */
.ssk-tabelle td.ssk-platz { width: 64px; text-align: center; padding-top: 8px; padding-bottom: 8px; vertical-align: middle; }
.ssk-tabelle td.ssk-platz::before { content: none !important; display: none !important; }
.ssk-tabelle th:first-child { text-align: center; }

/* 1.8.1 – Status-Farben bei den Spieltagen */
.ssk-spieltage .ssk-badge { display: inline-flex; align-items: center; gap: 6px; }
.ssk-spieltage .ssk-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ssk-st-geplant .ssk-badge { background: #E7EFFB; color: #1D5BB5; }
.ssk-st-gespielt .ssk-badge { background: #E4F4EA; color: #1E7A43; }
.ssk-st-entfaellt .ssk-badge { background: #FBE9E6; color: #9A2B1F; }
.ssk-st-entfaellt .ssk-st-info { color: var(--ssk-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.ssk-st-gespielt .ssk-st-nr { background: #E4F4EA; color: #1E7A43; }
html[data-theme="dark"] .ssk-st-geplant .ssk-badge { background: #16305A; color: #9CC0F5; }
html[data-theme="dark"] .ssk-st-gespielt .ssk-badge { background: #143A27; color: #8FD9AE; }
html[data-theme="dark"] .ssk-st-entfaellt .ssk-badge { background: #4A1F1A; color: #F2A99F; }
html[data-theme="dark"] .ssk-st-gespielt .ssk-st-nr { background: #143A27; color: #8FD9AE; }
html[data-theme="dark"] .ssk-st-entfaellt .ssk-st-info { color: #8796AD; }
.ssk-dg-frei { margin-top: 12px; }
.ssk-dg-frei small { font-size: 13px; color: var(--ssk-muted); }
.ssk-dg-flex[hidden] { display: none !important; }
/* Gleiche Spalten in allen Browsern (Firefox gibt Datumsfeldern eine größere Mindestbreite) */
.ssk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ssk-row > label { min-width: 0; }
.ssk-form input, .ssk-form select { min-width: 0; width: 100%; box-sizing: border-box; }
.ssk-form input[type="checkbox"], .ssk-form input[type="radio"] { width: auto; }
