body {
  font-family: "Arial", sans-serif;
  color: #252525;
  background: #ffffff;
  font-size: 1rem;
  /* 1rem = 16px */
  line-height: 1.5;
}

@media (min-width: 768px) {
  body {
    font-size: 1.125rem;
  }
}

a {
  color: #005b94;
}

a:hover,
a:focus {
  color: #005b94;
  text-decoration: underline;
}

b,
strong {
  font-weight: 600;
}

@media (min-width: 1200px) {
  .row {
    max-width: 1400px;
    width: 100%;
  }
}

@media (min-width: 1400px) {
  .row {
    max-width: 1600px;
    width: 100%;
  }
}

@media (min-width: 1200px) {
  body:not(.index) #content .row {
    max-width: 1400px;
    width: 100%;
  }
}

@media (min-width: 1400px) {
  body:not(.index) #content .row {
    max-width: 1600px;
    width: 100%;
  }
}

#over {
  overflow: hidden;
  position: relative;
}

#ristop {
  width: 100%;
}

/* ------------------------------------------------- logo ------------------------------------------------ */

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

@media (max-width: 991px) {
  #logo img {
    max-width: 210px;
    width: 100%;
  }
}

/* ------------------------------------------- navigation ------------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
  #menu {
    padding: 5px 0;
    background-color: #ffffff;
  }

  #burgerButton {
    font-size: 0;
    border: none !important;
    display: block;
    height: 50px;
    width: 60px;
    border-radius: 2px;
    padding: 6px 8px;
    cursor: pointer;
    background-color: #ffffff;
    -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
  }

  #burgerButtonInner2,
  #burgerButton:after,
  #burgerButtonInner {
    background-color: #005b94;
    border-radius: 2px;
    position: absolute;
    width: 40px;
    height: 3px;
    left: 10px;
    -webkit-transition: transform 200ms linear, opacity 200ms linear;
    -moz-transition: transform 200ms linear, opacity 200ms linear;
    -ms-transition: transform 200ms linear, opacity 200ms linear;
    -o-transition: transform 200ms linear, opacity 200ms linear;
    transition: transform 200ms linear, opacity 200ms linear;
  }

  #burgerButton[aria-expanded="true"] #burgerButtonInner {
    -webkit-transform: rotate(-45deg) translate(-6px, 6px);
    transform: rotate(-45deg) translate(-6px, 6px);
  }

  #burgerButton[aria-expanded="true"] #burgerButtonInner2 {
    opacity: 0;
  }

  #burgerButton[aria-expanded="true"]:after {
    -webkit-transform: rotate(45deg) translate(-4px, -6px);
    transform: rotate(45deg) translate(-4px, -6px);
  }

  #burgerButtonInner {
    top: 16px;
  }

  #burgerButtonInner2 {
    top: 24px;
  }

  #burgerButton:after {
    top: 32px;
    content: "";
    display: block;
  }

  .navbar-nav {
    margin: 20px 0;
  }

  .navbar-collapse {
    top: 0;
    background: #ffffff;
    position: fixed;
    left: -100%;
    bottom: 0;
    z-index: 100;
    height: auto !important;
    -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    -webkit-transition: left 300ms linear, opacity 300ms linear;
    -moz-transition: left 300ms linear, opacity 300ms linear;
    -ms-transition: left 300ms linear, opacity 300ms linear;
    -o-transition: left 300ms linear, opacity 300ms linear;
    transition: left 300ms linear, opacity 300ms linear;
  }

  .navbar-collapse[aria-expanded="true"],
  .navbar-collapse.in {
    left: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-header {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 101;
  }

  .navbar-toggle::before {
    content: "";
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    z-index: -1;
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-transition: width 300ms linear, opacity 300ms linear;
    -moz-transition: width 300ms linear, opacity 300ms linear;
    -ms-transition: width 300ms linear, opacity 300ms linear;
    -o-transition: width 300ms linear, opacity 300ms linear;
    transition: width 300ms linear, opacity 300ms linear;
  }

  .navbar-toggle[aria-expanded="true"]::before {
    opacity: 1;
    width: 90px;
  }
}

@media (min-width: 575px) and (max-width: 991px) {
  .navbar-collapse {
    width: 60%;
  }

  .navbar-collapse.collapse.in:after,
  .navbar-toggle[aria-expanded="true"]::before {
    width: 40%;
  }
}

/* menu desktop */

