@import url("fonts/open-sans.css");
/* Responsive public website; administration and print styles stay independent. */
html { height: auto; }
#wrapper { width: calc(100% - 32px); max-width: 1000px; }
#head, #footer { width: 100%; box-sizing: border-box; }
#head { border-radius: 14px 14px 0 0; }
#head > .links, #head > .rechts, #footer > .links, #footer > .rechts { display: none; }
#head h1 a { left: 30px; }
#head h2 a { left: 89px; }
#navi { display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 185px; }
#navi > li { float: none; left: auto; min-width: 0; }
#navi > li > a { display: block; margin: 0; font-size: 18px; }
#navi li ul { left: 0; top: 70px; z-index: 20; box-shadow: 0 5px 12px #0002; }
#navi > li:last-child ul { left: auto; right: 0; }
#navi li:focus-within > ul, #navi li.is-open > ul { display: block; }
.nav-toggle, .submenu-toggle { display: none; }
#slider { width: 100%; height: auto; }
#slider > img { display: block; width: 100%; height: auto; }
#slider label { max-width: 100%; box-sizing: border-box; }
#content, #content.einspaltig { width: 100%; box-sizing: border-box; }
#content.dreispaltig, #content.zweispaltig { display: grid; background: #fff; }
#content.dreispaltig { grid-template-columns: minmax(0,5fr) minmax(0,3fr) minmax(0,2fr); }
#content.zweispaltig { grid-template-columns: minmax(0,66fr) minmax(0,34fr); }
#content1_3, #content2_3, #content3_3, #content1_2, #content2_2 { float: none; width: auto; min-width: 0; box-sizing: border-box; }
#content2_3, #content3_3, #content2_2 { border-left: 1px solid #eee; }
#content > .cleardiv { display: none; }
#content p, #content h2, #content li { overflow-wrap: anywhere; }
#content.einspaltig p, #content.einspaltig h2 { max-width: 100%; }
#content img { max-width: 100%; height: auto; }
#content input, #content textarea, #content select { max-width: 100%; box-sizing: border-box; }
#content a.pdfbutton { width: auto; min-height: 38px; height: auto; background: none; }
#content a.pdfbutton::before { content: ''; position: absolute; top: 0; left: 0; width: 38px; height: 38px; background: url(cms/pdf_button.png) no-repeat; }
#content a.pdfbutton:hover::before { background-position: 0 -38px; }
#content a.pdfbutton span { position: static; display: block; padding: 10px 0 8px 47px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; font-size: 13px; }
#thumbnails { width: 100%; display: flex; flex-wrap: wrap; gap: 26px 20px; }
#thumbnails .thumbwrapper { float: none; margin: 0; max-width: 100%; }
.table-scroll { max-width: 100%; overflow-x: auto; }
#footer { height: auto; min-height: 92px; padding: 48px 30px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; border-radius: 0 0 14px 14px; }
#footer .schmucklinie { left: 0; width: 100%; }
#footer p.copyright, #subnavi { position: static; }
#subnavi { display: flex; flex-wrap: wrap; gap: 4px 12px; }
#subnavi li { float: none; margin: 0; }
@media (max-width: 980px) {
  #wrapper { margin: 20px auto; }
  #head { height: auto; min-height: 86px; padding-top: 86px; }
  #head h1 a, #head h2 a { top: 16px; }
  #navi { padding: 0 20px 16px; flex-wrap: wrap; gap: 0 20px; }
  #navi > li > a { line-height: 46px; }
  .navigation-ready .nav-toggle { display: block; position: absolute; top: 24px; right: 20px; background: #186215; color: #fff; border-radius: 4px; padding: 10px 14px; font-size: 16px; cursor: pointer; }
  .navigation-ready #navi { display: none; }
  .navigation-ready #navi.is-open { display: block; }
  #navi > li { position: relative; border-top: 1px solid #eee; }
  #navi > li.has-submenu > a { margin-right: 48px; }
  .submenu-toggle { display: block; position: absolute; right: 0; top: 0; width: 46px; height: 46px; background: #f2f5f1; color: #186215; cursor: pointer; }
  .nav-toggle::before, .submenu-toggle::before { content: ''; display: inline-block; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid currentColor; }
  .nav-toggle::before { margin-right: 9px; }
  .nav-toggle[aria-expanded="true"]::before, .submenu-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
  #navi li ul, #navi > li:last-child ul { position: static; box-shadow: none; padding-bottom: 10px; }
  #navi li ul li { float: none; width: auto; }
  #navi li ul li a { line-height: 1.5; padding: 10px 16px; font-size: 16px; }
  #navi li:hover ul, #navi li:focus-within ul { display: none; }
  #navi li.is-open ul { display: block; }
  html:not(.navigation-ready) #navi li ul { display: block; }
  #content.dreispaltig { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  #content1_3 { grid-column: 1 / -1; }
  #content2_3 { border-left: 0; }
  #content1_3, #content2_3, #content3_3, #content1_2, #content2_2 { padding: 24px; min-height: 0; }
  #content2_3, #content3_3 { border-top: 1px solid #eee; }
  #content p, #content ul li { font-size: 16px; line-height: 1.55; }
  #content h2 { font-size: 21px; }
  #content input.textfeld, #content textarea, #content select { font-size: 16px !important; }
  .ss_bildbereich { left: 0; }
  #content.einspaltig { padding: 24px; }
  #footer p.copyright, #subnavi li a { font-size: 14px; }
}
@media (max-width: 640px) {
  #wrapper { width: calc(100% - 20px); margin: 12px auto; }
  #content.dreispaltig, #content.zweispaltig { grid-template-columns: minmax(0,1fr); }
  #content2_3, #content3_3, #content2_2 { border-left: 0; border-top: 1px solid #eee; }
  #slider > img { min-height: 130px; object-fit: cover; }
  #slider label { position: static; display: block; padding: 8px 20px; font-size: 13px; }
  #head h1 a { left: 20px; }
  #head h2 a { left: 79px; }
  #footer { padding: 24px 20px; }
  #footer .schmucklinie { display: none; }
  #thumbnails { justify-content: center; }
}
@media (max-width: 380px) {
  #head h1 a { left: 14px; }
  #head h2 a { left: 68px; }
  .navigation-ready .nav-toggle { right: 12px; padding: 10px 9px; font-size: 14px; }
}

/* Aktuelles BDS-Logo mit weißem Schriftfeld, auch beim Hover. */
#head h2 a, #head h2 a:hover {
  background-image: url(img/bds-logo.png), linear-gradient(#fff, #fff);
  background-size: contain, 90% 26%;
  background-position: center, center 2%;
  background-repeat: no-repeat;
}
@media (max-width: 980px) {
  body { background: #fff; }
}
body, #wrapper, #wrapper * { font-family: "Open Sans", Arial, sans-serif !important; }

/* More comfortable reading sizes for the website and administration. */
#content { font-size: 16px; line-height: 1.55; }
#content p, #content ul li, #content .ss_steckbrief li,
#content .ss_trainingszeiten li, #content a.pfeillink,
#content ul#trainingsliste li h4, #content ul#skladde_termine li h4 a,
#content ul#skladde_termine li p, #content ul#funktioner a { font-size: 16px; line-height: 1.55; }
#content h2 { font-size: 20px; line-height: 1.4; }
#content h3, #content ul#veranstaltungen h3 { font-size: 18px; }
#content h4, #content ul#veranstaltungen h4 { font-size: 16px; }
#content p.termin, #content p.kommentar, #content ul#trainingsliste p.ort,
#content ul#trainingsliste p.adresse, #content ul#veranstaltungen_teaser h6,
#content ul#veranstaltungen_teaser p, #content .ss_bildbereich p a { font-size: 14px; line-height: 1.5; }
#content a.pdfbutton span, #content #thumbnails h3.galeriename { font-size: 14px; }
#footer p.copyright, #subnavi li a { font-size: 14px; }
#navi li ul li a { font-size: 17px; }
#content label, #content #cms label, #content #cms .cms_zeilentext,
#content #cms ul.entry li a, #content #cms ul.entry li span { font-size: 16px; line-height: 1.5; }
#content input.textfeld, #content textarea, #content select { font-size: 16px !important; }
#content a.pfeillink { background-position: 0 7px; }
@media (min-width: 981px) { #content3_3 { padding-right: 20px; } }