/* Vollbildsteuerung für Tablets und mobile Browser */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.fullscreen-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(184, 243, 74, .38);
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(184, 243, 74, .11), rgba(255, 255, 255, .025));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.fullscreen-toggle[hidden] {
  display: none !important;
}

.fullscreen-toggle:hover,
.fullscreen-toggle:focus-visible {
  border-color: rgba(184, 243, 74, .75);
  background: linear-gradient(135deg, rgba(184, 243, 74, .18), rgba(255, 255, 255, .04));
}

.fullscreen-toggle:hover {
  transform: translateY(-1px);
}

.fullscreen-toggle.is-active {
  color: #0a0d08;
  border-color: var(--green);
  background: var(--green);
}

.fullscreen-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.fullscreen-note {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9999;
  max-width: min(420px, calc(100% - 28px));
  padding: 11px 15px;
  border: 1px solid rgba(255, 216, 74, .5);
  border-radius: 10px;
  color: var(--text);
  background: rgba(20, 24, 20, .96);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .42);
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.fullscreen-note.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

html:fullscreen,
html:-webkit-full-screen {
  background: var(--bg);
}

html:fullscreen body,
html:-webkit-full-screen body {
  min-height: 100dvh;
  overflow-x: hidden;
}

html:fullscreen .shell,
html:-webkit-full-screen .shell {
  width: min(1180px, calc(100% - 24px));
  min-height: 100dvh;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

@media (max-width: 760px) {
  .header {
    align-items: flex-start;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .header-actions .status {
    display: none;
  }

  .fullscreen-toggle {
    min-height: 40px;
    padding: 8px 12px;
  }
}

@media print {
  .fullscreen-toggle,
  .fullscreen-note {
    display: none !important;
  }
}
