/* =========================
   CREATE EVENT PAGE – scoped (Dark Glass)
   Fits app.css (dark default)
========================= */

.cePage{
  --ceAccent: var(--brand-primary);
  --ceSoft: rgba(255,30,45,.12);

  --ceLine: rgba(255,255,255,.12);
  --ceLineStrong: rgba(255,255,255,.16);

  --ceCard: rgba(255,255,255,.04);
  --ceCard2: rgba(255,255,255,.06);
  --ceCardHover: rgba(255,255,255,.06);

  --ceText: var(--ui-text);
  --ceMuted: var(--ui-text-muted);

  --ceShadow: 0 18px 60px rgba(0,0,0,.45);
  --ceBlur: blur(14px);
}

/* create-event: weniger vertikales Padding, damit die Seite nicht immer scrollt */
.cePage.siteMain{
  padding: 10px 0 10px;
}

/* Headline/Copy */
.ceH1{
  margin: 10px 0 10px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.2vw, 44px);
  color: var(--ceText);
  text-shadow: 0 14px 40px rgba(0,0,0,.55);
}
.ceLead{
  margin: 0;
  max-width: 75ch;
  color: var(--ceMuted);
  line-height: 1.5;
  font-size: 15.5px;
}

/* HERO wrapper */
.ceHero__grid{
  padding: 18px;
  border-radius: 22px;
  box-shadow: var(--ceShadow);
  position: relative;
  overflow: hidden;

  background: var(--ceCard);
  border: 1px solid var(--ceLine);
  backdrop-filter: var(--ceBlur);
  -webkit-backdrop-filter: var(--ceBlur);
}
.ceHero__grid:before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(255,30,45,.18), transparent 60%),
    radial-gradient(700px 380px at 100% 20%, rgba(96,165,250,.10), transparent 55%),
    radial-gradient(900px 420px at 70% 110%, rgba(52,211,153,.08), transparent 62%);
  pointer-events:none;
}
.ceHero__grid > *{ position:relative; }

.ceHero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 920px){
  .ceHero__grid{ grid-template-columns: 1fr; }
}

/* Badge */
.ceBadge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--ceLine);
  background: rgba(255,255,255,.05);
  color: var(--ceMuted);
  font-size: 13px;
  margin-bottom: 10px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ceBadge:before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ceAccent);
  box-shadow: 0 0 0 6px rgba(255,30,45,.18);
  display:inline-block;
}

.ceTopRow{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

/* Right visual */
.ceHero__right{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.ceImgCard{
  border: 1px solid var(--ceLine);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
  height: 100%;
  min-height: 280px;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--ceShadow);
}
.ceImgCard img{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
  background: rgba(255,255,255,.03);
  filter: saturate(1.05) contrast(1.05);
}
.ceImgCap{
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--ceMuted);
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

/* Form wrapper spacing */
.ceSection{ padding: 18px; }

/* Hinweisblock */
.ceCallout{
  border: 1px solid rgba(255,30,45,.28);
  background: rgba(255,30,45,.08);
  border-radius: 18px;
  padding: 14px;
  margin-top: 10px;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Button Fix für diese Page */
.cePage .btn--primary{
  background: rgba(255,30,45,.22) !important;
  border-color: rgba(255,30,45,.55) !important;
  color: #fff !important;
}
.cePage .btn--primary:hover{
  background: rgba(255,30,45,.28) !important;
  border-color: rgba(255,30,45,.65) !important;
}

/* Create-Mode: roter Schatten unter dem CTA entfernen */
body[data-ce-mode="create"] #tabGeneral #eventForm #submitBtn{
  box-shadow: none !important;
}

/* pageTop (alt) killen */
.cePage .pageTop{ display:none; }

/* Header-Kachel entfernen (stattdessen Zurück im appTopbar) */
.cePage .ceEditHeader{ display:none; }

/* =========================
   Event erstellen / bearbeiten — kompakter Kopf
   (Glass-Styles für .ceEditHeader siehe weiter unten)
========================= */
.ceEditHeader__row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.ceEditHeader__title{
  margin:6px 0 4px;
  font-size:clamp(20px,2.4vw,28px);
  line-height:1.15;
  font-weight:900;
  letter-spacing:-0.02em;
  color:var(--ceText);
}
.ceEditHeader__meta{
  margin:0;
  font-size:14px;
  font-weight:500;
  letter-spacing:-0.02em;
  color:rgba(255,255,255,.48);
}
.ceBadge--compact{
  margin-bottom:4px;
  padding:6px 10px;
  font-size:12px;
}

/* =========================
   CREATE EVENT – Form Layout
========================= */

/* Etwas breiter als Standard-Container (1100px), damit Basics nicht „schmal“ wirken */
.cePage .container.section{
  width: min(1120px, 92vw);
  padding: 10px 0 10px;
}

/* Extra: Footer vertikal kompakter — kein padding-Shorthand: würde padding-left (Sidebar-Ausgleich) auf 0 setzen und den Footer beim Verlassen der Sidebar springen lassen */
body:has(main.siteMain.cePage) .siteFooter.siteFooter--app{
  padding-top: 6px;
  padding-bottom: 10px;
}
body[data-ce-mode="create"] .siteFooter.siteFooter--app{
  padding-top: 4px;
  padding-bottom: 6px;
}

/* Create-Modus: kein Scroll (html/body + Hauptbereich overflow:hidden) */
html:has(body[data-ce-mode="create"]){
  height:100%;
  overflow:hidden;
}
body[data-ce-mode="create"]{
  height:100%;
  max-height:100dvh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
body[data-ce-mode="create"] main.siteMain.cePage{
  flex:1;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding:4px 0 2px;
}
body[data-ce-mode="create"] .appShell.appShell--appPage{
  flex:1;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
body[data-ce-mode="create"] .appContent{
  flex:1;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
/* Create Marketing: One-Pager, kein Scroll im Container */
body[data-ce-mode="create"] .appContent > .container.section{
  flex:1;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-self:stretch;
  width:100%;
  max-width:none;
}
body[data-ce-mode="create"] .cePage .container.section{
  padding-top:4px;
  padding-bottom:2px;
  /* L/R wie App-Topbar (22px), damit Marketing-Block mit Kopfzeile fluchtet */
  padding-left:max(22px, env(safe-area-inset-left));
  padding-right:max(22px, env(safe-area-inset-right));
}
body[data-ce-mode="create"] #tabGeneral{
  flex:1;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
body[data-ce-mode="create"] #tabGeneral > .ceSection.ceFormWrap{
  flex:1;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding:8px 10px;
}
body[data-ce-mode="create"] #tabGeneral > .ceGeneralStack{
  flex-shrink:0;
}
body[data-ce-mode="create"] #tabGeneral #eventForm{
  flex:1;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:10px;
}
body[data-ce-mode="create"] #tabGeneral #eventForm .field{
  margin-bottom:0;
  flex-shrink:0;
}
body[data-ce-mode="create"] #tabGeneral #eventForm .field.ceBannerUpload{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
body[data-ce-mode="create"] #tabGeneral #eventForm #submitBtn{
  flex-shrink:0;
  margin-top:0;
}
body[data-ce-mode="create"] .appTopbar{
  padding:4px 14px;
  min-height:46px;
  flex-shrink:0;
}
body[data-ce-mode="create"] #siteFooter{
  flex-shrink:0;
}

/* Mobil + App-Shell: Desktop „One-Pager ohne Scroll“ würde Inhalt abschneiden.
   Scroll passiert in .container.section (wie andere Shell-Seiten). */
@media (max-width:900px){
  body[data-ce-mode="create"]:has(.appShell) .appContent > .container.section{
    overflow-x:hidden !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain;
  }
  body[data-ce-mode="create"]:has(.appShell) .ceMarketingShell{
    flex:none !important;
    min-height:0 !important;
    overflow:visible !important;
  }
  body[data-ce-mode="create"]:has(.appShell) .ceMarketingShell__inner{
    flex:none !important;
    min-height:0 !important;
    overflow:visible !important;
    justify-content:flex-start !important;
  }
}

.ceFormWrap{
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  align-items: stretch;
}
.ceFormWrap--single{
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 0;
}
.ceGeneralStack{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Linke Banner-Spalte */
.ceFormBanner{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ceLine);
  background: rgba(255,255,255,.04);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}

.ceFormBanner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,.03);
  filter: saturate(1.05) contrast(1.05);
}

/* Rechte Formular-Spalte */
.ceFormMain{
  padding-left: 0px;
  min-width: 0;
  width: 100%;
  max-width: none !important;
  justify-self: stretch;
  align-self: stretch;
}

/* Mobile: Banner oben, Form darunter */
@media (max-width: 820px){
  .ceFormWrap{ grid-template-columns: 1fr; }
  .ceFormBanner{ height: 140px; }
}

/* Tab „Spiele“: Header in 1 Zeile (Text links, Button rechts) */
#tabGames .lbHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
#tabGames .lbHeader h3{
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tabGames .lbHeader #addGamesBtn{
  flex: 0 0 auto;
  white-space: nowrap;
}

#tabTeams .lbHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
#tabTeams .lbHeader h3{
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tabTeams .lbHeader #manageTeamsBtn{
  flex: 0 0 auto;
  white-space: nowrap;
}

#tabParticipants .lbHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}
#tabParticipants .lbHeader__left{
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
#tabParticipants .lbHeader__left .hint{
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tabParticipants #participantsJoinCodeBtn{
  flex: 0 0 auto;
  white-space: nowrap;
}

#tabOrganizers .lbHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}
#tabOrganizers .lbHeader__left{
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
#tabOrganizers .lbHeader__left .hint{
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tabOrganizers #participantsOrgaCodeBtn{
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Create Event – full width override */
.siteMain #eventForm.form{
  width: 100%;
  max-width: none !important;
}

.siteMain #eventForm .field,
.siteMain #eventForm .input{
  width: 100%;
  max-width: none !important;
}

/* Grid2 im Formular voll */
.ceFormMain .grid2{ width: 100%; }
.ceFormMain .field{ max-width: none !important; }

/* =========================
   Org Tabs (Dark Glass)
========================= */

.orgTabs{
  border: 1px solid var(--ceLine);
  border-radius: 999px;
  background: rgba(10,14,20,.55);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  overflow-x: auto;
  box-shadow: 0 14px 44px rgba(0,0,0,.35);
}

.orgTabs__row{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  padding: 8px;
  min-width: 520px;
}
.orgTabs__row--five{
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  min-width: 0;
  width: 100%;
}
.orgTabs__row--six{
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  min-width: 0;
  width: 100%;
}
.orgTabs__row--seven{
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  min-width: 0;
  width: 100%;
}
.orgTabs__row--two{
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  min-width: 0;
  width: 100%;
}
@media (max-width: 900px){
  .orgTabs__row--five,
  .orgTabs__row--six,
  .orgTabs__row--seven{
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
}

.orgTab{
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ceMuted);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease, transform 120ms ease, border-color 120ms ease, color 120ms ease;
}

