body {
  margin: 0;
  background: #606060; /* dein Wunsch-Hintergrund */
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  z-index: 100;
  backdrop-filter: blur(6px);
}

.icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn img {
  height: 32px;
  width: auto;
  display: block;
}

/* Logo */
#headerLogo {
  height: 32px;
  width: auto;
  object-fit: contain;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Canvas Wrapper */
#canvasWrapper {
  flex: 1;
  overflow: auto;
  position: relative;
  background: #606060;
  margin-top: 48px;
}

#canvasBase,
#canvasOverlay {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Hinweistext beim Start
   WICHTIG: startet **unter** dem Header (top:48px), so dass Header-Buttons klickbar bleiben */
#hintOverlay {
  position: fixed;
  top: 48px; /* direkt unter dem Header */
  left: 0;
  width: 100%;
  height: calc(100% - 48px); /* nimmt den verbleibenden Bereich ein */
  background: rgba(0,0,0,0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  z-index: 200; /* über dem Canvas, aber nicht über dem Header (da top offset) */
  pointer-events: auto; /* blockiert Canvas-Interaktion, aber Header ist nicht mehr überdeckt */
}

#hintOverlay p {
  margin: 0 20px;
  line-height: 1.4;
}

/* Eigenes Popup für Speichern */
#customPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* unsichtbar */
  align-items: center;
  justify-content: center;
  z-index: 300;
}

#customPopupContent {
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 10px;
  max-width: 80%;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

#customPopup button {
  margin-top: 12px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #007aff;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.hintContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hintIcon {
  width: 96px;
  height: 96px;
  margin-bottom: 12px; /* Abstand zum Text */
}