/* =========================================
   Local Fonts
   ========================================= */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700-900-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/montserrat-700-900-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
}


/* =========================================
   Color Variables
   ========================================= */


:root {
  --color-text: #222;
  --color-bg: #E8E2DB;
  --color-dark: #1A3263;
  --color-mid: #547792;
  --color-accent: #FAB95B;
  --color-white: #fff;
}


/* =========================================
   Global Styles
   ========================================= */

body {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  text-align: left;
  overflow-y: scroll;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

h2 {
  font-family: 'Noto Serif', Garamond, 'Times New Roman';
  font-size: 32px;
  font-size: 2rem;
  color: var(--color-dark);
  text-shadow: 1px 1px var(--color-bg);
  text-align: left;
  margin: 8px 0;
  margin: 0.5rem 0;
}

.page-heading {
  font-family: 'Noto Serif', 'EB Garamond', Garamond, 'Times New Roman';
  text-align: center;
  width: 100%;
  font-size: 48px;
  font-size: 3rem;
  color: var(--color-dark);
  text-shadow: 0 3px 3px var(--color-bg);
}


/* =========================================
   Navigation & Header
   ========================================= */

nav {
  width: 100%;
  height: 64px;
  height: 4rem;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 11px 0;
  padding: 0.7rem 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin-bottom: 2vw;
}

nav .underline {
  border-bottom: 5px inset var(--color-white);
  border-bottom: 0.3rem inset var(--color-white);
  border-radius: 3px;
  border-radius: 0.2rem;
}

#home-button {
  display: block;
  height: 100%;
  width: auto;
}

#home-button img {
  filter: invert(1) hue-rotate(180deg) brightness(1.1) contrast(1.1);
  height: 100%;
  width: auto;
  margin: 0 32px;
  margin: 0 2rem; 
  object-fit: fill;
  flex: 0 0 auto;
}

.navbar-links {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.navbar-links a {
  color: var(--color-white);
  text-decoration: none;
  padding: 5px;
  padding: 0.3rem;
  margin: 0 24px;
  margin: 0 1.5rem;
  font-weight: bold;
  font-size: 18px;
  font-size: 1.1rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a:focus {
  color: var(--color-accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  padding: 0 8px;
  padding: 0 0.5rem;
  gap: 6px;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
  z-index: 60;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}


/* =========================================
   Footer
   ========================================= */

footer {
  position: sticky;
  bottom: 0;
  z-index: 30;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--color-dark);
  color: var(--color-white);
  width: 100%;
  min-height: 40px;
  min-height: 2.5rem;
  padding: 32px 11px;
  padding: 1rem 0.7rem;
  margin-top: 2vw;
  gap: 0.5rem 1rem;
}

footer > p,
footer > div,
footer > .footer-note {
  width: auto;
  margin: 0;
}

footer > p {
  order: 1;
  width: 100%;
  flex: 0 0 100%;
}

.footer-note {
  order: 2;
  display: block;
  width: min(100%, 52ch);
  max-width: 50%;
  box-sizing: border-box;
  align-self: flex-start;
  align-items: start;
  text-align: left;
  font-size: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  color: var(--color-white);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

footer > div {
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.2rem;
  margin-left: auto;
  text-align: right;
}

footer a {
  font-size: 13px;
  font-size: 0.8rem;
  margin: 0;
  padding: 0.15rem 0;
  color: var(--color-white);
  text-decoration: none;
  display: block;
}

.footer-note strong {
  display: inline;
  color: var(--color-accent);
  font-weight: 600;
}

.footer-note i {
  display: inline;
  font-size: inherit;
}

.footer-note a {
  display: inline;
  color: var(--color-accent);
  font-size: inherit;
  text-decoration: underline;
}

.external-link-icon,
.info-icon,
.check-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.1em;
  margin-left: 0.15em;
}

.external-link-icon {
  fill: currentColor;
}

.info-icon {
  fill: var(--color-accent);
}

.check-icon {
  fill: var(--color-dark);
}

footer a:hover,
footer a:focus {
  color: var(--color-accent);
}


/* =========================================
   Main Content Container
   ========================================= */

.main {
  display: flex;
  flex-direction: column;
  width: 90%;
  margin: auto;
  min-height: 400px;
  flex-grow: 1;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1vw 3vw;
  gap: 16px;
  gap: 1rem;
  box-sizing: border-box;
  border-radius: 19px;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px var(--color-mid);
  background: var(--color-white);
}

.main > .table-section:first-child,
.main > #termine-container:first-child {
  margin-top: -1vw;
}

.description {
  width: 100%;
  height: auto;
  font-size: 19px;
  font-size: 1.2rem;
  justify-content: center;
  text-align: left;
  margin: 16px 0;
  margin: 1rem 0;
}

.description section {
  width: 100%;
}


.underline {
  border-bottom: 3px inset var(--color-mid);
  padding-bottom: 4px;
}


/* =========================================
   Home Page (#main-home)
   ========================================= */

#main-home {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

#main-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/logo.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.12;
  filter: brightness(2) grayscale(0.8);
  z-index: 0;
  pointer-events: none;
}

