/* ============================================================
   PaarMission – Globale Stile
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg:        #0d0d0f;
  --bg2:       #141418;
  --bg3:       #1a1a20;
  --card:      #181820;
  --card2:     #1f1f28;
  --border:    rgba(255,255,255,0.06);
  --rose:      #c8476a;
  --rose-glow: rgba(200,71,106,0.25);
  --rose-soft: rgba(200,71,106,0.12);
  --gold:      #d4a96a;
  --gold-soft: rgba(212,169,106,0.15);
  --cream:     #f0e6d3;
  --white:     #ffffff;
  --muted:     rgba(240,230,211,0.5);
  --muted2:    rgba(240,230,211,0.3);
  --radius:    18px;
  --radius-sm: 10px;
  --shadow:    0 8px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 30px var(--rose-glow);
}

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

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

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,71,106,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 400; }

p { line-height: 1.7; }

a { color: var(--rose); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

/* ---- Layout ---- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-wrap {
  min-height: 100vh;
  padding: 40px 0 80px;
}

/* ---- Nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  margin-bottom: 40px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: .04em;
}

.nav-logo span { color: var(--rose); }

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 400;
  transition: color .2s;
}
.nav-back:hover { color: var(--cream); opacity: 1; }
.nav-back svg { width: 16px; height: 16px; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.card-sm {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: all .25s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose) 0%, #a33055 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--rose-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(200,71,106,0.5);
  color: #fff;
  opacity: 1;
}

.btn-secondary {
  background: var(--card2);
  color: var(--cream);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--card);
  border-color: var(--rose);
  color: var(--cream);
  opacity: 1;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #b8894a 100%);
  color: #1a1009;
  box-shadow: 0 4px 20px var(--gold-soft);
}
.btn-gold:hover {
  transform: translateY(-2px);
  opacity: .9;
  box-shadow: 0 6px 28px var(--gold-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--cream);
  border-color: rgba(255,255,255,0.15);
  opacity: 1;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 9px 18px;
  font-size: .82rem;
}

.btn-full { width: 100%; }

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

/* ---- Badges / Tags ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-rose   { background: var(--rose-soft); color: var(--rose); border: 1px solid rgba(200,71,106,0.3); }
.badge-gold   { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(212,169,106,0.3); }
.badge-muted  { background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--border); }

/* ---- Page Header ---- */
.page-header {
  text-align: center;
  margin-bottom: 48px;
}
.page-header h1 { margin-bottom: 10px; }
.page-header p { color: var(--muted); font-size: 1.05rem; }
.page-header .page-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

/* ---- Question / Task Card ---- */
.main-card {
  background: linear-gradient(145deg, var(--card) 0%, var(--card2) 100%);
  border: 1px solid rgba(200,71,106,0.2);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow), 0 0 60px rgba(200,71,106,0.05);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.main-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(200,71,106,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.main-card-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--cream);
}

/* ---- Timer ---- */
.timer-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--rose);
  letter-spacing: .05em;
  text-shadow: 0 0 20px var(--rose-glow);
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 32px 0;
}

/* ---- Alerts ---- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 20px;
}
.alert-success {
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.25);
  color: #6ee7b7;
}
.alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
}

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-control {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(200,71,106,0.12);
}
.form-control::placeholder { color: var(--muted2); }
select.form-control option {
  background: var(--bg2);
  color: var(--cream);
}

textarea.form-control { resize: vertical; min-height: 90px; }

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .main-card { padding: 28px 20px; }
  .nav { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---- Fade In Animation ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .5s ease forwards; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px var(--rose-glow); }
  50%       { box-shadow: 0 0 35px rgba(200,71,106,0.5); }
}
.pulse { animation: pulse-glow 2.5s ease-in-out infinite; }

/* ---- Category Filter Tabs ---- */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}
.cat-tab {
  padding: 7px 16px;
  border-radius: 50px;
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.cat-tab:hover,
.cat-tab.active {
  background: var(--rose-soft);
  border-color: var(--rose);
  color: var(--rose);
}

/* ---- Stats Card ---- */
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--rose);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--card2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--rose); }

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 24px 0;
  color: var(--muted2);
  font-size: .78rem;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer span { color: var(--rose); }
