/* ═══════════════════════════════════════════════ */
/* BUILD YOUR OWN QUEST — Website Styles          */
/* Farbkonzept: Warm, einladend, Teal/Coral/Navy  */
/* ═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --teal: #0A9396;
  --teal-dark: #007F82;
  --teal-light: #E0F5F3;
  --teal-50: #F0FAF9;
  --coral: #E8553D;
  --coral-dark: #C7432D;
  --coral-light: #FCEAE6;
  --coral-50: #FEF5F3;
  --navy: #264653;
  --navy-light: #E8EDF3;
  --indigo: #3D5A80;
  --indigo-light: #EDF1F6;
  --sand: #FAF3E0;
  --sand-dark: #E8DDD3;
  --cream: #FAF8F5;
  --warm-bg: #FEFCF9;
  --white: #FFFFFF;
  --dark: #2D3142;
  --dark-soft: #4A4E69;
  --muted: #8E9AAF;
  --muted-light: #C4CCD8;
  --green: #2A9D8F;
  --yellow: #F4A261;
  --yellow-light: #FEF3E2;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow: 0 1px 4px rgba(45,49,66,0.06);
  --shadow-md: 0 4px 12px rgba(45,49,66,0.08);
  --shadow-lg: 0 8px 30px rgba(45,49,66,0.10);
  --font-display: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --transition: 0.2s ease;
}

/* ── Fonts (system fallback, no external load) ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--warm-bg);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* ── Container ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Typography helpers ── */
.text-coral { color: var(--coral); }
.text-teal { color: var(--teal); }
.text-indigo { color: var(--indigo); }
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.section-subheading {
  font-size: 1.1rem;
  color: var(--dark-soft);
  max-width: 700px;
  margin-bottom: 3rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--teal-50);
  transform: translateY(-1px);
  color: var(--teal);
}
.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}
.btn-reset {
  background: var(--sand);
  color: var(--dark-soft);
  border-color: var(--sand-dark);
}

/* ═══════════════════════════════════ */
/* NAVIGATION                         */
/* ═══════════════════════════════════ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254,252,249,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-dark);
  transition: box-shadow var(--transition);
}
.main-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--dark);
}
.logo-icon {
  font-size: 1.4rem;
  color: var(--teal);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  align-items: center;
}
.nav-link {
  padding: 0.5rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark-soft);
  border-radius: 8px;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link:hover { color: var(--teal); background: var(--teal-50); }
.nav-link.active { color: var(--teal); background: var(--teal-light); }
.cta-link {
  background: var(--coral) !important;
  color: white !important;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  margin-left: 0.5rem;
}
.cta-link:hover { background: var(--coral-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--sand-dark);
    box-shadow: var(--shadow-lg);
    gap: 0.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.8rem 1rem; width: 100%; }
  .cta-link { margin-left: 0; text-align: center; margin-top: 0.5rem; }
}

/* ═══════════════════════════════════ */
/* HERO                               */
/* ═══════════════════════════════════ */
.hero {
  padding: 8rem 1.5rem 4rem;
  background: linear-gradient(175deg, var(--cream) 0%, var(--teal-50) 50%, var(--sand) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1.2rem;
}
.hero-highlight { color: var(--teal); }
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--dark-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--white);
  border: 1.5px solid var(--sand-dark);
  color: var(--dark-soft);
}
.badge-icon { font-size: 1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Kirchdach Scene */
.kirchdach-scene {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.kirchdach-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-top: 6rem; min-height: auto; }
  .kirchdach-scene { max-width: 100%; }
}

/* ═══════════════════════════════════ */
/* DREI ZUTATEN                       */
/* ═══════════════════════════════════ */
.zutaten-intro {
  padding: 6rem 0;
  background: var(--white);
}
.zutaten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.zutat-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.zutat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.zutat-card--trick { border-color: var(--coral-light); }
.zutat-card--trick:hover { border-color: var(--coral); }
.zutat-card--logik { border-color: var(--navy-light); }
.zutat-card--logik:hover { border-color: var(--indigo); }
.zutat-card--feedback { border-color: var(--teal-light); }
.zutat-card--feedback:hover { border-color: var(--teal); }