@media (min-width: 992px) {
  #menu {
    padding: 40px 0 30px 15px;
    transition: all, 300ms;
    background-color: #fff;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
  }

  .is-sticky #menu {
    background-color: rgba(255, 255, 255, 1);
    padding: 10px 0 10px 15px;
  }

  nav.horizontally .navbar-nav {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify !important;
    -ms-flex-pack: justify !important;
    justify-content: space-between !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    flex-wrap: wrap;
  }

  .navbar-default .navbar-nav li[class*="toplevel"]>ul {
    display: block !important;
    pointer-events: none;
    position: absolute;
    opacity: 0;
    top: auto;
    left: -115px;
    right: -115px;
    z-index: 1000;
    padding: 15px;
    -ms-transform-origin: top center;
    -webkit-transform-origin: top center;
    transform-origin: top center;
    -webkit-transition: top 300ms linear, opacity 300ms linear;
    -moz-transition: top 300ms linear, opacity 300ms linear;
    -ms-transition: top 300ms linear, opacity 300ms linear;
    -o-transition: top 300ms linear, opacity 300ms linear;
    transition: top 300ms linear, opacity 300ms linear;
    border-bottom: 5px solid #1b377f;
    max-height: 70vh;
    overflow-y: auto;
  }

  .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul {
    pointer-events: auto !important;
    opacity: 1 !important;
    z-index: 1003;
  }

  .navbar-default .navbar-nav li[class*="toplevel"]:focus-within>ul {
    pointer-events: auto !important;
    opacity: 1 !important;
  }

  .nav li[class*="toplevel"].open>.dropdown-menu {
    pointer-events: none !important;
    opacity: 0 !important;
  }

  nav.horizontally .navbar-nav>li>.dropdown-menu>li {
    padding-bottom: 30px;
    width: 33.33%;
  }

  nav.horizontally .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
    display: block !important;
  }

  .navbar-default .navbar-nav li[class*="toplevel"]>ul>li {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid-column;
    display: table;
    width: 100%;
  }

  nav.horizontally .navbar-nav>li>.dropdown-menu {
    column-count: 4;
    column-rule: 1px solid #e1e1de;
    column-gap: 50px;
  }

  nav li[class*="_start"] {
    display: none !important;
  }

  nav.horizontally .navbar-nav>li>.dropdown-menu::before {
    width: 100%;
    height: 45px;
    top: -44px;
    position: absolute;
    left: 0;
    right: 0px;
    display: inline-block;
    content: "";
  }
}

@media (min-width: 1200px) {
  nav.horizontally .navbar-nav>li>.dropdown-menu>li {
    width: 25%;
  }

  nav.horizontally .navbar-nav>li>.dropdown-menu {
    padding: 30px;
  }
}

/* ---------------------------------------------- toplevel ---------------------------------------------- */

.navbar-default .navbar-nav>li {
  position: static;
}

.navbar-default .navbar-nav>li>a {
  color: #252525;
  text-align: left;
  padding: 10px 35px;
  position: relative;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  hyphens: auto;
}

@media (max-width: 991px) {
  .navbar-default .navbar-nav>li>a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    padding-left: 15px;
  }
}

.navbar-default .navbar-nav>li>a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background-color: #e5b113;
  width: 0;
  -webkit-transition: width 300ms linear;
  -moz-transition: width 300ms linear;
  -ms-transition: width 300ms linear;
  -o-transition: width 300ms linear;
  transition: width 300ms linear;
}

@media (min-width: 992px) {
  .navbar-default .navbar-nav>li+li {
    margin-left: 10px;
  }

  .navbar-default .navbar-nav>li>a {
    padding: 0 1px 10px 1px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    font-size: 22px;
  }
}

