MediaWiki:Common.css: Difference between revisions

From Cobi Collectors Wiki
No edit summary
No edit summary
 
(262 intermediate revisions by the same user not shown)
Line 26: Line 26:
   2. BOX-ELEMENTE & HEADERS
   2. BOX-ELEMENTE & HEADERS
   ========================================================================== */
   ========================================================================== */
h1.firstHeading,
#firstHeading {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: bold !important;
    color: #000000 !important;
    border-bottom: 3px solid var(--accent-blue) !important; /* Gleiche blaue Linie wie bei den Monaten */
    padding-bottom: 8px !important;
    margin-bottom: 25px !important;
    font-size: 1.8em !important;
}
/* Kategorie-Überschrift "Pages in category..." an den h1-Stil anpassen */
#mw-pages h2 {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: bold !important;
    color: #000000 !important;
    border-bottom: 3px solid var(--accent-blue) !important; /* Die blaue Linie */
    padding-bottom: 8px !important;
    margin-bottom: 25px !important;
    font-size: 1.8em !important;
    border-top: none !important; /* Entfernt eventuelle Standard-Linien */
    margin-top: 30px !important;
}
/* Den Hinweistext unter der Kategorie-Überschrift dezenter machen */
#mw-pages > p {
    font-style: italic;
    color: #666;
    margin-top: -15px; /* Rückt ihn näher an die blaue Linie */
    margin-bottom: 20px;
    font-size: 0.9em;
}
/* Unterkategorie-Überschrift exakt wie h1 und mw-pages h2 */
#mw-subcategories h2 {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: bold !important;
    color: #000000 !important;
    border-bottom: 3px solid var(--accent-blue) !important; /* Exakt gleiche Linie */
    padding-bottom: 8px !important;
    margin-bottom: 25px !important;
    font-size: 1.8em !important;
    border-top: none !important;
    margin-top: 30px !important;
}
/* Der Hinweistext unter "Unterkategorien" (z.B. "Diese Kategorie enthält...") */
#mw-subcategories > p {
    font-style: italic;
    color: #666;
    margin-top: -15px;
    margin-bottom: 20px;
    font-size: 0.9em;
}
/* Die Liste der Unterkategorien (Buttons) */
.CategoryTreeSection {
    background: #f8f9fa !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    margin-bottom: 8px !important;
    padding: 10px 15px !important;
}
.CategoryTreeLabel {
    color: var(--accent-blue) !important; /* Nutzt deine definierte Variable */
    font-weight: 500 !important;
    text-decoration: none !important;
}
.CategoryTreeBullet {
    color: var(--accent-blue) !important;
    font-weight: bold !important;
}
 
.infobox {
.infobox {
     float: right;
     float: right;
Line 39: Line 114:
     padding: 8px 15px;
     padding: 8px 15px;
     font-size: 18px;
     font-size: 18px;
}
/* Spezifisch für die Zellen in den Header-Tabellen */
.headersetpage td, .headernocolumn td, .headercatpage td {
    vertical-align: middle;
    padding: 10px 5px;
}
.headersetpage a {
    text-decoration: none;
    font-weight: bold;
    color: #202122;
}
.headersetpage a:hover {
    color: var(--accent-blue);
}
}


.headernocolumn { height: 80px; font-size: 16px; }
.headernocolumn { height: 80px; font-size: 16px; }
.headercatpage { height: 100px; }
.headercatpage { height: 100px; }
/* MAINPAGE HEADER (FLEXBOX DESIGN) */
.header-mainpage {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--bg-light) !important;
    border: var(--border-gray) !important;
    box-shadow: var(--shadow-dark) !important;
    padding: 15px 25px !important;
    margin: 10px 0 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.header-main-text {
    flex: 1 1 0% !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #000 !important;
}
.header-main-text span {
    display: block !important;
    font-weight: normal !important;
    font-size: 15px !important;
    margin-top: 4px !important;
}
.header-main-logo {
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: center !important;
}
.header-mainpage::after {
    content: "" !important;
    flex: 1 1 0% !important;
}
/* Spezialeinstellung: Wenn wir 3 echte Teile haben, schalten wir den unsichtbaren Platzhalter aus */
.header-three-parts::after {
    display: none !important;
}
/* Sorgt dafür, dass der rechte Text (das Jahr) im Gallery-Header rechtsbündig ist */
.header-three-parts .header-main-text:last-child {
    text-align: right;
}
/* CATEGORY HEADER OPTIMIERUNG */
.headercatpage {
    width: 100% !important;
    background: var(--bg-light) !important;
    border: var(--border-gray) !important;
    box-shadow: var(--shadow-dark) !important;
    padding: 15px !important;
    border-collapse: separate !important;
    border-spacing: 10px 0 !important;
    margin-bottom: 20px !important;
}


.textbox {
.textbox {
     width: 50%;
     display: block;
     background: var(--bg-light);
     background: var(--bg-light) !important;
     border: 2px solid var(--accent-blue);
    /* Nur ein ganz feiner Rahmen, passend zum Header */
     padding: 8px 15px;
     border: 1px solid var(--border-gray) !important;
     margin: 0 auto;
    /* Der blaue Akzentstreifen links verbindet es optisch mit der H2 */
    border-left: 6px solid var(--accent-blue) !important;
    box-shadow: var(--shadow-dark) !important;
   
     padding: 15px 25px !important;
    /* Abstand nach oben verringern, damit es näher am Header sitzt */
    margin: 5px 0 25px 0 !important;
   
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #333 !important;
   
    /* Breite auf 100% zwingen, damit sie bündig mit dem Header ist */
    box-sizing: border-box;
    width: 100%;
}
 
/* Entfernt die Aufzählungspunkte, falls du nur eine Zeile Text hast */
.textbox ul {
    list-style: none !important;
     margin: 0 !important;
    padding: 0 !important;
}
}


Line 62: Line 235:
     display: block;
     display: block;
     box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
     box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    text-align: left !important;
}
}


/* ==========================================================================
/* ==========================================================================
   3. LOGO & TEXT BEREICH
   3. ARTIKEL-LAYOUT (LINKE SPALTE & INFOBOX)
   ========================================================================== */
   ========================================================================== */
