/* ============================================
   KlarCheck – Stylesheet
   Design: Vertrauenswürdig, klar, deutsch
   Palette: Navy, Slate, Amber-Accent, Weiß
   ============================================ */

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

:root {
  --navy:        #1B3A4B;
  --navy-light:  #234E63;
  --slate:       #4A6274;
  --slate-light: #8BA3B0;
  --amber:       #F59E0B;
  --amber-light: #FEF3C7;
  --green:       #16A34A;
  --green-light: #DCFCE7;
  --yellow:      #D97706;
  --yellow-light:#FEF9C3;
  --red:         #DC2626;
  --red-light:   #FEE2E2;
  --white:       #FFFFFF;
  --gray-50:     #F9FAFB;
  --gray-100:    #F3F4F6;
  --gray-200:    #E5E7EB;
  --gray-400:    #9CA3AF;
  --gray-500:    #6B7280;
  --gray-700:    #374151;
  --gray-900:    #111827;
  --radius:      10px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow:      0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ───────────────────────────────── */
.container      { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm   { max-width: 680px; }

/* ── NAV ──────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 20px; font-weight: 800;
  color: var(--navy); letter-spacing: -0.5px;
}
.logo span { color: var(--amber); }
.nav-step { font-size: 13px; color: var(--gray-500); font-weight: 500; }

/* ── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: 15px;
  border: none; border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--navy); color: var(--white);
  padding: 13px 28px;
  box-shadow: 0 2px 8px rgba(27,58,75,0.3);
}
.btn-primary:hover {
  background: var(--navy-light);
  box-shadow: 0 4px 16px rgba(27,58,75,0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--gray-100); color: var(--gray-700);
  padding: 11px 24px;
}
.btn-secondary:hover { background: var(--gray-200); }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
  padding: 11px 24px;
}
.btn-outline:hover { background: var(--navy); color: white; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.6; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}

/* ── HERO ─────────────────────────────────── */
.hero {
  padding: 80px 24px 64px;
  text-align: center;
  background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
}
.hero-badge {
  display: inline-block;
  background: var(--amber-light); color: var(--yellow);
  font-size: 13px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--navy); }
.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--gray-500);
  max-width: 580px; margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-hint {
  font-size: 13px; color: var(--gray-400);
  margin-top: 12px;
}
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 28px;
}
.trust-badge {
  background: var(--white); border: 1px solid var(--gray-200);
  color: var(--gray-700); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

/* ── SECTIONS ─────────────────────────────── */
.section { padding: 72px 24px; }
.bg-light { background: var(--gray-50); }
.bg-disclaimer { background: var(--amber-light); }

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; letter-spacing: -0.8px;
  text-align: center; margin-bottom: 12px;
  color: var(--gray-900);
}
.section-sub {
  text-align: center; color: var(--gray-500);
  font-size: 16px; margin-bottom: 48px;
}

/* ── STEPS ────────────────────────────────── */
.steps {
  display: flex; align-items: flex-start;
  justify-content: center; gap: 8px;
  flex-wrap: wrap;
}
.step {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px 20px;
  text-align: center; flex: 1; min-width: 160px; max-width: 200px;
  position: relative; box-shadow: var(--shadow-sm);
}
.step-icon { font-size: 28px; margin-bottom: 8px; }
.step-num {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: white;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--gray-900); }
.step p  { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.step-arrow {
  font-size: 20px; color: var(--gray-400);
  padding-top: 40px; flex-shrink: 0;
}

/* ── FEATURES ─────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px 24px;
}
.feature-icon { font-size: 24px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ── EXAMPLE REPORT ───────────────────────── */
.example-report {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.report-header {
  padding: 24px; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.report-header p { font-size: 14px; color: var(--gray-500); margin-top: 8px; }
.report-section { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); }
.report-section:last-child { border-bottom: none; }
.report-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--gray-700); }
.report-item { background: var(--yellow-light); padding: 12px 16px; border-radius: 8px; }
.report-item strong { font-size: 14px; display: block; margin-bottom: 4px; }
.report-item p { font-size: 13px; color: var(--gray-700); }
.report-section ul { padding-left: 20px; }
.report-section ul li { font-size: 14px; color: var(--gray-700); margin-bottom: 6px; }