@media (min-width: 1400px) {
  .navbar-default .navbar-nav>li>a {
    font-size: 30px;
  }
}

@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) and (min-width: 992px) {
  .navbar-default .navbar-nav>li>a {
    display: block;
  }
}

/* -------------------------------------------- toplevel-over ------------------------------------------- */

.navbar-nav>li:hover>a::after,
.navbar-nav>li>a:hover::after,
.navbar-nav>li>a:focus::after,
.navbar-nav>li.open>a::after,
.navbar-nav>li.open>a:hover::after,
.navbar-nav>li.open>a:focus::after,
.navbar-nav>li[class$="_over"]>a::after,
.navbar-nav>li[class$="_over"]>a:hover::after,
.navbar-nav>li[class$="_over"]>a:focus::after {
  width: 90px;
}

.navbar-nav>li:focus-within>a::after {
  width: 90px;
}

/* -------------------------------------- secondlevel + thirdlevel dropdown-box -------------------------------------- */

.navbar-default .navbar-nav>li>.dropdown-menu {
  background-color: rgba(255, 255, 255, 0.97);
}

@media (max-width: 991px) {
  .navbar-default .navbar-nav>li>.dropdown-menu {
    padding: 15px;
  }

  .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
    margin-bottom: 8px;
  }
}

/* --------------------------------------------- secondlevel + thirdlevel -------------------------------------------- */

.navbar-default .navbar-nav>li>.dropdown-menu>li,
.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li {
  line-height: 20px;
  text-align: left;
}

.navbar-default .navbar-nav>li>.dropdown-menu>li>a {
  color: #252525;
  font-weight: 400;
  padding: 0 0 10px 0;
  display: inline-block;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  hyphens: auto;
}

.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a {
  color: #252525;
  font-weight: normal;
  padding: 4px 19px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
  hyphens: auto;
}

.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  border: 1px solid #252525;
  left: 7px;
  top: 11px;
}

@media (max-width: 991px) {
  .navbar-default .navbar-nav>li>.dropdown-menu>li>a,
  .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }

  .navbar-default .navbar-nav>li>.dropdown-menu>li>a {
    padding-right: 35px;
  }
}

/* ------------------------------------------ secondlevel + thirdlevel over ------------------------------------------ */

.navbar-nav>li>.dropdown-menu>li:hover>a,
.navbar-nav>li>.dropdown-menu>li>a:hover,
.navbar-nav>li>.dropdown-menu>li>a:focus,
.navbar-nav>li>.dropdown-menu>li.open>a,
.navbar-nav>li>.dropdown-menu>li.open>a:hover,
.navbar-nav>li>.dropdown-menu>li.open>a:focus,
.navbar-nav>li>.dropdown-menu>li[class$="_over"]>a,
.navbar-nav>li>.dropdown-menu>li[class$="_over"]>a:hover,
.navbar-nav>li>.dropdown-menu>li[class$="_over"]>a:focus {
  background: transparent;
  color: #1b377f;
}

.navbar-nav>li>.dropdown-menu>li:focus-within>a {
  background: transparent;
  color: #1b377f;
}

.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li:hover>a,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a:hover,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a:focus,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li.open>a,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li.open>a:hover,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li.open>a:focus,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li[class$="_over"]>a,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li[class$="_over"]>a:hover,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li[class$="_over"]>a:focus {
  background: transparent;
  color: #1b377f;
}

.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li:focus-within>a {
  background: transparent;
  color: #1b377f;
}

.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li:hover>a::after,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a:hover::after,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a:focus::after,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li.open>a::after,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li.open>a:hover::after,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li.open>a:focus::after,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li[class$="_over"]>a::after,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li[class$="_over"]>a:hover::after,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li[class$="_over"]>a:focus::after {
  border-color: #1b377f;
  background-color: #1b377f;
}

.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li:focus-within>a::after {
  border-color: #1b377f;
  background-color: #1b377f;
}