.infobox {
    float: right !important;
    clear: right !important;
    width: 300px;
    margin: 0 0 20px 20px !important;
}
.mw-parser-output h2,
.mw-parser-output .gallery,
.mw-parser-output p,
.mw-parser-output ul,
.aboutset-container {
    display: flow-root;
    margin-right: 0 !important;
    overflow: hidden;
}
.aboutset-container {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.aboutsetlogo {
.aboutsetlogo {
     width: 150px;  
     flex: 0 0 150px;
    float: left;
}
     margin: 0 30px 15px 0;
 
.aboutsettext {
     flex: 1;
}
}


.aboutsetlogo img {
h2 {
    border-bottom: 1px solid #a2a9b1;
    margin-bottom: 15px;
    padding-top: 10px;
}
 
.mw-parser-output ul {
    margin-left: 1.5em;
    padding-left: 0.5em;
    list-style-type: disc;
}
 
.aboutsettext ul {
    overflow: visible;
}
 
.mw-parser-output li {
    margin-bottom: 0.3em;
}
 
/* ==========================================================================
  4. GALERIE IM BRICK-STIL (KORRIGIERT)
  ========================================================================== */
ul.gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 10px 0 20px 0 !important;
    list-style: none !important;
    clear: none !important;
    width: auto !important;
    max-width: 100% !important;
}
 
li.gallerybox {
    flex: 0 0 180px !important;
    width: 180px !important;
    min-height: 230px !important;
    margin: 0 15px 20px 0 !important;
    background: var(--bg-light) !important;
    border: var(--border-gray) !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    transition: background 0.2s ease !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    vertical-align: top;
}
 
li.gallerybox:hover {
    background-color: rgba(159, 182, 205, 0.25) !important;
    border-color: #a2a9b1 !important;
    cursor: pointer;
}
 
li.gallerybox div.thumb {
    height: 150px !important;
     width: 100% !important;
     width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
}
/* Das umschließende DIV und der A-Link haben oft Inline-Styles wie "width: 120px" */
li.gallerybox div.thumb > div,
li.gallerybox div.thumb a.mw-file-description {
    width: 100% !important;  /* Ignoriert die generierte Pixelbreite */
    height: 100% !important;  /* Nutzt die vollen 150px Höhe */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
li.gallerybox div.thumb img {
    /* Diese Kombination erzwingt, dass das Bild innerhalb des 150px Rahmens bleibt */
    max-height: 140px !important; /* Etwas Puffer zum Rand */
    max-width: 160px !important;  /* Etwas Puffer zum Rand */
    width: auto !important;
     height: auto !important;
     height: auto !important;
    object-fit: contain !important;
}
.gallerytext {
    width: auto !important; /* Erlaubt der Box, sich natürlicher im Flex-Container zu verhalten */
    margin: 0 !important;
    /* KORREKTUR: Weniger Padding zu den Seiten (8px statt 15px), damit langer Text nicht rechts anstößt */
    padding: 10px 8px !important;
    text-align: left !important;
    font-size: 13px !important;
    font-weight: bold !important;
    line-height: 1.3 !important; /* Etwas kompakter für lange Namen */
    box-sizing: border-box !important;
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}
/* Falls MediaWiki noch eine innere Zentrierung erzwingt: */
.gallerytext p {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}
li.gallerybox > div {
    width: 100% !important;
}
/* ==========================================================================
  12. SPEZIAL-FIX FÜR ÜBERSICHTSSEITEN (EIGENE KLASSE)
  ========================================================================== */
.gallery-overview-fix li.gallerybox {
    background: var(--bg-light) !important;
    border: var(--border-gray) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 230px !important; /* Feste Gesamthöhe wie im Artikel */
}
/* Der obere Teil (Bild) nimmt jetzt den gesamten restlichen Platz ein */
.gallery-overview-fix li.gallerybox div.thumb {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    flex: 1 1 auto !important; /* Das Bild "drückt" den Text nach unten */
    display: flex !important;
    align-items: center !important;
}
}


.aboutsettext {
/* Der weiße Textbereich (Unten) wird jetzt kompakt gehalten */
     overflow: hidden;  
.gallery-overview-fix .gallerytext {
     min-height: 120px;
     background: #ffffff !important;
     border-top: 1px solid #ddd !important;
    padding: 8px 15px !important; /* Etwas kompakteres Padding */
    margin: 0 !important;
    flex: 0 0 auto !important; /* Nimmt sich nur so viel Platz wie nötig */
    height: 45px !important;    /* Feste Höhe für einzeiligen Text (anpassbar) */
    display: flex !important;
    align-items: center !important; /* Zentriert die Nummer vertikal im Weiß */
}
 
/* Hover-Verhalten */
.gallery-overview-fix li.gallerybox:hover {
    background-color: rgba(159, 182, 205, 0.25) !important;
}
 
.gallery-overview-fix li.gallerybox:hover .gallerytext {
    background: #ffffff !important;
}
 
/* ==========================================================================
  13. MONATS-TRENNER (ÜBERSCHRIFTEN) - CD KONFORM
  ========================================================================== */
 
.mw-parser-output h2 {
    color: #000 !important;
    border-bottom: 3px solid var(--accent-blue) !important; /* Kräftigerer Unterstrich */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: bold;
    padding-bottom: 8px;
    margin-top: 45px !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.5px;
}
 
/* Das Edit-Icon daneben etwas aufräumen */
.mw-editsection a {
    color: var(--accent-blue) !important;
    font-size: 11px;
    opacity: 0.6;
    vertical-align: middle;
}
}


/* ==========================================================================
/* ==========================================================================
   4. TABELLEN (COBITABLE)
   5. TABELLEN (COBITABLE)
   ========================================================================== */
   ========================================================================== */
.cobitable {
.cobitable {
     background-color: #f8f9fa;
     background-color: #fcfcfc;
    color: #202122;
     margin: 1em auto;
     margin: 1em auto;
     border: 1px solid #000;
     border: 2px solid var(--accent-blue);
     border-collapse: collapse;
     border-collapse: collapse;
     display: block;  
     display: table;
     overflow-x: auto;
     overflow-x: auto;
     width: fit-content;
     width: fit-content;
     max-width: 100%;
     max-width: 100%;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.15);
    border-radius: 4px;
}
}


.cobitable th, .cobitable td {
.cobitable th, .cobitable td {
     border: 1px solid #444 !important;
     border: 1px solid #c5d1de !important; /* Dezente Trennlinien (helleres Blau) */
     padding: 0.6em 0.8em;
     padding: 0.6em 0.8em;
}
}
Line 109: Line 480:


/* ==========================================================================
/* ==========================================================================
   5. GRIDS (MAINPAGE) - SAUBERE STRUKTUR
   6. GRIDS (MAINPAGE)
   ========================================================================== */
   ========================================================================== */