.orgTab:hover{
  background: rgba(255,255,255,.06);
  color: var(--ceText);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

.orgTab.active{
  background: rgba(255,30,45,.18);
  border-color: rgba(255,30,45,.40);
  color: #fff;
}

.ceMobileEditNav{
  display: none;
}

body[data-ce-mode="edit"]:has(.appShell) .appContent > .container.section{
  width: 100%;
  max-width: none;
  margin-inline: 0;
  align-self: stretch;
  box-sizing: border-box;
  padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
}
body[data-ce-mode="edit"]:has(.appShell) #editTools.ceEditShell{
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

body[data-ce-mode="edit"] .ceMobileEditNav{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  align-self: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px max(10px, env(safe-area-inset-right)) 10px max(10px, env(safe-area-inset-left));
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(12,16,24,.92), rgba(10,14,20,.86));
}
body[data-ce-mode="edit"] #editTools .orgTabs{
  display: none;
}
body[data-ce-mode="edit"] .ceMobileEditNav__btn:not(.ceMobileEditNav__btn--studio){
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
}
body[data-ce-mode="edit"] .ceMobileEditNav__btn{
  height: 62px;
  min-height: 62px;
  max-height: 62px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-items: center;
  align-content: center;
  gap: 5px;
  padding: 7px 3px;
  text-align: center;
  cursor: pointer;
}
body[data-ce-mode="edit"] .ceMobileEditNav__btn.is-active{
  color: #fff;
  border-color: rgba(255,30,45,.5);
  background: linear-gradient(180deg, rgba(255,52,74,.2), rgba(255,52,74,.1));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
body[data-ce-mode="edit"] .ceMobileEditNav__icon{
  width: 16px;
  height: 16px;
  opacity: .95;
}
body[data-ce-mode="edit"] .ceMobileEditNav__label{
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

body[data-ce-mode="edit"] .ceMobileEditNav__sep{
  flex: 0 0 1px;
  width: 1px;
  min-width: 1px;
  align-self: stretch;
  margin: 10px 6px 10px 4px;
  background: #fff;
  opacity: .92;
  border-radius: 1px;
}

body[data-ce-mode="edit"] .ceMobileEditNav__btn--studio{
  flex: 1.4 1 0;
  min-width: 96px;
  max-width: none;
  width: auto;
  padding: 6px 12px;
  grid-template-rows: 1fr;
}

body[data-ce-mode="edit"] .ceMobileEditNav__studioLogo{
  display: block;
  width: 100%;
  max-width: 100%;
  height: 26px;
  max-height: 30px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px){
  /* app-shell mobile macht alle appContent-Kinder zu flex:1;
     die neue Icon-Bar soll aber nur ihre eigene Höhe einnehmen. */
  body[data-ce-mode="edit"]:has(.appShell) .appContent > .ceMobileEditNav{
    flex: 0 0 auto !important;
    min-height: auto !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
  body[data-ce-mode="edit"]:has(.appShell) .appContent > .container.section{
    padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right));
  }
  body[data-ce-mode="edit"] .ceMobileEditNav{
    gap: 4px;
    padding: 6px max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
  }
  body[data-ce-mode="edit"] .ceMobileEditNav__btn{
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    gap: 4px;
    padding: 6px 3px;
  }
  body[data-ce-mode="edit"] .ceMobileEditNav__icon{
    width: 15px;
    height: 15px;
  }
  body[data-ce-mode="edit"] .ceMobileEditNav__label{
    font-size: clamp(8.5px, 2.15vw, 10.5px);
  }
  body[data-ce-mode="edit"] .ceMobileEditNav__btn--studio{
    flex: 1.35 1 0;
    min-width: 84px;
    padding: 6px 10px;
  }
  body[data-ce-mode="edit"] .ceMobileEditNav__studioLogo{
    height: 22px;
    max-height: 26px;
  }
}
/* =========================================================
   CREATE EVENT — Premium Glass Depth Upgrade (append)
========================================================= */
.cePage{
  --ceLine: rgba(255,255,255,.14);
  --ceLineStrong: rgba(255,255,255,.20);
  --ceShadow: 0 26px 90px rgba(0,0,0,.55);
}

.ceHero__grid::after,
.ceImgCard::after,
.ceCallout::after,
.ceFormBanner::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.28);
}

/* Ergebnis-Matrix (Teams × Runden) im Spiel-Modal */
.ceResultsMatrixHost{
  margin-top: 8px;
}
.ceResultsScroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--ceLine, rgba(255,255,255,.12));
  background: rgba(0,0,0,.18);
}
.ceResultsTable{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 320px;
}
.ceResultsTable th,
.ceResultsTable td{
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  vertical-align: middle;
}
.ceResultsTable th{
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ceMuted, rgba(255,255,255,.55));
  white-space: nowrap;
}
.ceResultsTeam{
  font-weight: 700;
  min-width: 120px;
  max-width: 200px;
}
.ceResultsTable .ceRoundInput{
  min-width: 72px;
  max-width: 110px;
  padding: 8px 10px;
  font-size: 14px;
}
.hint--small{
  font-size: 12px;
  margin-top: 8px;
}

/* Tab „Allgemeines“: volle Breite im Shell-Container; Formular ohne zweite „Karte“ (nur ceEditShell als Rahmen) */
#tabGeneral .ceGeneralStack{
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 8px 0 20px;
  gap: 24px;
}
#tabGeneral #ceKvCodes{
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(165deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 100%),
    rgba(12,14,18,.55);
  box-shadow:
    0 24px 64px rgba(0,0,0,.42),
    0 1px 0 rgba(255,255,255,.06) inset;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
#tabGeneral #ceKvCodes .kv__row{
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 10px 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#tabGeneral #ceKvCodes .kv__row:last-child{
  border-bottom: none;
  padding-bottom: 0;
}
#tabGeneral #ceKvCodes .kv__row > .muted{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: rgba(255,255,255,.45);
}
#tabGeneral #ceKvCodes strong{
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ceText);
}
/* Keine zweite Box: Form liegt direkt in .ceEditShell (Glass nur außen) */
#tabGeneral .ceFormWrap--single{
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#tabGeneral .ceFormWrap--single.ceSection{
  padding: 0;
}
#tabGeneral .ceGeneralMarketing{
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.66);
  font-weight: 600;
  letter-spacing: -0.01em;
}
#tabGeneral #eventForm .field{
  margin: 0 0 12px;
}
#tabGeneral #eventForm .field__label{
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: rgba(255,255,255,.58);
}
#tabGeneral #eventForm .btn--primary{
  margin-top: 6px;
  width: 100%;
  max-width: 100%;
}

/* Event bearbeiten – Spiele: gleiche Kachel-/Listen-Optik wie Olympiade-Setup 4.3 (event-setup.css, nicht eingebunden) */
#tabGames .ceGamesDiscScroll{
  max-height: min(56vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4px 2px 10px;
}

/* Edit-Modus mobil: ceEditShell bleibt geschlossen, Scroll nur in Tab-Inhalten */
@media (max-width: 900px){
  body[data-ce-mode="edit"]:has(.appShell) .appContent > .container.section{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden !important;
  }
  body[data-ce-mode="edit"]:has(.appShell) #editTools.ceEditShell{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 0;
  }
  body[data-ce-mode="edit"]:has(.appShell) #editTools.ceEditShell > .orgTabPanel:not([hidden]){
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body[data-ce-mode="edit"]:has(.appShell) #tabGames .lbHeader{
    flex-shrink: 0;
  }
  body[data-ce-mode="edit"]:has(.appShell) #tabGames .ceGamesDiscScroll{
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentGroupPhase,
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentKo{
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentGroupPhase .ceGpShell,
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentKo .ceGpShell{
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 10px;
  }

  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentGroupPhase .ceGpSeg,
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentKo .ceGpSeg{
    width: 100%;
    max-width: none;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentGroupPhase .ceGpSeg__btn,
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentKo .ceGpSeg__btn{
    padding: 10px 6px;
    font-size: 11px;
  }

  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentGroupPhase .ceGpSeg__label--long,
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentKo .ceGpSeg__label--long{
    display: none;
  }

  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentGroupPhase .ceGpSeg__label--short,
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentKo .ceGpSeg__label--short{
    display: inline;
  }

  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentGroupPhase .ceGpStatus{
    flex-shrink: 0;
  }

  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentGroupPhase .ceGpPane--settings:not([hidden]),
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentGroupPhase .ceGpPane--edit:not([hidden]),
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentKo .ceGpPane--overview:not([hidden]),
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentKo .ceGpPane--edit:not([hidden]){
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentGroupPhase .ceGpPane--results:not([hidden]),
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentKo .ceGpPane--results:not([hidden]){
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentGroupPhase .ceGpKv__row{
    grid-template-columns: minmax(0, 42%) 1fr;
    gap: 8px;
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* Gruppenphase Bearbeiten + Bestätigung */
.ceGpEdit__sectionTitle{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ceGpEdit__structHint,
.ceGpEdit__lockedHint{
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ceGpEdit--locked{
  opacity: 0.92;
}

.ceGpEditTbList{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ceGpEditTb{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ceGpEditTb__actions{
  display: flex;
  gap: 4px;
}

.ceGpEditDayChoices{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.ceGpEditDayRow{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ceGpEditDayRow__label{
  min-width: 72px;
  font-weight: 600;
  font-size: 12px;
}

.ceGpEditDayRow__choices{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.ceGpEditMatchdayList{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ceGpEditPlayTime{
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ceGpEditPlayTime__kicker{
  font-size: 12px;
  font-weight: 600;
}

.ceGpEdit__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ceGpEdit__feedback--error{
  color: var(--danger, #ff6b6b);
}

.ceGpConfirmOverlay{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.ceGpConfirm{
  width: min(480px, 100%);
  max-height: min(85vh, 640px);
  overflow: auto;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--surface-elevated, #1a1d24);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.ceGpConfirm__title{
  margin: 0 0 8px;
  font-size: 18px;
}

.ceGpConfirm__list,
.ceGpConfirm__flags{
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.ceGpConfirm__meta{
  margin: 0 0 10px;
}

.ceGpConfirm__note{
  margin: 0 0 14px;
  font-size: 13px;
}

.ceGpConfirm__actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body.ceGpConfirmOpen{
  overflow: hidden;
}

.ceGpStandingsWrap__heading{
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.ceGpStandingsBlock{
  margin-bottom: 16px;
}

.ceGpStandingsBlock__title{
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.ceGpStandingsScroll{
  overflow-x: auto;
}

.ceGpStandingsTable{
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ceGpStandingsTable th,
.ceGpStandingsTable td{
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.ceGpStandingsTable th.num,
.ceGpStandingsTable td.num{
  text-align: right;
  white-space: nowrap;
}

#tabGames .setupWizard__discOverview{
  width: 100%;
}

#tabGames .setupWizard__discOverview__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#tabGames .setupWizard__discOverview__item{
  margin: 0;
  padding: 0;
  list-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

#tabGames .setupWizard__discOverview__item:active{
  cursor: grabbing;
}

#tabGames .setupWizard__discOverview__item--dragging .setupCatCard--discOverview{
  opacity: 0.55;
  cursor: grabbing;
}

#tabGames .setupWizard__discOverview__item--dropTarget .setupCatCard--discOverview{
  border-color: rgba(255, 30, 45, 0.55);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 30, 45, 0.28);
}

#tabGames .setupWizard__discOverview__row{
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

#tabGames .setupWizard__discOverview__rail{
  flex: 0 0 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
}

#tabGames .setupCatCard.setupCatCard--discOverview{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  cursor: grab;
  margin: 0;
}

#tabGames .setupCatCard.setupCatCard--discOverview:active{
  transform: none;
}

#tabGames .setupCatCard.setupCatCard--discOverview .goCatGameCard__desc .muted{
  color: rgba(255, 255, 255, 0.52);
}

#tabGames .setupCatCard.setupCatCard--discOverview button.goCatGameCard__cta{
  border: none;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: right;
  color: rgba(255, 255, 255, 0.55);
}

#tabGames .setupCatCard.setupCatCard--discOverview button.goCatGameCard__cta:hover{
  color: rgba(255, 255, 255, 0.88);
}

#tabGames .setupWizard__discOverview__dragGrip{
  width: 18px;
  cursor: grab;
  color: rgba(255, 255, 255, 0.38);
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

#tabGames .setupWizard__discOverview__dragGrip::before{
  content: "⋮";
  display: block;
  font-weight: 800;
  transform: translateY(-1px);
}

#tabGames .setupWizard__discOverview__pos{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(175deg, rgba(255, 30, 45, 0.22), rgba(255, 30, 45, 0.1));
  border: 1px solid rgba(255, 30, 45, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#tabGames .setupWizard__discOverview__move{
  flex: 0 0 44px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-self: stretch;
}

#tabGames .setupWizard__discOverview__moveBtn{
  min-width: 40px;
  padding-left: 8px !important;
  padding-right: 8px !important;
  font-size: 15px !important;
  line-height: 1 !important;
  cursor: pointer;
}

#tabGames .setupWizard__discOverview__moveBtn:disabled{
  opacity: 0.35;
  pointer-events: none;
}

#tabGames .setupWizard__discOverview__empty{
  margin: 0;
  line-height: 1.45;
}

/* Kachel-Basis wie Wizard 4.1 / 4.3 (.setupCatCard) */
#tabGames .setupCatCard.goCatGameCard{
  text-align: left;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  cursor: pointer;
  color: inherit;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.33), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 128px;
  position: relative;
  padding-bottom: 34px;
  display: flex;
  flex-direction: column;
}

#tabGames .setupCatCard.goCatGameCard:hover{
  border-color: rgba(255, 30, 45, 0.35);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#tabGames .setupCatCard .goCatGameCard__head{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  margin: 0;
  max-width: calc(100% - 24px);
}

#tabGames .setupCatCard .goCatGameCard__headLeft{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  justify-content: flex-end;
}

#tabGames .setupCatCard .goCatGameCard__resultOk{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

#tabGames .setupCatCard .goCatGameCard__resultOkIcon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #27f07b;
  background: rgba(10, 44, 22, 0.98);
  border: 1px solid rgba(39, 240, 123, 0.75);
  box-shadow: 0 0 0 1px rgba(39, 240, 123, 0.2) inset, 0 0 10px rgba(39, 240, 123, 0.28);
  flex-shrink: 0;
}

#tabGames .setupCatCard .goCatGameCard__resultOkLabel{
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #27f07b;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(39, 240, 123, 0.35);
}

