/* =============================================================================
   Tables
   ========================================================================== */

/* The scroll wrapper only needs its spacing while the table really scrolls */
@media (min-width: 641px) {
  .newsletterregistration {
    max-width: 300px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr max-content;
    grid-gap: var(--g-gap-s);

    & input {
      margin-bottom: 0;
    }
  }

  .ce-table-scroll {
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

table.ce-table td {
  border: 2px solid rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-neutral-lighter));
  padding: 0.3rem 0.7rem;
}

.content .frame-bg-grey table.ce-table td {
  border: 2px solid rgb(var(--c-neutral-lighter));
  background: rgb(var(--c-neutral-lightest));
}

table.ce-table th,
table.ce-table caption {
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
  border: 2px solid rgb(var(--c-neutral-lightest));
  padding: 0.3rem 0.7rem;
  font-weight: var(--f-weight-sb);
}

.content .frame-bg-grey table.ce-table th,
.content .frame-bg-grey table.ce-table caption {
  border: 2px solid rgb(var(--c-neutral-lighter));
}

.ios-scrollbar {
  padding-bottom: 20px;
  position: relative;
}

.ios-scrollbar::after {
  content: '\f178';
  font-family: 'FaLight', sans-serif;
  font-size: 15px;
  line-height: 100%;
  position: absolute;
  right: 0;
  bottom: 0;
}


/* =============================================================================
   Standard contentelements
   ========================================================================== */

/* Uploads */
.uploads__item {
  background-color: rgb(var(--c-neutral-lighter));
}

.content .frame-bg-grey .uploads__item {
  background-color: rgb(var(--c-neutral-lightest));
}

.uploads__link {
  color: rgb(var(--c-neutral-dark));
}

.uploads__title {
  color: rgb(var(--c-primary));
  font-size: var(--f-size-l-1);
}

.uploads__arrowpath {
  stroke: rgb(var(--c-primary));
}

@media (hover: hover) {
  .content .frame-bg-grey .uploads__item:hover,
  .uploads__item:hover {
    background-color: rgb(var(--c-primary));
  }

  .uploads__item:hover,
  .uploads__item:hover .uploads__description,
  .uploads__item:hover .uploads__title {
    color: rgb(var(--c-neutral-lightest));
  }

  .uploads__item:hover .uploads__arrowpath {
    stroke: rgb(var(--c-neutral-lightest));
  }
}

/* Frame: background (v10 gridelements col2-7030, boxed columns) */
.frame-background .grid__col {
  box-sizing: border-box;
  padding: 20px;
  background-color: rgb(var(--c-neutral-lighter));
}
.frame-background .grid__col:first-child {
  background-color: rgb(var(--c-neutral-lightest));
  border: 1px solid rgb(var(--c-neutral-light));
}
.frame-background .grid__col + .grid__col {
  margin-top: 0.5rem;
}
@media (min-width: 1025px) {
  .frame-background .grid__col + .grid__col {
    margin-top: 0;
  }
}

/* Frame: partner (logo row) */
.frame-partner .grid__12 {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.frame-partner .grid__col img {
  max-height: 160px;
  width: auto;
}

/* Menus */
.frame-type-menu_pages li a,
.frame-type-menu_sitemap li a {
  color: rgb(var(--c-neutral-dark));
}

/* Paginator */
ul.f3-widget-paginator {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

ul.f3-widget-paginator li {
  list-style-type: none;
  width: 40px;
  height: 40px;
  margin: 0 5px 5px 0;
  background: rgb(var(--c-neutral-lighter));
  display: flex;
  justify-content: center;
  align-items: center;
}

ul.f3-widget-paginator a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

ul.f3-widget-paginator li.current {
  background: rgb(var(--c-primary));
  color: rgb(var(--c-neutral-lightest));
}

ul.f3-widget-paginator li.current a {
  color: rgb(var(--c-neutral-lightest));
}

@media (hover: hover) {
  ul.f3-widget-paginator li:hover {
    background: rgb(var(--c-primary));
    color: rgb(var(--c-neutral-lightest));
  }

  ul.f3-widget-paginator li:hover a {
    color: rgb(var(--c-neutral-lightest));
  }
}

ul.f3-widget-paginator li.previous a::after {
  content: '\f053';
  font-family: 'FaLight', sans-serif;
  font-weight: normal;
  font-style: normal;
  text-decoration: inherit;
  -webkit-font-smoothing: antialiased;
  height: auto;
  line-height: normal;
  vertical-align: baseline;
  font-size: var(--f-size);
}

ul.f3-widget-paginator li.next a::after {
  content: '\f054';
  font-family: 'FaLight', sans-serif;
  font-weight: normal;
  font-style: normal;
  text-decoration: inherit;
  -webkit-font-smoothing: antialiased;
  height: auto;
  line-height: normal;
  vertical-align: baseline;
  font-size: var(--f-size);
}

/* =============================================================================
   Menus
   ========================================================================== */

/* Metanav */
.metanav__link {
  color: rgb(var(--c-neutral-dark));
  text-transform: uppercase;
}

@media (hover: hover) {
  .metanav__link:hover {
    color: rgb(var(--c-primary));
  }
}

.metanav__nav {
  padding: 0.6rem 0;
}

/* =============================================================================
   Forms
   ========================================================================== */

input,
select,
textarea {
  border: 1px solid rgb(var(--c-neutral-light));
  padding: calc(0.6rem - 1px) 0.6rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

/* =============================================================================
   Media Queries
   ========================================================================== */

/* =============================================================================
   News ticker
   ========================================================================== */

.ticker {
  border-top: 1px solid rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-neutral-lightest));
}

.ticker__header {
  float: left;
  width: 150px;
  height: 50px;
  padding: 0;
  line-height: 50px;
  text-align: center;
  font-size: 14px;
  font-weight: var(--f-weight-b);
  text-transform: uppercase;
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-neutral-darker));
}

