:root {
  --gold: #E8A100;
  --petrol: #15808E;
  --dunkelblau: #13294B;
  --weiss: #FFFFFF;
  --rot: #C0453A;
  --gelb: #E8A100;
  --gruen: #3F8F5F;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', Verdana, sans-serif;
  background: radial-gradient(circle at 85% 0%, #1e3d6d 0%, var(--dunkelblau) 45%, #0c1a30 100%);
  color: var(--dunkelblau);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Verspielte Deko-Blobs im Hintergrund */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(6px);
}
body::before {
  top: -110px; left: -120px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(232,161,0,0.32), transparent 70%);
}
body::after {
  bottom: -140px; right: -130px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(21,128,142,0.38), transparent 70%);
}

h1, h2, h3, .brand-font {
  font-family: 'Lora', Georgia, serif;
}

.wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

header.top {
  text-align: center;
  color: var(--weiss);
  padding: 26px 0 8px;
  position: relative;
}

header.top .deko-ring {
  position: absolute;
  top: -6px; right: 8px;
  width: 46px; height: 46px;
  border: 2.5px solid var(--gold);
  border-radius: 50%;
  opacity: 0.8;
}
header.top .deko-punkt {
  position: absolute;
  border-radius: 50%;
}
header.top .deko-punkt.p1 { top: -2px; left: 14px; width: 11px; height: 11px; background: var(--gold); }
header.top .deko-punkt.p2 { top: 16px; left: 30px; width: 7px; height: 7px; background: var(--petrol); }

header.top .marke {
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.karte {
  background: var(--weiss);
  border-radius: 22px;
  padding: 34px 28px;
  box-shadow: 0 20px 46px rgba(0,0,0,0.32);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.karte::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--petrol));
}

.fortschritt {
  width: 100%;
  height: 9px;
  background: rgba(255,255,255,0.22);
  border-radius: 9px;
  overflow: hidden;
  margin: 20px 0 4px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}
.fortschritt-balken {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--petrol));
  border-radius: 9px;
  transition: width 0.35s ease;
  width: 0%;
  box-shadow: 0 0 10px rgba(232,161,0,0.6);
}
.fortschritt-label {
  color: var(--weiss);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-align: right;
  opacity: 0.85;
  margin-bottom: 12px;
  font-weight: 600;
}

.screen { display: none; flex: 1; flex-direction: column; }
.screen.aktiv { display: flex; }

/* Haelt die einzelne Frage vertikal mittig im Screen, Buttons bleiben unten. */
.frage-inhalt { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.badge-pill {
  display: inline-block;
  align-self: flex-start;
  background: rgba(232,161,0,0.12);
  color: #a56c00;
  border: 1.5px solid rgba(232,161,0,0.45);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

h1.titel { font-size: 27px; line-height: 1.32; margin: 0 0 14px; color: var(--dunkelblau); }
p.intro-text { font-size: 16.5px; line-height: 1.65; color: #3a3a3a; }

.bereich-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--petrol);
  background: rgba(21,128,142,0.1);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  align-self: flex-start;
}
h2.bereich-titel { font-size: 22px; margin: 0 0 2px; color: var(--dunkelblau); }
p.bereich-untertitel { color: var(--petrol); font-size: 14px; margin: 0 0 22px; font-weight: 600; }

.aussage {
  background: #f7f8fa;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin-bottom: 16px;
}
.aussage-text { font-size: 15.5px; margin: 0; color: #232323; line-height: 1.5; padding-top: 3px; }

/* Einzelne Frage pro Screen: die Aussage steht als groesserer Blickfang fuer sich,
   statt als Listeneintrag neben zwei anderen. */
.aussage-einzeln {
  background: transparent;
  border: none;
  padding: 10px 0 4px;
  margin-bottom: 4px;
}
.aussage-einzeln .aussage-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--dunkelblau);
  padding-top: 0;
  margin-bottom: 30px;
}

.regler-zeile { display: flex; align-items: center; gap: 12px; }
input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--rot), var(--gelb) 50%, var(--gruen));
  opacity: 0.55;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--petrol);
  border: 3px solid var(--weiss);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--petrol);
  border: 3px solid var(--weiss);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  cursor: pointer;
}
.regler-wert {
  min-width: 30px;
  text-align: center;
  font-weight: 700;
  color: var(--weiss);
  background: var(--petrol);
  border-radius: 8px;
  padding: 3px 0;
  font-size: 15px;
}
.skala-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #888;
  margin-top: 6px;
}

