:root {
  --navy: #01357e;
  --red: #e2342e;
  --sky: #4a93c4;
  --text: #222;
  --grey: #f4f4f4;
  --line: #e4e4e4;
  --border: #8eabc3;
  --radius: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

input:focus,
input:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-color: var(--sky);
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 8px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1100px);
  margin: 0 auto;
}

.top {
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
}

.top__in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding: 8px 0;
}

.top p { margin: 0; }
.top a { color: #fff; font-weight: 700; text-decoration: none; }

.head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}

.logo img { width: 78px; height: auto; }

.menu-btn {
  display: none;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--navy);
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  border-radius: var(--radius);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}

.menu a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.menu a:hover { color: var(--red); }

.menu__cta {
  background: var(--red);
  color: #fff !important;
  padding: 0 14px;
  border-radius: var(--radius);
}

.menu__cta:hover { background: #c01f1a; }

.menu-close { display: none; }

.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 32px;
  align-items: center;
  padding: 56px 0;
  color: #fff;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 18ch;
}

.hero__text p {
  margin: 0 0 20px;
  max-width: 36ch;
  font-size: 1.2rem;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-slider {
  background: #fff;
  color: var(--text);
  padding: 24px;
  border-radius: var(--radius);
}

.hero-slider__label {
  margin: 0 0 12px;
  color: var(--navy);
  font-weight: 700;
}

.hero-slider__viewport {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero-slide.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-slide__when {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
}

.hero-slide__place {
  margin: 0 0 6px;
  color: #666;
}

.hero-slide__name {
  display: block;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.2rem;
}

.hero-slide__link {
  font-weight: 700;
  text-decoration: underline;
}

.hero-slider__progress {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}

.hero-slider__progress span {
  flex: 1;
  height: 4px;
  overflow: hidden;
  background: #d6e4ef;
  border-radius: 2px;
}

.hero-slider__progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sky);
}

.hero-slider__progress span.is-done i { width: 100%; }

.hero-slider__progress span.is-on i {
  animation: hero-progress 7s linear forwards;
}

.hero-slider.is-paused .hero-slider__progress span.is-on i {
  animation-play-state: paused;
}

