:root {
  --main-h: 274;
  --main-s: 76%;
  --main-l: 26%;

  --background: rgb(232, 228, 233);

  --main-color: hsl(var(--main-h), var(--main-s), var(--main-l));
  --main-color-light: hsl(var(--main-h), var(--main-s), 45%);
  --main-color-dark: hsl(var(--main-h), var(--main-s), 20%);
  --main-color-darkest: hsl(var(--main-h), var(--main-s), 14%);
  --main-color-bright: hsl(var(--main-h), var(--main-s), 88%);

  --highlight-color: gold;
}

/* ========== Global Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overscroll-behavior: none;
  height: 100%;
  background-color: var(--background);
}

body {
  overflow-x: hidden;
  background-color: var(--main-color);
}

.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.animated-list > * {
  margin: 0;
}

body.loaded #loader {
  opacity: 0;
}

/* ========== Loader ========== */
#loader {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--main-color);
  opacity: 1;
  transition: opacity 1000ms ease-in-out;
  z-index: 9999;
}

/* ========== Layout & Sections ========== */

.clip-wrapper {
  overflow: hidden;
  max-width: 100vw;
}

main.interactive section {
  padding: 0 clamp(20px, 5vw, 100px);
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 20px clamp(20px, 5vw, 100px) 10rem;
}

section.auto-height {
  min-height: auto;
}

section.col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "header header"
    "left right"
    "footer footer";
}

div.article {
  z-index: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

div.article.gapped {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

div.article.full-width {
  max-width: 100%;
}

div.article.full-width h3 {
  max-width: 100%;
}

.story-anchor {
  height: 200vh;
  padding-block: 0;
}

.story-anchor p:not(.small) {
  font-size: var(--fs-md);
}

.story-anchor p:last-of-type {
  margin-bottom: 0;
}

div.cta-article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: -200%;
}

div.cta-article h4 span {
  display: block;
  margin-top: 0.75em;
}

div.button-container {
  background-color: var(--main-color);
  border-radius: 100vw;
  margin-block-start: 54px;
  display: flex;
  gap: 2rem;
  padding: 8px;
}

div.button-container button{
  position: relative;
  font-size: var(--fs-md);
  color: white;
  background: none;
  border: none;
  aspect-ratio: 1;
  border-radius: 100vw;
  width: 10rem;
  cursor: pointer;
  border: 5px solid var(--main-color);
  overflow: hidden; 
  margin-block-start: 0;
}

/* Rotating background layer */
div.button-container button::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to right,
    var(--main-color-dark),
    var(--main-color-light)
  );
  z-index: -1;
  animation: rotate-bg 5s linear infinite;
  transform-origin: center;
}

@keyframes rotate-bg {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

div.button-container button:last-of-type::after {
  background-image: linear-gradient(
    to left,
    var(--main-color-dark),
    var(--main-color-light)
  );
  animation: rotate-bg 5s linear infinite;
}

div.button-container button:hover {
  background-color: var(--main-color-dark);
  background-image: none;
  
}

.letter-by-letter .word {
  display: inline-block;
  white-space: nowrap;
}

.letter-by-letter .char {
  display: inline-block;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



.full-screen-figure {
  position: fixed;
  overflow: hidden;
  top: 0;
  width: 100vw;
  height: 100vh;
}

.full-screen-figure details {
  position: absolute;
  top: 100vh;
  top: 100dvh;
  transform: translateY(-100%);
  z-index: 1;
  width: 60ch;
  max-width: 90vw;  
  display: flex;
  align-items: end;
  padding: 15px;
  color: white;
}

.full-screen-figure details div {
  opacity: 1;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 0.35em;
}

.full-screen-figure details summary {
  list-style: none;
}

.full-screen-figure details summary::-webkit-details-marker {
  display: none;
}

.full-screen-figure details summary::marker {
  display: none;
}

.full-screen-figure details svg {
  margin-inline-end: 8px;
  flex-shrink: 0;
}

.full-screen-figure img {
  object-fit: cover;
  width: 100vw;
  height: 100%;
}

.full-viewport-width {
  margin-inline: calc(-1 * clamp(20px, 5vw, 100px));
}

.inline-paragraphs {
  display: inline;
}

.hero-grid {
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  margin-bottom: 3rem;
}

.hero-title {
  justify-self: center;
  align-self: center;
  position: relative;
}
.logo-container {
  font-size: clamp(0.4rem, 1.5vw, 0.7rem);
}

.logo-container .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-40%);
  width: 40vw;
  min-width: 260px;
  max-width: 700px;
}

.hero-scroll-hint {
  text-align: left;
  justify-self: center;
  align-self: center;
  line-height: 1;
}

footer {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 300px 8vw 8vw;
}

