MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus CMO

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* =========================================================
  MediaWiki:Common.css - Christian-Morgenstern-Online
  Stand: 3.9.2026
  Wird für alle Benutzeroberflächen geladen.
 
  Aufbau
    1  Bereichsfarben
    2  Skin-Eingriffe
    3  Namespace Museum
    4  Seitenlayouts
    5  Info- und Übersichtsboxen
    6  Gedichtdarstellung
    7  Textauszeichnung
    8  Tabellen
    9  Responsive
    10  Druckansicht
 
  Die Abschnitte 9 und 10 überschreiben Regeln aus 4 bis 8.
  Sie müssen deshalb am Ende stehen.
  ========================================================= */
 


/* =========================================================
/* =========================================================
   Bereichsfarben
   Bereichsfarben
   Zuordnung Bereich zu Farbe. Wird an zwei Stellen verwendet:
   Zuordnung Bereich zu Farbe. Verwendet in den Sidebar-Marken
  Sidebar-Marken und Startseitenboxen.
  (Abschnitt 2) und den Startseitenboxen (Abschnitt 4).
   ========================================================= */
   ========================================================= */


Zeile 17: Zeile 37:
}
}


/*Verindert das Anzeigen des Inhaltsverzeichnisses, das Inhalrsverzeichnis existiert aber noch für barrierefreiheit */
.mw-parser-output .toc { display: none; }


/* Opt-in: Wenn __TOC__ in einem Wrapper sitzt, wieder anzeigen */
/* =========================================================
.mw-parser-output .show-toc .toc {
  2  Skin-Eingriffe
  display: block; /* bei Bedarf mit !important */
  Alles, was am Medik-Skin selbst ansetzt: Kopfbereich,
}
  Seitenleiste, Inhaltsverzeichnis, Bearbeitungsformular.
  ========================================================= */


/* Das muss man dann auf der Seite eintragen, wenn das Inhaltsverzeichnis eingeblendet werden soll
/* ---------- Kopfbereich ---------- */
<div class="show-toc">
__TOC__
</div>
*/


/*Zusatz in Skin-Farbbalken */
/* Zusatz im Skin-Farbbalken */
.mw-desktop-sitename::after {
.mw-desktop-sitename::after {
   content: " Christian-Morgenstern-Online";
   content: " Christian-Morgenstern-Online";
Zeile 39: Zeile 54:
}
}


/* Grundlayout: schmaler Balken links neben dem Link in Sidebar */
/* Schriftfarbe im linken Headerbereich (Banner, Sitename) */
#n-CM---Werk > a::before {
@media screen {
   content: "";
   #p-banner,
  display: inline-block;
   #p-banner a,
  width: .4em;
   #p-banner:visited,
  height: 1em;
   #p-banner:hover,
  margin-right: .4em;
   #p-banner a:visited,
   background: var(--cmo-werk) /* Karminrot */
   #p-banner a:hover,
}
   #p-banner .mw-desktop-sitename,
 
  #p-banner .mw-desktop-sitename a,
#n-CM---Leben > a::before {
   #p-banner .mw-desktop-sitename::after {
   content: "";
    color: #2B2B2B !important;
  display: inline-block;
   }
  width: .4em;
   height: 1em;
  margin-right: .4em;
   background: var(--cmo-leben) /* Petrol */
}
 
#n-CM---Quellen > a::before {
   content: "";
  display: inline-block;
  width: .4em;
   height: 1em;
  margin-right: .4em;
  background: var(--cmo-quellen) /* Goldocker */
}
 
#n-CM---Rezeptionen > a::before {
   content: "";
  display: inline-block;
  width: .4em;
  height: 1em;
  margin-right: .4em;
  background: var(--cmo-rezeptionen) /* Aubergine */
}
 
#n-CMG > a::before {
  content: "";
   display: inline-block;
  width: .4em;
  height: 1em;
  margin-right: .4em;
  background: var(--cmo-cmg) /* Türkisgrün */
}
}


#n-Museum > a::before {
/* ---------- Sidebar-Marken ---------- */
  content: "";
  display: inline-block;
  width: .4em;
  height: 1em;
  margin-right: .4em;
  background: var(--cmo-museum) /* Moosgrün */
}


/* Schmaler Farbbalken links neben dem Link. Grundform für
  alle sieben Bereiche, danach je Bereich nur die Farbe. */
#n-CM---Werk > a::before,
#n-CM---Leben > a::before,
#n-CM---Quellen > a::before,
#n-CM---Rezeptionen > a::before,
#n-CMG > a::before,
#n-Museum > a::before,
#n-Projekt > a::before {
#n-Projekt > a::before {
   content: "";
   content: "";
Zeile 100: Zeile 85:
   height: 1em;
   height: 1em;
   margin-right: .4em;
   margin-right: .4em;
  background: var(--cmo-cmo); /*warmes grau */
}
}


#n-CM---Werk > a::before        { background: var(--cmo-werk); }
#n-CM---Leben > a::before      { background: var(--cmo-leben); }
#n-CM---Quellen > a::before    { background: var(--cmo-quellen); }
#n-CM---Rezeptionen > a::before { background: var(--cmo-rezeptionen); }
#n-CMG > a::before              { background: var(--cmo-cmg); }
#n-Museum > a::before          { background: var(--cmo-museum); }
#n-Projekt > a::before          { background: var(--cmo-cmo); }


