*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ====== THEME VARIABLEN (Standard: Dark) ====== */

:root {
  --bg: #020617;
  --surface: #FFFFFF;
  --card-bg: #020617;
  --border: #1e293b;
  --primary: #22c55e;
  --primary-soft: #bbf7d0;
  --text: #f9fafb;
  --muted: #9ca3af;
  --danger: #ef4444;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* Light Theme – über body.theme-light */
body.theme-light {
  --bg: #ffffff;
  --surface: #ffffff;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --primary: #22c55e;
  --primary-soft: #bbf7d0;
  --text: #111827;
  --muted: #6b7280;
  --danger: #ef4444;
  --shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.12);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
}

/* ====== APP SHELL ====== */

body.mobile-app {
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--bg), var(--surface) 60%);
}

/* ====== APP BAR LOGO ====== */
.app-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.app-bar-logo img.logo-img {
  height: 45px;
  display: block;
  margin-left: 50px;
  filter: brightness(1);
}

body.theme-light .app-bar-logo img.logo-img {
  filter: brightness(1);
}


.app-bar-title {
  font-weight: 650;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* Main-Bereich – echte Screens */

.app-main {
  padding: 56px 0 76px; /* Platz für App-Bar & Bottom-Nav */
  min-height: 100vh;
}

/* Jeder Screen füllt den Bereich zwischen Topbar und Bottom-Bar */

.app-screen {
  display: none;
  height: calc(100vh - 56px - 76px);
  padding: 12px 16px 16px;
  overflow-y: auto;
}

.app-screen-active {
  display: block;
}

/* ====== LIST SCREEN (aktuelle Einkaufsliste) ====== */

.list-header {
  padding: 8px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 6px;
}

.list-header h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.list-actions {
  display: flex;
  gap: 6px;
}

/* Listen-Inhalt – flach, „native“-ListView */

.list-content {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 8px 0 90px; /* Platz für FAB */
  display: flex;
  flex-direction: column;
  height: auto;
}

.item-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.item-input-row input {
  flex: 1;
  min-height: 40px;
}

.items {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Single List Item – wie in nativer Liste */

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}

.item:last-child {
  border-bottom: none;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.item-left span {
  font-size: 0.95rem;
}

.item-meta {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.item.checked span {
  text-decoration: line-through;
  color: var(--muted);
}

.btn-icon {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
  padding: 4px;
}

.btn-icon:active {
  transform: scale(0.92);
}

/* ====== LISTEN-ÜBERSICHT (Screen „Listen“) ====== */

.panel {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 0;
  border: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1rem;
}

.panel-subtitle {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Listenliste – native App-Look */

.list-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  overflow: hidden;
}

body.theme-light .list-nav {
  background: #ffffff;
}

.list-nav-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  background: transparent;
}

.list-nav-item:last-child {
  border-bottom: none;
}

.list-nav-item span.list-name {
  font-weight: 500;
}

.list-nav-item span.list-badge {
  font-size: 0.75rem;
  color: var(--muted);
}

.list-nav-item.active {
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary);
}

.list-nav-item:active {
  background: rgba(148, 163, 184, 0.15);
}

/* ====== PROFILE SCREEN ====== */

#screen-profile {
  padding-top: 16px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #01110a;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-name {
  font-weight: 600;
}

.profile-email {
  font-size: 0.8rem;
  color: var(--muted);
}

.profile-plan {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Feature-Liste */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.85rem;
}

.feature-list li::before {
  content: "• ";
  color: var(--primary);
}

/* ====== THEME TOGGLE ====== */

