Zum Inhalt springen

MediaWiki:Common.css

Aus Pixopedia

Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.

  • Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
  • Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
  • Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/*******************************
 *  Hintergrund & Body (global)
 *******************************/
body {
    background-color: #060e12;
    padding-top: 5.5rem; 

    background-image:
        radial-gradient(
            ellipse 10% 100% at calc(50% - 800px) center,
            #112733 20%,
            #060e12 75%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 10% 100% at calc(50% + 800px) center,
            #112733 20%,
            #060e12 75%,
            transparent 100%
        );

    background-repeat: no-repeat;
    background-size: auto 100%, auto 100%;
    background-attachment: fixed;
}

/*******************************
 *  Content-Container (global)
 *******************************/
.mw-page-container {
    background-color: #060e1275 !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100%, 100% 100%;

    border-bottom-left-radius: 30px !important;
    border-bottom-right-radius: 30px !important;
    padding: 20px !important;
    margin: 0 auto !important;
    max-width: 1600px;
    margin-top: -4rem;
}

.mw-page-container .mw-content-container {
    background: transparent !important;
}

/*******************************
 *  Eigener Sticky-Header (global)
 *******************************/
#pixo-custom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5.5rem;
    z-index: 1000;
    background: transparent;
}

/* Inhalt des Headers auf Containerbreite begrenzen */
#pixo-custom-header-inner {
    box-sizing: border-box;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    background-color: #060e12f0;
    border-bottom: 1px solid #112733;
    backdrop-filter: blur(8px);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

/* Slots */
#pixo-custom-header-left,
#pixo-custom-header-center,
#pixo-custom-header-right {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: .75rem;
}

#pixo-custom-header-left {
    justify-content: flex-start;
}

#pixo-custom-header-center {
    justify-content: center;
}

#pixo-custom-header-right {
    justify-content: flex-end;
}

/* Suchbox optional etwas begrenzen, falls im Custom-Header verwendet */
#pixo-custom-header-left .vector-search-box-vue {
    max-width: 260px;
}

/*******************************
 *  Icon-Buttons im Header (global)
 *******************************/
.pixo-header-icon {
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .6rem;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Header-Buttons mit gleichem Verlauf wie Tabellen-Header */
.pixo-header-icon,
.vector-menu.mw-portlet.pixo-header-icon,
.vector-dropdown.vector-user-menu.vector-button-flush-right.pixo-header-icon {
    background: linear-gradient(90deg, #182436 0%, #263b57 100%);
    color: #e5f3ff;
    border: 1px solid #243242;
}

/* Hover etwas heller */
.pixo-header-icon:hover,
.vector-menu.mw-portlet.pixo-header-icon:hover,
.vector-dropdown.vector-user-menu.vector-button-flush-right.pixo-header-icon:hover {
    background: linear-gradient(90deg, #22324a 0%, #314868 100%);
}

/* Logo-Link im Header etwas anpassen */
#pixo-custom-header-center .mw-logo {
    margin: 0;
    display: flex;
    align-items: center;
}

/* ========================================
   Pixo-Kacheln (Spiel-Grid)
   ======================================== */
/* Grid-Container für Start-Kacheln */
.pixo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  justify-content: center; /* zentriert das Grid, wenn es schmaler ist */
}

/* BASIS-KARTE */
.pixo-card {
  display: block;
  width: 100%;
  min-height: 105%;
  margin: 0;
  border-radius: 25px;
  background: #31313131;  
  border: 1px solid #f0f0f099; 
  box-shadow: 0 5px 16px #00000080;
  overflow: hidden;
  font-family: inherit;
  flex-direction: column;   /* Links untereinander */
  align-items: center;      /* horizontal zentrieren */
  text-align: center;       /* Text in den Links zentrieren */
  gap: 0.25rem;             /* Abstand zwischen Links */
}

/* Normale Karte mit Hero-Bild */
.pixo-card-hero {
  position: relative;
  width: 100%;
  height: 150px;
  background: transparent;
  overflow: hidden;
}

/* Bild im Hero-Bereich */
.pixo-card-hero img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  background: transparent;
  display: block;
}

/* Karten OHNE Hero-Bild */
.pixo-card--nohero .pixo-card-hero {
  height: auto;                  /* keine feste Höhe */
  padding: 0;
  margin: 0;
  border-radius: 20px;
  background: #31313131; 
  border: 0;
}

