MediaWiki:Common.css: Difference between revisions

From CKRAS Wiki

No edit summary
No edit summary
Line 2: Line 2:
   CKRAS WIKI — GLOBAL SIDEBAR + MAIN PAGE + SUBPAGE UI KIT
   CKRAS WIKI — GLOBAL SIDEBAR + MAIN PAGE + SUBPAGE UI KIT
   Skin: Medik (responsive)
   Skin: Medik (responsive)
  GOAL:
  - Main Page bleibt clean wie vorher (OHNE dunklen Hero/Box)
  - Subpages bekommen optional eigenes Design via .ck-page Wrapper
  - Keine “double underline”, dezent & minimal
  - Tabellen im CKRAS CI (hellblau, soft borders)
   ========================================================= */
   ========================================================= */


/* =========================================================
/* =========================================================
Line 8: Line 14:
   ========================================================= */
   ========================================================= */


/* Sidebar Headlines */
#mw-panel .portal h3 {
#mw-panel .portal h3 {
   font-size: 0.85em;
   font-size: 0.85em;
Line 18: Line 25:
}
}


/* Link Styling & Icon Alignment */
#mw-panel .portal .body ul li {
#mw-panel .portal .body ul li {
   list-style: none !important;
   list-style: none !important;
Line 37: Line 45:
}
}


/* Icon Setup */
#mw-panel .portal .body ul li a::before {
#mw-panel .portal .body ul li a::before {
   margin-right: 12px;
   margin-right: 12px;
Line 48: Line 57:
#n-mainpage a::before, #n-Home a::before { content: "🏠"; }
#n-mainpage a::before, #n-Home a::before { content: "🏠"; }
#n-recentchanges a::before, #n-Recent-changes a::before { content: "⏱️"; }
#n-recentchanges a::before, #n-Recent-changes a::before { content: "⏱️"; }
/* GUIDE ICONS */
#n-Counterstrike-2 a::before { content: "🔫"; }
#n-Counterstrike-2 a::before { content: "🔫"; }
#n-MatchZy a::before { content: "🎮"; }
#n-MatchZy a::before { content: "🎮"; }
Line 53: Line 64:
#n-CKRAS-BOT a::before { content: "🤖"; }
#n-CKRAS-BOT a::before { content: "🤖"; }
#n-Gameserver-Token a::before { content: "🔑"; }
#n-Gameserver-Token a::before { content: "🔑"; }
/* PRODUCT ICONS */
#n-Gameserver a::before { content: "🎮"; }
#n-Gameserver a::before { content: "🎮"; }
#n-Teamspeak a::before { content: "🎤"; }
#n-Teamspeak a::before { content: "🎤"; }
#n-TV-Server a::before { content: "📺"; }
#n-TV-Server a::before { content: "📺"; }
/* EXTERNAL & LANGUAGE ICONS */
#mw-panel a[href*="ckras.com/en/"]::before { content: "🌐"; }
#mw-panel a[href*="ckras.com/en/"]::before { content: "🌐"; }
#mw-panel a[href*="play.ckras.com"]::before { content: "☁️"; }
#mw-panel a[href*="play.ckras.com"]::before { content: "☁️"; }
#mw-panel a[href*="iface.ckras.com"]::before { content: "🧩"; }
#mw-panel a[href*="iface.ckras.com"]::before { content: "🧩"; }
#mw-panel a[href*="wiki.ckras.com"]::before { content: "🇩🇪"; }
#mw-panel a[href*="wiki.ckras.com"]::before { content: "🇩🇪"; }




Line 68: Line 84:
.page-Main_Page #toc { display:none; }
.page-Main_Page #toc { display:none; }


/* Layout */
.page-Main_Page .mw-body-content{
.page-Main_Page .mw-body-content{
   max-width: 1700px;
   max-width: 1700px;
Line 90: Line 107:
}
}


/* Main page links subtle (single underline only) */
.page-Main_Page .ck-hero a{
.page-Main_Page .ck-hero a{
   color:#0F172A !important;
   color:#0F172A !important;
Line 101: Line 119:
}
}


/* SECTION */
.page-Main_Page .ck-section-title{
.page-Main_Page .ck-section-title{
   font-size:13px;
   font-size:13px;
Line 128: Line 147:
}
}


/* LEFT */
.page-Main_Page .ck-card-left{ flex:1; }
.page-Main_Page .ck-card-left{ flex:1; }
.page-Main_Page .ck-card-top{
.page-Main_Page .ck-card-top{
Line 136: Line 156:
.page-Main_Page .ck-text{ flex:1; }
.page-Main_Page .ck-text{ flex:1; }


/* REMOVE MEDIAWIKI IMAGE WRAPPERS */
.page-Main_Page .ck-icoimg .thumb,
.page-Main_Page .ck-icoimg .thumb,
.page-Main_Page .ck-icoimg .thumbinner,
.page-Main_Page .ck-icoimg .thumbinner,
Line 149: Line 170:
}
}


/* STARTSEITE ICON CONTAINER - Kleiner & Fein */
/* ICON CONTAINER */
.page-Main_Page .ck-icoimg{
.page-Main_Page .ck-icoimg{
   width: 56px;  
   width:64px;
   height: 56px;
   height:64px;
   border-radius: 16px;
   border-radius:20px;
   background: #F8FAFC;
   background:#F8FAFC;
   border: 1px solid #E2E8F0;
   border:1px solid #E2E8F0;
   display: flex;
   display:flex;
   align-items: center;
   align-items:center;
   justify-content: center;
   justify-content:center;
   overflow: hidden;
   overflow:hidden;
   flex-shrink: 0;
   flex-shrink:0;
  padding: 8px; /* Abstand im Icon-Container */
  box-sizing: border-box;
}
}


.page-Main_Page .ck-icoimg a{
.page-Main_Page .ck-icoimg a{
   display:flex; align-items:center; justify-content:center;
   display:flex;
   width:100%; height:100%; text-decoration:none !important;
  align-items:center;
  justify-content:center;
   width:100%;
  height:100%;
  text-decoration:none !important;
  border-bottom: none !important;
}
}


/* Icon Bild verkleinert */
.page-Main_Page .ck-icoimg img{
.page-Main_Page .ck-icoimg img{
   width: 36px !important;
   width:50px !important;
   height: 36px !important;
   height:50px !important;
   object-fit: contain !important;
   object-fit:contain !important;
   display: block !important;
   display:block !important;
}
}


/* TEXT (kill Medik borders) */
.page-Main_Page .ck-card h2{
.page-Main_Page .ck-card h2{
   margin:0 0 6px !important; padding:0 !important;
   margin:0 0 6px !important;
   font-size:17px; font-weight:700; letter-spacing:-0.2px;
  padding:0 !important;
   color:#0F172A; border:0 !important; border-bottom:0 !important;
   font-size:17px;
  font-weight:700;
  letter-spacing:-0.2px;
   color:#0F172A;
  border:0 !important;
  border-bottom:0 !important;
   background:none !important;
   background:none !important;
}
}
.page-Main_Page .ck-card h2:after, .page-Main_Page .ck-card h2:before{ content:none !important; }
.page-Main_Page .ck-card h2:after,
.page-Main_Page .ck-card h2:before{
  content:none !important;
}


