@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
header {
  background: #FC4C02;
  color: white;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.header-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { font-family: 'Righteous', sans-serif; font-size: 22px; color: white; letter-spacing: 0.5px; }

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

/* ── Main ────────────────────────────────────────────────────────────────────── */
main {
  flex: 1;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Card ────────────────────────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 640px;
}

.card.center { text-align: center; }

h1 { font-size: 24px; font-weight: 700; margin-bottom: 10px; color: #111; }
h2 { font-size: 18px; font-weight: 600; margin: 28px 0 12px; color: #222; }
h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: #444; }

.subtitle { color: #555; font-size: 15px; margin-bottom: 28px; line-height: 1.5; }
.hint      { color: #888; font-size: 13px; margin-top: 20px; line-height: 1.6; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }

.btn-primary   { background: #FC4C02; color: white; }
.btn-secondary { background: #eee; color: #333; }
.btn-danger    { background: #e74c3c; color: white; }
.btn-small     { padding: 6px 12px; font-size: 13px; }
.btn-large     { padding: 14px 32px; font-size: 16px; margin-top: 20px; width: 100%; text-align: center; }

/* ── Login-Form ──────────────────────────────────────────────────────────────── */
.abgekreist-logo {
  width: 100px;
  margin-bottom: 10px;
  object-fit: contain;
}

.abgekreist-title {
  font-family: 'Righteous', sans-serif;
  font-size: 42px;
  color: #FC4C02;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.brand-icon { width: 56px; margin-bottom: 16px; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  text-align: left;
}

.login-form label { font-size: 14px; font-weight: 600; color: #333; }

.login-form input[type="email"] {
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.login-form input[type="email"]:focus { border-color: #FC4C02; }

/* ── Alerts ──────────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-error   { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2; }
.alert-success { background: #eafaf1; color: #1e8449; border: 1px solid #a9dfbf; }

/* ── Info-Box ────────────────────────────────────────────────────────────────── */
.info-box {
  background: #f0f4ff;
  border: 1px solid #c8d8f8;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #2c3e8c;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ── Datenspeicherung Radio ──────────────────────────────────────────────────── */
.data-option { border: 1.5px solid #eee; border-radius: 8px; padding: 16px; }
.data-option legend { font-size: 13px; font-weight: 600; color: #555; padding: 0 6px; }

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
}
.radio-label + .radio-label { border-top: 1px solid #f0f0f0; }
.radio-label input[type="radio"] { margin-top: 3px; accent-color: #FC4C02; flex-shrink: 0; }
.radio-label strong { display: block; font-size: 14px; margin-bottom: 2px; }
.radio-label span { font-size: 13px; color: #777; }

/* ── DSGVO-Hinweis ───────────────────────────────────────────────────────────── */
.dsgvo-hint {
  background: #fffbea;
  border: 1px solid #f0e080;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #6b5900;
  line-height: 1.5;
  margin-top: 16px;
}

/* ── Danger Zone ─────────────────────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid #eee; margin: 28px 0; }
.danger-zone { }
.danger-zone p { font-size: 13px; color: #888; margin-bottom: 10px; }

/* ── Loading ─────────────────────────────────────────────────────────────────── */
.spinner {
  width: 52px; height: 52px;
  border: 5px solid #eee;
  border-top-color: #FC4C02;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-message { font-size: 15px; color: #444; margin-bottom: 16px; min-height: 24px; }

.progress-bar-outer {
  background: #eee;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  margin: 0 auto 20px;
  width: 100%;
  max-width: 360px;
}
.progress-bar-inner {
  height: 100%;
  background: #FC4C02;
  border-radius: 99px;
  width: 5%;
  transition: width 0.6s ease;
}

/* ── Denied ──────────────────────────────────────────────────────────────────── */
.denied-icon { font-size: 56px; margin-bottom: 16px; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #bbb;
}

/* ── Feedback-Formular ───────────────────────────────────────────────────────── */
.feedback-form { display: flex; flex-direction: column; gap: 0; }

.feedback-section {
  border: 1.5px solid #eee;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.feedback-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.5;
}

.feedback-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.feedback-form textarea:focus { border-color: #FC4C02; }

.checkbox-label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 12px 0 4px;
  cursor: pointer;
  border-top: 1px solid #eee;
  align-items: start;
}
.checkbox-label:first-of-type { border-top: none; padding-top: 4px; }
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #FC4C02;
  width: 16px;
  height: 16px;
}
.checkbox-label > span { font-size: 13px; line-height: 1.5; color: #444; }
.checkbox-label > span strong { font-size: 14px; display: block; margin-bottom: 2px; color: #222; }

.feedback-section textarea {
  display: block;
  width: 100%;
  margin-top: 14px;
  box-sizing: border-box;
}

/* ── Kontakt-Footer ──────────────────────────────────────────────────────────── */
.contact-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #888;
  text-align: center;
  line-height: 1.8;
}
.contact-footer a { color: #FC4C02; text-decoration: none; }
.contact-footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .card { padding: 24px 20px; }
}
