@font-face {
  font-family: "Typewriter";
  src: url("./Typewriter.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  line-height: normal;
}

@font-face {
    font-family: "Typewriter2";
    src: url("./Typewriter2.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    line-height: normal;
}

@font-face {
    font-family: "Typewriter-Bold";
    src: url("./Typewriter-Bold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    line-height: normal;
}

body {
  background-color: #dfddd1;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.inner-wrapper {
    width: 600px;
    margin: 0 auto;
    padding: 40px;
    font-family: "Typewriter";
    font-size: 35px;
    position: relative;
    z-index: 2;
}

img {
    height: 300px;
    float: left;
    
}

.titelbereich{
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding-top:70px;
    background:
        radial-gradient(circle at center,
            rgba(245,242,229,.95) 0%,
            rgba(245,242,229,.8) 35%,
            rgba(245,242,229,0) 65%),
        linear-gradient(
            to bottom,
            #5b5b44 0%,
            #8a8871 30%,
            #d7d5c5 70%,
            #dfddd1 100%
        );
}

.ring-runen {
    position: absolute;
    width: 75vmin;
    height: 75vmin;
    left: 50%;
    top: 43%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    opacity: 0.08;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

.textblock-1 {
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    font-family: "Typewriter"; 
    color: #52563b; 
    font-size: 15px;
}

.textblock-1-2 {
    margin: 0 auto;
    margin-top: 0px;
    padding: 0 40px;
    text-align: center;
    font-family: "Typewriter-Bold";
    color: #52563b;
}

.textblock-2 {
    max-width: 110ch;
    margin: 0 auto;
    padding: 0 40px;
    hyphens: auto;
    text-align: justify;
    font-family: "Typewriter2";
}

.zt-2 {
    margin: 0 auto;
    margin-top: 70px;
    padding: 0 40px;
    text-align: center;
    font-family: "Typewriter2";
    color: #52563b;
}


.swiper {
    width: 100%;
    max-width: 600px;
    height: 500px;
    margin-top: -40px;
    --swiper-theme-color: #52563b; 
}

.swiper-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    font-family: "Typewriter";
}

.swiper-slide figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 0;
    width: 100%
}

.swiper-slide img {
    width: 300px;
    max-width: 70%;
    height: auto;
    display: block;
}

.swiper-slide figcaption {
    text-align: center;
}

.swiper-slide p {
    margin: 0;
    margin-top: -40px;
    text-align: center;
}

.zt-1 {
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    font-family: "Typewriter2";
    color: #52563b;
}

.lausch-animation {
  width: 100vw;
  height: 100px;
  background-color: #52563b;
  border: var(--rahmen);
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

#lauschen figure {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.button-vollbild {
    display: block;
    margin: 20px auto;
    font-family: "Typewriter";
    font-size: 1rem;
    align-items: center;
    height: 48px;
    border-radius: 0.4rem;
    font-weight: 600;
    padding: 0 1.2rem;
    color: whitesmoke;
    border: none;
    cursor: pointer;
    box-shadow: 0 0.5rem 1rem rgba(143, 142, 142, 0.15) !important;
    background: #52563b;
}

@keyframes lauschen {
  0% { background-color: #0c0c08; }
  10% { background-color: #181911; }
  20% { background-color: #232519; }
  30% { background-color: #2f3122; }
  40% { background-color: #3b3e2a; }
  50% { background-color: #52563b; }
  60% { background-color: #474a33; }
  70% { background-color: #3b3e2a; }
  80% { background-color: #2f3122; }
  90% { background-color: #232519; }
  100% { background-color: #181911; }
}

.lausch-animation.is-playing {
  animation: lauschen 10s infinite;
}

.lausch-animation.is-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
}

.match-section {
  position: relative;
  height: 100vh;
  margin-top: 80px;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  overflow: hidden;
  touch-action: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mittelerde-karte{
    position:absolute;
    inset:0;
    background:url("mittelerede.webp") center/cover no-repeat;
    opacity:0;
    z-index:0;
    transition:opacity 2s ease;
}

.scene{
    position:relative;
    z-index:10;
}

#instruction{
    z-index:20;
}

.match-section.lit .mittelerde-karte{
    opacity:1;
    filter:
        brightness(0.8)
        sepia(0.3)
        contrast(1.15);
}

.match-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at center,
      transparent 0%,
      rgba(0,0,0,0.4) 20%,
      rgba(0,0,0,0.9) 70%,
      rgba(0,0,0,1) 100%
    );
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 2;
}

body.match-lit::after {
  opacity: 1;
}

.match-section.lit::before {
  opacity: 1;
}

.match-section.lit {
  color: rgba(255, 255, 255, 0.8);
}

#instruction {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.5s ease;
  text-align: center;
}

.match-section.lit #instruction {
  opacity: 0;
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.match {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
  cursor: crosshair;
  z-index: 10;
}

.match-head {
  width: 32px;
  height: 48px;
  background: linear-gradient(135deg, #a31515, #5e0b0b);
  border-radius: 40% 40% 30% 30%;
  margin-bottom: -10px;
  z-index: 2;
  box-shadow:
    inset -3px -3px 6px rgba(0, 0, 0, 0.4),
    inset 3px 3px 6px rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.match-section.lit .match-head,
.match-section.extinguished .match-head {
  background: linear-gradient(135deg, #111, #000);
  box-shadow:
    inset -3px -3px 6px rgba(0, 0, 0, 0.8),
    inset 2px 2px 4px rgba(255, 255, 255, 0.05);
}

.match-stick {
  width: 18px;
  height: 250px;
  background: linear-gradient(90deg, #d2a679, #e6c299 30%, #b88654 80%, #8c6239);
  border-radius: 2px 2px 8px 8px;
  z-index: 1;
  box-shadow:
    inset -2px 0 5px rgba(0, 0, 0, 0.2),
    5px 5px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.match-stick::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #111 0%, #333 70%, transparent 100%);
  transition: height 0s;
}

.match-section.lit .match-stick::after {
  height: 60%;
  transition: height 15s linear;
}

.match-section.extinguished .match-stick::after {
  height: 60%;
  transition: none;
}

.flame-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 150px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.2s ease, transform 0s;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.match-section.lit .flame-container {
  opacity: 1;
  transform: translateX(-50%) translateY(140px);
  transition: opacity 0.2s ease, transform 15s linear;
}

.flame {
  width: 60px;
  height: 120px;
  background: radial-gradient(ellipse at bottom, #fff 5%, #ffeb99 20%, #ff9900 50%, #ff3300 80%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  box-shadow: 0 -10px 40px #ff3300, 0 0 80px #ff9900;
  animation: flicker 0.1s infinite alternate, sway 3s ease-in-out infinite alternate;
  transform-origin: bottom center;
  filter: blur(2px);
}

@keyframes flicker {
  0% { transform: scaleX(0.98) scaleY(1.02); opacity: 0.9; }
  100% { transform: scaleX(1.02) scaleY(0.98); opacity: 1; }
}

@keyframes sway {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

.sparkles {
  position: absolute;
  bottom: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.match-section.lit .sparkles {
  animation: explode 0.5s ease-out forwards;
}

@keyframes explode {
  0% { box-shadow: 0 0 0 #fff, 0 0 0 #ff9900, 0 0 0 #ff3300; }
  50% { box-shadow: -20px -30px 10px #ff9900, 30px -40px 15px #ff3300, -10px -60px 5px #fff; }
  100% { box-shadow: -40px -60px 20px transparent, 50px -80px 30px transparent, -20px -100px 10px transparent; }
}

#smoke-container {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  pointer-events: none;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.smoke {
  position: absolute;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(180, 180, 180, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0;
}

.match-section.extinguished .smoke-1 { animation: smokeRise 2.5s ease-out forwards; }
.match-section.extinguished .smoke-2 { animation: smokeRise 3s ease-out 0.3s forwards; }
.match-section.extinguished .smoke-3 { animation: smokeRise 3.5s ease-out 0.6s forwards; }

@keyframes smokeRise {
  0% { transform: translateY(0) scale(1) translateX(0); opacity: 0.8; }
  50% { transform: translateY(-100px) scale(2.5) translateX(-20px); opacity: 0.5; }
  100% { transform: translateY(-250px) scale(4) translateX(20px); opacity: 0; }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
  z-index: 9998;
}

.footer {
  width: 200px;
  text-align: center;
  margin: 80px auto;
  padding: 40px;
  font-size: 10px;
  font-family: "Typewriter";
}