.zutat-icon { margin-bottom: 1rem; }
.zutat-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}
.zutat-title--trick { color: var(--coral); }
.zutat-title--logik { color: var(--indigo); }
.zutat-title--feedback { color: var(--teal); }
.zutat-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.zutat-desc {
  font-size: 0.95rem;
  color: var(--dark-soft);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.zutat-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  row-gap: 0.5rem;
}
.zutat-type {
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--white);
  color: var(--dark-soft);
  border: 1px solid var(--sand-dark);
}
.zutaten-summary {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 1rem;
  border-left: 4px solid var(--teal);
}

@media (max-width: 768px) {
  .zutaten-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════ */
/* IDENTIFIKATION / EINWÄNDE          */
/* ═══════════════════════════════════ */
.identifikation {
  padding: 6rem 0;
  background: var(--sand);
}
.einwaende-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.einwand-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.einwand-card:hover {
  border-color: var(--teal-light);
  box-shadow: var(--shadow-md);
}
.einwand-frage {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--coral);
  margin-bottom: 0.5rem;
}
.einwand-antwort {
  font-size: 0.95rem;
  color: var(--dark-soft);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .einwaende-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════ */
/* PHASEN                             */
/* ═══════════════════════════════════ */
.phasen {
  padding: 6rem 0;
  background: var(--white);
}
.tempo-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.tempo-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  border: 2px solid var(--sand-dark);
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark-soft);
  cursor: pointer;
  transition: all var(--transition);
}
.tempo-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.tempo-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.phasen-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  justify-content: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
}
.phase-connector {
  display: none;
}
.phase-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 2px solid var(--teal-light);
  position: relative;
  transition: all var(--transition);
}
.phase-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}
.phase-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}
.phase-icon {
  display: none; /* Hidden, number suffices */
}
.phase-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--teal);
  margin-bottom: 0.3rem;
}
.phase-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.phase-detail {
  display: none;
  margin-bottom: 1rem;
}
.phase-detail.active { display: block; }
.phase-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.phase-detail ul {
  list-style: none;
  padding: 0;
}
.phase-detail li {
  font-size: 0.85rem;
  color: var(--dark-soft);
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}
.phase-detail li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.phase-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--sand-dark);
}
.material-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
}

@media (max-width: 900px) {
  .phasen-timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .phase-connector { display: none; }
  .phase-card {
    min-width: auto;
  }
  .phase-card {
    min-width: auto;
  }
}