footer #wcb.carbonbadge {
  font-family: inherit;
  --b1: black;
  --b2: black;
  align-items: start;
  display: flex;
  flex-direction: column;
}

footer #wcb.carbonbadge * {
  font-family: inherit !important;
  font-size: var(--fs-xs);
}

footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
}

footer .bug-found {
  cursor: pointer;
  position: relative;
  color: inherit;
  max-width: 20ch;
}

footer .bug-found::before {
  content: "⚡";
  color: var(--highlight-color);
  position: absolute;
  right: calc(100% + 0.5rem);
}

footer .bug-found:hover::before {
  animation: flickerAnimation 0.5s forwards;
}

footer .bug-found .arrow {
  transition: margin-left 100ms ease-in-out;
}

footer .bug-found:hover .arrow {
  margin-left: 0.5rem;
}

footer .partner {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 6rem;
  filter: grayscale(1) brightness(0.6) contrast(5);
}

footer .partner img {
  width: auto;
  height: 3.5em;
}

.zde-badge {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
  margin-top: 4rem;
}

.zde-badge > * {
  flex: 1;
}

.zde-badge a {
  padding: 20px;
  border-radius: 8px;
}

.zde-badge a:hover svg {
  scale: 1.1;
}

.zde-badge > :last-of-type a {
  background-color: white;
}

/* ========== Cards ========== */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 16px;
  margin-block-end: 2rem;
  padding-block: 1rem;
  padding-inline: clamp(20px, 5vw, 100px);
  padding-left: 20px !important;
}

.cards h1,
.cards h2,
.cards h3 {
  margin: 0;
  max-width: 100%;
}

.cards h1 {
  font-size: var(--fs-base);
  margin-bottom: 0.5em;
}
.cards h2 {
  font-size: var(--fs-xs);
  font-weight: var(--fw-text);
}

.card:nth-child(1) {
  transform-origin: right 70%;
}
.card:nth-child(3) {
  transform-origin: left 70%;
}
.card:nth-child(odd) {
  transform: scale(0.9);
  rotate: -3deg;
}
.card:nth-child(even) {
  rotate: 3deg;
}

.card {
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(0, 0, 0, 0.03);
  flex: 1 1 300px;
  max-width: 400px;
}

.card-header {
  background-color: whitesmoke;
  aspect-ratio: 3 / 4;
}

.card-header img {
  max-width: 100%;
}

.card-body {
  padding: 20px;
  aspect-ratio: 8 / 3;
}

.card-link {
  position: absolute;
  bottom: 10px;
  right: 10px;
  border-radius: 100vw;
  height: 50px;
  width: 50px;
  color: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 500ms ease-in-out;
  font-size: var(--fs-base);
}

.card:hover .card-link {
  background-color: var(--main-color);
  color: white;
}

/* ========== Hero Section ========== */
.hero {
  text-align: center;
}

.hero .article {
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100dvh;
}

.hero .article > div {
  width: 100%;
}

.hero h1 {
  line-height: 0.8;
}

.hero h1 span {
  display: block;
}

/* ========== Visual Effects (Zoom, SVG) ========== */
.box-container {
  overflow: hidden;
  z-index: -1;
  position: relative;
  display: block;
  padding-bottom: calc(100lvh + (100lvw / 1.25));
}

.box-container figure img {
  will-change: transform;
  width: 100%;
}

.zoom-in-container {
  margin-bottom: -10px;
}

.zoom-out-container {
  margin-bottom: -100vh;
}

.zoom-in {
  z-index: 999999;
  will-change: transform;
  position: absolute;
  top: 100%;
  width: 1100vw;
  transform-origin: bottom center;
  transform: translateX(-50%) translateY(-100%);
}

.zoom-out {
  will-change: transform;
  position: absolute;
  top: 0;
  width: 1100vw;
  transform-origin: top center;
  transform: translateX(-50%) translateY(0);
}

.texture-box {
  display: block;
  left: 50%;
  min-width: 100vw;
}

/* ========== Utility & Helper ========== */
.sticky {
  position: sticky;
  top: 0;
}

.sticky-center {
  top: 50%;
  transform: translateY(-50%);
}

.img-container {
  width: fit-content;
  position: relative;
  background: var(--main-color);
  padding-top: 20px;
}

.img-container img,
.img-container #map-container {
  position: absolute;
  max-width: 100%;
  inset: 0;
}

.img-container #map-container {
  display: flex;
}

.img-container svg {
  max-width: 100%;
}

.is-in-front {
  z-index: 100 !important;
}

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

/* ========== Progress Bar ========== */
.progress-bar-wrapper {
  z-index: 1000;
  position: fixed;
  top: 0;
  background-color: white;
  width: 100%;
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  border: 3px solid var white;
}

