/*
 * der-norden.css
 * Erscheinungsbild der bisherigen www.der-norden.de (fileadmin/theme/css/style.css + rte.css),
 * umgesetzt für das TYPO3-14-Sitepackage. Bewusst ohne @layer, damit die Regeln
 * zuverlässig vor den Basis-Layern und dem Extension-CSS greifen.
 */

/* --- BASIS ------------------------------------------------------- */
html {
  font-size: 16px;
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
}

body {
  margin: 0;
  background-color: #fff;
  border-top: 0.5rem solid var(--color-brand-red);
  color: var(--color-text);
  font-family: var(--font-family-body);
  font-weight: 400;
  line-height: 1.5;
}

p {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-brand-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--color-brand-red);
}

:focus-visible {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  padding-left: 2.5rem;
  line-height: 2;
}

strong,
b {
  font-weight: 700;
}

/* --- ÜBERSCHRIFTEN (wie rte.css) -------------------------------- */
h1,
h2,
h3,
h4 {
  letter-spacing: normal;
  line-height: 1.5;
  color: var(--color-brand-blue);
}

h1 {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: var(--font-size-h1);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-family-script);
  font-size: var(--font-size-h2);
  font-weight: 400;
  text-align: center;
}

h3 {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: var(--font-size-h3);
  font-weight: 600;
  text-align: left;
}

h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-family-display);
  font-size: var(--font-size-h4);
  font-weight: 400;
  text-align: left;
}

/*
 * Überschrift + Unterüberschrift eines Inhaltselements:
 * Titel in Oswald (Versalien), Unterzeile in Sacramento – wie "Top-Veranstaltungen / Aktuelle Highlights".
 */
.frame > header > h2:first-child,
.section-header__title,
.cb-headline__title {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: var(--font-size-h1);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-brand-blue);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.frame > header > h2:first-child:last-child,
.section-header__title:last-child,
.cb-headline__title:last-child {
  margin-bottom: 2rem;
}

/* Unterzeile als erste Zwischenüberschrift im Text (z. B. Gezeiten-Seite): direkt unter dem Titel */
.frame > header:has(+ h2) > h2:first-child:last-child {
  margin-bottom: 0;
}

.frame > header + h2 {
  margin-top: 0;
}

.frame > header > h2 + :is(h3, h4),
.section-header__subtitle,
.cb-headline__subtitle {
  margin: 0 0 1.5rem;
  font-family: var(--font-family-script);
  font-size: var(--font-size-h2);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-brand-blue);
  text-align: center;
  text-transform: none;
}

.frame > header > h2 + :is(h3, h4) {
  margin-bottom: 1.5rem;
}

.frame > header {
  margin-bottom: 0;
}

.frame > header > h3:first-child {
  margin-bottom: 0.75rem;
}

.cb-headline {
  margin: 0;
}

.lead {
  font-size: 1.4rem;
  line-height: 1.5;
}