/* ═══════════════════════════════════ */
/* RÄTSEL-KATALOG                     */
/* ═══════════════════════════════════ */
.katalog {
  padding: 6rem 0;
  background: var(--sand);
}
.katalog-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.filter-group { margin-bottom: 0.5rem; }
.filter-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.4rem;
}
.filter-chips {
  row-gap: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  border: 1.5px solid var(--sand-dark);
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--dark-soft);
  cursor: pointer;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.katalog-count {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.katalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 2px solid var(--sand-dark);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.recipe-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.recipe-card.hidden { display: none; }

.recipe-badges {
  display: flex;
  gap: 0.3rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.recipe-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: white;
}
.recipe-badge--t { background: var(--coral); }
.recipe-badge--l { background: var(--indigo); }
.recipe-badge--f { background: var(--teal); }

.recipe-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  padding-right: 5rem;
}
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.recipe-meta-item {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.recipe-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.recipe-tag--trick { background: var(--coral-light); color: var(--coral-dark); }
.recipe-tag--logik { background: var(--indigo-light); color: var(--indigo); }
.recipe-tag--feedback { background: var(--teal-light); color: var(--teal-dark); }

.recipe-desc {
  font-size: 0.88rem;
  color: var(--dark-soft);
  line-height: 1.6;
}
.recipe-difficulty {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.diff-easy { background: #E8F5E9; color: #2E7D32; }
.diff-medium { background: var(--yellow-light); color: #E65100; }
.diff-hard { background: var(--coral-light); color: var(--coral-dark); }

/* ═══════════════════════════════════ */
/* MODAL                              */
/* ═══════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--cream);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-soft);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--coral-light); color: var(--coral); }

.modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.modal-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin: 1.5rem 0 0.5rem;
}
.modal-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.modal-label {
  font-weight: 600;
  color: var(--dark);
  min-width: 120px;
}
.modal-value { color: var(--dark-soft); }
.modal-items {
  list-style: none;
  padding: 0;
}
.modal-items li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--dark-soft);
  display: flex;
  justify-content: space-between;
}
.modal-items .cost {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════ */
/* RÄTSELHELFER                       */
/* ═══════════════════════════════════ */
.raetselhelfer {
  padding: 6rem 0;
  background: var(--white);
}
.raetselhelfer-header { margin-bottom: 2rem; }
.rh-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  background: var(--yellow-light);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}
.rh-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--sand-dark);
  padding-bottom: 0;
  flex-wrap: wrap;
  row-gap: 0.3rem;
}
.rh-tab {
  padding: 0.7rem 1.5rem;
  border: none;
  background: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.rh-tab:hover { color: var(--teal); }
.rh-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.rh-panel { display: none; }
.rh-panel.active { display: block; }
.rh-intro {
  margin-bottom: 2rem;
}
.rh-intro h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* Erleben — Mini games */
.rh-raetsel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.rh-raetsel-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 2px solid var(--sand-dark);
}
.rh-raetsel-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.rh-raetsel-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.rh-raetsel-card > p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.rh-game-prompt {
  font-size: 0.85rem;
  color: var(--dark-soft);
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.rh-result {
  margin-top: 0.8rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: none;
}
.rh-result.success {
  display: block;
  background: #E8F5E9;
  color: #2E7D32;
}
.rh-result.hint {
  display: block;
  background: var(--yellow-light);
  color: #E65100;
}

/* Letter game */
.letter-slots, .letter-pool {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.letter-slot {
  width: 36px;
  height: 40px;
  border: 2px dashed var(--muted-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--teal);
  background: var(--white);
}
.letter-slot.filled { border-style: solid; border-color: var(--teal); background: var(--teal-light); }
.letter-btn {
  width: 36px;
  height: 40px;
  border: 2px solid var(--sand-dark);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  cursor: pointer;
  transition: all var(--transition);
}
.letter-btn:hover { border-color: var(--coral); background: var(--coral-50); }
.letter-btn.used { opacity: 0.3; pointer-events: none; }

/* Loch grid */
.loch-grid {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: 4px;
  margin-bottom: 0.5rem;
}
.loch-cell {
  width: 40px;
  height: 40px;
  border: 2px solid var(--sand-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  background: var(--white);
  transition: all var(--transition);
}
.loch-cell:hover { border-color: var(--indigo); background: var(--indigo-light); }
.loch-cell.selected { border-color: var(--indigo); background: var(--indigo-light); }

/* Satz words */
.satz-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.satz-word {
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--white);
  border: 1.5px solid var(--sand-dark);
  transition: all var(--transition);
}
.satz-word:hover { border-color: var(--teal); }
.satz-word.selected {
  background: var(--teal-light);
  border-color: var(--teal);
  font-weight: 600;
}

/* Verstehen tab */
.rh-anatomy {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.rh-anatomy-plus {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--muted-light);
  margin-top: 2rem;
}
.rh-anatomy-card {
  flex: 1;
  min-width: 200px;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid;
}
.rh-anatomy--staunen { border-color: var(--coral-light); background: var(--coral-50); }
.rh-anatomy--knobeln { border-color: var(--navy-light); background: var(--indigo-light); }
.rh-anatomy--stimmt { border-color: var(--teal-light); background: var(--teal-50); }
.rh-anatomy-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.rh-anatomy-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.rh-anatomy-example {
  margin-top: 0.8rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  color: var(--dark-soft);
}
.rh-insight-box {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  font-size: 0.95rem;
}

/* Bauen tab */
.rh-aufgaben { display: flex; flex-direction: column; gap: 2rem; }
.rh-aufgabe {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  border: 1px solid var(--sand-dark);
}
.rh-aufgabe-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.rh-aufgabe-nr {
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  background: var(--teal);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
}
.rh-aufgabe-titel {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
}
.rh-aufgabe > p {
  font-size: 0.95rem;
  color: var(--dark-soft);
  margin-bottom: 1rem;
}
.rh-scenario-given {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.rh-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.rh-pill--staunen { background: var(--coral-light); color: var(--coral-dark); }
.rh-pill--knobeln { background: var(--indigo-light); color: var(--indigo); }
.rh-pill--missing {
  background: var(--yellow-light);
  color: #E65100;
  border: 2px dashed var(--yellow);
}

.rh-aufgabe-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.rh-option {
  padding: 0.5rem 1rem;
  border: 2px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}
.rh-option:hover { border-color: var(--teal); }
.rh-option.correct { border-color: #2E7D32; background: #E8F5E9; }
.rh-option.wrong { border-color: var(--coral); background: var(--coral-50); opacity: 0.6; }

.rh-aufgabe-feedback {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.rh-scenario-desc {
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sand-dark);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.rh-zuordnung {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.rh-zuordnung-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.rh-zuordnung-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 120px;
}
.rh-zuordnung-select {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--sand-dark);
  font-size: 0.88rem;
  font-family: var(--font-body);
  background: var(--white);
  flex: 1;
  max-width: 280px;
}
.rh-zuordnung-select.correct { border-color: #2E7D32; background: #E8F5E9; }
.rh-zuordnung-select.wrong { border-color: var(--coral); background: var(--coral-50); }

/* Rezept builder */
.rh-rezept-builder {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rh-rezept-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.rh-rezept-row label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 160px;
}
.rh-rezept-row select,
.rh-rezept-row input {
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--sand-dark);
  font-size: 0.88rem;
  font-family: var(--font-body);
  flex: 1;
  max-width: 400px;
  background: var(--white);
}
.rh-rezept-row input { min-width: 200px; }

.rh-rezeptkarte {
  margin-top: 1rem;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal-50), var(--cream));
  border: 2px solid var(--teal);
}
.rezeptkarte-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--teal);
  margin-bottom: 1rem;
}
.rezeptkarte-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .rh-raetsel-grid { grid-template-columns: 1fr; }
  .rh-anatomy { flex-direction: column; }
  .rh-anatomy-plus { display: none; }
}

