/* Bestehendes Seitendesign, zentral für Hauptseite und Online Liga. */

/* GRUNDGESTALTUNG: Farben, Schrift, Abstände und Komponenten. */
:root {
  --bg: #080d17;
  --panel: #111b2b;
  --panel2: #142137;
  --text: #f6f8ff;
  --gold: #ffd28d;
  --line: #29374d;
  --muted: #acbdd2;
  --red: #ed2544;
  --blue: #91b4ff;
  --green: #83d6ac;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 125px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
select {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #9abaff;
  outline-offset: 4px;
}

.wrap {
  max-width: 1240px;
  width: 100%;
  margin: auto;
  padding: 0 26px;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #080d17f5;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 56px;
  height: 50px;
  object-fit: contain;
}

.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  background: #243852;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.12);
}

.btn.secondary {
  background: #192c46;
  border-color: #3b5375;
}

.banner {
  background: #132844;
  padding: 5px 16px;
  text-align: center;
  font-size: 11px;
  color: #bbd2f1;
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 800;
  color: #9abaff;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(39px, 6vw, 74px);
  letter-spacing: -2.8px;
  margin: 18px 0;
}

h2 {
  font-size: clamp(29px, 4vw, 43px);
  letter-spacing: -1px;
  margin: 12px 0 22px;
}

h3 {
  margin: 0 0 14px;
}

.page-title {
  font-size: clamp(35px, 5vw, 54px);
}

.section {
  padding-block: 70px;
}

