/* =========================================================
   INTERNES LOGIN & PANEL – GLOBAL
========================================================= */

#intern-login-icon {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: 0.25s ease;
}

#intern-login-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  #intern-login-icon {
    background: rgba(40,40,40,0.9);
    border-color: #444;
  }
}

/* =========================================================
   OVERLAY – Login & Panel
========================================================= */

.intern-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 1rem;
}

.intern-overlay.active {
  display: flex;
}

/* =========================================================
   LOGIN-DIALOG
========================================================= */

.intern-dialog {
  background: #f7f7f7;
  padding: 2rem;
  border-radius: 14px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  animation: internFadeIn 0.25s ease;
}

@media (prefers-color-scheme: dark) {
  .intern-dialog {
    background: #2a2a2a;
    color: #fff;
  }
}

.intern-dialog h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.intern-dialog input {
  width: 100%;
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  background: #fff;
}

@media (prefers-color-scheme: dark) {
  .intern-dialog input {
    background: #1b1b1b;
    border-color: #555;
    color: #fff;
  }
}

.intern-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.intern-actions button {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.25s ease;
}

#intern-login-cancel {
  background: #ccc;
}

#intern-login-submit {
  background: #C94C4C;
  color: #fff;
}

#intern-login-submit:hover {
  background: #A63F3F;
}

.intern-message {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #C94C4C;
  min-height: 1.2rem;
}

/* =========================================================
   PANEL – Container
========================================================= */

.intern-panel {
  background: #1f1f1f;
  color: #fff;
  width: 100%;
  max-width: 680px;
  padding: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  animation: internFadeIn 0.25s ease;
}

@media (max-width: 600px) {
  .intern-panel {
    max-width: 100%;
    padding: 1.4rem;
  }
}

/* =========================================================
   PANEL – Header
========================================================= */

.intern-panel h2 {
  margin-top: 0;
  margin-bottom: 1.4rem;
  font-size: 1.5rem;
  font-weight: 700;
}

/* =========================================================
   PANEL – Formularelemente
========================================================= */

.intern-panel label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.intern-panel input,
.intern-panel textarea {
  width: 100%;
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid #444;
  background: #2a2a2a;
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.intern-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.intern-panel button {
  padding: 0.7rem 1.4rem;
  background: #C94C4C;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.intern-panel button:hover {
  background: #A63F3F;
}

/* =========================================================
   PANEL – Close Button
========================================================= */

#intern-panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #444;
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}

#intern-panel-close:hover {
  background: #666;
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes internFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}