.buttons { margin-top: auto; padding-top: 22px; display: flex; gap: 12px; justify-content: space-between; }
button, .btn {
  font-family: 'Poppins', sans-serif;
  font-size: 15.5px;
  border: none;
  border-radius: 30px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
button:active, .btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(90deg, var(--gold), #f2b52a);
  color: var(--dunkelblau);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(232,161,0,0.35);
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-sekundaer { background: transparent; color: var(--petrol); border: 2px solid var(--petrol); font-weight: 700; }
.btn-sekundaer:hover { background: rgba(21,128,142,0.06); }
.btn-block { width: 100%; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Vorschau-Ergebnis */
.score-kreis {
  width: 158px; height: 158px;
  border-radius: 50%;
  margin: 14px auto 20px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  background: conic-gradient(var(--gold) calc(var(--score,0)*1%), #ececec 0);
  position: relative;
  box-shadow: 0 10px 26px rgba(232,161,0,0.25);
}
.score-kreis::before {
  content: "";
  position: absolute;
  width: 122px; height: 122px;
  background: var(--weiss);
  border-radius: 50%;
}
.score-zahl { position: relative; font-size: 36px; font-weight: 700; color: var(--dunkelblau); font-family: 'Lora', Georgia, serif; }
.score-unterschrift { position: relative; font-size: 12px; color: #888; }

.ampel-liste { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.ampel-zeile {
  display: flex;
  align-items: flex-start;
  gap: 0;
  border-radius: 14px;
  padding: 13px 16px 13px 18px;
  position: relative;
  overflow: hidden;
  background: #f7f7f5;
}
.ampel-zeile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
}
.ampel-zeile.rot { background: #fbe6e2; }
.ampel-zeile.rot::before { background: var(--rot); }
.ampel-zeile.gelb { background: #fdedcf; }
.ampel-zeile.gelb::before { background: var(--gelb); }
.ampel-zeile.gruen { background: #e2f2e9; }
.ampel-zeile.gruen::before { background: var(--gruen); }
.ampel-name { font-weight: 700; color: var(--dunkelblau); font-size: 14.5px; }

.neugier-box {
  background: rgba(21,128,142,0.08);
  border-left: 4px solid var(--petrol);
  border-radius: 10px;
  padding: 15px 16px;
  font-size: 14px;
  color: #2c2c2c;
  margin: 6px 0 20px;
}

.formular label { display: block; font-size: 14px; color: #333; margin: 14px 0 6px; font-weight: 700; }
.formular input[type=text], .formular input[type=email] {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid #e0e0e0;
  background: #fafbfc;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.formular input:focus { border-color: var(--petrol); outline: none; box-shadow: 0 0 0 3px rgba(21,128,142,0.12); background: var(--weiss); }

.checkbox-zeile { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; }
.checkbox-zeile input { margin-top: 4px; }
.checkbox-zeile label { font-size: 13px; color: #444; line-height: 1.5; font-weight: normal; }
.checkbox-zeile a { color: var(--petrol); }

.fehler { color: var(--rot); font-size: 13px; margin-top: 8px; display: none; }

footer.rechts-fuss {
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  padding: 18px 0 4px;
}
footer.rechts-fuss a { color: rgba(255,255,255,0.85); text-decoration: none; margin: 0 8px; }
footer.rechts-fuss a:hover { text-decoration: underline; }

@media (max-width: 420px) {
  .karte { padding: 26px 18px; }
  h1.titel { font-size: 22px; }
  .aussage-einzeln .aussage-text { font-size: 18.5px; margin-bottom: 24px; }
}

/* Screenshot-Modus: Karte auf Inhaltshoehe schrumpfen statt Vollbild-Stretch,
   damit Screenshots (fuer PDF-Zusammenstellungen) keinen Leerraum haben. */
body.screenshot-modus { min-height: 0; }
body.screenshot-modus .wrapper { min-height: 0; }
body.screenshot-modus .karte { flex: none; }
body.screenshot-modus .screen.aktiv { flex: none; }
body.screenshot-modus .buttons { margin-top: 26px; }
