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

:root {
  --bg: #F7F0E8;
  --bg2: #EDE0D0;
  --bg3: #FDFAF6;
  --brown: #4A2E1A;
  --mid: #7A5C3A;
  --terra: #C4846A;
  --green: #A8B89A;
  --warm: #C4956A;
  --dark: #2C1A0A;
  --text-light: #9E8E7E;
  --border: #D4CEBD;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--brown);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; }

/* ── HEADER ── */
.header {
  background: var(--dark);
  padding: 24px 20px 20px;
  text-align: center;
}
.header-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.header h1 { font-size: clamp(20px, 5vw, 26px); color: #F7F0E8; line-height: 1.2; }
.header-sub { color: var(--terra); font-family: Georgia, serif; font-size: 13px; font-style: italic; margin-top: 4px; }

/* ── FORTSCHRITT ── */
.progress-wrap {
  background: var(--bg2);
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mid);
  font-weight: 600;
  margin-bottom: 10px;
}
.progress-bar-bg {
  height: 8px;
  background: #C4BEAF;
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--mid));
  border-radius: 99px;
  transition: width 0.5s ease;
}
.progress-dots {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid var(--border);
  background: #C4BEAF;
  color: var(--mid);
  touch-action: manipulation;
}
.dot.done {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: scale(1.08);
}
.dot-hint { font-size: 11px; color: var(--text-light); text-align: center; margin-top: 8px; }

/* ── MAIN ── */
main { max-width: 580px; margin: 0 auto; padding: 20px 16px 60px; }

/* ── WELCOME ── */
.welcome {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}
.welcome-label { font-size: 11px; letter-spacing: 0.18em; color: var(--mid); text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.welcome h1 { font-size: clamp(26px, 6vw, 36px); color: var(--brown); margin-bottom: 18px; }
.welcome-text { font-size: 15px; line-height: 1.75; color: #5C4E3A; max-width: 400px; margin-bottom: 24px; }
.info-box { background: var(--bg2); border-radius: 12px; padding: 18px 20px; max-width: 400px; width: 100%; margin-bottom: 28px; text-align: left; }
.info-box-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); margin-bottom: 10px; }
.info-box p { font-size: 14px; line-height: 1.7; color: var(--brown); }
.welcome-note { font-size: 13px; color: var(--text-light); font-family: Georgia, serif; font-style: italic; margin-top: 20px; }

/* ── KARTEN ── */
.card {
  background: var(--bg3);
  border-radius: 12px;
  border: 1px solid #E0D9CC;
  overflow: hidden;
  margin-bottom: 12px;
  transition: opacity 0.3s;
}
.card.done { background: var(--bg2); opacity: 0.8; }

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.card-badge {
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.card-badge-label { font-size: 9px; font-weight: 700; color: #fff; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; }
.card-badge-num { font-size: 20px; font-weight: 700; color: #fff; font-family: Georgia, serif; line-height: 1.1; }
.card.done .card-badge-label, .card.done .card-badge-num { color: var(--text-light); }

.card-info { flex: 1; }
.card-title { font-family: Georgia, serif; font-size: 16px; color: var(--brown); line-height: 1.3; }
.card.done .card-title { text-decoration: line-through; color: var(--text-light); }
.card-kapitel { font-size: 11px; color: var(--text-light); margin-top: 2px; letter-spacing: 0.05em; }

.card-chevron { font-size: 18px; color: var(--text-light); transition: transform 0.25s; min-width: 20px; text-align: center; }
.card-chevron.open { transform: rotate(180deg); }

/* ── KARTEN INHALT ── */
.card-body { padding: 0 16px 20px; border-top: 1px solid #E0D9CC; animation: fadeIn 0.2s ease; }

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 16px 0 8px;
}
.section-text { font-size: 15px; line-height: 1.65; color: var(--brown); }

.beispiel-box {
  margin-top: 14px;
  background: #F4EFE5;
  border: 1px dashed var(--terra);
  border-radius: 8px;
  padding: 12px 14px;
}
.muster-box {
  margin-top: 14px;
  background: var(--bg3);
  border: 1px solid #E0D9CC;
  border-radius: 8px;
  padding: 12px 14px;
}
.muster-box p { font-size: 13.5px; line-height: 1.6; color: #5C4E3A; margin-top: 6px; }

.hinweis-box {
  margin-top: 14px;
  background: #F0EBE2;
  border-left: 3px solid var(--terra);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
}
.hinweis-box p { font-size: 13px; line-height: 1.6; color: #5C4E3A; font-style: italic; }

.quote-box {
  margin-top: 14px;
  background: var(--dark);
  border-radius: 8px;
  padding: 12px 16px;
}
.quote-box p { font-size: 14px; line-height: 1.6; color: #F7F0E8; font-family: Georgia, serif; font-style: italic; }

/* ── REFLEXION ── */
.reflex-box { margin-top: 14px; }
.reflex-box textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--brown);
  font-size: 14px;
  font-family: system-ui, sans-serif;
  resize: vertical;
  line-height: 1.6;
  transition: border-color 0.2s;
}
.reflex-box textarea:focus { outline: none; border-color: var(--terra); }

/* ── BUTTONS ── */
.btn {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.25s;
  margin-top: 16px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--mid); color: #fff; }
.btn-primary:hover { background: var(--brown); }
.btn-secondary { background: var(--bg2); color: var(--text-light); border: 1px solid var(--border); }
.btn-done { background: var(--terra); color: #fff; }

/* ── PREMIUM TEASER ── */
.premium-teaser {
  background: var(--dark);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  margin-top: 20px;
}
.premium-label { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.premium-text { font-size: 14px; line-height: 1.7; color: #F7F0E8; margin-bottom: 18px; }
.btn-premium { background: var(--terra); color: #fff; display: inline-block; padding: 13px 28px; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ── ABSCHLUSS ── */
.abschluss { text-align: center; padding: 32px 16px; }
.abschluss-icon { font-size: 48px; margin-bottom: 16px; }
.abschluss h2 { font-size: 24px; color: var(--brown); margin-bottom: 12px; }
.abschluss p { font-size: 14px; line-height: 1.7; color: var(--mid); max-width: 380px; margin: 0 auto 24px; }
.footer-note { text-align: center; padding: 32px 16px; }
.footer-note p { font-size: 13px; color: var(--text-light); font-family: Georgia, serif; font-style: italic; line-height: 1.7; }
.footer-credit { font-size: 11px; color: var(--border); letter-spacing: 0.1em; margin-top: 8px; text-transform: uppercase; }

/* ── ANIMATIONEN ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ── HIDDEN ── */
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
