:root {
  --bg:#f5f5f7;
  --card:#ffffff;
  --text:#1d1d1f;
  --muted:#86868b;
  --accent:#B91121;
}

* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

/* Header Layout */
.header-content {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.header-text {
  flex: 1;
}

.header-image img {
  width: 160px;
  height: 177px;
  object-fit: cover;
  border-radius: 18px;
  background: none
}

/* Fortschritt */
#progressContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #e5e5ea;
  z-index: 10;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* Layout */
.wrapper {
  max-width: 760px;
  margin: 80px auto;
  padding: 24px;
}

/* Headings */
h1, h2, h3 {
  color: var(--accent);
}

/* Cards */
.card {
  background: var(--card);
  border-radius: 28px;
  padding: 32px;
  margin-bottom: 40px;
}

/* Grid / Chips */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip span {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid #e5e5ea;
  cursor: pointer;
}

.chip input { display:none; }
.chip input:checked + span {
  background: rgba(185,17,33,0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* Choices */
.card-choice input { display:none; }
.card-choice label {
  display:block;
  padding:18px;
  border-radius:18px;
  border:1px solid #e5e5ea;
  margin-bottom:12px;
  cursor:pointer;
}

.card-choice input:checked + label {
  background: rgba(185,17,33,0.08);
  border-color: var(--accent);
}

/* Inputs */
input, textarea {
  width:100%;
  padding:16px;
  border-radius:18px;
  border:1px solid #e5e5ea;
  margin-bottom:16px;
}

textarea { min-height:90px; }

.hint {
  font-size:14px;
  color:var(--muted);
  margin-bottom:12px;
}

/* Submit */
.submit {
  width:100%;
  padding:22px;
  font-size:20px;
  border-radius:22px;
  background: var(--accent);
  color:#fff;
  border:none;
  cursor:pointer;
}

.submit:hover {
  background:#9f0f1c;
}
/* ===== RANGE SLIDER (FINAL FIX) ===== */

.range-wrapper {
  margin-top: 12px;
}

input[type="range"] {
  width: 100%;
  margin: 12px 0;
  accent-color: #B91121; /* moderne Browser */
}

/* Skala 1–10 */
.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Aktueller Wert */
.range-current {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text);
}

/* WebKit (Chrome, Safari, Edge) */
input[type="range"]::-webkit-slider-thumb {
  background: #B91121;
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
  background: #B91121;
  border: none;
}

input[type="range"]::-moz-range-track {
  background: rgba(185,17,33,0.25);
}

input[type="range"]:focus {
  outline: none;
}
/* ===== TYPOGRAPHY NORMALIZATION ===== */

/* Basis */
html {
  font-size: 16px;
}

body {
  font-size: 16px;
  line-height: 1.5;
}

/* Formulare */
input,
textarea,
select,
button {
  font-size: 16px;
  line-height: 1.4;
}

/* Slider-Zusätze */
.range-scale {
  font-size: 14px;
}

.range-current {
  font-size: 14px;
}

/* Hinweise */
.hint {
  font-size: 14px;
}

/* Buttons */
.submit {
  font-size: 16px;
  font-weight: 500;
}

/* Überschriften – klare Hierarchie */
h1 {
  font-size: 40px;
  line-height: 1.1;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
}