/* --- HILFSKLASSEN ------------------------------------------------- */
.visually-hidden,
.onepager-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-brand-blue);
  color: #fff;
  transform: translateY(-120%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Innerer Inhaltsbereich: 92 % Breite, max. 1280 px (wie .box-content der bisherigen Seite) */
.box-content,
.site-header__inner,
.header-image__inner,
.cb-frame__container {
  box-sizing: border-box;
  width: 92%;
  max-width: 1280px;
  margin-inline: auto;
  padding: 0;
}

/* --- BUTTONS ------------------------------------------------------ */
.button,
a.button {
  display: inline-block;
  padding: 1.2rem 1.9rem;
  border: 1px solid var(--color-brand-red);
  background-color: var(--color-brand-red);
  color: #fff;
  font-family: var(--font-family-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover,
.button:focus-visible,
a.button:hover,
a.button:focus-visible {
  border-color: var(--color-brand-blue);
  background-color: var(--color-brand-blue);
  color: #fff;
}

.button--outline,
a.button--outline {
  background-color: transparent;
  color: var(--color-brand-red);
}

.button--outline:hover,
.button--outline:focus-visible,
a.button--outline:hover,
a.button--outline:focus-visible {
  border-color: var(--color-brand-red);
  background-color: var(--color-brand-red);
  color: #fff;
}

/* --- HEADER ------------------------------------------------------- */
.site-header {
  background: #fff;
}

.site-header__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__logo {
  flex: 0 0 auto;
  padding: 1rem 0 1.5rem;
}

.site-header__logo-link {
  display: block;
}

.site-header__logo-image {
  display: block;
  width: 178px;
  height: auto;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
}

.site-nav__item {
  margin: 0;
  padding: 0 1rem;
}

.site-nav__item:last-child {
  padding-right: 0;
}

.site-nav__link {
  display: block;
  padding: 0 0 2.5rem;
  border-bottom: 7px solid transparent;
  font-family: var(--font-family-display);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__item.is-active > .site-nav__link {
  color: var(--color-brand-blue);
  border-bottom-color: var(--color-brand-blue);
}

.site-header__toggle {
  display: none;
}

@media (max-width: 1024px) {
  .site-header__inner {
    flex-direction: column;
    align-items: center;
  }

  .site-header__logo {
    padding-bottom: 1rem;
  }

  .site-nav__list {
    justify-content: center;
  }

  .site-nav__item {
    padding: 0 0.7rem;
  }

  .site-nav__item:last-child {
    padding-right: 0.7rem;
  }

  .site-nav__link {
    padding-bottom: 1.25rem;
    font-size: 1rem;
  }
}

/* Mobile Navigation (bis 700 px): Menü-Button, aufklappende Liste */
@media (max-width: 700px) {
  .site-header__inner {
    width: 100%;
    gap: 0;
  }

  .site-header__logo {
    padding: 1rem 0 0.5rem;
  }

  .site-header__logo-image {
    width: 110px;
  }

  .site-header__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--color-brand-blue);
    cursor: pointer;
  }

  .site-header__toggle-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 15px;
  }

  .site-header__toggle-icon span {
    position: absolute;
    left: 0;
    display: block;
    width: 20px;
    height: 3px;
    background: var(--color-brand-blue);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  }

  .site-header__toggle-icon span:nth-child(1) { top: 0; }
  .site-header__toggle-icon span:nth-child(2) { top: 6px; }
  .site-header__toggle-icon span:nth-child(3) { top: 12px; }

  .site-header__toggle[aria-expanded="true"] .site-header__toggle-icon span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
  }

  .site-header__toggle[aria-expanded="true"] .site-header__toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .site-header__toggle[aria-expanded="true"] .site-header__toggle-icon span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
  }

  .site-header__toggle-label {
    font-family: var(--font-family-display);
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    display: block;
    border-top: 1px solid var(--color-brand-blue);
  }

  .site-nav__item,
  .site-nav__item:last-child {
    padding: 0;
    border-bottom: 1px solid var(--color-brand-blue);
  }

  .site-nav__link {
    padding: 1.5rem 6%;
    border-bottom: 0;
    font-size: 1.25rem;
  }

  .site-nav__link:hover,
  .site-nav__link:focus-visible {
    border-bottom: 0;
  }

  .site-nav__item.is-active {
    background-color: var(--color-brand-blue);
  }

  .site-nav__item.is-active > .site-nav__link {
    color: #fff;
    border-bottom: 0;
  }
}

