:root {
  /* Color Variables */
  --color-text: #282828;
  --color-text-light: #808080;
  --color-text-inverted: whitesmoke;
  --color-background: #ffffff;
  --color-background-dark: #282828;
  --color-accent: #f172a6;
  --color-accent-secondary: #d75f6d;
  --color-yellow: yellow;

  /* Typography */
  --font-family-main: "Courier New", Courier, "Lucida Console", monospace;
  --font-size-base: 16px;
  --font-size-large: 1.2em;
  --font-size-xlarge: 2rem;

  /* Spacing */
  --spacing-small: 10px;
  --spacing-medium: 20px;
  --spacing-large: 40px;
  --spacing-xlarge: 50px;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease-in-out;
  --transition-slow: 1s ease-out;

  /* Shadows */
  --shadow-text: 0 0 10px rgba(132, 45, 54, 0.3);

  /* Dimensions */
  --content-width-max: 900px;
  --content-width-medium: 533px;
  --content-width-small: 90px;
}

* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -msbox-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: monospace;
  text-align: center;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  transition: background-color 0.3s ease;
  color: var(--color-text);
  background-color: var(--color-background);
}

[data-theme="dark"] {
  background-color: var(--color-background-dark);
  color: var(--color-text-inverted);
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.theme-btn {
  font-size: large;
  padding: 2rem;
  padding-bottom: 5rem;
  cursor: pointer;
}

.theme-btn:after {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  background-image: url("/bilder/dark.svg");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 500002;
}

.theme-btn:before {
  content: "";
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  opacity: 0.7;
  background-color: var(--color-background);
  transition: background-color 0.3s ease;
  border-radius: 50%;
  z-index: 500001;
}

[data-theme="dark"] .theme-btn:after {
  background-image: url("/bilder/light.svg");
}
[data-theme="dark"] .theme-btn:before {
  background-color: var(--color-background-dark);
}

#theme-btn-fixed {
  position: fixed;
  top: 10px;
  left: 10px;
  opacity: 0; /* Unsichtbar standardmäßig */
  pointer-events: none; /* Keine Interaktion, wenn unsichtbar */
  transition: opacity 0.5s ease-in-out; /* Sanfter Übergang */
  z-index: 50004; /* Über anderen Elementen */
}

#theme-btn-fixed.active {
  opacity: 1; /* Sichtbar */
  pointer-events: auto; /* Interaktion aktivieren */
}

.center,
.tg {
  margin-left: auto;
  margin-right: auto;
}

.centered-header {
  position: fixed;
  top: 45vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  max-width: 500px;
  width: 55%;
  min-width: 300px;
  padding-bottom: env(safe-area-inset-bottom);
  content: url("/einausflug_hires.webp");
}

/*
Rule for kbf flower in dark
[data-theme="dark"] .centered-header {
  content: url("/einausflug_hires_kbf_invert.webp");
}*/

[data-theme="dark"] .centered-header {
  -webkit-filter: invert(1);
  filter: invert(1);
}

.divider {
  width: 533px;
  max-width: 80%;
  margin-top: 50px;
  margin-bottom: 50px;
  opacity: 0.5;
}

.divider-big {
  width: 60%;
  max-width: 600px;
  margin-top: 80px;
  margin-bottom: 80px;
  opacity: 0.5;
}

.divider-small {
  width: 90px;
  margin-top: 30px;
  margin-bottom: 30px;
  opacity: 0.5;
}

.upsidedown {
  transform: rotate(180deg);
  display: inline-block;
  transition: 1s ease-in-out;
}

.upsidedown:hover,
.upsidedown:active {
  transform: rotate(0deg);
  display: inline-block;
  transition: 1s ease-in-out;
}

details {
  padding: 1em;
}

#disco {
  position: fixed;
  top: 0px;
  right: 0px;
  width: 30%;
  max-width: 180px;
  opacity: 0.9;
  z-index: 100000;
}