.mainparent {
.mainparent {
     display: grid;
     display: grid;
     grid-template-columns: 4fr 6fr; /* 40:60 Verhältnis */
     grid-template-columns: 4fr 6fr;
     gap: 15px;
     gap: 15px;
}
}
Line 122: Line 493:
.box4 { grid-column: 2; grid-row: 2 / 4; padding: 15px; text-align: center; }
.box4 { grid-column: 2; grid-row: 2 / 4; padding: 15px; text-align: center; }


/* Bild-Container in Box 4 */
.box4-content {
.box4-content {
     display: flex;
     display: flex !important;
     flex-wrap: wrap;
     flex-wrap: wrap !important;
     justify-content: center;
     justify-content: center !important;
     gap: 15px;
     margin-top: 15px;
     margin-top: 10px;
}
 
.box4-content p, .box4-content span { display: contents !important; }
 
.box4-content a,
.box4-content .mw-file-description {
    display: block !important;
    flex: 0 0 150px !important;
     margin: 2px !important;
    padding: 5px;         
    transition: all 0.2s ease-in-out !important;
    border-radius: 8px;
    text-decoration: none !important;
}
 
.box4-content a:hover, .box4-content .mw-file-description:hover {
    background-color: rgba(159, 182, 205, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);  
}
}


.box4-content img {
.box4-content img {
     max-width: 150px;
     width: 150px !important;
     height: auto;
     height: auto !important;
     border-radius: 4px;
     border-radius: 4px;
     transition: transform 0.3s ease;
     display: block;
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.1));
}
 
.innercenter {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 150px));
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
    margin: 10px 0;
}
}


.box4-content img:hover { transform: scale(1.05); }
.innercenter > * { display: block !important; width: 100% !important; max-width: 150px !important; }


.innercenter img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto !important;
    image-rendering: -webkit-optimize-contrast;
}
.innercenter a, .innercenter .mw-file-description {
    display: inline-block !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}
.innercenter a:hover, .innercenter .mw-file-description:hover {
    background-color: rgba(159, 182, 205, 0.25) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    z-index: 10;
}
/* ==========================================================================
  7. BRICK-CONTAINER
  ========================================================================== */
.brickparent {
.brickparent {
     display: flex !important;   /* Erzwingt Flexbox */
     display: block !important;
     flex-wrap: wrap;            /* Erlaubt Zeilenumbruch */
     text-align: left !important;
    justify-content: center;    /* Zentriert den Inhalt */
     padding: 25px;
    gap: 20px;
     background: #ebecf0;
     padding: 20px;
    margin: 1em 0;
     background: var(--bg-light);
     border: var(--border-gray);
     border: var(--border-gray);
     box-shadow: var(--shadow-dark);
     box-shadow: var(--shadow-dark);
     border-radius: 8px;
     border-radius: 8px;
    margin: 20px 0;
}
}


/* WICHTIG: MediaWiki-Wrapper müssen auch Flex-Items werden */
.brickparent p, .brickparent span { display: contents !important; }
.brickparent .mw-file-description,
 
.brickparent .floatnone,
.brickparent a, .brickparent .mw-file-description {
.brickparent .mw-file-element {
    display: inline-block !important;
     display: flex;
    vertical-align: top !important;
    justify-content: center;
    margin: 8px !important;     
     align-items: center;
    padding: 8px;             
    transition: all 0.2s ease-in-out !important;
    border-radius: 6px;
}
 
.brickparent a:hover, .brickparent .mw-file-description:hover {
     background-color: rgba(159, 182, 205, 0.3) !important;  
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);  
}
}


/* Bild-Styling */
.brickparent img {
.brickparent img {
     display: block;
     display: block !important;
     width: 200px !important;    /* Feste Breite für den "Brick"-Look */
     image-rendering: -webkit-optimize-contrast;
     height: auto !important;
}
     max-width: 100%;           /* Verhindert Überlaufen auf kleinen Screens */
 
.brickparent.size-small a, .brickparent.size-small img { width: 110px !important; height: auto !important; }
.brickparent.size-large a, .brickparent.size-large img { width: 250px !important; height: auto !important; }
 
/* ==========================================================================
   8. INHALTSVERZEICHNIS (TOC)
  ========================================================================== */
#toc, .toc, .mw-toc-panel {
    background-color: var(--bg-light) !important;
    border: 1px solid var(--accent-blue) !important; /* Blau statt Grau */
    box-shadow: 3px 3px 8px rgba(0,0,0,0.1) !important;
    border-radius: 8px;
    padding: 15px !important;
    display: inline-block;
}
 
.toctitle {
    background-color: var(--accent-blue) !important; /* SlateBlue Header */
    margin: -15px -15px 15px -15px;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}
 
.toctitle h2 {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #000 !important; /* Weißer Text auf Blauem Grund für besseren Kontrast */
    border: none !important;
}
 
/* ==========================================================================
  9. KATEGORIE-LISTEN (MEHRSPALTIG)
  ========================================================================== */
.catlinks {
     background-color: var(--bg-light) !important;
    border: var(--border-gray) !important;
     box-shadow: var(--shadow-dark);
    border-radius: 4px;
    margin-top: 2em;
}
 
.mw-category {
    column-count: 2;
    column-gap: 30px;
}
 
.mw-category-group {
    break-inside: avoid-column;
    margin-bottom: 15px;
}
 
.mw-category-group ul li {
    list-style-type: none !important;
    padding: 4px 8px; /* Etwas mehr Platz für den Hover-Effekt */
    border-bottom: 1px solid #e2e2e2;
    transition: background-color 0.2s ease;
     border-radius: 4px;
     border-radius: 4px;
    transition: transform 0.3s ease;
}
}


.brickparent img:hover {
.mw-category-group ul li a::before {
     transform: scale(1.05);
    content: "▶";
    font-size: 0.8em;
    color: var(--accent-blue);
    margin-right: 8px;
}
 
.mw-category-group ul li:hover {
     background-color: rgba(159, 182, 205, 0.2); /* 20% Deckkraft deines Akzent-Blau */
}
 
/* ==========================================================================
  10. SIDEBAR (SICHERHEITS-MODUS)
  ========================================================================== */
.sidebar-chunk {
    background: var(--bg-light) !important;
    border: var(--border-gray) !important;
    box-shadow: var(--shadow-dark) !important;
    border-radius: 5px !important;
    margin-bottom: 20px !important;
    padding: 10px !important;
}
 
.sidebar-chunk ul {
    list-style: none !important;
    margin: 5px 0 !important;
    padding: 0 !important;
}
 
.sidebar-chunk ul li a {
    color: #333 !important;
    padding: 4px 5px !important;
    display: block !important;
}
 
.sidebar-chunk ul li a:hover {
    color: var(--accent-blue) !important;
    text-decoration: underline !important;
}
 
#p-logo {
    text-align: center !important;
    margin-bottom: 15px !important;
}
 