/* --- HEADERBILD MIT SUCHE ---------------------------------------- */
.header-image {
  background-color: #6f7d88;
  background-image: url('../Images/theme/header.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

.header-image__inner {
  text-align: center;
}

.header-image__slogan {
  margin: 0;
  padding: 4rem 0 0;
  font-family: var(--font-family-display);
  font-size: 3.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.header-search {
  display: inline-flex;
  align-items: center;
  width: 40%;
  margin: 2rem 0 4.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background-color: #fff;
  box-sizing: border-box;
}

.header-search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0.25rem;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

.header-search__input:focus {
  outline: none;
}

.header-search:focus-within {
  box-shadow: 0 0 0 3px rgba(15, 66, 145, 0.45);
}

.header-search__submit {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  color: var(--color-brand-red);
  cursor: pointer;
}

.header-search__submit:hover,
.header-search__submit:focus-visible {
  color: var(--color-brand-blue);
}

@media (max-width: 1024px) {
  .header-image__slogan {
    font-size: 3.2rem;
  }
}

@media (max-width: 800px) {
  .header-search {
    width: 80%;
  }
}

@media (max-width: 600px) {
  .header-search {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-image__slogan {
    font-size: 2.6rem;
  }
}

/* --- INHALTSBEREICHE (sy_content_layouts) ------------------------ */
.site-content {
  display: block;
}

.site-content:focus {
  outline: none;
}

.content-item-wrapper {
  overflow: visible;
}

.content-item-wrapper.content-item-spaceBefore {
  padding-top: 4rem !important;
}

.content-item-wrapper.content-item-spaceAfter {
  padding-bottom: 4rem !important;
}

.content-item-wrapper.content-item-spaceBoth {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

/* "Grau" im Backend = beiger Hintergrund der bisherigen Seite */
.content-item-wrapper.content-item-alt-3 {
  background-color: var(--color-brand-beige);
  padding-top: 0;
  padding-bottom: 0;
}

.content-item-wrapper.content-item-alt-1 {
  background-color: #dfe9f5;
}

.content-item-wrapper.content-item-alt-2 {
  background-color: #e8f1e4;
}

/* Verweis-Element (Shortcut): eingebundenes Element steckt in einem zweiten Rahmen – nicht doppelt einrücken */
.content-item-wrapper:not(.content-item-widthFull) > .box-content .content-item-wrapper > .box-content {
  width: 100%;
}

.content-item-wrapper.content-item-widthFull > .box-content {
  width: 100%;
  max-width: none;
}

.frame {
  margin: 0;
}

.frame::after {
  content: "";
  display: table;
  clear: both;
}

/* Content Blocks: gleiche Abstände wie die übrigen Bereiche */
.cb-frame--py-default {
  padding-block: 4rem;
}

.cb-frame--bg-light {
  background: var(--color-brand-beige);
}

/* --- TEXT & MEDIEN ------------------------------------------------ */
.ce-textpic .ce-gallery img,
.ce-image .ce-gallery img {
  width: 100%;
  height: auto;
}

.ce-gallery figure {
  position: relative;
}

.ce-gallery figcaption,
.image-copyright {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

.ce-textpic.ce-intext.ce-right .ce-gallery,
.ce-textpic.ce-intext.ce-left .ce-gallery {
  width: 49%;
  max-width: none;
}

.ce-textpic.ce-intext.ce-right .ce-gallery {
  margin-left: 2%;
}

.ce-textpic.ce-intext.ce-left .ce-gallery {
  margin-right: 2%;
}

.ce-textpic.ce-intext .ce-gallery .ce-column,
.ce-textpic.ce-intext .ce-gallery .ce-row,
.ce-textpic.ce-intext .ce-gallery figure {
  width: 100%;
  display: block;
}

.ce-textpic.ce-intext.ce-nowrap .ce-bodytext {
  overflow: hidden;
}

.ce-bodytext h3 {
  font-size: var(--font-size-h3);
}

@media (max-width: 600px) {
  .ce-textpic.ce-intext.ce-right .ce-gallery,
  .ce-textpic.ce-intext.ce-left .ce-gallery {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem;
  }
}

/* --- VERANSTALTUNGSLISTE (sy_vin_json) --------------------------- */
.events-list__items {
  margin: 0;
}

.events-list-item {
  display: flex;
  gap: 2%;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-brand-beige);
}

.events-list-item__image {
  flex: 0 0 33%;
}

.events-list-item__image a {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-brand-beige);
}

.events-list-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.events-list-item__image a:hover img {
  transform: scale(1.03);
}

.events-list-item__text {
  flex: 1 1 auto;
  min-width: 0;
}

.events-list-item__title-link {
  display: block;
  text-decoration: none;
  font-weight: 400;
}

.events-list-item__title {
  margin: 0;
  overflow-wrap: anywhere;
}

.events-list-item__title-link:hover .events-list-item__title,
.events-list-item__title-link:focus-visible .events-list-item__title {
  color: var(--color-brand-red);
}

.events-list-item__subtitle {
  margin: 0 0 0.5rem;
  font-family: var(--font-family-display);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--color-brand-blue);
}

.events-list-item__title-link {
  margin-bottom: 1.5rem;
}

.event-meta {
  margin: 0;
  padding-left: 25px;
  background-repeat: no-repeat;
  font-size: 1.1rem;
  line-height: 1.5;
}

.event-meta--date {
  background-image: url('../Images/theme/icon-date.png');
  background-position: left 4px;
}

.event-meta--place {
  margin-bottom: 1.6rem;
  background-image: url('../Images/theme/icon-place.png');
  background-position: 3px 5px;
}

.events-list-item__more {
  margin: 0;
}

.events-list__more {
  margin: 0;
  font-size: 1.1rem;
  text-align: center;
}

.events-list__empty {
  text-align: center;
}

.event-pagebrowser ul {
  display: flex;
  justify-content: center;
  gap: 5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
}

.event-pagebrowser li {
  padding: 0;
}

@media (max-width: 800px) {
  .events-list-item__image {
    flex-basis: 49%;
  }
}

@media (max-width: 480px) {
  .events-list-item {
    flex-direction: column;
    gap: 1rem;
  }

  .events-list-item__image {
    flex-basis: auto;
  }
}

/* --- VERANSTALTUNG DETAIL ---------------------------------------- */
/* Aufbau wie div.event-detail der bisherigen Seite (Spalten 49 % | 45 %, Abstand 6 %) */
.event-detail__header {
  margin-bottom: 3.2rem;
}

.event-detail__title {
  margin: 0;
  text-align: left;
}

.event-detail__subtitle {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--color-brand-blue);
}

.event-detail__facts,
.event-detail__main {
  display: grid;
  grid-template-columns: 49fr 45fr;
  column-gap: 6%;
}

.event-detail__facts {
  margin-bottom: 3.2rem;
  padding: 2.5rem;
  background-color: var(--color-brand-beige);
}

.event-detail__main {
  margin-bottom: 3.2rem;
}

.event-detail__col {
  min-width: 0;
}

.event-fact {
  margin: 0 0 0.5rem;
  padding-left: 40px;
  background-position: left 7px;
  background-repeat: no-repeat;
  font-size: 1.4rem;
  line-height: 1.5;
}

.event-fact:last-child {
  margin-bottom: 0;
}

.event-fact--date { background-image: url('../Images/theme/icon-detail-date.png'); }
.event-fact--time { background-image: url('../Images/theme/icon-detail-time.png'); }
.event-fact--category { background-image: url('../Images/theme/icon-detail-category.png'); }
.event-fact--place { background-image: url('../Images/theme/icon-detail-place.png'); }
.event-fact--cost { background-image: url('../Images/theme/icon-detail-cost.png'); }

.event-detail__text p {
  margin-bottom: 1rem;
}

.event-detail__teaser {
  margin-bottom: 1rem;
  font-weight: 700;
}

.event-detail__url {
  margin-top: 1rem;
}

.event-detail__image {
  position: relative;
  margin: 0 0 1.7rem;
}

.event-detail__image img {
  display: block;
  width: 100%;
  height: auto;
}

.event-detail__image figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.5;
}

.event-detail__box-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-family-display);
  font-size: var(--font-size-h3);
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  text-transform: uppercase;
  color: var(--color-brand-blue);
}

