:root {
  --active-color: #e63946;
  --ink: #2b2b2b;
  --paper: #fffaf3;
  --card: #ffffff;
  --border: #e8e1d4;
  --muted: #8a8478;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h2 {
  font-family: 'Baloo 2', system-ui, sans-serif;
}

.site-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.site-logo {
  height: 6.5rem;
  width: auto;
  margin: 0 0 0.4rem;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  width: 100%;
  flex: 1;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.step h2 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--active-color);
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0.7rem;
}

.category-tile {
  border: 2px solid var(--border);
  background: white;
  border-radius: 14px;
  padding: 1.1rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.category-tile .cat-icon { font-size: 1.8rem; }
.category-tile .cat-name { font-weight: 700; font-size: 0.95rem; }

.category-tile.active {
  border-color: var(--cat-color);
  background: color-mix(in srgb, var(--cat-color) 10%, white);
  color: var(--cat-color);
}

.category-tile.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.cat-soon {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}

.theme-group {
  margin-bottom: 1.25rem;
}

.theme-group-label {
  margin: 0 0 0.6rem;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.theme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.theme-btn {
  border: 2px solid var(--border);
  background: white;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

/* Jeder Themen-Knopf trägt seine eigene Farbe (--btn-color, inline gesetzt) —
   schon im Ruhezustand bunt, nicht erst wenn ausgewählt. */
.theme-btn:not(.locked) {
  border-color: var(--btn-color, var(--border));
  color: var(--btn-color, var(--muted));
}

.theme-btn.active {
  background: var(--btn-color, var(--active-color));
  color: white;
}

.theme-btn.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Rainbow-Modus: nur aktiv, wenn die Ausmalen-Kategorie gewählt ist (siehe app.js) */
.rainbow-mode .step-number {
  background: conic-gradient(from 180deg, #e63946, #e08a2c, #f4d35e, #2a9d5c, #3a6ea5, #8e44ad, #e63946);
}

.rainbow-mode .generate-btn {
  background: linear-gradient(90deg, #e63946, #e08a2c, #f4d35e, #2a9d5c, #3a6ea5, #8e44ad);
}

.level-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.level-dot {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.level-dot.active {
  border-color: var(--active-color);
  background: var(--active-color);
  color: white;
}

.level-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.generate-btn {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--active-color);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 1rem 1.75rem;
  cursor: pointer;
  width: 100%;
  transition: transform 0.1s ease, background 0.2s ease;
}

.generate-btn:hover { transform: translateY(-1px); }
.generate-btn:active { transform: translateY(0); }
.generate-btn:disabled { opacity: 0.6; cursor: wait; }

.hint {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.feedback-line {
  margin-top: 0.4rem;
}

.feedback-line a {
  color: var(--active-color);
  font-weight: 700;
  text-decoration: none;
}

.feedback-line a:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 100;
}

.cookie-banner.hidden { display: none; }

.cookie-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.85rem;
  color: var(--muted);
}

.cookie-accept-btn {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--active-color);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s ease;
}

.cookie-accept-btn:hover { transform: translateY(-1px); }
