:root {
  --navy: #12305a;
  --navy-dark: #0b1f3a;
  --ice: #eef4f9;
  --snow: #f7fafc;
  --burgundy: #8b1e23;
  --gold: #c4a35a;
  --text: #1c2430;
  --muted: #5b6775;
  --line: #d5dee8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.12);
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: only light;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background-color: var(--snow);
  line-height: 1.55;
}

body.sponsors-page {
  background-color: #fff;
}

body.home-page {
  background-image: none;
}

body.home-page::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("../Logo%20freigestellt.png");
  background-position: center center;
  background-size: min(80vw, 700px) auto;
  background-repeat: no-repeat;
}

body:not(.home-page):not(.sponsors-page)::before {
  content: "";
  position: fixed;
  top: var(--menu-height, 0px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.11;
  background-image: url("../Logo%20freigestellt.png");
  background-position: center center;
  background-size: min(80vw, 700px) auto;
  background-repeat: no-repeat;
}

body:has(#index)::before,
body:has(#photograph)::before {
  content: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--burgundy);
}

a:hover {
  color: var(--navy);
}

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip:focus {
  left: 8px;
}

/* HEADER */

.site-header {
  background: linear-gradient(180deg, #d1b45a, #c09e37);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.header-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.15rem 1rem;
}

.menu-toggle {
  display: none;
  background: #23447d;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
}

/* NAVIGATION */

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.3rem 0;
}

@media (min-width: 861px) {
  .nav {
    justify-content: space-between;
  }
}

.nav a,
.nav summary {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.95rem;
  list-style: none;
  cursor: pointer;
}

.nav a:hover,
.nav summary:hover {
  background: rgba(35, 68, 125, 0.15);
}

.nav a[aria-current="page"] {
  font-weight: 800;
}

.nav a.home-cta {
  width: 5rem;
  height: 5rem;
  padding: 0;
  font-size: 0;
  color: transparent;
  background-color: transparent;
  background-image: url("../Logo%20freigestellt.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
}

.nav a.home-cta:hover {
  background-color: transparent;
  filter: brightness(0.95);
}

.nav a.member-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  padding: 0.3rem;
  border-radius: 50%;
  font-size: 0.8rem;
  line-height: 1.1;
  text-align: center;
  margin-left: 0.35rem;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 6px rgba(11, 31, 58, 0.18);
}

.nav a.member-cta:hover {
  background: var(--navy-dark);
  color: #fff;
}

.nav details {
  position: relative;
}

.nav details[open] > summary {
  background: rgba(35, 68, 125, 0.22);
}

.nav details ul {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  min-width: 210px;
  background: #fff;
  color: var(--text);
  margin: 0;
  padding: 0.4rem 0;
  border-radius: 10px;
  box-shadow: var(--shadow);
  list-style: none;
  overflow: hidden;
}

@media (min-width: 861px) and (hover: hover) {
  .nav details:hover > summary,
  .nav details:focus-within > summary {
    background: rgba(35, 68, 125, 0.22);
  }
}

.nav details ul a {
  color: var(--navy);
  display: block;
  border-radius: 0;
  padding: 0.45rem 0.75rem;
}

.nav details ul a:hover {
  background: var(--ice);
}

/* HERO / BANNER */

.hero {
  max-width: var(--max);
  margin: 0.75rem auto 1.5rem;
  border: 3px solid var(--gold);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.hero-inner,
.page,
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.1rem 2rem;
}

.hero-inner {
  padding: 2rem 1.1rem 3rem;
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.hero p {
  margin: 0;
  max-width: 42rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* CONTENT */

.page {
  padding-top: 1.6rem;
  padding-bottom: 3rem;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.25;
}

.page h1 {
  margin-top: 0;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
}

/* TERMINÜBERSCHRIFT */

.termine-title {
  text-align: center;
  color: var(--navy);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--gold);
}

.termine-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--gold);
}

.termine-heading .termine-title {
  margin: 0;
  padding: 0;
  border: 0;
}

.termine-heading .content-updated {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
}

.termine-heading .social-facebook {
  justify-self: start;
}

.termine-heading .social-instagram {
  justify-self: end;
}

/* CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

body.home-page .card {
  border: 3px solid var(--gold);
}

body.home-page .hero {
  width: calc(100% - 20px - 2.2rem);
  max-width: calc(var(--max) - 2.2rem);
}

body.home-page .site-header .nav {
  max-width: calc(var(--max) - 2.2rem);
}

body.home-page .termine-heading {
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.8rem;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--snow);
  box-shadow: var(--shadow);
}

body.home-page .home-events-wrap {
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.links-page .card li a,
.press-page li a,
.contact-page .contacts .card a {
  display: inline-block;
  max-width: 100%;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background 0.2s ease;
}

.links-page .card {
  text-align: center;
}

.links-page .card ul {
  padding-left: 0;
  list-style: none;
}

.links-page .card li a:hover,
.press-page li a:hover,
.contact-page .contacts .card a:hover {
  background: var(--navy-dark);
}

.links-page .card li a:focus-visible,
.press-page li a:focus-visible,
.contact-page .contacts .card a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.press-page li + li {
  margin-top: 0.5rem;
}

.links-page .card li + li {
  margin-top: 0.5rem;
}

/* SOFTSHELLJACKEN */
.jacken-images a {
  text-decoration: none;
}

.jacken-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.jacken-thumbs img {
  width: 50px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.jacken-thumbs img:hover {
  transform: scale(1.05);
}

/* BUTTONS */

.btn {
  display: inline-block;
  background: var(--burgundy);
  color: #fff !important;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  margin: 0.2rem 0.25rem 0.2rem 0;
}

.btn.secondary {
  background: var(--navy);
}

.btn.waitlist {
  background: #176b58;
}

.btn.btn-medium {
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
}

.btn.btn-large {
  padding: 1rem 1.6rem;
  border: 2px solid var(--gold);
  box-shadow: 0 5px 14px rgba(139, 30, 35, 0.24);
  font-size: 1.2rem;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.btn-large:hover,
.btn.btn-large:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(139, 30, 35, 0.3);
}

.btn.btn-large:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

.membership-signup-arrow {
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 0.2s ease;
}

.btn.btn-large:hover .membership-signup-arrow,
.btn.btn-large:focus-visible .membership-signup-arrow {
  transform: translateX(0.2em);
}

.membership-signup {
  margin: 0;
}

.membership-signup .btn.btn-large {
  box-shadow: 0 5px 14px rgba(18, 48, 90, 0.24);
}

.membership-signup .btn.btn-large:hover,
.membership-signup .btn.btn-large:focus-visible {
  box-shadow: 0 8px 18px rgba(18, 48, 90, 0.3);
}

@media (min-width: 861px) {
  .membership-payment {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
  }

  .membership-signup {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .membership-signup .btn.btn-large {
    padding: 1.5rem 2.4rem;
    font-size: 1.8rem;
  }

  .membership-payment-details {
    grid-column: 1;
    grid-row: 1;
  }
}

.btn.btn-small {
  background: var(--navy);
  padding: 0.2rem 0.4rem;
  font-size: 0.72rem;
  margin: 0.08rem 0.1rem;
  vertical-align: middle;
}

.termine-heading .social-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  line-height: 0;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.termine-heading .social-logo-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.termine-heading .social-facebook .social-logo-image {
  width: clamp(7rem, 12vw, 10rem);
}

.termine-heading .social-instagram .social-logo-image {
  width: clamp(6.5rem, 10vw, 9rem);
}

.termine-heading .social-logo-link:hover,
.termine-heading .social-logo-link:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.termine-heading .social-logo-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

/* TABLES */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.table-scroll-hint {
  margin: 0.25rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.table-wrap:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 520px;
}

table.data th,
table.data td {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

table.data td.registration-cell {
  text-align: right;
  white-space: nowrap;
}

table.data td.home-registration-cell {
  padding-right: 0;
}

table.data th {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

table.data tr:nth-child(even) td {
  background: #f4f7fb;
}

.board-page table.data td a.btn,
.legacy-results table.data td a.btn {
  background: var(--navy);
}

.board-page table.data td a:not(.btn),
.legacy-results table.data td a:not(.btn),
.legacy-results-tsv a:not(.btn),
.legacy-results-sonstige a:not(.btn) {
  display: inline-block;
  max-width: 100%;
  margin: 0.15rem 0.15rem 0.15rem 0;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.board-page table.data td a:hover,
.legacy-results table.data td a:hover,
.legacy-results-tsv a:hover,
.legacy-results-sonstige a:hover {
  background: var(--navy-dark);
}

.board-page table.data td a:focus-visible,
.legacy-results table.data td a:focus-visible,
.legacy-results-tsv a:focus-visible,
.legacy-results-sonstige a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.chronik-board-table {
  width: 100% !important;
  margin-left: 0 !important;
  table-layout: fixed;
}

.chronik-board-table td {
  width: 25% !important;
}

.chronik-board-table img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
}

/* GALLERY */

.page:has(> .gallery-featured) > h1 {
  text-align: center;
}

.gallery-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.gallery-feature-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-feature-card > a {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  background: var(--ice);
}

.gallery-feature-card img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.gallery-feature-card figcaption {
  padding: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  text-align: center;
}

.gallery-feature-card figcaption strong {
  display: block;
  margin-bottom: 0.25rem;
}

.gallery-feature-card figcaption span {
  display: block;
}

.gallery-originals {
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: var(--ice);
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  font-family: inherit;
}

@media (max-width: 600px) {
  .gallery-featured {
    grid-template-columns: 1fr;
  }
}

.gallery a {
  display: flex;
  min-height: 84px;
  align-items: center;
  position: relative;
  background: #fff;
  border: 1px solid #c8d5e4;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 1rem 1rem 1rem 1.15rem;
  text-decoration: none;
  color: var(--navy);
  box-shadow: var(--shadow);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.gallery a:hover {
  border-color: var(--gold);
  background: #fffdf8;
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.16);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

.gallery a:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 3px;
}

/* SPONSORS */

.sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
  align-items: center;
}

.sponsors a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
}

.sponsors img {
  max-height: 70px;
}

.sponsor-header-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
}

.sponsor-list {
  margin-top: 1.5rem;
}

.sponsor-sheet {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  border: 0;
}

.home-sponsors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  align-items: center;
  max-width: none;
  margin: 1rem 0;
  padding: 0.55rem 1rem 0.65rem;
  border: 3px solid var(--gold);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.home-sponsors-heading {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-sponsors-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.home-sponsors-thanks {
  display: inline-block;
  white-space: nowrap;
}

.home-sponsors-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.sponsor-banner-button {
  border: 0;
  min-height: 25px;
  padding: 0 0.3rem;
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
}

.home-sponsors .sponsor-banner-button {
  display: inline-block;
  width: auto;
  margin: 0;
}

.home-sponsors .sponsor-hide-button {
  border: 1px solid rgba(18, 48, 90, 0.18);
  background: rgba(18, 48, 90, 0.08);
  color: var(--navy) !important;
}

.home-sponsors .sponsor-hide-button:hover {
  background: rgba(18, 48, 90, 0.14);
}

.sponsor-show-button {
  position: fixed;
  z-index: 49;
  right: 1rem;
  bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.sponsor-show-button.btn {
  display: inline-block;
  width: auto;
  margin: 0;
}

.sponsor-show-button[hidden] {
  display: none;
}

.home-sponsors[hidden] {
  display: none;
}

body.home-page.sponsors-hidden {
  padding-bottom: 64px;
}

.sponsor-marquee {
  grid-column: 1 / -1;
  grid-row: 2;
  overflow: hidden;
}

.sponsor-marquee-track,
.sponsor-marquee-group {
  display: flex;
  width: max-content;
}

.sponsor-marquee-track {
  animation: sponsor-marquee-scroll 68s linear infinite;
}

.sponsor-marquee-group {
  gap: 0.8rem;
  padding-right: 0.8rem;
}

.sponsor-marquee-group a {
  display: flex;
  flex: 0 0 130px;
  height: 62px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.sponsor-marquee-group img {
  display: block;
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
}

.sponsor-marquee:hover .sponsor-marquee-track,
.sponsor-marquee:focus-within .sponsor-marquee-track {
  animation-play-state: paused;
}

@keyframes sponsor-marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sponsor-marquee {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sponsor-marquee-track {
    animation: none;
    width: max-content;
  }

  .sponsor-marquee-group {
    width: max-content;
  }

  .sponsor-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 600px) {
  .home-sponsors {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.55rem 0.8rem 0.65rem;
  }

  .home-sponsors-heading {
    flex-wrap: wrap;
    grid-column: 1;
    grid-row: 1;
    gap: 0.5rem;
    justify-content: center;
    text-align: center;
  }

  .home-sponsors-heading h2 {
    font-size: 0.85rem;
  }

  .home-sponsors-copy {
    flex-basis: 100%;
  }

  .sponsor-banner-button {
    min-height: 0;
    padding: 0.2rem 0.3rem;
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .home-sponsors-actions {
    width: 100%;
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
  }

  .sponsor-marquee {
    grid-column: 1;
    grid-row: 2;
  }
}

/* CONTACTS */

.tsv-events {
  text-align: center;
}

.training-page ul {
  display: inline-block;
  max-width: 100%;
  text-align: left;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.contacts .card {
  min-width: 0;
}

.contact-page .contacts .card {
  display: flex;
  flex-direction: column;
}

.contact-page .contact-email {
  margin: auto 0 0;
  padding-top: 0.75rem;
}

.contact-page .contacts .card .contact-email a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.35rem 0.35rem;
  font-size: 0.75rem;
  text-align: center;
  white-space: nowrap;
}

.contacts .card h2 {
  overflow-wrap: anywhere;
}

.contacts .card a {
  overflow-wrap: anywhere;
}

.training-page .phone-number {
  color: var(--navy);
}

@media (min-width: 1100px) {
  .contact-page .contacts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .contact-page .contacts .card .contact-email a {
    padding-right: 0.15rem;
    padding-left: 0.15rem;
    font-size: 0.66rem;
  }
}

.legacy-results {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.legacy-results .results-search {
  max-width: 32rem;
  margin: 0.75rem 0 1.5rem;
}

.legacy-results .results-search label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-weight: 600;
}

.legacy-results .results-search input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.legacy-results .results-search-status {
  min-height: 1.35em;
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.85rem !important;
}

.legacy-results [hidden] {
  display: none !important;
}

.legacy-results .results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.legacy-results .results-heading h1 {
  margin: 0;
}

.legacy-results-sonstige h1 {
  text-align: center;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.legacy-results-sonstige .results-year {
  max-width: 820px;
  margin: 1.7rem auto 0.8rem;
  padding: 0.55rem 0.8rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--ice);
  color: var(--navy);
  font-size: 1.2rem;
  text-align: left;
}

.legacy-results p {
  margin: 0.35rem 0;
  overflow-wrap: anywhere;
}

.legacy-results.legacy-results-sonstige p {
  max-width: 820px;
  margin: 0.6rem auto !important;
  line-height: 1.7;
  text-align: center;
}

.legacy-results p,
.legacy-results td,
.legacy-results a,
.legacy-results span,
.legacy-results font {
  font-family: inherit !important;
  font-size: inherit !important;
}

.legacy-results table {
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse !important;
  margin: 0.8rem 0 1.4rem;
}

.legacy-results h2 {
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
  color: var(--navy);
  font-size: 1.35rem;
}

.legacy-results .table-wrap {
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.06);
}

.legacy-results table.data {
  min-width: 620px;
  margin: 0;
  table-layout: auto;
}

.legacy-results td {
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 0.65rem 0.7rem;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.legacy-results tr:nth-child(even) td {
  background: #f4f7fb;
}

.legacy-results .bestenliste-action {
  margin: 0;
}

.legacy-results .bestenliste-action .btn,
.legacy-results .winterkoenig-action .btn {
  background: var(--navy);
  padding: 0.75rem 1.2rem;
  box-shadow: 0 4px 12px rgba(18, 48, 90, 0.18);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.legacy-results .bestenliste-action .btn:hover,
.legacy-results .winterkoenig-action .btn:hover {
  color: #fff;
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* EVENT ARCHIVE */

.content-updated {
  margin: 0.25rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

.home-page .content-updated {
  text-align: center;
}

.event-archive {
  margin-top: 1.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.event-archive > summary {
  padding: 0.3rem;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.event-archive[open] > summary {
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 860px) {
  .legacy-results .results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .legacy-results .bestenliste-action {
    text-align: right;
  }
}

/* NOTE */

.note {
  background: #fff8e8;
  border-left: 4px solid var(--gold);
  padding: 0.8rem 1rem;
  border-radius: 0 10px 10px 0;
}

/* STATUTEN */

.statuten p {
  margin: 0.35rem 0;
}

.statuten h2 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

/* FOOTER */

.site-footer {
  display: none;
  background: var(--navy-dark);
  color: #d7e2ef;
  margin-top: 1rem;
}

body.home-page .site-footer {
  display: block;
}

.site-footer .footer-inner {
  text-align: center;
}

.site-footer a {
  color: #fff;
}

.site-footer p {
  margin: 0.35rem 0;
}

/* TABLET */

@media (max-width: 1100px) {

  .hero,
  .page,
  .footer-inner,
  .nav {
    max-width: calc(100% - 20px);
  }

  body.home-page .site-header .nav {
    max-width: calc(100% - 20px - 2.2rem);
  }

}


/* MOBILE */

@media (max-width: 860px) {
  body.home-page .site-header .nav {
    max-width: calc(100% - 20px - 1.6rem);
  }

  .header-bar .brand {
    display: none;
  }

  .header-bar {
    display: flex;
    justify-content: center;
    padding: 0.4rem 0;
  }

  .menu-toggle {
    display: inline-block;
    background: #23447d;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 1rem 1rem;
    text-align: center;
    width: 100%;
  }

  .nav.open {
    display: flex;
  }

  .nav a,
  .nav summary {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
  }

  .nav details {
    width: 100%;
  }

  .nav details ul {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: 1px solid var(--line);
    margin: 0.25rem 0 0.5rem;
    border-radius: 10px;
  }

  .nav details ul a {
    text-align: center;
  }

  .hero {
    margin: 0.5rem auto 1rem;
    min-height: auto;
  }

  .hero img {
    border-radius: 0;
  }

  .page,
  .footer-inner {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .termine-title {
    font-size: 1.5rem;
  }

  .termine-heading {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .termine-heading-copy {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .termine-heading .social-facebook,
  .termine-heading .social-instagram {
    grid-row: 2;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1rem;
  }

  table.data {
    min-width: 0;
    font-size: 0.9rem;
  }

  .chronik-board-table {
    max-width: 100%;
  }

  .chronik-board-table td {
    padding: 0.2rem !important;
    overflow-wrap: anywhere;
  }

  table.data.current-events {
    table-layout: fixed;
  }

  table.data.current-events th:nth-child(1),
  table.data.current-events td:nth-child(1) {
    width: 24%;
  }

  table.data.current-events th:nth-child(2),
  table.data.current-events td:nth-child(2) {
    width: 41%;
  }

  table.data.current-events th:nth-child(3),
  table.data.current-events td:nth-child(3) {
    width: 35%;
  }

  table.data th,
  table.data td {
    padding: 0.5rem;
  }

  table.data.current-events .btn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  table.data.current-events .btn-medium {
    padding: 0.28rem 0.4rem;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  table.data.current-events .btn-small {
    padding: 0.16rem 0.3rem;
    font-size: 0.68rem;
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.7rem;
  }

  .termine-heading .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  table.data td.registration-cell {
    text-align: left;
    white-space: normal;
  }

  table.data td.registration-cell .btn {
    display: block;
    width: 100%;
    margin: 0.25rem 0;
  }

  table.data td .btn.btn-small {
    display: inline-block;
    width: auto;
    margin: 0.15rem 0.15rem 0.15rem 0;
  }

  .note {
    font-size: 0.95rem;
  }

}

/* Compact start page for desktop */
@media (min-width: 861px) {
  body.home-page .site-footer p {
    white-space: nowrap;
  }

  body.home-page .hero {
    margin: 0.45rem auto 0.25rem;
  }

  body.home-page .hero img {
    max-height: 200px;
  }

  body.home-page .page {
    padding-top: 0.25rem;
    padding-bottom: 0.8rem;
  }

  body.home-page .termine-heading {
    margin-bottom: 0.65rem;
    padding: 0.45rem 0.7rem;
  }

  body.home-page .termine-title {
    font-size: 1.65rem;
  }

  body.home-page .termine-heading .btn {
    padding: 0.45rem 1rem;
  }

  body.home-page table.data th,
  body.home-page table.data td {
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
    line-height: 1.25;
  }

  body.home-page table.data.current-events tr {
    height: 35px;
  }

  body.home-page table.data.current-events th,
  body.home-page table.data.current-events td {
    height: 35px;
    padding-top: 0.12rem;
    padding-bottom: 0.12rem;
    vertical-align: middle;
  }

  body.home-page table.data.current-events .btn-medium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 25px;
    padding: 0 0.3rem;
    font-size: 0.78rem;
    line-height: 1;
  }

  body.home-page .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.65rem 0 0;
  }

  body.home-page .card {
    padding: 0.65rem 0.75rem;
  }

  body.home-page .card h2 {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
  }

  body.home-page .card p {
    margin: 0.35rem 0;
  }

  body.home-page .jacken-images img {
    width: 70px;
  }

  body.home-page .site-footer {
    margin-top: 0;
  }

  body.home-page .footer-inner {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  body.home-page .site-footer p {
    margin: 0.15rem 0;
  }
}

/* Compact start page on mobile */
@media (max-width: 860px) {
  body.home-page .hero {
    width: calc(100% - 20px - 1.6rem);
  }

  body.home-page .header-bar {
    padding: 0.25rem 0;
  }

  body.home-page .menu-toggle {
    padding: 0.45rem 0.8rem;
  }

  body.home-page .hero {
    margin: 0.35rem auto 0.2rem;
  }

  body.home-page .hero img {
    max-height: 100px;
  }

  body.home-page .page {
    padding-top: 0.25rem;
    padding-bottom: 0.6rem;
  }

  body.home-page .termine-heading {
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.45rem;
  }

  body.home-page .termine-heading .termine-title {
    font-size: 1.05rem;
  }

  body.home-page .termine-heading .content-updated {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  body.home-page .termine-heading .btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.8rem;
  }

  body.home-page table.data.current-events {
    font-size: 0.88rem;
  }

  body.home-page table.data.current-events th,
  body.home-page table.data.current-events td {
    padding: 0.25rem 0.2rem;
    line-height: 1.35;
  }

  body.home-page table.data.current-events th:nth-child(1),
  body.home-page table.data.current-events td:nth-child(1) {
    width: 22%;
  }

  body.home-page table.data.current-events th:nth-child(2),
  body.home-page table.data.current-events td:nth-child(2) {
    width: 55%;
  }

  body.home-page table.data.current-events th:nth-child(3),
  body.home-page table.data.current-events td:nth-child(3) {
    width: 23%;
  }

  body.home-page table.data.current-events tbody tr:first-child td:nth-child(2) {
    white-space: nowrap;
  }

  body.home-page table.data.current-events td.registration-cell .btn {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    margin: 0.08rem 0.08rem 0.08rem 0;
    padding: 0.2rem 0.25rem;
    font-size: 0.72rem;
    line-height: 1.15;
    text-align: center;
  }

  body.home-page table.data.current-events td.registration-cell {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    text-align: center;
  }

  body.home-page table.data.current-events tbody {
    display: block;
  }

  body.home-page table.data.current-events tr {
    display: grid;
    grid-template-columns: 24% 76%;
    height: auto;
  }

  body.home-page table.data.current-events thead {
    display: none;
  }

  body.home-page table.data.current-events tbody tr > td {
    height: auto;
  }

  body.home-page table.data.current-events tbody tr > td:nth-child(1) {
    grid-column: 1;
  }

  body.home-page table.data.current-events tbody tr > td:nth-child(2) {
    grid-column: 2;
  }

  body.home-page table.data.current-events tbody tr > td:empty {
    display: none;
  }

  body.home-page table.data.current-events td.registration-cell .btn {
    width: auto;
    min-width: 92px;
    margin: 0.08rem 0;
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  body.home-page .cards {
    gap: 0.45rem;
    margin: 0.55rem 0;
  }

  body.home-page .card {
    padding: 0.65rem 0.75rem;
  }

  body.home-page .card h2 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
  }

  body.home-page .card p {
    margin: 0.3rem 0;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  body.home-page .video-button .btn {
    display: inline-block;
    width: auto;
    margin: 0.2rem 0;
    padding: 0.35rem 0.65rem;
  }

  body.home-page .jacken-images img {
    width: 70px;
  }

  body.home-page .footer-inner {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
}

/* Desktop: Header-Bar ausblenden */

@media (min-width: 861px) {
  .header-bar {
    display: none;
  }
}

/* HERO-EXTRAS */

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .45rem .9rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
}

.hero-meta {
  margin-top: 1rem;
  font-size: .95rem;
  opacity: .9;
}

.video-button {
  text-align: center;
  margin-top: auto;
}

.video-card {
  display: flex;
  flex-direction: column;
}

/* LEGACY PHOTO ALBUMS */

body:has(#index),
body:has(#photograph) {
  min-height: 100vh;
  background: var(--snow);
  color: var(--text);
}

body:has(#index) #header {
  max-width: var(--max);
  margin: 1.25rem auto 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

body:has(#index) #header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
}

body:has(#index) #index {
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

body:has(#index) #index table {
  display: block;
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

body:has(#index) #index tbody {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 0.8rem;
}

body:has(#index) #index tr {
  display: contents;
}

body:has(#index) #index td.thumbcell {
  display: grid;
  width: auto;
  min-width: 0;
  min-height: 112px;
  place-items: center;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body:has(#index) #index td.thumbcell:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

body:has(#index) #index td.thumbcell a {
  display: grid;
  width: 100%;
  min-height: 100px;
  place-items: center;
}

body:has(#index) #index td.thumbcell img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 130px;
  height: auto;
  border: 0;
  border-radius: 6px;
  object-fit: contain;
}

body:has(#index) #index td[colspan] {
  grid-column: 1 / -1;
}

body:has(#index) #index .pages {
  padding: 0.9rem 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

body:has(#index) #index .pages a,
body:has(#photograph) #navigation .textnavigation a {
  display: inline-block;
  margin: 0.15rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

body:has(#index) #index .pages a:hover,
body:has(#photograph) #navigation .textnavigation a:hover {
  border-color: var(--gold);
  background: var(--navy-dark);
}

body:has(#index) #index a:focus-visible,
body:has(#photograph) #navigation a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

body:has(#index) .footnote,
body:has(#photograph) .footnote {
  max-width: var(--max);
  margin: 1.5rem auto;
  padding: 0 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

body:has(#photograph) #navigation {
  max-width: var(--max);
  margin: 1rem auto;
  padding: 0 1rem;
}

body:has(#photograph) #navigation table {
  display: block;
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

body:has(#photograph) #navigation tr.textnavigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

body:has(#photograph) #navigation tr.textnavigation td {
  width: auto;
  text-align: center;
}

body:has(#photograph) #navigation tr:not(.textnavigation) {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.3rem 0 0.75rem;
}

body:has(#photograph) #navigation td.thumbcell {
  flex: 0 0 64px;
  width: auto;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

body:has(#photograph) #navigation td.thumbcell img {
  display: block;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 5px;
  object-fit: cover;
}

body:has(#photograph) #navigation td.thumbcell.selected {
  border: 2px solid var(--gold);
}

body:has(#photograph) h1.title {
  margin: 0.75rem auto;
  padding: 0 1rem;
  color: var(--navy);
  font-size: 1.15rem;
  text-align: center;
}

body:has(#photograph) #photograph {
  margin: 1rem auto;
  padding: 0 1rem;
  text-align: center;
}

body:has(#photograph) #photograph img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  margin: 0 auto;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

body:has(#photograph) p.caption,
body:has(#photograph) p.description {
  width: calc(100% - 2rem);
  max-width: 70ch;
  margin: 0.75rem auto;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 600px) {
  body:has(#index) #header {
    margin: 0.75rem 0.65rem;
    padding: 0.85rem 1rem;
  }

  body:has(#index) #index,
  body:has(#photograph) #navigation {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  body:has(#index) #index tbody {
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 0.55rem;
  }

  body:has(#index) #index td.thumbcell {
    min-height: 100px;
    padding: 0.4rem;
  }

  body:has(#photograph) #navigation tr.textnavigation {
    gap: 0.25rem;
  }

  body:has(#photograph) #navigation .textnavigation a {
    padding: 0.4rem 0.45rem;
    font-size: 0.9rem;
  }
}