/* Macht nur die Überschriften der Sidebar-Blöcke fett */
.mw-portlet h3,
.p-column-label {
    font-weight: bold !important;
    text-transform: none; /* Verhindert, dass alles in Großbuchstaben erscheint, falls das aktiv war */
}
 
/* Stellt sicher, dass die eigentlichen Links in der Sidebar NICHT fett sind */
.mw-portlet li a,
#p-navigation li a,
#p-tb li a {
    font-weight: normal !important;
}
}


/* ==========================================================================
/* ==========================================================================
   6. MOBILE OPTIMIERUNG
   11. MOBILE OPTIMIERUNG
   ========================================================================== */
   ========================================================================== */
@media screen and (max-width: 720px) {
@media screen and (max-width: 850px) {
     .mainparent {
     div.mainparent { display: flex !important; flex-direction: column !important; width: 100% !important; }
         display: flex;
    .box1 { order: 1 !important; }
         flex-direction: column;
    .box2 { order: 2 !important; }
    .box3 { order: 3 !important; }
    .box4 { order: 4 !important; }
 
    .box4-content { display: block !important; text-align: center !important; }
    .box4-content * { display: inline-flex !important; width: auto !important; }
    .box4-content a, .box4-content .mw-file-description {
         display: inline-block !important;
        width: 42% !important;
        margin: 5px !important;
         vertical-align: top !important;
     }
     }
    .box4-content img { width: 100% !important; max-width: 110px !important; height: auto !important; }
    .brickparent.size-large a, .brickparent.size-large img { width: 100% !important; max-width: 250px !important; height: auto !important; }
    .innercenter { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 8px !important; }
    .innercenter > * { display: contents !important; }


     .box1, .box2, .box3, .box4, .infobox, .textbox {
     .infobox {
        float: none !important;
         width: 100% !important;
         width: 100% !important;
         float: none !important;
         margin: 10px 0 20px 0 !important;
        clear: both !important;
    }
 
    .aboutset-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-right: 0 !important;
    }
 
    .aboutsetlogo {
        flex: 0 0 auto !important;
         margin: 0 0 15px 0 !important;
         margin: 0 0 15px 0 !important;
        max-width: 100px !important;
    }
    .aboutsetlogo img {
        width: 100% !important;   
        height: auto !important;
    }
    .aboutsettext ul {
        text-align: left !important;
        display: inline-block;
    }
                ul.gallery {
        max-width: 100% !important;
        justify-content: center !important;
        display: flex !important;
        gap: 10px;
    }
    li.gallerybox {
        width: calc(50% - 20px) !important;
        min-width: 140px !important;
        height: auto !important;
        min-height: 200px !important;
        margin: 5px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    li.gallerybox div.thumb {
        height: auto !important;       
        min-height: 130px !important; 
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        position: static !important;   
        padding: 10px !important;
        box-sizing: border-box !important;
    }
    li.gallerybox .thumb img {
        max-width: 100% !important;
        max-height: 120px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    .gallerytext {
        position: static !important;
        width: 100% !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        box-sizing: border-box !important;
     }
     }
      
      
     .headernocolumn, .headercatpage { height: auto; }
    /* 2 Boxen nebeneinander ermöglichen */
}
    .gallery-overview-fix li.gallerybox {
        flex: 1 1 140px !important;
        max-width: 48% !important;
        min-height: 180px !important; /* Mobil etwas niedriger als Desktop */
        height: auto !important;
    }
 
    /* Der weiße Textbereich mobil */
    .gallery-overview-fix .gallerytext {
        height: auto !important;      /* Hebt die feste Desktop-Höhe (45px) auf */
        min-height: 35px !important;  /* Mindesthöhe für kurze Nummern */
        padding: 6px 8px !important;  /* Kompakteres Padding spart Platz */
        font-size: 14px !important;    /* Kleinere Schrift für bessere Lesbarkeit */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important; /* Zentriert die Nummer mobil */
        text-align: center !important;
        flex-grow: 1 !important;      /* Zwingt das Weiß bis ganz nach unten */
    }
 
    /* Bildbereich mobil schrumpfen */
    .gallery-overview-fix li.gallerybox div.thumb {
        height: 110px !important;
        flex-grow: 0 !important;      /* Bild dehnt sich nicht unnötig aus */
    }
   
    .headersetpage {
        display: table !important;
        width: 100% !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
    }
 
    .headersetpage td {
        padding: 6px 4px !important;
    }
 
    .headersetpage td:first-child,
    .headersetpage td:last-child {
        width: 10% !important;
        white-space: nowrap;
    }
   
    .header-mainpage {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px 15px !important;
    }
 
    .header-main-text {
        order: 2;
        margin-top: 15px !important;
        text-align: center !important;
    }
 
    .header-main-logo {
        order: 1;
        margin: 0 auto !important;
    }
 
    .header-mainpage::after {
        display: none !important;
    }
   
    .headercatpage {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }
 
    .headercatpage tbody,
    .headercatpage tr {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
    }
 
    .headercatpage td {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        padding: 2px 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        border: none !important;
    }
 
    .headercatpage td:nth-child(2) { order: 1; }
    .headercatpage td:first-child { order: 2; }   
    .headercatpage td:last-child { order: 3; }   
 
     .headercatpage td,  
    .headercatpage td b,
    .headercatpage td strong {
        font-size: 18px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        overflow: visible !important;
    }
 
    .headercatpage td:nth-child(2) img {
        max-width: 180px !important;
        height: auto !important;
        margin: 0 auto 5px auto !important;
    }
   
    .textbox {
        text-align: center !important; /* Text zentrieren für die Balance */
        border-left: none !important; /* Seitenstreifen weg */
        border-top: 5px solid var(--accent-blue) !important; /* Akzent nach oben */
        border-radius: 4px !important;
        margin: 10px 0 !important; /* Ein bisschen mehr Luft zum Header */
        padding: 15px !important;
    }
   
    /* Den Standard-Container aufhübschen */
    #catlinks {
        background-color: #f8f9fa !important;
        border: 1px solid #c8ccd1 !important;
        border-radius: 8px !important;
        padding: 15px !important;
        margin: 20px 10px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    }
 
    /* Die Liste der Kategorien flexibel machen */
    #mw-normal-catlinks ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }
 
    /* Jede einzelne Kategorie wie einen Button stylen */
    #mw-normal-catlinks li {
        border-left: none !important; /* Entfernt den Standard-Trennstrich */
        padding: 0 !important;
        margin: 0 !important;
    }
 
    #mw-normal-catlinks li a {
        display: inline-block !important;
        background: #ffffff !important;
        border: 1px solid #36c !important;
        border-radius: 20px !important;
        padding: 6px 14px !important;
        font-size: 0.9em !important;
        color: #36c !important;
        text-decoration: none !important;
        transition: background 0.2s, color 0.2s !important;
    }


