legend{width:100%;display:block;font-weight:700;border:0}input[type=text],input[type=password],input[type=date],input[type=datetime],input[type=email],input[type=number],input[type=search],input[type=tel],input[type=time],input[type=url],input:not([type]),textarea{width:100%;display:inline-block;padding:3px 6px;background:#fff;border:1px solid #ccc;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-moz-box-shadow:inset 0 1px 1px #eee;-webkit-box-shadow:inset 0 1px 1px #eee;box-shadow:inset 0 1px 1px #eee;-moz-transition:all .15s linear;-webkit-transition:all .15s linear;-o-transition:all .15s linear;transition:all .15s linear;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}input[type=text]:focus,input[type=password]:focus,input[type=date]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=number]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=time]:focus,input[type=url]:focus,input:not([type]):focus,textarea:focus{outline:0;background:#fcfcfc;border-color:#bbb}input[type=file]{cursor:pointer}select,input[type=file]{display:block}form button,input[type=file],input[type=image],input[type=submit],input[type=reset],input[type=button],input[type=radio],input[type=checkbox]{width:auto}textarea,select[multiple],select[size]{height:auto}input[type=radio],input[type=checkbox]{margin:0 3px 0 0}input[type=radio],input[type=checkbox],label{vertical-align:middle}input[disabled],select[disabled],textarea[disabled],input[readonly],select[readonly],textarea[readonly]{cursor:not-allowed;background:#eee}input[type=radio][disabled],input[type=checkbox][disabled],input[type=radio][readonly],input[type=checkbox][readonly]{background:0 0}form button,input[type=submit],.button{display:inline-block;padding:4px 15px 4px 14px;margin-bottom:0;text-align:center;vertical-align:middle;line-height:16px;font-size:11px;color:#000;cursor:pointer;border:1px solid #ccc;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-color:#ececec;background-image:-moz-linear-gradient(top,#fff,#ececec);background-image:-webkit-linear-gradient(top,#fff,#ececec);background-image:-ms-linear-gradient(top,#fff,#ececec);background-image:-o-linear-gradient(top,#fff,#ececec);background-image:linear-gradient(to bottom,#fff,#ececec);background-repeat:repeat-x;-moz-transition:background .15s linear;-webkit-transition:background .15s linear;-o-transition:background .15s linear;transition:background .15s linear}form button:hover,input[type=submit]:hover,.button:hover{text-decoration:none;background-position:0 -15px!important}form button:active,input[type=submit]:active,.button:active{background-color:#e6e6e6;background-position:0 -30px!important}form button.blue,input[type=submit].blue,.button.blue{background-color:#2f96b4;background-image:-moz-linear-gradient(top,#5bc0de,#2f96b4);background-image:-webkit-linear-gradient(top,#5bc0de,#2f96b4);background-image:-ms-linear-gradient(top,#5bc0de,#2f96b4);background-image:-o-linear-gradient(top,#5bc0de,#2f96b4);background-image:linear-gradient(to bottom,#5bc0de,#2f96b4);border-color:#2f96b4;color:#fff}form button.blue:active,input[type=submit].blue:active,.button.blue:active{background-color:#2e95b3}form button.green,input[type=submit].green,.button.green{background-color:#51a351;background-image:-moz-linear-gradient(top,#62c462,#51a351);background-image:-webkit-linear-gradient(top,#62c462,#51a351);background-image:-ms-linear-gradient(top,#62c462,#51a351);background-image:-o-linear-gradient(top,#62c462,#51a351);background-image:linear-gradient(to bottom,#62c462,#51a351);border-color:#51a351;color:#fff}form button.green:active,input[type=submit].green:active,.button.green:active{background-color:#4f9f4f}form button.orange,input[type=submit].orange,.button.orange{background-color:#f89406;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-ms-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);border-color:#f89406;color:#fff}form button.orange:active,input[type=submit].orange:active,.button.orange:active{background-color:#f28f04}form button.red,input[type=submit].red,.button.red{background-color:#bd362f;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-ms-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);border-color:#bd362f;color:#fff}form button.red:active,input[type=submit].red:active,.button.red:active{background-color:#be322b}.widget{margin-bottom:12px}.widget>label{display:block;margin-bottom:6px;font-weight:700}.inline-form .widget{display:inline-block;margin-bottom:0;vertical-align:middle}.horizontal-form .widget:after{content:"";display:table;clear:both}.horizontal-form .widget>label{width:20%;float:left;padding:3px 2% 0 0;text-align:right}.horizontal-form .widget>input,.horizontal-form .widget>textarea{width:78%;float:left}.horizontal-form .widget>fieldset{margin-left:20%}
body,form,figure{margin:0;padding:0}img{border:0}header,footer,nav,section,aside,article,figure,figcaption{display:block}body{font-size:100.01%}select,input,textarea{font-size:99%}#container,.inside{position:relative}#main,#left,#right{float:left;position:relative}#main{width:100%}#left{margin-left:-100%}#right{margin-right:-100%}#footer{clear:both}#main .inside{min-height:1px}.ce_gallery>ul,.content-gallery>ul{margin:0;padding:0;overflow:hidden;list-style:none}.ce_gallery>ul li,.content-gallery>ul li{float:left}.ce_gallery>ul li.col_first,.content-gallery>ul li.col_first{clear:left}.float_left,.media--left>figure{float:left}.float_right,.media--right>figure{float:right}.block{overflow:hidden}.media{display:flow-root}.clear,#clear{height:.1px;font-size:.1px;line-height:.1px;clear:both}.invisible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.custom{display:block}#container:after,.custom:after{content:"";display:table;clear:both}
/* =============================================================================
   TV 1861 Bad Ems e.V. – Modern Mobile-First Stylesheet
   Colors derived from the club logo: red, black, white.
   Author note: original styles.css backed up as styles.css.bak
   ========================================================================== */

/* -----------------------------------------------------------------------------
   Fonts (Open Sans, self-hosted)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../files/bad_ems/webfonts/open-sans/open-sans-v34-latin-regular.woff2') format('woff2'),
       url('../../files/bad_ems/webfonts/open-sans/open-sans-v34-latin-regular.woff') format('woff'),
       url('../../files/bad_ems/webfonts/open-sans/open-sans-v34-latin-regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../../files/bad_ems/webfonts/open-sans/open-sans-v34-latin-700italic.woff2') format('woff2'),
       url('../../files/bad_ems/webfonts/open-sans/open-sans-v34-latin-700italic.woff') format('woff'),
       url('../../files/bad_ems/webfonts/open-sans/open-sans-v34-latin-700italic.ttf') format('truetype');
}

/* -----------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours */
  --color-red:           #d10f17;   /* primary brand red (logo) */
  --color-red-dark:      #a30c12;   /* hover / active state */
  --color-accent:        #8a1a20;   /* milder, deeper red – complementary accent */
  --color-accent-soft:   #fbecec;   /* very light rose tint for surfaces */
  --color-black:         #0a0a0a;
  --color-white:         #ffffff;

  /* Neutral palette */
  --color-text:          #1a1a1a;
  --color-text-muted:    #5a5a5a;
  --color-text-subtle:   #8a8a8a;
  --color-border:        #e6e6e6;
  --color-border-strong: #cfcfcf;
  --color-surface:       #ffffff;
  --color-surface-alt:   #f6f6f6;

  /* Typography */
  --font-base: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-base: 16px;
  --lh-base: 1.6;

  /* Spacing scale */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* Layout */
  --container-max: 1320px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .2s;

  /* Header height (for sticky offset) */
  --header-h: 64px;
}

