/*
 * cassiopeia_sichere_narkose: user.css
 * Kind-Template von Cassiopeia fuer www.sichere-narkose.de. Farben, Schriftgroessen, Breiten und
 * Abstaende sind am bisherigen Template sicherenarkose2020 (T3 Blank) gemessen und uebernommen
 * (Stand 02.12.2026, Messung bei 1280 px und 375 px Fensterbreite).
 * Barrierefreiheit (Kontrast, Schriftgroesse, Unterstreichung) ist ein eigener, spaeterer Schritt.
 *
 * Module und Positionen: BDA-Logo an "search", Hauptmenue, Bildlinks und Login-Menue an
 * "sidebar-left", Banner (ein ContentSwiper) an "banner", Fussmenue an "footer". Das Hauptmenue
 * muss alle Unterebenen ausgeben (Untermenuepunkte anzeigen: Ja): die Spalte zeigt davon nur
 * den aktiven Zweig, das Handy-Menue (user.js) alle.
 *
 * Aufbau: 1 Farben und Schrift, 2 Kopf, 3 Raster, 4 Banner, 5 Hauptmenue, 6 Bildlinks,
 * 7 Inhalt, 8 Inhaltsklassen der Beitraege, 9 Fuss, 10 schmale Fassung, 11 Handy-Menue.
 */

/* ---------------------------------------------------------------- 1 Farben und Schrift */
:root {
  --sn-blau: #009ee0;      /* Linie unter dem Kopf */
  --sn-oliv: #aaaa00;      /* Ueberschriften, aktiver Menuepunkt */
  --sn-petrol: #007295;    /* Hauptmenue, Hervorhebungen */
  --sn-cyan: #00bae0;      /* Untermenue */
  --sn-grau: #5c5c5c;      /* Fussmenue */

  --cassiopeia-color-primary: #009ee0;
  --cassiopeia-color-link: #0077bb;
  --cassiopeia-color-hover: #007295;
  --link-color: #0077bb;
  --link-color-rgb: 0, 119, 187;
  --link-hover-color: #007295;
  --link-hover-color-rgb: 0, 114, 149;

  --cassiopeia-font-family-body: Verdana, Helvetica, Arial, sans-serif;
  --cassiopeia-font-family-headings: Verdana, Helvetica, Arial, sans-serif;
  --cassiopeia-font-weight-headings: 700;
  --body-font-size: 12px;
  --body-line-height: 1.6;
  --body-color: #000;
  --body-bg: #fff;
}

a,
.container-component a,
.com-content-article__body a {
  text-decoration: none;
}