.progress-bar {
  height: 4px;
    background: linear-gradient(
    to right,
    var(--main-color) 0%,
    var(--main-color) 90%,
    transparent 100%
  );
  width: 0%;
}

/* ========== Scroll Hint ========== */
.scroll-hint {
  pointer-events: none;
  z-index: 200;
  position: fixed;
  bottom: 5px;
  font-size: 0.7em;
  letter-spacing: 0.15em;
  font-weight: 350;
  text-align: center;
  width: 100%;
  color: white;
  display: none;
  opacity: 0;
}

.scroll-hint.small {
  display: flex !important;
  flex-direction: column;
  gap: 0.4em;
  align-items: center;
  margin-bottom: 8vh;
}

.scroll-indicator {
  position: relative;
  overflow: hidden;
  display: inline-block;
  flex-shrink: 0;
  height: 18px;
  width: 24px;
  border-radius: 2px;
  border: 1px solid white;
}

.scroll-indicator i {
  position: absolute;
  background-color: white;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 3px;
  border-radius: 2px;
  animation: bar 3s infinite;
}

@media (orientation: portrait) {
  .scroll-indicator {
    height: 1.8em;
    width: 1.2em;
  }
}

/* ========== Misc. Elements ========== */

.address-grid {
  display: grid;
  gap: 2rem 4rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-block-start: 4rem;
}

.address-grid address {
  display: flex;
  flex-direction: column;
}

.address-grid address p, 
.address-grid address a {
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.address-grid address a {
  margin-top: auto;
}

.comma-list {
  text-align: center;
  line-height: 1.1;
}

.comma-list li {
  display: inline;
  color: #1f0534;
  font-weight: bold;
}

.comma-list li::after {
  content: ", ";
  color: #1f0534;
}

.comma-list li:last-child::after {
  content: "";
}

.comma-list li.participating {
  color: white;
}

.dark {
  background: var(--main-color);
  color: white;
  margin-bottom: 0;
}

.dark.has-shadow {
  background-color: var(--main-color-darkest);
  -webkit-box-shadow: 0vh -100vh 80vh 80vh var(--main-color-darkest);
  box-shadow: 0vh -100vh 80vh 80vh var(--main-color-darkest);
}

.links {
  display: flex;
  flex-direction: column;
}

.links a.link-arrow {
  border-bottom: 1px solid white;
  padding: 0.5em 1em 0.5em 0;
}

.links a.link-arrow:first-of-type {
  border-top: 1px solid white;
}

a.link-arrow {
  position: relative;
  display: inline-block;
}

a.link-arrow:after {
  top: 0;
  padding-left: 0.4em;
  left: 100%;
  content: "→";
  transition: padding-left 0.3s ease-in-out;
}

a:hover.link-arrow:after {
  padding-left: 0.8em;
}

.hint {
  position: relative;
  display: flex;
  gap: 0.6em;
  align-items: center;
  background-color: var(--main-color-dark);
  color: white;
  padding: 0.5em 1em;
  border-radius: 10px;
  font-size: var(--fs-xs);
}

/* ========== Buttons & Forms ========== */
button,
a[type="button"],
select {
  cursor: pointer;
  display: block;
  width: fit-content;
  padding: 0.5em 1em;
  border-radius: 10px;
  background-color: white;
  font-size: var(--fs-base);
  color: var(--main-color);
  font-weight: var(--fw-h6-base);
  border: none;
  margin-inline: auto;
  margin-block-start: 3rem;
}

select {
  margin-block-start: 0;
}

button:hover,
a[type="button"]:hover {
  color: var(--main-color-light);
  background-color: silver;
}

.copyright {
  text-indent: -1.1em;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox {
  display: flex;
  align-items: center;
}

input[type="checkbox"] {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid white;
  border-radius: 4px;
  background-color: transparent;
  display: inline-block;
  position: relative;
  margin-right: 0.5rem;
  cursor: pointer;
}

input[type="checkbox"]:checked,
input[type="checkbox"]:hover {
  background-color: var(--main-color-light);
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.5rem;
  width: 0.45rem;
  height: 0.9rem;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  box-sizing: content-box;
}

input,
textarea {
  display: block;
  border: 1px solid white;
  background-color: transparent;
  font-size: var(--fs-base);
  color: white;
  padding: 0.5em;
  width: 100%;
}

label {
  display: block;
  font-size: var(--fs-base);
  margin-block: 0.3em;
}

input:focus,
textarea:focus,
button:focus,
select:focus,
a:focus {
  outline: 2px solid var(--highlight-color);
  outline-offset: 2px;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 1rem;
  column-gap: 1rem;
}

form .span-all {
  grid-column: 1 / -1;
}

#audioButton {
  z-index: 1000;
  position: fixed;
  bottom: 5px;
  right: 5px;
  background-color: transparent;
  width: 50px;
  height: 50px;
  color: white;
  padding: 0;
  border-radius: none;
}

button ~ p.small,
.hint ~ p.small {
  margin-block-start: 0.5rem;
}

button.left-align,
a[type="button"].left-align {
  margin-inline: 0;
}

/* ========== Accordion ========== */
.accordion {
  margin: 0;
  padding: 0;
  border-top: 1px solid white;
}

.accordion h3 {
  margin: 0;
  padding: 0;
}

.accordion-trigger {
  cursor: pointer;
  background-color: transparent;
  border-bottom: 1px solid white;
  color: white;
  border-radius: 0;
  display: block;
  position: relative;
  text-align: left;
  width: 100%;
  outline: none;
  margin: 0;
}

.accordion-trigger:focus,
.accordion-trigger:hover {
  color: var(--main-color-bright);
  background-color: transparent;
} 

.accordion-trigger:focus {
  outline: 4px solid transparent;
}

.accordion-trigger {
  padding-inline: 0;
}

.accordion-trigger[aria-expanded="true"] {
  border-bottom: 0;
}

.accordion button::-moz-focus-inner {
  border: 0;
}

.accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
  outline: none;
}