/* ----------------------------------------------- contrast ----------------------------------------------- */

#contrast_style {
  line-height: 0;
}

@media (max-width: 991px) {
  #contrast_style {
    margin: 0 auto;
  }
}

#contrast_style button {
  padding: 0;
  border: none;
  background: transparent;
  display: inline-block;
}

#contrast_style button+button {
  margin-left: 8px;
  margin-top: 0;
}


@media (min-width: 1200px) {
  #contrast_style {
    line-height: 0;
  }

  #contrast_style button {
    padding: 0;
    border: none;
    background: transparent;
    display: block;
  }

  #contrast_style button+button {
    margin-left: 0px;
    margin-top: 8px;
  }
}

@media (min-width: 1600px) {
  #contrast_style {
    line-height: 0;
  }

  #contrast_style button {
    padding: 0;
    border: none;
    background: transparent;
    display: inline-block;
  }

  #contrast_style button+button {
    margin-left: 8px;
    margin-top: 0;
  }
}

/* ----------------------------------------------- search ----------------------------------------------- */

.search img.contrast_grayscale {
  background-color: #fff;
}

/* ----------------------------------------------- styler ----------------------------------------------- */

@media (min-width: 992px) {
  #style button {
    font-size: 20px;
    background: transparent;
    padding: 0;
    border: none;
    color: #005b94;
    display: inline-block;
    font-weight: 600;
    text-align: center;
    position: relative;
    line-height: 1;
    -webkit-transition: color 150ms linear;
    -moz-transition: color 150ms linear;
    -ms-transition: color 150ms linear;
    -o-transition: color 150ms linear;
    transition: color 150ms linear;
  }

  #style button:nth-child(2) {
    color: #252525;
  }

  #style button+button {
    margin-left: 8px;
  }
}

#StyleBox>*+* {
  margin-left: 15px;
  padding-left: 15px;
  border-left: 1px solid #cccccc;
}

/* ----------------------------------------------- banner ----------------------------------------------- */

#slider {
  max-height: 300px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 992px) {
  #slider {
    max-height: 575px;
  }

  body.index #slider {
    max-height: 775px;
  }

  #headerpic a.nivo-prevNav {
    left: 65px;
    top: 52%;
  }

  #headerpic a.nivo-nextNav {
    right: 65px;
    top: 52%;
  }

  .nivo-controlNav {
    bottom: 100px !important;
  }

  body:not(.index) .nivo-controlNav {
    bottom: 55px !important;
  }

  /* #headerpic {
    background-color: #000;
  }

  .nivo-controlNav a {
    color: #fff;
  } */
}

@media (max-width: 991px) {

  #headerpic a.nivo-prevNav,
  #headerpic a.nivo-nextNav,
  .nivo-controlNav {
    display: none !important;
  }
}

#headerpic {
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.slider-wrapper,
#slider {
  height: 100%;
}

.slider-mask {
  display: none;
}

#overlay {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  left: 0px;
  right: 0px;
  pointer-events: none;
  z-index: 12;
}

#overlay .tab {
  pointer-events: all;
}

#overlay h1,
#overlay h2,
#overlay h3 {
  color: #fff;
  font-size: clamp(22px, 4vw, 60px);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* ------------------------------------------------ quickbutton ----------------------------------------------- */

#quickbuttons {
  font-size: clamp(1rem, 3vw, 1.375rem);
  font-weight: 600;
  color: #252525;
  hyphens: auto;
}

#quickbuttons .tab.contrast_light_font img {
  background-color: #fff !important;
}

@media (min-width: 576px) {
  #quickbuttons {
    margin-top: -85px;
    z-index: 12;
    position: relative;
    font-size: clamp(1rem, 3vw, 1.375rem);
  }
}

@media (min-width: 1200px) {
  #quickbuttons .btgrid .row-1 {
    flex-wrap: nowrap;
  }
}

