:root {
  --bg: #dce3de;
  --text: #000000;
  --pink: #e94b8a;
  --mint: #b8d1bf;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

/* VIDEO */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(220, 227, 222, 0.62);
  z-index: 1;
}

/* INDEX */

.index-page {
  min-height: 100vh;
  overflow: hidden;
}

.index-wrap {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tile-scene {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
}

.tile-scene::before {
  content: "";
  position: absolute;
  bottom: 18px;
  width: 170px;
  height: 36px;
  background: rgba(0, 0, 0, 0.18);
  filter: blur(16px);
  border-radius: 50%;
  animation: shadowPulse 6s ease-in-out infinite;
}

.rotating-tile {
  position: relative;
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  transform-style: preserve-3d;
  animation: fake3dSpin 10s ease-in-out infinite;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.10));
}

.tile-scene:hover .rotating-tile {
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.15));
}

.index-legal {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(220, 227, 222, 0.82);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.index-link {
  color: var(--text);
  font-size: 1rem;
  text-decoration: underline;
  display: inline-block;
}

/* HOME */

.site {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 48px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  margin: 0 0 36px 0;
  color: var(--pink);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.title span {
  display: block;
}

.title span:first-child,
.title span:last-child {
  font-size: clamp(56px, 9vw, 112px);
}

.intro {
  margin: 0 auto 36px auto;
}

.poem {
  max-width: 900px;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.48;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 20px 34px;
  border-radius: 999px;
  background-color: var(--pink);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.92;
}

/* FOOTER / LEGAL LINKS */

.page-footer,
.map-footer {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  padding-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.page-imprint {
  color: var(--text);
  font-size: 1rem;
  text-decoration: underline;
  display: inline-block;
}

.footer-sep {
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
}

/* IMPRESSUM / DATENSCHUTZ PAGE */

.impressum-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 48px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.impressum-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(220, 227, 222, 0.88);
  padding: 36px 32px;
  border-radius: 28px;
}

.impressum-title {
  margin: 0 0 28px 0;
  color: var(--pink);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.impressum-content {
  font-size: 1.1rem;
  line-height: 1.65;
}

.impressum-content h2 {
  margin: 28px 0 10px 0;
  font-size: 1.2rem;
}

.impressum-content p {
  margin: 0 0 16px 0;
}

.impressum-nav {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 22px;
  border-radius: 999px;
  background-color: var(--pink);
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}

/* ANIMATIONEN */

@keyframes fake3dSpin {
  0% {
    transform: rotate(0deg) rotateX(10deg) rotateY(-10deg) translateY(0px);
  }
  25% {
    transform: rotate(90deg) rotateX(8deg) rotateY(12deg) translateY(-4px);
  }
  50% {
    transform: rotate(180deg) rotateX(11deg) rotateY(-8deg) translateY(0px);
  }
  75% {
    transform: rotate(270deg) rotateX(7deg) rotateY(10deg) translateY(-5px);
  }
  100% {
    transform: rotate(360deg) rotateX(10deg) rotateY(-10deg) translateY(0px);
  }
}

@keyframes shadowPulse {
  0% {
    transform: scale(1);
    opacity: 0.18;
  }
  50% {
    transform: scale(0.92);
    opacity: 0.12;
  }
  100% {
    transform: scale(1);
    opacity: 0.18;
  }
}

/* TABLET */

@media (max-width: 900px) {
  .site {
    padding: 36px 20px 28px;
    justify-content: flex-start;
  }

  .title {
    margin-bottom: 26px;
  }

  .poem {
    font-size: clamp(18px, 4.5vw, 24px);
    line-height: 1.55;
    max-width: 100%;
  }

  .button {
    min-width: 190px;
    padding: 18px 28px;
    font-size: 1.125rem;
  }

  .tile-scene {
    width: 220px;
    height: 220px;
  }

  .rotating-tile {
    width: 150px;
    height: 150px;
  }

  .tile-scene::before {
    width: 140px;
    height: 30px;
  }

  .impressum-page {
    padding: 36px 20px 28px;
    justify-content: flex-start;
  }

  .impressum-wrap {
    padding: 28px 24px;
  }

  .impressum-content {
    font-size: 1.02rem;
  }
}

/* MOBILE */

@media (max-width: 560px) {
.bg-video {
  display: block;
}

.video-overlay {
  background: rgba(220, 227, 222, 0.78);
}

.site {
  padding: 28px 18px 110px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  margin: 0 0 22px 0;
  line-height: 0.9;
  text-align: center;
}

.title span:first-child,
.title span:last-child {
  font-size: clamp(38px, 11vw, 56px);
}

.intro {
  margin: 0 auto 38px auto;
  width: 100%;
}

.poem {
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.52;
  text-align: center;
  margin: 0 auto;
}

.button {
  width: 100%;
  max-width: 240px;
  font-size: 1rem;
  padding: 16px 22px;
  margin: 22px auto;
}

.page-footer {
  margin-top: 38px;
  padding-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.page-imprint,
.footer-sep {
  font-size: 0.95rem;
}

  .index-legal {
    bottom: 12px;
    gap: 12px;
    padding: 7px 12px;
  }

  .index-link {
    font-size: 0.95rem;
  }

  .impressum-page {
    padding: 24px 18px 24px;
    justify-content: flex-start;
  }

  .impressum-wrap {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .impressum-title {
    margin-bottom: 20px;
    font-size: clamp(34px, 11vw, 52px);
  }

  .impressum-content {
    font-size: 1rem;
    line-height: 1.6;
  }

  .impressum-content h2 {
    font-size: 1.08rem;
  }

  .back-link {
    min-width: 160px;
    font-size: 0.95rem;
  }
}