html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  font-family: sans-serif;
}

#canvasZone {
  position: relative;
  width: 100%;
  height: 100%;
  background: #111;
}

#renderCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#uiOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  z-index: 10;
  pointer-events: none;
}

.ui-box {
  position: absolute;
  pointer-events: auto;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  border-radius: 8px;
}



.logo-square {
  bottom: 5%;
  right: 5%;
  width: 15%;
  aspect-ratio: 1 / 1;
  background-color: rgba(100, 255, 150, 0.0);
  background-image: url('./logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.sr-only{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;}

/* --- Quicksave Snack-Bar (rechts oben) --- */
.snackbar{
  position: fixed;
  top: 16px;
  right: 16px;              /* Standard: sichtbar (Reminder) */
  width: 360px;
  z-index: 20;
  pointer-events: auto;
}
.snackbar.is-collapsed {    /* eingeklappt hinter den Rand */
  right: -360px;
  transition: right 180ms ease;
}
.snackbar:not(.is-collapsed){
  transition: right 180ms ease;
}

.snackbar-body{
  backdrop-filter: blur(6px);
  background: rgba(10,12,24,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  overflow: hidden;
}

/* Tab / Fähnchen zum Aufklappen */
.snackbar-tab{
  position: absolute;
  left: -52px;
  top: 0;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.18);
  border-right: none;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  background: rgba(10,12,24,0.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  background-image: url('./mail_icon.png'); /* dein PNG */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}
.snackbar.armed .snackbar-tab{
  border-color: rgba(120,255,200,0.5);
  box-shadow: 0 0 0 2px rgba(120,255,200,0.15), 0 6px 20px rgba(0,0,0,0.35);
}

/* Formular-Layout */
#quickSaveForm{
  display: grid;
  grid-template-columns: 1fr auto;  /* Input | Button */
  grid-template-rows: auto auto;    /* Titel | Input/Btn */
  gap: 0.6rem 0.6rem;
  align-items: center;
  width: 100%;
  padding: 0.85rem;
  box-sizing: border-box;
}
.qs-title{
  grid-column: 1 / -1;
  font-size: 0.9rem;
  opacity: 0.9;
  letter-spacing: .2px;
}

/* Input & Button */
#emailInput{
  grid-column: 1 / 2;
  min-width: 140px;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  outline: none;
  font-size: 1rem;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
#emailInput:focus{
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}
#emailInput.valid{ border-color: rgba(100,255,180,0.8); }
#emailInput.invalid{ border-color: rgba(255,120,120,0.9); }

#sendBtn{
  grid-column: 2 / 3;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.6;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}
#sendBtn.enabled{ cursor: pointer; opacity: 1; background: rgba(255,255,255,0.16); }
#sendBtn.enabled:hover{ transform: translateY(-1px); }

/* Statuszeile */
#saveStatus{
  grid-column: 1 / -1;
  margin-top: -0.2rem;
  font-size: 0.9rem;
  opacity: 0.9;
  color: #cfeadf;
  min-height: 1.2rem; /* reserviert Platz, verhindert Springen */
}

/* Mobile */
@media (max-width: 480px){
  .snackbar{ width: 92vw; right: 4vw; }
  .snackbar.is-collapsed{ right: -96vw; }
  #emailInput, #sendBtn{ font-size: 1rem; }
}