.theme-toggle {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.theme-toggle-label {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.theme-toggle-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.theme-switch {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  border: none;
  padding: 3px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  position: relative;
}

.theme-switch-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.4);
  transform: translateX(0);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Light-Mode aktiv (Knopf nach rechts + grüne Fläche) */
.theme-switch[data-mode="light"] {
  background: var(--primary-soft);
}

.theme-switch[data-mode="light"] .theme-switch-knob {
  transform: translateX(22px);
}

/* ====== BUTTONS ====== */

button,
.btn-primary,
.btn-secondary,
.btn-outline {
  font-family: inherit;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: #022c16;
  font-weight: 600;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border: 1px solid var(--border);
}

body.theme-light .btn-secondary {
  background: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.small {
  padding: 6px 10px;
  font-size: 0.8rem;
}

.full-width {
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

/* ====== INPUTS ====== */

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
}

body.theme-light input[type="text"],
body.theme-light input[type="email"],
body.theme-light input[type="password"] {
  background: #ffffff;
}

input::placeholder {
  color: #6b7280;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}

/* ====== EMPTY STATE ====== */

.empty-state {
  text-align: center;
  padding: 24px 12px 14px;
}

.empty-state h2 {
  margin-top: 0;
  margin-bottom: 6px;
}

/* ====== MODAL ====== */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.modal-box {
  position: relative;
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 340px;
  max-width: 92%;
  z-index: 61;
  border: 1px solid var(--border);
}

.modal-box h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.modal-box input {
  margin-top: 8px;
  margin-bottom: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.hint {
  color: var(--muted);
  margin-top: 8px;
}

.small {
  font-size: 0.8rem;
}

/* ====== TOAST ====== */

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
  z-index: 70;
  border: 1px solid var(--border);
}

/* ====== FLOATING VOICE BUTTON ====== */

.fab-voice {
  position: fixed;
  right: 20px;
  bottom: 88px; /* über der Bottom-Nav */
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #022c16;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /*box-shadow: 0 16px 40px rgba(22, 163, 74, 0.6);*/
  cursor: pointer;
  z-index: 65;
}

.svg-ico {
  width: 70px;
  height: 70px;
}

.fab-voice.fab-disabled {
  background: #4b5563;
  color: #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.8);
  cursor: not-allowed;
}

/* ====== BOTTOM NAVIGATION – MODERNE APP-BAR ====== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 12px 12px;
  z-index: 55;
  pointer-events: none;
}

.bottom-nav-inner {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 999px;
  border: 0px solid var(--border);
  /*box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);*/
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 6px;
  pointer-events: auto;
}

.bottom-nav-item {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  padding: 4px 6px;
  border-radius: 999px;
  position: relative;
}

.bottom-nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.bottom-nav-item:active {
  background: rgba(148, 163, 184, 0.12);
}

/* ====== ALERT ====== */

.alert {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

/* ====== AUTH PAGES (Login / Register) ====== */

.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--bg), var(--surface) 60%);
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: var(--shadow-soft);
  border: 0px solid var(--border);
}

/* heller Login/Registrierungsscreen */
body.auth-light {
  --bg: #f5f6f8;
  --surface: #f5f6f8;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
}

body.auth-light .auth-card {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body.auth-light input {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: #111827;
}

body.auth-light .btn-primary {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

body.auth-light .auth-footer {
  color: #6b7280;
}

body.auth-light .auth-footer a {
  color: #22c55e;
  font-weight: 600;
  text-decoration: none;
}

body.auth-light .auth-footer a:hover {
  text-decoration: underline;
}

/* Auth-Header */

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, #bbf7d0, #22c55e 60%, #16a34a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.6);
}

.auth-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-app-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.auth-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-screen-title {
  margin: 4px 0 14px;
  font-size: 1.1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-main-btn {
  margin-top: 6px;
}

.auth-footer {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ====== LISTE ERLEDIGT – OVERLAY & ANIMATION ====== */

.complete-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
  animation: completeFadeIn 0.25s ease-out;
}

.complete-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  max-width: 320px;
  width: 80%;
  animation: completePop 0.4s ease-out;
}

.complete-card h2 {
  margin: 10px 0 6px;
  font-size: 1.1rem;
}

.complete-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.complete-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #bbf7d0, #22c55e 70%);
  color: #022c16;
  font-size: 1.8rem;
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.7);
}

/* Animations */

@keyframes completeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes completePop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* ====== UTILITIES ====== */

.hidden {
  display: none !important;
}

.small {
  font-size: 0.8rem;
}
/* ====== ICONS ====== */
.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
}

/* Unteres Menü */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 55;
}

.bottom-nav-inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
}

.bottom-nav-item {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  padding: 4px 0;
}

.bottom-nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.bottom-nav-label {
  line-height: 1;
}

.bottom-nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

.bottom-nav-item.active .bottom-nav-icon {
  transform: translateY(-1px);
}

.bottom-nav-item:active {
  transform: translateY(1px);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  border: none;
  background: none;
  gap: 3px;
  transition: color 0.2s;
}