/* -----------------------------------------------------------------------------
   Reset / Normalize
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a {
  color: var(--color-red);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover, a:focus-visible { color: var(--color-red-dark); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  color: var(--color-black);
  line-height: 1.25;
  margin: 0 0 var(--sp-4);
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 var(--sp-4); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--sp-6) 0; }
blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-3) var(--sp-5);
  border-left: 4px solid var(--color-red);
  color: var(--color-text-muted);
  background: var(--color-accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
code, pre, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .95em; }
pre { background: var(--color-surface-alt); padding: var(--sp-4); border-radius: var(--radius-sm); overflow-x: auto; }

::selection { background: var(--color-red); color: var(--color-white); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

table { border-collapse: collapse; width: 100%; }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-surface-alt); font-weight: 700; }

/* -----------------------------------------------------------------------------
   Layout Wrapper
   -------------------------------------------------------------------------- */
#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Mobile-only / desktop-only toggles */
.is-mobile-only { display: block; }
.is-desktop-only { display: none; }
#wrapper_mobile { display: none; }

/* Hide outdated mobile wrapper completely when present (legacy template) */
#wrapper_mobile[style*="visibility"] { display: none !important; }

/* -----------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-black);
  color: var(--color-white);
  border-bottom: 3px solid var(--color-red);
  box-shadow: var(--shadow-sm);
}

#header .inside {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
  position: relative;
}

#header #logo {
  flex: 0 0 auto;
}
#header #logo a {
  display: block;
  width: 48px;
  height: 48px;
  background: url(../../files/bad_ems/gfx/TVBE_Logo-1.png) no-repeat center / contain;
  text-indent: -9999px;
  overflow: hidden;
}

#header a.header_home {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
}

#header #badge_150_jahre {
  width: 56px;
  height: 80px;
  background: url(../../files/bad_ems/gfx/150-jahre-tv-bad-ems.png) no-repeat center / contain;
  /* logo + badge stay grouped on the left; everything after the badge
     (header banner, search, Facebook icon, burger) is pushed right. */
  margin-left: var(--sp-3);
  margin-right: var(--sp-3);
}
#header #emser_bikepark {
  width: 120px;
  height: 39px;
  background: url(../../files/bad_ems/gfx/bikepark-logo.png) no-repeat center / contain;
  /* logo + badge stay grouped on the left; everything after the badge
     (header banner, search, Facebook icon, burger) is pushed right. */
  margin-left: var(--sp-3);
  margin-right: auto;
}

