/* ==========================================================================
   STKV UL2 – Clean Styles (scoped)
   - Alles unter .stkv-ul2-root, keine globalen Seiteneffekte
   - Gemeinsames Grundlayout + klare Tabellen-Varianten
   ========================================================================== */

.stkv-ul2-root{

  /* ======================================================================
     COLOR SYSTEM (Theme first)
     ====================================================================== */

  --ul2-primary: var(--wp--preset--color--primary,
                 var(--e-global-color-primary,
                 #E9542A));

  --ul2-primary-dark: var(--ul2-primary-dark, #D44220);

  --stkv-orange: var(--ul2-primary);
  --stkv-orange-dark: var(--ul2-primary-dark);

    /* Backward-compat aliases (falls irgendwo noch --stkv-primary genutzt wird) */
  --stkv-primary: var(--ul2-primary);
  --stkv-primary-dark: var(--ul2-primary-dark);


  --stkv-text: #4e4d48;
  --stkv-muted: #666;
  --stkv-bg: #ffffff;
  --stkv-card: #ffffff;
  --stkv-soft: #f6f6f6;
  --stkv-border: #e6e6e6;

  --ul2-radius: 14px;
  --ul2-radius-sm: 10px;
  --ul2-shadow: 0 1px 2px rgba(0,0,0,.05);

  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--stkv-text);
}


/* ==========================================================================
   Layout helpers
   ========================================================================== */

.stkv-ul2-root .ul2-grid{ display:grid; gap: 14px; }
.stkv-ul2-root .ul2-row{ display:flex; gap: 10px; align-items:center; flex-wrap: wrap; }

.stkv-ul2-root .ul2-wrap{ max-width: 100%; }

/* Dashboard SRF Layout */
.stkv-ul2-root .ul2-dash-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px){
  .stkv-ul2-root .ul2-dash-layout{ grid-template-columns: minmax(0,1fr); }
}

.stkv-ul2-root .ul2-dash-league-row{
  display: flex;
  gap: 12px;
  align-items: center;
}

.stkv-ul2-root .ul2-dash-league-row select{
  flex: 1 1 auto;
}

.stkv-ul2-root .ul2-newleague-toggle{
  flex: 0 0 auto;
  white-space: nowrap;
}

.stkv-ul2-root{
  --ul2-gap:16px;
  --ul2-gap-lg:24px;
  --ul2-border:rgba(0,0,0,0.08);
  --ul2-shadow:0 10px 28px rgba(0,0,0,0.06);
}

/* Settings-Card kompakt und „produktig“ */
.stkv-ul2-root .ul2-settings-card{
  max-width:600px;
  width:100%;
  margin-left:0; /* oder auto, wenn du zentrieren willst */
}

/* Blöcke mit klaren Abständen */
.stkv-ul2-root .ul2-settings-block{
  margin-top: var(--ul2-gap-lg);
  padding-top: var(--ul2-gap);
  border-top:1px solid var(--ul2-border);
}



/* ==========================================================================
   Headings / small text
   ========================================================================== */

.stkv-ul2-root .ul2-muted{ color: var(--stkv-muted); }
.stkv-ul2-root .ul2-hline{
  border: none;
  border-top: 1px solid var(--stkv-border);
  margin: 14px 0;
}

.stkv-ul2-root .ul2-head{
  margin: 26px 0 10px;
}

.stkv-ul2-root .ul2-head .ul2-eyebrow{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 6px;
}

.stkv-ul2-root .ul2-head-left h2{
  font-size: 44px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}



/* optional: Note etwas ruhiger */
.stkv-ul2-root .ul2-head .ul2-note{
  margin-top: 10px;
  opacity: .75;
}


/* ==========================================================================
   Cards / Panels
   ========================================================================== */

.stkv-ul2-root .ul2-panel{
  background: var(--stkv-card);
  border-radius: var(--ul2-radius);
  box-shadow: var(--ul2-shadow);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.04);
}

.stkv-ul2-root .ul2-panel__head{
  padding: 14px 16px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--stkv-border);
  background: #fff;
}

/* Stack (Resultate + Spieltag-Tabelle untereinander) */
.stkv-ul2-root .ul2-round-stack{
  display: grid;
  gap: 14px;
}

/* ==========================================================================
   Controls: buttons, selects, inputs
   ========================================================================== */