.event-detail__tickets {
  padding: 2.5rem;
  background-color: var(--color-brand-blue);
}

.event-detail__tickets,
.event-detail__tickets * {
  color: #fff;
}

.event-detail__tickets a:hover,
.event-detail__tickets a:focus-visible {
  color: #fff;
  text-decoration-thickness: 2px;
}

.event-ticket {
  margin: 0 0 0.5rem;
  padding-left: 25px;
  background-position: left 5px;
  background-repeat: no-repeat;
}

.event-ticket:last-child {
  margin-bottom: 0;
}

.event-ticket--url { background-image: url('../Images/theme/icon-detail-ticket-url.png'); }
.event-ticket--mail { background-image: url('../Images/theme/icon-detail-ticket-mail.png'); }
.event-ticket--phone { background-image: url('../Images/theme/icon-detail-ticket-phone.png'); }

/* Beiges Band über die volle Breite: Veranstaltungsort, Veranstalter, zurück */
.event-detail__band {
  padding: 3.2rem 0;
  background-color: var(--color-brand-beige);
}

.event-detail__band .event-detail__main {
  margin-bottom: 0;
  row-gap: 3.2rem;
}

.event-detail__band p {
  margin-bottom: 1rem;
}

.event-detail__place {
  scroll-margin-top: 1rem;
}

/* Zwei-Klick-Karte zum Veranstaltungsort (Google Maps, siehe main.js) */
.event-map {
  position: relative;
  height: 400px;
  margin-top: 3.2rem;
  background: #fff;
  overflow: hidden;
}

.event-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.event-map__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.event-detail__band .event-map__consent p {
  max-width: 34rem;
  margin: 0;
}