.accordion-icon {
  display: block;
  width: 1em;
  height: 1em;
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background-color: white;
}

.accordion-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  transform: translateY(-50%);
}

.accordion-icon::after {
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  transform: translateX(-50%);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(-135deg);
}

.accordion-panel {
  margin: 0;
  padding: 1em 0 5em;
  border-bottom: 1px solid white;
}

.accordion-trigger[aria-expanded="true"] ~ .accordion-panel {
}

/* For Edge bug https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/4806035/ */
.accordion-panel[hidden] {
  display: none;
  border-bottom-style: none;
}

/* ========== Events ========== */
  .agenda {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .event {
    padding: 1rem 1.25rem;
  }

  .event-date {
    margin-bottom: 0.25rem;
  }

  .event-time {
    margin-bottom: 0.75rem;
  }

  .event-title {
    margin-bottom: 0.25rem;
  }

  .event-location {
    margin-bottom: 0.5rem;
  }

  .event-description {
    hyphens: auto;
  }

  .agenda label {
    font-size: var(--fs-sm);
    color: var(--main-color-bright);
  }

  .agenda p {
    margin-bottom: 0.75em;
  }

  /* 🧱 Zwei Spalten bei genug Platz */
  @media (min-width: 700px) {
    .agenda {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* ========== Menu ========== */
  .menu {
    pointer-events: none;
    z-index: 1000;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .menu__nav {
    pointer-events: all;
    position: absolute;
    top: 0;
    right: calc(-100% - 200px );
    bottom: 0;
    background-color: var(--background);
    transition: all 300ms ease-in-out;
  }

  .menu__nav--visible {
    right: 0;
  }

  .menu__nav-wrapper {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    justify-content: end;
    height: 100%;
    width: fit-content;
    margin-left: 100px;
    margin-right: 20px;
    padding-bottom: 30px;
  }


  .menu__toggle button {
    pointer-events: all;
    position: absolute;
    z-index: 10000;
    right: 20px;
    top: 20px;
    border-radius: 50vw;
    cursor: pointer;
    margin-left: auto;
    margin-top: 0;
  }

  .menu__nav a[type="button"] {
    margin-top: 4rem;
  }

  .menu__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .menu__nav-link {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
  }

  .menu__nav-list .menu__nav-link {
    font-size: var(--fs-lg);
  }

  .menu__nav--secondary .menu__nav-list {
    display: flex;
    gap: 40px;
  }

  .menu__nav--secondary .menu__nav-list .menu__nav-link {
    font-size: var(--fs-sm);
  }

/* ========== Animations ========== */
@keyframes bar {
  0% {
    top: calc(100% + 4px);
  }
  100% {
    top: -4px;
  }
}

@keyframes flickerAnimation {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  75% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  section.dark {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "left"
      "right"
      "footer";
  }
}

@media (orientation: portrait) {
  .zoom-out-container {
    margin-bottom: -25vh;
  }
  .text-center-mobile {
    text-align: center;
  }
}

@media (max-width: 1080px) {
  .cards {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: start;
    scroll-snap-type: x mandatory;
    scroll-padding: 2rem;
    -webkit-overflow-scrolling: touch;
  }

  .card {
    scroll-snap-align: center;
    min-width: 300px;
    max-width: 80%;
  }
}

@media (hover: none) and (pointer: coarse) {
  button:hover {
    background-color: white; 
  }
}