.stkv-ul2-root .ul2-btn,
.stkv-ul2-root .ul2-roundbtn{
  appearance: none;
  border: 1px solid var(--stkv-border);
  background: #fff;
  color: var(--stkv-text);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.stkv-ul2-root .ul2-btn:hover,
.stkv-ul2-root .ul2-roundbtn:hover{
  border-color: #d8d8d8;
  background: var(--ul2-btn-bg, #fff);
}

.stkv-ul2-root .ul2-btn.primary{
  background: var(--stkv-orange);
  border-color: var(--stkv-orange);
  color: #fff;
}

.stkv-ul2-root .ul2-btn.primary:hover{
  background: var(--ul2-accent, #d4633a);
  color:#fff;
  border-color: var(--ul2-accent, #d4633a);
}

.stkv-ul2-root .ul2-btn.secondary:hover{
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.16);
}

.stkv-ul2-root .ul2-roundbtn--active{
  background: var(--stkv-orange);
  border-color: var(--stkv-orange);
  color:#fff;
}

.stkv-ul2-root select,
.stkv-ul2-root input[type="text"],
.stkv-ul2-root input[type="number"]{
  width: 100%;
  border: 1px solid var(--stkv-border);
  border-radius: 10px;
  background: #fff;
  color: var(--stkv-text);
}


/* =========================
   Liga-Auswahl optisch abheben
   ========================= */
.stkv-ul2-root .ul2-leaguebar{
  position: relative;
  background: rgba(0,0,0,.015);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 16px;
  border-left: 3px solid rgba(233,84,42,.7);
}



/* Etwas mehr “UI-Luft” zwischen Label/Select/Button */
.stkv-ul2-root .ul2-leaguebar .ul2-field{
  margin-bottom: 10px;
}

/* Dropdown etwas “wichtiger” */
.stkv-ul2-root .ul2-leaguebar select{
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

/* Optional: Bar bleibt beim Scrollen sichtbar */
.stkv-ul2-root .ul2-leaguebar.is-sticky{
  position: sticky;
  top: 12px;
  z-index: 20;
}

.stkv-ul2-root .ul2-leaguebar.has-selection{
  border-color: rgba(233,84,42,.45);
}

/* =========================
   Dashboard: Offizielle Liga-Kacheln
   ========================= */

.stkv-ul2-root .ul2-official-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 0 14px;
}

@media (max-width: 760px){
  .stkv-ul2-root .ul2-official-grid{
    grid-template-columns: 1fr;
  }
}

.stkv-ul2-root .ul2-official-tile{
  position: relative;
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
  width: 100%;
}

.stkv-ul2-root .ul2-official-tile:hover{
  border-color: rgba(0,0,0,.18);
  background: rgba(0,0,0,.01);
  transform: translateY(-1px);
}


.stkv-ul2-root .ul2-official-logo{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  flex: 0 0 auto;
}

.stkv-ul2-root .ul2-official-logo--empty{
  background: rgba(0,0,0,.04);
}

.stkv-ul2-root .ul2-official-name{
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
  color: #4F4D47;
  min-width: 0;
}

/* ACTIVE */
.stkv-ul2-root .ul2-official-tile.is-active{
  border-color: rgba(233,84,42,.65);
  background: rgba(233,84,42,.08);
}

.stkv-ul2-root .ul2-official-tile.is-active .ul2-official-name{
  color: var(--stkv-orange);
}


/* optional: kleines Häkchen oben rechts */
.stkv-ul2-root .ul2-official-tile.is-active::after{
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  background: var(--stkv-orange);
}

/* =========================
   Dashboard: Meine Ligen (Liste)
   ========================= */

.stkv-ul2-root .ul2-my-leagues{
  margin: 10px 0 14px;
}

.stkv-ul2-root .ul2-section{
  margin-top: 14px;
}

.stkv-ul2-root .ul2-section__head{
  font-size: 18px;
  font-weight: 800;
  margin: 6px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.10);
}

.stkv-ul2-root .ul2-section__body{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stkv-ul2-root .ul2-empty{
  padding: 10px 2px;
  opacity: .7;
}

.stkv-ul2-root .ul2-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
}

.stkv-ul2-root .ul2-badge--admin{
  background: rgba(0,0,0,0.10);
}

.stkv-ul2-root .ul2-badge--member{
  background: rgba(0,0,0,0.06);
}

.stkv-ul2-root .ul2-badge--pending{
  background: rgba(233,84,42,0.16);
}

.stkv-ul2-root .ul2-section-title{
  font-weight: 800;
  font-size: 14px;
  opacity: .85;
  margin: 40px 0 8px;
}

.stkv-ul2-root .ul2-my-leagues-list{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.stkv-ul2-root .ul2-my-league-row{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  cursor: pointer;
}

.stkv-ul2-root .ul2-my-league-row:hover{
  border-color: rgba(0,0,0,.18);
  background: rgba(0,0,0,.01);
}

.stkv-ul2-root .ul2-my-league-name{
  font-weight: 700;
  color: #4F4D47;
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stkv-ul2-root .ul2-my-league-badges{
  display:flex;
  gap: 8px;
  flex: 0 0 auto;
}

.stkv-ul2-root .ul2-badge-mini{
  display:inline-flex;
  align-items:center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0,0,0,.06);
}

.stkv-ul2-root .ul2-badge-mini.is-private{
  background: rgba(0,0,0,.08);
}

.stkv-ul2-root .ul2-badge-mini.is-public{
  background: rgba(233,84,42,.12);
  color: var(--stkv-orange);
}

.stkv-ul2-root .ul2-badge-mini.is-role{
  background: rgba(0,0,0,.06);
}

.stkv-ul2-root .ul2-my-host{
  margin-top: 14px;
}

.stkv-ul2-root .ul2-my-box{
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:12px;
  padding:12px;
  margin-top: 10px;
}

.stkv-ul2-root .ul2-my-title{
  font-weight: 800;
  margin: 0 0 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 6px;
}

.stkv-ul2-root .ul2-my-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.stkv-ul2-root .ul2-my-link{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.stkv-ul2-root .ul2-my-logo{
  width:28px;
  height:28px;
  border-radius:8px;
  object-fit:cover;
  border:1px solid rgba(0,0,0,0.08);
  background:#fff;
}

.stkv-ul2-root .ul2-my-logo--empty{
  display:inline-block;
}

.stkv-ul2-root .ul2-my-name{
  font-weight:700;
  color:#111;
  flex:1;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.stkv-ul2-root .ul2-my-badges{
  display:flex;
  gap:6px;
}

/* --- Meine Ligen (Flat Pills) --- */
.ul2-my-leagues {
  margin-top: 10px;
}

.ul2-my-leagues__head{
  font-size: 14px;
  font-weight: 600;
  opacity: .75;
  margin: 8px 0 10px;
}

.ul2-my-leagues__list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Button = flat pill */
.ul2-my-league-item{
  appearance: none;
  border: 1px solid #e6e8ee;
  background: #f6f7fa;
  color: #1f2430;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .02s ease;
  box-shadow: none;
}

/* Hover */
.ul2-my-league-item:hover{
  background: #eef1f6;
  border-color: #d8dde8;
}

/* Press */
.ul2-my-league-item:active{
  transform: translateY(1px);
}

/* Focus (barrierefrei) */
.ul2-my-league-item:focus-visible{
  outline: 2px solid rgba(185, 78, 81, .35); /* WormUp-Rot als Akzent - kannst du lassen/ändern */
  outline-offset: 2px;
}

/* Active (selektierte Liga) */
.ul2-my-league-item.is-active{
  background: rgba(185, 78, 81, .10);
  border-color: rgba(185, 78, 81, .35);
  color: #1f2430;
}

/* Optional: kleiner Badge rechts (z.B. privat) */
.ul2-my-league-item .ul2-badge{
  margin-left: 8px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e6e8ee;
  opacity: .9;
}

/* Badge-Variante privat */
.ul2-badge--private{
  background: #fff5f5;
  border-color: rgba(185, 78, 81, .25);
}


/* =========================
   Tabs – modern underline (flat)
   ========================= */

.stkv-ul2-root .ul2-tabs{
  display: flex;
  gap: 32px;
  align-items: flex-end;
  margin: 18px 0 18px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Grundstil */
.stkv-ul2-root .ul2-tabs .ul2-btn{
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0 0 10px 0;

  font-weight: 700;
  font-size: 16px;
  color: #4F4D47;

  border-bottom: 2px solid transparent;
  border-radius: 0;

  transition: color .15s ease, border-color .15s ease;
}

/* Hover */
.stkv-ul2-root .ul2-tabs .ul2-btn:hover{
  color: var(--stkv-orange);
}

/* Active */
.stkv-ul2-root .ul2-tabs .ul2-btn.active{
  color: var(--stkv-orange);
  border-bottom: 2px solid var(--stkv-orange);
}

/* Focus (Accessibility) */
.stkv-ul2-root .ul2-tabs .ul2-btn:focus-visible{
  outline: none;
  border-bottom: 2px solid rgba(233,84,42,.4);
}


/* =========================
   Subtile Section-Trennung unter Tabs
   ========================= */

.stkv-ul2-root #ul2-dash-content{
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.06);
}


/* ==========================================================================
   Settings-Tab
   ========================================================================== */



.stkv-ul2-root .ul2-branding-grid{
  display:grid;
  grid-template-columns: 1fr 160px;
  gap: var(--ul2-gap);
  align-items:start;
  margin-top: 10px;
}

.stkv-ul2-root .ul2-branding-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}

.stkv-ul2-root .ul2-settings-logo-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.stkv-ul2-root .ul2-settings-logo{
  max-width:120px;
  max-height:120px;
  width:auto;
  height:auto;
  object-fit:contain;

  border-radius:12px;
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  padding:12px;

  box-shadow:0 4px 14px rgba(0,0,0,0.06);
}


.stkv-ul2-root .ul2-settings-vis{
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
  margin-top: 8px;
}

.stkv-ul2-root .ul2-settings-radio{
  display:flex;
  align-items:center;
  gap:8px;
}

.stkv-ul2-root .ul2-settings-vis-cards{
  display:flex;
  gap: var(--ul2-gap);
  margin-top:12px;
  flex-wrap:wrap;
}

.stkv-ul2-root .ul2-vis-card{
  flex:1;
  min-width:220px;
  padding:16px;
  border-radius:14px;
  border:1px solid var(--ul2-border);
  background:#fff;
  cursor:pointer;
  transition:all .15s ease;
}

.stkv-ul2-root .ul2-vis-card:hover{
  border-color:#d75a2f;
  box-shadow:0 8px 22px rgba(0,0,0,0.07);
}

.stkv-ul2-root .ul2-vis-card.active{
  border:2px solid #d75a2f;
  background:#fff6f1;
}

.stkv-ul2-root .ul2-vis-desc{
  font-size:13px;
  margin-top:6px;
  opacity:0.72;
}


.stkv-ul2-root .ul2-sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.stkv-ul2-root .ul2-settings-actions{ margin-top:14px; }

.stkv-ul2-root .ul2-settings-delete-row{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.stkv-ul2-root .ul2-link-danger{
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #b94e51;
  text-decoration: underline;
  font: inherit;
}


/* =================================
   Club Admin: Mitgliederverwaltung (pending/active)
   ================================= */
.stkv-ul2-root .ul2-club-admin h4{
  margin: 14px 0 8px;
}
.stkv-ul2-root .ul2-club-admin-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:10px;
  margin:6px 0;
}
.stkv-ul2-root .ul2-club-admin-name{
  font-weight:600;
}
.stkv-ul2-root .ul2-badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  border:1px solid rgba(0,0,0,0.15);
  background:#fff;
  opacity:0.85;
}

.stkv-ul2-root .ul2-typeahead{
  position: relative;
}
.stkv-ul2-root .ul2-suggest{
  position:absolute;
  left:0; right:0; top: calc(100% + 6px);
  background:#fff;
  border:1px solid rgba(0,0,0,0.12);
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  max-height:260px;
  overflow:auto;
  z-index:999;
}
.stkv-ul2-root .ul2-suggest-item{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  cursor:pointer;
}
.stkv-ul2-root .ul2-suggest-item:hover{
  background:rgba(0,0,0,0.04);
}
.stkv-ul2-root .ul2-suggest-name{
  font-weight:600;
}

/* Mitglieder: Gruppen */
.stkv-ul2-root .ul2-members-grouphead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 14px 0 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.stkv-ul2-root .ul2-members-groupname{
  font-weight: 800;
  opacity: .9;
}

/* Vereins-Badge klickbar */
.stkv-ul2-root .ul2-badge--club{
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  font-weight: 600;
}
.stkv-ul2-root .ul2-badge-link{
  text-decoration:none;
}
.stkv-ul2-root .ul2-badge-link:hover{
  text-decoration:underline;
}

/* Autocomplete */
.stkv-ul2-root .ul2-autocomplete{
  position: relative;
}
.stkv-ul2-root .ul2-suggest{
  position:absolute;
  left:0; right:0;
  top: calc(100% + 6px);
  background:#fff;
  border:1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  overflow:hidden;
  z-index: 50;
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}
.stkv-ul2-root .ul2-suggest-item{
  width:100%;
  text-align:left;
  padding: 10px 12px;
  background:#fff;
  border:0;
  cursor:pointer;
}
.stkv-ul2-root .ul2-suggest-item:hover{
  background: rgba(0,0,0,0.04);
}


/* ===== Club: Mitglieder-Kachel – Actions sauber in 2 Zeilen ===== */

.stkv-ul2-root[data-view="club"] .ul2-club-members .ul2-row{
  grid-template-columns: minmax(0, 1fr) 380px; /* rechte Spalte fix -> wirkt “geordnet” */
}

.stkv-ul2-root[data-view="club"] .ul2-club-members .ul2-row-side{
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: min-content;
  gap: 10px;
  justify-items: stretch;
  align-content: start;
}

/* Dropdown immer oben, volle Breite */
.stkv-ul2-root[data-view="club"] .ul2-club-members .ul2-row-side .ul2-role-select{
  width: 100%;
  min-width: 0;
  height: 40px;
}

/* Buttons: als Reihe, sauber ausgerichtet */
.stkv-ul2-root[data-view="club"] .ul2-club-members .ul2-row-side .ul2-btn{
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
}

/* Trick ohne HTML-Wrapper:
   Wir machen aus den Buttons in .ul2-row-side eine “Buttonbar” via inline-flex,
   indem wir ihnen gleiche Zeile geben und das Danger-Button nach unten vermeiden. */
.stkv-ul2-root[data-view="club"] .ul2-club-members .ul2-row-side{
  position: relative;
}

/* Alle Buttons in eine “Button-Zeile” unter dem Select */
.stkv-ul2-root[data-view="club"] .ul2-club-members .ul2-row-side .ul2-btn{
  justify-self: end;
}

/* Wenn mehrere Buttons da sind: links->rechts Reihenfolge bleibt,
   aber sie kleben nicht komisch. */
.stkv-ul2-root[data-view="club"] .ul2-club-members .ul2-row-side .ul2-btn + .ul2-btn{
  margin-left: 8px;
}

/* Mobile: rechte Spalte runter, alles 100% */
@media (max-width: 900px){
  .stkv-ul2-root[data-view="club"] .ul2-club-members .ul2-row{
    grid-template-columns: 1fr;
  }
  .stkv-ul2-root[data-view="club"] .ul2-club-members .ul2-row-side .ul2-btn{
    justify-self: start;
  }
}

/* ==========================================================================
   UL2 Modal (Dashboard + Planer) — clean, neutral-professional
   ========================================================================== */

.stkv-ul2-root.ul2-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.52);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 18px;
}