.brickparent {
    /* Kleiner Effekt beim Tippen (Touch) */
         gap: 10px;
    #mw-normal-catlinks li a:active {
         padding: 10px;
         background: #36c !important;
         color: #fff !important;
     }
     }
      
      
     .brickparent img {
     /* Das Wort "Kategorien:" etwas dezenter machen */
         max-width: 150px !important; /* Etwas kleiner auf Handys für 2 Bilder nebeneinander */
    #mw-normal-catlinks b {
        font-weight: bold !important;
        color: #54595d !important;
        font-size: 0.85em !important;
        text-transform: uppercase !important;
         letter-spacing: 0.5px !important;
    }
}
 
@media screen and (max-width: 450px) {
    li.gallerybox {
        width: 100% !important;
        margin: 10px 0 !important;
     }
     }
}

Latest revision as of 12:58, 8 February 2026

/* ==========================================================================
   1. VARIABLEN & BASIS-STYLING
   ========================================================================== */
:root {
    --bg-light: #ebecf0;
    --border-gray: 1px solid #aaa;
    --shadow-dark: 5px 5px 10px black;
    --accent-blue: #9FB6CD;
}

.mw-parser-output img {
    max-width: 100%;
    height: auto;
}

/* Gemeinsame Basis für alle Box-Elemente */
.infobox, .headersetpage, .headernocolumn, .headercatpage, 
.box1, .box2, .box3, .box4 {
    background: var(--bg-light);
    border: var(--border-gray);
    box-shadow: var(--shadow-dark);
    box-sizing: border-box;
}

/* ==========================================================================
   2. BOX-ELEMENTE & HEADERS
   ========================================================================== */
h1.firstHeading, 
#firstHeading {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: bold !important;
    color: #000000 !important;
    border-bottom: 3px solid var(--accent-blue) !important; /* Gleiche blaue Linie wie bei den Monaten */
    padding-bottom: 8px !important;
    margin-bottom: 25px !important;
    font-size: 1.8em !important;
}

/* Kategorie-Überschrift "Pages in category..." an den h1-Stil anpassen */
#mw-pages h2 {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: bold !important;
    color: #000000 !important;
    border-bottom: 3px solid var(--accent-blue) !important; /* Die blaue Linie */
    padding-bottom: 8px !important;
    margin-bottom: 25px !important;
    font-size: 1.8em !important;
    border-top: none !important; /* Entfernt eventuelle Standard-Linien */
    margin-top: 30px !important;
}

/* Den Hinweistext unter der Kategorie-Überschrift dezenter machen */
#mw-pages > p {
    font-style: italic;
    color: #666;
    margin-top: -15px; /* Rückt ihn näher an die blaue Linie */
    margin-bottom: 20px;
    font-size: 0.9em;
}

/* Unterkategorie-Überschrift exakt wie h1 und mw-pages h2 */
#mw-subcategories h2 {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: bold !important;
    color: #000000 !important;
    border-bottom: 3px solid var(--accent-blue) !important; /* Exakt gleiche Linie */
    padding-bottom: 8px !important;
    margin-bottom: 25px !important;
    font-size: 1.8em !important;
    border-top: none !important;
    margin-top: 30px !important;
}

/* Der Hinweistext unter "Unterkategorien" (z.B. "Diese Kategorie enthält...") */
#mw-subcategories > p {
    font-style: italic;
    color: #666;
    margin-top: -15px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

/* Die Liste der Unterkategorien (Buttons) */
.CategoryTreeSection {
    background: #f8f9fa !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    margin-bottom: 8px !important;
    padding: 10px 15px !important;
}

.CategoryTreeLabel {
    color: var(--accent-blue) !important; /* Nutzt deine definierte Variable */
    font-weight: 500 !important;
    text-decoration: none !important;
}

.CategoryTreeBullet {
    color: var(--accent-blue) !important;
    font-weight: bold !important;
}
   
.infobox {
    float: right;
    margin: 0 0 0.5em 0.5em;
    padding: 0.5em;
    width: 300px;
    vertical-align: middle;
}

.headersetpage, .headernocolumn, .headercatpage {
    width: 100%;
    margin-bottom: 20px;
    padding: 8px 15px;
    font-size: 18px;
}

/* Spezifisch für die Zellen in den Header-Tabellen */
.headersetpage td, .headernocolumn td, .headercatpage td {
    vertical-align: middle;
    padding: 10px 5px;
}

.headersetpage a {
    text-decoration: none;
    font-weight: bold;
    color: #202122;
}

.headersetpage a:hover {
    color: var(--accent-blue);
}

.headernocolumn { height: 80px; font-size: 16px; }
.headercatpage { height: 100px; }

/* MAINPAGE HEADER (FLEXBOX DESIGN) */
.header-mainpage {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--bg-light) !important;
    border: var(--border-gray) !important;
    box-shadow: var(--shadow-dark) !important;
    padding: 15px 25px !important;
    margin: 10px 0 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.header-main-text {
    flex: 1 1 0% !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #000 !important;
}

.header-main-text span {
    display: block !important;
    font-weight: normal !important; 
    font-size: 15px !important;
    margin-top: 4px !important;
}

.header-main-logo {
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: center !important;
}

.header-mainpage::after {
    content: "" !important;
    flex: 1 1 0% !important;
}

/* Spezialeinstellung: Wenn wir 3 echte Teile haben, schalten wir den unsichtbaren Platzhalter aus */
.header-three-parts::after {
    display: none !important;
}

/* Sorgt dafür, dass der rechte Text (das Jahr) im Gallery-Header rechtsbündig ist */
.header-three-parts .header-main-text:last-child {
    text-align: right;
}

/* CATEGORY HEADER OPTIMIERUNG */
.headercatpage {
    width: 100% !important;
    background: var(--bg-light) !important;
    border: var(--border-gray) !important;
    box-shadow: var(--shadow-dark) !important;
    padding: 15px !important;
    border-collapse: separate !important;
    border-spacing: 10px 0 !important;
    margin-bottom: 20px !important;
}