.nav-btn.active {
  color: var(--accent, #4F46E5);
  font-weight: 600;
}

.nav-btn.active .icon {
  color: var(--accent, #4F46E5);
}

.btn-icon .icon {
  width: 18px;
  height: 18px;
}

/* Hover-Effekte auf Mobil */
.nav-btn:active {
  transform: scale(0.95);
}
.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 16px;
  font-size: 0.9rem;
  color: #4b5563;
}

.remember-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

/* =========================================
   AUTH SCREENS (Login / Register)
   Einheitliches helles App-Design
   ========================================= */

/* Body nur für Login/Register */
body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e5edff 0, #f3f4f6 45%, #e5f8ff 100%);
  color: #0f172a;
  display: flex;
  flex-direction: column;
}

/* obere Leiste mit Logo – wie App-Header */
.auth-topbar {
  padding: 18px 20px 6px;
  background: transparent;
}

.auth-topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.4);
}

.auth-logo-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.auth-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f172a;
}

/* Wrapper zentriert List-Card */
.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 16px 24px;
}

/* Login/Register-Karte */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 20px 18px 24px;
  box-shadow:
    0 22px 50px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(148, 163, 184, 0.24);
}

/* Titel & Untertitel */
.auth-title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.auth-subtitle {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Fehlerhinweis */
.auth-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* Formular */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: #4b5563;
}

.auth-label span {
  font-weight: 500;
}

.auth-input {
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #f9fafb;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    transform 0.08s ease;
}

.auth-input:focus {
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(78, 78, 78, 0.25);
}

/* "Eingeloggt bleiben" / AGB etc. */
.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
  font-size: 0.85rem;
  color: #4b5563;
}

.remember-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #22c55e;
}

/* Buttons – primär */
.btn-primary,
.auth-main-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #22c55e, #22c55e);
  color: #ffffff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 38%;
 /* box-shadow: 0 14px 34px rgba(78, 78, 78, 0.45);*/
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    filter 0.1s ease;
}

.btn-primary:hover,
.auth-main-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(78, 78, 78, 0.45);
}

.btn-primary:active,
.auth-main-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(78, 78, 78, 0.45);
}

/* voller Button */
.full-width {
  width: 100%;
}

/* Footer-Text unter Formular (Login/Register) */
.auth-footer {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

.auth-footer a {
  color: #22C55E;
  font-weight: 500;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* nur wenn es eine "nur mobil" Seite gibt */
.only-mobile-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #e5e7eb;
}

.only-mobile-card {
  max-width: 360px;
  padding: 20px 18px;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

/* etwas mehr Luft auf größeren Screens */
@media (min-width: 768px) {
  .auth-wrapper {
    padding-top: 32px;
  }
  .auth-card {
    border-radius: 28px;
  }
}
/* =========================================
   fynio – Login-Design wie App-Card
   ========================================= */

body.login-body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;             /* hellgrauer Hintergrund */
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrapper hält die Card mittig und mit Abstand */
.login-wrapper {
  width: 100%;
  max-width: 480px;
  padding: 24px 16px;
  box-sizing: border-box;
}

/* weiße Karte wie im Screenshot */
.login-card {
  width: 100%;
  background: #ffffff;
  border-radius: 32px;
  padding: 24px 22px 26px;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(148, 163, 184, 0.18);
}

/* Marke oben in der Karte */
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.login-brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 24px;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.5);
}

.login-brand-icon-img {
  width: 40px;
  height: 40px;
}

.login-brand-text {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111827;
}

/* Überschrift */
.login-title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

/* Fehlerbox */
.login-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

/* Formular */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #4b5563;
}

.login-label span {
  font-weight: 500;
}

.login-input {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 10px 16px;
  font-size: 0.95rem;
  background: #f9fafb;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.login-input:focus {
  border-color: #16a34a;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

/* Grüner Button wie im Screenshot */
.login-btn-primary {
  margin-top: 10px;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  color: #ffffff;
  width: 100%;
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.55);
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    filter 0.1s ease;
}

.login-btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(22, 163, 74, 0.6);
}

.login-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.5);
}

/* Footer-Text unten ("Noch kein Konto?") */
.login-footer {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #6b7280;
  text-align: left;
}

.login-footer a {
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Etwas mehr Luft nach oben auf größeren Displays */
@media (min-height: 700px) {
  body.login-body {
    align-items: center;
  }
}