/*Zeilennummerierung*/
/* ---------- Inhaltsverzeichnis ---------- */
.poem {
  margin-left: 3.5em;
  line-height: 1.6em;
  position: relative;
}
.poem .zeilennummer {
  position: absolute;
  left: -3.5em;
  width: 3em;
  text-align: right;
  color: #666;
  font-size: 85%;
  line-height: 1.6em;
}


/* =========================================================
/* Verhindert das Anzeigen des Inhaltsverzeichnisses. Es
  Portalspalten
   existiert weiter im Quelltext, für die Barrierefreiheit. */
  Ersetzt die Tabellenspalten auf den Portalseiten.
.mw-parser-output .toc { display: none; }
   Blockweiser Umbruch, keine festen Breakpoints.
  ========================================================= */


.cmo-portalspalten {
/* Opt-in: Wenn __TOC__ in einem Wrapper sitzt, wieder anzeigen */
  display: flex;
.mw-parser-output .show-toc .toc {
  flex-wrap: wrap;
   display: block; /* bei Bedarf mit !important */
  align-items: flex-start;
   gap: 1.2em 2.5em;
}
}


.cmo-portalspalten > div {
/* Auf der Seite einzutragen, wenn das Inhaltsverzeichnis
  flex: 1 1 20em;
  eingeblendet werden soll:
  min-width: 0;
}


.cmo-portalspalten ul {
  <div class="show-toc">
  margin: 0 0 1.2em 0;
  __TOC__
  padding-left: 1.1em;
  </div>
  list-style-position: outside;
*/
}


.cmo-portalspalten li {
/* Zeigt nur die erste Ebene eines Inhaltsverzeichnisses an */
   margin-bottom: 0.15em;
.toc-nur-ebene-1 .toc ul ul {
   display: none;
}
}


.cmo-portalspalten .cmo-gruppentitel {
/* ---------- Bearbeitungsformular ---------- */
  margin: 0 0 0.3em 0;
  font-weight: bold;
}


.cmo-portalspalten .cmo-gruppentitel .cmo-zusatz {
/* Zusammenfassung ausblenden */
   font-weight: normal;
#wpSummary,
  font-size: 0.85em;
label[for="wpSummary"] {
   display: none !important;
}
}


/* Vergleichsvariante ohne Punkte, zusätzlich am Container setzen */
/* Minor-Edit-Checkbox ausblenden */
.cmo-portalspalten-blank ul {
#wpMinoredit,
   list-style: none;
label[for="wpMinoredit"] {
  padding-left: 0;
   display: none !important;
}
}




/* =========================================================
/* =========================================================
   Paralleldruck Horatius travestitus
   3  Namespace Museum
   Strophe gegen Strophe, deutsch links, lateinisch rechts.
   Kiosk-Betrieb: keine Navigation, keine Suche, volle Breite.
  Bricht unterhalb von etwa 37em Spaltenbreite um.
   ========================================================= */
   ========================================================= */


.cmo-parallel-paar {
/* Navigation ausblenden */
   display: flex;
.ns-200 #mw-navigation {
  flex-wrap: wrap;
   display: none;
  gap: 0.8em 3em;
  align-items: flex-start;
  margin-bottom: 1.4em;
}
}


.cmo-parallel-spalte {
/* Hauptinhalt auf volle Breite, da die Sidebar wegfällt */
   flex: 1 1 17em;
.ns-200 #mw-main-container .col-md-9 {
   min-width: 0;
   flex: 0 0 100%;
   max-width: 100%;
}
}


.cmo-parallel-paar .poem {
/* Suchfeld ausblenden */
   margin-left: 2.5em;
.ns-200 #p-search.mw-portlet {
  margin-top: 0;
   display: none;
  margin-bottom: 0;
}
}


.cmo-parallel-paar .poem .zeilennummer {
/* Logo nicht mehr klickbar */
  left: -2.5em;
.ns-200 #p-logo a {
  width: 2em;
   pointer-events: none;
}
   cursor: default;
 
/*Textauszeichnung "gesperrt" */
.gesperrt {
  letter-spacing: 0.12em;
}
 
/*Textauszeichnung "Serifenschrift" */
.serif {
  font-family: serif;
}
 
/*Textauszeichnung "Kapitälchen" */
.kap {
   font-variant:small-caps;
}
 
/*Einrückung mit : funzt nicht, da margin-left auf 0, das wird hier geändert*/
dl dd {
   margin-left: 1.6em !important;
}
}


/* Luftigere Darstellung für Tabellen */
.wikitable {
  border-collapse: collapse;
  border: 1px solid #aaa;
}
.wikitable th,
.wikitable td {
  padding: 6px 10px;        /* etwas mehr Luft */
  vertical-align: top;
  border: 1px solid #aaa;
}
.wikitable th {
  background-color: #f8f8f8; /* leichtes Grau für Kopfzeile */
}
/* Zusammenfassung ausblenden */
#wpSummary,
label[for="wpSummary"] {
    display: none !important;
}
/* Minor-Edit-Checkbox ausblenden */
#wpMinoredit,
label[for="wpMinoredit"] {
    display: none !important;
}
/*Wenige Gedichte von CM sind achszenriert*/
/* Grund-Wrapper für achszentrierte Gedichte */
.gedicht-achs-wrapper {
  text-align: left;
  margin: 0.5em 0;
  padding: 0;
}
/* drei Abstufungen für Abstand zur Zeilennummern-Spalte */
.gedicht-achs-wrapper-schmal { margin-left: 0.5em; }
.gedicht-achs-wrapper-mittel { margin-left: 1.5em; }
.gedicht-achs-wrapper-breit  { margin-left: 3em; }
/* Gedichtblock: Breite ergibt sich automatisch aus der längsten Zeile */
.poem.poem-achs {
  display: inline-block;
  text-align: center;
  margin: 0;
  padding: 0;
}
@media screen {
  /* Nur linker Headerbereich (Banner/Sitename) */
  #p-banner,
  #p-banner a,
  #p-banner:visited,
  #p-banner:hover,
  #p-banner a:visited,
  #p-banner a:hover,
  #p-banner .mw-desktop-sitename,
  #p-banner .mw-desktop-sitename a,
  #p-banner .mw-desktop-sitename::after {
    color: #2B2B2B !important;
  }
}