.intro {
  background:
    radial-gradient(ellipse at 85% 15%, #2855ab44, transparent 65%),
    linear-gradient(130deg, #101b2d, #080d17);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 50px;
  align-items: center;
  padding-block: 65px;
}

.intro h1 {
  white-space: nowrap;
}

.intro-logo {
  width: 100%;
  max-height: 330px;
  filter: drop-shadow(0 20px 38px #0008);
}

.tagline {
  font-size: 23px;
  font-weight: 750;
}

.story-title {
  font-size: 26px;
  margin-top: 35px;
}

.story-copy {
  max-width: 720px;
  color: var(--muted);
}

.intro-tags {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 27px;
  font-size: 12px;
  color: #b2c9ed;
}

.summary-strip {
  background: #111722;
  border-block: 1px solid var(--line);
}

.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.summary-item {
  padding: 29px 10px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.summary-item:last-child {
  border: 0;
}

.summary-item strong {
  display: block;
  font-size: 35px;
  font-weight: 950;
  letter-spacing: -1px;
}

.summary-item:nth-child(1) strong,
.summary-item:nth-child(4) strong {
  color: var(--red);
}

.summary-item:nth-child(2) strong {
  color: #739fff;
}

.summary-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
}

.event {
  display: grid;
  grid-template-columns: 1fr 0.4fr;
  gap: 35px;
  align-items: center;
  border: 1px solid #3c5275;
  border-radius: 18px;
  padding: 42px;
  background:
    radial-gradient(ellipse at 90% 10%, #2d5dbb55, transparent 65%), #111d30;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.event:after {
  content: attr(data-number);
  position: absolute;
  right: -18px;
  bottom: -70px;
  font-size: 250px;
  letter-spacing: -15px;
  font-weight: 950;
  color: #ffffff04;
  pointer-events: none;
}

.event h2 {
  font-size: clamp(34px, 5vw, 54px);
}

.event p {
  color: var(--muted);
  max-width: 650px;
}

.event-side {
  position: relative;
  z-index: 1;
  border-left: 1px solid #4b638866;
  padding-left: 25px;
  text-align: center;
}

.event-side strong {
  display: block;
  font-size: 58px;
  line-height: 1.1;
}

.event-side span {
  display: block;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 10px 0 22px;
}

.pill {
  display: inline-block;
  border: 1px solid #426699;
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 12px;
  color: #c6daff;
  background: #17365c55;
}

.gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}

.gallery figure {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #17253d;
}

.gallery img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.gallery figure:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #080d17ee, transparent 85%);
}

.gallery figcaption {
  position: absolute;
  z-index: 1;
  left: 25px;
  right: 25px;
  bottom: 25px;
}

.gallery h3 {
  font-size: 25px;
}

.gallery small {
  font-size: 11px;
  color: #c2cfe2;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: linear-gradient(130deg, #15233b, #101722);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.card-head {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: #234b9422;
}

.card-head h3 {
  font-size: 21px;
  margin: 12px 0 8px;
}

.card-head a {
  text-decoration: none;
}

.card-head a:hover {
  color: var(--blue);
}

.card-head small {
  font-size: 11px;
  color: var(--muted);
}

.placements {
  padding: 10px 22px 15px;
}

.placement {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  min-height: 46px;
  border-bottom: 1px solid #ffffff08;
}

.placement:last-child {
  border: 0;
}

.medal {
  min-width: 22px;
  font-weight: 850;
  color: #b5c5df;
}

.medal.first {
  color: #edc575;
}

.textlink {
  color: #d3e3ff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.textlink:hover {
  color: #9dbdff;
  text-decoration: underline;
}

.external {
  display: block;
  padding: 0 22px 20px;
  font-size: 12px;
  color: #acc8f4;
  text-decoration: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
}

.metric strong {
  display: block;
  font-size: 33px;
  letter-spacing: -1px;
}

.metric span {
  font-size: 12px;
  color: var(--muted);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 28px 0 20px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #3a4e6b;
  border-radius: 10px;
  background: #0c1422;
}

.segmented button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  padding: 10px 20px;
  background: none;
  color: var(--muted);
  font-weight: 750;
}

.segmented button[aria-pressed="true"] {
  background: #315da9;
  color: white;
}

.search-label {
  font-size: 12px;
  color: var(--muted);
}

input,
select {
  font: inherit;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  margin-top: 6px;
  color: white;
  background: #0c1727;
  border: 1px solid #3b4e6b;
  border-radius: 7px;
}

input::placeholder {
  color: #97a9c3;
}

.search-label input {
  min-width: 240px;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 13px;
}

th {
  text-align: left;
  background: #17253b;
  color: #b2c6e3;
  font-weight: 600;
}

td,
th {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
}

tr:last-child td {
  border: 0;
}

tbody tr:hover {
  background: #13213a;
}

.score {
  font-weight: 850;
  color: #b4d0ff;
  font-size: 17px;
}

.used {
  font-weight: 800;
  color: #c2d9ff;
}

.discard {
  color: #78889f;
}

.table-help,
.subtle-note {
  font-size: 12px;
  color: var(--muted);
}

.subtle-note {
  border-left: 2px solid #40597d;
  padding-left: 14px;
  margin: 23px 0;
}

.definition {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin: 26px 0;
}

.definition summary {
  cursor: pointer;
}

.definition li {
  color: var(--muted);
  font-size: 13px;
}

.stats-heading {
  margin-top: 55px;
}

.section-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.section-links a {
  padding: 8px 13px;
  text-decoration: none;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: #bacfed;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 23px;
  margin: 28px 0;
}

.profile-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}

.avatar {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #486bff, #bf2044);
  border-radius: 21px;
  font-size: 28px;
  font-weight: 900;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #adcaff;
  text-decoration: none;
}

.chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.chip {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 24px;
  font-size: 13px;
}

.positive {
  color: #84d7ad;
}

.negative {
  color: #efa2af;
}

.desktop {
  display: block;
}

.mobile {
  display: none;
}

.history-card,
.rank-card,
.directory-card {
  padding: 17px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 12px 0;
}

.history-card-top,
.rank-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.history-card-top {
  font-weight: 800;
}