/* ── BADGES ───────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
}
.badge-gruen  { background: var(--green-light);  color: var(--green); }
.badge-gelb   { background: var(--yellow-light); color: var(--yellow); }
.badge-rot    { background: var(--red-light);    color: var(--red); }

/* ── FAQ ──────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.faq-item p  { font-size: 15px; color: var(--gray-500); line-height: 1.7; }

/* ── DISCLAIMER ───────────────────────────── */
.disclaimer-text {
  font-size: 13px; color: var(--yellow);
  text-align: center; max-width: 720px; margin: 0 auto;
  line-height: 1.7;
}
.disclaimer-box {
  background: var(--amber-light); border: 1px solid #FDE68A;
  border-radius: var(--radius); padding: 14px 18px;
  font-size: 13px; color: var(--yellow); margin-bottom: 20px;
}

/* ── FOOTER ───────────────────────────────── */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 40px 24px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 16px;
}
.footer .logo { color: white; }
.footer .logo span { color: var(--amber); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-links a:hover { color: white; text-decoration: none; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-minimal {
  background: var(--gray-50); border-top: 1px solid var(--gray-200);
  padding: 16px 24px; text-align: center;
}
.footer-minimal .footer-links a { color: var(--gray-500); }

/* ── UPLOAD PAGE ──────────────────────────── */
.page-upload { background: var(--gray-50); min-height: 100vh; }
.upload-main { padding: 40px 24px 80px; }

.progress-bar {
  height: 4px; background: var(--gray-200);
  border-radius: 2px; margin-bottom: 32px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--navy);
  border-radius: 2px; transition: width 0.3s ease;
}

.page-title { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.page-sub { color: var(--gray-500); font-size: 15px; margin-bottom: 32px; }

/* Form */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--gray-700); margin-bottom: 8px;
}
.required { color: var(--red); }
.form-input {
  width: 100%; padding: 12px 14px;
  font-family: inherit; font-size: 15px; color: var(--gray-900);
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,58,75,0.1); }
.form-input.error { border-color: var(--red); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.field-error { font-size: 13px; color: var(--red); margin-top: 6px; }
.field-hint  { font-size: 12px; color: var(--gray-400); margin-top: 6px; }

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius); background: var(--white);
  transition: all 0.15s; cursor: pointer; position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--navy); background: #F0F7FF;
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.upload-placeholder { padding: 40px 24px; text-align: center; }
.upload-icon { font-size: 36px; margin-bottom: 12px; }
.upload-text { font-size: 15px; color: var(--gray-700); margin-bottom: 6px; line-height: 1.5; }
.upload-hint { font-size: 12px; color: var(--gray-400); }
.upload-preview {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.file-icon { font-size: 24px; }
.file-name { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.file-size { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.remove-file {
  margin-left: auto; background: none; border: none;
  font-size: 20px; color: var(--gray-400); cursor: pointer; line-height: 1;
  padding: 4px 8px; border-radius: 4px;
}
.remove-file:hover { background: var(--gray-100); color: var(--red); }

/* Checkbox */
.checkbox-label {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--gray-600); cursor: pointer; line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0;
  margin-top: 2px; cursor: pointer; accent-color: var(--navy);
}

.submit-hint {
  text-align: center; font-size: 12px; color: var(--gray-400);
  margin-top: 12px;
}

/* Notice */
.notice {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 20px;
}
.notice-warn { background: var(--yellow-light); color: var(--yellow); border: 1px solid #FDE68A; }

/* ── RESULT PAGE ──────────────────────────── */
.page-result { background: var(--gray-50); min-height: 100vh; }
.result-main { padding: 40px 24px 80px; }

/* Loading */
.loading-state { text-align: center; padding: 60px 0; }
.loading-state h2 { font-size: 24px; font-weight: 700; margin: 20px 0 8px; }
.loading-state p  { color: var(--gray-500); margin-bottom: 32px; }
.spinner {
  width: 52px; height: 52px; margin: 0 auto;
  border: 4px solid var(--gray-200);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-steps { display: flex; flex-direction: column; gap: 10px; max-width: 260px; margin: 0 auto; }
.loading-step {
  padding: 10px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--gray-400);
  background: var(--gray-100); transition: all 0.3s;
}
.loading-step.active {
  background: var(--navy); color: white;
  box-shadow: var(--shadow-sm);
}
.loading-step.done { background: var(--green-light); color: var(--green); }

/* Error */
.error-state { text-align: center; padding: 60px 0; }
.error-icon { font-size: 48px; margin-bottom: 16px; }
.error-state h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.error-state p  { color: var(--gray-500); margin-bottom: 24px; }
.payment-pending { text-align: center; padding: 60px 0; }
.pending-icon { font-size: 48px; margin-bottom: 16px; }
.payment-pending h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.payment-pending p  { color: var(--gray-500); margin-bottom: 24px; }

/* Result cards */
.result-success-banner {
  background: var(--green-light); color: var(--green);
  font-size: 14px; font-weight: 600;
  padding: 12px 16px; border-radius: var(--radius);
  margin-bottom: 20px; text-align: center;
}
.report-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px;
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.report-section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--slate-light);
  margin-bottom: 14px;
}
.badge-large {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 20px;
  font-size: 16px; font-weight: 700;
  margin-bottom: 12px;
}
.badge-large.gruen  { background: var(--green-light);  color: var(--green); }
.badge-large.gelb   { background: var(--yellow-light); color: var(--yellow); }
.badge-large.rot    { background: var(--red-light);    color: var(--red); }

.auffaelligkeit-item {
  background: var(--yellow-light); border-left: 3px solid var(--amber);
  padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 12px;
}
.auffaelligkeit-item:last-child { margin-bottom: 0; }
.auffaelligkeit-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.auffaelligkeit-item p { font-size: 14px; color: var(--gray-700); line-height: 1.5; }

.report-list { padding-left: 20px; }
.report-list li { font-size: 14px; color: var(--gray-700); margin-bottom: 8px; line-height: 1.6; }
.report-list-questions li {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 10px 14px; list-style: none;
  margin-left: -20px; font-style: italic;
}
.report-list-questions li::before { content: "❓ "; }

.vorlage-hint { font-size: 13px; color: var(--gray-400); margin-bottom: 12px; }
.vorlage-box {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px; font-size: 14px;
  line-height: 1.7; white-space: pre-wrap; color: var(--gray-700);
  font-family: inherit; margin-bottom: 12px;
}
.btn-copy { font-size: 14px; }

.report-disclaimer {
  background: var(--amber-light); border: 1px solid #FDE68A;
  border-radius: var(--radius); padding: 16px 18px;
  font-size: 12px; color: var(--yellow); line-height: 1.6;
  margin-bottom: 24px;
}
.result-cta { text-align: center; padding: 24px 0; }
.result-cta p { font-size: 14px; color: var(--gray-400); margin-bottom: 12px; }

/* ── LEGAL PAGES ──────────────────────────── */
.legal-main { padding: 48px 24px 80px; }
.legal-main h1 { font-size: 32px; font-weight: 800; margin-bottom: 32px; }
.legal-main h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.legal-main p, .legal-main ul { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 12px; }
.legal-main ul { padding-left: 20px; }
.legal-main li { margin-bottom: 6px; }
.legal-notice {
  background: var(--yellow-light); border: 1px solid #FDE68A;
  border-radius: var(--radius); padding: 14px 18px;
  font-size: 14px; color: var(--yellow); margin-bottom: 28px;
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 640px) {
  .steps { gap: 4px; }
  .step-arrow { display: none; }
  .step { max-width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-title { font-size: 30px; }
  .loading-steps { max-width: 100%; }
}