@keyframes glow {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.filler {
  height: 105vh;
}

a {
  display: block;
}
.inline-link {
  display: inline;
  padding: 0;
}
.no-padding {
  padding: 0;
}

summary,
a {
  color: gray;
  z-index: 1;
  position: relative;
}

.big-link {
  font-size: 1.2em;
}

pre {
  max-width: 900px;
  margin: 0 auto;
  white-space: pre-line;
  word-wrap: break-word;
  text-align: center;
}

p {
  font-weight: 100;
  max-width: 900px;
  margin: 0 auto;
}

.disco-text {
  color: yellow;
  text-shadow: 0 0 15px yellow, 0 0 25px yellow;
  animation: glow 5s linear infinite;
}

h1,
h2,
h3 {
  margin-top: 80px;
  margin-bottom: 60px;
}

h4 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.big {
  font-size: 18px;
}

.impressum {
  padding: 1em;
  margin: 0 auto;
}

.lozad {
  display: block;
  margin: 0 auto;
  z-index: 50000;
  margin-top: 30px;
  margin-bottom: 40px;
  transition: transform 0.9s;
  max-width: 90%;
  position: relative;
}

video {
  position: relative;
  z-index: 50000;
  max-width: 90%;
  padding-top: 30px;
  padding-bottom: 30px;
}

video::-webkit-media-controls-panel {
  background-image: none !important;
}

.lozad:hover {
  transform: scale(1.07);
  transition-delay: 1s;
}

#bird {
  margin-top: 50;
  position: relative;
  animation: floatBubble 15s infinite normal linear;
  animation-delay: 1s;
  animation-fill-mode: both;
  opacity: 0.8;
}

#title-picture {
  padding-top: 20px;
}

@keyframes floatBubble {
  0% {
    left: 40%;
  }
  100% {
    left: -100%;
  }
}

[data-theme="dark"] summary {
  color: lightgray;
}

[data-theme="dark"] a {
  color: lightgray;
}

[data-theme="dark"] .invert {
  -webkit-filter: invert(1);
  filter: invert(1);
}

.explosion {
  position: absolute;
  width: 600px;
  height: 600px;
  pointer-events: none;
}
.explosion .particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pop 1s reverse forwards;
}

@keyframes pop {
  from {
    opacity: 0;
  }
  to {
    top: 50%;
    left: 50%;
    opacity: 1;
  }
}

.snowflake {
  color: #282828;
  font-size: 1.5em;
  font-family: monospace;
  z-index: -1;
  visibility: hidden;
}

@-webkit-keyframes snowflakes-fall {
  0% {
    top: -10%;
  }
  100% {
    top: 100%;
  }
}
@-webkit-keyframes snowflakes-shake {
  0% {
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
  }
  50% {
    -webkit-transform: translateX(80px);
    transform: translateX(80px);
  }
  100% {
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
  }
}
@keyframes snowflakes-fall {
  0% {
    top: -10%;
  }
  100% {
    top: 100%;
  }
}
@keyframes snowflakes-shake {
  0% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(80px);
  }
  100% {
    transform: translateX(0px);
  }
}
.snowflake {
  position: fixed;
  top: -10%;
  z-index: 9999;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
  -webkit-animation-name: snowflakes-fall, snowflakes-shake;
  -webkit-animation-duration: 10s, 3s;
  -webkit-animation-timing-function: linear, ease-in-out;
  -webkit-animation-iteration-count: infinite, infinite;
  -webkit-animation-play-state: running, running;
  animation-name: snowflakes-fall, snowflakes-shake;
  animation-duration: 10s, 3s;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-play-state: running, running;
}
.snowflake:nth-of-type(0) {
  left: 1%;
  -webkit-animation-delay: 0s, 0s;
  animation-delay: 0s, 0s;
}
.snowflake:nth-of-type(1) {
  left: 10%;
  -webkit-animation-delay: 1s, 1s;
  animation-delay: 1s, 1s;
}
.snowflake:nth-of-type(2) {
  left: 20%;
  -webkit-animation-delay: 6s, 0.5s;
  animation-delay: 6s, 0.5s;
}
.snowflake:nth-of-type(3) {
  left: 30%;
  -webkit-animation-delay: 4s, 2s;
  animation-delay: 4s, 2s;
}
.snowflake:nth-of-type(4) {
  left: 40%;
  -webkit-animation-delay: 2s, 2s;
  animation-delay: 2s, 2s;
}
.snowflake:nth-of-type(5) {
  left: 50%;
  -webkit-animation-delay: 8s, 3s;
  animation-delay: 8s, 3s;
}
.snowflake:nth-of-type(6) {
  left: 60%;
  -webkit-animation-delay: 6s, 2s;
  animation-delay: 6s, 2s;
}
.snowflake:nth-of-type(7) {
  left: 70%;
  -webkit-animation-delay: 2.5s, 1s;
  animation-delay: 2.5s, 1s;
}
.snowflake:nth-of-type(8) {
  left: 80%;
  -webkit-animation-delay: 1s, 0s;
  animation-delay: 1s, 0s;
}
.snowflake:nth-of-type(9) {
  left: 90%;
  -webkit-animation-delay: 3s, 1.5s;
  animation-delay: 3s, 1.5s;
}