.history-card p,
.directory-card p {
  font-size: 12px;
  color: var(--muted);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.mini-stats.cups {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}

.mini-stat {
  padding: 9px 4px;
  background: #0b1424;
  border-radius: 7px;
  text-align: center;
}

.mini-stat strong {
  display: block;
  font-size: 17px;
}

.mini-stat small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mini-stat.featured strong {
  color: #aacaff;
}

.rank-person {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.rank-number {
  min-width: 24px;
  color: #aac7fb;
  font-weight: 850;
}

.rank-card details {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.rank-card summary {
  cursor: pointer;
  padding: 5px 0;
}

.rank-values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 12px;
}

.rank-values > span {
  padding: 9px 2px;
  border-radius: 6px;
  background: #0b1424;
  text-align: center;
}

.rank-values small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}

.directory-summary {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.directory-summary strong {
  color: white;
}

.empty {
  padding: 24px;
  color: var(--muted);
}

footer {
  padding: 35px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}

main {
  min-height: 60vh;
}

.loading,
.error {
  padding: 50px 25px;
}

.error {
  color: #ffc0ca;
}

.notice {
  padding: 14px 17px;
  background: #58401933;
  color: #e3cdac;
  border: 1px solid #765c36;
  border-radius: 9px;
  font-size: 12px;
}

dialog {
  background: #111c2d;
  color: white;
  border: 1px solid #435b7c;
  border-radius: 15px;
  padding: 28px;
  width: calc(100% - 30px);
  max-width: 760px;
  max-height: 90vh;
}

dialog::backdrop {
  background: #000c;
  backdrop-filter: blur(5px);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid #456083;
  border-radius: 7px;
  background: none;
  color: white;
}

.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 22px 0;
}

fieldset {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

label {
  display: block;
  font-size: 13px;
}

fieldset label {
  margin: 13px 0;
}

/* ANPASSUNG: andere Bildschirmgröße, Druck oder reduzierte Bewegung. */
@media (max-width: 1050px) {
  .intro-grid {
    grid-template-columns: 1fr 0.4fr;
    gap: 28px;
  }

  .intro h1 {
    font-size: 57px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }

  .history-mobile,
  .rank-mobile,
  .directory-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }

  .history-card,
  .rank-card,
  .directory-card {
    margin: 0;
  }
}

/* ANPASSUNG: andere Bildschirmgröße, Druck oder reduzierte Bewegung. */
@media (max-width: 700px) {
  .wrap {
    padding-inline: 18px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    padding-block: 28px;
    gap: 22px;
  }

  .intro-logo {
    display: none;
  }

  .intro h1 {
    font-size: clamp(34px, 9vw, 55px);
    letter-spacing: -1.7px;
  }

  .tagline {
    font-size: 20px;
  }

  .story-title {
    font-size: 23px;
  }

  .story-copy {
    font-size: 14px;
  }

  .intro-tags {
    gap: 13px;
  }

  .summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-item {
    padding: 22px 8px;
  }

  .summary-item:nth-child(2) {
    border-right: 0;
  }

  .summary-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .summary-item strong {
    font-size: 30px;
  }

  .summary-item span {
    font-size: 10px;
  }

  .section {
    padding-block: 28px;
  }

  .event {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }

  .event-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-align: left;
    border-left: 0;
    border-top: 1px solid #45678b66;
    padding: 12px 0 0;
  }

  .event-side strong {
    font-size: 35px;
  }

  .event-side span {
    font-size: 12px;
    letter-spacing: 1px;
    margin: 2px 0;
  }

  .event-side .btn {
    font-size: 13px;
    padding: 12px 15px;
  }

  .event h2 {
    font-size: 35px;
  }

  .event p {
    font-size: 14px;
  }

  .gallery,
  .grid,
  .formgrid,
  .history-mobile,
  .rank-mobile,
  .directory-mobile {
    grid-template-columns: 1fr;
  }

  .gallery figure {
    min-height: 290px;
  }

  h2 {
    font-size: 31px;
  }

  .metric {
    padding: 17px;
  }

  .metric strong {
    font-size: 29px;
  }

  .metric span {
    font-size: 11px;
  }

  .stats-grid {
    gap: 11px;
  }

  .controls {
    display: block;
  }

  .segmented {
    display: flex;
    width: 100%;
  }

  .segmented button {
    flex: 1;
    padding: 11px 12px;
  }

  .search-label {
    margin-top: 18px;
  }

  .search-label input {
    min-width: 0;
  }

  .profile-head {
    gap: 15px;
  }

  .profile-head h1 {
    font-size: 28px;
  }

  .avatar {
    width: 63px;
    height: 63px;
    border-radius: 16px;
    font-size: 23px;
  }

  .mini-stats {
    gap: 6px;
  }

  .stats-heading {
    margin-top: 40px;
  }

  dialog {
    padding: 20px;
  }

  .dialog-head h2 {
    font-size: 28px;
  }

  .formgrid {
    gap: 15px;
  }
}