.stkv-ul2-root .ul2-modal{
  width: min(720px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  overflow: hidden;
}

/* Header */
.stkv-ul2-root .ul2-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.stkv-ul2-root .ul2-modal-title{
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
}



.stkv-ul2-root .ul2-modal-x{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color:#2b2a27;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .15s ease, transform .05s ease;
}
.stkv-ul2-root .ul2-modal-x:hover{ background: rgba(0,0,0,.06); }

.stkv-ul2-root .ul2-modal-x:active{ transform: scale(.98); }

/* Body */
.stkv-ul2-root .ul2-modal-body{
  padding: 22px 24px;
  max-height: 62vh;
  overflow: auto;
}

/* Footer */
.stkv-ul2-root .ul2-modal-foot{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: transparent;
}

/* Form fields inside modal */
.stkv-ul2-root .ul2-modal .ul2-field{
  margin: 0 0 16px 0;
}
.stkv-ul2-root .ul2-modal .ul2-field > label{
  display:block;
  font-weight: 800;
  color:#2b2a27;
  margin: 0 0 8px 0;
}

/* Row layout: label left, control right (only where you add ul2-field--row) */
.stkv-ul2-root .ul2-field.ul2-field--row{
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  margin: 24px 0px;
}
.stkv-ul2-root .ul2-field.ul2-field--row > label{
  margin: 0;
}
.stkv-ul2-root .ul2-field.ul2-field--row > .ul2-segment{
  justify-self: start;
  padding-top: 2px;  
}
@media (max-width: 640px){
  .stkv-ul2-root .ul2-field.ul2-field--row > .ul2-segment{
    width: 100%;
  }
}


/* Inputs (optional polish; scoped to modal) */
.stkv-ul2-root .ul2-modal input[type="text"]{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 14px 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.stkv-ul2-root .ul2-modal input[type="text"]:focus{
  border-color: rgba(233,84,42,.55);
  box-shadow: 0 0 0 4px rgba(233,84,42,.14);
}



/* ==========================================================================
   Segmented Control — flat toggle (matches UL2 tabs/buttons)
   Markup: input + .ul2-segment__btn
   ========================================================================== */

/* ==========================================================================
   Segmented (underline tabs) — containerless, airy
   ========================================================================== */

.stkv-ul2-root .ul2-segment{
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 0;                 /* WICHTIG: kein Rahmen */
  background: transparent;   /* WICHTIG: kein Container */
  padding: 0;
  border-radius: 0;
}

.stkv-ul2-root .ul2-segment input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stkv-ul2-root .ul2-segment .ul2-segment-labelwrap{
  display: inline-flex;
}

.stkv-ul2-root .ul2-segment .ul2-segment__btn{
  padding: 10px 18px;              /* mehr Luft */
  font-weight: 850;
  font-size: 18px;
  color: rgba(0,0,0,.55);
  background: transparent;
  cursor: pointer;
  user-select: none;
  border-bottom: 2px solid transparent; /* underline slot */
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

/* Dezente Trennlinie zwischen den Optionen */
.stkv-ul2-root .ul2-segment .ul2-segment-labelwrap:not(:last-child) .ul2-segment__btn{
  border-right: 1px solid rgba(0,0,0,.10);
}

/* Hover */
.stkv-ul2-root .ul2-segment .ul2-segment__btn:hover{
  background: rgba(0,0,0,.03);
}

/* Active: underline + darker text (no fill, no box) */
.stkv-ul2-root .ul2-segment input:checked + .ul2-segment__btn{
  color: rgba(0,0,0,.82);
  border-bottom-color: var(--stkv-orange);
  background: transparent;
  box-shadow: none;
}






/* ==========================================================================
   Modal Buttons (scoped)
   ========================================================================== */

.stkv-ul2-root .ul2-modal .ul2-btn--primary{
  background: var(--stkv-orange);
  color:#fff;
  border: 0;
}
.stkv-ul2-root .ul2-modal .ul2-btn--primary:hover{
  filter: brightness(0.98);
}
.stkv-ul2-root .ul2-modal .ul2-btn--ghost{
  background: rgba(0,0,0,.06);
  color: #2b2a27;
  border: 0;
}
.stkv-ul2-root .ul2-modal .ul2-btn--ghost:hover{
  background: rgba(0,0,0,.09);
}

/* Mobile */
@media (max-width: 640px){
  .stkv-ul2-root .ul2-modal-title{ font-size: 28px; }
  .stkv-ul2-root .ul2-field.ul2-field--row{
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .stkv-ul2-root .ul2-segment{
    width: 100%;
    justify-content: space-between;
  }
  }
 




/* ==========================================================================
   Danger
   ========================================================================== */
.stkv-ul2-root .ul2-danger{
  border-top: 1px solid rgba(215,90,47,0.25);
}

.stkv-ul2-root .ul2-btn.danger{
  border:1px solid rgba(215,90,47,0.45);
  background:#fff;
}

.stkv-ul2-root .ul2-btn.danger:hover{
  border-color:#d75a2f;
  background:#fff6f1;
}




/* ==========================================================================
   Dashboard: Spieltag-Bar (full width)
   ========================================================================== */

.stkv-ul2-root .ul2-roundbar-host{
  margin: 10px 0 14px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.stkv-ul2-root .ul2-roundbar-host .ul2-roundbar{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}


/* ==========================================================================
   Roundbar (Spieltagsauswahl)
   ========================================================================== */

.stkv-ul2-root .ul2-roundbar-wrap{
  background: var(--stkv-soft);
  border-radius: var(--ul2-radius);
  padding: 10px;
}

.stkv-ul2-root .ul2-roundbar{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Images / Wappen / Score-pill
   ========================================================================== */

.stkv-ul2-root .ul2-wappen,
.stkv-ul2-root .ul2-wappen--empty{
  width: 20px;              /* einheitliche Grösse */
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.stkv-ul2-root .ul2-wappen{
  object-fit: contain;
}

.stkv-ul2-root .ul2-wappen--empty{
  background: transparent;  /* Platzhalter: kein grauer Kreis */
  border-radius: 0;
}

.stkv-ul2-root .ul2-score{
  display:inline-block;
  min-width: 48px;
  text-align:center;
  padding: 8px 18px;        /* schöner als 0px 24px */
  border-radius: 999px;
  background: var(--stkv-orange);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

/* Matches: Logo-Spalten fix + sauber ausrichten */
.stkv-ul2-root table.ul2-matches-table td.ul2-m-logo{
  width: 42px;
  padding-left: 10px;
  padding-right: 10px;
}

.stkv-ul2-root table.ul2-matches-table td.ul2-m-logo--left{
  text-align: right;
}

.stkv-ul2-root table.ul2-matches-table td.ul2-m-logo--right{
  text-align: left;
}


/* ==========================================================================
   Table wrapper (scroll container) – ONE SOURCE OF TRUTH
   ========================================================================== */

.stkv-ul2-root .ul2-table-wrap{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   TABLE BASE (gemeinsames Grundlayout)
   - keine fixed-layout Globalregel!
   - keine globalen ellipsis/truncation Regeln!
   ========================================================================== */

.stkv-ul2-root table{
  border-collapse: collapse;
}

.stkv-ul2-root table.ul2-table,
.stkv-ul2-root table.table-rangliste2,
.stkv-ul2-root table.ul2-matches-table{
  width: 100%;
  table-layout: auto; /* wichtig: natürliche Spaltenbreite */
}

/* Gemeinsame Zellenoptik */
.stkv-ul2-root table.ul2-table th,
.stkv-ul2-root table.ul2-table td,
.stkv-ul2-root table.table-rangliste2 th,
.stkv-ul2-root table.table-rangliste2 td,
.stkv-ul2-root table.ul2-matches-table th,
.stkv-ul2-root table.ul2-matches-table td{
  padding: 14px 12px;                 /* mehr Luft */
  vertical-align: middle;

  /* nur horizontale Linien (SRF-ruhiger) */
  border-bottom: 1px solid var(--stkv-border);
  border-left: 0;
  border-right: 0;
}


/* Header */
.stkv-ul2-root table.ul2-table thead th,
.stkv-ul2-root table.table-rangliste2 thead th,
.stkv-ul2-root table.ul2-matches-table thead th{
  font-weight: 800;
  color: var(--stkv-muted);
  background: #fff;

  font-size: 13px;
  letter-spacing: .02em;

  border-bottom: 2px solid var(--stkv-border);
  padding-top: 12px;
  padding-bottom: 12px;
}

/* dezenter Hover für alle Tabellen */
.stkv-ul2-root table.ul2-table tbody tr:hover,
.stkv-ul2-root table.table-rangliste2 tbody tr:hover,
.stkv-ul2-root table.ul2-matches-table tbody tr:hover{
  background: #fafafa;
}

/* letzte Zeile ohne Extra-Linie */
.stkv-ul2-root table.ul2-table tbody tr:last-child td,
.stkv-ul2-root table.table-rangliste2 tbody tr:last-child td,
.stkv-ul2-root table.ul2-matches-table tbody tr:last-child td{
  border-bottom: 0;
}

/* Ranglisten: Grundausrichtung + Hierarchie (SRF-like) */
/* Ranglisten-Header: Standard links, Zahlen zentriert */
.stkv-ul2-root table.table-rangliste2 thead th{
  text-align: left;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* R, Sp, Tore, Pkte zentrieren */
.stkv-ul2-root table.table-rangliste2 thead th:nth-child(1),
.stkv-ul2-root table.table-rangliste2 thead th:nth-child(4),
.stkv-ul2-root table.table-rangliste2 thead th:nth-child(5),
.stkv-ul2-root table.table-rangliste2 thead th:nth-child(6){
  text-align: center;
}


/* Dashboard: R-Spalte fix */
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 thead th:nth-child(1),
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 tbody td:nth-child(1),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 thead th:nth-child(1),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 tbody td:nth-child(1){
  width: 44px;
  text-align: center;
}


.stkv-ul2-root table.table-rangliste2 td,
.stkv-ul2-root table.table-rangliste2 th{
  border-bottom-color: rgba(0,0,0,.06);
}




.stkv-ul2-root .ul2-r-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 26px;
  min-width: 26px;
  padding: 0 8px;

  background: transparent;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;

  font-weight: 800;
  font-size: 13px;
  color: #3b3a36;
  line-height: 1;
}


/* Top 1–3: Gold/Silber/Bronze (subtil) */
.stkv-ul2-root td.ul2-r--gold   .ul2-r-badge{ background:#fbf3cc; border-color: rgba(0,0,0,.06); font-weight: 900; }
.stkv-ul2-root td.ul2-r--silver .ul2-r-badge{ background:#f1f3f6; border-color: rgba(0,0,0,.06); }
.stkv-ul2-root td.ul2-r--bronze .ul2-r-badge{ background:#f5e3d8; border-color: rgba(0,0,0,.06); }


/* optional: minimaler „gloss“ */
.stkv-ul2-root td.ul2-r.ul2-r--gold .ul2-r-badge,
.stkv-ul2-root td.ul2-r.ul2-r--silver .ul2-r-badge,
.stkv-ul2-root td.ul2-r.ul2-r--bronze .ul2-r-badge{
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}


.stkv-ul2-root td.ul2-r.ul2-r--gold .ul2-r-badge{
  background:#f7e9a8;
  border-color: rgba(0,0,0,.08);
  font-weight: 900;
}


/* ==========================================================================
   TABLE WRAPS / SCROLLBAR SAFE AREA
   - sorgt dafür, dass der (orange) Scrollbar nichts überdeckt
   ========================================================================== */

.stkv-ul2-root .ul2-table-wrap{
  /* reserviert Platz für Scrollbar (modern) */
  scrollbar-gutter: stable;
  /* Fallback/zusätzliche Sicherheit gegen Überdeckung */
  padding-right: 12px;
  box-sizing: border-box;
}



/* ==========================================================================
   RANGLISTE BASE (Spieltag / Gesamt / Effizienz / Top3)
   Spaltenregel: alle minimal, 3. Spalte füllt Rest, nichts abgeschnitten
   ========================================================================== */

.stkv-ul2-root #ul2-dash-content table.table-rangliste2 td:last-child,
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 td:last-child{
  background: transparent !important;
  position: relative;
  font-weight: 900;
}

.stkv-ul2-root #ul2-dash-content table.table-rangliste2 td:last-child::after,
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 td:last-child::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  right:0;
  width: 8px;
  background: var(--stkv-primary);
}

/* =========================
   DASHBOARD ONLY: Rangliste-Spaltenlayout (wie Bild 2)
   Scope: nur innerhalb Dashboard-Content
   ========================= */

.stkv-ul2-root #ul2-dash-content table.table-rangliste2,
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2{
  table-layout: fixed;
}

/* R (Badge) */
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 th:nth-child(1),
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 td:nth-child(1),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 th:nth-child(1),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 td:nth-child(1){
  width: 44px;
  text-align: center;
}

/* Logo-Spalte */
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 th:nth-child(2),
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 td:nth-child(2),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 th:nth-child(2),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 td:nth-child(2){
  width: 44px;
}

/* Name-Spalte */
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 th:nth-child(3),
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 td:nth-child(3),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 th:nth-child(3),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 td:nth-child(3){
  width: auto;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

/* Sp */
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 th:nth-child(4),
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 td:nth-child(4),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 th:nth-child(4),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 td:nth-child(4){
  width: 70px;
  text-align: center;
}

/* Tore */
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 th:nth-child(5),
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 td:nth-child(5),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 th:nth-child(5),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 td:nth-child(5){
  width: 72px;
  text-align: center;
}

/* Pkte */
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 th:nth-child(6),
.stkv-ul2-root #ul2-dash-content table.table-rangliste2 td:nth-child(6),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 th:nth-child(6),
.stkv-ul2-root .ul2-dash-layout table.table-rangliste2 td:nth-child(6){
  width: 78px;
  text-align: center;
}



/* ==========================================================================
   RESULTATE (Matches-Tabelle)
   5 Spalten: Name | Logo | Score | Logo | Name
   ========================================================================== */

.stkv-ul2-root table.ul2-matches-table td,
.stkv-ul2-root table.ul2-matches-table th{
  white-space: nowrap;
}

.stkv-ul2-root .ul2-m-s{ text-align: center; }
.stkv-ul2-root .ul2-m-p1{ text-align: right; }
.stkv-ul2-root .ul2-m-p2{ text-align: left; }

/* Resultate: kompakter – Score-Spalte fixieren */
.stkv-ul2-root table.ul2-matches-table{
  table-layout: fixed;
}

/* Score-Spalte schmal (td hat Klasse ul2-m-s) */
.stkv-ul2-root table.ul2-matches-table td.ul2-m-s,
.stkv-ul2-root table.ul2-matches-table th.ul2-m-s{
  width: 92px;          /* 80–110 je nach Geschmack */
  padding-left: 6px;
  padding-right: 6px;
}

/* Logo-Spalten etwas enger -> Namen näher ans Ergebnis */
.stkv-ul2-root table.ul2-matches-table td.ul2-m-logo{
  width: 34px;          /* war 42px */
  padding-left: 6px;
  padding-right: 6px;
}

/* Score-Pill selbst minimal kompakter */
.stkv-ul2-root .ul2-score{
  padding: 7px 14px;    /* falls du’s noch tighter willst: 6px 12px */
  min-width: 44px;
}


/* ==========================================================================
   SPIELTAG-TABELLE (links unten)
   nutzt table-rangliste2 + ul2-standings-table
   ========================================================================== */

/* keine extra Regeln nötig – Basis reicht */

/* ==========================================================================
   GESAMTTABELLE (rechts)
   nutzt table-rangliste2 + rangliste-plain
   ========================================================================== */

.stkv-ul2-root .rangliste-plain thead th{
  background: #fff;
}

/* Resultate: Header "Name" immer links */
.stkv-ul2-root table.table-rangliste2 thead th:nth-child(3){
  text-align: left;
}


/* ==========================================================================
   EFFIZIENZ (viele Spalten -> horizontal scroll)
   ========================================================================== */

.stkv-ul2-root table.effizienz-table{
  min-width: 100px;
}

.stkv-ul2-root table.effizienz-table th:nth-child(4),
.stkv-ul2-root table.effizienz-table td:nth-child(4){
  width: 50px;
}

/* ==========================================================================
   TOP 3 (kompakt)
   ========================================================================== */


.stkv-ul2-root table.top3-table th,
.stkv-ul2-root table.top3-table td{
  white-space: nowrap;
}

/* ==========================================================================
   Small responsive tweaks
   ========================================================================== */

@media (max-width: 560px){
  .stkv-ul2-root .ul2-panel__head{ padding: 12px 14px; }
  .stkv-ul2-root table.table-rangliste2 th,
  .stkv-ul2-root table.table-rangliste2 td{
    padding: 10px 8px;
  }
}

/* ======================================================================
   DASHBOARD HEADER (Titel + Wappen rechts)
   ====================================================================== */

.stkv-ul2-root .ul2-head-row{
  display: flex;
  align-items: center;          /* Titel & Logo auf gleicher Höhe */
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.stkv-ul2-root .ul2-head-left{
  display: flex;
  align-items: center;
  gap: 14px;
}

.stkv-ul2-root .ul2-head-left h2{
  font-size: 42px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
}


.stkv-ul2-root .ul2-head-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.stkv-ul2-root .ul2-head-club-logo{
  width:56px;
  height:56px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  padding:6px;
}

.stkv-ul2-root .ul2-head-club-name{
  font-weight:600;
  font-size:0.9rem;
  max-width:180px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media (max-width:700px){
  .stkv-ul2-root .ul2-head-club-logo{
    width:40px;
    height:40px;
  }
}

/* nur wenn wirklich Branding da ist -> als Chip darstellen */
.stkv-ul2-root .ul2-head-right.has-brand{
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  background: rgba(0,0,0,.015);
}

/* Logo als Avatar (kein “Kachel-Padding”) */
.stkv-ul2-root .ul2-head-logo{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
}

/* Clubname daneben klar lesbar */
.stkv-ul2-root .ul2-head-club{
  font-weight: 800;
  font-size: 16px;
  opacity: 1;
  max-width: 220px;
  margin-left: 32px;
}

/* Mobile etwas kompakter */
@media (max-width: 700px){
  .stkv-ul2-root .ul2-head-logo{
    width: 38px;
    height: 38px;
  }
  .stkv-ul2-root .ul2-head-club{
    font-size: 15px;
    max-width: 140px;
  }
}

/* ==========================================================================
   CLUB Seite
   ========================================================================== */

   .stkv-ul2-root .ul2-club-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}
.stkv-ul2-root .ul2-club-title{
  margin:0;
  font-weight: 900;
}
.stkv-ul2-root .ul2-club-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  align-items:start;
}
@media (min-width: 900px){
  .stkv-ul2-root .ul2-club-grid{
    grid-template-columns: 1fr 1fr;
  }
}
.stkv-ul2-root .ul2-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:10px;
  margin:6px 0;
}

.stkv-ul2-root .ul2-link{ text-decoration:none; }
.stkv-ul2-root .ul2-link:hover{ text-decoration:underline; }


.stkv-ul2-root .ul2-club-list{
  margin-bottom: 60px;
}

/* =========================================
   PLAYER PAGE: Tabelle nicht wie Dashboard "fixieren"
   ========================================= */

/* Spielerprofil nutzt auch .table-rangliste2, darf aber NICHT fixed sein */
.stkv-ul2-root.stkv-ul2--player table.table-rangliste2,
.stkv-ul2-root .ul2-player-page table.table-rangliste2{
  table-layout: auto !important;
}

/* Liga-Spalte: normal umbrechen, keine Buchstaben-Treppe */
.stkv-ul2-root.stkv-ul2--player table.table-rangliste2 th:first-child,
.stkv-ul2-root.stkv-ul2--player table.table-rangliste2 td:first-child,
.stkv-ul2-root .ul2-player-page table.table-rangliste2 th:first-child,
.stkv-ul2-root .ul2-player-page table.table-rangliste2 td:first-child{
  width: auto !important;
  white-space: normal;
  overflow: visible;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* =========================
   PLAYER KPI – DTKV Flat
   ========================= */

.stkv-ul2-root.stkv-ul2--player .ul2-kpi{
  padding: 16px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-kpi-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px){
  .stkv-ul2-root.stkv-ul2--player .ul2-kpi-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stkv-ul2-root.stkv-ul2--player .ul2-kpi-item{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  min-height:84px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.stkv-ul2-root.stkv-ul2--player .ul2-kpi-label{
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  font-weight: 800;
  margin-bottom: 6px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-kpi-value{
  font-size: 26px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.ul2-kpi-strong{
  background:linear-gradient(0deg, rgba(31,157,85,.08), transparent);
}
.ul2-kpi-weak{
  background:linear-gradient(0deg, rgba(214,69,69,.08), transparent);
}

.ul2-kpi-neutral .ul2-kpi-value{
  color:inherit;
}

/* =========================
   PLAYER Breadcrumbs
   ========================= */

 /* Breadcrumb näher an den Content ziehen */
.stkv-ul2-root.ul2-breadcrumb{
  margin-top: 18px;     /* vorher vermutlich 0/zu klein */
  margin-bottom: 22px;  /* Abstand zum Player-Header */
  opacity: .9;
}

/* Optional: wenn der Site-Header sehr hoch ist */
.stkv-ul2-root.ranglisten-wrapper.ul2-player-page{
  padding-top: 12px;   /* reduziert "klebt am Header"-Gefühl */
}  

.stkv-ul2-root.ul2-breadcrumb a{ text-decoration: none; }
.stkv-ul2-root.ul2-crumb-sep{ margin: 0 8px; opacity: .6; }
.stkv-ul2-root.ul2-crumb-current{ font-weight: 600; }

.stkv-ul2-root.stkv-ul2-root.stkv-ul2--player .ul2-breadcrumb{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  color: rgba(0,0,0,.6);
}

.stkv-ul2-root.stkv-ul2--player .ul2-breadcrumb a{
  text-decoration: none;
  font-weight: 700;
  color: rgba(0,0,0,.65);
}

.stkv-ul2-root.stkv-ul2--player .ul2-breadcrumb a:hover{
  color: var(--stkv-orange);
}

.stkv-ul2-root.stkv-ul2--player .ul2-crumb-current{
  font-weight: 800;
  color: #2b2a27;
}

.stkv-ul2-root.stkv-ul2--player .ul2-crumb-sep{
  opacity: .5;
}

/* =========================
   PLAYER HEADER
   ========================= */
.stkv-ul2-root.stkv-ul2--player .ul2-player-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  align-items:center;
  padding: 22px 22px 28px 22px;
  /* border-bottom: 1px solid rgba(17,24,39,.08); */
  margin-bottom: 28px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-section{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(17,24,39,.06);
}

.stkv-ul2-root.stkv-ul2--player .ul2-ph-left{
  display:flex;
  gap: 16px;
  align-items: center;
}

.stkv-ul2-root .ul2-ph-right{
  display:flex;
  align-items:flex-end;
  gap:12px;
  text-align:right;
}

.stkv-ul2-root.stkv-ul2--player .ul2-avatar{
  width: 96px;
  height: 96px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  background: var(--stkv-orange);
}

.stkv-ul2-root.stkv-ul2--player .ul2-avatar{
  overflow: hidden;
  display: grid;
  place-items: center;
}

.stkv-ul2-root.stkv-ul2--player .ul2-avatar-logo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stkv-ul2-root.stkv-ul2--player .ul2-ph-clubname{
  font-weight: 600;
  opacity: 0.85;
}

/* Avatar: wenn Logo, dann transparent & ohne Badge-Optik */
.stkv-ul2-root.stkv-ul2--player .ul2-avatar.has-logo{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Clubliste klickbarer und hübscher */
.stkv-ul2-root .ul2-clubitem{
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.stkv-ul2-root .ul2-clubitem:hover{
  background: rgba(0,0,0,0.03);
}

/* Logo soll sauber sitzen */
.stkv-ul2-root.stkv-ul2--player .ul2-avatar.has-logo .ul2-avatar-logo{
  /* width: 64px;   /* kannst du anpassen */
  /* height: 64px; */
  border-radius: 12px; /* leichtes rounding */
  object-fit: contain;
  background: transparent;
  display: block;
}

.stkv-ul2-root .ul2-ph-logo{
  width:72px;
  height:72px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  padding:6px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-ph-kicker{
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  font-weight: 800;
  margin-bottom: 4px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-ph-title{
  font-size: 44px;
  line-height: 1.05;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (max-width: 900px){
  .stkv-ul2-root.stkv-ul2--player .ul2-ph-title{ font-size: 34px; }
}

.stkv-ul2-root.stkv-ul2--player .ul2-ph-sub{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-ph-pill{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(0,0,0,.65);
  background: #fff;
}

.stkv-ul2-root .ul2-ph-club{
  font-weight:600;
  line-height:1.1;
  max-width:260px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:.9;
}

@media (max-width: 700px){
  .stkv-ul2-root .ul2-ph-logo{ width:52px; height:52px; }
  .stkv-ul2-root .ul2-ph-club{ max-width:140px; }
}


/* Abschnittstitel */
.stkv-ul2-root.stkv-ul2--player .ul2-section-title{
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

/* Liste als Karte */
.stkv-ul2-root.stkv-ul2--player .ul2-sg-list{
  display: grid;
  gap: 16px;
  max-width: 600px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* einzelnes Item */
.stkv-ul2-root.stkv-ul2--player .ul2-sg-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(17,24,39,0.10);
  border-radius: 14px;
  text-decoration: none;
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-item:hover{
  border-color: rgba(233,84,42,0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17,24,39,.12);
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-left{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-name{
  font-weight: 700;
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-meta{
  font-size: 13px;
  opacity: .7;
}

/* =========================
   FORM (last matches)
   ========================= */

.ranglisten-wrapper.ul2-player-page .ul2-form-block .ul2-form-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding-top:4px;
}

.ranglisten-wrapper.ul2-player-page .ul2-form-block .ul2-form{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  border:1px solid rgba(0,0,0,.08);
}

.ranglisten-wrapper.ul2-player-page .ul2-form-block .ul2-form::after{
content:'';
  width:10px;
  height:2px;
  background:#e5e7eb;
  margin-left:6px;
}

.ranglisten-wrapper.ul2-player-page .ul2-form-block ul2-form:last-child::after{
ul2-form:last-child::after
}



.ul2-form-w{ background:#e9f7ef; color:#1e7e34; }
.ul2-form-d{ background:#fff8e1; color:#8a6d3b; }
.ul2-form-l{ background:#fdecea; color:#b02a37; }


.stkv-ul2-root.stkv-ul2--player .ul2-form{
  padding: 16px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-form-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-form-summary{
  font-weight: 900;
  color: rgba(0,0,0,.55);
  font-variant-numeric: tabular-nums;
}

.stkv-ul2-root.stkv-ul2--player .ul2-form-chips{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-form-chip{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
}

.stkv-ul2-root.stkv-ul2--player .ul2-form-bar{
  display:grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-form-seg{
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.10);
}

/* W/D/L Styling */
.stkv-ul2-root.stkv-ul2--player .ul2-form-W{ background: rgba(0,0,0,.06); }
.stkv-ul2-root.stkv-ul2--player .ul2-form-D{ background: rgba(0,0,0,.06); }
.stkv-ul2-root.stkv-ul2--player .ul2-form-L{ background: rgba(0,0,0,.06); }

.stkv-ul2-root.stkv-ul2--player .ul2-form-chip.ul2-form-W{
  border-color: rgba(0,0,0,.10);
  box-shadow: inset 0 0 0 999px rgba(0,0,0,.02);
}
.stkv-ul2-root.stkv-ul2--player .ul2-form-chip.ul2-form-D{
  border-style: dashed;
}
.stkv-ul2-root.stkv-ul2--player .ul2-form-chip.ul2-form-L{
  border-color: rgba(0,0,0,.10);
  opacity: .75;
}

/* Mini-bar heights (graphic) */
.stkv-ul2-root.stkv-ul2--player .ul2-form-seg.ul2-form-W{ height: 12px; background: var(--stkv-orange); }
.stkv-ul2-root.stkv-ul2--player .ul2-form-seg.ul2-form-D{ height: 9px; background: rgba(0,0,0,.35); }
.stkv-ul2-root.stkv-ul2--player .ul2-form-seg.ul2-form-L{ height: 6px; background: rgba(0,0,0,.16); }


/* =========================
   HIGHLIGHTS
   ========================= */
.stkv-ul2-root.stkv-ul2--player .ul2-highlights{
  padding: 16px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-hi-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 900px){
  .stkv-ul2-root.stkv-ul2--player .ul2-hi-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stkv-ul2-root.stkv-ul2--player .ul2-hi-item{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.stkv-ul2-root.stkv-ul2--player .ul2-hi-label{
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  font-weight: 800;
  margin-bottom: 6px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-hi-value{
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.ul2-by-league .table-rangliste2 td:nth-child(n+2){
  text-align:right;
}
.ul2-by-league .table-rangliste2 td:nth-child(1){
  font-weight:600;
}

/* ===== Clubs List (klickbare Zeilen mit Logo) ===== */
.stkv-ul2-root .ul2-club-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stkv-ul2-root .ul2-club-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.stkv-ul2-root .ul2-club-item:hover{
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.16);
}

.stkv-ul2-root .ul2-club-item:active{
  transform: translateY(1px);
}

.stkv-ul2-root .ul2-club-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.stkv-ul2-root .ul2-club-logo{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  flex: 0 0 auto;
}

.stkv-ul2-root .ul2-club-logo--empty{
  display: inline-block;
  background: rgba(0,0,0,0.06);
}

.stkv-ul2-root .ul2-club-titleline{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stkv-ul2-root .ul2-club-name{
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70vw;
}

.stkv-ul2-root .ul2-club-meta{
  display: flex;
  gap: 8px;
  align-items: center;
}

.stkv-ul2-root .ul2-club-arrow{
  opacity: 0.35;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}

.stkv-ul2-root .ul2-pagehead{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

/* ===== Clubs Search (DTKV flat) ===== */

.stkv-ul2-root .ul2-search{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Suchfeld flexibel, Count rechts daneben */
.stkv-ul2-root .ul2-searchbar{
  position: relative;
  width: min(520px, 100%);
  flex: 1 1 520px;
}

/* Minimalistische Lupe via CSS (kein Emoji) */
.stkv-ul2-root .ul2-search-icon{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: .55;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%23666' stroke-width='2'/%3E%3Cpath d='M16.2 16.2L21 21' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.stkv-ul2-root .ul2-input--search{
  width: 100%;
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 12px;
  padding: 12px 44px 12px 40px; /* links Icon, rechts X */
  box-shadow: none;
  outline: none;
  transition: border-color .12s ease, background .12s ease;
}

/* Fokus: sehr dezent (DTKV flat), aber sichtbar */
.stkv-ul2-root .ul2-input--search:focus{
  border-color: #cfcfcf;
}

/* (Optional) falls Browser Focus-Ring entfernt wird */
.stkv-ul2-root .ul2-input--search:focus-visible{
  outline: 2px solid rgba(0,0,0,.08);
  outline-offset: 2px;
}

.stkv-ul2-root .ul2-search-clear{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stkv-ul2-root .ul2-search-clear:hover{
  border-color: #d6d6d6;
  background: #fafafa;
}

/* Count rechts neben dem Input */
.stkv-ul2-root .ul2-club-count{
  white-space: nowrap;
  font-size: 13px;
  color: var(--stkv-muted, #666);
  margin-top: 0; /* wichtig, weil vorher unterhalb */
}


.stkv-ul2-root .ul2-section__head{
  display: flex;
  align-items: center;
  gap: 10px;
}

.stkv-ul2-root .ul2-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  font-weight: 800;
  font-size: 12px;
}

/* ========================================================================== */
/* Club-Seite (View: club) */
/* ========================================================================== */

.stkv-ul2-root[data-view="club"]{
  --ul2-club-gap: 18px;
}

.stkv-ul2-root[data-view="club"] .ul2-club-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 12px 28px;
}

.stkv-ul2-root[data-view="club"] .ul2-section-head{
  margin: 10px 0 8px;
  font-weight: 750;
  color: var(--stkv-text);
}

.stkv-ul2-root[data-view="club"] .ul2-club-head{
  display:flex;
  align-items:center;
  gap: 14px;
  margin: 6px 0 18px;
}

.stkv-ul2-root[data-view="club"] .ul2-club-head .ul2-club-logo{
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--stkv-soft);
  border: 1px solid rgba(0,0,0,.06);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.stkv-ul2-root[data-view="club"] .ul2-club-head .ul2-club-logo img{
  width:100%;
  height:100%;
  object-fit: cover;
}

.stkv-ul2-root[data-view="club"] .ul2-club-title{
  font-size: 34px;
  line-height: 1.15;
  margin: 0;
}

.stkv-ul2-root[data-view="club"] .ul2-club-sub{
  margin-top: 4px;
  color: var(--stkv-muted);
}

.stkv-ul2-root[data-view="club"] .ul2-club-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--ul2-club-gap);
}

@media (max-width: 900px){
  .stkv-ul2-root[data-view="club"] .ul2-club-grid{
    grid-template-columns: 1fr;
  }
}

.stkv-ul2-root[data-view="club"] .ul2-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  background: #fff;
}
.stkv-ul2-root[data-view="club"] .ul2-row + .ul2-row{ margin-top: 10px; }

.stkv-ul2-root[data-view="club"] .ul2-row-title{ font-weight: 650; }
.stkv-ul2-root[data-view="club"] .ul2-row-meta{ margin-top: 4px; }

.stkv-ul2-root[data-view="club"] .ul2-badge-mini{
  display:inline-flex;
  align-items:center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}
.stkv-ul2-root[data-view="club"] .ul2-badge-mini.is-admin{
  border-color: rgba(233,84,42,.25);
  background: rgba(233,84,42,.08);
}

.stkv-ul2-root[data-view="club"] .ul2-role-select{
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 0 10px;
  background: #fff;
}

/* League tile */
.stkv-ul2-root[data-view="club"] .ul2-league-row{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  text-decoration:none;
  color: inherit;
}
.stkv-ul2-root[data-view="club"] .ul2-league-row + .ul2-league-row{ margin-top: 10px; }

.stkv-ul2-root[data-view="club"] .ul2-league-logo{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--stkv-soft);
  border: 1px solid rgba(0,0,0,.06);
  flex: 0 0 auto;
}
.stkv-ul2-root[data-view="club"] .ul2-league-logo--empty{
  display:inline-block;
}

.stkv-ul2-root[data-view="club"] .ul2-league-meta{ flex: 1 1 auto; min-width: 0; }
.stkv-ul2-root[data-view="club"] .ul2-league-title{
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stkv-ul2-root[data-view="club"] .ul2-league-sub{ color: var(--stkv-muted); font-size: 13px; margin-top: 2px; }
.stkv-ul2-root[data-view="club"] .ul2-league-cta{ color: var(--stkv-orange); font-weight: 650; }


.stkv-ul2-root .ul2-sep{
  border:0;
  border-top:1px solid rgba(0,0,0,.08);
  margin:12px 0;
}


.stkv-ul2-root .ul2-club-col{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}

/* ========================================================================== */
/* Club-Modal Adapter (für neues Markup mit .ul2-modal__panel / __backdrop)   */
/* - nutzt bestehendes Overlay-Prinzip (.stkv-ul2-root.ul2-modal-overlay)     */
/* - scoped auf Club-View, damit Dashboard/Planer-Modals nicht beeinflusst werden */
/* ========================================================================== */

.stkv-ul2-root[data-view="club"] .ul2-modal{
  position: static;
}

/* Wenn dein JS .is-open auf .ul2-modal setzt: nur dann anzeigen */
.stkv-ul2-root[data-view="club"] .ul2-modal{ display:none; }
.stkv-ul2-root[data-view="club"] .ul2-modal.is-open{ display:block; }

/* Backdrop (im Club-Markup vorhanden) */
.stkv-ul2-root[data-view="club"] .ul2-modal__backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 99998;
}

/* ========================================================================== */
/* DTKV Flat Modal Look (nur Club-View)                                       */
/* ========================================================================== */

.stkv-ul2-root[data-view="club"] .ul2-modal__panel{
  position: fixed;
  left: 50%;
  top: 72px;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 24px));
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  overflow: hidden;
  z-index: 99999;
}

.stkv-ul2-root[data-view="club"] .ul2-modal__head{
  position: relative;
  padding: 20px 24px 16px;
  background: #fff;
}

.stkv-ul2-root[data-view="club"] .ul2-modal__title{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 22px;
  font-weight: 900;
  margin: 0 48px 6px 0; /* Platz für Close */
}

.stkv-ul2-root[data-view="club"] .ul2-modal__desc{
  font-size:15px;
  color: rgba(0,0,0,.65);
  margin: 0;
}

.stkv-ul2-root[data-view="club"] .ul2-ico{
  display:inline-flex;
  width:18px;
  height:18px;
}
.stkv-ul2-root[data-view="club"] .ul2-ico svg{
  width:18px;
  height:18px;
  fill: currentColor;
  opacity: .85;
}

.stkv-ul2-root[data-view="club"] .ul2-modal__tabs{
  display:flex;
  gap:10px;
  padding:10px 20px 0;
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.stkv-ul2-root[data-view="club"] .ul2-tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 10px 8px 12px;
  font-weight: 800;
  color: rgba(0,0,0,.65);
  position: relative;
}

.stkv-ul2-root[data-view="club"] .ul2-tab::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:3px;
  border-radius:3px 3px 0 0;
  background: transparent;
}

.stkv-ul2-root[data-view="club"] .ul2-tab.is-active{
  color: var(--stkv-orange) !important;
}

.stkv-ul2-root[data-view="club"] .ul2-tab.is-active::after{
  background: var(--stkv-orange);
}

.stkv-ul2-root[data-view="club"] .ul2-modal__body{
  padding: 14px 20px 20px;
}

.stkv-ul2-root[data-view="club"] .ul2-pane .ul2-add-row{
  background: rgba(0,0,0,.015);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px;
  display:grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
}

.stkv-ul2-root[data-view="club"] .ul2-pane .ul2-add-row .ul2-input{
  grid-column: 1 / 2;
}

.stkv-ul2-root[data-view="club"] .ul2-pane .ul2-add-row .ul2-role-select{
  grid-column: 1 / 3;
}

.stkv-ul2-root[data-view="club"] .ul2-pane .ul2-add-row .ul2-btn--primary{
  grid-column: 2 / 3;
  justify-self: end;
  min-width: 180px;
}

.stkv-ul2-root[data-view="club"] .ul2-btn--primary{
  background: var(--stkv-orange);
  border-color: var(--stkv-orange);
  color: #fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:800;
}

.stkv-ul2-root[data-view="club"] .ul2-person-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

@media (max-width: 720px){
  .stkv-ul2-root[data-view="club"] .ul2-person-grid{
    grid-template-columns: 1fr;
  }
}

.stkv-ul2-root[data-view="club"] .ul2-btn--primary:hover{
  border-color: var(--stkv-orange-dark);
}

.stkv-ul2-root[data-view="club"] .ul2-btn--primary .ul2-ico svg{
  opacity: 1;
}

/* Close-Button: minimal, “flat” */
.stkv-ul2-root[data-view="club"] .ul2-modal__close{
   position:absolute;
  top:18px;
  right:20px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:0;
  background: transparent;
  box-shadow: none;
  outline: none;
  padding:0;
  margin:0;
  font-size:28px;
  line-height:1;
  color:#2b2a27;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.stkv-ul2-root[data-view="club"] .ul2-modal__close:hover{
  background: rgba(0,0,0,.06) !important;
}

.stkv-ul2-root[data-view="club"] .ul2-modal__close:focus{
  outline:none;
  box-shadow:none;
}

body.ul2-modal-open{
  overflow: hidden;
}


@media (max-width: 560px){
  .stkv-ul2-root[data-view="club"] .ul2-modal__panel{ top: 64px; }

  .stkv-ul2-root[data-view="club"] .ul2-pane .ul2-add-row{
    grid-template-columns: 1fr;
  }
  .stkv-ul2-root[data-view="club"] .ul2-pane .ul2-add-row .ul2-btn--primary{
    grid-column: auto;
    justify-self: start;
    width: 100%;
  }
}

/* ===== Suggest dropdown (Link-User Modal) ===== */
.stkv-ul2-root[data-view="club"] .ul2-suggest{
  display:none;
  margin-top: 8px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
}

.stkv-ul2-root[data-view="club"] .ul2-suggest__item{
  width:100%;
  text-align:left;
  padding: 10px 12px;
  background:#fff;
  border:0;
  border-top: 1px solid rgba(0,0,0,.06);
  cursor:pointer;
}
.stkv-ul2-root[data-view="club"] .ul2-suggest__item:first-child{
  border-top:0;
}
.stkv-ul2-root[data-view="club"] .ul2-suggest__item:hover{
  background: rgba(0,0,0,.03);
}
.stkv-ul2-root[data-view="club"] .ul2-suggest__title{
  font-weight: 900;
}
.stkv-ul2-root[data-view="club"] .ul2-suggest__muted{
  font-weight: 700;
  color: rgba(0,0,0,.55);
}
.stkv-ul2-root[data-view="club"] .ul2-suggest__sub{
  margin-top: 2px;
  color: rgba(0,0,0,.60);
  font-size: 12px;
  font-weight: 600;
}

/* ===== Linked badge (DTKV flat) ===== */
.stkv-ul2-root[data-view="club"] .ul2-badge-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.02);
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}

/* optional: linked badge variant */
.stkv-ul2-root[data-view="club"] .ul2-badge-mini.is-linked{
  border-color: rgba(0,0,0,.16);
}

/* subtle button aligns nicer */
.stkv-ul2-root[data-view="club"] .ul2-btn--subtle{
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  font-weight: 900;
}
.stkv-ul2-root[data-view="club"] .ul2-btn--subtle:hover{
  background: rgba(0,0,0,.03);
}

/* =========================
   UL2 Top Navigation
   ========================= */
.stkv-ul2-root .ul2-topnav{
  display:flex;
  gap:10px;
  align-items:center;
  margin: 0 0 14px 0;
  padding: 6px 2px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}

.stkv-ul2-root .ul2-topnav__link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.75);
  color: inherit;
  white-space: nowrap;
}

.stkv-ul2-root .ul2-topnav__link:hover{
  background: rgba(0,0,0,0.04);
}

.stkv-ul2-root .ul2-topnav__link.is-active{
  border-color: rgba(233,84,42,0.35);
  background: rgba(233,84,42,0.10);
  color: var(--stkv-orange, #E9542A);
}

/* ===== Weitere Spielgemeinschaften ===== */

.stkv-ul2-root.stkv-ul2--player .ul2-sg-card{
  padding: 18px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-section-title{
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: rgba(17,24,39,.65);
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-list{
  display: grid;
  gap: 12px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease;
  justify-content: flex-start;
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-item:hover{
  transform: translateY(-1px);
  border-color: rgba(185,78,81,.25);
  box-shadow: 0 8px 24px rgba(17,24,39,.08);
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-logo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-content{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-logo--placeholder{
  background: linear-gradient(135deg, rgba(185,78,81,.10), rgba(17,24,39,.06));
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-name{
  font-weight: 700;
  font-size: 15px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-sg-meta{
  margin-top: 4px;
}

/* ========== Badges (role + primary) ========== */
.stkv-ul2-root.stkv-ul2--player .ul2-badge{
  display:inline-flex;
  align-items:center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(17,24,39,.05);
  color: rgba(17,24,39,.80);
}

.stkv-ul2-root.stkv-ul2--player .ul2-badge--admin{
  border-color: rgba(185,78,81,.25);
  background: rgba(185,78,81,.10);
  color: #B94E51;
}

.stkv-ul2-root.stkv-ul2--player .ul2-badge--member{
  border-color: rgba(17,24,39,.12);
  background: rgba(17,24,39,.06);
  color: rgba(17,24,39,.75);
}

.stkv-ul2-root.stkv-ul2--player .ul2-badge--primary{
  margin-left: 10px;
  border-color: rgba(185,78,81,.25);
  background: rgba(185,78,81,.08);
  color: #B94E51;
}

/* Header club line */
.stkv-ul2-root.stkv-ul2--player .ul2-ph-clubline{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 6px;
}

.stkv-ul2-root.stkv-ul2--player .ul2-ph-clubname{
  font-weight: 700;
  color: rgba(17,24,39,.85);
}

/* einheitliche Section-Titel im UL2-Bereich */
.stkv-ul2-root h2,
.stkv-ul2-root h3{
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  color: rgba(17,24,39,.55);
  margin: 26px 0 12px;
}

/* optional: feine Linie darunter */
.stkv-ul2-root h2::after,
.stkv-ul2-root h3::after{
  content:'';
  display:block;
  height:.5px;
  margin-top: 10px;
  background: #7d8087;
}