* {
  font-family: 'Courier New', monospace;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  background-color: var(--bg-color, rgb(255, 255, 255));
  transition: background-color 0.5s ease;
  -webkit-user-select: text;
  user-select: text;
  position: relative;
}

/* WordPress spezifische Anpassungen */
#wpadminbar {
  display: none !important;
}

.wp-content,
.content-area,
.site-content,
#main,
[role="main"],
main {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  position: relative;
}

/* Canvas Fullscreen */
#zoomCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  display: block !important;
  cursor: grab;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#zoomCanvas:active {
  cursor: grabbing;
}

/* Selektierbare versteckte Content Div für Accessibility */
#selectableContent {
  -webkit-user-select: text;
  user-select: text;
  display: none;
}

/* Overlay Container - immer über Canvas */
.portfolio-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.legal-links {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 20;
  text-align: right;
  -webkit-user-select: text;
  user-select: text;
  pointer-events: auto;
}

.legal-links a {
  color: #000;
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: inline-block;
  -webkit-user-select: text;
  user-select: text;
  cursor: pointer;
}

.legal-links a:hover {
  opacity: 0.7;
}

.navigation-menu {
  position: fixed;
  top: 20px;
  right: 10px;
  display: none;
  padding: 10px;
  z-index: 100;
  background: none;
  border-radius: 8px;
  pointer-events: auto;
}

.menu-item {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: bold;
  color: #333;
  font-family: 'Courier New', monospace;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  -webkit-user-select: text;
  user-select: text;
}

.menu-item.visible {
  display: flex;
}

.menu-item:not(.visible) {
  display: none;
}

.menu-item:hover,
.menu-item:active {
  background-color: rgba(0, 0, 0, 0.1);
}

.debug-info {
  position: fixed;
  bottom: 10px;
  left: 10px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #fff;
  padding: 6px 10px;
  z-index: 100;
  -webkit-user-select: text;
  user-select: text;
  pointer-events: auto;
}

/* Verhindern, dass Text-Auswahl beim Greifen gestört wird */
.grabbing {
  -webkit-user-select: none;
  user-select: none;
}

/* Entferne WordPress Standard-Container Padding/Margin */
.wp-block-group,
.wp-block-column,
.entry-content,
.page-content,
.post-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Verstecke alle WordPress UI Elemente */
.entry-header,
.post-navigation,
.comments-area,
.sidebar,
aside,
.widget-area {
  display: none !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .legal-links {
    bottom: 10px;
    right: 10px;
  }
  
  .legal-links a {
    font-size: 12px;
    margin-left: 10px;
    padding: 10px;
  }
  
  .navigation-menu {
    top: 10px;
    right: 10px;
    max-width: calc(100vw - 40px);
  }
  
  .menu-item {
    padding: 14px 18px;
    font-size: 16px;
  }
  
  .debug-info {
    display: none;
  }
}

@media (max-width: 480px) {
  .legal-links a {
    font-size: 11px;
    margin-left: 5px;
    padding: 8px;
  }
  
  .menu-item {
    font-size: 14px;
    padding: 10px 14px;
  }
}

/* Sicherstellen, dass Canvas immer 100% ist */
body > #zoomCanvas {
  position: fixed !important;
  width: 100vw !important;
  height: 100vh !important;
  top: 0 !important;
  left: 0 !important;
}