.page-Main_Page .ck-card h2 a{ text-decoration:none !important; color:#0F172A !important; }
.page-Main_Page .ck-card h2 a{
.page-Main_Page .ck-card h2 a:hover{ color:#0B65E9 !important; }
  text-decoration:none !important;
  color:#0F172A !important;
}
.page-Main_Page .ck-card h2 a:hover{
  color:#0B65E9 !important;
}


.page-Main_Page .ck-card p{ margin:0; font-size:13.5px; color:#64748B; line-height:1.55; }
.page-Main_Page .ck-card p{
  margin:0;
  font-size:13.5px;
  color:#64748B;
  line-height:1.55;
}


.page-Main_Page .ck-meta{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }
/* META CHIPS */
.page-Main_Page .ck-meta{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}


.page-Main_Page .ck-meta a{
.page-Main_Page .ck-meta a{
   display:inline-flex; align-items:center; padding:8px 14px;
   display:inline-flex;
   border-radius:16px; background:#F1F5F9; border:1px solid #E2E8F0;
  align-items:center;
   font-size:12.5px; font-weight:700; color:#0B65E9 !important;
  padding:8px 14px;
   border-radius:16px;
  background:#F1F5F9;
  border:1px solid #E2E8F0;
   font-size:12.5px;
  font-weight:700;
  color:#0B65E9 !important;
   text-decoration:none !important;
   text-decoration:none !important;
  border-bottom: none !important; /* Fix gegen Unterstrich */
}
.page-Main_Page .ck-meta a:hover{
  background:#EAF2FF !important;
  border-bottom: none !important; /* Fix gegen Unterstrich */
}
}
.page-Main_Page .ck-meta a:hover{ background:#EAF2FF; }
/* STARTSEITE CTA BUTTONS (Hover-Fix weiße Schrift & kein Unterstrich) */
.page-Main_Page .ck-card-right{ width:220px; flex-shrink:0; display:flex; justify-content:flex-end; }


/* CTA BUTTONS */
.page-Main_Page .ck-card-right{
  width:220px;
  flex-shrink:0;
  display:flex;
  justify-content:flex-end;
}
.page-Main_Page .ck-card-right a{
.page-Main_Page .ck-card-right a{
   width:220px; height:48px; display:flex; align-items:center; justify-content:center;
   width:220px;
   border-radius:16px; background:#0B65E9; color:#FFFFFF !important;
  height:48px;
   font-size:14px; font-weight:700; text-decoration:none !important; transition:.18s ease;
  display:flex;
   border-bottom: none !important;
  align-items:center;
  justify-content:center;
   border-radius:16px;
  background:#0B65E9;
  color:#FFFFFF !important;
   font-size:14px;
  font-weight:700;
  text-decoration:none !important;
  transition:.18s ease;
   border-bottom: none !important; /* Fix gegen Unterstrich */
}
}
.page-Main_Page .ck-card-right a:hover{
.page-Main_Page .ck-card-right a:hover{
   background: #094DB6 !important;
   background:#094DB6 !important;
   color: #FFFFFF !important; /* Fix für weiße Schrift */
   color:#FFFFFF !important; /* FIX: Weiße Schrift beim Hover erzwingen */
   border-bottom: none !important; /* Fix gegen Unterstrich */
   border-bottom: none !important; /* Fix gegen Unterstrich */
   transform: translateY(-1px);
   transform:translateY(-1px);
}
}


/* PLAY */
/* PLAY */
.page-Main_Page .ck-play{
.page-Main_Page .ck-play{
   margin:40px 0 24px; padding:36px 32px; border-radius:22px;
   margin:40px 0 24px;
   background:#0F172A; color:#FFFFFF; text-align:center;
  padding:36px 32px;
  border-radius:22px;
   background:#0F172A;
  color:#FFFFFF;
  text-align:center;
   border:1px solid rgba(255,255,255,.06);
   border:1px solid rgba(255,255,255,.06);
}
}
.page-Main_Page .ck-play *{ background: transparent !important; box-shadow: none !important; }
.page-Main_Page .ck-play *{
.page-Main_Page .ck-play h3{ margin:0 0 10px; font-size:17px; font-weight:800; color:#FFFFFF; }
  background: transparent !important;
.page-Main_Page .ck-play p{ margin:0 auto 22px; font-size:13.5px; opacity:.85; line-height:1.6; max-width:720px; color:#E2E8F0; }
  box-shadow: none !important;
}
 
.page-Main_Page .ck-play h3{
  margin:0 0 10px;
  font-size:17px;
  font-weight:800;
  color:#FFFFFF;
}
.page-Main_Page .ck-play p{
  margin:0 auto 22px;
  font-size:13.5px;
  opacity:.85;
  line-height:1.6;
  max-width:720px;
  color:#E2E8F0;
}
.page-Main_Page .ck-play-btn{ display:inline-block; }
.page-Main_Page .ck-play-btn{ display:inline-block; }
.page-Main_Page .ck-play-btn a{
.page-Main_Page .ck-play-btn a{
   width:220px; height:48px; display:inline-flex; align-items:center; justify-content:center;
   width:220px;
   border-radius:16px; background:#0B65E9 !important; color:#FFFFFF !important;
  height:48px;
   font-size:14px; font-weight:700; text-decoration:none !important; transition:.18s ease;
  display:inline-flex;
   border-bottom: none !important;
  align-items:center;
  justify-content:center;
   border-radius:16px;
  background:#0B65E9 !important;
  color:#FFFFFF !important;
   font-size:14px;
  font-weight:700;
  text-decoration:none !important;
  transition:.18s ease;
   border-bottom: none !important; /* Fix gegen Unterstrich */
}
}
.page-Main_Page .ck-play-btn a:hover{
.page-Main_Page .ck-play-btn a:hover{
   background:#094DB6 !important; color:#FFFFFF !important; transform:translateY(-1px);
   background:#094DB6 !important;
   border-bottom: none !important;
  color:#FFFFFF !important; /* FIX: Weiße Schrift beim Hover erzwingen */
   border-bottom: none !important; /* Fix gegen Unterstrich */
  transform:translateY(-1px);
}
}


.page-Main_Page .ck-footer-logo{ margin: 60px 0 10px; text-align:center; opacity:.9; }
/* FOOTER */
.page-Main_Page .ck-footer-logo{
  margin: 60px 0 10px;
  text-align:center;
  opacity:.9;
}
.page-Main_Page .ck-footer-logo img{ border-radius:14px; }
.page-Main_Page .ck-footer-logo img{ border-radius:14px; }
.page-Main_Page .ck-established{ text-align:center; font-size:12px; color:#64748B; margin-top:20px; }
.page-Main_Page .ck-established{
  text-align:center;
  font-size:12px;
  color:#64748B;
  margin-top:20px;
}
 
/* MOBILE MAIN */
@media (max-width: 900px){
  .page-Main_Page .mw-body-content{ padding: 0 16px !important; }
  .page-Main_Page .ck-card-inner{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 22px !important;
    padding: 22px 18px !important;
  }
  .page-Main_Page .ck-card-top{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  .page-Main_Page .ck-card-right{
    width: 100% !important;
    margin-top: 6px !important;
    padding-top: 16px !important;
    border-top: 1px solid #F1F5F9;
    display: block !important;
  }
  .page-Main_Page .ck-card-right a{
    width: 100% !important;
    height: 52px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
  }
}


/* Hide default page title on Main Page */
/* Hide default page title on Main Page */
.page-Main_Page #firstHeading { display: none !important; }
.page-Main_Page #firstHeading { display: none !important; }




/* =======================================================
/* =======================================================
   3) SUBPAGES — CKRAS UI KIT (ONLY INSIDE .ck-page)
   3) SUBPAGES — CKRAS UI KIT (ONLY INSIDE .ck-page)
  IMPORTANT: Nothing here touches the Main Page unless
  you wrap content with <div class="ck-page"> ... </div>
   ======================================================= */
   ======================================================= */


.ck-page{ max-width: 1200px; margin: 0 auto; }
/* Page wrapper */
.ck-page{
  /* keep layout consistent without fighting skin too much */
  max-width: 1200px;
}
 
/* ========== Links (minimal, single underline) ========== */
.ck-page a{
  color:#0B65E9;
  text-decoration:none !important;
  border-bottom:1px solid rgba(11,101,233,.22);
  transition: .15s ease;
}
.ck-page a:hover{
  color:#094DB6;
  border-bottom-color:#094DB6;
}


/* GLOBAL LINK HOVER */
/* Don’t underline image/file links */
.mw-body-content a { color: #0F172A; text-decoration: none !important; transition: all 0.2s ease; }
.ck-page a.image,
.mw-body-content a:not(.image):not(.mw-file-description):hover { color: #0B65E9 !important; border-bottom: 1px solid #0B65E9; }
.ck-page a.mw-file-description{
  border-bottom:none !important;
}


/* AUSNAHMEN FÜR BILDER (Fix gegen Unterstrich beim Hover) */
/* If link wraps a button span -> no underline */
.ck-page a.image, .ck-page a.mw-file-description, .ck-page a .ck-btn, .ck-hero-actions a { border-bottom: none !important; }
.ck-page a .ck-btn{
.mw-body-content a.image:hover, .mw-body-content a.mw-file-description:hover {  
   border-bottom:none !important;
   border-bottom: none !important;
  background: transparent !important;  
}
}


/* BUTTONS */
/* ========== Buttons (use spans like you already do) ========== */
.ck-btn{
.ck-btn{
   display:inline-flex; align-items:center; justify-content:center;
   display:inline-flex;
   padding:10px 16px; border-radius:12px; font-weight:800; font-size:13px;
  align-items:center;
   line-height:1; white-space:nowrap; border:1px solid transparent; text-decoration:none !important;
  justify-content:center;
   padding:10px 16px;
  border-radius:12px;
  font-weight:800;
  font-size:13px;
   line-height:1;
  white-space:nowrap;
  border:1px solid transparent;
  text-decoration:none !important;
}
}
.ck-btn-primary{ background:#0B65E9; color:#FFFFFF !important; border-bottom: none !important; }
.ck-btn-primary:hover{ background:#094DB6; color:#FFFFFF !important; border-bottom: none !important; }
.ck-btn-ghost{ background:#111827; border-color:#334155; color:#E2E8F0 !important; border-bottom: none !important; }
.ck-btn-ghost:hover{ border-color: rgba(56,189,248,.55); border-bottom: none !important; }


/* LEAD & CALLOUTS & BOXES */
.ck-btn-primary{
.ck-page .ck-lead{ margin: 10px 0 14px; font-size: 14px; color: #0F172A; line-height: 1.65; }
  background:#0B65E9;
.ck-page .ck-callout{ margin: 14px 0; padding: 12px 14px; border-radius: 12px; background:#F8FAFC; border:1px solid #E2E8F0; border-left:5px solid #0EA5E9; }
  color:#FFFFFF;
.ck-page .ck-callout--amber{ background:#FFF7ED; border-color:#FED7AA; border-left-color:#F59E0B; }
}
.ck-page .ck-callout--ok{ background:#ECFDF5; border-color:#D1FAE5; border-left-color:#10B981; }
.ck-btn-primary:hover{ background:#094DB6; }


.ck-page .ck-jump{ margin: 14px 0; padding: 12px 14px; border-left: 5px solid #0EA5E9; background:#F8FAFC; border-radius: 12px; border: 1px solid #E2E8F0; }
.ck-btn-ghost{
.ck-page .ck-tocbox{ margin: 14px 0; padding: 14px; border-radius: 14px; background:#F1F5F9; border:1px solid #E2E8F0; }
  background:#111827;
.ck-page .ck-toc-title{ font-size: 16px; font-weight: 900; margin-bottom: 8px; }
  border-color:#334155;
  color:#E2E8F0;
}
.ck-btn-ghost:hover{
  border-color: rgba(56,189,248,.55);
}


/* TABLES */
/* ========== Hero (subpages) ========== */
.ck-page table.wikitable{ width:100%; border-collapse:separate; border-spacing:0; border:1px solid #DBEAFE; border-radius:14px; overflow:hidden; background:#FFFFFF; }
.ck-page .ck-hero{
.ck-page table.wikitable th{ background:#EFF6FF; color:#0F172A; font-weight:900; border-bottom:1px solid #DBEAFE; padding:10px 12px; text-align:left; }
  margin: 14px 0 18px;
.ck-page table.wikitable td{ border-bottom:1px solid #EFF6FF; padding:10px 12px; vertical-align:top; color:#0F172A; }
  padding: 20px;
.ck-page table.wikitable th, .ck-page table.wikitable td{ border-left:none !important; border-right:none !important; }
  border-radius: 18px;
.ck-page table.wikitable tr:nth-child(even) td{ background:#F8FAFF; }
  border: 1px solid #E2E8F0;
.ck-page table.wikitable tr:last-child td{ border-bottom:none; }
  background:#FFFFFF;
.ck-page table.wikitable code{ background:#EAF2FF; border:1px solid #DBEAFE; padding:2px 6px; border-radius:8px; }
  color:#0F172A;
}


/* HEADINGS */
/* dark variant */
.ck-page h2, .ck-page h3, .ck-page h4{ border-bottom: none !important; padding-bottom: 0 !important; }
.ck-page .ck-hero--dark{
.ck-page h2{ margin-top: 26px; font-size: 22px; font-weight: 900; color:#0F172A; }
  background: linear-gradient(135deg,#0f172a,#1e293b);
.ck-page h3{ margin-top: 18px; font-size: 18px; font-weight: 900; color:#0F172A; }
  border: 1px solid rgba(255,255,255,.08);
  color: #E2E8F0;
}


.ck-page .ck-hero-inner{
  display:flex;
  gap:18px;
  align-items:center;
  text-align:left;            /* IMPORTANT: left aligned */
}


/* =======================================================
/* Logo tile */
  4) FIX: SUBPAGE HERO (MATCHZY) - RAHMEN STATT BG, LINKSBÜNDIG
.ck-page .ck-hero-logo{
  ======================================================= */
  width:110px;
  height:110px;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:22px;
  overflow:hidden;
  background:#F8FAFC;
  border:1px solid #E2E8F0;
}
 
/* dark hero logo tile */
.ck-page .ck-hero--dark .ck-hero-logo{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
 
/* remove MediaWiki thumb wrappers inside hero logo */
.ck-page .ck-hero-logo .thumb,
.ck-page .ck-hero-logo .thumbinner,
.ck-page .ck-hero-logo figure,
.ck-page .ck-hero-logo figcaption,
.ck-page .ck-hero-logo .image,
.ck-page .ck-hero-logo .mw-file-element{
  background:transparent !important;
  border:none !important;
  padding:0 !important;
  margin:0 !important;
  box-shadow:none !important;
}
 
.ck-page .ck-hero-logo img{
  width:96px !important;
  height:96px !important;
  object-fit:contain !important;
  display:block !important;
}
 
.ck-page .ck-hero-content{ flex:1 1 auto; min-width:0; }
 
/* Title */
.ck-page .ck-hero-title{
  margin:0;
  font-size:28px;
  font-weight:900;
  line-height:1.1;
  color:#0B65E9;
}
.ck-page .ck-hero--dark .ck-hero-title{ color:#38BDF8; }
 
.ck-page .ck-hero-sub{
  margin:6px 0 0;
  font-size:14.5px;
  color:#64748B;
  line-height:1.5;
}
.ck-page .ck-hero--dark .ck-hero-sub{ color:#94A3B8; }
 
.ck-page .ck-hero-meta{
  margin-top:10px;
  font-size:13.5px;
  line-height:1.5;
  color:#0F172A;
}
.ck-page .ck-hero--dark .ck-hero-meta{ color:#E2E8F0; }
 
.ck-page .ck-hero-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
 
/* ========== Lead / Text blocks ========== */
.ck-page .ck-lead{
  margin: 10px 0 14px;
  font-size: 14px;
  color: #0F172A;
  line-height: 1.65;
}
 
/* ========== Callouts ========== */
.ck-page .ck-callout{
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background:#F8FAFC;
  border:1px solid #E2E8F0;
  border-left:5px solid #0EA5E9;
}
 
.ck-page .ck-callout--amber{
  background:#FFF7ED;
  border-color:#FED7AA;
  border-left-color:#F59E0B;
}
 
.ck-page .ck-callout--ok{
  background:#ECFDF5;
  border-color:#D1FAE5;
  border-left-color:#10B981;
}
 
/* ========== Jump / TOC Box ========== */
.ck-page .ck-jump{
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 5px solid #0EA5E9;
  background:#F8FAFC;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}
 
.ck-page .ck-tocbox{
  margin: 14px 0;
  padding: 14px;
  border-radius: 14px;
  background:#F1F5F9;
  border:1px solid #E2E8F0;
}
.ck-page .ck-toc-title{
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}
 
/* ========== Tables (CKRAS CI) ========== */
/* Applies to MediaWiki default tables inside ck-page */
.ck-page table.wikitable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid #DBEAFE;              /* blue-100 */
  border-radius:14px;
  overflow:hidden;
  background:#FFFFFF;
  box-shadow:none;
}
 
.ck-page table.wikitable th{
  background:#EFF6FF;                    /* blue-50 */
  color:#0F172A;
  font-weight:900;
  border-bottom:1px solid #DBEAFE;
  padding:10px 12px;
  text-align:left;
}
 
.ck-page table.wikitable td{
  border-bottom:1px solid #EFF6FF;
  padding:10px 12px;
  vertical-align:top;
  color:#0F172A;
}
 
/* soften inner borders */
.ck-page table.wikitable th,
.ck-page table.wikitable td{
  border-left:none !important;
  border-right:none !important;
}
 
/* zebra */
.ck-page table.wikitable tr:nth-child(even) td{
  background:#F8FAFF;
}
 
/* last row no border */
.ck-page table.wikitable tr:last-child td{
  border-bottom:none;
}
 
/* code blocks inside tables */
.ck-page table.wikitable code{
  background:#EAF2FF;
  border:1px solid #DBEAFE;
  padding:2px 6px;
  border-radius:8px;
}
 
/* ========== Headings in subpages (keep wiki feel but clean) ========== */
.ck-page h2, .ck-page h3, .ck-page h4{
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.ck-page h2{
  margin-top: 26px;
  font-size: 22px;
  font-weight: 900;
  color:#0F172A;
}
.ck-page h3{
  margin-top: 18px;
  font-size: 18px;
  font-weight: 900;
  color:#0F172A;
}
 
/* ========== Mobile (subpages) ========== */
@media (max-width: 900px){
 
  .ck-page .ck-hero{
    padding: 16px;
    border-radius: 16px;
  }
 
  .ck-page .ck-hero-inner{
    flex-direction: column;
    align-items: flex-start;  /* keep left aligned */
  }
 
  .ck-page .ck-hero-logo{
    width:96px;
    height:96px;
    border-radius:20px;
  }
 
  .ck-page .ck-hero-logo img{
    width:84px !important;
    height:84px !important;
  }
 
  .ck-page .ck-hero-title{
    font-size:22px;
  }
 
  .ck-page .ck-hero-actions{
    justify-content:flex-start;
  }
 
  .ck-btn{
    padding: 11px 16px;
    border-radius: 14px;
  }
 
  /* make images (like right float) stack nicer */
  .ck-page .floatright,
  .ck-page .tright{
    float:none !important;
    margin: 10px 0 !important;
  }
}
 
/* =========================
  PATCH: Subpage Hero cleanup
  ========================= */


.ck-page .ck-hero--dark {
/* Hard reset: nix im Hero bekommt eigene Hintergründe/Boxen */
  border-radius: 22px;
.ck-page .ck-hero--dark,
  padding: 30px;
.ck-page .ck-hero--dark *{
   background: #FFFFFF !important; /* Kein dunkler Hintergrund mehr */
   background: transparent !important;
  border: 4px solid #0F172A !important; /* Dicker dunkler Rahmen */
   box-shadow: none !important;
   box-shadow: none !important;
  margin-bottom: 24px;
}
}


.ck-page .ck-hero--dark .ck-hero-inner {
/* Hero selbst wieder korrekt einfärben (nach dem Reset) */
   display: flex !important;
.ck-page .ck-hero--dark{
   align-items: flex-start !important; /* Strikte Linksausrichtung */
  background: linear-gradient(135deg,#0f172a,#1e293b) !important;
   justify-content: flex-start !important;
  border: 1px solid rgba(255,255,255,.08) !important;
   gap: 25px;
  color: #E2E8F0 !important;
}
 
/* Text-Elemente: keine Balken, sauber links, kompakter */
.ck-page .ck-hero--dark .ck-hero-title,
.ck-page .ck-hero--dark .ck-hero-sub,
.ck-page .ck-hero--dark .ck-hero-meta{
   display:block;
  margin: 0;
  padding: 0;
  text-align: left;
}
 
/* Sub + Meta Lesbarkeit */
.ck-page .ck-hero--dark .ck-hero-sub{ color:#94A3B8 !important; margin-top:6px; }
.ck-page .ck-hero--dark .ck-hero-meta{ color:#E2E8F0 !important; margin-top:10px; }
 
/* Hero Layout: kompakter & “SaaS-like” */
.ck-page .ck-hero--dark{
  padding: 22px !important;
  border-radius: 22px !important;
}
 
.ck-page .ck-hero--dark .ck-hero-inner{
   align-items: flex-start !important;
  gap: 18px !important;
}
 
/* Logo sitzt “im” Hero, nicht wie ein Fremdkörper */
.ck-page .ck-hero--dark .ck-hero-logo{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
}
 
/* Buttons: gleichmäßig & nicht in komischer Box */
.ck-page .ck-hero-actions{
  margin-top: 14px !important;
  gap: 10px !important;
}
 
/* Optional: rechte Float-Bilder auf Subpages entschärfen */
.ck-page .floatright,
.ck-page .tright{
   margin: 10px 0 10px 18px !important;
}
 
/* Mobile: alles sauber untereinander */
@media (max-width: 900px){
  .ck-page .ck-hero--dark .ck-hero-inner{
    align-items: center !important;
    text-align: left !important;
   }
  .ck-page .ck-hero--dark .ck-hero-content{
    width: 100%;
  }
}
}


.ck-page .ck-hero--dark .ck-hero-logo {
/* =======================================================
  width: 100px;
  FIX: Subpage Hero clean (keine Boxen / keine Input-Looks)
  height: 100px;
  Paste AT END of CSS
  border-radius: 20px;
  ======================================================= */
  background: #F8FAFC !important; /* Heller Icon-Hintergrund */
 
  border: 1px solid #E2E8F0 !important;
/* Content width clean */
  display: flex;
.ck-page{
  align-items: center;
   max-width: 1200px;
   justify-content: center;
   margin: 0 auto;
   flex-shrink: 0;
  overflow: hidden;
  padding: 8px;
}
}


.ck-page .ck-hero--dark .ck-hero-logo img {
/* Hero overall */
   width: 100% !important;
.ck-hero{
   height: 100% !important;
  border-radius: 22px;
   object-fit: contain !important;
  padding: 26px 28px;
   background: linear-gradient(135deg,#0f172a,#1e293b) !important;
   border: 1px solid rgba(255,255,255,.08) !important;
   box-shadow: none !important;
}
}


/* Flexbox für perfekten linksbündigen Content */
/* Layout left aligned, readable */
.ck-page .ck-hero--dark .ck-hero-content {
.ck-hero-inner{
  flex: 1;
   display: flex !important;
   display: flex;
  flex-direction: column;
   align-items: flex-start !important;
   align-items: flex-start !important;
  text-align: left !important;
  justify-content: flex-start;
}
}


.ck-page .ck-hero--dark .ck-hero-title {
.ck-hero-content{
  color: #0B65E9 !important; /* CKRAS Blau, da Background jetzt hell ist */
  font-weight: 900 !important;
  font-size: 28px;
  letter-spacing: -0.3px;
  margin: 0 0 6px 0 !important;
  display: block;
   text-align: left !important;
   text-align: left !important;
}
}


/* KILL WEISSE BOXEN: Überschreibt MediaWiki <p> Tags komplett */
/* REMOVE all “boxed” looks inside hero (your screenshot) */
.ck-page .ck-hero--dark .ck-hero-sub,
/* FIX: p und div tags hinzugefügt, damit MediaWiki keine Kästen baut */
.ck-page .ck-hero--dark .ck-hero-meta,
.ck-hero .ck-hero-sub,
.ck-page .ck-hero--dark p,
.ck-hero .ck-hero-meta,
.ck-page .ck-hero--dark div {
.ck-hero .ck-hero-actions,
.ck-hero p,
.ck-hero div {
   background: transparent !important;
   background: transparent !important;
   border: 0 !important;
   border: 0 !important;
  outline: 0 !important;
   box-shadow: none !important;
   box-shadow: none !important;
  padding: 0 !important;
  margin-left: 0 !important;
   text-align: left !important;
   text-align: left !important;
}
}


/* Texte formatieren (Dunkel, da Background jetzt hell) */
/* Typography cleaner */
.ck-page .ck-hero--dark .ck-hero-sub,
.ck-hero-title{
.ck-page .ck-hero--dark .ck-hero-sub p {
  color: #38BDF8 !important;
   color: #475569 !important; /* Dunkelgrau */
  font-weight: 900 !important;
   font-size: 14.5px !important;
  letter-spacing: -0.3px;
  margin: 0 0 6px 0 !important;
}
 
.ck-hero-sub{
   color:#94A3B8 !important;
   font-size: 14px !important;
   line-height: 1.55 !important;
   line-height: 1.55 !important;
   margin: 0 0 10px 0 !important;
   margin: 0 0 10px 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
}


.ck-page .ck-hero--dark .ck-hero-meta,
.ck-hero-meta{
.ck-page .ck-hero--dark .ck-hero-meta p {
   color:#E2E8F0 !important;
   color: #0F172A !important; /* Fast schwarz */
   font-size: 13.5px !important;
   font-size: 13.5px !important;
   line-height: 1.55 !important;
   line-height: 1.55 !important;
   margin: 0 0 14px 0 !important;
   margin: 0 0 14px 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
}


/* Schützt Buttons davor, durch den <p> Fix transparent zu werden */
/* Actions: Buttons only, no surrounding box */
.ck-page .ck-hero--dark .ck-hero-actions {
.ck-hero-actions{
   display: flex !important;
   display:flex !important;
   gap: 10px !important;
   gap:10px !important;
   flex-wrap: wrap !important;
   flex-wrap:wrap !important;
   justify-content: flex-start !important;
   justify-content: flex-start !important;
  margin-top: 6px !important;
}
}


.mw-parser-output img[alt*="MatchZy"]{ margin: 8px 0 14px 18px; }
/* Important: Hero buttons must NEVER inherit global link underline/border */
.ck-hero-actions a,
.ck-hero-actions a:hover{
  border-bottom: none !important;
  text-decoration: none !important;
}
.ck-hero-actions .ck-btn-primary:hover {
  color: #FFFFFF !important;
}
.ck-hero-actions .ck-btn-ghost:hover {
  color: #FFFFFF !important;
}


/* MOBILE */
/* Make buttons slightly cleaner (less “pill heavy”) */
@media (max-width: 900px){
.ck-btn{
   .page-Main_Page .mw-body-content{ padding: 0 16px !important; }
   border-radius: 12px !important;
   .page-Main_Page .ck-card-inner{ flex-direction: column !important; align-items: stretch !important; padding: 22px 18px !important; }
   padding: 10px 14px !important;
  .page-Main_Page .ck-card-top{ flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
  font-size: 13px !important;
  .page-Main_Page .ck-card-right{ width: 100% !important; margin-top: 6px !important; padding-top: 16px !important; border-top: 1px solid #F1F5F9; display: block !important; }
}
  .page-Main_Page .ck-card-right a{ width: 100% !important; height: 52px !important; border-radius: 14px !important; }
 
  .ck-page .ck-hero--dark .ck-hero-inner { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; }
/* Float image: give it breathing room + avoid looking random */
.mw-parser-output img[alt*="MatchZy"]{
  margin: 8px 0 14px 18px;
}
 
/* Jump / TOC boxes: consistent, subtle */
.ck-jump,
.ck-tocbox{
  border-radius: 14px !important;
  border: 1px solid #E2E8F0 !important;
}
 
/* Prevent “double underline” everywhere (skin adds underline sometimes) */
.mw-body-content a{
  text-decoration: none !important;
}
 
/* Keep subtle underline style globally, but not for buttons/images */
.mw-body-content a:not(.image):not(.mw-file-description):not(.ck-btn){
  border-bottom: 1px solid rgba(11,101,233,.18);
}
.mw-body-content a:not(.image):not(.mw-file-description):not(.ck-btn):hover{
  border-bottom-color: #094DB6;
}
 
/* FIX: Bilder bekommen beim Hover niemals einen Strich/Hintergrund */
a.image:hover,
a.mw-file-description:hover {
  border-bottom: none !important;
  background: transparent !important;
}
}

Revision as of 10:51, 5 March 2026

/* =========================================================
   CKRAS WIKI — GLOBAL SIDEBAR + MAIN PAGE + SUBPAGE UI KIT
   Skin: Medik (responsive)
   GOAL:
   - Main Page bleibt clean wie vorher (OHNE dunklen Hero/Box)
   - Subpages bekommen optional eigenes Design via .ck-page Wrapper
   - Keine “double underline”, dezent & minimal
   - Tabellen im CKRAS CI (hellblau, soft borders)
   ========================================================= */


/* =========================================================
   1) CKRAS SIDEBAR REDESIGN (GLOBAL)
   ========================================================= */

/* Sidebar Headlines */
#mw-panel .portal h3 {
  font-size: 0.85em;
  text-transform: uppercase;
  color: #0B65E9 !important;
  font-weight: 800;
  margin-top: 18px;
  letter-spacing: 0.5px;
  border: none;
}

/* Link Styling & Icon Alignment */
#mw-panel .portal .body ul li {
  list-style: none !important;
  padding: 3px 0;
}

#mw-panel .portal .body ul li a {
  display: flex !important;
  align-items: center;
  color: #475569 !important;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

#mw-panel .portal .body ul li a:hover {
  color: #0B65E9 !important;
  padding-left: 2px;
}

/* Icon Setup */
#mw-panel .portal .body ul li a::before {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  text-align: center;
  display: inline-block;
}

/* NAVIGATION ICONS */
#n-mainpage a::before, #n-Home a::before { content: "🏠"; }
#n-recentchanges a::before, #n-Recent-changes a::before { content: "⏱️"; }

/* GUIDE ICONS */
#n-Counterstrike-2 a::before { content: "🔫"; }
#n-MatchZy a::before { content: "🎮"; }
#n-PreFire a::before { content: "🔥"; }
#n-CKRAS-BOT a::before { content: "🤖"; }
#n-Gameserver-Token a::before { content: "🔑"; }

/* PRODUCT ICONS */
#n-Gameserver a::before { content: "🎮"; }
#n-Teamspeak a::before { content: "🎤"; }
#n-TV-Server a::before { content: "📺"; }

/* EXTERNAL & LANGUAGE ICONS */
#mw-panel a[href*="ckras.com/en/"]::before { content: "🌐"; }
#mw-panel a[href*="play.ckras.com"]::before { content: "☁️"; }
#mw-panel a[href*="iface.ckras.com"]::before { content: "🧩"; }
#mw-panel a[href*="wiki.ckras.com"]::before { content: "🇩🇪"; }



/* =======================================================
   2) MAIN PAGE — CLEAN SAAS (STRICTLY SCOPED)
   ======================================================= */

.page-Main_Page #toc { display:none; }

/* Layout */
.page-Main_Page .mw-body-content{
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 40px;
}

/* HERO */
.page-Main_Page .ck-hero h1{
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  color:#0F172A;
}

.page-Main_Page .ck-hero p{
  margin:0;
  font-size:14px;
  color:#64748B;
  max-width:820px;
  line-height:1.6;
}

/* Main page links subtle (single underline only) */
.page-Main_Page .ck-hero a{
  color:#0F172A !important;
  font-weight:600;
  text-decoration:none !important;
  border-bottom:1px solid rgba(15,23,42,.15);
}
.page-Main_Page .ck-hero a:hover{
  color:#0B65E9 !important;
  border-bottom-color:#0B65E9;
}

/* SECTION */
.page-Main_Page .ck-section-title{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.6px;
  font-weight:800;
  color:#0B65E9;
  margin:34px 0 18px;
}

/* CARD */
.page-Main_Page .ck-card{ margin-bottom:22px; }

.page-Main_Page .ck-card-inner{
  background:#FFFFFF;
  border:1px solid #E2E8F0;
  border-radius:22px;
  padding:26px 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  transition:.18s ease;
}
.page-Main_Page .ck-card-inner:hover{
  border-color:rgba(11,101,233,.25);
}

/* LEFT */
.page-Main_Page .ck-card-left{ flex:1; }
.page-Main_Page .ck-card-top{
  display:flex;
  align-items:center;
  gap:22px;
}
.page-Main_Page .ck-text{ flex:1; }

/* REMOVE MEDIAWIKI IMAGE WRAPPERS */
.page-Main_Page .ck-icoimg .thumb,
.page-Main_Page .ck-icoimg .thumbinner,
.page-Main_Page .ck-icoimg .image,
.page-Main_Page .ck-icoimg .mw-file-element,
.page-Main_Page .ck-icoimg figure,
.page-Main_Page .ck-icoimg figcaption{
  background:transparent !important;
  border:none !important;
  padding:0 !important;
  margin:0 !important;
  box-shadow:none !important;
}

/* ICON CONTAINER */
.page-Main_Page .ck-icoimg{
  width:64px;
  height:64px;
  border-radius:20px;
  background:#F8FAFC;
  border:1px solid #E2E8F0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex-shrink:0;
}

.page-Main_Page .ck-icoimg a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  text-decoration:none !important;
  border-bottom: none !important;
}

.page-Main_Page .ck-icoimg img{
  width:50px !important;
  height:50px !important;
  object-fit:contain !important;
  display:block !important;
}

/* TEXT (kill Medik borders) */
.page-Main_Page .ck-card h2{
  margin:0 0 6px !important;
  padding:0 !important;
  font-size:17px;
  font-weight:700;
  letter-spacing:-0.2px;
  color:#0F172A;
  border:0 !important;
  border-bottom:0 !important;
  background:none !important;
}
.page-Main_Page .ck-card h2:after,
.page-Main_Page .ck-card h2:before{
  content:none !important;
}

.page-Main_Page .ck-card h2 a{
  text-decoration:none !important;
  color:#0F172A !important;
}
.page-Main_Page .ck-card h2 a:hover{
  color:#0B65E9 !important;
}

.page-Main_Page .ck-card p{
  margin:0;
  font-size:13.5px;
  color:#64748B;
  line-height:1.55;
}

/* META CHIPS */
.page-Main_Page .ck-meta{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.page-Main_Page .ck-meta a{
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:16px;
  background:#F1F5F9;
  border:1px solid #E2E8F0;
  font-size:12.5px;
  font-weight:700;
  color:#0B65E9 !important;
  text-decoration:none !important;
  border-bottom: none !important; /* Fix gegen Unterstrich */
}
.page-Main_Page .ck-meta a:hover{
  background:#EAF2FF !important;
  border-bottom: none !important; /* Fix gegen Unterstrich */
}

/* CTA BUTTONS */
.page-Main_Page .ck-card-right{
  width:220px;
  flex-shrink:0;
  display:flex;
  justify-content:flex-end;
}
.page-Main_Page .ck-card-right a{
  width:220px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#0B65E9;
  color:#FFFFFF !important;
  font-size:14px;
  font-weight:700;
  text-decoration:none !important;
  transition:.18s ease;
  border-bottom: none !important; /* Fix gegen Unterstrich */
}
.page-Main_Page .ck-card-right a:hover{
  background:#094DB6 !important;
  color:#FFFFFF !important; /* FIX: Weiße Schrift beim Hover erzwingen */
  border-bottom: none !important; /* Fix gegen Unterstrich */
  transform:translateY(-1px);
}

/* PLAY */
.page-Main_Page .ck-play{
  margin:40px 0 24px;
  padding:36px 32px;
  border-radius:22px;
  background:#0F172A;
  color:#FFFFFF;
  text-align:center;
  border:1px solid rgba(255,255,255,.06);
}
.page-Main_Page .ck-play *{
  background: transparent !important;
  box-shadow: none !important;
}

.page-Main_Page .ck-play h3{
  margin:0 0 10px;
  font-size:17px;
  font-weight:800;
  color:#FFFFFF;
}
.page-Main_Page .ck-play p{
  margin:0 auto 22px;
  font-size:13.5px;
  opacity:.85;
  line-height:1.6;
  max-width:720px;
  color:#E2E8F0;
}
.page-Main_Page .ck-play-btn{ display:inline-block; }
.page-Main_Page .ck-play-btn a{
  width:220px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#0B65E9 !important;
  color:#FFFFFF !important;
  font-size:14px;
  font-weight:700;
  text-decoration:none !important;
  transition:.18s ease;
  border-bottom: none !important; /* Fix gegen Unterstrich */
}
.page-Main_Page .ck-play-btn a:hover{
  background:#094DB6 !important;
  color:#FFFFFF !important; /* FIX: Weiße Schrift beim Hover erzwingen */
  border-bottom: none !important; /* Fix gegen Unterstrich */
  transform:translateY(-1px);
}

/* FOOTER */
.page-Main_Page .ck-footer-logo{
  margin: 60px 0 10px;
  text-align:center;
  opacity:.9;
}
.page-Main_Page .ck-footer-logo img{ border-radius:14px; }
.page-Main_Page .ck-established{
  text-align:center;
  font-size:12px;
  color:#64748B;
  margin-top:20px;
}

/* MOBILE MAIN */
@media (max-width: 900px){
  .page-Main_Page .mw-body-content{ padding: 0 16px !important; }
  .page-Main_Page .ck-card-inner{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 22px !important;
    padding: 22px 18px !important;
  }
  .page-Main_Page .ck-card-top{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  .page-Main_Page .ck-card-right{
    width: 100% !important;
    margin-top: 6px !important;
    padding-top: 16px !important;
    border-top: 1px solid #F1F5F9;
    display: block !important;
  }
  .page-Main_Page .ck-card-right a{
    width: 100% !important;
    height: 52px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
  }
}

/* Hide default page title on Main Page */
.page-Main_Page #firstHeading { display: none !important; }



/* =======================================================
   3) SUBPAGES — CKRAS UI KIT (ONLY INSIDE .ck-page)
   IMPORTANT: Nothing here touches the Main Page unless
   you wrap content with <div class="ck-page"> ... </div>
   ======================================================= */

/* Page wrapper */
.ck-page{
  /* keep layout consistent without fighting skin too much */
  max-width: 1200px;
}

/* ========== Links (minimal, single underline) ========== */
.ck-page a{
  color:#0B65E9;
  text-decoration:none !important;
  border-bottom:1px solid rgba(11,101,233,.22);
  transition: .15s ease;
}
.ck-page a:hover{
  color:#094DB6;
  border-bottom-color:#094DB6;
}

/* Don’t underline image/file links */
.ck-page a.image,
.ck-page a.mw-file-description{
  border-bottom:none !important;
}

/* If link wraps a button span -> no underline */
.ck-page a .ck-btn{
  border-bottom:none !important;
}

/* ========== Buttons (use spans like you already do) ========== */
.ck-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:12px;
  font-weight:800;
  font-size:13px;
  line-height:1;
  white-space:nowrap;
  border:1px solid transparent;
  text-decoration:none !important;
}

.ck-btn-primary{
  background:#0B65E9;
  color:#FFFFFF;
}
.ck-btn-primary:hover{ background:#094DB6; }

.ck-btn-ghost{
  background:#111827;
  border-color:#334155;
  color:#E2E8F0;
}
.ck-btn-ghost:hover{
  border-color: rgba(56,189,248,.55);
}

/* ========== Hero (subpages) ========== */
.ck-page .ck-hero{
  margin: 14px 0 18px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  background:#FFFFFF;
  color:#0F172A;
}

/* dark variant */
.ck-page .ck-hero--dark{
  background: linear-gradient(135deg,#0f172a,#1e293b);
  border: 1px solid rgba(255,255,255,.08);
  color: #E2E8F0;
}

.ck-page .ck-hero-inner{
  display:flex;
  gap:18px;
  align-items:center;
  text-align:left;            /* IMPORTANT: left aligned */
}

/* Logo tile */
.ck-page .ck-hero-logo{
  width:110px;
  height:110px;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:22px;
  overflow:hidden;
  background:#F8FAFC;
  border:1px solid #E2E8F0;
}

/* dark hero logo tile */
.ck-page .ck-hero--dark .ck-hero-logo{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

/* remove MediaWiki thumb wrappers inside hero logo */
.ck-page .ck-hero-logo .thumb,
.ck-page .ck-hero-logo .thumbinner,
.ck-page .ck-hero-logo figure,
.ck-page .ck-hero-logo figcaption,
.ck-page .ck-hero-logo .image,
.ck-page .ck-hero-logo .mw-file-element{
  background:transparent !important;
  border:none !important;
  padding:0 !important;
  margin:0 !important;
  box-shadow:none !important;
}

.ck-page .ck-hero-logo img{
  width:96px !important;
  height:96px !important;
  object-fit:contain !important;
  display:block !important;
}

.ck-page .ck-hero-content{ flex:1 1 auto; min-width:0; }

/* Title */
.ck-page .ck-hero-title{
  margin:0;
  font-size:28px;
  font-weight:900;
  line-height:1.1;
  color:#0B65E9;
}
.ck-page .ck-hero--dark .ck-hero-title{ color:#38BDF8; }

.ck-page .ck-hero-sub{
  margin:6px 0 0;
  font-size:14.5px;
  color:#64748B;
  line-height:1.5;
}
.ck-page .ck-hero--dark .ck-hero-sub{ color:#94A3B8; }

.ck-page .ck-hero-meta{
  margin-top:10px;
  font-size:13.5px;
  line-height:1.5;
  color:#0F172A;
}
.ck-page .ck-hero--dark .ck-hero-meta{ color:#E2E8F0; }

.ck-page .ck-hero-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ========== Lead / Text blocks ========== */
.ck-page .ck-lead{
  margin: 10px 0 14px;
  font-size: 14px;
  color: #0F172A;
  line-height: 1.65;
}

/* ========== Callouts ========== */
.ck-page .ck-callout{
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background:#F8FAFC;
  border:1px solid #E2E8F0;
  border-left:5px solid #0EA5E9;
}

.ck-page .ck-callout--amber{
  background:#FFF7ED;
  border-color:#FED7AA;
  border-left-color:#F59E0B;
}

.ck-page .ck-callout--ok{
  background:#ECFDF5;
  border-color:#D1FAE5;
  border-left-color:#10B981;
}

/* ========== Jump / TOC Box ========== */
.ck-page .ck-jump{
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 5px solid #0EA5E9;
  background:#F8FAFC;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.ck-page .ck-tocbox{
  margin: 14px 0;
  padding: 14px;
  border-radius: 14px;
  background:#F1F5F9;
  border:1px solid #E2E8F0;
}
.ck-page .ck-toc-title{
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}

/* ========== Tables (CKRAS CI) ========== */
/* Applies to MediaWiki default tables inside ck-page */
.ck-page table.wikitable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid #DBEAFE;               /* blue-100 */
  border-radius:14px;
  overflow:hidden;
  background:#FFFFFF;
  box-shadow:none;
}

.ck-page table.wikitable th{
  background:#EFF6FF;                     /* blue-50 */
  color:#0F172A;
  font-weight:900;
  border-bottom:1px solid #DBEAFE;
  padding:10px 12px;
  text-align:left;
}

.ck-page table.wikitable td{
  border-bottom:1px solid #EFF6FF;
  padding:10px 12px;
  vertical-align:top;
  color:#0F172A;
}

/* soften inner borders */
.ck-page table.wikitable th,
.ck-page table.wikitable td{
  border-left:none !important;
  border-right:none !important;
}

/* zebra */
.ck-page table.wikitable tr:nth-child(even) td{
  background:#F8FAFF;
}

/* last row no border */
.ck-page table.wikitable tr:last-child td{
  border-bottom:none;
}

/* code blocks inside tables */
.ck-page table.wikitable code{
  background:#EAF2FF;
  border:1px solid #DBEAFE;
  padding:2px 6px;
  border-radius:8px;
}

/* ========== Headings in subpages (keep wiki feel but clean) ========== */
.ck-page h2, .ck-page h3, .ck-page h4{
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.ck-page h2{
  margin-top: 26px;
  font-size: 22px;
  font-weight: 900;
  color:#0F172A;
}
.ck-page h3{
  margin-top: 18px;
  font-size: 18px;
  font-weight: 900;
  color:#0F172A;
}

/* ========== Mobile (subpages) ========== */
@media (max-width: 900px){

  .ck-page .ck-hero{
    padding: 16px;
    border-radius: 16px;
  }

  .ck-page .ck-hero-inner{
    flex-direction: column;
    align-items: flex-start;  /* keep left aligned */
  }

  .ck-page .ck-hero-logo{
    width:96px;
    height:96px;
    border-radius:20px;
  }

  .ck-page .ck-hero-logo img{
    width:84px !important;
    height:84px !important;
  }

  .ck-page .ck-hero-title{
    font-size:22px;
  }

  .ck-page .ck-hero-actions{
    justify-content:flex-start;
  }

  .ck-btn{
    padding: 11px 16px;
    border-radius: 14px;
  }

  /* make images (like right float) stack nicer */
  .ck-page .floatright,
  .ck-page .tright{
    float:none !important;
    margin: 10px 0 !important;
  }
}

/* =========================
   PATCH: Subpage Hero cleanup
   ========================= */

/* Hard reset: nix im Hero bekommt eigene Hintergründe/Boxen */
.ck-page .ck-hero--dark,
.ck-page .ck-hero--dark *{
  background: transparent !important;
  box-shadow: none !important;
}

/* Hero selbst wieder korrekt einfärben (nach dem Reset) */
.ck-page .ck-hero--dark{
  background: linear-gradient(135deg,#0f172a,#1e293b) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: #E2E8F0 !important;
}

/* Text-Elemente: keine Balken, sauber links, kompakter */
.ck-page .ck-hero--dark .ck-hero-title,
.ck-page .ck-hero--dark .ck-hero-sub,
.ck-page .ck-hero--dark .ck-hero-meta{
  display:block;
  margin: 0;
  padding: 0;
  text-align: left;
}

/* Sub + Meta Lesbarkeit */
.ck-page .ck-hero--dark .ck-hero-sub{ color:#94A3B8 !important; margin-top:6px; }
.ck-page .ck-hero--dark .ck-hero-meta{ color:#E2E8F0 !important; margin-top:10px; }

/* Hero Layout: kompakter & “SaaS-like” */
.ck-page .ck-hero--dark{
  padding: 22px !important;
  border-radius: 22px !important;
}

.ck-page .ck-hero--dark .ck-hero-inner{
  align-items: flex-start !important;
  gap: 18px !important;
}

/* Logo sitzt “im” Hero, nicht wie ein Fremdkörper */
.ck-page .ck-hero--dark .ck-hero-logo{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
}

/* Buttons: gleichmäßig & nicht in komischer Box */
.ck-page .ck-hero-actions{
  margin-top: 14px !important;
  gap: 10px !important;
}

/* Optional: rechte Float-Bilder auf Subpages entschärfen */
.ck-page .floatright,
.ck-page .tright{
  margin: 10px 0 10px 18px !important;
}

/* Mobile: alles sauber untereinander */
@media (max-width: 900px){
  .ck-page .ck-hero--dark .ck-hero-inner{
    align-items: center !important;
    text-align: left !important;
  }
  .ck-page .ck-hero--dark .ck-hero-content{
    width: 100%;
  }
}

/* =======================================================
   FIX: Subpage Hero clean (keine Boxen / keine Input-Looks)
   Paste AT END of CSS
   ======================================================= */

/* Content width clean */
.ck-page{
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero overall */
.ck-hero{
  border-radius: 22px;
  padding: 26px 28px;
  background: linear-gradient(135deg,#0f172a,#1e293b) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

/* Layout left aligned, readable */
.ck-hero-inner{
  display: flex !important;
  align-items: flex-start !important;
}

.ck-hero-content{
  text-align: left !important;
}

/* REMOVE all “boxed” looks inside hero (your screenshot) */
/* FIX: p und div tags hinzugefügt, damit MediaWiki keine Kästen baut */
.ck-hero .ck-hero-sub,
.ck-hero .ck-hero-meta,
.ck-hero .ck-hero-actions,
.ck-hero p,
.ck-hero div {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
}

/* Typography cleaner */
.ck-hero-title{
  color: #38BDF8 !important;
  font-weight: 900 !important;
  letter-spacing: -0.3px;
  margin: 0 0 6px 0 !important;
}

.ck-hero-sub{
  color:#94A3B8 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 0 0 10px 0 !important;
}

.ck-hero-meta{
  color:#E2E8F0 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  margin: 0 0 14px 0 !important;
}

/* Actions: Buttons only, no surrounding box */
.ck-hero-actions{
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  justify-content: flex-start !important;
}

/* Important: Hero buttons must NEVER inherit global link underline/border */
.ck-hero-actions a,
.ck-hero-actions a:hover{
  border-bottom: none !important;
  text-decoration: none !important;
}
.ck-hero-actions .ck-btn-primary:hover {
  color: #FFFFFF !important;
}
.ck-hero-actions .ck-btn-ghost:hover {
  color: #FFFFFF !important;
}

/* Make buttons slightly cleaner (less “pill heavy”) */
.ck-btn{
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
}

/* Float image: give it breathing room + avoid looking random */
.mw-parser-output img[alt*="MatchZy"]{
  margin: 8px 0 14px 18px;
}

/* Jump / TOC boxes: consistent, subtle */
.ck-jump,
.ck-tocbox{
  border-radius: 14px !important;
  border: 1px solid #E2E8F0 !important;
}

/* Prevent “double underline” everywhere (skin adds underline sometimes) */
.mw-body-content a{
  text-decoration: none !important;
}

/* Keep subtle underline style globally, but not for buttons/images */
.mw-body-content a:not(.image):not(.mw-file-description):not(.ck-btn){
  border-bottom: 1px solid rgba(11,101,233,.18);
}
.mw-body-content a:not(.image):not(.mw-file-description):not(.ck-btn):hover{
  border-bottom-color: #094DB6;
}

/* FIX: Bilder bekommen beim Hover niemals einen Strich/Hintergrund */
a.image:hover, 
a.mw-file-description:hover {
  border-bottom: none !important;
  background: transparent !important;
}