.textbox {
    display: block;
    background: var(--bg-light) !important;
    /* Nur ein ganz feiner Rahmen, passend zum Header */
    border: 1px solid var(--border-gray) !important; 
    /* Der blaue Akzentstreifen links verbindet es optisch mit der H2 */
    border-left: 6px solid var(--accent-blue) !important; 
    box-shadow: var(--shadow-dark) !important;
    
    padding: 15px 25px !important;
    /* Abstand nach oben verringern, damit es näher am Header sitzt */
    margin: 5px 0 25px 0 !important; 
    
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    
    /* Breite auf 100% zwingen, damit sie bündig mit dem Header ist */
    box-sizing: border-box;
    width: 100%;
}

/* Entfernt die Aufzählungspunkte, falls du nur eine Zeile Text hast */
.textbox ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.box-headline {
    background-color: var(--accent-blue);
    font-size: 16px;
    padding: 8px 12px;
    margin-bottom: 15px;
    border: 1px solid #8aa3bc;
    border-radius: 4px;
    font-weight: bold;
    display: block;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    text-align: left !important;
}

/* ==========================================================================
   3. ARTIKEL-LAYOUT (LINKE SPALTE & INFOBOX)
   ========================================================================== */
.infobox {
    float: right !important;
    clear: right !important;
    width: 300px;
    margin: 0 0 20px 20px !important;
}

.mw-parser-output h2, 
.mw-parser-output .gallery, 
.mw-parser-output p,
.mw-parser-output ul,
.aboutset-container {
    display: flow-root;
    margin-right: 0 !important;
    overflow: hidden;
}

.aboutset-container {
    display: flex; 
    align-items: flex-start;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.aboutsetlogo {
    flex: 0 0 150px;
}

.aboutsettext {
    flex: 1;
}

h2 {
    border-bottom: 1px solid #a2a9b1;
    margin-bottom: 15px;
    padding-top: 10px;
}

.mw-parser-output ul {
    margin-left: 1.5em;
    padding-left: 0.5em;
    list-style-type: disc;
}

.aboutsettext ul {
    overflow: visible;
}

.mw-parser-output li {
    margin-bottom: 0.3em;
}

/* ==========================================================================
   4. GALERIE IM BRICK-STIL (KORRIGIERT)
   ========================================================================== */
ul.gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 10px 0 20px 0 !important;
    list-style: none !important;
    clear: none !important; 
    width: auto !important;
    max-width: 100% !important; 
}

li.gallerybox {
    flex: 0 0 180px !important; 
    width: 180px !important; 
    min-height: 230px !important;
    margin: 0 15px 20px 0 !important; 
    background: var(--bg-light) !important;
    border: var(--border-gray) !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    transition: background 0.2s ease !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    vertical-align: top;
}

li.gallerybox:hover {
    background-color: rgba(159, 182, 205, 0.25) !important;
    border-color: #a2a9b1 !important;
    cursor: pointer;
}

li.gallerybox div.thumb {
    height: 150px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Das umschließende DIV und der A-Link haben oft Inline-Styles wie "width: 120px" */
li.gallerybox div.thumb > div,
li.gallerybox div.thumb a.mw-file-description {
    width: 100% !important;   /* Ignoriert die generierte Pixelbreite */
    height: 100% !important;  /* Nutzt die vollen 150px Höhe */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

li.gallerybox div.thumb img {
    /* Diese Kombination erzwingt, dass das Bild innerhalb des 150px Rahmens bleibt */
    max-height: 140px !important; /* Etwas Puffer zum Rand */
    max-width: 160px !important;  /* Etwas Puffer zum Rand */
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.gallerytext {
    width: auto !important; /* Erlaubt der Box, sich natürlicher im Flex-Container zu verhalten */
    margin: 0 !important;
    /* KORREKTUR: Weniger Padding zu den Seiten (8px statt 15px), damit langer Text nicht rechts anstößt */
    padding: 10px 8px !important; 
    text-align: left !important;
    font-size: 13px !important;
    font-weight: bold !important; 
    line-height: 1.3 !important; /* Etwas kompakter für lange Namen */
    box-sizing: border-box !important;
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* Falls MediaWiki noch eine innere Zentrierung erzwingt: */
.gallerytext p {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

li.gallerybox > div {
    width: 100% !important;
}

/* ==========================================================================
   12. SPEZIAL-FIX FÜR ÜBERSICHTSSEITEN (EIGENE KLASSE)
   ========================================================================== */

.gallery-overview-fix li.gallerybox {
    background: var(--bg-light) !important;
    border: var(--border-gray) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 230px !important; /* Feste Gesamthöhe wie im Artikel */
}

/* Der obere Teil (Bild) nimmt jetzt den gesamten restlichen Platz ein */
.gallery-overview-fix li.gallerybox div.thumb {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    flex: 1 1 auto !important; /* Das Bild "drückt" den Text nach unten */
    display: flex !important;
    align-items: center !important;
}

/* Der weiße Textbereich (Unten) wird jetzt kompakt gehalten */
.gallery-overview-fix .gallerytext {
    background: #ffffff !important;
    border-top: 1px solid #ddd !important;
    padding: 8px 15px !important; /* Etwas kompakteres Padding */
    margin: 0 !important;
    flex: 0 0 auto !important; /* Nimmt sich nur so viel Platz wie nötig */
    height: 45px !important;    /* Feste Höhe für einzeiligen Text (anpassbar) */
    display: flex !important;
    align-items: center !important; /* Zentriert die Nummer vertikal im Weiß */
}

/* Hover-Verhalten */
.gallery-overview-fix li.gallerybox:hover {
    background-color: rgba(159, 182, 205, 0.25) !important;
}

.gallery-overview-fix li.gallerybox:hover .gallerytext {
    background: #ffffff !important;
}

/* ==========================================================================
   13. MONATS-TRENNER (ÜBERSCHRIFTEN) - CD KONFORM
   ========================================================================== */

.mw-parser-output h2 {
    color: #000 !important;
    border-bottom: 3px solid var(--accent-blue) !important; /* Kräftigerer Unterstrich */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: bold;
    padding-bottom: 8px;
    margin-top: 45px !important; 
    margin-bottom: 20px !important;
    letter-spacing: 0.5px;
}

/* Das Edit-Icon daneben etwas aufräumen */
.mw-editsection a {
    color: var(--accent-blue) !important;
    font-size: 11px;
    opacity: 0.6;
    vertical-align: middle;
}

/* ==========================================================================
   5. TABELLEN (COBITABLE)
   ========================================================================== */
.cobitable {
    background-color: #fcfcfc;
    color: #202122;
    margin: 1em auto;
    border: 2px solid var(--accent-blue);
    border-collapse: collapse;
    display: table;
    overflow-x: auto;
    width: fit-content;
    max-width: 100%;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.15); 
    border-radius: 4px;
}

.cobitable th, .cobitable td {
    border: 1px solid #c5d1de !important; /* Dezente Trennlinien (helleres Blau) */
    padding: 0.6em 0.8em;
}

.cobitable th {
    background-color: var(--accent-blue);
    font-weight: bold;
    text-align: center;
}

/* ==========================================================================
   6. GRIDS (MAINPAGE)
   ========================================================================== */
.mainparent {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 15px;
}

.box1 { grid-column: 1 / 3; padding: 15px; }
.box2 { grid-column: 1; padding: 15px; }
.box3 { grid-column: 1; padding: 15px; }
.box4 { grid-column: 2; grid-row: 2 / 4; padding: 15px; text-align: center; }

.box4-content {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin-top: 15px;
}

.box4-content p, .box4-content span { display: contents !important; }

.box4-content a, 
.box4-content .mw-file-description {
    display: block !important;
    flex: 0 0 150px !important;
    margin: 2px !important;
    padding: 5px;          
    transition: all 0.2s ease-in-out !important;
    border-radius: 8px;
    text-decoration: none !important;
}

.box4-content a:hover, .box4-content .mw-file-description:hover {
    background-color: rgba(159, 182, 205, 0.25); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);    
}

.box4-content img {
    width: 150px !important;
    height: auto !important;
    border-radius: 4px;
    display: block;
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.1));
}

.innercenter {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 150px));
    gap: 15px;
    justify-content: flex-start; 
    align-items: center;
    margin: 10px 0;
}