a:hover,
a:focus,
.container-component a:hover,
.container-component a:focus {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- 2 Kopf */
/* Logo links oben, BDA-Logo rechts auf gleicher Hoehe (senkrecht mittig zum Logo; im alten Template
   stand es 43 px tiefer). Die Breite springt wie beim alten Template in Stufen (736 / 932 / 1196 px,
   siehe Abschnitt 3), das BDA-Logo ist je Stufe 232 / 284 / 372 px breit. Der Kopf ist 128 px hoch:
   28 px oben, Logo 80 px, 20 px unten. In der schmalen Fassung stehen die Logos untereinander. */
.container-header {
  display: grid;
  grid-template-columns: [full-start] minmax(0, 1fr) [main-start] 736px [main-end] minmax(0, 1fr) [full-end];
  padding: 28px 0 20px;
  background: #fff;
  box-shadow: none;
}

.container-header > .grid-child {
  grid-column: main-start / main-end;
  grid-row: 1;
  max-width: none;
  padding: 0;
  align-items: center;
}

.container-header > .grid-child:first-child {
  justify-content: flex-start;
}

.container-header > .container-nav {
  justify-content: flex-end;
  pointer-events: none; /* liegt ueber der Logo-Zeile, nur das BDA-Logo soll klickbar sein */
}

.container-header .container-nav .container-search,
.container-header .container-nav .container-search:only-child {
  pointer-events: auto;
  margin: 0;
}

.container-header .navbar-brand {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.container-header .navbar-brand img {
  width: 188px;
  height: 80px;
}

/* Das Modul beginnt mit einem Leerabsatz, der im alten Template die Hoehe ausglich */
.container-header .container-search p {
  margin: 0 !important;
  line-height: 0;
}

.container-header .container-search img {
  width: 232px;
  max-width: 100%;
  height: auto;
}

@media (min-width: 980px) {
  .container-header {
    grid-template-columns: [full-start] minmax(0, 1fr) [main-start] 932px [main-end] minmax(0, 1fr) [full-end];
  }

  .container-header .container-search img {
    width: 284px;
  }
}

@media (min-width: 1200px) {
  .container-header {
    grid-template-columns: [full-start] minmax(0, 1fr) [main-start] 1196px [main-end] minmax(0, 1fr) [full-end];
  }

  .container-header .container-search img {
    width: 372px;
  }
}

/* ---------------------------------------------------------------- 3 Raster */
/* Schmale Fassung (unter 768 px): eine Spalte mit 28 px Rand, siehe auch Abschnitt 10 */
.site-grid {
  grid-gap: 0;
  grid-template-columns: [full-start] 28px [main-start] minmax(0, 1fr) [main-end] 28px [full-end];
  grid-template-areas:
    ". banner ."
    ". linie ."
    ". side-l ."
    ". comp ."
    ". bot-a ."
    ". bot-b .";
  margin-bottom: 0; /* Cassiopeia schiebt den Fuss sonst ans Fensterende */
  padding-bottom: 40px;
}

.site-grid > [class^="container-"],
.site-grid > [class*=" container-"] {
  padding: 0;
}

/* Cassiopeia setzt vor das erste und hinter das letzte Modul sowie um den Inhalt je 1 em Abstand */
.site-grid > .container-sidebar-left > .sidebar-left.card,
.site-grid > .container-component > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* Blaue Linie unter dem Kopf, 5 px, danach 40 px Abstand zum Inhalt */
.site-grid::before {
  content: "";
  grid-area: linie;
  border-top: 5px solid var(--sn-blau);
  margin: 0 0 40px;
}

/* Ab 768 px: Menue links, Abstand, Inhalt rechts, in den festen Stufen des alten Templates:
   768 bis 979 px: 232 + 20 + 484 = 736, 980 bis 1199 px: 203 + 40 + 689 = 932,
   ab 1200 px: 269 + 40 + 887 = 1196. */
@media (min-width: 768px) {
  .site-grid {
    grid-template-columns: [full-start] minmax(0, 1fr) [main-start] 232px 20px 484px [main-end] minmax(0, 1fr) [full-end];
    grid-template-areas:
      ". banner banner banner ."
      ". linie linie linie ."
      ". side-l . comp ."
      ". bot-a bot-a bot-a ."
      ". bot-b bot-b bot-b .";
  }
}

@media (min-width: 980px) {
  .site-grid {
    grid-template-columns: [full-start] minmax(0, 1fr) [main-start] 203px 40px 689px [main-end] minmax(0, 1fr) [full-end];
  }
}

@media (min-width: 1200px) {
  .site-grid {
    grid-template-columns: [full-start] minmax(0, 1fr) [main-start] 269px 40px 887px [main-end] minmax(0, 1fr) [full-end];
  }
}

/* Module der linken Spalte ohne Kartenrahmen und ohne eigene Abstaende */
.container-sidebar-left .card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
}

.container-sidebar-left .card-body {
  padding: 0;
}

/* ---------------------------------------------------------------- 4 Banner */
.container-banner.full-width {
  grid-area: banner;
  grid-column: main-start / main-end;
  margin-bottom: 0; /* Cassiopeia gibt dem Banner 2 em Abstand nach unten */
}

/* Unter dem Banner ist die Linie wie bisher doppelt so dick und schliesst ohne Abstand an:
   5 px hier (frueher der untere Rand des Spotlights) plus die 5 px der Linie darunter. */
.container-banner.full-width::after {
  content: "";
  display: block;
  border-top: 5px solid var(--sn-blau);
}

/* Ein ContentSwiper fuer alle Breiten: das Modul rechnet mit festen 1196 x 330 px, hier fuellt
   das Bild die Spalte und ist je Stufe 200, 250 oder 330 px hoch wie die drei frueheren Module
   (user.js stellt den Swiper dazu auf ein Bild je Ansicht). */
.container-banner .visionet-contentswiper-container-wrap {
  width: 100% !important;
}

.container-banner .visionet-contentswiper-container {
  height: auto !important;
  overflow: hidden;
  background: #e9f1f5;
}

.container-banner .swiper-slide,
.container-banner .swiper-slide img {
  height: 200px !important;
}

.container-banner .swiper-slide {
  overflow: hidden;
}

.container-banner .swiper-slide img {
  display: block;
  width: 100% !important;
  object-fit: cover;
}

@media (min-width: 980px) {
  .container-banner .swiper-slide,
  .container-banner .swiper-slide img {
    height: 250px !important;
  }
}

@media (min-width: 1200px) {
  .container-banner .swiper-slide,
  .container-banner .swiper-slide img {
    height: 330px !important;
  }
}

/* ---------------------------------------------------------------- 5 Hauptmenue */
.container-sidebar-left .mod-menu,
.container-footer .mod-menu {
  flex-direction: column;
  flex-wrap: nowrap;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

/* Blockliste statt Flex, damit die Abstaende der Punkte wie bisher ineinanderfallen */
.container-sidebar-left .mod-menu {
  display: block;
  margin: 0 0 20px;
}

.container-sidebar-left .mod-menu > li,
.container-footer .mod-menu > li {
  margin: 0 0 1px;
  padding: 0;
}

/* Im alten Template fiel der Abstand des letzten Punktes mit dem der Liste zusammen */
.container-sidebar-left .mod-menu > li:last-child {
  margin-bottom: 0;
}

.container-sidebar-left .mod-menu > li > a,
.container-footer .mod-menu > li > a {
  display: block;
  min-height: 18px;
  padding: 0 0 0 40px;
  line-height: 1.2;
  color: var(--sn-petrol);
  background: url(../images/subnav-marker-bg.png) no-repeat left bottom 6px;
}

/* Wie im alten Template ist die Textflaeche so breit wie die Spalte und beginnt 40 px eingerueckt,
   lange Punkte ragen also in den Abstand zum Inhalt */
.container-sidebar-left .mod-menu > li > a,
.container-sidebar-left .mod-menu > li > .mod-menu__sub > li > a {
  box-sizing: content-box;
  width: 100%;
}

.container-sidebar-left .mod-menu > li > a:hover,
.container-sidebar-left .mod-menu > li > a:focus,
.container-sidebar-left .mod-menu > li.active > a,
.container-footer .mod-menu > li > a:hover,
.container-footer .mod-menu > li > a:focus,
.container-footer .mod-menu > li.active > a {
  color: var(--sn-oliv);
  background-image: url(../images/subnav-marker-active-bg.png);
  text-decoration: none;
}

/* zweite Ebene (Cassiopeia rueckt Unterlisten ein und gibt den Punkten Innenabstand) */
.container-sidebar-left .mod-menu .mod-menu__sub {
  display: flow-root; /* der 1-px-Abstand des letzten Punktes zaehlt wie bisher zur Liste */
  margin: 0 0 8px;
  padding: 0;
  font-size: 14px;
}

.container-sidebar-left .mod-menu .mod-menu__sub > li {
  margin: 0 0 1px;
  padding: 0;
}

.container-sidebar-left .mod-menu__sub > li > a {
  display: block;
  min-height: 18px;
  padding: 3px 20px 3px 40px;
  line-height: 1.2;
  color: var(--sn-cyan);
}

/* Der aktive Punkt der zweiten Ebene bleibt wie im alten Template cyan */
.container-sidebar-left .mod-menu__sub > li > a:hover,
.container-sidebar-left .mod-menu__sub > li > a:focus {
  color: var(--sn-oliv);
  text-decoration: none;
}

/* dritte Ebene: rueckt 6 px an den Punkt darueber heran, Punkte brechen in der Spalte um */
.container-sidebar-left .mod-menu .mod-menu__sub .mod-menu__sub {
  margin: -6px 0 6px;
  font-size: 13px;
}

.container-sidebar-left .mod-menu__sub .mod-menu__sub > li > a {
  padding: 0 20px 0 52px;
  color: #000;
  background: url(../images/subsubsubnav-marker-bg.png) no-repeat 42px 7px;
}

.container-sidebar-left .mod-menu__sub .mod-menu__sub > li > a:hover,
.container-sidebar-left .mod-menu__sub .mod-menu__sub > li > a:focus,
.container-sidebar-left .mod-menu__sub .mod-menu__sub > li.active > a {
  color: var(--sn-oliv);
  background-image: url(../images/subsubsubnav-marker-active-bg.png);
}

/* Das Modul gibt alle Unterebenen aus, die Spalte zeigt wie bisher nur den aktiven Zweig */
.container-sidebar-left .mod-menu li:not(.active) > .mod-menu__sub {
  display: none;
}

/* Cassiopeia unterstreicht den aktiven Punkt */
.container-sidebar-left .mod-menu li.active > a,
.container-footer .mod-menu li.active > a {
  text-decoration: none;
}

/* ---------------------------------------------------------------- 6 Bildlinks */
.container-sidebar-left .mod-custom p {
  margin: 0 0 10px;
  line-height: 0;
}

.container-sidebar-left .mod-custom img {
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- 7 Inhalt */
.container-component {
  min-width: 0;
}

.com-content-article .page-header {
  display: flow-root; /* der Abstand unter der Ueberschrift faellt nicht mit dem folgenden zusammen */
  margin: 0;
  padding: 0;
  border: 0;
}

.com-content-article .page-header h1,
.container-component h1 {
  margin: 0 0 10px;
  font-size: 1.1em;
  line-height: 1;
  color: var(--sn-oliv);
}

/* Zwischenueberschriften und Trennlinie wie im alten Stylesheet */
.container-component h2 {
  margin: 10px 0;
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1.3em;
  color: var(--sn-oliv);
}

.container-component h3 {
  min-height: 46px;
  margin: 4px 0 0;
  padding: 0;
  font-size: 110%;
  font-weight: bold;
  line-height: 1.3em;
  color: var(--sn-oliv);
}

.container-component h4 {
  margin: 1em 0 0;
  font-size: 1em;
  font-weight: bold;
  line-height: 20px;
  color: #0085a7;
}

.container-component h5 {
  margin: 10px 0;
  font-size: 1.1em;
  line-height: 20px;
}

.container-component h6 {
  margin: 10px 0 0;
  font-size: 1em;
  font-weight: normal;
  line-height: 20px;
  color: var(--sn-petrol);
}

.container-component hr {
  border: 1px solid #6e8fb3;
  opacity: 1;
}

/* Das alte Template blendete Systemmeldungen aus */
#system-message-container {
  display: none;
}

.com-content-article__body p {
  margin: 0 0 10px;
}

/* Bilder im Beitrag tragen feste Masse im style-Attribut; wie im alten Template schrumpfen sie
   in schmalen Spalten im Verhaeltnis mit */
.container-component img {
  max-width: 100% !important;
  height: auto !important;
}

.com-content-article__body ul,
.com-content-article__body ol {
  margin: 0 0 10px 25px;
  padding: 0;
}

.com-content-article__body ul > li {
  list-style-type: none;
  list-style-image: url(../images/li-black.gif);
  margin-left: 1.5em;
  padding-left: 0;
  padding-bottom: 2px;
}

/* ---------------------------------------------------------------- 8 Inhaltsklassen der Beitraege */

/* FAQ zum Aufklappen (user.js) */
.sn-js .faqtext {
  display: none;
}

.sn-js .faqtext.sn-offen {
  display: block;
}

/* Figurenauswahl der Anaesthesieverfahren (user.js) */
/* Wie im alten Template: unter 1200 px drei Figuren je Reihe (Liste 250 px breit), darueber alle
   sechs nebeneinander; die Liste ist fest 310 px hoch. */
ul#av-nav {
  position: relative;
  display: block;
  width: 250px;
  height: 310px;
  margin: 0 0 10px 25px;
  padding: 0;
  list-style: none;
}

ul#av-nav > li {
  position: static;
  float: left;
  margin: 0 0 12px;
  padding: 0 0 2px;
  list-style: none;
}