.ticker__news {
  height: 50px;
  margin-left: 150px;
  padding: 0;
  line-height: 50px;
  overflow: hidden;
  background: rgb(var(--c-neutral-lighter));
}

.ticker__inner {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker__item {
  flex: 0 0 auto;
}

.ticker__title,
.ticker__title a {
  white-space: nowrap;
}

.ticker__title a {
  display: block;
  margin-right: 1.5em;
  color: rgb(var(--c-neutral-dark));
}

.ticker__title a::after {
  content: '\2022';
  padding-left: 1.5em;
}

.ticker__item:last-child .ticker__title a::after {
  content: '';
}

.ticker__title a.nolink {
  cursor: default;
}

@media (hover: hover) {

  .ticker__title a:hover {
    color: rgb(var(--c-primary));
  }
}

/* =============================================================================
   Content popup
   ========================================================================== */

.contentpopup__container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.contentpopup__content {
  box-sizing: border-box;
  width: 100%;
  padding: 3rem;
  background: rgb(var(--c-neutral-lightest));
  box-shadow: 0 0 20px 8px rgba(var(--c-neutral-darkest), 0.15);
}

.contentpopup__content > div:last-child {
  margin-bottom: 0;
}

.contentpopup__content > .grid__main {
  display: block;
}

.contentpopup__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
}

.contentpopup__close::after {
  content: '\f00d';
  font-family: 'FaRegular';
  font-size: 20px;
}

/* =============================================================================
   Video embeds
   ========================================================================== */

.gallery__item.-video,
.video-embed,
.media__video {
  position: relative;
  aspect-ratio: 16 / 9;
}

.gallery__item.-video iframe,
.video-embed iframe,
.media__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-height: 100%;
}

/* =============================================================================
   Openweather widget
   ========================================================================== */

/* the widget injects its stylesheet at runtime, so its rules always come last -
   element prefixes give these rules the specificity to win */

div.widget-left {
  container-type: inline-size;
  width: 100%;
  max-width: 720px;
  height: auto;
  border: 1px solid rgb(var(--c-neutral-light));
  border-radius: 0;
  box-shadow: none;
}

div.widget-left-menu {
  border-radius: 0;
}

div.widget-left-menu--brown {
  background: rgb(var(--c-neutral-dark));
}

h2.widget-left-menu__header {
  color: rgb(var(--c-neutral-lightest));
}

/* the widget always prefixes the city with the English label - translate it for German pages */

html[lang|="de"] h2.widget-left-menu__header::before {
  content: "Wetter für ";
}

div.widget-left-menu--blue .widget-left-menu__layout,
div.widget-left-menu--brown .widget-left-menu__layout {
  width: 100%;
  margin: 15px auto;
  padding: 0 1rem;
  border-bottom: none;
}

div.widget-left-menu__logo_black,
div.widget-left-menu__logo_black_small {
  padding-right: 57px;
  background: url(https://www.gkmb-cdn.de/img/openweather/new_logo_white.png) 50% 50% no-repeat;
  background-size: 80px 35px;
}

div.widget-left__body {
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
  padding: 1rem 0.5rem;
}

/* d3 writes the curve colour into the style attribute, so !important is needed here */

.widget-left__graphic path {
  fill: rgb(var(--c-neutral-dark)) !important;
  stroke: rgb(var(--c-neutral-dark)) !important;
}

img.weather-left-card__img {
  width: 128px;
  height: 128px;
}

div.widget-left__calendar {
  width: 100%;
  padding-bottom: 20px;
  overflow-x: auto;
  overflow-y: hidden;
}

.calendar__item {
  list-style-type: none;
}

@container (min-width: 500px) {

  div.widget-left__body {
    display: grid;
    grid-template-columns: 128px 1fr;
    padding: 1rem;
  }

  div.weather-left-card__row1 {
    flex-direction: column;
    height: auto;
  }

  p.weather-left-card__number {
    padding-top: 10px;
  }
}

@container (min-width: 640px) {

  div.widget-left__body {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  div.weather-left-card__row1 {
    display: grid;
    grid-template-columns: max-content 1fr;
  }

  div.weather-left-card__row2 {
    padding-top: 10px;
  }

  img.weather-left-card__img {
    width: 100px;
    height: 100px;
  }

  div.widget-left__calendar {
    width: 100%;
  }
}