#tabGames .setupCatCard .goCatGameCard__badge{
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#tabGames .setupCatCard .goCatGameCard__badge::before{
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  background-image: url("/assets/logo/athlon-favicon.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: none;
}

#tabGames .setupCatCard .goCatGameCard__cta{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  position: absolute;
  right: 12px;
  bottom: 10px;
  text-align: right;
}

#tabGames .setupCatCard .goCatGameCard__title{
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  line-height: 1.25;
  padding-right: 118px;
}

#tabGames .setupCatCard .goCatGameCard__desc{
  font-size: 12px;
  color: var(--ceMuted, rgba(255, 255, 255, 0.55));
  margin: 4px 0 0;
  padding-right: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#tabGames .setupCatCard .goCatGameCard__cat{
  margin: 8px 0 28px;
  padding: 0;
  line-height: 1.2;
}

#tabGames .setupCatCard .goCatGameCard__stats{
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 140px);
}

#tabGames .setupCatCard .goCatGameCard__stat{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
}

#tabGames .setupCatCard .goCatGameCard__statIcon{
  opacity: 0.82;
}

/* Spiele-Kacheln — schmale Handys */
@media (max-width: 520px) {
  #tabGames .setupWizard__discOverview__row{
    gap: 8px;
  }

  #tabGames .setupWizard__discOverview__rail{
    flex: 0 0 30px;
    gap: 4px;
    padding-top: 0;
  }

  #tabGames .setupWizard__discOverview__pos{
    width: 26px;
    height: 26px;
    font-size: 11px;
    border-radius: 8px;
  }

  #tabGames .setupWizard__discOverview__dragGrip{
    width: 14px;
    font-size: 15px;
  }

  #tabGames .setupWizard__discOverview__move{
    flex: 0 0 34px;
    gap: 3px;
  }

  #tabGames .setupWizard__discOverview__moveBtn{
    min-width: 32px;
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: 14px !important;
  }

  #tabGames .setupCatCard.goCatGameCard{
    min-height: 0;
    padding: 10px 10px 8px;
  }

  #tabGames .setupCatCard .goCatGameCard__desc{
    display: none !important;
  }

  #tabGames .setupCatCard .goCatGameCard__title{
    font-size: 0.92rem;
    line-height: 1.2;
    padding-right: 92px;
  }

  #tabGames .setupCatCard .goCatGameCard__head{
    top: 8px;
    right: 8px;
  }

  #tabGames .setupCatCard .goCatGameCard__resultOk{
    gap: 4px;
  }

  #tabGames .setupCatCard .goCatGameCard__resultOkIcon{
    width: 20px;
    height: 20px;
  }

  #tabGames .setupCatCard .goCatGameCard__resultOkLabel{
    font-size: 10px;
  }

  #tabGames .setupCatCard .goCatGameCard__cat{
    margin: 6px 0 0;
    order: 2;
  }

  #tabGames .setupCatCard .goCatGameCard__badge{
    font-size: 9px;
    padding: 2px 7px;
  }

  #tabGames .setupCatCard .goCatGameCard__badge::before{
    width: 8px;
    height: 8px;
    margin-right: 5px;
  }

  #tabGames .setupCatCard .goCatGameCard__stats{
    position: static;
    left: auto;
    bottom: auto;
    max-width: none;
    margin-top: 8px;
    gap: 4px 10px;
    order: 3;
  }

  #tabGames .setupCatCard .goCatGameCard__stat{
    font-size: 10px;
    gap: 3px;
  }

  #tabGames .setupCatCard .goCatGameCard__stat:last-child{
    flex: 1 1 100%;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9.5px;
  }

  #tabGames .setupCatCard .goCatGameCard__cta,
  #tabGames .setupCatCard.setupCatCard--discOverview button.goCatGameCard__cta{
    position: static;
    align-self: flex-end;
    margin-top: 6px;
    order: 4;
    width: 100%;
    text-align: right;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  #tabGames .setupCatCard .goCatGameCard__title{
    padding-right: 72px;
  }

  #tabGames .setupCatCard .goCatGameCard__resultOkLabel{
    display: none;
  }
}

/* =========================================================
   Event bearbeiten — moderner „Glass“-Workspace (nicht nüchtern)
========================================================= */

.ceEditShell{
  position: relative;
  overflow: hidden;
  padding: 12px 20px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(255,30,45,.14), transparent 55%),
    radial-gradient(700px 400px at 100% 30%, rgba(96,165,250,.08), transparent 50%),
    linear-gradient(165deg, rgba(255,255,255,.06), rgba(10,14,20,.35));
  box-shadow:
    0 24px 80px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.ceEditShell::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  opacity:.9;
}
.ceEditShell > .hr{
  display: none !important;
}
body[data-ce-mode="edit"] #editTools.ceEditShell:has(.orgTab.active[data-orgtab="#tabEventMap"]){
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-ce-mode="edit"] #editTools.ceEditShell:has(.orgTab.active[data-orgtab="#tabEventMap"])::before{
  display: none;
}
body[data-ce-mode="edit"] #editTools.ceEditShell:has(.orgTab.active[data-orgtab="#tabEventMap"]) #tabEventMap{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* Create-Mode: keine große Glass-Wrapperbox; Flex für kein Scroll */
body[data-ce-mode="create"] #editTools.ceEditShell{
  flex:1;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  padding:0 !important;
}
body[data-ce-mode="create"] #editTools.ceEditShell::before{
  display: none !important;
}

.ceEditHeader{
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(255,30,45,.1), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:
    0 24px 64px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.ceEditHeader::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

/* Tab-Leiste: größere Pills, leichter Glow beim aktiven Tab */
.orgTabs--modern{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(6,8,12,.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.orgTabs--modern .orgTab{
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: .02em;
}
.orgTabs--modern .orgTab.active{
  background: linear-gradient(180deg, rgba(255,45,60,.35), rgba(255,30,45,.2));
  border-color: rgba(255,80,95,.45);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,30,45,.2),
    0 10px 28px rgba(0,0,0,.35);
}

/* Allgemeines: Codes-Karte — oben bereits definiert; keine doppelten Overrides nötig */

/* Formularfelder: eingelassene Controls, weiche Kontur (Apple-ähnlich) */
#tabGeneral #eventForm .input,
#tabGeneral #eventForm textarea.input{
  border-radius: 18px;
  border: 0;
  padding: 14px 16px;
  min-height: 48px;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.95);
  background-color: rgba(255,255,255,.06);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1),
    inset 0 1px 2px rgba(0,0,0,.35),
    inset 0 -1px 0 rgba(255,255,255,.04);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}
#tabGeneral #eventForm textarea.input{
  min-height: 96px;
  line-height: 1.45;
  resize: vertical;
}
#tabGeneral #eventForm select.input{
  border-radius: 18px;
  border: 0;
  padding: 14px 40px 14px 16px;
  min-height: 48px;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.95);
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255,255,255,.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1),
    inset 0 1px 2px rgba(0,0,0,.35),
    inset 0 -1px 0 rgba(255,255,255,.04);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}
#tabGeneral #eventForm .input:hover,
#tabGeneral #eventForm textarea.input:hover{
  background-color: rgba(255,255,255,.09);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.14),
    inset 0 1px 2px rgba(0,0,0,.28),
    inset 0 -1px 0 rgba(255,255,255,.06);
}
#tabGeneral #eventForm select.input:hover{
  background-color: rgba(255,255,255,.09);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.14),
    inset 0 1px 2px rgba(0,0,0,.28),
    inset 0 -1px 0 rgba(255,255,255,.06);
}
#tabGeneral #eventForm .input:focus,
#tabGeneral #eventForm textarea.input:focus{
  outline: none;
  background-color: rgba(255,255,255,.08);
  box-shadow:
    0 0 0 1px rgba(255,90,100,.45),
    0 0 0 4px rgba(255,30,45,.15),
    inset 0 1px 2px rgba(0,0,0,.25);
}
#tabGeneral #eventForm select.input:focus{
  outline: none;
  background-color: rgba(255,255,255,.08);
  box-shadow:
    0 0 0 1px rgba(255,90,100,.45),
    0 0 0 4px rgba(255,30,45,.15),
    inset 0 1px 2px rgba(0,0,0,.25);
}

#tabGeneral #eventForm .grid2{
  gap: 10px;
}

.cePage #tabGeneral #eventForm .btn--primary{
  max-width: none;
  padding: 15px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, rgba(255,68,82,.95), rgba(210,32,52,.92)) !important;
  border: 0 !important;
  box-shadow:
    0 16px 40px rgba(255,30,45,.28),
    0 1px 0 rgba(255,255,255,.22) inset;
}
.cePage #tabGeneral #eventForm .btn--primary:hover{
  filter: brightness(1.05);
  box-shadow:
    0 22px 52px rgba(255,30,45,.35),
    0 1px 0 rgba(255,255,255,.26) inset;
}