@media (max-width: 991px) {
  #quickbuttons .btgrid>.row-1>div:last-child {
    margin: auto;
    margin-top: 15px;
  }

  #quickbuttons .btgrid>.row-1>div:nth-child(4),
  #quickbuttons .btgrid>.row-1>div:nth-child(5),
  #quickbuttons .btgrid>.row-1>div:nth-child(6) {
    margin-top: 15px;
  }
}

@media (max-width: 767px) {
  #quickbuttons .btgrid>.row-1>div:nth-child(2) {
    margin-top: 0;
  }
}

#quickbuttons a {
  color: #252525;
}

#quickbuttons .tab {
  background-color: #fff;
  border: 10px solid rgba(0, 91, 148, 0.8);
  padding: 27px 35px 12px 35px;
}

@media (max-width: 991px) {
  #quickbuttons {
    font-size: 0.8rem;
    padding-top: 30px;
  }
}

@media (max-width: 575px) {
  #quickbuttons .btgrid .row>div {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 50%;
  }
}

/* ------------------------------------------------ content ----------------------------------------------- */

#content {
  text-align: left;
  padding-bottom: 30px;
  padding-top: 15px;
}

main {
  padding-bottom: 30px;
}

@media (min-width: 992px) {
  #content {
    padding-bottom: 30px;
    padding-top: 15px;
  }

  .index #content {
    padding-bottom: 0;
    padding-top: 40px;
  }

  main {
    padding-bottom: 60px;
  }
}

.index #aboveContent {
  margin: 0;
}

@media (min-width: 768px) {

  #breadcrumbincontent,
  #content_footer {
    font-size: 1rem !important;
  }

  #contenttop_right img {
    width: 20px;
  }
}

/* ------------------------------------------ h1 - h6, newslink ----------------------------------------- */

.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
H6,
H5,
H4,
H3,
H2,
H1 {
  font-family: 'Arial', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

.index .index .h4link a:link,
.index .h4link a:hover,
.index .h4link a:focus,
.index .h4link a:visited,
.index H6,
.index H5,
.index H4,
.index H3,
.index H2,
.index H1 {
  color: #1b377f;
  font-weight: normal;
  font-family: "Arial", sans-serif;
}

h1,
.h1,
.legacy_h1 {
  font-size: 2.5rem;
}

@media (min-width: 768px) {

  h1,
  .h1,
  .legacy_h1 {
    font-size: 1.875rem;
  }
}

h2,
.h2,
.legacy_h2 {
  font-size: 2.1875rem;
}

@media (min-width: 768px) {

  h2,
  .h2,
  .legacy_h2 {
    font-size: 2.5rem;
  }
}

h3,
.h3,
.legacy_h3 {
  font-size: 1.875rem;
}

h4,
.h4,
.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
.legacy_h4 {
  font-size: 1.75rem;
}


h5,
.h5,
.legacy_h5 {
  font-size: 1.65rem;
}

h6,
.h6,
.legacy_h6 {
  font-size: 1.55rem;
}

#newslinks,
#newsmandate {
  border: 1px solid #1b377f;
}

/* --------------------------------------------- specialHeadline ------------------------------------------- */

.specialHeadline h1,
.specialHeadline h2,
.specialHeadline h3,
.specialHeadline h4,
.specialHeadline h5,
.specialHeadline h6 {
  font-family: "Arial";
  font-size: 22px;
  color: #000000;
}

.specialHeadline strong {
  font-family: "Arial", sans-serif;
  font-weight: 400;
}

#news .specialHeadline h1,
#news .specialHeadline h2,
#news .specialHeadline h3,
#news .specialHeadline h4,
#news .specialHeadline h5,
#news .specialHeadline h6 {
  color: #005b94;
}

/* --------------------------------------------- news events ------------------------------------------- */

@media (min-width: 1200px) {
  #news::before {
    content: "";
    background: url(../img/wappen-gemeinde-berne.png);
    width: 321px;
    height: 401px;
    background-position: left center;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
    position: absolute;
    left: -170px;
    bottom: -105px;
    pointer-events: none;
    display: inline-block;
  }

  #events::before {
    content: "";
    background: url(../img/wappen-gemeinde-berne-right.png);
    width: 321px;
    height: 401px;
    background-position: right center;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
    position: absolute;
    right: -170px;
    bottom: -50px;
    pointer-events: none;
    display: inline-block;
  }
}

