/* ──────────────────────────────────────────────────────────
   Login Styles – aligned with dashboard-styles.css tokens
   (keine Überschreibung von .btn-*, .dashboard-section, etc.)
   ────────────────────────────────────────────────────────── */

/* Basis */
* { box-sizing: border-box; margin: 0; padding: 0; max-width: 100%; }

html, body { width: 100%; overflow-x: hidden !important; }

body {
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  padding: 10px 20px;
  min-height: 60px;
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

/* Das Hamburger-Element ist ein <button class="hamburger btn-link"> in HTML */
.hamburger {
  display: none;          /* Desktop: ausblenden */
  font-size: 20px;
  line-height: 1;
}

/* Menü */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu li { display: inline; }

.menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
}

.mobile-contact-info { display: none !important; }

/* Kontaktbereich rechts */
.contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contact-info a {
  display: inline-block;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  opacity: .9;
}

.contact-info a:hover { opacity: 1; }

/* ── Form-Elemente innerhalb der Login-Seiten ──────────── */
/* Login-Seite: keine erzwungene Höhe */
.content{
  min-height: auto;
}

.content form label {
  font-size: 14px;
  font-weight: 600;
}

.content form input,
.content form select,
.content form textarea {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border: 1.5px solid var(--stroke);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  width: 100%;
}

/* Abstand & Layout für die Form-Bereiche */
.content form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* Buttons NICHT volle Breite */
.content form button,
.content form .btn-primary,
.content form .btn-secondary,
.content form input[type="submit"] {
  width: auto;
  align-self: flex-start;
}

/* Links im Formular-Bereich, z.B. „Passwort vergessen?“ */
.btn-link,
a.btn-link {
  text-decoration: none;
}

/* Spezielle Hilfsklassen (optional) */
.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Die frühere .login-wrapper-Karte wird jetzt durch .dashboard-section abgedeckt.
   Falls die Klasse noch irgendwo steht, geben wir nur sanftes Spacing: */
.login-wrapper { margin: 24px auto; }


/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    position: relative;
  }

  .logo { font-size: 22px; }

  /* Hamburger sichtbar */
  .hamburger { display: inline-grid; place-items: center; }

  /* Kontakt rechts weiterhin sichtbar, aber ohne die Spalte darunter */
  .contact .contact-info { display: none; }

  /* Dropdown-Menü (Hamburger) */
  .menu {
    display: none; /* per default versteckt */
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    padding: 10px 0;
    z-index: 1000;
  }

  .menu.active { display: flex; }

  .menu li { text-align: center; margin: 8px 0; }

  .mobile-contact-info {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Buttons im mobilen Menü – wir nutzen .btn-secondary aus dem Dashboard-Stylesheet */
  .menu li.mobile-contact-info .btn-secondary {
    margin-top: 4px;
    text-align: center;
  }
}

@media (max-width: 640px){
  .content .btn-primary,
  .content form button,
  .content form input[type="submit"] {
    width: auto;
  }
}

@media (max-width: 480px) {
  .logo { font-size: 20px; }
  .menu a { font-size: 14px; }
}

/* ── Meldungen – wir nutzen bereits .message.success / .message.error aus dashboard-styles.css
   Hier nur ein kleiner Zusatzabstand, falls nötig. */
.message { margin-top: 12px; }