#tabGeneral .linkSmall{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-weight: 700;
  text-decoration: none;
  color: var(--ceMuted);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
#tabGeneral .linkSmall:hover{
  color: var(--ceText);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}

#tabGeneral #eventForm #submitBtn{
  font-weight: 600;
}

/* Banner-Upload: Format-Zeile + „Bild wählen“ — gleiche Breite wie Bild-Spalte, Button füllt bis rechts */
#tabGeneral .ceBannerUpload__specRow{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  gap:10px 12px;
  margin:0 0 10px;
  width:min(100%,min(280px,42%));
  max-width:100%;
  align-self:flex-start;
  box-sizing:border-box;
}
#tabGeneral .ceBannerUpload__spec{
  display:block !important;
  text-align:left;
  margin:0 !important;
  max-width:none;
  flex:0 1 auto;
  min-width:0;
  font-size:13px;
  line-height:1.45;
  color:rgba(255,255,255,.42);
  font-weight:400;
  white-space:normal;
}
#tabGeneral .ceBannerUpload__specRow .ceBannerUpload__actions{
  flex:1 1 0;
  min-width:0;
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  padding:0;
}
#tabGeneral .ceBannerUpload__specRow .ceBannerUpload__actions .btn{
  flex:1 1 auto;
  min-width:max-content;
  width:100%;
  white-space:nowrap;
  justify-content:center;
}
#tabGeneral .ceBannerUpload__leftCol{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  max-width:min(340px,100%);
  min-width:0;
  align-self:start;
}
#tabGeneral #eventForm #submitBtn.ceBannerUpload__submit{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin:0;
}
#tabGeneral .ceBannerUpload__previewWrap{
  width:100%;
  max-width:100%;
  align-self:stretch;
  aspect-ratio:16 / 9;
  max-height:120px;
  border-radius:20px;
  border:1px dashed rgba(255,255,255,.14);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.06), transparent 55%),
    rgba(0,0,0,.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 12px 36px rgba(0,0,0,.25);
  transition:border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  min-height:0;
}
#tabGeneral .ceBannerUpload__previewWrap:hover{
  border-color: rgba(255,255,255,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 16px 44px rgba(0,0,0,.32);
}
#tabGeneral .ceBannerUpload__placeholder{
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.45);
}
#tabGeneral .ceBannerUpload__actions .btn{
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: 0;
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1);
}
#tabGeneral .ceBannerUpload__actions .btn:hover{
  background: rgba(255,255,255,.12);
}
#tabGeneral .ceBannerUpload__hint{
  font-size:12.5px;
  color:rgba(255,255,255,.38);
  margin:8px 0 0;
  min-height:0;
}

/* Banner: Label; Format+Button; Zeile mit Dropzone + Marketing */
#tabGeneral .ceBannerUpload{
  margin-top:0;
}

#tabGeneral .ceDeleteEventZone {
  max-width: 560px;
}
#tabGeneral .ceDeleteEventZone__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
#tabGeneral .ceDeleteEventZone__hint {
  color: rgba(255, 255, 255, 0.42);
}

#tabGeneral .ceBannerUpload__topRow{
  display:block;
}
#tabGeneral .ceBannerUpload__topRow .field__label{
  margin:0;
}
#tabGeneral .ceBannerUpload__row--withAside{
  display:grid;
  grid-template-columns:minmax(0,min(280px,42%)) minmax(0,1fr);
  gap:12px 16px;
  align-items:stretch;
  width:100%;
  min-height:0;
}
body[data-ce-mode="create"] #tabGeneral .ceBannerUpload__row--withAside{
  flex:1;
  min-height:0;
}
#tabGeneral .ceBannerUpload__rightText{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(165deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.03) 45%, rgba(0,0,0,.12) 100%),
    rgba(255,255,255,.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 28px rgba(0,0,0,.22);
  align-self:stretch;
  min-height:0;
  justify-content:center;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
}
#tabGeneral .ceBannerUpload__rightTitle{
  margin:0;
  font-weight:800;
  letter-spacing:-0.02em;
  font-size:clamp(15px,1.65vw,19px);
  line-height:1.15;
  color:rgba(255,255,255,.97);
}
#tabGeneral .ceBannerUpload__rightLead{
  margin:0;
  font-weight:600;
  letter-spacing:-0.015em;
  font-size:clamp(11.5px,1.1vw,14px);
  color:rgba(255,255,255,.72);
  line-height:1.35;
}
#tabGeneral .ceBannerUpload__rightEmphasis{
  margin:4px 0 0;
  font-size:clamp(12px,1.2vw,14.5px);
  line-height:1.3;
  font-weight:800;
  letter-spacing:-0.01em;
  color:var(--ceAccent, #ff1e2d);
}

body[data-ce-mode="create"] [data-ce-banner-aside="mobile"]{
  display:none !important;
}
body[data-ce-mode="edit"] [data-ce-banner-aside="quickstart"]{
  display:none !important;
}

.ceMobileBannerUpload{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(165deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.03) 45%, rgba(0,0,0,.12) 100%),
    rgba(255,255,255,.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 28px rgba(0,0,0,.22);
  align-self:stretch;
  min-height:0;
  justify-content:flex-start;
  box-sizing:border-box;
  overflow:hidden;
}
.ceMobileBannerUpload__title{
  margin:0;
  font-weight:800;
  letter-spacing:-0.02em;
  font-size:clamp(15px,1.65vw,19px);
  line-height:1.15;
  color:rgba(255,255,255,.97);
}
.ceMobileBannerUpload__spec{
  margin:0;
}
.ceMobileBannerUpload__previewWrap{
  width:100%;
  max-width:min(180px, 100%);
  margin:0 auto;
  aspect-ratio:9 / 16;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.14);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.06), transparent 55%),
    rgba(0,0,0,.2);
  overflow:hidden;
  cursor:pointer;
  position:relative;
}
.ceMobileBannerUpload__previewWrap:focus-visible{
  outline:2px solid rgba(255,42,69,.55);
  outline-offset:2px;
}
.ceMobileBannerUpload__preview{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ceMobileBannerUpload__preview[hidden]{
  display:none;
}
.ceMobileBannerUpload__placeholder{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  text-align:center;
  font-size:0.82rem;
  color:rgba(255,255,255,.55);
}
.ceMobileBannerUpload__placeholder[hidden]{
  display:none;
}
.ceMobileBannerUpload__actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
}
.ceMobileBannerUpload__hint{
  margin:0;
  text-align:center;
  font-size:0.8rem;
}
.ceMobileBannerUpload.ceMobileBannerUpload--busy{
  opacity:0.72;
  pointer-events:none;
}

.ceEventLogoUpload{
  margin-top:0.75rem;
}
.ceEventLogoUpload__spec{
  font-size:0.8rem;
}
.ceEventLogoUpload__row{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:12px 16px;
}
.ceEventLogoUpload__previewWrap{
  width:120px;
  height:120px;
  flex-shrink:0;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.14);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.06), transparent 55%),
    rgba(0,0,0,.2);
  overflow:hidden;
  cursor:pointer;
  position:relative;
}
.ceEventLogoUpload__previewWrap:focus-visible{
  outline:2px solid rgba(255,42,69,.55);
  outline-offset:2px;
}
.ceEventLogoUpload__preview{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  padding:6px;
  box-sizing:border-box;
}
.ceEventLogoUpload__preview[hidden]{
  display:none;
}
.ceEventLogoUpload__placeholder{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
  text-align:center;
  font-size:0.78rem;
  color:rgba(255,255,255,.55);
}
.ceEventLogoUpload__placeholder[hidden]{
  display:none;
}
.ceEventLogoUpload__actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  padding-top:0.35rem;
}
.ceEventLogoUpload__hint{
  margin:0.35rem 0 0;
  font-size:0.8rem;
}
.ceEventLogoUpload.ceEventLogoUpload--busy{
  opacity:0.72;
  pointer-events:none;
}

.setupWizardPage .ceEventLogoUpload__previewWrap{
  width:108px;
  height:108px;
}

@media (max-width:980px){
  #tabGeneral .ceBannerUpload__row--withAside{
    grid-template-columns:1fr;
  }
  #tabGeneral .ceBannerUpload__specRow{
    width:100%;
    max-width:100%;
  }
}

/* Teams-Tab: Karten-Roster statt Bullet-Liste */
#tabTeams .orgTeamsPreview{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px){
  #tabTeams .orgTeamsPreview{
    grid-template-columns: 1fr;
  }
}

#tabTeams .orgTeamCard{
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(165deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 48%, rgba(0,0,0,.12) 100%),
    rgba(255,255,255,.04);
  box-shadow:
    0 10px 26px rgba(0,0,0,.33),
    inset 0 1px 0 rgba(255,255,255,.06);
}

#tabTeams .orgTeamCard__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#tabTeams .orgTeamCard__brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

#tabTeams .orgTeamCard__teamLogo{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tabTeams .orgTeamCard__logoImg{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

#tabTeams .orgTeamCard__logoPh{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.45);
  user-select: none;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  box-sizing: border-box;
}

#tabTeams .orgTeamCard__titles{
  min-width: 0;
}

#tabTeams .orgTeamCard__teamName{
  margin: 0;
  font-size: clamp(1.28rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ceText);
  line-height: 1.2;
}

#tabTeams .orgTeamCard__desc{
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ceMuted);
  max-width: 52ch;
}

#tabTeams .orgTeamCard__pill{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,30,45,.14);
}

#tabTeams .orgTeamRoster{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#tabTeams .orgTeamRoster--empty{
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  font-size: 13px;
}

#tabTeams .orgTeamPlayer{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  transition: border-color 140ms ease, background 140ms ease;
}

#tabTeams .orgTeamPlayer:hover{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
}

#tabTeams .orgTeamPlayer__avatar{
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(145deg, rgba(255,70,85,.55), rgba(160,30,45,.35));
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

#tabTeams .orgTeamPlayer__avatar img{
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

#tabTeams .orgTeamPlayer__body{
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#tabTeams .orgTeamPlayer__name{
  font-size: 13px;
  font-weight: 600;
  color: var(--ceText);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tabTeams .orgTeamPlayer__role{
  font-size: 12px;
  color: var(--ceMuted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tabTeams .orgTeamPlayer__role--cap{
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  padding: 2px 8px;
  margin-top: 1px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,200,205,.95);
  border: 1px solid rgba(255,90,100,.35);
  background: rgba(255,30,45,.18);
}

/* Organisatoren: Stationen als aufklappbare Mehrfachauswahl */
#tabOrganizers .orgStationPicker{
  width: 100%;
  max-width: min(100%, 380px);
}

#tabOrganizers .orgStationPicker > summary{
  list-style: none;
  cursor: pointer;
}

#tabOrganizers .orgStationPicker > summary::-webkit-details-marker{
  display: none;
}

#tabOrganizers .orgStationPicker__summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  font-size: 13px;
  color: var(--ceText);
  transition: border-color 140ms ease, background 140ms ease;
}

#tabOrganizers .orgStationPicker__summary:hover{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
}

#tabOrganizers .orgStationPicker[open] .orgStationPicker__summary{
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: rgba(255,255,255,.08);
}