#header #header-banner {
  display: none;
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
}
#header #header-banner :hover { text-decoration: underline; }
#header #header-banner-content { display: inline; }

/* -----------------------------------------------------------------------------
   Mobile Navigation Toggle (hamburger)
   -------------------------------------------------------------------------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  margin-left: auto;
  cursor: pointer;
  background: transparent;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

#nav-toggle-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
/* Hamburger animation – checkbox is now a sibling of #header inside #wrapper */
#nav-toggle-input:checked ~ #header .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#nav-toggle-input:checked ~ #header .nav-toggle span:nth-child(2) { opacity: 0; }
#nav-toggle-input:checked ~ #header .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* -----------------------------------------------------------------------------
   Sidebar Toggle (off-canvas trigger for the secondary menu, tablet range)
   Hidden by default; only revealed inside the 600–1599 media query.
   -------------------------------------------------------------------------- */
.sidebar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  margin-right: var(--sp-3);
  cursor: pointer;
  background: transparent;
  border-radius: var(--radius-sm);
}
.sidebar-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
#sidebar-toggle-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
#sidebar-toggle-input:checked ~ #header .sidebar-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#sidebar-toggle-input:checked ~ #header .sidebar-toggle span:nth-child(2) { opacity: 0; }
#sidebar-toggle-input:checked ~ #header .sidebar-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Backdrop sits behind the off-canvas drawer; hidden until checked. */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
  z-index: 94;
  cursor: pointer;
}

/* -----------------------------------------------------------------------------
   Main Navigation – mobile drawer by default
   Below 1600px BOTH menus (header nav + sidebar nav) live in the drawer.
   The drawer toggles via display only – no height transition.
   -------------------------------------------------------------------------- */

.mobile-drawer {
  width: 100%;
  background: #121212;
  /* Divider between the header bar and the menu panel. */
  border-top: 2px solid var(--color-red);
  /* Closed by default – snap toggled, no max-height animation. */
  display: none;
}
#nav-toggle-input:checked ~ #header .mobile-drawer {
  display: block;
  /* Keep the panel reachable even if it would overflow the viewport. */
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  border-bottom: 3px solid var(--color-red);
}

/* Inside the drawer only navigation modules should be visible – hide
   everything else (logo from the duplicated $this->header, html teasers,
   etc.). */
.mobile-drawer > *:not(.mod_navigation):not(.mod_customnav) {
  display: none !important;
}