#main-home > * {
  position: relative;
  z-index: 1;
}

#main-home section {
  font-size: 24px;
  font-size: 1.5rem;
  width: 50%;
  text-align: center;
  color: var(--color-dark);
  margin-bottom: 48px;
  margin-bottom: 3rem;
}

#main-home .home-corner-image {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 300px;
  height: auto;
  z-index: 1;
  margin-left: 20px;
}

.button-link {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-size: 21px;
  font-size: 1.3rem;
  text-align: center;
  background-color: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 32px;
  border-radius: 2rem;
  border: none;
  min-width: 22vw;
  padding: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  height: 3rem;
  margin-bottom: 0;
}


/* =========================================
   Probetraining – Training Finder
   ========================================= */

#main-probetraining {
  justify-content: flex-start;
}

.training-finder {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  width: 100%;
}

.finder-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.4rem;
}

.finder-field[hidden] {
  display: none;
}

.finder-label {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.finder-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.finder-input {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.1rem;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--color-mid);
  border-radius: 0.5rem;
  background: var(--color-white);
  color: var(--color-text);
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

.finder-input:focus {
  border-color: var(--color-dark);
}

.finder-radios {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.finder-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
}

.finder-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

.finder-select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
  pointer-events: none;
}

.finder-select-wrapper.open::after {
  transform: translateY(-30%) rotate(225deg);
}

.finder-select-trigger {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  padding: 0.5rem 2.5rem 0.5rem 0.9rem;
  border: 2px solid var(--color-mid);
  border-radius: 0.5rem;
  background: var(--color-white);
  color: var(--color-text);
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.15s;
}

.finder-select-wrapper.open .finder-select-trigger {
  border-color: var(--color-dark);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.finder-select-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border: 2px solid var(--color-dark);
  border-top: none;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}

.finder-select-wrapper.open .finder-select-options {
  display: block;
}

.finder-select-option {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.finder-select-option:hover {
  background: var(--color-bg);
}

.finder-select-option.selected {
  background: var(--color-mid);
  color: var(--color-white);
}

.finder-submit {
  min-width: unset;
  padding: 0 1.4rem;
  font-size: 1rem;
  height: 2.7rem;
  width: 100%;
  box-sizing: border-box;
}

.finder-result {
  background: var(--color-white);
  border-left: 4px solid var(--color-dark);
  border-radius: 0.5rem;
  padding: 1.2rem 1.4rem;
}

.finder-group-name {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-dark);
  margin: 0 0 0.4rem 0;
}

.finder-group-name i {
  color: var(--color-accent);
  margin-right: 0.4rem;
}

.finder-note {
  color: var(--color-text);
  margin: 0 0 0.8rem 0;
}