#tabOrganizers .orgStationPicker__summaryText{
  min-width: 0;
  text-align: left;
  line-height: 1.35;
}

#tabOrganizers .orgStationPicker__chev{
  flex-shrink: 0;
  font-size: 11px;
  opacity: .75;
  transition: transform 160ms ease;
}

#tabOrganizers .orgStationPicker[open] .orgStationPicker__chev{
  transform: rotate(-180deg);
}

#tabOrganizers .orgStationPicker__panel{
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px 10px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: rgba(0,0,0,.28);
  -webkit-overflow-scrolling: touch;
}

#tabOrganizers .orgStationPicker__row{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.35;
}

#tabOrganizers .orgStationPicker__row:hover{
  background: rgba(255,255,255,.04);
}

#tabOrganizers .orgStationPicker__row input{
  margin-top: 3px;
  flex-shrink: 0;
}

#tabOrganizers .orgStationPicker__rowText{
  min-width: 0;
}

/* Event-Banner Upload (Allgemeines) */
.ceBannerUpload{
  margin-top: 4px;
}
.ceBannerUpload__spec{
  margin: 4px 0 10px;
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 62ch;
}
.ceBannerUpload__row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}
.ceBannerUpload__previewWrap{
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 320px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid var(--ceLine);
  background: rgba(0,0,0,.35);
  overflow: hidden;
  cursor: pointer;
}
.ceBannerUpload__previewWrap:focus-visible{
  outline: 2px solid var(--ceAccent, #ff1e2d);
  outline-offset: 2px;
}
.ceBannerUpload__preview{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ceBannerUpload__preview[hidden]{
  display: none !important;
}
.ceBannerUpload__placeholder{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ceMuted);
  padding: 12px;
  text-align: center;
}
.ceBannerUpload__placeholder[hidden]{
  display: none !important;
}
.ceBannerUpload__actions{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 4px;
}
.ceBannerUpload__hint{
  margin: 8px 0 0;
  min-height: 1.25em;
}

.ceBannerUpload.ceBannerUpload--busy{
  pointer-events: none;
  opacity: 0.65;
}
.ceBannerUpload.ceBannerUpload--busy .ceBannerUpload__previewWrap{
  cursor: wait;
}

/* =========================================================
   Game-Edit Popup (Event bearbeiten) — match Add-Games Popup
========================================================= */
/* — Event löschen: kompaktes Athlon-Dialog (statt natives confirm) — */
.ceDeleteEventModal {
  z-index: 10060;
}
.ceDeleteEventModal__card {
  width: min(420px, 94vw);
  max-height: none;
  overflow: visible;
  padding: 20px 22px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 55, 68, 0.28);
  background: linear-gradient(
    165deg,
    rgba(22, 14, 18, 0.94) 0%,
    rgba(10, 12, 20, 0.92) 100%
  );
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 30, 45, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ceDeleteEventModal__kicker {
  color: rgba(255, 120, 130, 0.92) !important;
  letter-spacing: 0.1em !important;
}
.ceDeleteEventModal__body {
  margin-top: 10px;
}
.ceDeleteEventModal__lead {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}
.ceDeleteEventModal__detail,
.ceDeleteEventModal__final {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45) !important;
}
.ceDeleteEventModal__final {
  margin-bottom: 0;
  color: rgba(255, 140, 150, 0.55) !important;
}
.ceDeleteEventModal__actions {
  margin-top: 20px;
  justify-content: flex-end;
  gap: 12px;
}
.ceDeleteEventModal__actions .btn--ghost {
  border-color: rgba(255, 255, 255, 0.16);
}
@media (max-width: 480px) {
  .ceDeleteEventModal__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .ceDeleteEventModal__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

#gameEditModal .modal__card{
  padding: 12px 14px;
}

#gameEditModal .gameEditModal__body{
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#gameEditModal .gameEditModal__section{
  margin: 0 !important;
  padding: 8px 10px !important;
}

#gameEditModal .gameEditModal__intro{
  margin: 2px 0 6px;
  font-size: 13px;
  line-height: 1.4;
}

#gameEditModal .gameEditModal__params{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#gameEditModal .gameEditModal__params .field{
  margin: 0;
}

#gameEditModal .gameEditModal__params .field__label{
  margin-bottom: 3px;
  font-size: 12px;
}

#gameEditModal .gameEditModal__params .grid2{
  gap: 6px 10px;
}

#gameEditModal .gameEditModal__params .input,
#gameEditModal .gameEditModal__params select.input,
#gameEditModal .gameEditModal__params .ceMapIconPicker__trigger{
  min-height: 38px;
  height: 38px;
  padding-top: 7px;
  padding-bottom: 7px;
}

#gameEditModal .gameEditModal__paramsRow{
  margin: 0 !important;
}

#gameEditModal .gameEditModal__hint{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

#gameEditModal .placementBuilder{
  gap: 6px 8px;
  margin-top: 0;
}

#gameEditModal .placementBuilder__row{
  gap: 2px;
}

#gameEditModal .placementBuilder__label{
  font-size: 10.5px;
}

#gameEditModal .placementBuilder .placementInput{
  padding: 6px 8px;
  min-height: 36px;
  height: 36px;
}

#gameEditModal .gameEditModal__status{
  margin: 0;
}

#gameEditModal .ceResultsMatrixHost > .muted{
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.35;
}

#gameEditModal .ceResultsMatrixHost .hint--small{
  margin: 6px 0 0;
}

#gameEditModal .modal__card::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,35,50,.95) 0%, rgba(255,90,70,.45) 42%, rgba(96,165,250,.25) 100%);
  pointer-events: none;
  z-index: 0;
}

#gameEditModal .modal__header{
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 0;
}

#gameEditModal .modal__header,
#gameEditModal .modal__body{
  position: relative;
  z-index: 1;
}

#gameEditModal .modal__headerMain{
  flex: 1 1 180px;
  min-width: 0;
}

#gameEditModal .gameEditModal__actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

#gameEditModal .gameEditModal__actions .btn--small{
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

#gameEditModal .gameEditModal__customGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

#gameEditModal .gameEditModal__customGrid .field{
  margin: 0;
}

#gameEditModal .gameEditModal__customGrid .field__label{
  margin-bottom: 3px;
  font-size: 12px;
}

#gameEditModal #geCustomPanel > h3{
  margin-bottom: 4px;
}

#gameEditModal .gameEditModal__customSpan2{
  grid-column: 1 / -1;
}

#gameEditModal .gameEditModal__textarea{
  min-height: 48px;
  resize: vertical;
}

@media (max-width: 560px){
  #gameEditModal .gameEditModal__customGrid{
    grid-template-columns: 1fr;
  }
  #gameEditModal .gameEditModal__actions{
    width: 100%;
    justify-content: stretch;
  }
  #gameEditModal .gameEditModal__actions .btn--small{
    flex: 1 1 auto;
  }
  #gameEditModal #closeGameEditBtn{
    flex: 0 0 40px;
  }
}

#gameEditModal .modal__kicker{
  color: rgba(255,255,255,.52);
  letter-spacing: 0.07em;
}

#gameEditModal .modal__title{
  font-weight: 950;
  letter-spacing: -0.03em;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  margin-top: 0;
}

#gameEditModal #closeGameEditBtn{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.07) !important;
  color: rgba(255,255,255,.88) !important;
  line-height: 1 !important;
  font-size: 18px;
  font-weight: 900;
}

#gameEditModal #closeGameEditBtn:hover{
  border-color: rgba(255,45,55,.45) !important;
  background: rgba(255,45,55,.18) !important;
  color: #fff !important;
}

/* Panel-Inner Optik ruhiger (wie Katalog-Facts) */
#gameEditModal .panel--inner{
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  padding: 12px !important;
}

#gameEditModal .panel--inner h3{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
  margin-bottom: 6px;
}

/* Beschreibung kompakter (wie tplModal) */
#gameEditModal #geDesc{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  margin: 0;
  padding: 0;
}

/* Katalog-Parameter (tplMeta) */
#gameEditModal .tplMeta{
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}

#gameEditModal .tplMeta__item{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#gameEditModal .tplMeta__lab{
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
  margin-bottom: 2px;
}

#gameEditModal .tplMeta__val{
  font-size: 13px;
  font-weight: 650;
  color: rgba(255,255,255,.92);
  line-height: 1.35;
  word-break: break-word;
}

#gameEditModal .tplMeta__item--tags{
  grid-column: 1 / -1;
}

#gameEditModal .tplMetaTags{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#gameEditModal .tplMetaTag{
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

/* Regeln-Liste (wie tplModal .rules) */
#gameEditModal .rules{
  margin: 0;
  padding-left: 0;
  list-style: none;
}

#gameEditModal .rules li{
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.45;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,.10);
}

#gameEditModal .rules li:first-child{
  border-top: 0;
}

/* Compact spacing inside this specific modal */
#gameEditModal .modal__body{
  margin-top: 0;
}
#gameEditModal .u-mt-12{
  margin-top: 0 !important;
}
#gameEditModal .u-mt-6{
  margin-top: 4px !important;
}
#gameEditModal .grid2,
#gameEditModal .gameEditModal__paramsRow.grid2{
  gap: 6px 10px;
}

/* Parameter-Felder im Modal (Runden / Wertung / Typ / Modus / Icon) */
#gameEditModal .gameEditModal__params .field,
#gameEditModal .modal__body > .grid2 .field{
  margin: 0;
}
#gameEditModal .gameEditModal__params .input,
#gameEditModal .gameEditModal__params select.input,
#gameEditModal .modal__body > .grid2 .input,
#gameEditModal .modal__body > .grid2 select.input{
  min-height: 38px;
  height: 38px;
  padding-top: 7px;
  padding-bottom: 7px;
}

/* =========================
   CREATE MODE – schmaler, ruhiger (weniger dominant)
========================= */
body[data-ce-mode="create"] .appTopbar{
  min-height:56px;
  padding:10px 18px;
}
body[data-ce-mode="create"] .appTopbar__title{
  font-size:clamp(17px, 1.85vw, 22px);
  font-weight:700;
}
body[data-ce-mode="create"] .appTopbar__status{
  font-size:12.5px;
  opacity:.92;
}

body[data-ce-mode="create"] #tabGeneral #eventForm .input,
body[data-ce-mode="create"] #tabGeneral #eventForm textarea.input{
  border-radius:14px;
  padding:10px 14px;
  min-height:42px;
  font-size:14px;
  letter-spacing:-0.01em;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    inset 0 1px 2px rgba(0,0,0,.28),
    inset 0 -1px 0 rgba(255,255,255,.03);
}
body[data-ce-mode="create"] #tabGeneral #eventForm textarea.input{
  min-height:84px;
}
body[data-ce-mode="create"] #tabGeneral #eventForm select.input{
  border-radius:14px;
  padding:10px 36px 10px 14px;
  min-height:42px;
  font-size:14px;
  background-position:right 12px center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    inset 0 1px 2px rgba(0,0,0,.28),
    inset 0 -1px 0 rgba(255,255,255,.03);
}
body[data-ce-mode="create"] #tabGeneral #eventForm .input:focus,
body[data-ce-mode="create"] #tabGeneral #eventForm textarea.input:focus,
body[data-ce-mode="create"] #tabGeneral #eventForm select.input:focus{
  box-shadow:
    0 0 0 1px rgba(255,90,100,.38),
    0 0 0 3px rgba(255,30,45,.12),
    inset 0 1px 2px rgba(0,0,0,.22);
}

