/* =========================
   Fonts (lokal, aus assets/fonts)
   ========================= */
@font-face{
  font-family: 'Inter';
  src: url('../fonts/Inter-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================
   App Base
   ========================= */
:root{
  --app-bg: #000;
  --ui-border: #333333;
  --ui-title: #808080;
  --ui-text: #ffffff;
  --footer-text: #808080;
  --box-radius: 10px;

  --left-col-w: 245px;

  --logo-w: 145px;
  --logo-h: 95px;
  --logo-x: 50px;
  --logo-y: 50px;

  --stack-top: 225px;       /* 50 + 95 + 80 (min Abstand) */
  --stack-gap: 30px;

  /* ✅ Boxen: alle gleich breit, stabil */
  --box-w: 110px;

  --box-settings-h: 150px;  /* passt für DE/EN + Icon */
  --box-slider-h: 140px;    /* etwas mehr Luft unten */

  --fade-top-h: 50px;
  --fade-bottom-h: 150px;

  /* UI-Padding */
  --box-pad-x: 10px;
  --box-pad-top: 8px;
  --box-pad-bottom: 10px;

  /* Accent + Settings Yellow + Text scale */
  --accent: #ff2a2a;
  --ui-yellow: #ffc83e;
  --text-scale: 1;
}

html, body{
  width: 1080px;
  height: 1080px;
  margin: 0;
  padding: 0;
  overflow: hidden; /* KEINE Scrollbars in der App */
  background: var(--app-bg);
  font-family: 'Inter', sans-serif;
}

#frame{
  width: 1080px;
  height: 1080px;
  position: relative;
  overflow: hidden;
  background: var(--app-bg);
}

/* =========================
   BG disks
   ========================= */
.disk{
  position: absolute;
  width: 3200px;
  height: 3200px;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 1;
}

/* =========================
   Left panel
   ========================= */
.left-panel{
  position: absolute;
  background: rgba(255,255,255,0.10);
  top: 0;
  left: 0;
  width: var(--left-col-w);
  height: 1080px;
  z-index: 30;
}

.sas-logo{
  position: absolute;
  width: var(--logo-w);
  height: var(--logo-h);
  left: var(--logo-x);
  top: var(--logo-y);
}

.panel-stack{
  position: absolute;
  top: var(--stack-top);
  left: 0;
  width: var(--left-col-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--stack-gap);
}

/* =========================
   UI boxes
   ========================= */
.ui-box{
  width: var(--box-w);
  background: transparent;
  border: 0;
  border-radius: var(--box-radius);
  box-sizing: border-box;

  padding:
    var(--box-pad-top)
    var(--box-pad-x)
    var(--box-pad-bottom);
}

.ui-box--settings{ height: var(--box-settings-h); }
.ui-box--slider{ height: var(--box-slider-h); }

.ui-box__title{
  font-size: 13px;
  font-weight: 300;
  color: var(--ui-title);
  text-align: center;
  margin: 0;
  padding-top: 2px;
  padding-bottom: 6px;
}

/* =========================
   Radios
   ========================= */
.radio-form{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.radio-form--stack.is-horizontal{
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.radio-row{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.radio-label{
  font-size: 17px;
  font-weight: 400;
  color: var(--ui-text);
  line-height: 1;
}

.radio-form input[type="radio"]{
  transform: scale(0.95);
  accent-color: var(--accent);
  margin: 0;
}

.radio-form--stack{
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

/* Settings icon */
.settings-icon{
  display: block;
  width: 31.5px;
  height: 25px;
  margin: 18px auto 0;
  cursor: grab;
}
.settings-icon:active{ cursor: grabbing; }

/* =========================
   Slides (680×800)
   ========================= */
#slides{
  position: absolute;
  width: 680px;
  height: 800px;
  top: 100px;

  /* centered in right column (835px) */
  left: calc(var(--left-col-w) + ((1080px - var(--left-col-w)) / 2));
  transform: translateX(-50%);

  overflow: hidden;
  z-index: 20;
}

.slides__track{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2400px;
  transform: translateY(0);
  transition: transform 0.85s ease;
}

.slide{
  width: 100%;
  height: 800px;
  box-sizing: border-box;
  color: var(--ui-text);
}

/* Typo with scaling */
.slide h1{
  margin: 0 0 24px 0;
  font-size: calc(30px * var(--text-scale));
  font-weight: 400;
  color: var(--accent);
  line-height: 1.25;
}

.slide h2{
  margin: 26px 0 10px 0;
  font-size: calc(24px * var(--text-scale));
  font-weight: 400;
  color: var(--accent);
  line-height: 1.25;
}

.slide p{
  margin: 0 0 18px 0;
  font-size: calc(20px * var(--text-scale));
  font-weight: 300;
  line-height: 1.45;
}

.h2-inline{ display: inline; }

.contact-link{
  color: var(--accent);
  text-decoration: none;
}
.contact-link:hover{ text-decoration: underline; }

/* =========================
   Footer
   ========================= */
.footer{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1080px;
  height: 150px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 20px;
  z-index: 1000;
}

.footer__inner{
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 50px;
  box-sizing: border-box;
  color: var(--footer-text);
  font-size: 18px;
  font-weight: 400;
}

.footer-link{
  color: var(--footer-text);
  text-decoration: none;
}
.footer-link:hover{ text-decoration: underline; }

/* =========================
   Fades
   ========================= */
.fade{
  position: absolute;
  left: 0;
  width: 1080px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 999;
}
.fade--top{ top: 0; height: var(--fade-top-h); }
.fade--bottom{ bottom: 0; height: var(--fade-bottom-h); }

/* =========================
   Panels (no transparency)
   ========================= */
#panels{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 200;
}

.panel{
  position: absolute;
  width: 560px;
  background: #3a3a3a;
  border: 1px solid #4a4a4a;
  border-radius: 28px;
  box-sizing: border-box;
  padding: 22px 22px 18px;
  pointer-events: auto;
}

.panelHeader{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.panelTitle{
  font-size: 32px;
  font-weight: 400;
  color: #0d0d0d;
  line-height: 1.1;
}

.panelClose{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #6a6a6a;
  background: #bdbdbd;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.panelBody{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.groupLabel{
  font-size: 22px;
  font-weight: 400;
  color: #0d0d0d;
  margin-bottom: 8px;
}

.btnRow{
  display: flex;
  gap: 18px;
  align-items: center;
}

.btn{
  border: 1px solid #6a6a6a;
  background: #bdbdbd;
  color: #111;
  border-radius: 18px;
  padding: 14px 22px;
  font-size: 24px;
  font-weight: 400;
  cursor: pointer;
}

.btn.active{
  background: #111;
  color: #fff;
  border-color: #111;
}

.toggleRow{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.toggleRow label{
  font-size: 22px;
  font-weight: 400;
  color: #0d0d0d;
}

.toggleRow .statusText{
  font-size: 18px;
  font-weight: 300;
  color: #0d0d0d;
}

.toggleRow input[type="checkbox"]{
  transform: scale(1.25);
  margin-left: 6px;
}

/* Settings panel radio lines */
.radioGroup{ display:flex; flex-direction:column; gap:10px; margin-top:4px; }
.radioLine{ display:flex; align-items:center; gap:10px; font-size:22px; font-weight:400; color:#0d0d0d; }
.radioLine input{ transform: scale(1.15); accent-color: #111; }

/* =========================
   Tooltip + Zone label
   ========================= */
.icon-tooltip{
  position: fixed;
  left: 90px;
  top: 16px;
  max-width: 760px;
  background: var(--ui-yellow);
  color: #111;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid #d8a72f;
  display: none;
  z-index: 950;
  pointer-events: none;
}

.icon-tooltip__top{
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}

.icon-tooltip__bottom{
  font-size: 20px;
  font-weight: 300;
  line-height: 1.35;
}

.zone-label{
  position: fixed;
  left: 0;
  top: 0;
  background: var(--ui-yellow);
  color: #111;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #d8a72f;
  font-size: 16px;
  font-weight: 400;
  display: none;
  z-index: 10000;
  pointer-events: none;
}