@keyframes hero-progress {
  from { width: 0; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slider__progress span.is-on i {
    width: 100%;
    animation: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn:hover { background: #c01f1a; border-color: transparent; color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn--ghost-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn--ghost-dark:hover {
  background: var(--navy);
  color: #fff;
}

.sec {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
}
.sec--grey { background: var(--grey); }

.blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.blob--sky {
  width: 200px;
  height: 200px;
  background: var(--sky);
  opacity: 0.16;
}

.blob--ring {
  width: 150px;
  height: 150px;
  border: 12px solid var(--sky);
  opacity: 0.22;
}

.blob--left { left: -90px; top: 36px; }
.blob--right { right: -80px; bottom: 28px; }

h2 {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: 1.7rem;
}

.news {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.news article time,
.news h3 { display: block; }

.news time {
  margin: 10px 0 6px;
  color: var(--red);
  font-weight: 700;
}

.news h3 { margin: 0 0 8px; font-size: 1.25rem; }
.news p { margin: 0 0 12px; }

.news__media {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  border-radius: var(--radius);
}

.news__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news__media:hover img {
  transform: scale(1.05);
}

.news__title,
.news__title:hover {
  color: var(--text);
  text-decoration: none;
}

.news__link {
  font-weight: 700;
  text-decoration: underline;
}

.sec__more { margin: 28px 0 0; }

.sec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 24px;
}

.sec__head h2 { margin: 0; }

.program-runner {
  position: absolute;
  left: 40px;
  top: 8px;
  width: min(40vw, 340px);
  height: auto;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--sky);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
}

.search-btn svg {
  width: 18px;
  height: 18px;
}

.search-btn:hover {
  background: var(--sky);
  color: #fff;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tabs button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
}

.tabs button.is-on {
  background: var(--navy);
  color: #fff;
}

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

.events li {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 8px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.events li[hidden] { display: none; }

.events__date {
  display: block;
  font-weight: 700;
  color: var(--red);
}

.events__time {
  display: block;
  color: #444;
}

.events__place {
  display: block;
  color: #666;
  font-weight: 700;
}

.events strong { display: block; }

.events__detail {
  font-weight: 700;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal--front { z-index: 50; }
.modal--notice { z-index: 60; }

.modal[hidden] { display: none; }

.modal__box {
  width: min(96vw, 1100px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  padding: 36px 40px 40px;
  border-radius: var(--radius);
}

.modal__box h2 { margin-bottom: 20px; }

.modal__box--notice {
  width: min(92vw, 560px);
  padding: 32px 28px 28px;
}

.modal__box--notice p {
  margin: 0 0 14px;
  color: #444;
}

#search-form {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 24px;
}

.search-field {
  display: grid;
  gap: 8px;
}

.modal__box label {
  display: block;
  font-weight: 700;
  margin: 0;
  color: var(--navy);
}

.modal__box input[type="search"] {
  width: 100%;
  min-height: 56px;
  border: 2px solid var(--border);
  padding: 0 16px;
  font: inherit;
  max-width: none;
  border-radius: var(--radius);
}

.search-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--grey);
  border-radius: var(--radius);
}

.picker__name {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

.picker__value {
  margin: 0;
  font-size: 1.2rem;
  min-height: 1.6em;
}

.picker__change {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
}

.choice-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.choice-list button {
  min-height: 52px;
  text-align: left;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  border-radius: var(--radius);
  cursor: pointer;
}

.choice-list button:hover,
.choice-list button.is-picked {
  border-color: var(--navy);
  background: #eef3fa;
  font-weight: 700;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.link-btn {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.link-btn:hover { color: var(--red); }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.about img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about p { color: #444; margin: 0 0 14px; }

.about .btn { margin-top: 8px; }

.timeline {
  position: relative;
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--sky);
  transform: translateX(-50%);
}

.timeline li {
  display: grid;
  grid-template-columns: 1fr 16px 1fr;
  grid-template-rows: auto auto;
  column-gap: 148px;
  align-items: start;
}

.timeline li + li { margin-top: -64px; }

.timeline__img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 10px;
  background: #fff;
  border-radius: var(--radius);
}

.timeline__img[src$=".svg"] {
  object-fit: contain;
  padding: 16px;
}

.timeline__mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  grid-row: 2;
  z-index: 1;
  width: 16px;
  min-height: 28px;
  justify-self: center;
}

.timeline__mark::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 120px;
  height: 2px;
  background: var(--sky);
}

.timeline li:nth-child(odd) .timeline__img,
.timeline li:nth-child(odd) .timeline__body {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.timeline li:nth-child(even) .timeline__img,
.timeline li:nth-child(even) .timeline__body {
  grid-column: 3;
}

.timeline li:nth-child(odd) .timeline__img { grid-row: 1; }
.timeline li:nth-child(even) .timeline__img { grid-row: 1; }
.timeline li:nth-child(odd) .timeline__body,
.timeline li:nth-child(even) .timeline__body { grid-row: 2; }

.timeline li:nth-child(odd) .timeline__mark::before {
  right: 100%;
}

.timeline li:nth-child(even) .timeline__mark::before {
  left: 100%;
}

.timeline__year {
  position: absolute;
  top: 50%;
  z-index: 1;
  padding: 0 4px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
  transform: translateY(-50%);
}

.timeline li:nth-child(odd) .timeline__year {
  right: calc(100% + 12px);
}

.timeline li:nth-child(even) .timeline__year {
  left: calc(100% + 12px);
}

.timeline__dot {
  width: 16px;
  height: 16px;
  flex: none;
  background: var(--red);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--sky);
}

.timeline__body {
  position: relative;
  z-index: 1;
  max-width: 220px;
  padding: 2px 0 12px;
  background: #fff;
}

.timeline h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.2rem;
}

.timeline p {
  margin: 0;
  color: #444;
}

.foot {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 56px 0 0;
}

.foot .blob--sky { opacity: 0.16; }
.foot .blob--ring { border-color: #fff; opacity: 0.1; }

.foot a { color: #fff; }
.foot h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.25rem;
}

.foot__in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  align-items: start;
  justify-items: start;
  text-align: left;
  padding-bottom: 48px;
}

.foot__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.foot__logo img {
  width: 86px;
  height: auto;
}

.foot__brand > p,
.foot__contact p,
.foot__nl p,
.foot form + p,
.foot h2 + p {
  margin: 0 0 14px;
}

.foot__contact a {
  font-weight: 700;
  text-decoration: none;
}

.foot__contact a:hover { color: #c5e4f5; }

.foot__hours-status {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
}

.social a:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.foot__bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 16px 0;
}

.foot__bar-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
}