/* =========================================================
/* =========================================================
   Startseite CMO – Boxenlayout (Desktop / Responsive)
   4  Seitenlayouts
  Raster für einzelne Seiten oder Seitengruppen.
  Die zugehörigen Breakpoints stehen in Abschnitt 9.
   ========================================================= */
   ========================================================= */


/* === Grid-Container für alle Boxen === */
/* ---------- Startseite: Boxenlayout ---------- */
 
.startseite-boxen {
.startseite-boxen {
   display: grid;
   display: grid;
Zeile 293: Zeile 177:
}
}


/* === Einzelne Box === */
.box {
.box {
   padding: 1em 1.2em;
   padding: 1em 1.2em;
Zeile 301: Zeile 184:
}
}


/* === Box-Titel === */
.box > b,
.box > b,
.box > strong {
.box > strong {
Zeile 307: Zeile 189:
   margin-bottom: 0.6em;
   margin-bottom: 0.6em;
   font-size: 110%;
   font-size: 110%;
}
/* =========================================================
  Farbzuordnung (Akzent oben)
  ========================================================= */
/* Werk – Karminrot */
.box-werk {
  border-top: 8px solid var(--cmo-werk);
}
/* Leben – Petrol */
.box-leben {
  border-top: 8px solid var(--cmo-leben);
}
/* Quellen – Goldocker */
.box-quellen {
  border-top: 8px solid var(--cmo-quellen);
}
/* Rezeptionen – Aubergine */
.box-rezeptionen {
  border-top: 8px solid var(--cmo-rezeptionen);
}
/* CMG – Türkisgrün */
.box-cmg {
  border-top: 8px solid var(--cmo-cmg);
}
/* Museum – Moosgrün */
.box-museum {
  border-top: 8px solid var(--cmo-museum);
}
/* CMO – Warmes Grau */
.box-cmo {
  border-top: 8px solid var(--cmo-cmo);
}
/* =========================================================
  Responsive Anpassungen
  ========================================================= */
@media (max-width: 1100px) {
  .startseite-boxen {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .startseite-boxen {
    grid-template-columns: 1fr;
  }
}
}


Zeile 369: Zeile 196:
}
}


/* === Startseite: Listen === */
/* Farbakzent oben, je Bereich */
.box-werk        { border-top: 8px solid var(--cmo-werk); }
.box-leben      { border-top: 8px solid var(--cmo-leben); }
.box-quellen    { border-top: 8px solid var(--cmo-quellen); }
.box-rezeptionen { border-top: 8px solid var(--cmo-rezeptionen); }
.box-cmg        { border-top: 8px solid var(--cmo-cmg); }
.box-museum      { border-top: 8px solid var(--cmo-museum); }
.box-cmo        { border-top: 8px solid var(--cmo-cmo); }


/* Listen in den Boxen */
.startseite-boxen ul,
.startseite-boxen ul,
.startseite-boxen ol {
.startseite-boxen ol {
Zeile 382: Zeile 217:
}
}


/* Zeigt nur die 1. Ebene eines Inhaltsverzeichnisses an */
/* ---------- Portalspalten ---------- */
.toc-nur-ebene-1 .toc ul ul {
 
display: none;
/* Ersetzt die Tabellenspalten auf den Portalseiten.
  Blockweiser Umbruch, keine festen Breakpoints. */
 
.cmo-portalspalten {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.2em 2.5em;
}
 
.cmo-portalspalten > div {
  flex: 1 1 20em;
  min-width: 0;
}
}


/* Navigation im Museum-Namespace ausblenden */
.cmo-portalspalten ul {
.ns-200 #mw-navigation {
  margin: 0 0 1.2em 0;
    display: none;
  padding-left: 0;
  list-style: none;
}
}


/* Hauptinhalt auf volle Breite, da Sidebar wegfällt */
.cmo-portalspalten li {
.ns-200 #mw-main-container .col-md-9 {
  margin-bottom: 0.15em;
    flex: 0 0 100%;
    max-width: 100%;
}
}


/* Suchfeld wird im Namespace Museum ausgeblendet */
.cmo-portalspalten .cmo-gruppentitel {
.ns-200 #p-search.mw-portlet {
  margin: 1em 0 0.3em 0;
    display: none;
  font-size: 1.1em;
}
}


/* Logo wirddamit nicht mehr klickbar */
.cmo-portalspalten .cmo-gruppentitel .cmo-zusatz {
.ns-200 #p-logo a {
  font-size: 0.85em;
    pointer-events: none;
    cursor: default;
}
}


/* =========================================================
/* ---------- CMO:Datierungsmodell, Gutachten-Layout ---------- */
  CMO:Datierungsmodell Gutachten-Layout
  ========================================================= */


