/* ════════════════════════════════════════════
   TIBERIO Before After Slider
   Style Guide Dezember 2025
════════════════════════════════════════════ */

.tba-wrap {
  --wine:    #46140D;
  --wine-dk: #39120B;
  --gold:    #9E9062;
  --gold-br: #A8844B;
  --gold-lt: #CEC5A5;
  --gold-75: rgba(158,144,98,.75);
  --gold-35: rgba(158,144,98,.35);
  --gold-18: rgba(158,144,98,.18);
  --fp: 'Bagnard', 'Cinzel', Georgia, serif;
  --fs: 'Tenor Sans', Georgia, serif;

  font-family: var(--fs);
  max-width: 100%;
  margin: 0 auto;
  background: var(--wine-dk);
}

/* ── HEADER ── */
.tba-header {
  padding: 32px 40px 28px;
  border-bottom: 1px solid var(--gold-18);
  background: var(--wine);
}
.tba-ey {
  display: block;
  font-family: var(--fs);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(158,144,98,.5);
  margin-bottom: 4px;
}
.tba-title {
  font-family: var(--fp);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin: 0;
  line-height: 1.2;
}

/* ── STAGE ── */
.tba-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  display: block;
  background: #0a0805;
}

/* Beide Bilder */
.tba-before,
.tba-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tba-after { position: relative; }

.tba-before img,
.tba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  filter: saturate(.9) brightness(.92);
}

/* Vorher-Bild oben drüber, wird geclippt */
.tba-before {
  clip-path: inset(0 50% 0 0);
  transition: none;
}

/* ── LABELS ── */
.tba-lbl {
  position: absolute;
  bottom: 20px;
  font-family: var(--fp);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold-lt);
  padding: 8px 18px;
  background: rgba(70,20,13,.72);
  backdrop-filter: blur(4px);
  border: 1px solid var(--gold-35);
  pointer-events: none;
}
.tba-lbl-before { left: 20px; }
.tba-lbl-after  { right: 20px; }

/* ── HANDLE ── */
.tba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}
.tba-line {
  flex: 1;
  width: 1px;
  background: var(--gold-lt);
  opacity: .85;
}
.tba-knob {
  width: 48px;
  height: 48px;
  background: var(--gold);
  border: 2px solid var(--gold-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(70,20,13,.5);
  transition: background .2s;
}
.tba-stage:hover .tba-knob { background: var(--gold-br); }
.tba-arrow {
  font-size: 16px;
  color: var(--wine);
  font-weight: 700;
  line-height: 1;
  font-style: normal;
}

/* ── HINT ── */
.tba-hint {
  text-align: center;
  font-family: var(--fs);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(158,144,98,.45);
  padding: 14px 0 16px;
  background: var(--wine-dk);
  border-top: 1px solid var(--gold-18);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .tba-header { padding: 24px; }
  .tba-lbl    { font-size: 8px; letter-spacing: .28em; padding: 6px 12px; bottom: 12px; }
  .tba-lbl-before { left: 12px; }
  .tba-lbl-after  { right: 12px; }
  .tba-knob   { width: 40px; height: 40px; }
  .tba-arrow  { font-size: 13px; }
}
