/* ============================================================
   CONCIDE Entscheidungskultur-Check – Styles
   Typografie gemäß Brand: Museo für Headlines, DM Sans für Text.
   Alle Fonts lokal (fonts.css).
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: #f7faf9;
  color: #1a2e35;
  -webkit-font-smoothing: antialiased;
}

:root {
  --main: #37A97B; --dark: #2d8a66; --cyan: #39B3C2; --lime: #BCCF17;
  --green: #62AF52; --text: #1a2e35; --gray: #5a6f78; --light: #f7faf9;
  --font-headline: 'MuseoSansRounded', 'DM Sans', 'Segoe UI', sans-serif;
}

/* Header */
.test-header {
  background: linear-gradient(135deg, #62AF52 0%, #37A97B 40%, #39B3C2 100%);
  padding: 24px; text-align: center; position: relative; overflow: hidden;
}
.test-header::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.06); }
.test-header::after { content: ''; position: absolute; bottom: -40px; left: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.04); }
.test-header__logo { display: block; margin: 0 auto 12px; position: relative; z-index: 1; }
.test-header h1 { font-family: var(--font-headline); color: #fff; font-size: 24px; font-weight: 700; margin-bottom: 6px; position: relative; }
.test-header p { color: rgba(255,255,255,.85); font-size: 14px; position: relative; }

/* Progress bar */
.progress-wrap { padding: 0 24px; max-width: 680px; margin: 0 auto; }
.progress-bar-bg { height: 6px; background: #e8eef0; border-radius: 10px; overflow: hidden; margin-top: -3px; position: relative; z-index: 2; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--main), var(--lime)); border-radius: 10px; transition: width .5s cubic-bezier(.16,1,.3,1); width: 0; }
.progress-text { text-align: center; margin-top: 10px; font-size: 13px; color: var(--gray); font-weight: 500; }

/* Container */
.test-container { max-width: 680px; margin: 0 auto; padding: 32px 24px 60px; }

/* Intro */
.intro-card { background: #fff; border-radius: 24px; padding: 40px 32px; text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,.04); border: 1px solid #e8eef0; }
.intro-card h2 { font-family: var(--font-headline); font-size: 22px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.intro-card p { color: var(--gray); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.intro-card .info-badges { display: flex; justify-content: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.info-badge { display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #e6f5ef, #d4f0e8); padding: 8px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; color: var(--dark); }
.info-badge svg { flex-shrink: 0; }

/* Fragen */
.question-card { background: #fff; border-radius: 24px; padding: 36px 28px; box-shadow: 0 4px 24px rgba(0,0,0,.04); border: 1px solid #e8eef0; display: none; animation: fadeSlide .4s ease-out; }
.question-card.active { display: block; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
.q-cat { font-size: 12px; font-weight: 700; color: var(--main); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.q-number { display: inline-block; background: linear-gradient(135deg, var(--main), var(--cyan)); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 15px; font-weight: 700; line-height: 36px; text-align: center; margin-bottom: 16px; }
.q-text { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 28px; }

/* Binär-Buttons */
.q-binary { display: flex; gap: 16px; margin-top: 8px; }
.binary-btn { flex: 1; padding: 20px 16px; border-radius: 16px; border: 2px solid #e8eef0; background: #fff; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--gray); transition: all .3s cubic-bezier(.16,1,.3,1); display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; }
.binary-btn:hover { transform: translateY(-2px); }
.binary-btn.btn-no:hover { border-color: #e05555; color: #e05555; background: #fef5f5; }
.binary-btn.btn-yes:hover { border-color: var(--main); color: var(--main); background: #f0fdfb; }
.binary-btn.btn-no.selected { border-color: #e05555; background: #e05555; color: #fff; box-shadow: 0 4px 16px rgba(224,85,85,.25); }
.binary-btn.btn-yes.selected { border-color: var(--main); background: var(--main); color: #fff; box-shadow: 0 4px 16px rgba(55,169,123,.3); }
.binary-btn svg { flex-shrink: 0; }

/* Navigation */
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e8eef0; }
.btn-back { background: none; border: 2px solid #e8eef0; padding: 10px 20px; border-radius: 30px; font-size: 14px; font-weight: 600; color: var(--gray); cursor: pointer; transition: all .25s; font-family: inherit; }
.btn-back:hover { border-color: var(--main); color: var(--main); }
.btn-next { background: var(--lime); color: #fff; border: none; padding: 12px 28px; border-radius: 30px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .3s; font-family: inherit; box-shadow: 0 4px 16px rgba(188,207,23,.3); display: flex; align-items: center; gap: 8px; }
.btn-next:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(188,207,23,.45); }
.btn-next:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-start { background: var(--lime); color: #fff; border: none; padding: 16px 36px; border-radius: 40px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all .3s; font-family: inherit; box-shadow: 0 4px 20px rgba(188,207,23,.35); display: inline-flex; align-items: center; gap: 10px; }
.btn-start:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(188,207,23,.5); }

/* Kontaktformular */
.contact-card { background: #fff; border-radius: 24px; padding: 40px 32px; box-shadow: 0 4px 24px rgba(0,0,0,.04); border: 1px solid #e8eef0; display: none; animation: fadeSlide .4s ease-out; }
.contact-card.active { display: block; }
.contact-card h2 { font-family: var(--font-headline); font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.contact-card p { color: var(--gray); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.contact-card__nav { display: flex; justify-content: space-between; align-items: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input { width: 100%; padding: 14px 18px; border: 2px solid #e8eef0; border-radius: 14px; font-size: 15px; font-family: inherit; transition: border-color .25s; outline: none; color: var(--text); }
.form-group input:focus { border-color: var(--main); }
.form-group input::placeholder { color: #b0bec5; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--gray); line-height: 1.5; margin-top: 20px; margin-bottom: 24px; cursor: pointer; }
.consent-label a { color: var(--main); }
.consent-label input[type=checkbox] { margin-top: 3px; accent-color: var(--main); width: 18px; height: 18px; flex-shrink: 0; }
.testaccount-optin { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 24px; padding: 16px 18px; border: 2px solid var(--lime); border-radius: 14px; background: #fbfdec; cursor: pointer; transition: box-shadow .25s; }
.testaccount-optin:hover { box-shadow: 0 4px 16px rgba(188,207,23,.22); }
.testaccount-optin input[type=checkbox] { margin-top: 2px; accent-color: var(--main); width: 20px; height: 20px; flex-shrink: 0; }
.testaccount-optin__text { display: flex; flex-direction: column; gap: 4px; }
.testaccount-optin__text strong { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; }
.testaccount-optin__hint { font-size: 12px; color: var(--gray); line-height: 1.5; }
/* Honeypot: für Menschen unsichtbar */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* Ergebnis */
.result-card { background: #fff; border-radius: 24px; padding: 40px 32px; box-shadow: 0 4px 24px rgba(0,0,0,.04); border: 1px solid #e8eef0; display: none; animation: fadeSlide .5s ease-out; text-align: center; }
.result-card.active { display: block; }
.result-score-ring { position: relative; width: 160px; height: 160px; margin: 0 auto 24px; }
.result-score-ring svg { transform: rotate(-90deg); }
.result-score-ring .score-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--font-headline); font-size: 42px; font-weight: 700; color: var(--text); }
.result-score-ring .score-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%,24px); font-size: 13px; color: var(--gray); font-weight: 500; }
.result-level { font-family: var(--font-headline); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.result-desc { color: var(--gray); font-size: 15px; line-height: 1.7; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.result-categories { text-align: left; margin-bottom: 32px; }
.result-cat { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #e8eef0; }
.result-cat:last-child { border-bottom: none; }
.result-cat-label { flex: 1; font-size: 14px; font-weight: 600; color: var(--text); }
.result-cat-bar { flex: 1.5; height: 10px; background: #e8eef0; border-radius: 10px; overflow: hidden; }
.result-cat-fill { height: 100%; border-radius: 10px; transition: width 1s cubic-bezier(.16,1,.3,1); }
.result-cat-score { font-size: 14px; font-weight: 700; color: var(--main); min-width: 40px; text-align: right; }
/* Ergebnis nur per E-Mail (show_on_screen: false) */
.result-emailonly { margin-bottom: 8px; }
.result-emailonly__icon { width: 96px; height: 96px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; background: #e6f5ef; border-radius: 50%; }
.result-emailonly h2 { font-family: var(--font-headline); font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.result-emailonly p { color: var(--gray); font-size: 15px; line-height: 1.7; max-width: 460px; margin: 0 auto; }

.result-cta { margin-top: 24px; }
.result-cta a { display: inline-flex; align-items: center; gap: 10px; background: var(--lime); color: #fff; padding: 14px 32px; border-radius: 40px; font-size: 15px; font-weight: 700; text-decoration: none; transition: all .3s; box-shadow: 0 4px 20px rgba(188,207,23,.35); }
.result-cta a:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(188,207,23,.5); }

/* Bestätigung */
.confirm-msg { background: linear-gradient(135deg, #e6f5ef, #d4f0e8); border-radius: 16px; padding: 20px 24px; margin-top: 20px; display: none; }
.confirm-msg.show { display: block; }
.confirm-msg p { color: var(--dark); font-size: 14px; line-height: 1.6; }
.confirm-msg.error { background: #fef5f5; }
.confirm-msg.error p { color: #c0392b; }

/* Responsive */
@media (max-width: 480px) {
  .test-header h1 { font-size: 20px; }
  .q-text { font-size: 16px; }
  .form-row { flex-direction: column; gap: 0; }
  .result-score-ring { width: 130px; height: 130px; }
  .result-score-ring .score-text { font-size: 34px; }
}