/* Viererspaltiges Raster für Schulen-Karten */
/* Raster für die Schulen-Karten */
.cmo-gutachten-raster {
.cmo-gutachten-raster {
   display: grid;
   display: grid;
Zeile 419: Zeile 261:
   gap: 1em;
   gap: 1em;
   margin: 1em 0 1.5em;
   margin: 1em 0 1.5em;
}
@media (max-width: 700px) {
  .cmo-gutachten-raster {
    grid-template-columns: 1fr;
  }
}
}


Zeile 444: Zeile 280:
}
}


/* Hinweisbox (TEI-Regeln o.ä.) */
/* Hinweisbox */
.cmo-gutachten-hinweis {
.cmo-gutachten-hinweis {
   background: #fdf6e3;
   background: #fdf6e3;
Zeile 454: Zeile 290:
}
}


/* Akzentfarben oben (Karten) */
/* Akzentfarben oben, für die Karten */
.cmo-akzent-karmin    { border-top-color: #9B3A2F; }
.cmo-akzent-karmin    { border-top-color: #9B3A2F; }
.cmo-akzent-petrol    { border-top-color: #1F5A5E; }
.cmo-akzent-petrol    { border-top-color: #1F5A5E; }
Zeile 460: Zeile 296:
.cmo-akzent-aubergine { border-top-color: #5A3E5B; }
.cmo-akzent-aubergine { border-top-color: #5A3E5B; }


/* Akzentfarben links (Feldboxen) */
/* Akzentfarben links, für die Feldboxen */
.cmo-akzent-karmin-links    { border-left-color: #9B3A2F; }
.cmo-akzent-karmin-links    { border-left-color: #9B3A2F; }
.cmo-akzent-petrol-links    { border-left-color: #1F5A5E; }
.cmo-akzent-petrol-links    { border-left-color: #1F5A5E; }
Zeile 466: Zeile 302:
.cmo-akzent-aubergine-links { border-left-color: #5A3E5B; }
.cmo-akzent-aubergine-links { border-left-color: #5A3E5B; }
.cmo-akzent-moos-links      { border-left-color: #5E6F3E; }
.cmo-akzent-moos-links      { border-left-color: #5E6F3E; }


/* =========================================================
/* =========================================================
   Info- und Übersichtsboxen
   Info- und Übersichtsboxen
   Zwei Bausteine, ein Aussehen. Infoboxen tragen
   Zwei Bausteine, ein Aussehen. Infoboxen tragen
   class="cmo-infobox", Übersichtsboxen class="cmo-uebersicht".
   class="cmo-infobox", Übersichtsboxen class="cmo-uebersicht".
Zeile 479: Zeile 316:


/* Linienfarben je Bereich. Abgeschwächte Töne, nicht die
/* Linienfarben je Bereich. Abgeschwächte Töne, nicht die
   Bereichshauptfarben aus dem :root-Block oben. Zum Ändern
   Bereichshauptfarben aus Abschnitt 1. Zum Ändern genügt
   genügt eine Zeile. */
   eine Zeile. */
table.cmo-infobox,
table.cmo-infobox,
table.cmo-uebersicht {
table.cmo-uebersicht {
Zeile 578: Zeile 415:
}
}


/* Platzhalter „–“ aus Vorlage:LeeresFeld */
/* Platzhalter aus Vorlage:LeeresFeld */
.gf-placeholder { color: #999; }
.gf-placeholder { color: #999; }


/* ---------------------------------------------------------
/* ---------- Linkfarben in beiden Boxen ----------
   Linkfarben in beiden Boxen. Einziger Ort für diese Werte.
   Einziger Ort für diese Werte. !important ist nötig gegen
  !important ist nötig gegen die Regel
  die Regel #content a:not(.new):visited { color: #007bff }
  #content a:not(.new):visited { color: #007bff }
   aus Medik_screen.css. Sie enthält einen ID-Selektor. */
   aus Medik_screen.css. Sie enthält einen ID-Selektor.
 
  --------------------------------------------------------- */
table.cmo-infobox td a:link,
table.cmo-infobox td a:link,
table.cmo-uebersicht td a:link {
table.cmo-uebersicht td a:link {
Zeile 611: Zeile 447:
table.cmo-uebersicht td a.new:hover  { color: #a96c6c !important; }
table.cmo-uebersicht td a.new:hover  { color: #a96c6c !important; }


/* ------------------------------
 
   Mobil
/* =========================================================
  ------------------------------ */
  6  Gedichtdarstellung
  Zeilennummern, Paralleldruck, achszentrierte Gedichte.
  ========================================================= */
 
/* ---------- Zeilennummerierung ---------- */
 
/* Die Nummer steht über position: absolute im linken Rand,
  den margin-left am .poem offenhält. */
.poem {
  margin-left: 3.5em;
  line-height: 1.6em;
  position: relative;
}
 
.poem .zeilennummer {
  position: absolute;
  left: -3.5em;
  width: 3em;
  text-align: right;
  color: #666;
  font-size: 85%;
  line-height: 1.6em;
}
 
/* ---------- Paralleldruck Horatius travestitus ---------- */
 
/* Strophe gegen Strophe, deutsch links, lateinisch rechts.
   Bricht unterhalb von etwa 37em Spaltenbreite um. */
 
.cmo-parallel-paar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em 3em;
  align-items: flex-start;
  margin-bottom: 1.4em;
}
 
.cmo-parallel-spalte {
  flex: 1 1 17em;
  min-width: 0;
}
 
.cmo-parallel-paar .poem {
  margin-left: 2.5em;
  margin-top: 0;
  margin-bottom: 0;
}
 
.cmo-parallel-paar .poem .zeilennummer {
  left: -2.5em;
  width: 2em;
}
 
/* ---------- Achszentrierte Gedichte ---------- */
 
/* Betrifft wenige Gedichte. Der Wrapper hält den Abstand zur
  Zeilennummern-Spalte, der Gedichtblock zentriert innen. */
 
.gedicht-achs-wrapper {
  text-align: left;
  margin: 0.5em 0;
  padding: 0;
}
 
/* drei Abstufungen für den Abstand */
.gedicht-achs-wrapper-schmal { margin-left: 0.5em; }
.gedicht-achs-wrapper-mittel { margin-left: 1.5em; }
.gedicht-achs-wrapper-breit  { margin-left: 3em; }
 
/* Breite ergibt sich automatisch aus der längsten Zeile */
.poem.poem-achs {
  display: inline-block;
  text-align: center;
  margin: 0;
  padding: 0;
}
 
 
/* =========================================================
  7  Textauszeichnung
  ========================================================= */
 
/* gesperrt */
.gesperrt {
  letter-spacing: 0.12em;
}
 
/* Serifenschrift */
.serif {
  font-family: serif;
}
 
/* Kapitälchen */
.kap {
  font-variant: small-caps;
}
 
/* Einrückung mit : greift sonst nicht, weil der Skin
  margin-left auf 0 setzt. */
dl dd {
  margin-left: 1.6em !important;
}
 
 
/* =========================================================
  8  Tabellen
  ========================================================= */
 
/* Luftigere Darstellung für Tabellen */
.wikitable {
  border-collapse: collapse;
  border: 1px solid #aaa;
}
 
.wikitable th,
.wikitable td {
  padding: 6px 10px;
  vertical-align: top;
  border: 1px solid #aaa;
}
 
.wikitable th {
  background-color: #f8f8f8; /* leichtes Grau für die Kopfzeile */
}
 
 
/* =========================================================
  9  Responsive
  Überschreibt Regeln aus den Abschnitten 4 bis 8.
  Reihenfolge von breit nach schmal.
  ========================================================= */
 
@media (max-width: 1100px) {
  .startseite-boxen {
    grid-template-columns: repeat(2, 1fr);
  }
}
 
@media (max-width: 700px) {
  .startseite-boxen {
    grid-template-columns: 1fr;
  }
  .cmo-gutachten-raster {
    grid-template-columns: 1fr;
  }
}
 
@media (max-width: 600px) {
@media (max-width: 600px) {
   table.cmo-uebersicht td,
   table.cmo-uebersicht td,
Zeile 623: Zeile 605:
}
}


/* ------------------------------
 
   Druckansicht
/* =========================================================
   ------------------------------ */
   10  Druckansicht
   ========================================================= */
 
@media print {
@media print {
   table.cmo-infobox,
   table.cmo-infobox,

Aktuelle Version vom 3. September 2026, 19:35 Uhr

/* =========================================================
   MediaWiki:Common.css - Christian-Morgenstern-Online
   Stand: 3.9.2026
   Wird für alle Benutzeroberflächen geladen.

   Aufbau
     1  Bereichsfarben
     2  Skin-Eingriffe
     3  Namespace Museum
     4  Seitenlayouts
     5  Info- und Übersichtsboxen
     6  Gedichtdarstellung
     7  Textauszeichnung
     8  Tabellen
     9  Responsive
    10  Druckansicht

   Die Abschnitte 9 und 10 überschreiben Regeln aus 4 bis 8.
   Sie müssen deshalb am Ende stehen.
   ========================================================= */


/* =========================================================
   1  Bereichsfarben
   Zuordnung Bereich zu Farbe. Verwendet in den Sidebar-Marken
   (Abschnitt 2) und den Startseitenboxen (Abschnitt 4).
   ========================================================= */

:root {
  --cmo-werk:        #9B3A2F; /* Karminrot */
  --cmo-leben:       #1F5A5E; /* Petrol */
  --cmo-quellen:     #C89B3C; /* Goldocker */
  --cmo-rezeptionen: #5A3E5B; /* Aubergine */
  --cmo-cmg:         #4F8C7A; /* Türkisgrün */
  --cmo-museum:      #5E6F3E; /* Moosgrün */
  --cmo-cmo:         #E6E1D8; /* Warmes Grau */
}


/* =========================================================
   2  Skin-Eingriffe
   Alles, was am Medik-Skin selbst ansetzt: Kopfbereich,
   Seitenleiste, Inhaltsverzeichnis, Bearbeitungsformular.
   ========================================================= */

/* ---------- Kopfbereich ---------- */

/* Zusatz im Skin-Farbbalken */
.mw-desktop-sitename::after {
  content: " Christian-Morgenstern-Online";
  font-weight: normal;
  font-size: 90%;
  margin-left: .25em;
}

/* Schriftfarbe im linken Headerbereich (Banner, Sitename) */
@media screen {
  #p-banner,
  #p-banner a,
  #p-banner:visited,
  #p-banner:hover,
  #p-banner a:visited,
  #p-banner a:hover,
  #p-banner .mw-desktop-sitename,
  #p-banner .mw-desktop-sitename a,
  #p-banner .mw-desktop-sitename::after {
    color: #2B2B2B !important;
  }
}

/* ---------- Sidebar-Marken ---------- */

/* Schmaler Farbbalken links neben dem Link. Grundform für
   alle sieben Bereiche, danach je Bereich nur die Farbe. */
#n-CM---Werk > a::before,
#n-CM---Leben > a::before,
#n-CM---Quellen > a::before,
#n-CM---Rezeptionen > a::before,
#n-CMG > a::before,
#n-Museum > a::before,
#n-Projekt > a::before {
  content: "";
  display: inline-block;
  width: .4em;
  height: 1em;
  margin-right: .4em;
}

#n-CM---Werk > a::before        { background: var(--cmo-werk); }
#n-CM---Leben > a::before       { background: var(--cmo-leben); }
#n-CM---Quellen > a::before     { background: var(--cmo-quellen); }
#n-CM---Rezeptionen > a::before { background: var(--cmo-rezeptionen); }
#n-CMG > a::before              { background: var(--cmo-cmg); }
#n-Museum > a::before           { background: var(--cmo-museum); }
#n-Projekt > a::before          { background: var(--cmo-cmo); }

/* ---------- Inhaltsverzeichnis ---------- */

/* Verhindert das Anzeigen des Inhaltsverzeichnisses. Es
   existiert weiter im Quelltext, für die Barrierefreiheit. */
.mw-parser-output .toc { display: none; }

/* Opt-in: Wenn __TOC__ in einem Wrapper sitzt, wieder anzeigen */
.mw-parser-output .show-toc .toc {
  display: block; /* bei Bedarf mit !important */
}

/* Auf der Seite einzutragen, wenn das Inhaltsverzeichnis
   eingeblendet werden soll:

   <div class="show-toc">
   __TOC__
   </div>
*/

/* Zeigt nur die erste Ebene eines Inhaltsverzeichnisses an */
.toc-nur-ebene-1 .toc ul ul {
  display: none;
}

/* ---------- Bearbeitungsformular ---------- */

/* Zusammenfassung ausblenden */
#wpSummary,
label[for="wpSummary"] {
  display: none !important;
}

/* Minor-Edit-Checkbox ausblenden */
#wpMinoredit,
label[for="wpMinoredit"] {
  display: none !important;
}


/* =========================================================
   3  Namespace Museum
   Kiosk-Betrieb: keine Navigation, keine Suche, volle Breite.
   ========================================================= */

/* Navigation ausblenden */
.ns-200 #mw-navigation {
  display: none;
}

/* Hauptinhalt auf volle Breite, da die Sidebar wegfällt */
.ns-200 #mw-main-container .col-md-9 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Suchfeld ausblenden */
.ns-200 #p-search.mw-portlet {
  display: none;
}

/* Logo nicht mehr klickbar */
.ns-200 #p-logo a {
  pointer-events: none;
  cursor: default;
}


/* =========================================================
   4  Seitenlayouts
   Raster für einzelne Seiten oder Seitengruppen.
   Die zugehörigen Breakpoints stehen in Abschnitt 9.
   ========================================================= */

/* ---------- Startseite: Boxenlayout ---------- */

.startseite-boxen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  margin: 1.5em 0;
}

.box {
  padding: 1em 1.2em;
  background: #ffffff;
  border-radius: 0px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.box > b,
.box > strong {
  display: block;
  margin-bottom: 0.6em;
  font-size: 110%;
}

/* Box über volle Zeile, links beginnend */
.box-full-left {
  grid-column: 1 / -1;
}

/* Farbakzent oben, je Bereich */
.box-werk        { border-top: 8px solid var(--cmo-werk); }
.box-leben       { border-top: 8px solid var(--cmo-leben); }
.box-quellen     { border-top: 8px solid var(--cmo-quellen); }
.box-rezeptionen { border-top: 8px solid var(--cmo-rezeptionen); }
.box-cmg         { border-top: 8px solid var(--cmo-cmg); }
.box-museum      { border-top: 8px solid var(--cmo-museum); }
.box-cmo         { border-top: 8px solid var(--cmo-cmo); }

/* Listen in den Boxen */
.startseite-boxen ul,
.startseite-boxen ol {
  margin-left: 0;
  padding-left: 1em;
}

.startseite-boxen li {
  margin-left: 0;
  padding-left: 0;
}

/* ---------- Portalspalten ---------- */

/* Ersetzt die Tabellenspalten auf den Portalseiten.
   Blockweiser Umbruch, keine festen Breakpoints. */

.cmo-portalspalten {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.2em 2.5em;
}

.cmo-portalspalten > div {
  flex: 1 1 20em;
  min-width: 0;
}

.cmo-portalspalten ul {
  margin: 0 0 1.2em 0;
  padding-left: 0;
  list-style: none;
}

.cmo-portalspalten li {
  margin-bottom: 0.15em;
}

.cmo-portalspalten .cmo-gruppentitel {
  margin: 1em 0 0.3em 0;
  font-size: 1.1em;
}

.cmo-portalspalten .cmo-gruppentitel .cmo-zusatz {
  font-size: 0.85em;
}

/* ---------- CMO:Datierungsmodell, Gutachten-Layout ---------- */

/* Raster für die Schulen-Karten */
.cmo-gutachten-raster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  margin: 1em 0 1.5em;
}

/* Einzelne Schulen-Karte */
.cmo-gutachten-karte {
  border-top: 4px solid #ccc;
  background: #faf9f7;
  padding: 0.9em 1.1em;
  font-size: 95%;
}

/* Feldbox mit linkem Akzentstreifen */
.cmo-gutachten-feldbox {
  border-left: 5px solid #ccc;
  background: #faf9f7;
  padding: 0.8em 1.2em;
  margin: 0.8em 0 1em;
  font-size: 95%;
}

/* Hinweisbox */
.cmo-gutachten-hinweis {
  background: #fdf6e3;
  border: 1px solid #e0c97a;
  border-left: 4px solid #C89B3C;
  padding: 0.7em 1.1em;
  margin: 1em 0;
  font-size: 93%;
}

/* Akzentfarben oben, für die Karten */
.cmo-akzent-karmin    { border-top-color: #9B3A2F; }
.cmo-akzent-petrol    { border-top-color: #1F5A5E; }
.cmo-akzent-gold      { border-top-color: #C89B3C; }
.cmo-akzent-aubergine { border-top-color: #5A3E5B; }

/* Akzentfarben links, für die Feldboxen */
.cmo-akzent-karmin-links    { border-left-color: #9B3A2F; }
.cmo-akzent-petrol-links    { border-left-color: #1F5A5E; }
.cmo-akzent-gold-links      { border-left-color: #C89B3C; }
.cmo-akzent-aubergine-links { border-left-color: #5A3E5B; }
.cmo-akzent-moos-links      { border-left-color: #5E6F3E; }


/* =========================================================
   5  Info- und Übersichtsboxen
   Zwei Bausteine, ein Aussehen. Infoboxen tragen
   class="cmo-infobox", Übersichtsboxen class="cmo-uebersicht".
   Dazu wahlweise eine Bereichsklasse, die nur die Linienfarbe
   tauscht: cmo-werk, cmo-leben, cmo-quellen, cmo-rezeptionen,
   cmo-cmg, cmo-museum, cmo-cmo.
   Ohne Bereichsklasse gelten die Werte des Bereichs Werk.
   Fläche ist immer #F7F7F7, sie wechselt nie.
   ========================================================= */

/* Linienfarben je Bereich. Abgeschwächte Töne, nicht die
   Bereichshauptfarben aus Abschnitt 1. Zum Ändern genügt
   eine Zeile. */
table.cmo-infobox,
table.cmo-uebersicht {
  --linie:       #DFC9C9;   /* Werk, aus Karminrot */
  --linie-innen: #E8D5D5;
}
table.cmo-infobox.cmo-werk,
table.cmo-uebersicht.cmo-werk        { --linie: #DFC9C9; --linie-innen: #E8D5D5; }
table.cmo-infobox.cmo-leben,
table.cmo-uebersicht.cmo-leben       { --linie: #CDDBDC; --linie-innen: #E4EBEC; }
table.cmo-infobox.cmo-quellen,
table.cmo-uebersicht.cmo-quellen     { --linie: #E0D2A8; --linie-innen: #EDE6D2; }
table.cmo-infobox.cmo-rezeptionen,
table.cmo-uebersicht.cmo-rezeptionen { --linie: #D1C9D1; --linie-innen: #E6E2E6; }
table.cmo-infobox.cmo-cmg,
table.cmo-uebersicht.cmo-cmg         { --linie: #D8E6E2; --linie-innen: #EAF1EF; }
table.cmo-infobox.cmo-museum,
table.cmo-uebersicht.cmo-museum      { --linie: #D2D7C9; --linie-innen: #E7E9E2; }
table.cmo-infobox.cmo-cmo,
table.cmo-uebersicht.cmo-cmo         { --linie: #D5CFC2; --linie-innen: #E4DFD4; }

/* ---------- Infobox ---------- */

table.cmo-infobox {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4em 0;
  font-size: 95%;
  background-color: #F7F7F7;
  border: 1px solid var(--linie);
}
table.cmo-infobox td {
  vertical-align: top;
  padding: 0.3em 0.6em;
  border-bottom: 1px solid var(--linie-innen);
}
table.cmo-infobox td:first-child {
  width: 20%;
  font-style: italic;
  color: #444;
  white-space: nowrap;
}
table.cmo-infobox td:last-child {
  width: 80%;
  color: #111;
}
table.cmo-infobox tr:last-child td {
  border-bottom: none;
}

/* ---------- Übersichtsbox ---------- */

table.cmo-uebersicht {
  width: 100%;
  margin: 1em 0 0.4em 0;
  border-collapse: collapse !important;
  border-spacing: 0;
  border: 1px solid var(--linie);
  border-radius: 0 !important;
  font-size: 100%;
  color: #777;                   /* Trennstriche zwischen den Titeln */
  text-align: left;
}
table.cmo-uebersicht td,
table.cmo-uebersicht th {
  border: 1px solid var(--linie-innen);
  padding: 0.4em 0.6em;
  vertical-align: top;
}

/* Außenkanten einfarbig halten */
table.cmo-uebersicht tr:first-child > * { border-top-color: var(--linie); }
table.cmo-uebersicht tr:last-child  > * { border-bottom-color: var(--linie); }
table.cmo-uebersicht tr > *:first-child { border-left-color: var(--linie); }
table.cmo-uebersicht tr > *:last-child  { border-right-color: var(--linie); }

/* Trennlinie zwischen Kopf- und Inhaltszeile */
table.cmo-uebersicht tr:first-child  > * { border-bottom-color: var(--linie-innen); }
table.cmo-uebersicht tr:nth-child(2) > * { border-top-color: var(--linie-innen); }

/* Kopfzeile */
table.cmo-uebersicht tr:first-child td,
table.cmo-uebersicht tr:first-child th {
  background: #F7F7F7;
  font-size: 95%;
  color: #555;
  padding-left: 2em;
}

/* aktuelle Seite */
table.cmo-uebersicht .mw-selflink,
table.cmo-uebersicht strong.selflink {
  color: #666;
  font-weight: bold;
  text-decoration: none;
  cursor: default;
}

/* Platzhalter aus Vorlage:LeeresFeld */
.gf-placeholder { color: #999; }

/* ---------- Linkfarben in beiden Boxen ----------
   Einziger Ort für diese Werte. !important ist nötig gegen
   die Regel #content a:not(.new):visited { color: #007bff }
   aus Medik_screen.css. Sie enthält einen ID-Selektor. */

table.cmo-infobox td a:link,
table.cmo-uebersicht td a:link {
  color: #8ea7cf !important;
  text-decoration: none;
}
table.cmo-infobox td a:visited,
table.cmo-uebersicht td a:visited {
  color: #9aa1c0 !important;
  text-decoration: none;
}
table.cmo-infobox td a:hover,
table.cmo-uebersicht td a:hover {
  color: #5f7eb5 !important;
  text-decoration: underline;
}

/* fehlende Seiten */
table.cmo-infobox td a.new:link,
table.cmo-infobox td a.new:visited,
table.cmo-uebersicht td a.new:link,
table.cmo-uebersicht td a.new:visited { color: #c58a8a !important; }
table.cmo-infobox td a.new:hover,
table.cmo-uebersicht td a.new:hover   { color: #a96c6c !important; }


/* =========================================================
   6  Gedichtdarstellung
   Zeilennummern, Paralleldruck, achszentrierte Gedichte.
   ========================================================= */

/* ---------- Zeilennummerierung ---------- */

/* Die Nummer steht über position: absolute im linken Rand,
   den margin-left am .poem offenhält. */
.poem {
  margin-left: 3.5em;
  line-height: 1.6em;
  position: relative;
}

.poem .zeilennummer {
  position: absolute;
  left: -3.5em;
  width: 3em;
  text-align: right;
  color: #666;
  font-size: 85%;
  line-height: 1.6em;
}

/* ---------- Paralleldruck Horatius travestitus ---------- */

/* Strophe gegen Strophe, deutsch links, lateinisch rechts.
   Bricht unterhalb von etwa 37em Spaltenbreite um. */

.cmo-parallel-paar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em 3em;
  align-items: flex-start;
  margin-bottom: 1.4em;
}

.cmo-parallel-spalte {
  flex: 1 1 17em;
  min-width: 0;
}

.cmo-parallel-paar .poem {
  margin-left: 2.5em;
  margin-top: 0;
  margin-bottom: 0;
}

.cmo-parallel-paar .poem .zeilennummer {
  left: -2.5em;
  width: 2em;
}

/* ---------- Achszentrierte Gedichte ---------- */

/* Betrifft wenige Gedichte. Der Wrapper hält den Abstand zur
   Zeilennummern-Spalte, der Gedichtblock zentriert innen. */

.gedicht-achs-wrapper {
  text-align: left;
  margin: 0.5em 0;
  padding: 0;
}

/* drei Abstufungen für den Abstand */
.gedicht-achs-wrapper-schmal { margin-left: 0.5em; }
.gedicht-achs-wrapper-mittel { margin-left: 1.5em; }
.gedicht-achs-wrapper-breit  { margin-left: 3em; }

/* Breite ergibt sich automatisch aus der längsten Zeile */
.poem.poem-achs {
  display: inline-block;
  text-align: center;
  margin: 0;
  padding: 0;
}


/* =========================================================
   7  Textauszeichnung
   ========================================================= */

/* gesperrt */
.gesperrt {
  letter-spacing: 0.12em;
}

/* Serifenschrift */
.serif {
  font-family: serif;
}

/* Kapitälchen */
.kap {
  font-variant: small-caps;
}

/* Einrückung mit : greift sonst nicht, weil der Skin
   margin-left auf 0 setzt. */
dl dd {
  margin-left: 1.6em !important;
}


/* =========================================================
   8  Tabellen
   ========================================================= */

/* Luftigere Darstellung für Tabellen */
.wikitable {
  border-collapse: collapse;
  border: 1px solid #aaa;
}

.wikitable th,
.wikitable td {
  padding: 6px 10px;
  vertical-align: top;
  border: 1px solid #aaa;
}

.wikitable th {
  background-color: #f8f8f8; /* leichtes Grau für die Kopfzeile */
}


/* =========================================================
   9  Responsive
   Überschreibt Regeln aus den Abschnitten 4 bis 8.
   Reihenfolge von breit nach schmal.
   ========================================================= */

@media (max-width: 1100px) {
  .startseite-boxen {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .startseite-boxen {
    grid-template-columns: 1fr;
  }
  .cmo-gutachten-raster {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  table.cmo-uebersicht td,
  table.cmo-uebersicht th { padding: .25em; }
  table.cmo-uebersicht tr:first-child td,
  table.cmo-uebersicht tr:first-child th { font-size: 80%; }
  table.cmo-uebersicht tr:last-child td,
  table.cmo-uebersicht tr:last-child th { font-size: 70%; }
}


/* =========================================================
   10  Druckansicht
   ========================================================= */

@media print {
  table.cmo-infobox,
  table.cmo-uebersicht {
    --linie: #999;
    --linie-innen: #999;
    background: none;
    font-size: 90%;
    width: 100%;
    page-break-inside: avoid;
  }
  table.cmo-infobox td {
    border: none;
    padding: 0.2em 0.5em;
    color: #000;
  }
  table.cmo-infobox td:first-child {
    font-style: italic;
    color: #000;
    width: 25%;
  }
  table.cmo-infobox td:last-child { width: 75%; }
  table.cmo-infobox td a:link,
  table.cmo-infobox td a:visited,
  table.cmo-uebersicht td a:link,
  table.cmo-uebersicht td a:visited {
    color: #000 !important;
    text-decoration: none;
  }
  .gf-placeholder { color: #555; }
}