/* =====================================================
   STYLE.CSS - Für öffentliche Seiten (Login, Register, etc.)
   WICHTIG: Benötigt global.css als Basis!
   ===================================================== */

/* =====================================================
   REGISTRIERUNG SUCCESS PAGE
   ===================================================== */
/* main#registriert-container erbt bereits position/sizing von global.css main */
#registriert-container .form-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
}

#registriert-container .form-card {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out;
}

#registriert-container .success-icon {
  width: 80px;
  height: 80px;
  background: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

#registriert-container .success-icon i {
  color: white;
  font-size: 2rem;
}

#registriert-container .form-title {
  margin-bottom: 1rem;
}

#registriert-container .form-subtitle {
  margin-bottom: 2rem;
  color: var(--color-muted);
}

#registriert-container .login-button {
  margin-bottom: 2rem;
}

#registriert-container .login-button .btn {
  font-size: 1.1rem;
  padding: 12px 30px;
}

#registriert-container .info-box {
  background: var(--color-bg);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

#registriert-container .info-box h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

#registriert-container .info-box ul {
  text-align: left;
  color: var(--color-text);
  list-style: none;
  padding: 0;
  margin: 0;
}

#registriert-container .info-box li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

#registriert-container .info-box li:before {
  content: "•";
  color: var(--color-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

#registriert-container .back-to-home {
  margin-top: 2rem;
}

/* =====================================================
   ANIMATIONEN
   ===================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-weight: 500;
  flex-direction: column;
}

.alert-success {
  background: #28a745;
  color: white;
}

.alert-success i {
  font-size: 30px;
}

.alert-danger {
  background: #ff4444;
  color: white;
}

.alert-warning {
  background: #ffaa00;
  color: #303030;
}

.alert-info {
  background: var(--color-primary);
  color: #303030;
}

/* =====================================================
   BUTTON ERWEITERUNGEN
   ===================================================== */
.btn-register {
  border: 1px solid var(--color-primary);
  background: var(--color-bg);
  color: var(--color-primary);
  border-radius: 33px;
}

.btn-register:hover {
  background: var(--color-primary);
  color: #303030;
}

.btn-success {
  background: #28a745;
  color: white;
  border: 1px solid #28a745;
}

.btn-warning {
  background: #ffaa00;
  color: #303030;
  border: 1px solid #ffaa00;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* =====================================================
   FORM FOOTER (Login/Register)
   ===================================================== */
.form-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 1.5rem;
}

.form-footer-password-recovery {
  margin: 0;
}

.form-footer-password-recovery a {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.form-footer-password-recovery a:hover {
  color: var(--color-primary);
}

/* =====================================================
   FORMULAR ERWEITERUNGEN
   ===================================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-weight: 500;
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
}

.checkbox-label input,
.radio-label input {
  margin: 0;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* =====================================================
   ÜBERSCHRIFTEN GRÖßEN
   ===================================================== */
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* =====================================================
   CREW MENÜ (für Seiten die style.css nutzen)
   ===================================================== */
#crewMenuOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1100;
}

#crewMenuSheet {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--footer-h);
  height: calc(100svh - var(--header-h) - var(--footer-h));
  background-color: var(--color-bg);
  background-image: url(https://noaf.app/img/noaf_crew_2024.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left center;
  z-index: 1200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  animation: panBackground 30s ease-in-out infinite alternate;
}

@keyframes panBackground {
  0% { background-position: left center; }
  100% { background-position: right center; }
}

#crewMenuSheet.active {
  display: block;
  transform: translateY(0);
}

.crew-menu-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 55px;
}

.crew-menu-header {
  font-size: 50px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 0;
  padding: 1rem;
}

.crew-menu-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 1rem;
  width: 100%;
  max-width: 300px;
}

.crew-menu-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 30px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  z-index: 10;
  width: 50px;
  height: 50px;
}

.crew-menu-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* =====================================================
   MESSAGE BADGE
   ===================================================== */
.message-icon-wrapper {
  position: relative;
  display: inline-flex;
}

.message-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}