ul#av-nav > li > a:first-child {
  display: block;
  width: 69px;
  height: 158px;
  margin-right: 10px;
  background-repeat: no-repeat;
  text-decoration: none;
}

ul#av-nav > li#av-nav-spinal > a:first-child {
  margin-right: 0;
}

@media (min-width: 1200px) {
  ul#av-nav {
    width: auto;
  }
}

ul#av-nav li#av-nav-allgemein > a:first-child { background-image: url(../images/content/body-allgemein.png); }
ul#av-nav li#av-nav-armplexus > a:first-child { background-image: url(../images/content/body-armplexus.png); }
ul#av-nav li#av-nav-armbein > a:first-child { background-image: url(../images/content/body-armbein.png); }
ul#av-nav li#av-nav-iv > a:first-child { background-image: url(../images/content/body-iv.png); }
ul#av-nav li#av-nav-pda > a:first-child { background-image: url(../images/content/body-pda.png); }
ul#av-nav li#av-nav-spinal > a:first-child { background-image: url(../images/content/body-spinal.png); }

ul#av-nav li#av-nav-allgemein > a:first-child:hover, ul#av-nav li#av-nav-allgemein > a:first-child:focus, ul#av-nav li#av-nav-allgemein.sn-aktiv > a:first-child, div.body-allgemein { background-image: url(../images/content/body-allgemein-active.png); background-repeat: no-repeat; }
ul#av-nav li#av-nav-armplexus > a:first-child:hover, ul#av-nav li#av-nav-armplexus > a:first-child:focus, ul#av-nav li#av-nav-armplexus.sn-aktiv > a:first-child, div.body-armplexus { background-image: url(../images/content/body-armplexus-active.png); background-repeat: no-repeat; }
ul#av-nav li#av-nav-armbein > a:first-child:hover, ul#av-nav li#av-nav-armbein > a:first-child:focus, ul#av-nav li#av-nav-armbein.sn-aktiv > a:first-child, div.body-armbein { background-image: url(../images/content/body-armbein-active.png); background-repeat: no-repeat; }
ul#av-nav li#av-nav-iv > a:first-child:hover, ul#av-nav li#av-nav-iv > a:first-child:focus, ul#av-nav li#av-nav-iv.sn-aktiv > a:first-child, div.body-iv { background-image: url(../images/content/body-iv-active.png); background-repeat: no-repeat; }
ul#av-nav li#av-nav-pda > a:first-child:hover, ul#av-nav li#av-nav-pda > a:first-child:focus, ul#av-nav li#av-nav-pda.sn-aktiv > a:first-child, div.body-pda { background-image: url(../images/content/body-pda-active.png); background-repeat: no-repeat; }
ul#av-nav li#av-nav-spinal > a:first-child:hover, ul#av-nav li#av-nav-spinal > a:first-child:focus, ul#av-nav li#av-nav-spinal.sn-aktiv > a:first-child, div.body-spinal { background-image: url(../images/content/body-spinal-active.png); background-repeat: no-repeat; }

