/* Grundlayout */
.akl-wrap { position: relative; color: #fff; }
.akl-image-wrap { position: relative; }
.akl-hotspots { position: absolute; inset: 0; }

/* Hotspot-Buttons: dezenter Rahmen + Hover */
.akl-hotspot {
  position: absolute;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  outline: none;
}

.akl-hotspot:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
}

.akl-hotspot:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

/* Optional: kleine Türchen-Nummer nur bei Hover/Focus */
.akl-hotspot::after {
  content: attr(data-door);
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 12px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}

.akl-hotspot:hover::after,
.akl-hotspot:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* Modal (dark-friendly) */
.akl-modal[hidden] { display: none !important; }

.akl-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.70);
}

.akl-modal__box {
  width: min(760px, 96vw);
  max-height: min(84vh, 900px);
  overflow: auto;
  background: #111;
  color: #fff;
  border: 1px solid #2b2b2b;
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
  position: relative;
}

.akl-modal__close {
  position: sticky;
  top: 0;
  float: right;
  border: 1px solid #2b2b2b;
  background: #151515;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.akl-modal-open { overflow: hidden; }

.akl-door-title { margin: 0 0 8px; }
.akl-muted { color: rgba(255,255,255,0.75); }

/* Badges */
.akl-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.akl-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: #fff;
}

/* Sponsorenliste: Karten */
.akl-sponsor {
  background: #0f0f0f;
  border: 1px solid #2b2b2b;
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
}

.akl-sponsor h2 { margin-top: 0; }

/* Losnummern-Tabelle */
.akl-table {
  width: 100%;
  border-collapse: separate;
  background: #0f0f0f;
  border: 1px solid #2b2b2b;
  border-radius: 14px;
  border-spacing: 0;
  overflow: hidden;
}

.akl-table th, .akl-table td {
  border-bottom: 1px solid #262626;
  padding: 10px 10px;
  text-align: left;
  color: #fff;
}

.akl-table thead th {
  position: sticky;
  top: var(--akl-sticky-top, 0px);
  z-index: 5;
  background: #151515;
  box-shadow: 0 1px 0 #262626; /* trennt Header vom Body */
}

.akl-table tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* Suche */
.akl-search {
  display: grid;
  gap: 8px;
  margin: 14px 0 12px;
}

.akl-search__label {
  font-weight: 600;
  color: #fff;
}

.akl-search__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #2b2b2b;
  background: #0f0f0f;
  color: #fff;
}

.akl-search__input::placeholder { color: rgba(255,255,255,0.45); }

.akl-search__meta {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}

/* Sponsoren-Zellen */
.akl-cell-sponsor { vertical-align: top; }
.akl-cell-address { vertical-align: top; white-space: normal; }

.akl-sponsor-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.akl-sponsor-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.akl-prize-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.akl-prize-list li { margin: 10px 0; }

/* Modal: Sponsor-Logo größer & nicht quadratisch */
.akl-sponsor-logo--modal img {
  width: auto !important;
  height: auto !important;
  max-width: 220px;
  max-height: 90px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  padding: 6px;
}

/* Sponsor-Header im Modal etwas luftiger */
.akl-sponsor-head--modal {
  margin: 14px 0 8px;
  align-items: center;
  gap: 14px;
}

/* Wenn im Frontend eingeloggt: WP Admin-Bar Offset */
body.admin-bar { --akl-sticky-top: 32px; }
@media (max-width: 782px) {
  body.admin-bar { --akl-sticky-top: 46px; }
}