body[data-ce-mode="create"] .cePage #tabGeneral #eventForm .btn--primary{
  padding:11px 22px;
  font-size:14px;
  font-weight:600;
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,58,72,.88), rgba(200,36,52,.88)) !important;
  box-shadow:
    0 6px 20px rgba(255,30,45,.16),
    0 1px 0 rgba(255,255,255,.16) inset;
}
body[data-ce-mode="create"] .cePage #tabGeneral #eventForm #submitBtn.ceBannerUpload__submit{
  align-self:stretch;
  width:100%;
  min-width:0;
}
body[data-ce-mode="create"] .cePage #tabGeneral #eventForm .btn--primary:hover{
  box-shadow:
    0 10px 28px rgba(255,30,45,.22),
    0 1px 0 rgba(255,255,255,.2) inset;
}

body[data-ce-mode="create"] #tabGeneral #eventForm .field__label{
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.01em;
  color:rgba(255,255,255,.72);
}

body[data-ce-mode="create"] #tabGeneral .ceBannerUpload__rightTitle{
  font-size:clamp(14px, 1.35vw, 17px);
}
body[data-ce-mode="create"] #tabGeneral .ceBannerUpload__row--withAside{
  grid-template-columns:minmax(0,min(240px,38%)) minmax(0,1fr);
  gap:10px 14px;
}

body[data-ce-mode="create"] #tabGeneral > .ceSection.ceFormWrap{
  padding:6px 8px;
}
body[data-ce-mode="create"] #tabGeneral .ceGeneralStack{
  gap:18px;
  padding:6px 0 16px;
}

body[data-ce-mode="create"] #tabGeneral #ceKvCodes{
  padding:14px 16px;
  border-radius:16px;
  box-shadow:
    0 14px 40px rgba(0,0,0,.32),
    0 1px 0 rgba(255,255,255,.05) inset;
}

.eventLocationPicker{
  margin-top: 8px;
}

.eventLocationPicker__map{
  width: 100%;
  min-height: 340px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  box-shadow:
    0 18px 32px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.mapTheme--appleDark .leaflet-tile{
  filter: brightness(0.74) contrast(1.08) saturate(1.06);
}

.mapTheme--appleDark::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22,36,68,.46) 0%, rgba(10,22,46,.54) 100%),
    radial-gradient(120% 90% at 18% 72%, rgba(10,132,140,.18) 0%, rgba(10,132,140,0) 58%),
    radial-gradient(120% 80% at 82% 22%, rgba(72,94,166,.14) 0%, rgba(72,94,166,0) 60%);
  mix-blend-mode: multiply;
}

.mapTheme--appleDark::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(140% 110% at 50% -10%, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 56%),
    linear-gradient(180deg, rgba(8,12,20,.06) 0%, rgba(8,12,20,.18) 100%);
}

.mapTheme--appleDark .leaflet-control-zoom a{
  background: rgba(22, 26, 33, 0.86);
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.16);
}

.mapTheme--appleDark .ceMapCustomControls{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(12, 16, 24, .88);
  box-shadow: 0 10px 24px rgba(0,0,0,.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Eventkarte: Steuerleiste oben mittig (Leaflet position topleft + Flex-Zentrierung) */
#gameStationsMapCanvas .leaflet-top.leaflet-left{
  width: 100%;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  box-sizing: border-box;
  padding: 0 8px;
}
#gameStationsMapCanvas .leaflet-top.leaflet-left .leaflet-control{
  float: none !important;
  clear: none;
  margin: 10px 0 0 !important;
  pointer-events: auto;
}

.ceMapCustomControls__zoom{
  display: flex;
  align-items: center;
  gap: 7px;
}

.ceMapCustomControls__label{
  font-size: 10px;
  letter-spacing: .02em;
  color: rgba(255,255,255,.84);
}

.ceMapCustomControls__zoomSlider{
  width: 86px;
  margin: 0;
  accent-color: #d61f2b;
  cursor: pointer;
}

.ceMapCustomControls__pan{
  display: flex;
  align-items: center;
  gap: 4px;
}

.ceMapCustomControls__btn{
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  line-height: 1;
  width: 26px;
  height: 26px;
  padding: 0;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

.ceMapCustomControls__btn:hover{
  background: rgba(214,31,43,.18);
  border-color: rgba(214,31,43,.52);
}

.ceMapCustomControls__btn:active{
  transform: translateY(1px);
}

.ceMapCustomControls__btn.is-favicon{
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ceMapCustomControls__favicon{
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  pointer-events: none;
}

.ceMapCustomControls__recenter{
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 8px;
  cursor: pointer;
}

.ceMapCustomControls__recenter:hover{
  background: rgba(214,31,43,.18);
  border-color: rgba(214,31,43,.5);
}

.ceMapCustomControls__tour{
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  background: rgba(214,31,43,.18);
  color: rgba(255,255,255,.95);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
}

.ceMapCustomControls__tour:hover{
  background: rgba(214,31,43,.28);
  border-color: rgba(214,31,43,.58);
}

.ceMapCustomControls__tour:disabled{
  opacity: .75;
  cursor: progress;
}

/* Während der Tour: obere Steuerleiste ausblenden */
#gameStationsMapCanvas.mapTheme--tourActive .ceMapCustomControls{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

/* Tour: Ortsname wie auf einem Schild — zentral, vertikal im oberen Viertel (Anker ~12,5 %) */
.ceMapTourHeadline.ceMapTourHeadline--board{
  position: absolute;
  left: 50%;
  right: auto;
  top: max(32px, calc(12.5% + env(safe-area-inset-top, 0px)));
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 620;
  pointer-events: none;
  box-sizing: border-box;
  max-width: min(calc(100% - 28px), 480px);
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 16, 24, 0.88);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(13px, 1.35vw, 17px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

@media (max-width: 760px){
  .mapTheme--appleDark .ceMapCustomControls{
    gap: 7px;
    padding: 6px 7px;
  }
  .ceMapCustomControls__label{
    display: none;
  }
  .ceMapCustomControls__zoomSlider{
    width: 74px;
  }
  .ceMapCustomControls__recenter{
    padding: 6px 7px;
    font-size: 11px;
  }
  .ceMapCustomControls__tour{
    padding: 6px 8px;
    font-size: 11px;
  }
  .ceMapTourHeadline.ceMapTourHeadline--board{
    left: 50%;
    top: max(28px, calc(12.5% + env(safe-area-inset-top, 0px)));
    bottom: auto;
    transform: translate(-50%, -50%);
    max-width: min(calc(100% - 24px), 92vw);
    padding: 8px 12px;
    font-size: clamp(12px, 3.4vw, 15px);
    -webkit-line-clamp: 5;
  }
}

/* Leaflet Maßstabsleiste — Länge skaliert mit Zoom (m bzw. km, maßstabsgetreu) */
.mapTheme--appleDark .leaflet-control-scale{
  margin: 0 0 10px 12px !important;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.mapTheme--appleDark .leaflet-bottom.leaflet-left .leaflet-control-scale{
  z-index: 455;
}
.mapTheme--appleDark .leaflet-control-scale-line{
  margin-top: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.72) !important;
  border-top: none !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  padding: 3px 6px 2px !important;
  background: rgba(12, 16, 24, 0.82) !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Tour-Ende: Athlon-Logo kurz in den Vordergrund, dann normale Kartenansicht */
.ceMapTourEndSplash{
  position: absolute;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.34s ease;
}
.ceMapTourEndSplash.ceMapTourEndSplash--active{
  opacity: 1;
}
.ceMapTourEndSplash.ceMapTourEndSplash--out{
  opacity: 0;
  transition: opacity 0.42s ease;
}
.ceMapTourEndSplash__veil{
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(12, 16, 24, 0.18) 0%,
    rgba(12, 16, 24, 0.62) 58%,
    rgba(12, 16, 24, 0.82) 100%
  );
}
.ceMapTourEndSplash__pulse{
  position: relative;
  transform: scale(0.52);
  opacity: 0;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}
.ceMapTourEndSplash.ceMapTourEndSplash--active .ceMapTourEndSplash__pulse{
  animation: ceMapTourEndSplashLogo 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* Wortmarke „Athlon“ (weiß), kein quadratisches Favicon */
.ceMapTourEndSplash__logo{
  display: block;
  width: min(260px, 78vw);
  height: auto;
  max-height: min(72px, 16vh);
  object-fit: contain;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.55));
}
@keyframes ceMapTourEndSplashLogo{
  0%{ transform: scale(0.52); opacity: 0; }
  42%{ transform: scale(1.1); opacity: 1; }
  68%{ transform: scale(1); opacity: 1; }
  100%{ transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  .ceMapTourEndSplash.ceMapTourEndSplash--active .ceMapTourEndSplash__pulse{
    animation: none;
    transform: scale(1);
    opacity: 1;
  }
  .ceMapTourEndSplash{
    transition-duration: 0.15s;
  }
  .ceMapTourEndSplash.ceMapTourEndSplash--out{
    transition-duration: 0.2s;
  }
}

.mapTheme--appleDark .leaflet-control-attribution{
  background: rgba(12, 14, 18, 0.65);
  color: rgba(220,224,230,.72);
}

.mapTheme--appleDark .leaflet-tooltip.ceMapAthlonTooltip{
  margin-top: -4px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(214, 31, 43, 0.42);
  background: rgba(18, 20, 26, 0.94);
  color: rgba(248, 250, 252, 0.96);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  box-sizing: border-box;
  width: max-content !important;
  min-width: 2.75rem;
  max-width: min(320px, 92vw);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 14px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mapTheme--appleDark .leaflet-tooltip.ceMapAthlonTooltip .ceMapAthlonTooltip__text{
  display: block;
  max-width: 280px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.mapTheme--appleDark .leaflet-tooltip.ceMapAthlonTooltip.leaflet-tooltip-top::before{
  border-top-color: rgba(18, 20, 26, 0.94);
}

.mapTheme--appleDark .leaflet-tooltip.ceMapAthlonTooltip.leaflet-tooltip-bottom::before{
  border-bottom-color: rgba(18, 20, 26, 0.94);
}

.mapTheme--appleDark .leaflet-tooltip.ceMapAthlonTooltip.leaflet-tooltip-left::before{
  border-left-color: rgba(18, 20, 26, 0.94);
}

.mapTheme--appleDark .leaflet-tooltip.ceMapAthlonTooltip.leaflet-tooltip-right::before{
  border-right-color: rgba(18, 20, 26, 0.94);
}

/* Grundstücks-/Großflächen-Beschriftung (keine Gebäude); schwarz, zentriert */
.leaflet-marker-icon.ceMapAreaNameLabelIcon{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.ceMapAreaNameLabelWrap{
  pointer-events: none;
  box-sizing: border-box;
}
.ceMapAreaNameLabel{
  display: block;
  text-align: center;
  transform-origin: center center;
  pointer-events: none;
  line-height: 1.12;
}
.mapTheme--appleDark .ceMapAreaNameLabelWrap--parcel .ceMapAreaNameLabel__inner{
  display: inline-block;
  margin: 0 auto;
  padding: 2px 6px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0a0a0a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 1),
    0 0 10px rgba(255, 255, 255, 0.92),
    0 0 18px rgba(255, 255, 255, 0.7);
}

.eventLocationFaviconImage{
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.32));
}

#gameEditModal .ceMapIconPicker__trigger,
#gameStationsMapModal .ceMapIconPicker__trigger{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

#gameEditModal .ceMapIconPicker__triggerIcon,
#gameStationsMapModal .ceMapIconPicker__triggerIcon{
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(214, 31, 43, .55);
  background: rgba(214, 31, 43, .12);
  color: #d61f2b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}

#gameEditModal .ceMapIconPicker__triggerLabel,
#gameStationsMapModal .ceMapIconPicker__triggerLabel{
  font-size: 14px;
  color: rgba(255,255,255,.88);
}

#gameEditModal .ceMapIconPicker,
#gameStationsMapModal .ceMapIconPicker{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(11,15,20,.94);
  box-shadow: 0 16px 30px rgba(0,0,0,.35);
  padding: 10px;
}

#gameEditModal .ceMapIconPicker__grid,
#gameStationsMapModal .ceMapIconPicker__grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

#gameEditModal .ceMapIconPicker__item,
#gameStationsMapModal .ceMapIconPicker__item{
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(214, 31, 43, .26);
  background: rgba(214, 31, 43, .06);
  color: #d61f2b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

#gameEditModal .ceMapIconPicker__item:hover,
#gameStationsMapModal .ceMapIconPicker__item:hover{
  border-color: rgba(214, 31, 43, .55);
  background: rgba(214, 31, 43, .12);
  transform: translateY(-1px);
}