/* ANPASSUNG: andere Bildschirmgröße, Druck oder reduzierte Bewegung. */
@media (max-width: 360px) {
  .wrap {
    padding-inline: 13px;
  }

  .intro h1 {
    font-size: 33px;
  }

  .event-side {
    display: block;
  }

  .event-side .btn {
    width: 100%;
    margin-top: 15px;
  }

  .profile-head h1 {
    font-size: 25px;
  }
}

/* ANPASSUNG: andere Bildschirmgröße, Druck oder reduzierte Bewegung. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

[hidden] {
  display: none !important;
}

.profile-head ~ .stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-head ~ .stats-grid .metric span {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* ANPASSUNG: andere Bildschirmgröße, Druck oder reduzierte Bewegung. */
@media (max-width: 600px) {
  .profile-head ~ .stats-grid {
    gap: 8px;
  }

  .profile-head ~ .stats-grid .metric {
    padding: 14px 9px;
  }

  .profile-head ~ .stats-grid .metric strong {
    font-size: 21px;
    white-space: nowrap;
    letter-spacing: -0.6px;
  }

  .profile-head ~ .stats-grid .metric span {
    display: block;
    font-size: 10px;
    line-height: 1.4;
  }
}

/* ANPASSUNG: andere Bildschirmgröße, Druck oder reduzierte Bewegung. */
@media (max-width: 360px) {
  .profile-head ~ .stats-grid .metric strong {
    font-size: 19px;
  }
}

.registration-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c1728;
  margin: 20px 0;
}

.registration-info p {
  margin: 0;
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.registration-info strong {
  display: block;
  color: #e8efff;
}

.registration-info small {
  color: var(--muted);
}

.form-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-lead > label {
  min-width: 0;
}

.price-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid #425e86;
  border-radius: 10px;
  background: #162a48;
  padding: 17px 20px;
  margin: 20px 0;
}

.price-box > div {
  min-width: 0;
}

.price-box > div strong {
  display: block;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.price-box > div span {
  display: block;
  margin-top: 3px;
}

.price-box > strong {
  font-size: 27px;
  white-space: nowrap;
}

.registration-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.social-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.reg-status {
  padding: 14px 16px;
  border-radius: 9px;
  white-space: pre-line;
  margin-top: 16px;
  overflow-wrap: anywhere;
}

.reg-status:empty {
  display: none;
}

.reg-status.pending {
  background: #152b48;
  border: 1px solid #3e5e91;
  color: #d3e3ff;
}

.reg-status.success {
  background: #12372c;
  border: 1px solid #32745e;
  color: #d5ffea;
}

.reg-status.error {
  background: #401b26;
  border: 1px solid #9b465d;
  color: #ffdce5;
}

button:disabled {
  cursor: default;
  opacity: 0.65;
}

#registration {
  max-width: 850px;
}

#registration fieldset {
  min-inline-size: 0;
  min-width: 0;
}

#registration .dialog-head {
  gap: 12px;
}

#registration .dialog-head > div {
  min-width: 0;
  flex: 1;
}

#register-title {
  overflow-wrap: anywhere;
}

#registration .close {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #111c2d;
}