.finder-times {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.finder-times li {
  font-size: 1rem;
  color: var(--color-text);
}

.finder-contact {
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0;
}

.finder-not-eligible {
  color: var(--color-mid);
  margin: 0;
}

.finder-not-eligible i {
  margin-right: 0.4rem;
}

/* =========================================
   Costs Page (#main-costs)
   ========================================= */

#article-costs {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: flex-start;
  gap: 32px;
  gap: 2rem;
  justify-content: space-between;
}

#article-costs h2 {
  min-height: 6rem;
}

#article-costs section {
  flex: 1;
  min-width: 0;
  border-radius: 0.75rem;
  overflow: hidden;
}

#article-costs table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.75rem;
  overflow: hidden;
}


/* =========================================
   Tables & Forms
   ========================================= */

.table-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

#termine-container {
  width: calc(100% + 6vw);
  margin-left: -3vw;
  margin-right: -3vw;
  margin-top: 0;
}

#termine-container .schedule-table {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}

table {
  border-collapse: collapse;
  text-align: center;
  margin: auto;
  width: 100%;
}

.schedule-table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.75rem;
  overflow: hidden;
}

tr:nth-child(odd) {
  background-color: var(--color-mid);
  color: var(--color-white);
}

td {
  border: none;
  padding: 8px 12px;
  padding: 0.5rem 0.75rem;
  font-size: 19px;
  font-size: 1.2rem;
}

#article-costs table td:first-child {
  text-align: left;
}

#article-costs table td:last-child {
  white-space: nowrap;
  text-align: right;
  min-width: 5rem;
}

.schedule-table th,
.schedule-table td {
  text-align: left;
}

.schedule-table th {
  border: none;
  padding: 8px 12px;
  padding: 0.5rem 0.75rem;
  font-size: 19px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* =========================================
   Video Embed
   ========================================= */

.video-container {
  width: 50%;
  margin: 1rem auto 0;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 0.75rem;
}

@media (max-width: 1024px) {
  .video-container {
    width: 100%;
  }
}

/* =========================================
   Termine
   ========================================= */

tr.termin-vergangen td {
  opacity: 0.45;
}

tr.termin-naechster {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.schedule-table a {
  color: inherit;
}

.termin-naechster-badge {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-dark);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  vertical-align: middle;
  margin-left: 0.4rem;
}

/* =========================================
   Embed Placeholders (Calendar & YouTube)
   ========================================= */

.embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background-color: var(--color-white);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  color: var(--color-text);
  max-width: 480px;
  width: 100%;
}

.embed-consent-btn {
  cursor: pointer;
  min-width: 0;
  padding: 0 2rem;
}

/* =========================================
   Consent Banner
   ========================================= */

#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  border-top: 2px solid rgba(250, 185, 91, 0.9);
  box-shadow: 0 -4px 18px rgba(26, 50, 99, 0.22);
}

.consent-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.consent-banner-text {
  flex: 1 1 300px;
  font-size: 0.9rem;
  margin: 0;
}

.consent-banner-text a {
  color: var(--color-accent);
}

.consent-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.consent-btn {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-size: 0.9rem;
  border-radius: 2rem;
  border: none;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
}

.consent-btn-accept {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.consent-btn-decline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

/* Impressum: revoke button sits on white content background */
#main-impressum #consent-revoke-btn {
  background-color: transparent;
  color: var(--color-dark);
  border: 1px solid var(--color-dark);
}

#main-impressum #consent-revoke-btn:hover,
#main-impressum #consent-revoke-btn:focus {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.consent-revoke-btn {
  cursor: pointer;
  min-width: 0;
  padding: 0 2rem;
  margin-top: 0.5rem;
}

#consent-revoke-bar {
  background-color: var(--color-mid);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
}

.consent-revoke-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.consent-revoke-bar-text {
  flex: 1 1 200px;
  font-size: 0.875rem;
  margin: 0;
}