#header .mod_navigation ul,
.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#header .mod_navigation ul.level_1 > li,
.mobile-drawer ul.level_1 > li {
  border-bottom: 1px solid #1f1f1f;
}
#header .mod_navigation a,
#header .mod_navigation span,
#header .mod_navigation strong,
.mobile-drawer a,
.mobile-drawer span,
.mobile-drawer strong {
  display: block;
  padding: var(--sp-3) var(--sp-5);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
#header .mod_navigation a:hover,
#header .mod_navigation a:focus-visible,
#header .mod_navigation span.active,
#header .mod_navigation strong.active,
#header .mod_navigation .level_1 li strong,
.mobile-drawer a:hover,
.mobile-drawer a:focus-visible,
.mobile-drawer span.active,
.mobile-drawer strong.active {
  background: var(--color-red);
  color: var(--color-white);
}

/* Sub-levels: hidden unless parent is active or in the trail */
#header .mod_navigation li > ul,
.mobile-drawer li > ul {
  display: none;
  background: #1a1a1a;
}
#header .mod_navigation li.submenu.active > ul,
#header .mod_navigation li.submenu.trail > ul,
.mobile-drawer li.submenu.active > ul,
.mobile-drawer li.submenu.trail > ul {
  display: block;
}
#header .mod_navigation ul.level_2 a,
#header .mod_navigation ul.level_2 span,
#header .mod_navigation ul.level_2 strong,
.mobile-drawer ul.level_2 a,
.mobile-drawer ul.level_2 span,
.mobile-drawer ul.level_2 strong {
  padding-left: var(--sp-7);
  font-size: .95rem;
  font-weight: 500;
}
#header .mod_navigation ul.level_3 a,
#header .mod_navigation ul.level_3 span,
#header .mod_navigation ul.level_3 strong,
.mobile-drawer ul.level_3 a,
.mobile-drawer ul.level_3 span,
.mobile-drawer ul.level_3 strong {
  padding-left: var(--sp-8);
  font-size: .9rem;
  font-weight: 400;
  background: #0d0d0d;
}

/* Sidebar copy inside the burger drawer */
.mobile-drawer h2 {
  color: var(--color-white);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: var(--sp-3) var(--sp-5);
  margin: 0;
  border-bottom: 1px solid #222;
  background: #0a0a0a;
}

/* -----------------------------------------------------------------------------
   Search & Social (in header bar)
   -------------------------------------------------------------------------- */
#search {
  display: none; /* hidden on mobile, shown on desktop */
  position: relative;
}
#search input[type=text] {
  border: 1px solid #3a3a3a;
  background: #1f1f1f;
  color: var(--color-white);
  padding: .4rem .8rem;
  border-radius: var(--radius-lg);
  font-size: .875rem;
  width: 180px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
#search input[type=text]:focus {
  outline: none;
  border-color: var(--color-red);
  background: #2a2a2a;
}
#search input.submit {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 0;
  text-indent: -9999px;
  background: url(../../files/bad_ems/gfx/btn_search.png) no-repeat center / contain;
  cursor: pointer;
  opacity: .8;
}
#search input.submit:hover { opacity: 1; }

.mod_search input[type=text] {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}
.mod_search input.submit {
  background: var(--color-red);
  color: var(--color-white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: 0;
  margin-top: var(--sp-2);
  transition: background var(--dur) var(--ease);
}
.mod_search input.submit:hover { background: var(--color-red-dark); }

.searchitem {
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-4) 0;
}

#fb-icon {
  display: none;
}
#fb-icon a {
  display: block;
  width: 32px;
  height: 32px;
  background: url(../../files/bad_ems/gfx/fb-logo.png) no-repeat center / contain;
  text-indent: -9999px;
  overflow: hidden;
}

/* -----------------------------------------------------------------------------
   Container / Main / Sidebar
   -------------------------------------------------------------------------- */
#container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  flex: 1 0 auto;
}

#main {
  min-width: 0;          /* allow flex children to shrink */
  width: 100%;
}
#main .inside { width: 100%; }

/* -----------------------------------------------------------------------------
   Sidebar Navigation (left)
   -------------------------------------------------------------------------- */
#left h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-black);
  border-bottom: 2px solid var(--color-red);
  padding-bottom: var(--sp-2);
  margin: 0 0 var(--sp-4);
}

#left .mod_navigation ul {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
}
#left .mod_navigation a,
#left .mod_navigation span,
#left .mod_navigation strong {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: .95rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
#left .mod_navigation a:hover,
#left .mod_navigation a:focus-visible {
  background: var(--color-accent-soft);
  color: var(--color-red-dark);
  padding-left: var(--sp-4);
}
#left .mod_navigation span.active,
#left .mod_navigation strong.active,
#left .mod_navigation .level_1 > li > span,
#left .mod_navigation .level_1 > li > strong {
  background: var(--color-red);
  color: var(--color-white);
  font-weight: 700;
}
#left .mod_navigation ul.level_2 { padding-left: var(--sp-3); }
#left .mod_navigation ul.level_2 a,
#left .mod_navigation ul.level_2 span,
#left .mod_navigation ul.level_2 strong {
  font-size: .9rem;
  padding-left: var(--sp-4);
}
#left .mod_navigation ul.level_3 { padding-left: var(--sp-4); }
#left .mod_navigation ul.level_3 a,
#left .mod_navigation ul.level_3 span,
#left .mod_navigation ul.level_3 strong {
  font-size: .85rem;
  padding-left: var(--sp-5);
  font-weight: normal;
}
#left .mod_navigation li > ul { display: none; }
#left .mod_navigation li.submenu.active > ul,
#left .mod_navigation li.submenu.trail > ul {
  display: block;
}