/* Ohne JavaScript steht die Beschreibung bei jeder Figur, mit JavaScript wie bisher
   32 px unter der Figurenreihe, 390 px breit */
ul#av-nav > li > span {
  display: block;
  width: 390px;
  max-width: calc(100vw - 81px);
}

/* Die Beschreibung steht wie bisher 32 px unter der unteren Figurenreihe. Bei zwei Reihen liegt sie
   damit unter der Liste; damit sie dort nicht ueber dem Fuss steht, bekommt die Liste dann Platz. */
.sn-js ul#av-nav > li > span {
  display: none;
  position: absolute;
  left: 0;
  top: 358px;
}

.sn-js ul#av-nav > li:nth-child(n+4) > span {
  top: 362px;
}

ul#av-nav:has(> li.sn-aktiv) {
  margin-bottom: 170px;
}

@media (min-width: 1200px) {
  .sn-js ul#av-nav > li > span,
  .sn-js ul#av-nav > li:nth-child(n+4) > span {
    top: 190px;
  }

  ul#av-nav:has(> li.sn-aktiv) {
    margin-bottom: 10px;
  }
}

.sn-js ul#av-nav > li.sn-aktiv > span {
  display: block;
}

/* Figur im Beitragstext: rechts neben dem Text */
div.body-allgemein,
div.body-armplexus,
div.body-armbein,
div.body-pda,
div.body-iv,
div.body-arm,
div.body-bein,
div.body-spinal {
  float: right;
  width: 69px;
  height: 158px;
  margin-left: 8px;
  background-repeat: no-repeat;
}

