/* =============================================
   ZockSofa – global.css
   Dark/Light Mode Toggle + Universal Base
   ============================================= */

/* Dark Mode (Default) */
:root {
  --bg-primary:     #0f0f13;
  --bg-secondary:   #1a1a26;
  --bg-tertiary:    #2a2a3e;
  --bg-hover:       #3a3a4e;
  --text-primary:   #e0e0e0;
  --text-secondary: #aaa;
  --text-muted:     #666;
  --border-color:   #2a2a3e;
  --accent:         #e63946;
  --accent-hover:   #c1121f;
  --success:        #4ade80;
  --error:          #e63946;
}

/* Light Mode */
[data-theme="light"] {
  --bg-primary:     #ffffff;
  --bg-secondary:   #f8f9fa;
  --bg-tertiary:    #e9ecef;
  --bg-hover:       #dee2e6;
  --text-primary:   #212529;
  --text-secondary: #6c757d;
  --text-muted:     #adb5bd;
  --border-color:   #dee2e6;
  --accent:         #e63946;
  --accent-hover:   #c1121f;
  --success:        #28a745;
  --error:          #dc3545;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Links ── */
a { color: inherit; text-decoration: none; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: .55rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
  -webkit-appearance: none;
  appearance: none;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary {
  display: inline-block;
  padding: .55rem 1.25rem;
  background: transparent;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-toggle {
  display: inline-block;
  padding: .55rem 1.25rem;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.btn-toggle:hover { border-color: var(--accent); color: var(--accent); }

.btn-danger {
  display: inline-block;
  padding: .55rem 1.25rem;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.btn-danger:hover { background: var(--accent); color: #fff; }

.btn-outline {
  display: inline-block;
  padding: .55rem 1.25rem;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ── Formulare ── */
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form textarea,
form select {
  padding: .65rem .9rem;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
form input:focus,
form textarea:focus,
form select:focus { border-color: var(--accent); }

form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .9rem;
}

/* ── Karten ── */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all .2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  border-color: var(--accent);
}

/* ── Tabellen ── */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
}
th {
  background: var(--bg-tertiary);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
}
td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}
tr:hover td { background: var(--bg-hover); }

/* ── Flash Messages ── */
.flash-success {
  background: rgba(74,222,128,.12);
  border: 1px solid var(--success);
  border-radius: 8px;
  padding: .75rem 1rem;
  color: var(--success);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}
.flash-error {
  background: rgba(230,57,70,.12);
  border: 1px solid var(--error);
  border-radius: 8px;
  padding: .75rem 1rem;
  color: var(--error);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

/* ── Auth Boxes (login, register, forgot, reset, verify) ── */
.auth-main {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
}
.auth-box h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.auth-error-list {
  background: rgba(230,57,70,.12);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  list-style: none;
  color: var(--accent);
  font-size: .9rem;
}
.auth-success-msg {
  background: rgba(74,222,128,.12);
  border: 1px solid var(--success);
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  color: var(--success);
  font-size: .9rem;
}
.auth-links {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-align: center;
  font-size: .88rem;
}
.auth-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .2s;
}
.auth-links a:hover { color: var(--accent); }

/* ── Badges ── */
.badge-paused {
  padding: .25rem .6rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  background: #f59e0b;
  color: #fff;
}
.badge-graded {
  padding: .25rem .6rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(230,57,70,.15);
  color: var(--accent);
}

/* ── Footer ── */
.zs-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
  padding: 3rem 1.5rem 0;
}
.zs-footer__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.zs-footer__nav--blocks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}
.zs-footer__block h4 {
  color: var(--text-secondary);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 .75rem;
}
.zs-footer__block a {
  display: block;
  color: var(--text-muted);
  font-size: .88rem;
  text-decoration: none;
  margin-bottom: .4rem;
  transition: color .2s;
}
.zs-footer__block a:hover { color: var(--accent); }
.zs-footer__bottom {
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: .82rem;
}
.zs-footer__theme-btn {
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: .4rem .9rem;
  color: var(--text-secondary);
  font-size: .82rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.zs-footer__theme-btn:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 768px) {
  .zs-footer__inner { grid-template-columns: 1fr; }
  .zs-footer__nav--blocks { grid-template-columns: 1fr 1fr; }
  .zs-footer__bottom { flex-direction: column; gap: .75rem; }
}
@media (max-width: 480px) {
  .zs-footer__nav--blocks { grid-template-columns: 1fr; }
}

/* ── Passwort-Stärke ── */
.pw-strength-bar {
  height: 5px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  margin: .35rem 0 .2rem;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width .3s, background .3s;
}
.pw-strength-text {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  min-height: 1.2em;
}

/* ── Utility ── */
.zs-no-scroll { overflow: hidden; }