#news,
#events {
  max-width: 1570px;
  margin: auto;
  position: relative;
}

#news {
  margin-top: 30px;
}

@media (min-width: 768px) {
  #news {
    font-size: 1.125rem;
  }
}

#events .tab_link_mehr,
#news .tab_link_mehr {
  color: transparent;
  font-size: 0;
}

#events .tab_link_mehr a {
  font-weight: 600;
  color: #005b94;
  padding: 10px 55px 25px 20px;
  position: relative;
  text-decoration: none;
  display: inline-block;
  transition: all, 300ms;
  font-size: 1.0625rem;
}

#news .tab_link_mehr a {
  font-weight: 600;
  color: #005b94;
  padding: 10px 55px 25px 20px;
  position: relative;
  text-decoration: none;
  display: inline-block;
  transition: all, 300ms;
}

#events .tab_link_mehr a::after {
  content: "";
  display: block;
  position: absolute;
  right: 12px;
  top: 11px;
  bottom: 9px;
  width: 25px;
  height: 25px;
  text-align: center;
  background: url(../img/icon-arrow-green.png);
  background-repeat: no-repeat;
  background-size: contain;
}

#news .tab_link_mehr a::after {
  content: "";
  display: block;
  position: absolute;
  right: 12px;
  top: 13px;
  bottom: 9px;
  width: 25px;
  height: 25px;
  text-align: center;
  background: url(../img/icon-arrow-green.png);
  background-repeat: no-repeat;
  background-size: contain;
}

#events .tab_link_mehr a:hover,
#events .tab_link_mehr a:focus,
#news .tab_link_mehr a:hover,
#news .tab_link_mehr a:focus {
  transform: scale(1.05);
}

@media (min-width: 576px) {

  #news .tab_link_entries,
  #events .tab_link_entries {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
}

#news .tab_link_entry,
#events .tab_link_entry {
  font-size: 1rem;
  position: relative;
  width: 100%;
}

#news .tab_link_title a,
#events .tab_link_title a {
  line-height: 1.2;
  font-weight: 400;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 8px;
  color: #005b94;
}

#events .tab,
#events .tab_link,
#events .tab_link>div,
#news .tab,
#news .tab_link,
#news .tab_link>div {
  height: 100%;
  min-height: 100%;
}

#events .tab_link_entry,
#news .tab_link_entry {
  background: #ffffff;
  padding: 235px 0px 30px 0px;
  border-bottom: 0px !important;
}

@media (min-width:992px) and (max-width: 1333px) {

  #events .tab_link_entry {
    padding: 215px 0px 30px 0px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {

  #events .tab_link_entry {
    padding: 210px 0px 30px 0px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {

  #events .tab_link_entry,
  #news .tab_link_entry {
    width: calc(50% - 15px);
  }

  #events .tab_link_entry:nth-child(2n + 1),
  #news .tab_link_entry:nth-child(2n + 1) {
    margin-right: 15px;
  }

  #events .tab_link_entry:nth-child(2n + 2),
  #news .tab_link_entry:nth-child(2n + 2) {
    margin-left: 15px;
  }
}

@media (min-width: 768px) {

  #events .tab_link_entry,
  #news .tab_link_entry {
    width: calc(33% - 20px);
  }

  #events .tab_link_entry:nth-child(6n + 2),
  #events .tab_link_entry:nth-child(6n + 3),
  #events .tab_link_entry:nth-child(6n + 5),
  #events .tab_link_entry:nth-child(6n + 6) {
    margin-left: 30px;
  }

  #events .tab_link_entry:nth-child(6n + 1),
  #events .tab_link_entry:nth-child(6n + 4) {
    margin-left: 0px;
  }
}

@media (min-width: 1200px) {

  #events .tab_link_entry,
  #news .tab_link_entry {
    width: calc(33% - 15px);
  }
}