#gameEditModal .ceMapIconPicker__item.is-active,
#gameStationsMapModal .ceMapIconPicker__item.is-active{
  border-color: rgba(214, 31, 43, .95);
  background: rgba(214, 31, 43, .2);
  box-shadow: 0 0 0 1px rgba(214, 31, 43, .35) inset;
}

#gameStationsMapModal .ceMapStationIndexIcon{
  background: transparent;
  border: 0;
}

#gameStationsMapModal .ceMapStationIndexBadge{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(214, 31, 43, .96);
  background: rgba(214, 31, 43, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 14px rgba(0,0,0,.26);
}

#gameStationsMapModal .ceMapStationIndexBadge::before{
  content: none !important;
  display: none !important;
}

#gameStationsMapModal .ceMapEventFaviconImage{
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.32));
}

#tabEventMap #gameStationsMapModal .modal__card{
  width: 100%;
  max-width: none;
  max-height: none;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
#tabEventMap #gameStationsMapModal .gameStationsMapLayout{
  /* Hält Footer sichtbar und verhindert Seiten-Scrollen */
  height: clamp(340px, calc(100dvh - 320px), 620px);
  max-height: calc(100dvh - 320px);
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 0.78fr);
  grid-template-areas:
    "map side"
    "tools addPlace";
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
}
#tabEventMap #gameStationsMapModal .gameStationsMapLayout__mapCol{
  grid-area: map;
  align-self: stretch;
  min-height: 0;
}
#tabEventMap #gameStationsMapModal .gameStationsMapLayout__gamesCol{
  grid-area: side;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  row-gap: 10px;
  min-height: 0;
  align-self: stretch;
}
#tabEventMap #gameStationsMapModal .ceEventMapBottomTools{
  grid-area: tools;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
  min-width: 0;
}
#tabEventMap #gameStationsMapModal .ceEventMapAddPlaceBtnWrap{
  grid-area: addPlace;
  margin-top: 0;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
#tabEventMap #gameStationsMapModal .ceEventMapAddPlaceBtnWrap .btn{
  width: 100%;
}
#tabEventMap #gameStationsMapModal .gameStationsMapLayout__mapCol .eventLocationPicker{
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#tabEventMap #gameStationsMapModal .gameStationsMapLayout__mapCol .eventLocationPicker__map,
#tabEventMap #gameStationsMapModal .gameStationsMapLayout__mapCol #gameStationsMapCanvas{
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
}
#tabEventMap #gameStationsMapModal .gameStationsMapGamesList{
  min-height: 0;
  height: 100%;
  overflow: auto;
}

#gameStationsMapModal .modal__card{
  width: min(1180px, 96vw);
  max-height: 90vh;
}

#gameStationsMapModal .gameStationsMapModal__body{
  min-height: 0;
}

#gameStationsMapModal .gameStationsMapLayout{
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 0.78fr);
  gap: 12px;
  min-height: 0;
  align-items: stretch;
}

#gameStationsMapModal .gameStationsMapLayout__mapCol{
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#gameStationsMapModal .gameStationsMapLayout__mapCol .eventLocationPicker{
  margin-top: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
}

#gameStationsMapModal #gameStationsMapHint{
  margin: 0;
}

#gameStationsMapModal #gameStationsMapCanvas{
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
}

#gameStationsMapModal .gameStationsMapLayout__gamesCol{
  min-height: 0;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}
#tabPlacesZones .gameStationsMapLayout__gamesCol{
  min-height: 0;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
}

#gameStationsMapModal .gameStationsMapLayout__gamesTitle{
  margin: 0 0 10px;
  font-size: 14px;
}
#tabEventMap #gameStationsMapModal .gameStationsMapLayout__gamesTitle{
  margin: 0;
}
#tabPlacesZones .gameStationsMapLayout__gamesTitle{
  margin: 0 0 10px;
  font-size: 14px;
}

.ceMapSidebarNotice{
  margin: 2px 0 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  display: block;
  color: rgba(255, 209, 213, .92);
}
#tabEventMap #gameStationsMapModal .ceMapSidebarNotice{
  margin: 0;
}

.ceMapCategorySelectWrap{
  display: block;
}

.ceMapCategorySelect{
  width: 100%;
  min-height: 34px;
  padding: 7px 34px 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.ceMapCategorySelect:focus{
  border-color: rgba(214,31,43,.62);
  box-shadow: 0 0 0 3px rgba(214,31,43,.16);
}

.ceMapToolsRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ceEventMapAddPlaceBtnWrap{
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

#placesZonesModal .placesZonesModal__card{
  width: min(1080px, 95vw);
  max-height: 90vh;
  background: rgba(10,14,22,.94);
  border-color: rgba(255,255,255,.16);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#placesZonesModal{
  background: rgba(3,6,12,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#placesZonesModal.placesZonesModal--formOnly .ceMapCategorySelectWrap,
#placesZonesModal.placesZonesModal--formOnly .ceMapToolsRow,
#placesZonesModal.placesZonesModal--formOnly #mapItemsList{
  display: none !important;
}

.ceMapItemForm{
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.ceMapItemForm .field{
  margin: 0;
}

.ceMapItemForm input[type="color"].input,
.ceMapItemForm #mapItemAreaColorInput{
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.22);
  cursor: pointer;
}
.ceMapItemForm input[type="color"].input::-webkit-color-swatch-wrapper{
  padding: 2px;
}
.ceMapItemForm input[type="color"].input::-webkit-color-swatch{
  border-radius: 6px;
  border: 0;
}
.ceMapItemForm input[type="color"].input::-moz-color-swatch{
  border-radius: 6px;
  border: 0;
}

.ceAddressSuggestList{
  margin-top: 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(7,11,18,.96);
  max-height: 180px;
  overflow: auto;
  display: grid;
  gap: 1px;
}

.ceAddressSuggestList__item{
  width: 100%;
  text-align: left;
  border: 0;
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.9);
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
}

.ceAddressSuggestList__item:hover{
  background: rgba(214,31,43,.15);
}

.ceMapItemForm__coords{
  font-size: 12px;
  color: rgba(255,255,255,.74);
  padding: 2px 2px 0;
}

.ceMapItemListIcon{
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(214,31,43,.92);
  box-shadow: 0 6px 14px rgba(0,0,0,.24);
}

.ceMapItemListIcon svg{
  width: 14px;
  height: 14px;
}

.ceMapItemListIcon--food{
  background: rgba(214,31,43,.92);
}

.ceMapItemListIcon--service{
  background: rgba(97,131,191,.9);
}

.ceMapItemListIcon--zone{
  background: rgba(182,77,188,.9);
}

.ceMapItemListIcon--waypoint{
  background: rgba(116,148,161,.9);
}

.ceMapItemEditBtn{
  justify-self: end;
  align-self: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  padding: 5px 8px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.ceMapItemEditBtn:hover{
  border-color: rgba(214,31,43,.58);
  background: rgba(214,31,43,.14);
}

.ceMapItemPlaceChoiceRow{
  margin-top: 4px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ceMapItemPlaceChoiceBtn{
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  border-radius: 7px;
  padding: 3px 7px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.ceMapItemPlaceChoiceBtn:hover{
  border-color: rgba(214,31,43,.58);
  background: rgba(214,31,43,.14);
}

.ceMapItemPlaceChoiceBtn.is-active{
  border-color: rgba(214,31,43,.82);
  background: rgba(214,31,43,.24);
  color: #fff;
}

.ceMapItemPlaceChoiceBtn.is-disabled{
  opacity: .58;
  cursor: not-allowed;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
}

.ceMapItemDeleteBtn{
  border-color: rgba(214,31,43,.62);
  color: rgba(255,192,196,.96);
  background: rgba(214,31,43,.12);
}

.ceMapItemDeleteBtn:hover{
  border-color: rgba(214,31,43,.9);
  background: rgba(214,31,43,.2);
}

#tabEventMap #gameStationsMapModal .ceEventMapAreaTools{
  margin-top: 0;
  flex: 0 0 auto;
}

.ceEventMapAreaTools__buttons{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ceEventMapAreaTools .btn.is-active{
  border-color: rgba(214,31,43,.86);
  color: #fff;
  background: rgba(214,31,43,.24);
}

.ceEventMapAreaTools__hint{
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,.68);
  line-height: 1.35;
}

.ceMapItemMarker{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.leaflet-div-icon.ceMapItemMarker{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ceMapItemMarker__glyph{
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #d61f2b;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}

.ceMapItemMarker__glyph svg{
  width: 30px;
  height: 30px;
  display: block;
  stroke: currentColor;
  fill: none;
}

.ceMapItemMarker__num{
  font-size: 16px;
  font-weight: 900;
  color: #d61f2b;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.ceMapItemMarker--service .ceMapItemMarker__glyph,
.ceMapItemMarker--zone .ceMapItemMarker__glyph,
.ceMapItemMarker--waypoint .ceMapItemMarker__glyph{
  color: #d61f2b;
}

#tabPlacesZones .gameStationsMapLayout{
  grid-template-columns: 1fr;
}

#tabPlacesZones .gameStationsMapLayout__mapCol{
  display: none;
}

#tabPlacesZones .gameStationsMapLayout__gamesCol{
  grid-column: 1 / -1;
}

#gameStationsMapModal .gameStationsMapGamesList{
  min-height: 0;
  max-height: 100%;
  height: auto;
  flex: 1 1 auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding-top: 4px;
  padding-right: 4px;
}
#tabPlacesZones .gameStationsMapGamesList{
  min-height: 0;
  max-height: 100%;
  height: auto;
  flex: 1 1 auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding-top: 4px;
  padding-right: 4px;
}

#gameStationsMapModal .gameStationsMapGamesList__item{
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}
#tabPlacesZones .gameStationsMapGamesList__item{
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

#gameStationsMapModal .gameStationsMapGamesList__item:hover{
  border-color: rgba(214,31,43,.45);
  background: rgba(214,31,43,.1);
}
#tabPlacesZones .gameStationsMapGamesList__item:hover{
  border-color: rgba(214,31,43,.45);
  background: rgba(214,31,43,.1);
}