div.body-arm { background-image: url(../images/content/body-arm-active.png); }
div.body-bein { background-image: url(../images/content/body-bein-active.png); }

/* Sprechblasen-Kaesten */
div.blase-header {
  display: inline-block;
  padding: 8px 36px 11px 20px;
  color: #fff;
  font-weight: bold;
  background: url(../images/blase-bg-header.png) no-repeat right bottom;
}

/* feste Breite wie bisher: in Spalten unter 490 px ragt der Kasten rechts hinaus */
div.blase {
  width: 490px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: url(../images/blase-bg-top.png) no-repeat left top;
}

div.blase-body {
  min-height: 26px;
  background: url(../images/blase-bg-bottom.png) no-repeat left bottom;
}

div.blase-body-content {
  padding: 16px 20px 20px;
  line-height: 1.6em;
  color: #000;
}

div.blase-connector,
div.blase-connector-short {
  width: 8px;
  height: 22px;
  margin: 0 auto;
  background-color: var(--sn-petrol);
}

div.blase-connector-short {
  height: 13px;
}

ul.literaturliste strong,
strong.pcaption {
  font-weight: bold;
  color: var(--sn-petrol);
}

/* DOCman-Liste: Zeilen und Knopf wie bisher (Bootstrap 2), nicht wie Bootstrap 5 von Cassiopeia */
.com_docman form {
  margin: 0 0 20px;
}