@media (max-width: 767px) {

  #events .tab_link_entry+.tab_link_entry,
  #news .tab_link_entry+.tab_link_entry {
    margin-top: 30px;
  }
}

@media (min-width: 576px) {

  #events .tab_link_entry:nth-child(2),
  #news .tab_link_entry:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 991px) {

  #events .tab_link,
  #news .tab_link {
    margin-top: 0;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #events .tab_link_date p {
    word-wrap: break-word;
    max-width: 160px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  #events .tab_link_entry,
  #news .tab_link_entry {
    width: calc(33% - 20px);
  }

  #events .tab_link_entry:nth-child(3),
  #events .tab_link_entry:nth-child(4),
  #news .tab_link_entry:nth-child(3),
  #news .tab_link_entry:nth-child(4) {
    margin-top: 0px;
  }

  #events .tab_link,
  #news .tab_link {
    margin-top: 30px;
    padding-bottom: 30px;
  }
}

#events .tab_link_title::before,
#events .tab_link_entry .tab_preview_picture,
#news .tab_link_title::before,
#news .tab_link_entry .tab_preview_picture {
  position: absolute;
  display: block;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 213px;
  overflow: hidden;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  background-color: #fff;
}

#events .tab_link_title::before,
#news .tab_link_title::before {
  content: "";
  background: url("../img/news-standard.jpg") center / cover no-repeat;
}

#events .tab_preview_picture img,
#news .tab_preview_picture img {
  position: relative;
  margin: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}


#events .tab_link_entries+div,
#events .tab_link_entries .tab_spacer,
#events .tab_link_entry>div:nth-last-child(2),
#news .tab_link_entries+div,
#news .tab_link_entries .tab_spacer,
#news .tab_link_entry>div:nth-last-child(2) {
  display: none;
}

@media (max-width: 575px) {

  #events .tab_link_title::before,
  #events .tab_link_entry .tab_preview_picture,
  #news .tab_link_title::before,
  #news .tab_link_entry .tab_preview_picture {
    height: 172px;
  }

  #events .tab_link_date,
  #news .tab_date {
    top: 152px;
  }

  #events .tab_link_entry,
  #news .tab_link_entry {
    padding: 200px 0px 30px 0px;
  }
}

@media (max-width: 330px) {
  #events .tab_link_entry {
    padding: 245px 0px 30px 0px;
  }
}

/* ----------------------------------------------- events ----------------------------------------------- */

#events {
  position: relative;
}

@media (min-width: 768px) {
  #events {
    font-size: 1.125rem;
  }
}

/* ----------------------------------------------- tabs ----------------------------------------------- */

#tabs {
  padding: 30px 0;
}

#tabs .tabContent {
  position: absolute;
  left: 0;
  right: 0px;
  bottom: 0px;
  top: 0px;
}

#tabs .tabContent * {
  height: 100%;
}

#tabs .tab {
  display: flex;
  align-content: center;
  align-items: center;
  padding: 30px;
  position: relative;
  overflow: hidden;
  min-height: 100px;
  height: 100%;
}

@media (max-width: 767px) {
  #tabs .tab {
    padding: 35px 30px;
  }
}

@media (max-width: 575px) {
  #tabs .tab {
    padding: 25px 30px;
  }
}

@media (min-width: 1200px) {
  #tabs>.row>div:first-child {
    padding-left: 30px;
  }

  #tabs>.row>div:last-child {
    padding-right: 30px;
  }
}

.green {
  background-color: #005b94;
}

.blue {
  background-color: #1c3880;
}

@media (max-width: 767px) {
  #tabs>.row>div+div {
    margin-top: 30px;
  }
}

#tabs a {
  font-size: 0px;
  position: absolute;
  right: 0px;
  top: 0px;
  bottom: 0px;
  left: 15px;
  display: inline-block;
  z-index: 12;
  font-family: 'Arial', sans-serif;
  font-weight: 600;
}

