/* =========================
   STERNENTAROT – LAYOUT/FLIP
   ========================= */

.tarot-wrap { 
margin: 40px;
  width: 85%;
}

.tarot-grid{
  display: flex;
  justify-content: center;
  gap: 20px;
}

.tarot-card{
width: 210px;
  height: auto;
  perspective: 1000px;
  cursor: pointer;
}

.tarot-inner{
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.tarot-card.is-flipped .tarot-inner{
  transform: rotateY(180deg);
}

.tarot-face{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
}

/* Rückseite zuerst sichtbar */
.tarot-back{
  transform: rotateY(0deg);
}

/* Vorderseite ist gedreht, wird beim Flip sichtbar */
.tarot-front{
  transform: rotateY(180deg);
}

/* Bilder sollen die Karte füllen */
.tarot-face img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Lock/Disable (optional, falls du das nutzt) */
.tarot-card.is-locked{
  opacity: 0.55;
  pointer-events: none;
}

.tarot-card.is-disabled{
  opacity: 0.35;
  pointer-events: none;
}

/* =========================
   FÄHIGKEIT – NAME + INFO ICON
   (als Overlay, damit nichts verrutscht)
   ========================= */

.ability-line{
position: absolute;
  left: 10px;
  right: 30px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  top: 190px;
}

.ability-text{
  font-weight: 700;
  line-height: 1.2;
}

.ability-info{
  margin-left: auto;               /* Icon nach rechts */
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  opacity: 0.95;
  color: inherit;
}

.ability-info:focus{
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
  border-radius: 8px;
}

/* =========================
   MODAL
   ========================= */

.tarot-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.tarot-modal.is-open{ display: block; }

.tarot-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.tarot-modal__dialog{
  position: relative;
  max-width: 620px;
  width: calc(100% - 24px);
  margin: 8vh auto 0;
  background: var(--paper);
  color: var(--font);
}

.tarot-modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
}

.tarot-modal__title{
border-bottom: 1px solid var(--golden);
  font-size: 30px;
  font-weight: bold;
  font-family: var(--mainfont);
  text-transform: uppercase;
  color: var(--golden);
  padding: 20px;
  background-image: url(/images/stats_back.png);
  background-position-y: 86%;
  height: 100px;
  display: flex;
  align-items: center;
  padding-left: 60px;
}

.tarot-modal__body{
 font-size: 13px;
  line-height: 170%;
  padding: 30px;
  padding-top: 0px;
  white-space: pre-wrap;
	text-align:justify;
}