/* Falls irgendwo Standard-Rand auf Bildern sitzt, hier nochmal hart entfernen */
.pixo-card-hero a,
.pixo-card-hero img {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* Schwarzer Balken unter dem Hero-Bild */
.pixo-card-title-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 30px;         
  background: #0a0a0ab3;
  padding: 6px 12px;
  box-sizing: border-box;
}

/* Titel rechtsbündig auf der Title-Bar */
.pixo-card-title-text {
  position: static;      
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 4px #000000e6;
  white-space: nowrap;
  padding: 0px 0px 2px 0px;
  text-align: right;     
}

.pixo-card-hero-inner {
  display: inline-block;
}
.pixo-card-body ul {
  list-style: none;      /* keine Punkte */
  margin: 0;
  padding: 0;
}

.pixo-card-body li {
  margin: 0.1rem 0;
}

/* Einzelne Kachel zentriert über die mittlere Spalte setzen */
.pixo-grid > .pixo-card:only-child {
  grid-column: 2 / 3; /* mittlere von 3 Spalten */
}
/*********************************************
 * Hunt Turnier – Layout: Inhalt + Infobox
 *********************************************/

/* Gesamter Seiteninhalt begrenzen, damit 60/10/30 % sinnvoll wirken */
body .mw-body-content,
body .mw-content-ltr {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Infobox rechts: ca. 30 % */
.hunt-infobox.fo-nttax-infobox {
    float: right;
    clear: right;
    width: 30%;
    max-width: 360px;
    min-width: 260px;
    margin: 0 0 1.5rem 2%;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid var(--hunt-infobox-border-color);
    background: var(--hunt-infobox-bg);
    box-shadow: 0 8px 24px var(--hunt-infobox-shadow-color);
}

/* Haupt-Content (u.a. Turnierseite + Regelbox) links: ca. 60 %, plus 10 % Abstand zur Infobox */
.huntpixo-regeln,
.page-Turnier,
.mw-body-content > h1,
.mw-body-content > h2,
.mw-body-content > h3,
.mw-body-content > p,
.mw-body-content > table.hunt-table {
    max-width: 60%;
    box-sizing: border-box;
}

/* etwas Abstand zwischen Text/Regelbox und Infobox */
.huntpixo-regeln,
.mw-body-content > h1,
.mw-body-content > h2,
.mw-body-content > h3,
.mw-body-content > p,
.mw-body-content > table.hunt-table {
    margin-right: 10%;
}

/* Mobile/kleine Screens: Infobox unter den Inhalt */
@media (max-width: 900px) {
    .hunt-infobox.fo-nttax-infobox {
        float: none;
        margin: 0 auto 1em auto;
        width: 100%;
        max-width: 420px;
    }
    .huntpixo-regeln,
    .mw-body-content > h1,
    .mw-body-content > h2,
    .mw-body-content > h3,
    .mw-body-content > p,
    .mw-body-content > table.hunt-table {
        max-width: 100%;
        margin-right: 0;
    }
}

/*********************************************
 * Hunt Turnier Layout: Inhalt + Regeln + Infobox
 *********************************************/

/* Container für Turnierseiten – 3-Spalten-Layout: 60% Inhalt, 10% Abstand, 30% Infobox */
.hunt-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;                    /* Abstand steuern wir über die Mittelsäule */
}

/* Inhaltsspalte (Seiteninhalt + Regelboxen) */
.hunt-layout-main {
    flex: 0 0 60%;
    max-width: 60%;
}

/* Leerspalte zwischen Inhalt und Infobox */
.hunt-layout-gap {
    flex: 0 0 10%;
    max-width: 10%;
}

/* Infobox-Spalte */
.hunt-layout-sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

/* Fallback: wenn kein expliziter Layout-Wrapper gesetzt ist, verhält sich Infobox wie früher */
.hunt-infobox.fo-nttax-infobox {
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid var(--hunt-infobox-border-color);
    background: var(--hunt-infobox-bg);
    box-shadow: 0 8px 24px var(--hunt-infobox-shadow-color);
}

/* Wenn Infobox im Sidebar-Block steckt, nicht mehr floaten */
.hunt-layout-sidebar .hunt-infobox.fo-nttax-infobox {
    float: none;
    clear: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
}

/* Alter Float-Modus nur auf Seiten ohne .hunt-layout */
body:not(.use-hunt-layout) .hunt-infobox.fo-nttax-infobox {
    float: right;
    clear: right;
    width: 320px;
    max-width: 100%;
    margin: 0 0 1em 1em;
}

/*********************************************
 * Hunt Turnier Infobox – Layout & Struktur
 *********************************************/