.event-details {
  margin: 23px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.event-details span {
  border: 1px solid #40567a;
  border-radius: 7px;
  background: #0c172755;
  padding: 8px 12px;
  font-size: 13px;
  color: #e6eefb;
}

/* ANPASSUNG: andere Bildschirmgröße, Druck oder reduzierte Bewegung. */
@media (max-width: 650px) {
  .form-lead {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .registration-info {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .price-box {
    padding: 15px;
  }

  #registration {
    padding: 19px;
  }

  #register-title {
    font-size: 22px;
    letter-spacing: -0.6px;
  }
}

.advent-debug {
  background: #54380d;
  color: #ffe6ac;
  border-bottom: 1px solid #9b6c25;
  padding: 10px 18px;
  font-size: 12px;
}

.advent-debug-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.advent-debug select {
  display: inline-block;
  width: auto;
  margin: 0;
  background: #211b11;
  padding: 6px 10px;
}

.advent-debug button,
.advent-debug a {
  font: inherit;
  color: #fff1cd;
  border: 1px solid #c18c42;
  background: #65491e;
  border-radius: 7px;
  padding: 7px 12px;
  text-decoration: none;
}

.advent-modal {
  max-width: 860px;
  width: calc(100% - 24px);
  max-height: 94vh;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 0, #193765, #0b1423 75%);
  border-color: #415c86;
}

.advent-modal .dialog-head > div {
  min-width: 0;
  flex: 1;
}

.advent-modal .dialog-head {
  gap: 12px;
}

.advent-modal h2 {
  font-size: clamp(25px, 4vw, 37px);
  margin: 8px 0 12px;
}

.advent-modal .close {
  background: #0c1729;
}

.advent-intro {
  color: #b9cae5;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.advent-board {
  width: min(100%, 62vh, 640px);
  aspect-ratio: 1;
  margin: 18px auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  background-color: #101e32;
  background-image: url("assets/BPM-Logo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px solid #58709b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 45px #0006;
}

.advent-door {
  position: relative;
  min-width: 0;
  border: 1px solid #c5d9ff42;
  border-radius: 0;
  background: linear-gradient(140deg, #09111b25, #09111b70);
  color: white;
  padding: 5px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 1 !important;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

.advent-door span {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 38px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #071021b8;
  color: #e7f0ff;
  font-size: clamp(18px, 3vw, 31px);
  font-weight: 900;
  text-shadow: 0 2px 8px #000;
}

.advent-door:disabled {
  cursor: default;
  background: #06101c82;
}

.advent-door:disabled span {
  color: #a9b9cc;
  background: #08111b9c;
}

.advent-door:not(:disabled):hover {
  background: #315b9966;
  box-shadow: inset 0 0 0 3px #b9d1ff;
}

.advent-door.today {
  border: 2px solid #ffbd68;
  background: #bf244540;
  box-shadow: inset 0 0 18px #ffb45444;
}

.advent-door.today span {
  background: #8d2138e6;
  color: white;
}

.advent-door.opened:not(:disabled)::after {
  content: "✓";
  position: absolute;
  right: 5px;
  top: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #a5efd0;
  background: #0c3026cc;
  border-radius: 10px;
  line-height: 1;
  padding: 4px;
}

.advent-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.advent-actions .btn {
  font-size: 13px;
  padding: 11px 17px;
}

.advent-legend {
  text-align: center;
  color: #aebfd8;
  font-size: 11px;
  margin: 14px 0 0;
}

.advent-page {
  text-align: center;
}

.advent-page > p {
  max-width: 650px;
  margin-inline: auto;
}

.advent-page .advent-board {
  width: min(100%, 760px);
  margin-top: 30px;
}

.advent-page .advent-legend {
  margin-bottom: 24px;
}

.advent-content {
  max-width: 760px;
}

.advent-content .dialog-head > div {
  min-width: 0;
  flex: 1;
}

.advent-content h2 {
  font-size: clamp(25px, 4vw, 36px);
  overflow-wrap: anywhere;
}

.advent-content-body {
  line-height: 1.75;
  color: #d9e4f5;
}

.advent-content-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
  margin: 20px 0;
  border: 1px solid #3c5276;
}

.advent-video {
  aspect-ratio: 16/9;
  margin: 20px 0;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.advent-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.advent-content-placeholder {
  padding: 20px;
  border: 1px dashed #516a93;
  border-radius: 11px;
  background: #15263f66;
  color: #b9cce9;
}

.advent-content-done {
  margin-top: 22px;
}

.advent-footer-note {
  color: #aabbd5;
  font-size: 11px;
  text-align: center;
  margin-top: 16px;
}

/* ANPASSUNG: andere Bildschirmgröße, Druck oder reduzierte Bewegung. */
@media (max-width: 1000px) {
  .advent-visible .nav {
    flex-wrap: wrap;
  }

  .advent-visible header nav {
    width: 100%;
    justify-content: space-between;
  }
}

/* ANPASSUNG: andere Bildschirmgröße, Druck oder reduzierte Bewegung. */
@media (max-width: 700px) {
  .advent-modal {
    padding: 16px;
  }

  .advent-modal .close,
  .advent-content .close {
    width: 34px;
    height: 34px;
  }

  .advent-board {
    width: min(100%, 62vh);
    border-radius: 10px;
  }

  .advent-door span {
    min-width: 25px;
    min-height: 31px;
    padding: 3px 5px;
    border-radius: 6px;
    font-size: 20px;
  }

  .advent-actions {
    gap: 8px;
  }

  .advent-actions .btn {
    padding: 10px 12px;
    flex: 1 1 130px;
  }

  .advent-content {
    padding: 19px;
  }

  .advent-page .advent-board {
    width: 100%;
  }

  .advent-intro {
    font-size: 12px;
  }

  .advent-content-placeholder {
    padding: 16px;
  }
}

/* ANPASSUNG: andere Bildschirmgröße, Druck oder reduzierte Bewegung. */
@media (prefers-reduced-motion: reduce) {
  .advent-door {
    transition: none;
  }
}

/* ZEITSTRAHL: vertikale Linie, Jahresmarken und versetzte Karten. */
.bpm-history {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 10% 0%, #1b315548, transparent 48%), #0a1120;
  overflow: hidden;
}
.bpm-history-heading {
  max-width: 830px;
  margin-bottom: 52px;
}
.bpm-history-heading h2 {
  margin-top: 14px;
}
.bpm-history-heading > p {
  max-width: 660px;
  color: var(--muted);
}
.bpm-history-list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}
.bpm-history-list::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: linear-gradient(
    #ed2544,
    #89aeff 28%,
    #486892 64%,
    #e1b66d 81%,
    #89aeff
  );
}
.bpm-history-item {
  --history-accent: #89aeff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: start;
  position: relative;
  margin: 0 0 36px;
}
.bpm-history-red {
  --history-accent: #ff6c85;
}
.bpm-history-gold {
  --history-accent: #f1cb87;
}
.bpm-history-stamp {
  grid-column: 1;
  grid-row: 1;
  padding-top: 13px;
  text-align: right;
}
.bpm-history-year {
  display: block;
  font-weight: 900;
  font-size: clamp(25px, 3.3vw, 43px);
  line-height: 1.14;
  letter-spacing: -1.4px;
  color: var(--history-accent);
}
.bpm-history-label {
  display: block;
  margin-top: 9px;
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.bpm-history-node {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  justify-self: center;
  margin-top: 24px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--history-accent);
  border-radius: 50%;
  background: #0a1120;
  box-shadow: 0 0 0 7px #0a1120;
}
.bpm-history-card {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  padding: 24px 25px;
  border: 1px solid #30425f;
  border-radius: 18px;
  background: linear-gradient(135deg, #17253b, #101a2c);
  box-shadow: 0 12px 28px #0000001f;
}
.bpm-history-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}
.bpm-history-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #bdcbe0;
  font-size: 14px;
  line-height: 1.8;
}
.bpm-history-item:nth-child(even) .bpm-history-stamp {
  grid-column: 3;
  text-align: left;
}
.bpm-history-item:nth-child(even) .bpm-history-card {
  grid-column: 1;
}
.bpm-history-gold .bpm-history-card {
  border-color: #967d51;
  background: linear-gradient(135deg, #302b29, #171d2b);
}
.bpm-history-mark {
  position: absolute;
  z-index: 0;
  right: 5px;
  bottom: -56px;
  font-weight: 950;
  font-size: 215px;
  line-height: 1;
  color: #f1cb870c;
  pointer-events: none;
}
.bpm-history-next {
  position: relative;
  margin: 0 auto;
  max-width: 720px;
  padding: 26px 0 0;
  text-align: center;
}
.bpm-history-next-dot {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid #89aeff;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: #0a1120;
}
.bpm-history-next h3 {
  margin: 12px 0;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.3;
}
.bpm-history-next p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* FOTOS: 2:1 Breitenverhältnis, exakt gleich hohe Karten und Bilder. */
.gallery.bpm-own-photos {
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}
.gallery.bpm-own-photos figure {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid #344663;
  border-radius: 24px;
  background: linear-gradient(145deg, #18273e, #101b2d);
  box-shadow: 0 14px 32px #00000025;
}
.gallery.bpm-own-photos figure::after {
  display: none;
}
.gallery.bpm-own-photos img {
  position: static;
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  opacity: 1;
  border-radius: 17px;
}
.gallery.bpm-own-photos figcaption {
  position: static;
  padding: 20px 12px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gallery.bpm-own-photos h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.2;
}
.gallery.bpm-own-photos small {
  color: var(--muted);
}

@media (max-width: 700px) {
  .bpm-history-heading {
    margin-bottom: 32px;
  }
  .bpm-history-list::before {
    left: 8px;
    top: 16px;
  }
  .bpm-history-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0 14px;
    margin-bottom: 28px;
  }
  .bpm-history-stamp,
  .bpm-history-item:nth-child(even) .bpm-history-stamp {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0 0 14px;
  }
  .bpm-history-year {
    font-size: 29px;
    letter-spacing: -0.8px;
  }
  .bpm-history-label {
    margin-top: 5px;
  }
  .bpm-history-node {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: start;
    margin-top: 10px;
    width: 18px;
    height: 18px;
  }
  .bpm-history-card,
  .bpm-history-item:nth-child(even) .bpm-history-card {
    grid-column: 2;
    grid-row: 2;
    padding: 21px 19px;
    border-radius: 15px;
  }
  .bpm-history-card h3 {
    font-size: 21px;
  }
  .bpm-history-card p {
    font-size: 14px;
  }
  .bpm-history-next {
    padding-left: 42px;
    text-align: left;
  }
  .bpm-history-next-dot {
    position: absolute;
    left: 4px;
    top: 28px;
    margin: 0;
  }
  .gallery.bpm-own-photos {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery.bpm-own-photos figure {
    border-radius: 20px;
    padding: 10px;
  }
  .gallery.bpm-own-photos img {
    border-radius: 13px;
  }
  .gallery.bpm-own-photos figcaption {
    padding: 18px 10px 9px;
  }
  .gallery.bpm-own-photos img {
    height: auto;
    border-radius: 13px;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bpm-history-card {
    transition:
      transform 0.18s ease,
      border-color 0.18s ease;
  }
  .bpm-history-card:hover {
    transform: translateY(-3px);
    border-color: var(--history-accent);
  }
}
@media print {
  .bpm-history {
    background: white;
    color: black;
  }
  .bpm-history-item {
    break-inside: avoid;
  }
  .bpm-history-card,
  .bpm-history-gold .bpm-history-card {
    background: white;
    border-color: #888;
    box-shadow: none;
  }
  .bpm-history-card p,
  .bpm-history-heading > p {
    color: #222;
  }
  .bpm-history-mark {
    display: none;
  }
}

/* --- BPM XIV Countdown --- */
.event-side .bpm-xiv-countdown {
  box-sizing: border-box;
  width: 100%;
  max-width: 250px;
  margin: 15px auto 0;
  text-align: center;
}
.event-side .bpm-countdown-caption {
  margin: 0 0 9px;
  color: var(--muted, #a8b8cf);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
}
.event-side .bpm-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.event-side .bpm-countdown-unit {
  min-width: 0;
  padding: 8px 3px 7px;
  border: 1px solid #405776;
  border-radius: 8px;
  background: #11213a80;
}
.event-side .bpm-countdown-number {
  display: block;
  margin: 0;
  color: #f6f8ff;
  font-size: 21px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: 0;
}
.event-side .bpm-countdown-label {
  display: block;
  margin: 5px 0 0;
  color: #b8c9df;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.2px;
}
.event-side .bpm-countdown-started {
  margin: 0;
  color: #a8dfbf;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
@media (max-width: 360px) {
  .event-side .bpm-countdown-number {
    font-size: 19px;
  }
  .event-side .bpm-countdown-grid {
    gap: 4px;
  }
}

/* --- Statistik-Komfort --- */
.bpm-stats-overview .stats-grid.bpm-stats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.bpm-stats-overview .bpm-stats-summary > .metric {
  box-sizing: border-box;
  flex: 1 1 calc(33.333333% - 10px);
  min-width: 0;
}
.bpm-stats-overview .bpm-stats-summary > .metric span {
  overflow-wrap: anywhere;
}
.bpm-stats-overview .bpm-stats-sticky-heading {
  position: sticky;
  top: var(--bpm-stats-header-offset, 96px);
  z-index: 6;
  margin: 35px -1px 18px;
  padding: 15px 17px 13px;
  border: 1px solid #344966;
  border-radius: 12px;
  background: #101c2e;
  box-shadow: 0 8px 20px #00000026;
}
.bpm-stats-overview .bpm-stats-sticky-heading > .stats-heading {
  margin: 0 0 11px !important;
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.bpm-stats-overview .bpm-stats-jumps {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: thin;
  align-items: center;
  gap: 7px;
}
.bpm-stats-overview .bpm-stats-jump {
  flex: 0 0 auto;
  white-space: nowrap;
  appearance: none;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #3b5271;
  border-radius: 999px;
  background: #192b45;
  color: #d0e0f8;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.bpm-stats-jump-compact {
  display: none;
}
.bpm-stats-overview .bpm-stats-jump:hover {
  border-color: #89aeff;
  background: #223b5b;
}
.bpm-stats-overview .bpm-stats-jump:focus-visible {
  outline: 3px solid #9abaff;
  outline-offset: 3px;
}
.bpm-stats-overview .bpm-stats-jumps-bottom {
  margin: 24px 0 36px;
  padding: 17px 0 0;
  border-top: 1px solid var(--line, #29374d);
}
.bpm-stats-overview section.bpm-stats-table-section {
  scroll-margin-top: calc(var(--bpm-stats-header-offset, 96px) + 12px);
}
@media (max-width: 700px) {
  .bpm-stats-overview .stats-grid.bpm-stats-summary {
    gap: 11px;
  }
  .bpm-stats-overview .bpm-stats-summary > .metric {
    flex-basis: calc(50% - 6px);
  }
  .bpm-stats-overview .bpm-stats-sticky-heading {
    position: static;
    padding: 0;
    margin: 28px 0 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .bpm-stats-overview .bpm-stats-sticky-heading > .stats-heading {
    font-size: 21px;
    margin-bottom: 9px !important;
  }
  .bpm-stats-overview .bpm-stats-jumps {
    gap: 6px;
  }
  .bpm-stats-overview .bpm-stats-jump {
    padding: 7px 9px;
    min-height: 38px;
  }
  .bpm-stats-jump-full {
    display: none;
  }
  .bpm-stats-jump-compact {
    display: inline;
  }
}
@media print {
  .bpm-stats-overview .bpm-stats-sticky-heading {
    position: static;
    color: #111;
    background: #fff;
    box-shadow: none;
  }
  .bpm-stats-overview .bpm-stats-jumps {
    display: none;
  }
}