/* =========================================
   Membership Links
   ========================================= */

.memberships a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.memberships a span {
  text-decoration: underline;
  text-decoration-color: var(--color-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.memberships a:hover,
.memberships a:focus {
  color: var(--color-accent);
}

.memberships a:hover span,
.memberships a:focus span {
  text-decoration-color: var(--color-accent);
}

.memberships a i {
  font-size: 0.75em;
}



/* =========================================
   FAQ
   ========================================= */

details {
  margin: 2rem 0;
}

details summary {
  font-weight: bold;
}

/* =========================================
   Trainer Cards
   ========================================= */

.trainer-cards {
  margin-top: 5vw;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 72vw;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  gap: 4vw;
}

.trainer-cards div {
  width: 20%;
  border-radius: 19px;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px var(--color-mid);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  padding: 1rem;
  box-sizing: border-box;
}

.trainer-cards div:hover {
  box-shadow: 0 8px 48px var(--color-mid);
}

.trainer-cards img {
  border-radius: 19px;
  border-radius: 1.2rem;
  width: 90%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.trainer-cards h2 {
  font-size: 24px;
  font-size: 1.5rem;
  margin: 8px 0;
  margin: 0.5rem 0;
  text-align: center;
}

.trainer-cards ul {
  list-style: none;
  width: 100%;
  margin: 8px 0;
  margin: 0.5rem 0;
  padding: 0;
}

.trainer-cards li {
  text-align: center;
  font-size: 19px;
  font-size: 1.2rem;
}

#vorstand-list {
  margin-top: 24px;
  margin-top: 1.5rem;
}


/* =========================================
   Impressum Page (#main-impressum)
   ========================================= */

#main-impressum {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  gap: 2rem;
}

#main-impressum section {
  display: flex;
  flex-direction: column;
}

#main-impressum h2 {
  margin: 32px 0 19px 0;
  margin: 2rem 0 1.2rem 0;
  text-align: left;
}

#main-impressum p,
#main-impressum address {
  margin-top: 0;
}


/* =========================================
   Location Map
   ========================================= */

#map {
  height: 22rem;
  width: 40%;
  margin: auto;
  padding: 0;
}

.location-map-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  height: 80%;
  padding: 1rem;
  box-sizing: border-box;
  border: 1px solid rgba(26, 50, 99, 0.2);
  border-radius: 0.75rem;
  background: rgba(84, 119, 146, 0.08);
  color: var(--color-text);
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.location-map-placeholder p {
  margin: 0;
  max-width: 100%;
}

.location-layout {
  display: flex;
  gap: 5vw;
  align-items: flex-start;
}

.location-content {
  flex: 1;
}

.location-map {
  flex: 1;
  height: 35vh;
  min-width: 50%;
  margin: 0;
  padding: 0;
}


/* =========================================
   Responsive Design (Mobile)
   ========================================= */