/* ═══════════════════════════════════ */
/* DOWNLOADS                          */
/* ═══════════════════════════════════ */
.downloads {
  padding: 6rem 0;
  background: var(--sand);
}
.download-pakete {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.paket-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 2px solid var(--sand-dark);
  text-align: center;
  transition: all var(--transition);
}
.paket-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.paket-card--starter { border-color: var(--teal); }
.paket-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.paket-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.paket-card p {
  font-size: 0.88rem;
  color: var(--dark-soft);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.paket-tag {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.downloads-subtitle {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.downloads-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dl-phase {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sand-dark);
}
.dl-phase-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  transition: background var(--transition);
}
.dl-phase-header:hover { background: var(--cream); }
.dl-phase-nr {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.dl-phase-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}
.dl-toggle {
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform var(--transition);
}
.dl-phase.open .dl-toggle { transform: rotate(45deg); }
.dl-phase-body {
  display: none;
  padding: 0 1.5rem 1rem;
}
.dl-phase.open .dl-phase-body { display: block; }
.dl-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--sand);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 4px;
  padding-left: 0.4rem;
}
.dl-item:hover { background: var(--teal-50); }
.dl-item:last-child { border-bottom: none; }
.dl-icon { font-size: 1rem; }
.dl-name { flex: 1; color: var(--dark-soft); }
.dl-format {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--indigo-light);
  color: var(--indigo);
  font-size: 0.7rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .download-pakete { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════ */
/* SCHULLEITUNG                       */
/* ═══════════════════════════════════ */
.schulleitung {
  padding: 6rem 0;
  background: var(--white);
}
.sl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.sl-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--sand-dark);
}
.sl-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1rem;
}
.sl-kompetenzen { display: flex; flex-direction: column; gap: 0.5rem; }
.sl-kompetenz {
  font-size: 0.88rem;
  color: var(--dark-soft);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.sl-code {
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  background: var(--indigo-light);
  color: var(--indigo);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.sl-einseiter {
  background: linear-gradient(135deg, var(--indigo), var(--navy));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
  color: white;
}
.sl-einseiter h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.sl-einseiter p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 600px;
  line-height: 1.6;
}
.sl-einseiter .btn-primary {
  background: white;
  color: var(--indigo);
  border-color: white;
}
.sl-einseiter .btn-primary:hover {
  background: var(--cream);
  color: var(--navy);
}

.sl-matrix { margin-top: 2rem; }
.sl-matrix h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.sl-matrix > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.matrix-scroll { overflow-x: auto; }
.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}
.matrix-table th {
  background: var(--navy);
  color: white;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
  font-size: 0.8rem;
}
.matrix-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.matrix-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.matrix-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--sand);
  vertical-align: middle;
}
.matrix-table tr:hover td { background: var(--teal-50); }
.matrix-check { color: var(--teal); font-weight: 700; }
.matrix-empty { color: var(--muted-light); }

@media (max-width: 768px) {
  .sl-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════ */
/* FOOTER                             */
/* ═══════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: white;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.footer-col p { font-size: 0.88rem; line-height: 1.6; }
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col li { margin-bottom: 0.3rem; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-col a:hover { color: white; }
.footer-mail {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--teal-light) !important;
  font-weight: 600;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
