/* AuxTank Booking – Veranstalter-/Presseseite und Hörproben-Player (keine externen Schriften/Dienste).
   Alle Regeln hängen an .atbp und nutzen feste Pixelgrößen, damit das Theme (Elementor u.a.) nichts verbiegt. */
.atbp {
  --atbp-accent: #a3141e;
  --atbp-card: #f6f4f2;
  --atbp-line: rgba(0, 0, 0, .1);
  --atbp-text: #1d1d1f;
  --atbp-muted: #6b6b70;
  --atbp-radius: 12px;
  color: var(--atbp-text);
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.atbp *, .atbp *::before, .atbp *::after { box-sizing: border-box; }
.atbp-dark {
  --atbp-card: #1c1c20;
  --atbp-line: rgba(255, 255, 255, .14);
  --atbp-text: #f2f2f4;
  --atbp-muted: #a3a3ab;
}

/* Theme-Vorgaben neutralisieren */
.atbp .atbp-h, .atbp .atbp-files, .atbp .atbp-file, .atbp .atbp-item, .atbp .atbp-item figcaption, .atbp .atbp-nav {
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.atbp .atbp-files, .atbp .atbp-file { list-style: none; }
.atbp .atbp-file::before, .atbp .atbp-file::marker { content: none; display: none; }
.atbp button.atbp-play, .atbp a.atbp-btn, .atbp a.atbp-tdl, .atbp .atbp-nav a {
  margin: 0; min-height: 0; min-width: 0; height: auto; width: auto; text-transform: none; letter-spacing: normal;
  text-shadow: none; font-family: inherit; line-height: 1.1; text-decoration: none; float: none;
}

/* Sprungleiste: eine Zeile, seitlich wischbar */
.atbp .atbp-nav {
  display: flex; gap: 8px; margin: 0 0 28px; padding: 2px 0 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.atbp .atbp-nav::-webkit-scrollbar { display: none; }
.atbp .atbp-nav a {
  flex: none; display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--atbp-line);
  background: transparent; color: inherit; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.atbp .atbp-nav a:hover, .atbp .atbp-nav a:focus-visible { background: var(--atbp-accent); border-color: var(--atbp-accent); color: #fff; }

/* Bereiche */
.atbp .atbp-sec { margin: 0 0 40px; scroll-margin-top: 90px; }
.atbp .atbp-h {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: inherit;
  font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: .01em; text-transform: uppercase;
  overflow-wrap: anywhere; hyphens: auto;
}
.atbp .atbp-h::before { content: ""; width: 5px; height: 22px; border-radius: 2px; background: var(--atbp-accent); flex: none; }

/* Knöpfe */
.atbp a.atbp-btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 9px 16px; border-radius: 999px; border: 2px solid var(--atbp-accent);
  background: var(--atbp-accent); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: filter .15s, background .15s, color .15s;
}
.atbp a.atbp-btn:hover { filter: brightness(1.12); color: #fff; }
.atbp a.atbp-btn small { font-weight: 500; opacity: .85; font-size: 11px; }
.atbp a.atbp-btn-ghost { background: transparent; color: var(--atbp-accent); }
.atbp a.atbp-btn-ghost:hover { background: var(--atbp-accent); color: #fff; }
.atbp a.atbp-btn-sm { padding: 7px 12px; font-size: 13px; }

/* Dateien */
.atbp .atbp-files { display: grid; gap: 10px; }
.atbp .atbp-file {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--atbp-radius); background: var(--atbp-card);
}
.atbp .atbp-fico {
  width: 44px; height: 52px; border-radius: 6px; display: grid; place-items: center;
  font-weight: 800; font-size: 11px; letter-spacing: .04em; color: #fff; background: #55555c;
  clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%);
}
.atbp .atbp-fico-pdf { background: var(--atbp-accent); }
.atbp .atbp-fico-zip { background: #2f6f9f; }
.atbp .atbp-finfo { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.atbp .atbp-ftitle { font-weight: 700; font-size: 16px; line-height: 1.3; }
.atbp .atbp-fdesc { color: var(--atbp-muted); font-size: 14px; line-height: 1.35; }
.atbp .atbp-fmeta { color: var(--atbp-muted); font-size: 12px; letter-spacing: .03em; }
.atbp .atbp-factions { display: flex; gap: 8px; justify-content: flex-end; }

/* Bilder und Logos */
.atbp .atbp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.atbp .atbp-item { display: flex; flex-direction: column; border-radius: var(--atbp-radius); overflow: hidden; background: var(--atbp-card); min-width: 0; }
.atbp .atbp-thumb { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0d0d0f; }
.atbp .atbp-thumb img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; margin: 0; border: 0; border-radius: 0; box-shadow: none; transition: transform .35s ease; }
.atbp a.atbp-thumb { cursor: zoom-in; }
.atbp a.atbp-thumb:hover img { transform: scale(1.04); }
.atbp .atbp-logos .atbp-thumb { background: #fff repeating-conic-gradient(#f1efed 0 25%, #fff 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; padding: 12%; }
.atbp .atbp-logos .atbp-thumb.atbp-dark { background: #1b1b1d; }
.atbp .atbp-logos .atbp-thumb img { object-fit: contain; }
.atbp .atbp-ext { font-weight: 800; font-size: 22px; color: var(--atbp-accent); }
.atbp .atbp-item figcaption { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; flex: 1; font-size: 14px; }
.atbp .atbp-ititle { font-weight: 700; font-size: 15px; line-height: 1.3; }
.atbp .atbp-credit { color: var(--atbp-muted); font-size: 13px; }
.atbp .atbp-item figcaption .atbp-btn { margin-top: 8px; align-self: flex-start; }

/* Hörproben */
.atbp .atbp-tracks { display: grid; gap: 8px; }
.atbp .atbp-track {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px;
  border-radius: var(--atbp-radius); background: var(--atbp-card); border: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.atbp .atbp-track.is-active { border-color: var(--atbp-accent); box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.atbp button.atbp-play {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--atbp-accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18); transition: transform .12s, filter .15s;
}
.atbp button.atbp-play:hover { filter: brightness(1.12); background: var(--atbp-accent); }
.atbp button.atbp-play:active { transform: scale(.95); }
.atbp button.atbp-play:focus-visible, .atbp .atbp-seek:focus-visible, .atbp a.atbp-tdl:focus-visible { outline: 3px solid var(--atbp-accent); outline-offset: 3px; }
.atbp .atbp-play svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.atbp .atbp-play svg.atbp-i-pause, .atbp .is-playing .atbp-play svg.atbp-i-play { display: none; }
.atbp .is-playing .atbp-play svg.atbp-i-pause { display: block; }
.atbp .atbp-track.is-loading .atbp-play { animation: atbp-pulse 1s ease-in-out infinite; }
@keyframes atbp-pulse { 50% { filter: brightness(1.35); } }
.atbp .atbp-tmain { flex: 1 1 auto; min-width: 0; }
.atbp .atbp-thead { display: flex; align-items: baseline; gap: 8px; }
.atbp .atbp-tno { color: var(--atbp-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.atbp .atbp-ttitle { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atbp .atbp-ttime { color: var(--atbp-muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.atbp .atbp-tdesc { color: var(--atbp-muted); font-size: 13px; line-height: 1.3; }
.atbp a.atbp-tdl {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  color: var(--atbp-muted); background: transparent; transition: background .15s, color .15s;
}
.atbp a.atbp-tdl:hover { background: var(--atbp-accent); color: #fff; }
.atbp .atbp-tdl svg { width: 19px; height: 19px; display: block; }

/* Schieberegler zum Spulen (Theme-Stile für Regler zurücksetzen) */
.atbp input.atbp-seek {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 20px; margin: 4px 0 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; outline-offset: 2px; cursor: pointer; --p: 0%;
  max-width: none; min-width: 0;
}
.atbp input.atbp-seek::-webkit-slider-runnable-track {
  height: 5px; border-radius: 3px; border: 0;
  background: linear-gradient(to right, var(--atbp-accent) var(--p), var(--atbp-line) var(--p));
}
.atbp input.atbp-seek::-moz-range-track { height: 5px; border-radius: 3px; border: 0; background: var(--atbp-line); }
.atbp input.atbp-seek::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--atbp-accent); }
.atbp input.atbp-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5.5px; border-radius: 50%;
  background: #fff; border: 3px solid var(--atbp-accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.atbp input.atbp-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--atbp-accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }

/* Großansicht (liegt direkt im body) */
.atbp-lb {
  position: fixed; inset: 0; z-index: 999999; background: rgba(8, 8, 10, .93);
  display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 4vh 4vw;
  opacity: 0; transition: opacity .2s; font-size: 15px;
}
.atbp-lb.open { opacity: 1; }
.atbp-lb img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.atbp-lb .atbp-lb-cap { color: #eee; margin-top: 12px; font-size: 14px; text-align: center; }
.atbp-lb button {
  position: absolute; border: 0; margin: 0; padding: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
  width: 44px; height: 44px; min-height: 0; border-radius: 50%; font-size: 22px; line-height: 1; display: grid; place-items: center; box-shadow: none;
}
.atbp-lb button:hover { background: rgba(255, 255, 255, .26); }
.atbp-lb .atbp-lb-close { top: 14px; right: 14px; }
.atbp-lb .atbp-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.atbp-lb .atbp-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

.atbp-admin-note { padding: 10px 14px; border-left: 4px solid #d63638; background: #fcf0f1; color: #50575e; font-size: 14px; }

/* Tablet */
@media (max-width: 820px) {
  .atbp .atbp-h { font-size: 23px; }
  .atbp .atbp-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
}
/* Handy: kompakt, Knöpfe nebeneinander, Bilder zweispaltig */
@media (max-width: 600px) {
  .atbp { font-size: 15px; }
  .atbp .atbp-nav { margin-bottom: 20px; gap: 6px; }
  .atbp .atbp-nav a { padding: 6px 12px; font-size: 13px; }
  .atbp .atbp-sec { margin-bottom: 30px; }
  .atbp .atbp-h { font-size: 20px; gap: 8px; margin-bottom: 10px; }
  .atbp .atbp-h::before { height: 18px; width: 4px; }
  .atbp .atbp-file { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; padding: 10px 12px; }
  .atbp .atbp-fico { width: 36px; height: 42px; font-size: 9px; }
  .atbp .atbp-ftitle { font-size: 15px; }
  .atbp .atbp-fdesc { font-size: 13px; }
  .atbp .atbp-factions { grid-column: 1 / -1; justify-content: stretch; margin-top: 6px; }
  .atbp .atbp-factions .atbp-btn { flex: 1 1 0; padding: 8px 10px; font-size: 13px; }
  .atbp .atbp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .atbp .atbp-item figcaption { padding: 8px 10px 10px; }
  .atbp .atbp-ititle { font-size: 13px; }
  .atbp .atbp-credit { font-size: 12px; }
  .atbp .atbp-item figcaption .atbp-btn { align-self: stretch; padding: 7px 8px; font-size: 12px; }
  .atbp .atbp-item figcaption .atbp-btn small { display: none; }
  .atbp .atbp-track { gap: 10px; padding: 9px 10px; }
  .atbp button.atbp-play { width: 40px; height: 40px; }
  .atbp .atbp-tno { display: none; }
  .atbp .atbp-ttitle { font-size: 14px; }
  .atbp a.atbp-tdl { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .atbp *, .atbp-lb { transition: none !important; animation: none !important; }
}