.event-detail__band .event-map__consent .event-map__consent-title {
  font-family: var(--font-family-display, sans-serif);
  font-size: 1.4rem;
  color: var(--color-brand-blue, #0f4291);
}

.event-map.is-loaded .event-map__consent {
  display: none;
}

.event-detail__band .event-map__link {
  margin: 0.75rem 0 0;
}

.event-detail__license {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.event-detail__back {
  margin: 2.5rem 0 0;
}

@media (max-width: 600px) {
  .event-detail__facts,
  .event-detail__main {
    grid-template-columns: 1fr;
  }

  .event-detail__facts {
    padding: 1.5rem;
    row-gap: 0.5rem;
  }

  .event-detail__main {
    row-gap: 2rem;
  }

  .event-detail__tickets {
    padding: 1.5rem;
  }

  .event-fact {
    font-size: 1.2rem;
  }
}

/* --- VERANSTALTUNGSSUCHE ----------------------------------------- */
.event-search__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 2%;
  padding: 0 0 1.5rem;
}

.event-search__row > label {
  flex: 0 0 25%;
  padding: 0 0 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-heading-dark);
}

.event-search__row > input,
.event-search__row > select {
  flex: 0 1 73%;
  box-sizing: border-box;
  min-width: 0;
  padding: 1rem 1.5rem;
  border: 1px solid var(--color-border);
  background-color: #fff;
  color: var(--color-text);
  font-size: 1rem;
}

.event-search__row > input:focus,
.event-search__row > select:focus {
  border-color: var(--color-brand-blue);
  outline: 1px solid var(--color-brand-blue);
}

.event-search__row--submit {
  padding-left: 27%;
}

.event-search__quicklinks ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0 0 2rem 27%;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}

.events-list--results {
  margin-top: 0;
}

@media (max-width: 600px) {
  .event-search__row > label,
  .event-search__row > input,
  .event-search__row > select {
    flex-basis: 100%;
  }

  .event-search__row--submit,
  .event-search__quicklinks ul {
    padding-left: 0;
    margin-left: 0;
  }
}

/* --- TEASER (Wissenswertes) -------------------------------------- */
.cb-teaser-grid.grid {
  gap: 1.5rem 2%;
}

.cb-teaser-grid__card {
  position: relative;
  display: block;
  height: 100%;
  padding: 2rem 2rem 1.25rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-color: var(--color-brand-red);
  color: #fff;
  text-align: center;
  overflow: visible;
  transition: background-color 0.15s ease;
}

.cb-teaser-grid__card:hover,
.cb-teaser-grid__card:focus-within {
  background-color: var(--color-brand-blue-light);
}

.cb-teaser-grid__media {
  width: 33%;
  margin: 0 auto;
  aspect-ratio: 1;
  border: 1px solid #fff;
  border-radius: 100%;
  overflow: hidden;
  background: transparent;
}

.cb-teaser-grid__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-teaser-grid__body {
  padding: 0;
}

.cb-teaser-grid__body.flow > * + * {
  margin-top: 0;
}

.cb-teaser-grid__title {
  margin: 0 0 0.5rem;
  padding-top: 2rem;
  font-family: var(--font-family-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: #fff;
}

.cb-teaser-grid__link,
.cb-teaser-grid__link:hover,
.cb-teaser-grid__link:focus-visible {
  color: #fff;
  font-weight: 400;
  text-decoration: none;
}

/* ganze Kachel klickbar */
.cb-teaser-grid__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.cb-teaser-grid__link:focus-visible {
  outline: none;
}

.cb-teaser-grid__card:focus-within {
  outline: 3px solid var(--color-brand-blue);
  outline-offset: 3px;
}

.cb-teaser-grid__text {
  margin: 0;
  color: #fff;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .cb-teaser-grid.grid[data-columns="3"],
  .cb-teaser-grid.grid[data-columns="2"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) and (min-width: 600px) {
  .cb-teaser-grid__card {
    display: grid;
    grid-template-columns: 33% 1fr;
    gap: 0 2%;
    align-items: center;
    text-align: left;
  }

  .cb-teaser-grid__media {
    width: 100%;
  }

  .cb-teaser-grid__title,
  .cb-teaser-grid__text {
    text-align: left;
  }

  .cb-teaser-grid__title {
    padding-top: 0;
  }
}

/* --- LINKLISTE (Unterseiten als Kacheln, z. B. Gezeiten-Orte) --- */
.linklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2%;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}

.linklist__item {
  margin: 0;
  padding: 0;
}

.linklist__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  padding: 1.25rem;
  background-color: #f2ebe6;
  font-family: var(--font-family-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-brand-blue);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.linklist__link:hover,
.linklist__link:focus-visible,
.linklist__link.is-active {
  background-color: var(--color-brand-blue);
  color: #fff;
}

@media (max-width: 800px) {
  .linklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .linklist {
    grid-template-columns: 1fr;
  }
}

/* --- FORMULARE (EXT:form) ---------------------------------------- */
.frame-type-form_formframework .form-group {
  padding: 0 0 1.5rem;
}

.frame-type-form_formframework .form-group > label,
.frame-type-form_formframework .form-label {
  display: block;
  padding: 0 0 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-heading-dark);
}

