/* Scenerii Design System - Immer dunkler Hintergrund */
:root {
  --primary: #1B1464;
  --primary-dark: #110D40;
  --secondary: #FFBCC1;
  /* Feste dunkle Farben (kein Light Mode) */
  --text-dark: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --bg-light: #0f172a;
  --bg-card: #1e293b;
  --border: #334155;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
  min-width: 320px;
}

body {
  background: var(--bg-light);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

label {
  cursor: pointer;
  color: var(--text-muted);
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-dark);
}

h2 {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h3 {
  color: var(--text-dark);
}

.section {
  margin-bottom: 45px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  width: 100%;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-card);
}

input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 20, 100, 0.1);
}

input:focus::placeholder {
  color: transparent;
}

input[disabled] {
  opacity: 0.5;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.small {
  font-size: 0.875em;
}

.error {
  color: #ef4444;
}

/* Utility text classes */
.text-muted {
  color: var(--text-muted);
}

.text-light-italic {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.9em;
  margin-bottom: 20px;
}

.subtitle-en {
  color: var(--text-light);
  font-size: 0.9em;
  margin-top: -10px;
  margin-bottom: 25px;
}

.help-text {
  margin-bottom: 15px;
}

/* Box styles */
.option-box {
  padding: 15px;
  background: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 15px;
}

.danger-box {
  margin-top: 20px;
  padding: 15px;
  background: #fef2f2;
  border-radius: 8px;
}

.button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 16px 40px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  display: inline-block;
  min-width: 150px;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(27, 20, 100, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(27, 20, 100, 0.4);
}

.button.button-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  box-shadow: none;
}

.button.button-outline:hover {
  background: var(--secondary);
  color: var(--primary-dark);
}

.container {
  margin: 60px auto 15px auto;
  max-width: 550px;
}

.wrap {
  background: var(--bg-card);
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px -10px rgba(27, 20, 100, 0.1);
  border: 1px solid var(--border);
}

.header {
  text-align: center;
  padding-top: 10px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.header .logo img {
  width: auto;
  max-width: 160px;
  height: auto;
}

.unsub-all {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.row {
  margin-bottom: 20px;
}

.lists {
  list-style-type: none;
  padding: 0;
}

.lists li {
  margin: 0 0 12px 0;
  padding: 12px 15px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.lists li input[type="checkbox"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.lists .description {
  margin: 5px 0 15px 30px;
  font-size: 0.875em;
  line-height: 1.5;
  color: var(--text-muted);
}

.form .nonce {
  display: none;
}

.form .captcha {
  margin-top: 30px;
}

.archive {
  list-style-type: none;
  margin: 25px 0 0 0;
  padding: 0;
}

.archive .date {
  display: block;
  color: var(--text-muted);
  font-size: 0.875em;
}

.archive li {
  margin-bottom: 15px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: 8px;
}

.feed {
  margin-right: 15px;
}

.home-options {
  margin-top: 30px;
  text-align: center;
}

.home-options a {
  margin: 0 10px;
}

.pagination {
  margin-top: 30px;
  text-align: center;
}

.pg-page {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 8px;
  margin: 0 3px;
}

.pg-page:hover {
  background: var(--bg-light);
}

.pg-page.pg-selected {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.login .submit {
  margin-top: 20px;
}

.login button {
  width: 100%;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login button img {
  max-width: 24px;
  margin-right: 10px;
}

.login input[name=totp_code] {
  font-size: 2em;
  letter-spacing: 5px;
  text-align: center;
}

#btn-back {
  display: none;
}

/* Optin form styling */
.optin-form ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.optin-form ul li {
  padding: 12px 15px;
  background: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

footer.container {
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
  font-size: 0.75em;
}

.footer-company {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-tagline {
  margin: 0 0 4px 0;
  font-size: 0.9em;
  color: var(--text-dark);
}

.footer-tagline-en {
  margin: 0 0 12px 0;
  font-size: 0.8em;
  color: var(--text-light);
}

.footer-links {
  margin: 0;
}

.footer-links a {
  margin: 0 8px;
  color: var(--primary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer-copyright {
  margin: 12px 0 0 0;
  font-size: 0.85em;
  color: var(--text-light);
}

/* Dunkles Theme ist jetzt Standard - keine Media Query mehr nötig */
/* Alle Farben sind bereits in :root dunkel definiert */

/* Zusätzliche Dark-Theme Anpassungen */
.wrap {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  background: #334155;
  border-color: #475569;
  color: var(--text-dark);
}

.lists li,
.archive li,
.optin-form ul li,
.option-box {
  background: #334155;
}

h2 {
  color: var(--secondary);
}

a {
  color: var(--secondary);
}

a:hover {
  color: #ffd0d4;
}

.footer-links a {
  color: var(--secondary);
}

.footer-links a:hover {
  color: #ffd0d4;
}

.danger-box {
  background: #3b1c1c;
}

@media screen and (max-width: 650px) {
  .container {
    margin: 20px 15px;
  }

  .wrap {
    padding: 30px 25px;
    border-radius: 16px;
  }
}