.innercenter > * { display: block !important; width: 100% !important; max-width: 150px !important; }

.innercenter img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto !important;
    image-rendering: -webkit-optimize-contrast;
}

.innercenter a, .innercenter .mw-file-description {
    display: inline-block !important;
    transition: all 0.2s ease-in-out !important; 
    cursor: pointer;
    padding: 8px; 
    border-radius: 8px;
}

.innercenter a:hover, .innercenter .mw-file-description:hover {
    background-color: rgba(159, 182, 205, 0.25) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    z-index: 10; 
}

/* ==========================================================================
   7. BRICK-CONTAINER
   ========================================================================== */
.brickparent {
    display: block !important;
    text-align: left !important;
    padding: 25px;
    background: #ebecf0;
    border: var(--border-gray);
    box-shadow: var(--shadow-dark);
    border-radius: 8px;
    margin: 20px 0;
}

.brickparent p, .brickparent span { display: contents !important; }

.brickparent a, .brickparent .mw-file-description {
    display: inline-block !important;
    vertical-align: top !important;
    margin: 8px !important;      
    padding: 8px;               
    transition: all 0.2s ease-in-out !important;
    border-radius: 6px;
}

.brickparent a:hover, .brickparent .mw-file-description:hover {
    background-color: rgba(159, 182, 205, 0.3) !important; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); 
}

.brickparent img {
    display: block !important;
    image-rendering: -webkit-optimize-contrast;
}

.brickparent.size-small a, .brickparent.size-small img { width: 110px !important; height: auto !important; }
.brickparent.size-large a, .brickparent.size-large img { width: 250px !important; height: auto !important; }

/* ==========================================================================
   8. INHALTSVERZEICHNIS (TOC)
   ========================================================================== */
#toc, .toc, .mw-toc-panel {
    background-color: var(--bg-light) !important;
    border: 1px solid var(--accent-blue) !important; /* Blau statt Grau */
    box-shadow: 3px 3px 8px rgba(0,0,0,0.1) !important;
    border-radius: 8px;
    padding: 15px !important;
    display: inline-block;
}

.toctitle {
    background-color: var(--accent-blue) !important; /* SlateBlue Header */
    margin: -15px -15px 15px -15px;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.toctitle h2 {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #000 !important; /* Weißer Text auf Blauem Grund für besseren Kontrast */
    border: none !important;
}

/* ==========================================================================
   9. KATEGORIE-LISTEN (MEHRSPALTIG)
   ========================================================================== */
.catlinks {
    background-color: var(--bg-light) !important;
    border: var(--border-gray) !important;
    box-shadow: var(--shadow-dark);
    border-radius: 4px;
    margin-top: 2em;
}

.mw-category {
    column-count: 2; 
    column-gap: 30px;
}

.mw-category-group {
    break-inside: avoid-column;
    margin-bottom: 15px;
}

.mw-category-group ul li {
    list-style-type: none !important;
    padding: 4px 8px; /* Etwas mehr Platz für den Hover-Effekt */
    border-bottom: 1px solid #e2e2e2;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.mw-category-group ul li a::before {
    content: "▶";
    font-size: 0.8em;
    color: var(--accent-blue);
    margin-right: 8px;
}

.mw-category-group ul li:hover {
    background-color: rgba(159, 182, 205, 0.2); /* 20% Deckkraft deines Akzent-Blau */
}

/* ==========================================================================
   10. SIDEBAR (SICHERHEITS-MODUS)
   ========================================================================== */
.sidebar-chunk {
    background: var(--bg-light) !important;
    border: var(--border-gray) !important;
    box-shadow: var(--shadow-dark) !important;
    border-radius: 5px !important;
    margin-bottom: 20px !important;
    padding: 10px !important;
}

.sidebar-chunk ul {
    list-style: none !important;
    margin: 5px 0 !important;
    padding: 0 !important;
}

.sidebar-chunk ul li a {
    color: #333 !important;
    padding: 4px 5px !important;
    display: block !important;
}

.sidebar-chunk ul li a:hover {
    color: var(--accent-blue) !important;
    text-decoration: underline !important;
}

#p-logo {
    text-align: center !important;
    margin-bottom: 15px !important;
}

/* Macht nur die Überschriften der Sidebar-Blöcke fett */
.mw-portlet h3, 
.p-column-label {
    font-weight: bold !important;
    text-transform: none; /* Verhindert, dass alles in Großbuchstaben erscheint, falls das aktiv war */
}

/* Stellt sicher, dass die eigentlichen Links in der Sidebar NICHT fett sind */
.mw-portlet li a,
#p-navigation li a,
#p-tb li a {
    font-weight: normal !important;
}