#left .mod_eventlist { margin: var(--sp-6) 0; }
#left .upcoming { padding: var(--sp-3); border-bottom: 1px solid var(--color-border); }
#left .upcoming:last-child { border-bottom: 0; }
#left .upcoming span.date {
  display: block;
  font-size: .85rem;
  color: var(--color-red);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}
#left .upcoming a {
  display: block;
  font-size: .95rem;
  color: var(--color-text);
  text-decoration: none;
}
#left .upcoming a:hover { color: var(--color-red); }

/* -----------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.mod_breadcrumb {
  margin: 0 0 var(--sp-5);
  font-size: .85rem;
  color: var(--color-text-subtle);
}
.mod_breadcrumb ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.mod_breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}
.mod_breadcrumb li:not(:last-child)::after {
  content: '›';
  color: var(--color-text-subtle);
  margin: 0 var(--sp-2);
}
.mod_breadcrumb a {
  color: var(--color-text-subtle);
  text-decoration: none;
}
.mod_breadcrumb a:hover { color: var(--color-red); text-decoration: underline; }
.mod_breadcrumb li.last,
.mod_breadcrumb li.active {
  color: var(--color-text);
  font-weight: 600;
}
.mod_breadcrumb span { display: none; } /* hide legacy "[gt]" markers */

/* -----------------------------------------------------------------------------
   Main Headings
   -------------------------------------------------------------------------- */
#main h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  border-bottom: 3px solid var(--color-red);
  padding-bottom: var(--sp-3);
  margin: 0 0 var(--sp-5);
}

/* -----------------------------------------------------------------------------
   News / Event Cards
   -------------------------------------------------------------------------- */
.layout_latest,
.mod_eventlist .event,
.layout_short {
  position: relative;
  display: flow-root;            /* contain floated images so the card grows to fit */
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  margin: 0 0 var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.layout_latest:hover,
.mod_eventlist .event:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.archivname {
  display: inline-block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: .25rem .6rem;
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-3);
}

.pinned-article {
  display: inline-block;
  float: right;
  background: var(--color-red);
  color: var(--color-white);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: var(--radius-lg);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Date "badge" */
.layout_latest p.info,
.mod_newsreader p.info,
.mod_eventlist .header {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  text-align: center;
  margin: 0 0 var(--sp-4);
  padding: 0;
  border: none;
  line-height: 1.1;
  flex-shrink: 0;
  overflow: hidden;
}

.daymonth {
  display: block;
  font-size: .85rem;
  font-style: normal;
  font-weight: 700;
  color: var(--color-white);
}
.year {
  display: block;
  font-size: .7rem;
  color: var(--color-white);
  font-weight: 500;
  opacity: .9;
}

.layout_latest h2,
.mod_eventlist h2,
.layout_short h2 {
  margin: 0 0 var(--sp-3);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-black);
}
.layout_latest h2 a,
.mod_eventlist h2 a,
.layout_short h2 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.layout_latest h2 a:hover,
.mod_eventlist h2 a:hover,
.layout_short h2 a:hover {
  color: var(--color-red);
}

.teaser { color: var(--color-text-muted); display: flow-root; }
.teaser p:last-child { margin-bottom: 0; }
/* Any image inside a card (incl. inline images in the teaser body) must
   stay within the card and never blow it up. The card itself grows to
   the height of its tallest child via `display: flow-root`. */
.layout_latest img,
.layout_short img,
.mod_eventlist img,
.layout_latest .teaser img,
.layout_latest .ce_image img,
.layout_latest .ce_text img,
.mod_eventlist .teaser img,
.mod_eventlist .ce_image img,
.mod_eventlist .ce_text img {
  max-width: 100%;
  margin: var(--sp-3);
  height: auto;
}

/* Any image inside a card (incl. inline images in the teaser body) must
   stay within the card and never blow it up. The card itself grows to
   the height of its tallest child via `display: flow-root`. */
.layout_latest .teaser img,
.layout_short .teaser img {
  max-width: 40%;
  margin: var(--sp-3);
  height: auto;
}
/* Contain floats coming from inline content elements inside the teaser */
.layout_latest .teaser .ce_image,
.layout_latest .teaser .ce_text,
.mod_eventlist .teaser .ce_image,
.mod_eventlist .teaser .ce_text {
  display: flow-root;
  max-width: 100%;
}
/* Cap inline teaser images that float so they cannot dominate the card */
.layout_latest .teaser .float_left,
.layout_latest .teaser .float_right,
.mod_eventlist .teaser .float_left,
.mod_eventlist .teaser .float_right {
  max-width: 40%;
  margin-bottom: var(--sp-3);
}
.layout_latest .teaser .float_left,
.mod_eventlist .teaser .float_left { margin-right: var(--sp-4); }
.layout_latest .teaser .float_right,
.mod_eventlist .teaser .float_right { margin-left: var(--sp-4); }