#gameStationsMapModal .gameStationsMapGamesList__item.is-active{
  border-color: rgba(214,31,43,.92);
  background: rgba(214,31,43,.16);
}
#tabPlacesZones .gameStationsMapGamesList__item.is-active{
  border-color: rgba(214,31,43,.92);
  background: rgba(214,31,43,.16);
}

#gameStationsMapModal .gameStationsMapGamesList__title{
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
#tabPlacesZones .gameStationsMapGamesList__title{
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

#gameStationsMapModal .gameStationsMapGamesList__text{
  display: grid;
  gap: 4px;
  min-width: 0;
}
#tabPlacesZones .gameStationsMapGamesList__text{
  display: grid;
  gap: 4px;
  min-width: 0;
}

#gameStationsMapModal .gameStationsMapGamesList__idx{
  width: 24px;
  height: 24px;
}
#tabPlacesZones .gameStationsMapGamesList__idx{
  width: 24px;
  height: 24px;
}

#gameStationsMapModal .gameStationsMapGamesList__meta{
  font-size: 11px;
  color: rgba(255,255,255,.68);
}
#tabPlacesZones .gameStationsMapGamesList__meta{
  font-size: 11px;
  color: rgba(255,255,255,.68);
}

#gameStationsMapModal .gameStationsMapGamesList__empty{
  margin: 0;
}
#tabPlacesZones .gameStationsMapGamesList__empty{
  margin: 0;
}

@media (max-width: 960px){
  #tabEventMap #gameStationsMapModal .gameStationsMapLayout{
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-areas:
      "map"
      "tools"
      "addPlace"
      "side";
    grid-template-rows: auto auto auto auto;
  }
  #tabEventMap #gameStationsMapModal .ceEventMapBottomTools{
    padding-top: 8px;
  }
  #tabEventMap #gameStationsMapModal .ceEventMapAddPlaceBtnWrap{
    padding-top: 0;
  }
  #tabEventMap #gameStationsMapModal .ceEventMapAddPlaceBtnWrap .btn{
    width: 100%;
  }
  #gameStationsMapModal .gameStationsMapLayout{
    grid-template-columns: 1fr;
  }

  #gameStationsMapModal #gameStationsMapCanvas{
    min-height: 52vh;
  }
  #tabEventMap #gameStationsMapModal .gameStationsMapLayout__mapCol #gameStationsMapCanvas{
    min-height: 52vh !important;
    height: 52vh !important;
  }
  #tabEventMap #gameStationsMapModal .gameStationsMapLayout__mapCol .eventLocationPicker__map{
    height: auto;
    min-height: 52vh;
    max-height: none;
  }

  #gameStationsMapModal .gameStationsMapGamesList{
    max-height: 34vh;
  }
}

/* Gruppenphase-Tab (Turnier bearbeiten) */
.ceGpShell{
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.ceGpSeg{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  position: relative;
  z-index: 4;
  flex-shrink: 0;
}
.ceGpSeg__btn{
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ui-text-muted, rgba(255, 255, 255, 0.65));
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.ceGpSeg__label--short{
  display: none;
}
.ceGpSeg__btn.is-active{
  background: rgba(255, 42, 69, 0.16);
  border-color: rgba(255, 42, 69, 0.55);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.ceGpSeg__btn:hover:not(.is-active){
  border-color: rgba(255, 42, 69, 0.35);
  color: rgba(255, 255, 255, 0.88);
}
.ceGpKv{
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
}
.ceGpKv__row{
  display: grid;
  grid-template-columns: minmax(140px, 38%) 1fr;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ceGpKv__row:last-child{
  border-bottom: none;
}
.ceGpKv__row dt{
  margin: 0;
  font-weight: 600;
  color: var(--ui-text-muted, rgba(255,255,255,.65));
}
.ceGpKv__row dd{
  margin: 0;
}
.ceGpShell > .ceGpPane--settings:not([hidden]),
.ceGpShell > .ceGpPane--overview:not([hidden]),
.ceGpShell > .ceGpPane--results:not([hidden]),
.ceGpShell > .ceGpPane--edit:not([hidden]),
.ceGpShell > .ceGpPane--placeholder:not([hidden]){
  flex: 1 1 auto;
  min-height: 0;
}
.ceGpPane--settings:not([hidden]),
.ceGpPane--overview:not([hidden]),
.ceGpPane--edit:not([hidden]),
.ceGpPane--placeholder:not([hidden]){
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ceGpPane--results:not([hidden]){
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cePhaseEmpty{
  padding: 22px 18px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.cePhaseEmpty__text{
  margin: 0;
  color: var(--ui-text-muted, rgba(255,255,255,.65));
  line-height: 1.55;
  font-size: 14px;
}
.ceGpFilters{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 8px;
  background: transparent;
}
.ceGpFilters__field{
  min-width: 0;
}
@media (max-width: 900px){
  .ceGpFilters{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-bottom: 6px;
  }

  .ceGpFilters__field .field__label{
    font-size: 10px;
    margin-bottom: 2px;
  }

  .ceGpFilters__field .input{
    padding: 7px 6px;
    font-size: 12px;
  }
}
.ceGpMatchList{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.ceGpMatchRow{
  position: relative;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 10px 12px 8px;
  background: rgba(255,255,255,.02);
}
.ceGpMatchRow--done{
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.12);
}
.ceGpMatchRow--error{
  border-color: rgba(220, 38, 38, .55);
}
.ceGpMatchRow--locked{
  opacity: 0.92;
}
.ceGpMatchRow__blockHint{
  margin: 0 0 8px;
  font-size: 12px;
}
.ceGpMatchRow__doneBadge{
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399;
  line-height: 0;
  pointer-events: none;
}
/* app.css injiziert sonst Athlon-Favicon in [class*="Badge"]::before */
.ceGpMatchRow__doneBadge::before{
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
}
.ceGpMatchRow__doneIcon{
  display: block;
  flex-shrink: 0;
}

@media (max-width: 900px){
  .ceGpMatchRow__doneBadge{
    top: auto;
    bottom: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
  }

  .ceGpMatchRow--done{
    padding-bottom: 12px;
  }
}
.ceGpMatchRow__center{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
}
.ceGpMatchRow__meta{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--ui-text-muted, rgba(255,255,255,.6));
  max-width: 100%;
  line-height: 1.35;
}
.ceGpMatchRow__meta > span:not(:last-child)::after{
  content: "·";
  margin-left: 10px;
  opacity: .55;
}
.ceGpMatchRow__group{
  font-weight: 700;
  color: rgba(255,255,255,.85);
}
.ceGpMatchRow__resultLine{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  width: 100%;
  max-width: 640px;
}
.ceGpMatchRow__side{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ceGpMatchRow__side--a{
  grid-column: 1;
  justify-content: flex-end;
}
.ceGpMatchRow__side--b{
  grid-column: 3;
  justify-content: flex-start;
}
.ceGpMatchRow__side--a .ceGpMatchRow__team{
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
}
.ceGpMatchRow__side--b .ceGpMatchRow__team{
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
}
.ceGpMatchRow__team{
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ceGpMatchRow__mark{
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.ceGpMatchRow__mark--initials{
  background: rgba(220, 38, 38, .18);
  border: 1px solid rgba(255, 42, 69, .35);
}
.ceGpMatchRow__initials{
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
}
.ceGpMatchRow__mark--asset{
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255,255,255,.12);
}
.ceGpMatchRow__logoImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ceGpMatchRow__scores{
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}
.ceGpMatchRow__score{
  width: 3rem;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}
.ceGpMatchRow__colon{
  font-weight: 700;
  opacity: .85;
}
.ceGpMatchRow__actions{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: auto;
  margin: 0 auto;
  padding-top: 2px;
}
.ceGpMatchRow__actions .btn{
  margin: 0;
}
.ceGpMatchRow__feedback{
  font-size: 11px;
  line-height: 1.2;
  min-height: 0;
}
.ceGpMatchRow__feedback:empty{
  display: none;
}

/* Turnier-Teams-Tab (Bearbeiten) */
.ceTmTeamsShell{
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  flex: 1 1 auto;
}
.ceTmTeamsFilters__row{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex-shrink: 0;
}
.ceTmTeamsList{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.listItem.listItem--ceTmTeam{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.listItem--ceTmTeam .listItem__title{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.listItem--ceTmTeam .listItem__sub{
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}
.ceTmTeamThumb{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.ceTmTeamThumb__img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.ceTmTeamThumb__ph{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.ceTmTeamMetaRow{
  margin-top: 2px;
}
.ceTmTeamMeta{
  font-size: 12px;
}
.ceTmTeamEditModal__body{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ceTmTeamEditModal__logoRow{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ceTmTeamEditModal__logoPreview{
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.ceTmTeamEditModal__logoImg{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ceTmTeamEditModal__logoPh{
  font-size: 22px;
  font-weight: 800;
  color: rgba(255,255,255,.5);
}
.ceTmTeamEditModal__logoActions{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.ceTmTeamEditModal__logoHint{
  font-size: 12px;
}
.ceTmTeamEditModal__logoErr{
  color: #ffb4c0 !important;
}
.ceTmTeamEditModal__textarea{
  min-height: 72px;
  resize: vertical;
}
.ceTmTeamEditModal__actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px){
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentTeams{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentTeams .ceTmTeamsShell{
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  body[data-ce-mode="edit"]:has(.appShell) #tabTournamentTeams .ceTmTeamsList{
    flex: 1 1 auto;
    min-height: 0;
  }
  .listItem.listItem--ceTmTeam{
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .listItem--ceTmTeam .listItem__right{
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 4px;
  }
}

/* ---- Overlay-Farbwähler ---- */

.ceOverlayColorField {
  margin-top: 0.75rem;
}

.ceOverlaySwatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.ceOverlaySwatch {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  outline-offset: 2px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ceOverlaySwatch:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.ceOverlaySwatch--active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.ceOverlaySwatch--custom {
  position: relative;
  overflow: hidden;
  background: conic-gradient(
    hsl(0, 80%, 55%),
    hsl(60, 80%, 55%),
    hsl(120, 80%, 55%),
    hsl(180, 80%, 55%),
    hsl(240, 80%, 55%),
    hsl(300, 80%, 55%),
    hsl(360, 80%, 55%)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.ceOverlaySwatch--custom input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}

.ceOverlaySaveBtn {
  align-self: center;
}

.ceOverlayHint {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 0.75rem;
}

.ceBracketOverlayColorsField {
  margin-top: 0.75rem;
}

.ceBracketOverlayRow {
  margin-bottom: 0.85rem;
}

.ceBracketOverlayRow__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ceMuted);
  margin-bottom: 0.35rem;
}

.ceBracketOverlayRow__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.ceBracketOverlayResetBtn {
  margin-left: 0.15rem;
  font-size: 0.72rem;
}

.ceBracketOverlaySaveBtn {
  align-self: flex-start;
}

.ceBracketOverlayHint {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 0.75rem;
}

.event-setup-tournament .twBracketOverlayColorsField {
  margin-top: 0.75rem;
}

.event-setup-tournament .ceBracketOverlayRow__label,
.setupWizardPage .ceBracketOverlayRow__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ui-text-muted, rgba(255, 255, 255, 0.65));
  margin-bottom: 0.35rem;
}

.setupWizardPage .twBracketOverlayRows .ceBracketOverlayRow {
  margin-bottom: 0.85rem;
}
