/* =========================
   GLOBAL RESET + MOBILE FIX
========================= */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100%;
  font-family: Arial, sans-serif;
  font-size: 24px;
}

body {
  padding-bottom: env(safe-area-inset-bottom);
}

/* =========================
   LAUFSCHRIFT / TITEL
========================= */
.title {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  line-height: 30px;
  font-size: 10px;
  background: black;
  color: orange;
  text-align: center;
  z-index: 999999999;
  pointer-events: none;
  overflow: hidden;
}

.ticker-text {
  font-size: 9px;
  line-height: 30px;
  padding-right: 150px;
}

/* =========================
   STARTSEITE – VERSION B
========================= */

.container {
  height: calc(var(--vh, 1vh) * 100 - 30px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.brand-box {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* XRAY oben */
.xray-bg {
  transform: translateY(-12%);
}

/* KYOSHO unten */
.kyosho-bg {
  transform: translateY(5%);
}

/* Logos */
.brand-logo {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  z-index: 2;
}

/* XRAY Logo */
.brand-box:first-child .brand-logo {
  top: 28%;
}

/* KYOSHO Logo */
.kyosho-logo {
  top: 34%;
}

/* =========================
   MODELLSEITEN
========================= */
.model-bg-xray {
  height: 100vh;
  background: url('../03_images/XRayA.jpg') center / cover no-repeat;
}

.model-bg-kyosho {
  height: 100vh;
  background: url('../03_images/KyoshoA.jpg') center / cover no-repeat;
  position: relative;
}

.model-bg-kyosho::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.25);
}

.model-container {
  position: absolute;
  top: 110px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}

.model-btn {
  background: rgba(0,0,0,0.85);
  color: orange;
  width: 80%;
  max-width: 420px;
  padding: 32px;
  font-size: 34px;
  font-weight: bold;
  border: 4px solid orange;
  border-radius: 26px;
  text-align: center;
}

/* =========================
   VIEWER BACKGROUNDS
========================= */
body.viewer-bg-xray {
  background: url('../03_images/XRayA.jpg') center center / cover no-repeat;
}

body.viewer-bg-kyosho {
  background: url('../03_images/KyoshoA.jpg') center center / cover no-repeat;
}

body.viewer-bg-xray::before,
body.viewer-bg-kyosho::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* =========================
   VIEWER
========================= */
.viewer-container {
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100 - 80px);
  position: absolute;
  top: 80px;
  overflow: hidden;
  touch-action: none;
}

#viewerImg {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  user-select: none;
}

/* =========================
   HOTSPOTS
========================= */
.hotspot {
  position: absolute;
  width: 110px;
  height: 55px;
  background: rgba(255,0,0,0.35);
  border-radius: 14px;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* =========================
   VIEWER BUTTONS
========================= */
.button-center {
  position: fixed;
  bottom: calc(30px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  z-index: 2000;
}

.hotspot-btn {
  background: orange;
  border: none;
  padding: 24px 32px;
  border-radius: 20px;
  font-size: 30px;
  font-weight: bold;
}

/* =========================
   BACK BUTTON
========================= */
.back-btn {
  position: fixed;
  bottom: calc(30px + env(safe-area-inset-bottom));
  left: 20px;
  width: 110px;
  height: 110px;
  background: black;
  color: white;
  font-size: 52px;
  border: none;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

/* =========================
   CART BUTTON
========================= */
.cart-btn {
  position: fixed;
  bottom: calc(30px + env(safe-area-inset-bottom));
  right: 20px;
  width: 110px;
  height: 110px;
  background: #2ecc71;
  color: white;
  font-size: 52px;
  border: none;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

/* =========================
   WARENKORB
========================= */
.cart-wrapper {
  padding: 100px 20px calc(200px + env(safe-area-inset-bottom));
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.cart-table th {
  background: black;
  color: orange;
  padding: 20px;
  font-size: 32px;
}

.cart-table td {
  padding: 20px;
  border-bottom: 1px solid #ccc;
  font-size: 28px;
}

/* =========================
   MENGEN BUTTONS
========================= */
.quantity-btn {
  font-size: 40px !important;
  width: 90px !important;
  height: 90px !important;
}

.quantity-display {
  font-size: 40px !important;
  width: 100px !important;
  height: 90px !important;
}

/* =========================
   MOBILE FIXES
========================= */
@media (max-width: 600px) {
  .brand-logo { top: 40%; }
  .brand-box:first-child .brand-logo { top: 28%; }
} 