p.more a,
.layout_latest p.more a,
.mod_eventlist p.more a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--color-red);
  color: var(--color-white);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  margin-top: var(--sp-3);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
p.more a::after,
.layout_latest p.more a::after,
.mod_eventlist p.more a::after { content: '→'; }
p.more a:hover,
.layout_latest p.more a:hover,
.mod_eventlist p.more a:hover {
  background: var(--color-red-dark);
  color: var(--color-white);
  text-decoration: none;
  transform: translateX(2px);
}

/* Images inside cards */
.layout_latest .image_container,
.mod_eventlist .image_container {
  margin: 0 0 var(--sp-4);
}
.layout_latest img,
.mod_eventlist img,
.mod_newsreader img,
.mod_eventreader img {
  border-radius: var(--radius-sm);
}
/* Floated thumbnails inside cards: keep them in a sane size band so they never
   blow the card out of proportion. Height now scales with the card content. */
.layout_latest .image_container.float_left,
.layout_latest .image_container.float_right,
.mod_eventlist .image_container.float_left,
.mod_eventlist .image_container.float_right {
  max-width: 40%;
  margin-bottom: var(--sp-3);
}
.layout_latest .image_container.float_left,
.mod_eventlist .image_container.float_left { margin-right: var(--sp-4); }
.layout_latest .image_container.float_right,
.mod_eventlist .image_container.float_right { margin-left: var(--sp-4); }
.layout_latest .image_container img,
.mod_eventlist .image_container img {
  width: 100%;
  height: auto;
  margin: var(--sp-3);
}

/* -----------------------------------------------------------------------------
   News Reader / Event Reader (full article)
   -------------------------------------------------------------------------- */
.mod_newsreader,
.mod_eventreader,
.layout_full {
  position: relative;
}

.layout_full .image_contaier img {
  max-width: 100%;
  height: auto;
  margin: var(--sp-3);
}

.layout_full > p.info,
.event.layout_full > p.info,
.mod_newsreader > p.info {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-lg);
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  font-size: .9rem;
  font-weight: 600;
  margin: 0 0 var(--sp-5);
}
.layout_full > p.info time,
.event.layout_full > p.info time {
  color: inherit;
}

.mod_eventreader img,
.mod_newsreader img {
  max-width: 100%;
  height: auto;
  margin: var(--sp-3) 0;
}

/* Newsmenu / Archive */
.mod_newsmenu {
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  padding: var(--sp-4);
  margin: var(--sp-5) 0;
}
.mod_newsmenu ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  list-style: none;
  padding: 0;
  margin: 0;
}
.mod_newsmenu ul li a,
.mod_newsmenu ul li span {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
}
.mod_newsmenu ul li a { color: var(--color-text); background: var(--color-white); border: 1px solid var(--color-border); }
.mod_newsmenu ul li a:hover { background: var(--color-red); color: var(--color-white); border-color: var(--color-red); text-decoration: none; }
.mod_newsmenu ul li span { background: var(--color-red); color: var(--color-white); }

.mod_newsarchive { margin: var(--sp-5) 0; }
.mod_newsarchive h2 { font-size: 1.1rem; margin: var(--sp-5) 0 var(--sp-3); }

/* -----------------------------------------------------------------------------
   Upcoming events list (sidebar / inline)
   -------------------------------------------------------------------------- */
.event.layout_upcoming {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--color-border);

}
.event.layout_upcoming:last-child { border-bottom: 0; }
.event.layout_upcoming .date {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.event.layout_upcoming a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}
.event.layout_upcoming a:hover { color: var(--color-red); }