.foot__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.foot__menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: underline;
}

.foot__menu a:hover { color: #c5e4f5; }

#newsletter { display: grid; gap: 10px; max-width: 420px; }

.nl-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

input,
button[type="submit"] {
  min-height: 48px;
  font: inherit;
  border: 2px solid transparent;
  padding: 0 12px;
  border-radius: var(--radius);
}

#newsletter input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border-color: var(--border);
}

button[type="submit"] {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#newsletter button[type="submit"] {
  min-height: 44px;
  padding: 0 14px;
  flex-shrink: 0;
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

#newsletter button[type="submit"]:hover {
  background: #d6e8f4;
  color: var(--navy);
}

.fine { font-size: 0.95rem; opacity: 0.85; }
.copy { margin: 0; opacity: 0.8; }

@media (max-width: 1100px) {
  .hero__in {
    grid-template-columns: 1fr minmax(240px, 300px);
    gap: 24px;
    padding: 40px 0;
  }

  .news { grid-template-columns: 1fr 1fr; }

  .program-runner {
    left: -70px;
    top: 24px;
    width: min(34vw, 240px);
    opacity: 0.07;
  }

  .events li {
    grid-template-columns: 120px 1fr;
  }

  .events__detail { grid-column: 2; }

  .timeline li { column-gap: 68px; }
  .timeline__mark::before { width: 48px; }

  .modal__box { padding: 28px 24px; }
  .search-pickers { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .top__in { justify-content: center; text-align: center; }
  #hours {
    flex: 1 0 100%;
    text-align: center;
  }
  .head { z-index: 21; }
  .menu-btn { display: inline-flex; align-items: center; }
  .menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 22;
    background: #fff;
    padding: 88px 24px 32px;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow: auto;
  }
  .menu.is-open {
    display: flex;
    visibility: visible;
  }
  .menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: none;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--navy);
    background: #fff;
    font: inherit;
    font-weight: 700;
    color: var(--navy);
    border-radius: var(--radius);
  }
  .menu.is-open .menu-close { display: inline-flex; }
  .menu a {
    justify-content: center;
    min-height: 56px;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--line);
  }
  .menu__cta {
    margin-top: 12px;
    justify-content: center;
    border-bottom: 0;
  }
  body.is-menu-open { overflow: hidden; }
  body.is-menu-open .top,
  body.is-menu-open .logo,
  body.is-menu-open .menu-btn { visibility: hidden; }

  .hero { min-height: 0; }
  .hero__in,
  .news,
  .about,
  .foot__in,
  .events li { grid-template-columns: 1fr; }

  .events__detail { grid-column: auto; }

  .program-runner {
    left: -110px;
    top: 180px;
    width: 180px;
    opacity: 0.05;
  }

  .sec { padding: 40px 0; }

  .timeline::before { left: 8px; transform: none; }
  .timeline li {
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
  }
  .timeline li + li { margin-top: 0; }
  .timeline__mark,
  .timeline li:nth-child(odd) .timeline__mark,
  .timeline li:nth-child(even) .timeline__mark {
    grid-column: 1 / -1;
    grid-row: 1;
    width: auto;
    justify-self: start;
  }
  .timeline__mark::before { display: none; }
  .timeline__year,
  .timeline li:nth-child(odd) .timeline__year,
  .timeline li:nth-child(even) .timeline__year {
    position: static;
    transform: none;
    margin-right: 8px;
  }
  .timeline li:nth-child(odd) .timeline__img,
  .timeline li:nth-child(even) .timeline__img,
  .timeline li:nth-child(odd) .timeline__body,
  .timeline li:nth-child(even) .timeline__body {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
  .timeline li:nth-child(odd) .timeline__img,
  .timeline li:nth-child(even) .timeline__img { grid-row: 2; }
  .timeline li:nth-child(odd) .timeline__body,
  .timeline li:nth-child(even) .timeline__body { grid-row: 3; }
  .timeline__img { max-width: none; }

  .link-btn { margin-left: 0; }
  #aktuality .sec__more { text-align: center; }
}
