/* ================================================================
   AUFNAEHER.DE — UX TOP BAR  v2
   ================================================================ */

:root {
  --auf-tb-yellow:  #f4c400;
  --auf-tb-height:  54px;
}

/* ── Container ─────────────────────────────────────────────────── */
#auf-topbar {
  position: relative;
  z-index: 10001;
  width: 100%;
  background: linear-gradient(90deg, #080808 0%, #0f0f0f 50%, #090909 100%);
  border-bottom: 2px solid var(--auf-tb-yellow);
  box-shadow: 0 3px 24px rgba(0,0,0,.55);
}

.auf-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  height: var(--auf-tb-height);
}

/* ── Left: contact links ─────────────────────────────────────────── */
.auf-topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.auf-topbar__contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .18s;
  white-space: nowrap;
}
.auf-topbar__contact:hover { color: var(--auf-tb-yellow); }
.auf-topbar__contact svg {
  width: 15px;
  height: 15px;
  fill: var(--auf-tb-yellow);
  flex-shrink: 0;
}

.auf-topbar__sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.13);
  flex-shrink: 0;
}

/* ── Center: trust badges ─────────────────────────────────────── */
.auf-topbar__center {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}

.auf-topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.58);
  font-size: 12.5px;
  white-space: nowrap;
  letter-spacing: .01em;
}
.auf-topbar__badge::before {
  content: '\2713';
  color: var(--auf-tb-yellow);
  font-weight: 900;
  font-size: 12px;
}

/* ── Right: buttons ──────────────────────────────────────────────── */
.auf-topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.auf-topbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 38px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s,
              transform .14s, box-shadow .16s;
}
.auf-topbar__btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Account button */
.auf-topbar__btn--account {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
}
.auf-topbar__btn--account svg { fill: rgba(255,255,255,.7); }
.auf-topbar__btn--account:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.32);
  color: #fff;
  transform: translateY(-1px);
}

/* Cart button */
.auf-topbar__btn--cart {
  position: relative;
  color: #111111;
  background: linear-gradient(180deg, #ffe84d 0%, #f4c400 100%);
  border: 1px solid rgba(200,158,0,.5);
  box-shadow: 0 4px 16px rgba(244,196,0,.3),
              inset 0 1px 0 rgba(255,255,255,.45);
}
.auf-topbar__btn--cart svg { fill: #111111; }
.auf-topbar__btn--cart:hover {
  background: linear-gradient(180deg, #ffee66 0%, #f9d200 100%);
  box-shadow: 0 7px 22px rgba(244,196,0,.48),
              inset 0 1px 0 rgba(255,255,255,.55);
  transform: translateY(-1px);
  color: #111111;
}
.auf-topbar__btn--cart:active { transform: none; }

/* Cart badge */
.auf-topbar__cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e02424;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  border: 2px solid var(--auf-tb-yellow);
  box-shadow: 0 2px 8px rgba(224,36,36,.45);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), opacity .18s;
}
.auf-topbar__cart-badge[data-count="0"],
.auf-topbar__cart-badge--empty {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.auf-topbar__cart-badge:not([data-count="0"]) {
  transform: scale(1);
  opacity: 1;
}

@keyframes auf-badge-pop {
  0%   { transform: scale(0.4); }
  65%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.auf-topbar__cart-badge--pop {
  animation: auf-badge-pop .32s cubic-bezier(.34,1.56,.64,1) both;
}

/* ── Logo in Topbar (Unterseiten) ────────────────────────────── */
.auf-topbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity .16s;
}
.auf-topbar__logo:hover { opacity: .85; }
.auf-topbar__logo img {
  height: 44px;
  width: auto;
  display: block;
}

.auf-topbar__sep--after-logo {
  margin: 0 8px;
}

/* ── Unterseiten: kein Schatten, kein Gap zur Navigation ─────── */
body.auf-subpage #auf-topbar {
  box-shadow: none !important;
}
/* Gap zwischen Topbar und Navigationleiste entfernen */
body.auf-subpage .elementor-location-header {
  margin-top: 0 !important;
}
body.auf-subpage .elementor-element-942a783,
body.auf-subpage .elementor-element-942a783 > .elementor-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .auf-topbar__center { display: none; }
}
@media (max-width: 680px) {
  .auf-topbar__contact--mail { display: none; }
  .auf-topbar__sep { display: none; }
  .auf-topbar__btn span:not(.auf-topbar__cart-badge) { display: none; }
  .auf-topbar__btn { padding: 0 12px; height: 36px; }
}
@media (max-width: 400px) {
  #auf-topbar { display: none; }
}