table {
  text-align: left;
  padding: 10px;
  margin: 2px;
  max-width: 900px;
}

table tr {
  border-bottom: 1px solid;
}
table th,
table td {
  padding: 15px;
  vertical-align: top;
}

.table-border {
  border-collapse: collapse;
}

.table-border td {
  border: 2px solid #282828;
}

[data-theme="dark"] .table-border {
  border: 2px solid whitesmoke;
}
[data-theme="dark"] td {
  border: 2px solid whitesmoke;
}

@media (max-width: 800px) {
  .comlumn-table tr {
    border-bottom: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 40px;
    text-align: center;
  }
  .comlumn-table td {
    padding-top: 35px;
    position: relative;
    width: 50%;
    text-align: center;
  }

  .table_wrapper {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.scroll-button {
  display: block; /* Sicherstellen, dass der Button sichtbar ist */
  position: fixed;
  bottom: 20px; /* Position am unteren Rand */
  left: 50%; /* Zentriert horizontal */
  transform: translateX(-50%); /* Zentriert den Button */
  z-index: 1000; /* Über anderen Elementen */
}

.scroll-button a {
  position: relative;
  display: inline-block;
  width: 40px; /* Breite des Buttons */
  height: 40px; /* Höhe des Buttons */
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease; /* Sanfte Übergänge */
  -webkit-tap-highlight-color: transparent; /* Entfernt Highlight auf Mobilgeräten */
}

.scroll-button a span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px; /* Größe des Pfeils */
  height: 20px;
  margin: -10px 0 0 -10px; /* Zentriert den Pfeil */
  border-left: 2px solid #282828; /* Linke Linie des Pfeils */
  border-bottom: 2px solid #282828; /* Untere Linie des Pfeils */
  transform: rotate(-45deg); /* Dreht den Pfeil */
  box-sizing: border-box;
}

.scroll-button a:hover span::after {
  opacity: 0.7; /* Leicht transparent beim Hover */
}

[data-theme="dark"] .scroll-button a span::after {
  border-left: 2px solid whitesmoke; /* Anpassung für Darkmode */
  border-bottom: 2px solid whitesmoke;
}

ul {
  list-style-position: inside;
  list-style-type: disc;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

#girlande {
  width: 800px;
  max-width: 100%;
  content: url(/bilder/jupeter/girlande.webp);
}

[data-theme="dark"] #girlande {
  content: url(/bilder/jupeter/girlande-dark.webp);
}

.lineup-background {
  margin: auto;
  z-index: -1;
  top: 50%;
  left: 50%;
  background: var(--shadow);
  padding: 2.5vw 0vw;
  background: radial-gradient(ellipse at top, #ffafc2, transparent),
    radial-gradient(ellipse at bottom, #fe8a95, transparent);
  color: black;
  font-weight: bold;
  text-transform: uppercase;
}

.lineup-text {
  text-transform: None;
  color: whitesmoke;
}

.letter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 144px;
  margin: var(--spacing-xlarge) 0;
  perspective: 1000px; /* Add perspective for 3D transforms */
}

.letter {
  font-size: var(--font-size-xlarge);
  font-family: var(--font-family-main);
  opacity: 0;
  transform: translateX(-100%);
  background: var(--color-accent-secondary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  will-change: opacity, transform;
  cursor: pointer;
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  backface-visibility: visible;
}

.letter:nth-child(even) {
  transform: translateX(100%);
}

/* Fly-in animation when scrolled to */
.letter.animate {
  opacity: 1;
  transform: translateX(0);
}

.letter.animate:nth-child(1) {
  transition-delay: 0.2s;
}

.letter.animate:nth-child(2) {
  transition-delay: 0.4s;
}

.letter.animate:nth-child(3) {
  transition-delay: 0.6s;
}

/* Spin animation on click */
@keyframes spin-y {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes spin-x {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(360deg);
  }
}

@keyframes spin-z {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg);
  }
}

.letter.spin-y {
  animation: spin-y 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.letter.spin-x {
  animation: spin-x 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.letter.spin-z {
  animation: spin-z 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.small-letters {
  font-size: 1.4rem;
  transition: all 0.3s ease-in-out;
  padding-top: 55px;
  transform: scale(0.8);
}