/* -----------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  text-align: center;
  margin: var(--sp-6) 0;
}
.pagination ul {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination ul li a,
.pagination ul li strong,
.pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  background: var(--color-white);
  transition: all var(--dur) var(--ease);
}
.pagination ul li a:hover {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.pagination ul li strong,
.pagination ul li span.active {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

/* -----------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
input[type=text], input[type=email], input[type=password],
input[type=search], input[type=tel], input[type=number],
input[type=url], textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(209, 15, 23, .15);
}
button, input[type=submit], input[type=button] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red);
  color: var(--color-white);
  padding: var(--sp-3) var(--sp-5);
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
button:hover, input[type=submit]:hover, input[type=button]:hover {
  background: var(--color-red-dark);
}
label { display: inline-block; margin-bottom: var(--sp-1); font-weight: 600; color: var(--color-text); }

/* -----------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.ce_gallery { margin: var(--sp-5) 0; }
.ce_gallery ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-3);
}
.ce_gallery ul li { margin: 0; padding: 0; }
.ce_gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ce_gallery a:hover img {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* -----------------------------------------------------------------------------
   Article Switcher
   -------------------------------------------------------------------------- */
.article-list-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-5);
}
.article-switcher-button {
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.article-switcher-button:hover { background: var(--color-accent); }
.article-switcher-button span { color: var(--color-white); }
.article-switcher-button.focused-article,
.focused-article {
  background: var(--color-red);
  border: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* -----------------------------------------------------------------------------
   Featured / "Highlighted" article
   -------------------------------------------------------------------------- */
.featured {
  border: 2px solid var(--color-red);
  background: var(--color-accent-soft);
  padding: var(--sp-5);
  border-radius: var(--radius-md);
}

/* -----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
#footer {
  background: var(--color-black);
  color: var(--color-white);
  border-top: 4px solid var(--color-red);
  padding: var(--sp-5) var(--sp-4);
  margin-top: auto;
  font-size: .9rem;
}
#footer .inside {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
}
#footer a { color: var(--color-white); text-decoration: underline; }
#footer a:hover { color: var(--color-accent-soft); }
#footer span.copyright { display: block; text-align: center; flex: 1 1 100%; }

a.back_top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  width: 44px;
  height: 44px;
  background: var(--color-red) url(../../files/bad_ems/gfx/btn-nach-oben.png) no-repeat center / 24px 24px;
  color: transparent;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  z-index: 50;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.back_top:hover { background-color: var(--color-red-dark); transform: translateY(-2px); }

/* -----------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.cb { clear: both; }
.invisible {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.clearfix::after { content: ""; display: table; clear: both; }

.block { overflow: visible; }

figure { margin: 0; }
figcaption.caption {
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-top: var(--sp-2);
  font-style: italic;
}

/* Enclosure / Downloads */
.enclosure {
  margin: var(--sp-5) 0;
  padding: var(--sp-4);
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
}
.enclosure ul { list-style: none; margin: 0; padding: 0; }
.enclosure li, .enclosure p { margin: var(--sp-2) 0; }
.enclosure a { color: var(--color-red); font-weight: 600; }

/* Syndication */
.syndication {
  display: flex;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
}
.syndication a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease);
}
.syndication a:hover { background: var(--color-accent-soft); }
.syndication img { width: 18px; height: 18px; }

/* Subhead */
.layout_full > h1 + p.info + h2,
.layout_full h2 { font-size: 1.25rem; color: var(--color-accent); margin-top: var(--sp-3); }