.hunt-infobox-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--hunt-infobox-header-bg);
    color: var(--hunt-infobox-header-text);
}

.hunt-infobox-title {
    padding: 8px 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Bildbereich – feste Höhe ~30% der Infobox */
.hunt-infobox-image {
    position: relative;
    padding: 0;
    text-align: center;
    background: var(--hunt-infobox-header-image-bg);
    height: 30%;
    min-height: 90px;
}

.hunt-infobox-image img {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin: 0 auto;
}

.hunt-infobox-subtitle {
    padding: 4px 12px 6px 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hunt-infobox-label-text);
    background: rgba(0, 0, 0, 0.25);
}

.hunt-infobox-image a,
.hunt-infobox-image a img {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hunt-infobox-image a {
    pointer-events: none;
    cursor: default;
}

.hunt-infobox-section {
    padding: 6px 10px;
}

.hunt-infobox-row {
    display: grid;
    grid-template-columns: 40% 60%;
    column-gap: 6px;
    padding: 4px 4px;
    align-items: flex-start;
}

.hunt-infobox-section .hunt-infobox-row:nth-child(odd) {
    background: var(--hunt-infobox-row-bg-odd);
}

.hunt-infobox-section .hunt-infobox-row:nth-child(even) {
    background: var(--hunt-infobox-row-bg-even);
}

.hunt-infobox-label {
    font-weight: 600;
    text-align: right;
    padding-right: 4px;
    color: var(--hunt-infobox-label-text);
    white-space: nowrap;
}

.hunt-infobox-value {
    text-align: left;
    color: var(--hunt-infobox-value-text);
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.hunt-infobox a {
    color: var(--hunt-infobox-link-color);
    text-decoration: none;
    font-weight: 500;
}

.hunt-infobox a:hover {
    text-decoration: underline;
    color: var(--hunt-infobox-link-hover);
}

.hunt-infobox-section-links .hunt-infobox-row {
    align-items: center;
}

.hunt-infobox-section-links .hunt-infobox-value {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.hunt-infobox-link img {
    vertical-align: middle;
}

.hunt-infobox.fo-nttax-infobox table,
.hunt-infobox.fo-nttax-infobox tr,
.hunt-infobox.fo-nttax-infobox td,
.hunt-infobox.fo-nttax-infobox th {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hunt-infobox-casterlist {
    margin: 0;
    padding-left: 1.2em;
}

.hunt-infobox-casterlist li {
    margin: 0;
}

.hunt-infobox-section:last-of-type {
    padding: 6px 10px !important;
    background: transparent !important;
    border-top: 1px solid transparent !important;
    box-shadow: none !important;
}

/* Mobile: Layout einklappen, Infobox unter Inhalt */
@media (max-width: 800px) {
    .hunt-layout {
        flex-direction: column;
    }
    .hunt-layout-main,
    .hunt-layout-gap,
    .hunt-layout-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .hunt-layout-gap {
        display: none;
    }
    body:not(.use-hunt-layout) .hunt-infobox.fo-nttax-infobox,
    .hunt-layout-sidebar .hunt-infobox.fo-nttax-infobox {
        float: none;
        margin: 0 auto 1em auto;
        width: 100%;
        max-width: 420px;
    }
}

/*********************************************
 * Hunt Turnier Infobox – Farben & Theme
 *********************************************/

:root {
    --hunt-infobox-bg: #060e12f0;
    --hunt-infobox-border-color: #243242;
    --hunt-infobox-shadow-color: rgba(0, 0, 0, 0.5);

    --hunt-infobox-header-bg: linear-gradient(90deg, #182436 0%, #263b57 100%);
    --hunt-infobox-header-text: #ffffff;
    --hunt-infobox-header-image-bg: #060e12;

    --hunt-infobox-row-bg-odd: rgba(255, 255, 255, 0.02);
    --hunt-infobox-row-bg-even: rgba(255, 255, 255, 0.06);

    --hunt-infobox-label-text: #c3d4e6;
    --hunt-infobox-value-text: #f5f7fb;

    --hunt-infobox-link-color: #6cb6ff;
    --hunt-infobox-link-hover: #9dd1ff;
}

/*********************************************
 * Hunt-Turnier Tabellen (Farben wie Infobox)
 *********************************************/

.hunt-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    margin-top: 0.5rem;
    border: none;
}

.hunt-table th,
.hunt-table td {
    padding: 8px 12px;
    border: none;
    color: var(--hunt-infobox-value-text);
}

.hunt-table th {
    background: var(--hunt-infobox-header-bg);
    color: var(--hunt-infobox-header-text);
    font-weight: 700;
    text-align: left;
}

.hunt-table tr:nth-child(odd) td {
    background: var(--hunt-infobox-row-bg-odd);
}

.hunt-table tr:nth-child(even) td {
    background: var(--hunt-infobox-row-bg-even);
}

.hunt-table tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.hunt-table tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/*********************************************
 * Hunt Turnier Portal-Boxen (3-Spalten-Layout)
 *********************************************/

.hunt-portal-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.hunt-portal-box {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    background: #060e12f0;
    border: 1px solid #243242;
    overflow: hidden;
    font-size: 0.9rem;
    position: relative;
}

.hunt-portal-box-title {
    padding: 6px 10px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: var(--hunt-infobox-header-bg);
}

.hunt-portal-box-body {
    padding: 8px 16px;
}

.hunt-portal-box-body ul {
    margin: 0 !important;
    padding-left: .75rem !important;
    list-style-position: outside;
    list-style-type: square;
}

.hunt-portal-box-body li {
    margin: 0.15rem 0;
}

.hunt-portal-box a {
    color: var(--hunt-infobox-link-color);
    text-decoration: none;
    font-weight: 500;
}

.hunt-portal-box a:hover {
    text-decoration: underline;
    color: var(--hunt-infobox-link-hover);
}

@media (max-width: 900px) {
    .hunt-portal-row {
        flex-direction: column;
    }
}

/*****************************
 *  HuntPixo-Regeln Box 
 ****************************/

.huntpixo-regeln {
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem 1.2rem 1.1rem 1.2rem;
  margin: 1.5rem 0;
  background: #060e12f0;
  color: #f5f5f5;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  font-size: 0.95rem;
}

/* Hauptüberschrift im Block */
.huntpixo-regeln-header {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.35rem;
}

/* Sekundäre Abschnittsüberschriften */
.huntpixo-section-header {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffd77a;
}

/* Grid für allgemeine & spezifische Regeln */
.huntpixo-regeln-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.huntpixo-row {
  display: grid;
  grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.1rem;
  align-items: flex-start;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  background: var(--hunt-infobox-row-bg-odd);
}

.huntpixo-row:nth-child(even) {
  background: var(--hunt-infobox-row-bg-even);
}

.huntpixo-label {
  font-weight: 600;
  color: var(--hunt-infobox-label-text);
  white-space: nowrap;
}

.huntpixo-value {
  color: var(--hunt-infobox-value-text);
}

/* Punkte-Box (hervorgehoben, aber farblich passend) */
.huntpixo-punkte-box {
  padding: 0.5rem 0.6rem;
  border-radius: 4px;
  background: radial-gradient(circle at left top, #070d15 40%, #182436 100%);
  border: 1px solid rgba(180,255,180,0.25);
  color: #eafbe4;
}

.huntpixo-punkte-list {
  display: block;
}

.huntpixo-punkte-list p {
  margin: 0.15rem 0;
}

.huntpixo-punkte-list b {
  font-weight: 600;
}

/* Leitfaden-Box – JS-gesteuert, hervorgehoben */
.huntpixo-leitfaden-box {
  margin-top: 1.2rem;
  border-radius: 4px;
  background: #05080d;
  border: 1px solid #111821;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
}

.huntpixo-leitfaden-kopf {
  position: relative;
  padding: 0.45rem 0.9rem 0.45rem 1.8rem;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: #dfe6f3;
  border-bottom: 1px solid #0c1119;
  background: linear-gradient(90deg, #070d15 40%, #182436);
}

.huntpixo-leitfaden-kopf::before {
  content: "▶";
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #dfe6f3;
  transition: transform 0.15s ease-out;
}

.huntpixo-leitfaden-inhalt {
  display: none;
  padding: 0.55rem 0.9rem 0.7rem 0.9rem;
  background: #0e1620;
  font-size: 0.9rem;
}

.huntpixo-leitfaden-open .huntpixo-leitfaden-kopf::before {
  transform: translateY(-50%) rotate(90deg);
}

.huntpixo-leitfaden-open .huntpixo-leitfaden-inhalt {
  display: block;
}

.huntpixo-leitfaden-body p {
  margin: 0.15rem 0;
}

/* Responsive: Regeln vollbreit untereinander */
@media (max-width: 720px) {
  .huntpixo-row {
    grid-template-columns: 1fr;
  }
  .huntpixo-label {
    margin-bottom: 0.05rem;
  }
}