.frame-type-form_formframework input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.frame-type-form_formframework textarea,
.frame-type-form_formframework select {
  box-sizing: border-box;
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--color-border);
  background-color: #fff;
  font-size: 1rem;
}

.frame-type-form_formframework .actions button,
.frame-type-form_formframework button[type="submit"] {
  display: inline-block;
  padding: 1.2rem 1.9rem;
  border: 0;
  background-color: var(--color-brand-red);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.frame-type-form_formframework .actions button:hover,
.frame-type-form_formframework button[type="submit"]:hover {
  background-color: var(--color-brand-blue);
}

/* --- GEZEITEN (sy_tide) ------------------------------------------ */
/* Wasserstandsanzeiger: aus Einzelbildern zusammengesetzt (Streifenbreiten 132/35/34/32/39/40/132 px = 444 px) */
#tide-indicator {
  max-width: 444px;
  margin-bottom: 0.5rem;
}

#tide-indicator::after {
  content: "";
  display: table;
  clear: both;
}

#tide-indicator > div {
  display: flex;
  width: 100%;
}

#tide-indicator img {
  display: block;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

#tide-indicator .tide-updown img { width: 100%; }
#tide-indicator .tide-height-left,
#tide-indicator .tide-height-right3 { width: 29.73%; }
#tide-indicator .tide-height-m { width: 7.88%; }
#tide-indicator .tide-height-cm { width: 7.66%; }
#tide-indicator .tide-height-middle { width: 7.21%; }
#tide-indicator .tide-height-right1 { width: 8.78%; }
#tide-indicator .tide-height-right2 { width: 9.01%; }

.sytide-event-form {
  padding: 0 0 1.5rem;
}

.sytide-event-form ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}

.sytide-event-form li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.sytide-event-form label {
  padding: 0 0.5rem 0 0;
}

.sytide-event-form input,
.sytide-event-form select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-brand-blue-light);
  background-color: #fff;
  color: var(--color-text);
  font-size: 1rem;
}

.sytide-event-form input[type="submit"] {
  cursor: pointer;
}

.sytide-event-form input[type="submit"]:hover,
.sytide-event-form input[type="submit"]:focus-visible {
  background-color: var(--color-brand-blue-light);
  color: #fff;
}

/* Tabelle über die ganze Inhaltsbreite */
.sytide-event-list {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.sytide-event-list table {
  width: 100%;
  border-collapse: collapse;
}

.sytide-event-list tbody tr:nth-child(odd) {
  background-color: #f2ebe6;
}

.sytide-event-list td {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .sytide-event-list td {
    padding: 0.5rem;
  }
}

/* --- FOOTER ------------------------------------------------------- */
.site-footer {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.site-footer__navi {
  background-color: var(--color-footer);
  text-align: center;
}

.footer-nav__list {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
}

.footer-nav__item {
  margin: 0;
  padding: 0.8rem 0.1rem;
}

.footer-nav__item + .footer-nav__item::before {
  content: "|";
  padding: 0 0.3rem 0 0.2rem;
  color: #fff;
}

.footer-nav__link {
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
}

.footer-nav__link:hover,
.footer-nav__link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.site-footer__gotop {
  padding: 0.6rem 0;
  background-color: var(--color-footer-dark);
  text-align: center;
}

.site-footer__gotop-link {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  color: #fff;
}

.site-footer__gotop-link:hover,
.site-footer__gotop-link:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .footer-nav__list {
    display: block;
    width: 100%;
  }

  .footer-nav__item {
    padding: 1.2rem 0;
    border-bottom: 1px solid #fff;
  }

  .footer-nav__item:last-child {
    border-bottom: 0;
  }

  .footer-nav__item + .footer-nav__item::before {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