@media (max-width: 1024px) {
  .main {
    width: 100%;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .training-finder {
    flex-direction: column;
  }

  nav {
    flex-direction: row;
    top: 0;
    left: 0;
    right: 0;
    padding: 5px 3px;
    padding: 0.3rem 0.2rem;
    position: fixed;
    z-index: 50;
    margin: 0;
  }

  #home-button {
    z-index: 60;
    height: 100%;
    margin: 0;
    flex: 0 0 auto;
  }

  #home-button img {
    height: 100%;
    margin: 0 3px;
    margin: 0 0.2rem;
  }

  .navbar-links {
    position: fixed;    
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: var(--color-dark);
    max-height: 0;
    overflow: hidden;
    padding-top: 32px;
    padding-top: 2rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
    z-index: 50;
    display: flex;
    justify-content: flex-start;
    row-gap: 5px;
    row-gap: 0.3rem;
  }

  .navbar-links.active {
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    padding-bottom: 32px;
    padding-bottom: 2rem;
  }

  .navbar-links a {
    margin: 3px 0;
    margin: 0.2rem 0;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
    position: relative;
  }

  .home-corner-image {
    opacity: 0;
  }

  .location-layout {
    flex-direction: column;
  }

  #map {
    width: 100%;
    height: 25vh;
    z-index: 5;
  }

  .location-map {
    min-width: auto;
    width: 100%;
    height: 80%;
    flex: none;
  }

  .page-heading {
    margin-top: 80px;
    margin-top: 5rem;
  }

  .trainer-cards {
    flex-direction: column;
  }

  .trainer-cards div {
    width: 100%;
  }

  /* Table cards layout */
  .table-section {
    width: 100%;
    padding: 0 16px;
    padding: 0 1rem;
    box-sizing: border-box;
    margin: 0 auto;
  }

  #termine-container {
    width: 100%;
    margin: 0 auto;
  }

  #article-costs {
    display: block;
    width: 100%;
  }

  #article-costs section {
    box-sizing: border-box;
    background-color: var(--color-mid);
    width: 100%;
    padding: 16px;
    padding: 1rem;
    margin: 16px 0;
    margin: 1rem 0;
    border-radius: 8px;
    border-radius: 0.5rem;
  }

  #article-costs h2 {
    color: var(--color-white);
    font-size: 24px;
    font-size: 1.5rem;
    text-shadow: none;
  }  

  #article-costs td {
    color: var(--color-white);
    font-size: 16px;
    font-size: 1rem;
    min-width: 64px;
    min-width: 4rem;
    text-align: left;
  }
  
  /* Schedule table card layout (mobile) */
  .schedule-table {
    display: block;
    width: 95%;
    max-width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
    gap: 1rem;
  }

  .schedule-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    gap: 0.5rem;
    padding: 16px;
    padding: 1rem;
    background-color: var(--color-mid);
    color: var(--color-white);
    border-radius: 8px;
    border-radius: 0.5rem;
    margin-bottom: 0;
  }

  .schedule-table tr:nth-child(even) {
    background-color: var(--color-mid);
  }

  .schedule-table th,
  .schedule-table td {
    display: block;
    box-sizing: border-box;
    padding: 0;
    font-size: 14px;
    font-size: 0.9rem;
    text-align: left;
  }

  .schedule-table th,
  .schedule-table td:nth-child(2) {
    grid-column: 1 / -1;
  }

  .schedule-table th {
    font-weight: bold;
    font-size: 18px;
    font-size: 1.1rem;
    margin-bottom: 8px;
    margin-bottom: 0.5rem;
  }

  #main-impressum {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 32px;
    padding-bottom: 2rem;
  }

  #main-impressum .description {
    margin: 0;
    padding: 0;
  }

  #main-impressum h2 {
    margin-top: 48px;
    margin-top: 3rem;
    margin-bottom: 16px;
    margin-bottom: 1rem;
    hyphens: auto;
  }

  #main-impressum p {
    margin-bottom: 0;
  }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
  }

  footer > p,
  footer > .footer-note,
  footer > div {
    width: 100%;
    max-width: 100%;
  }

  footer > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.25rem;
    margin-left: 0;
    text-align: left;
  }

  .footer-note {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  footer a {
    margin: 0;
  }

  .button-link {
    padding: 0.8rem;
  }
  
}

@media (min-width: 1024px) and (max-width: 1536px) {
  .trainer-cards {
    max-width: 74vw;
    gap: 2vw;
  }

  .trainer-cards div {
    flex: 1 1 15vw;
    max-width: 20vw;
    min-width: 0;
  }

  #article-costs {
    flex-direction: column;
    gap: 1rem;
    width: 50%;
    margin: 0 auto;
    align-items: center;
  }

  #article-costs section {
    width: 100%;
    flex: 1 1 auto;
  }

  #article-costs td {
    font-size: 1rem;
    min-width: 0;
  }
}