/* ==========================================================================
   11. MOBILE OPTIMIERUNG
   ========================================================================== */
@media screen and (max-width: 850px) {
    div.mainparent { display: flex !important; flex-direction: column !important; width: 100% !important; }
    .box1 { order: 1 !important; }
    .box2 { order: 2 !important; }
    .box3 { order: 3 !important; }
    .box4 { order: 4 !important; }

    .box4-content { display: block !important; text-align: center !important; }
    .box4-content * { display: inline-flex !important; width: auto !important; }
    .box4-content a, .box4-content .mw-file-description {
        display: inline-block !important;
        width: 42% !important; 
        margin: 5px !important;
        vertical-align: top !important;
    }
    .box4-content img { width: 100% !important; max-width: 110px !important; height: auto !important; }

    .brickparent.size-large a, .brickparent.size-large img { width: 100% !important; max-width: 250px !important; height: auto !important; }

    .innercenter { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 8px !important; }
    .innercenter > * { display: contents !important; }

    .infobox {
        float: none !important;
        width: 100% !important;
        margin: 10px 0 20px 0 !important;
        clear: both !important;
    }

    .aboutset-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-right: 0 !important;
    }

    .aboutsetlogo {
        flex: 0 0 auto !important;
        margin: 0 0 15px 0 !important;
        max-width: 100px !important; 
    }

    .aboutsetlogo img {
        width: 100% !important;     
        height: auto !important;
    }

    .aboutsettext ul {
        text-align: left !important; 
        display: inline-block;
    }

                ul.gallery {
        max-width: 100% !important;
        justify-content: center !important;
        display: flex !important;
        gap: 10px; 
    }

    li.gallerybox {
        width: calc(50% - 20px) !important; 
        min-width: 140px !important;
        height: auto !important; 
        min-height: 200px !important; 
        margin: 5px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    li.gallerybox div.thumb {
        height: auto !important;        
        min-height: 130px !important;   
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        position: static !important;    
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    li.gallerybox .thumb img {
        max-width: 100% !important;
        max-height: 120px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important; 
    }

    .gallerytext {
        position: static !important; 
        width: 100% !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        box-sizing: border-box !important;
    }
    
    /* 2 Boxen nebeneinander ermöglichen */
    .gallery-overview-fix li.gallerybox {
        flex: 1 1 140px !important;
        max-width: 48% !important;
        min-height: 180px !important; /* Mobil etwas niedriger als Desktop */
        height: auto !important;
    }

    /* Der weiße Textbereich mobil */
    .gallery-overview-fix .gallerytext {
        height: auto !important;      /* Hebt die feste Desktop-Höhe (45px) auf */
        min-height: 35px !important;   /* Mindesthöhe für kurze Nummern */
        padding: 6px 8px !important;   /* Kompakteres Padding spart Platz */
        font-size: 14px !important;    /* Kleinere Schrift für bessere Lesbarkeit */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important; /* Zentriert die Nummer mobil */
        text-align: center !important;
        flex-grow: 1 !important;       /* Zwingt das Weiß bis ganz nach unten */
    }

    /* Bildbereich mobil schrumpfen */
    .gallery-overview-fix li.gallerybox div.thumb {
        height: 110px !important;
        flex-grow: 0 !important;       /* Bild dehnt sich nicht unnötig aus */
    }
    
    .headersetpage {
        display: table !important; 
        width: 100% !important;
        font-size: 16px !important; 
        line-height: 1.2 !important;
    }

    .headersetpage td {
        padding: 6px 4px !important;
    }

    .headersetpage td:first-child, 
    .headersetpage td:last-child {
        width: 10% !important; 
        white-space: nowrap;
    }
    
    .header-mainpage {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px 15px !important;
    }

    .header-main-text {
        order: 2; 
        margin-top: 15px !important;
        text-align: center !important;
    }

    .header-main-logo {
        order: 1; 
        margin: 0 auto !important;
    }

    .header-mainpage::after {
        display: none !important; 
    }
    
    .headercatpage {
        display: block !important;
        width: 100% !important;
        height: auto !important; 
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    .headercatpage tbody, 
    .headercatpage tr {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
    }

    .headercatpage td {
        display: block !important;
        width: 100% !important;
        height: auto !important; 
        padding: 2px 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        border: none !important;
    }

    .headercatpage td:nth-child(2) { order: 1; } 
    .headercatpage td:first-child { order: 2; }    
    .headercatpage td:last-child { order: 3; }     

    .headercatpage td, 
    .headercatpage td b, 
    .headercatpage td strong {
        font-size: 18px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        overflow: visible !important; 
    }

    .headercatpage td:nth-child(2) img {
        max-width: 180px !important;
        height: auto !important;
        margin: 0 auto 5px auto !important;
    }
    
    .textbox {
        text-align: center !important; /* Text zentrieren für die Balance */
        border-left: none !important; /* Seitenstreifen weg */
        border-top: 5px solid var(--accent-blue) !important; /* Akzent nach oben */
        border-radius: 4px !important;
        margin: 10px 0 !important; /* Ein bisschen mehr Luft zum Header */
        padding: 15px !important;
    }
    
    /* Den Standard-Container aufhübschen */
    #catlinks {
        background-color: #f8f9fa !important;
        border: 1px solid #c8ccd1 !important;
        border-radius: 8px !important;
        padding: 15px !important;
        margin: 20px 10px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    }

    /* Die Liste der Kategorien flexibel machen */
    #mw-normal-catlinks ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }

    /* Jede einzelne Kategorie wie einen Button stylen */
    #mw-normal-catlinks li {
        border-left: none !important; /* Entfernt den Standard-Trennstrich */
        padding: 0 !important;
        margin: 0 !important;
    }

    #mw-normal-catlinks li a {
        display: inline-block !important;
        background: #ffffff !important;
        border: 1px solid #36c !important;
        border-radius: 20px !important;
        padding: 6px 14px !important;
        font-size: 0.9em !important;
        color: #36c !important;
        text-decoration: none !important;
        transition: background 0.2s, color 0.2s !important;
    }

    /* Kleiner Effekt beim Tippen (Touch) */
    #mw-normal-catlinks li a:active {
        background: #36c !important;
        color: #fff !important;
    }
    
    /* Das Wort "Kategorien:" etwas dezenter machen */
    #mw-normal-catlinks b {
        font-weight: bold !important;
        color: #54595d !important;
        font-size: 0.85em !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
}

@media screen and (max-width: 450px) {
    li.gallerybox {
        width: 100% !important; 
        margin: 10px 0 !important;
    }
}