:root {
  --blau: #1E3A6E;
  --orange: #D95C1A;
  --gold: #C49A2A;
  --hellblau: #D5E0F0;
  --grau: #F4F4F4;
  --text: #1a1a1a;
  --radius: 10px;
}

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

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

/* ── HEADER ── */
.site-header {
  background: var(--blau);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-header .logo-text {
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.3;
}
.site-header .logo-sub {
  color: var(--hellblau);
  font-size: 12px;
  font-weight: normal;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blau) 0%, #2a4f8f 100%);
  color: #fff;
  padding: 48px 24px 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(22px, 5vw, 34px);
  font-weight: bold;
  margin-bottom: 12px;
}
.hero p {
  font-size: 16px;
  color: var(--hellblau);
  max-width: 560px;
  margin: 0 auto;
}
.hero .badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── CONTAINER ── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── FORMULAR ── */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(30,58,110,0.10);
  margin: -28px auto 40px;
  padding: 32px 28px;
  max-width: 640px;
  position: relative;
}

.section-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--hellblau);
}
.section-title:first-child { margin-top: 0; }

.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .field-group { grid-template-columns: 1fr; }
  .form-card { padding: 22px 16px; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field.full { grid-column: 1 / -1; }

label {
  font-size: 13px;
  font-weight: bold;
  color: var(--blau);
}
label .optional {
  font-weight: normal;
  color: #888;
  font-size: 12px;
}

input, textarea, select {
  border: 1.5px solid #ccc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: Arial, sans-serif;
  width: 100%;
  transition: border-color 0.2s;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(30,58,110,0.10);
}
textarea { resize: vertical; min-height: 80px; }

/* ── HINWEIS-BOX ── */
.info-box {
  background: var(--hellblau);
  border-left: 4px solid var(--blau);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--blau);
  margin: 14px 0;
  line-height: 1.5;
}
.info-box strong { display: block; margin-bottom: 4px; }

.warn-box {
  background: #FFF4E5;
  border-left: 4px solid var(--orange);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  font-size: 13px;
  color: #7a3a00;
  margin: 14px 0;
}

/* ── DATENSCHUTZ ── */
.dsgvo-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 13px;
  color: #444;
}
.dsgvo-check input[type=checkbox] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blau);
}

/* ── SUBMIT ── */
.btn-submit {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-submit:hover { background: #b84c12; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }

/* ── ERGEBNIS-SEITE ── */
.result-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(30,58,110,0.10);
  margin: 32px auto;
  padding: 32px 28px;
  max-width: 640px;
  text-align: center;
}
.result-card .check-icon {
  width: 64px;
  height: 64px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}
.result-card h2 {
  color: var(--blau);
  font-size: 22px;
  margin-bottom: 10px;
}
.result-card p {
  color: #555;
  font-size: 15px;
  margin-bottom: 24px;
}

.download-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 480px) { .download-options { grid-template-columns: 1fr; } }

.dl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid transparent;
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.dl-btn .dl-icon { font-size: 28px; }
.dl-btn.wallet { background: var(--blau); color: #fff; }
.dl-btn.pdf    { background: var(--grau); color: var(--blau); border-color: var(--blau); }

.hint {
  font-size: 12px;
  color: #888;
  margin-top: 20px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--blau);
  color: var(--hellblau);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  margin-top: 60px;
}
.site-footer a { color: #fff; }

/* ── LOADING ── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,58,110,0.7);
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: #fff;
  font-size: 16px;
}
.loading-overlay.active { display: flex; }
.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