/* Tables – generic content tables */
.ce_table table,
.content-table table,
table.content-table {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ce_table th,
.ce_table td { padding: var(--sp-3); }

/* Tabelle für Spielergebnisse / Volleyball / Handball */
.vly, #handball-tabelle-,
[id^="handball-tabelle-"] {
  margin: var(--sp-5) 0;
  overflow-x: auto;
}

/* -----------------------------------------------------------------------------
   Responsive breakpoints
     mobile  : < 600  – burger drawer combines header nav + sidebar nav
     tablet  : 600–1599 – same burger drawer pattern, just larger spacing
     xl      : ≥ 1600 – horizontal header nav + sidebar column + content
   -------------------------------------------------------------------------- */

/* Sidebar (#left) and mobile drawer visibility per breakpoint */
/* .mobile-drawer visibility is controlled by the checkbox – see main nav block */
aside#left { display: block; }                /* shown by default (mobile, hidden via media query) */

/* Bottom-of-page extras (only used on small mobile) */
.mobile-extras { display: none; }

/* Below the XL breakpoint the side navigation lives inside the burger drawer,
   so the in-page <aside id="left"> column is always hidden. */
@media (max-width: 1599.98px) {
  aside#left { display: none; }

  /* The full menu lives in the drawer – hide the in-bar header navigation. */
  #header .inside .mod_navigation,
  #header .inside .mod_customnav { display: none; }

  /* Inside the burger drawer only the navigation should appear. Events,
     Facebook embeds and the calendar are rendered elsewhere (mobile-extras
     on phones, sidebar column on XL) – never inside the drawer. */
  .mobile-drawer .mod_eventlist,
  .mobile-drawer .mod_html,
  .mobile-drawer .mod_calendar,
  .mobile-drawer #fb-icon,
  .mobile-drawer .fb-like-box,
  .mobile-drawer .fb-page,
  .mobile-drawer .fb_iframe_widget,
  .mobile-drawer iframe {
    display: none !important;
  }
}

/* --- Mobile (< 600px): mobile-extras at the bottom of the page --- */
@media (max-width: 599.98px) {
  /* Show extras section at the bottom of the page – stripped to the two
     desired modules only. */
  .mobile-extras {
    display: block;
    background: var(--color-surface-alt);
    border-top: 4px solid var(--color-red);
    padding: var(--sp-5) var(--sp-4);
  }
  .mobile-extras .inside {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    gap: var(--sp-5);
  }
  /* Hide everything except the Termine-Liste and the Facebook HTML module */
  .mobile-extras .inside > *:not(.mod_eventlist):not(.mod_html) {
    display: none !important;
  }
  .mobile-extras h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-black);
    border-bottom: 2px solid var(--color-red);
    padding-bottom: var(--sp-2);
    margin: 0 0 var(--sp-3);
  }
  .mobile-extras .mod_eventlist,
  .mobile-extras .mod_html {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--sp-4);
    box-shadow: var(--shadow-sm);
  }
  .mobile-extras .event.layout_upcoming {
    padding: var(--sp-3);
    border-bottom: 1px solid var(--color-border);
  }
  .mobile-extras .event.layout_upcoming:last-child { border-bottom: 0; }
  .mobile-extras #fb-icon { display: inline-block; }
}

/* --- Tablet / small desktop (600 – 1599px): bigger header sizing, burger drawer stays --- */
@media (min-width: 600px) {
  #header #logo a { width: 56px; height: 56px; }
  #header #badge_150_jahre { width: 72px; height: 96px; }
  #search { display: inline-block; }
  #fb-icon { display: inline-flex; align-items: center; }
  #header #header-banner { display: inline-block; }

  /* Container stays single column */
  #container {
    display: block;
    padding: var(--sp-6) var(--sp-5);
  }
}

/* --- XL (≥ 1600px): horizontal header nav, grid layout, drawer disabled --- */
@media (min-width: 1600px) {
  :root { --header-h: 72px; }

  /* No burger / drawer at this size */
  .nav-toggle,
  .mobile-drawer { display: none; }

  /* Horizontal header navigation */
  #header .mod_navigation,
  .inside > .mod_navigation {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    flex: 1 1 auto;
    order: 0;
    width: auto;
  }
  #header .mod_navigation ul.level_1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: var(--sp-1);
  }
  #header .mod_navigation ul.level_1 > li {
    border-bottom: none;
    position: relative;
  }
  #header .mod_navigation a,
  #header .mod_navigation span,
  #header .mod_navigation strong {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
  }
  /* Desktop hover dropdown */
  #header .mod_navigation li > ul.level_2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-black);
    border-top: 2px solid var(--color-red);
    box-shadow: var(--shadow-md);
    z-index: 110;
    padding: var(--sp-2) 0;
  }
  #header .mod_navigation ul.level_1 > li:hover > ul.level_2,
  #header .mod_navigation ul.level_1 > li:focus-within > ul.level_2,
  #header .mod_navigation li.submenu.active > ul.level_2,
  #header .mod_navigation li.submenu.trail > ul.level_2 {
    display: block;
  }
  #header .mod_navigation ul.level_2 a,
  #header .mod_navigation ul.level_2 span,
  #header .mod_navigation ul.level_2 strong {
    padding: var(--sp-2) var(--sp-4);
    border-radius: 0;
    font-weight: 500;
  }

  aside#left { 
    display: block;
    margin-left: 0px; 
  }

  #container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--sp-7);
    padding: var(--sp-7) var(--sp-6);
    align-items: start;
  }
  #container:has(aside#right):not(:has(aside#left)) {
    grid-template-columns: 1fr 260px;
  }
  #container:has(aside#left):has(aside#right) {
    grid-template-columns: 240px 1fr 240px;
  }
  #container > #main:only-child { grid-column: 1 / -1; }
}

/* Honour reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -----------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  #header, #footer, .nav-toggle, .mod_breadcrumb, .pagination, a.back_top { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .layout_latest, .mod_eventlist .event { box-shadow: none; border: 1px solid #ccc; }
}