#tabs a::before {
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 102px;
  height: 100%;
  background: url(../img/wappen-gemeinde-berne-button.png);
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  position: absolute;
  transition: all, 200ms;
}

#tabs .blue a::before {
  background-color: #0f2357;
}

#tabs .green a::before {
  background-color: #014773;
}

#tabs a::after {
  content: "";
  background: url(../img/icon-arrow.png);
  width: 30px;
  height: 30px;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  position: absolute;
  right: 30px;
  bottom: 30px;
  transition: all, 200ms;
}

@media (max-width: 767px) {
  #tabs a::after {
    right: 30px;
  }
}

#tabs h2 {
  font-size: clamp(1.25rem, 3vw, 1.5625rem);
  color: #fff;
  margin: 0px;
  transition: all, 200ms;
  padding-left: 90px;
  padding-right: 60px;
  font-family: 'Arial', sans-serif;
  font-weight: 600;
}

@media (max-width: 767px) {
  #tabs h2 {
    padding-left: 85px;
  }
}

/* ----------------------------------------------- logos ----------------------------------------------- */

#logos {
  padding: 0;
}

.tabLogos {
  padding: 40px;
}

/* ----------------------------------------------- footer ----------------------------------------------- */

#newsletterInputs {
  height: 50px;
  background: transparent;
  border: 1px solid #fff;
  display: inline-block;
  position: relative;
  width: 100%;
}

#newsletter_input {
  color: #fff;
  font-size: 16px;
  font-style: normal;
  background: transparent;
  padding: 0;
  border: 0;
  line-height: 50px;
  padding-left: 25px;
  padding-right: 70px;
  height: 47px;
  width: 100%;
}

#newsletter_submit {
  width: 83px;
  background: url("../img/icon-mail.png") center no-repeat;
  padding: 0;
  cursor: pointer;
  line-height: 50px;
  border: none;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  font-size: 0;
  -webkit-transition: background-color 300ms linear;
  -moz-transition: background-color 300ms linear;
  -ms-transition: background-color 300ms linear;
  -o-transition: background-color 300ms linear;
  transition: background-color 300ms linear;
}

#newsletter_submit:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#newsletter_input::-ms-input-placeholder {
  color: #fff !important;
}

#newsletter_input::-webkit-input-placeholder {
  color: #fff !important;
}

#newsletter_input::-moz-placeholder {
  opacity: 1;
}

#newsletter_input:-moz-placeholder {
  opacity: 1;
}

footer {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  font-size: 1rem;
  max-width: 1600px;
  margin: 0 auto;
}

footer a {
  color: #fff;
}

footer a[href*="mailto:"] {
  text-decoration: underline;
}

#footerTop {
  padding: 40px 0;
}

#footerBottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px 0;
}

@media (max-width: 767px) {
  footer .row>.col-xs-12:not(:first-child)::before {
    background: #ffffff;
    content: " ";
    height: 1px;
    width: 100%;
    display: block;
    margin: 25px 0;
    opacity: 0.2;
  }

  footer .row>.col-xs-12.hidden-xs~.col-xs-12::before,
  footer .row>.col-xs-12.hidden-sm~.col-xs-12::before {
    display: none;
  }
}

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: inline-block;
}

#innerfooter a {
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  font-weight: 300;
}

#innerfooter a:hover,
#innerfooter a:focus {
  color: #e5b113;
}

#innerfooter li+li::before {
  content: "";
  margin: 0 15px;
}

@media (min-width: 1200px) {
  #innerfooter li+li::before {
    margin: 0 25px;
  }
}

/* --------------------------------------------- vernetzt -------------------------------------------- */

#vernetzt {
  text-align: right;
  font-size: 0.875rem;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 auto;
  font-weight: 300;
  display: inline-block;
  text-decoration: none;
}

#vernetzt b {
  color: #e5b113;
  font-weight: 400;
  font-family: "Arial", serif;
  font-size: 1.125rem;
}

#vernetzt span {
  color: #ffffff;
}

#vernetzt span span {
  display: block;
}

#vernetzt img {
  margin-left: 18px;
}