.com_docman table.table {
  margin: 10px 0;
}

.com_docman .table > :not(caption) > * > * {
  padding: 8px;
  border-top: 1px solid #ddd;
  border-bottom: 0;
  line-height: 20px;
  vertical-align: middle;
  color: #000;
  background-color: transparent;
  box-shadow: none;
}

.com_docman .table-striped > tbody > tr:nth-of-type(odd) > * {
  color: #000;
  background-color: #f9f9f9;
  box-shadow: none;
}

.com_docman .table a {
  line-height: 15px;
}

.com_docman .table .btn {
  padding: 3px 9px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 4px;
  font-size: 13px;
  line-height: 20px;
  vertical-align: middle;
  color: #666;
  background: #f8f8f8 linear-gradient(#fff, #eee);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .1);
}

.docman_table_layout h1 {
  margin: 0 0 18px;
  font-size: 1.1em;
  font-weight: bold;
  line-height: 1.3em;
  color: var(--sn-oliv);
}

/* ---------------------------------------------------------------- 9 Fuss */
.footer {
  margin-top: 0;
  color: var(--sn-grau);
  background: #fff;
}

.footer .grid-child {
  display: block;
  width: 736px;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

@media (min-width: 980px) {
  .footer .grid-child {
    width: 932px;
  }
}

@media (min-width: 1200px) {
  .footer .grid-child {
    width: 1196px;
  }
}

.container-footer .mod-menu {
  display: flex;
  margin: 20px 0;
}

.container-footer .mod-menu > li {
  width: 187px;
}

.footer a:not(.btn),
.container-footer .mod-menu > li > a {
  width: 187px;
  color: var(--sn-grau);
  background-image: url(../images/subnav-kontakt-marker-bg.png);
  background-position: 0 6px;
}

.container-footer .mod-menu > li > a:hover,
.container-footer .mod-menu > li > a:focus,
.container-footer .mod-menu > li.active > a {
  color: var(--sn-oliv);
  background-image: url(../images/subnav-marker-active-bg.png);
}

/* ---------------------------------------------------------------- 10 schmale Fassung */

/* Unter 768 px wie bisher: feste Leiste oben mit dem Menueknopf, Logos untereinander und
   mittig, kein Banner, keine linke Spalte (damit auch keine Bildlinks), Inhalt in einer
   Spalte mit 28 px Rand. Das Menue faehrt von links herein, siehe Abschnitt 11. */
@media (max-width: 767.98px) {
  body {
    padding-top: 58px; /* 50 px fuer die feste Leiste plus die 8 px Seitenrand des alten Templates */
  }

  .container-header {
    display: block;
    padding: 20px 28px 30px;
  }

  .container-header > .grid-child {
    min-height: 0;
    justify-content: center !important;
    pointer-events: auto;
  }

  .container-header .container-nav .container-search,
  .container-header .container-nav .container-search:only-child {
    margin: 43px 0 0;
    width: 100%;
  }

  .container-header .container-search img {
    width: 100%;
  }

  /* Die Linie schliesst direkt an den Kopf an. Auf der Startseite stand dazwischen das (auf dem
     Handy leere) Bannerfeld: 41 px Abstand, dann die doppelte Linie wie in der breiten Fassung. */
  .container-banner.full-width {
    margin-top: 41px;
  }

  .container-banner.full-width > * {
    display: none;
  }

  /* Zwischen 600 und 767 px war das leere Bannerfeld 30 px hoeher (Mindesthoehe der Spalten) */
  @media (min-width: 600px) {
    .container-banner.full-width {
      margin-top: 71px;
    }
  }

  /* Mit JavaScript steht das Menue im Feld links (Abschnitt 11), ohne bleibt es ueber dem Inhalt */
  .sn-js .site-grid > .container-sidebar-left {
    display: none;
  }

  .site-grid > .container-sidebar-left {
    margin-bottom: 30px;
  }

  .container-sidebar-left .mod-custom {
    display: none;
  }

  .footer .grid-child {
    width: auto;
    margin: 0 28px;
    padding: 20px 0 40px;
  }

  /* Zwischenueberschriften sind in der schmalen Fassung wie bisher groesser */
  .container-component h2 {
    font-size: 21px;
    line-height: 1.25;
  }

  .container-component h3 {
    font-size: 17.5px;
    line-height: 1.25;
  }

  .container-component h4,
  .container-component h5,
  .container-component h6 {
    font-size: 14px;
    line-height: 1.25;
  }
}

/* ---------------------------------------------------------------- 11 Handy-Menue */

/* user.js legt Leiste und Feld an (Kopie des Hauptmenues mit allen Ebenen). Wie beim alten
   Template faehrt das Feld von links herein und schiebt die Seite 250 px nach rechts. */
.sn-leiste,
.sn-offcanvas {
  display: none;
}

@media (max-width: 767.98px) {
  .sn-leiste {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    width: 100%;
    height: 41px;
    border-bottom: 1px solid #ccc;
    background: linear-gradient(#fff, #e6e6e6);
    transition: left .5s;
  }

  .sn-menueknopf {
    display: block;
    width: 32px;
    height: 30px;
    margin: 4px 0 0 21px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--sn-blau);
    cursor: pointer;
  }

  .sn-menueknopf .sn-balken,
  .sn-menueknopf .sn-balken::before,
  .sn-menueknopf .sn-balken::after {
    display: block;
    width: 14px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
  }

  .sn-menueknopf .sn-balken {
    position: relative;
    margin: 0 auto;
  }

  .sn-menueknopf .sn-balken::before,
  .sn-menueknopf .sn-balken::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .sn-menueknopf .sn-balken::before {
    top: -5px;
  }

  .sn-menueknopf .sn-balken::after {
    top: 5px;
  }

  .sn-offcanvas {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: -250px;
    z-index: 1031;
    width: 250px;
    overflow-y: auto;
    visibility: hidden;
    border-top: 1px solid #e6e6e6;
    background: #f5f5f5;
    transition: left .5s, visibility 0s .5s;
  }

  .container-header,
  .site-grid,
  .container-footer {
    position: relative;
    left: 0;
    transition: left .5s;
  }

  .sn-offen,
  .sn-offen body {
    overflow-x: hidden;
  }

  .sn-offen .sn-offcanvas {
    left: 0;
    visibility: visible;
    transition: left .5s;
  }

  .sn-offen .sn-leiste,
  .sn-offen .container-header,
  .sn-offen .site-grid,
  .sn-offen .container-footer {
    left: 250px;
  }

  .sn-offcanvas ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
  }

  .sn-offcanvas li {
    display: block;
    margin: 0;
    padding: 0 0 2px;
  }

  .sn-offcanvas a {
    display: block;
    padding: 5px 20px;
    line-height: 20px;
    font-weight: 400;
    color: #666;
    text-decoration: none;
  }

  /* erste Ebene: fett, mit dem Listenpunkt des alten Templates davor */
  .sn-offcanvas > ul > li {
    display: list-item;
    margin-left: 18px;
    list-style: outside url(../images/li-black.gif);
  }

  .sn-offcanvas > ul > li > a {
    padding: 10px 20px;
    line-height: 1.6;
    font-weight: 700;
    border-bottom: 1px solid #eee;
  }

  .sn-offcanvas > ul > li.parent > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin: 8px 0 0 5px;
    vertical-align: top;
    border-top: 4px solid #0077bb;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
  }

  .sn-offcanvas > ul > li.active > a {
    color: #eee;
    background: #0077bb;
  }

  .sn-offcanvas .mod-menu__sub {
    padding: 0; /* Cassiopeia rueckt Unterlisten ein */
    background: #e6e6e6;
  }

  .sn-offcanvas li.active > a,
  .sn-offcanvas a:hover,
  .sn-offcanvas a:focus {
    text-decoration: none;
  }

  .sn-offcanvas .mod-menu__sub > li + li > a {
    border-top: 1px solid #d9d9d9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sn-leiste,
  .sn-offcanvas,
  .sn-offen .sn-offcanvas,
  .container-header,
  .site-grid,
  .container-footer {
    transition: none;
  }
}
