/* GROßER TITEL */
.keyhole-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1;
}

.keyhole-container.hide {
  opacity: 0;
  pointer-events: none;
	transition: opacity 0.5s ease; }

.header-placeholder {
  height: 120px; /* = .keyhole-container */
  transition: height 0.3s ease;
}

.header-placeholder.shrink {
  height: 0;
}

.keyhole-link {
  font-size: var(--megatxt);
  font-family: var(--akzenttext);
  color: var(--akzent-dkl);
  text-decoration: none;
  text-shadow: 3px 2px 1px var(--tbl-main-tr);
  transform: scale(1.05);
  opacity: 0.7;
  filter: blur(2px);
  transition: transform 0.8s ease, opacity 0.8s ease, filter 0.8s ease;
}

.keyhole-container.in-view .keyhole-link {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
}

.header-sticky {
  position: fixed;
  top: 15px;
  right: 20px;
  background-color: transparent;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-align: right;
}

.header-sticky.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.sticky-link {
  font-size: var(--txtxxl);
  font-family: var(--akzenttext);
  color: var(--akzent-flash2);
  text-decoration: none;
  text-shadow: 3px 2px 0px var(--tbl-main-tr);
  margin-bottom: 2px;
}

.sticky-subline {
  font-size: var(--txtxxsmall);
  color: var(--akzent-hell);
  font-family: var(--fliesstext);
}
 
/* TAROT */
.tarot-menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  position: sticky; /* sticky statt relative */
  top: 20px;
  transition: all 0.5s ease;
  z-index: 10;
}

/* Zustand Sidebar */
.tarot-menu.shrink-left {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  width: auto;
  padding: 0;
  margin-right: 20px;
  margin-left: auto; 
  transform: scale(0.9) translateY(10px);
  background: none;
  position: fixed;
  top: 50px;
  right: 20px;
}

.tarot-card {
  display: block;
  width: 130px;
  height: 221px;
  perspective: 1000px;
  text-decoration: none;
  transition: all 0.4s ease;
}

.tarot-card .card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.tarot-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 5px;
  box-shadow: 0 0 5px var(--akzent-dkl);
  background: var(--tbl-main-tr2);
}

.card-front {
  background-position: center;
	  background-size: cover;
}

.card-back {
  background-color: var(--akzent-dkl);
  color: var(--akzent-hell);
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--akzenttext);
  font-size: var(--txtl);
}

/* Zustand: Sidebar verkleinert */
.tarot-menu.shrink-left .tarot-card {
  width: 60px;
  height: 60px;
  perspective: none;
  overflow: hidden;
}

.tarot-menu.shrink-left .card-inner {
  transform: none !important;
}

.tarot-menu.shrink-left .card-back {
  display: none;
}

.tarot-menu.shrink-left .card-front {
  transform: none !important;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto;
}

/* einzelne Kartenhintergründe */
.card-front.blackhole { background-image: url(../../../images/wisteria/card1.png); }
.card-front.party     { background-image: url(../../../images/wisteria/card2.png); }
.card-front.coffee    { background-image: url(../../../images/wisteria/card3.png); }
.card-front.lovers    { background-image: url(../../../images/wisteria/card4.png); }
.card-front.potion    { background-image: url(../../../images/wisteria/card5.png); }
.card-front.sun       { background-image: url(../../../images/wisteria/card6.png); }

.menu-left {
  position: fixed;
  top: 25px;
  left: 20px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-left .menu-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background-color: var(--tbl-main-tr2);
  border-radius: 5px;
  color: var(--akzent-flash2);
  font-size: var(--txtm); /* typo korrigiert: kein --textl */
  transition: all 0.3s ease;
  text-decoration: none;
}

.menu-left .menu-icon:hover {
  color: var(--akzent-flash);
  background-color: var(--tbl-main-tr);
  transform: scale(1.05);
}

.menu-icon.has-badge {
  position: relative;
}

.menu-icon.has-badge::after {
  content: attr(data-badge);
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 10px;
  height: 10px;
  padding: 2px;
  background: var(--akzent-red);
  font-size: var(--xxxsmall);
  font-family: var(--fliesstext);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  box-shadow: 0 0 1px var(--akzent-dkl);
}