/* — Basis & Hintergrund — */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    linear-gradient(180deg, rgba(232,240,254,0.85) 0%, rgba(26,26,46,0.85) 100%),
    url('TrumpInfanti26.jpg') center/cover no-repeat;
  padding: 1rem;
}

/* — Karte — */
.container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

/* — Tabs — */
.tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}

.tab {
  flex: 1;
  padding: 1rem;
  border: none;
  background: #f8f9fa;
  font-size: 1rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: #fff;
  color: #1a73e8;
  box-shadow: inset 0 -2px 0 #1a73e8;
}

.tab:hover:not(.active) {
  color: #444;
  background: #f0f0f0;
}

/* — Formulare — */
.form {
  display: none;
  padding: 2rem;
}

.form.active {
  display: block;
}

.form h2 {
  font-size: 1.5rem;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* — Felder — */
.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.field input:focus {
  border-color: #1a73e8;
}

/* — Sicherheitsfrage — */
.field.security label {
  font-weight: 500;
  color: #c62828;
  font-size: 0.9rem;
}

.hint {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  min-height: 1.2em;
}

.hint.correct {
  color: #2e7d32;
}

.hint.wrong {
  color: #c62828;
}

/* — Buttons — */
.btn-primary {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 10px;
  background: #1a73e8;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.25rem;
}

.btn-primary:hover:not(:disabled) {
  background: #1557b0;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* — Fehler — */
.error {
  color: #c62828;
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-bottom: 0.5rem;
}

/* — Responsive — */
@media (max-width: 480px) {
  .form {
    padding: 1.5rem;
  }
}
