:root {
  /* Basis-Farbtöne (Warmes Slate statt kaltem Grau) */
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --panel: rgba(255, 255, 255, 0.75);
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Brand-Akzente */
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --accent: #2563eb;
  
  /* Farbleitsystem für Zielgruppen (Premium-Gradients & Soft-Backgrounds) */
  --color-teacher: #4f46e5;
  --color-teacher-end: #06b6d4;
  --color-teacher-soft: #eef2ff;
  
  --color-parent: #0d9488;
  --color-parent-end: #10b981;
  --color-parent-soft: #f0fdfa;
  
  --color-student: #d97706;
  --color-student-end: #f59e0b;
  --color-student-soft: #fef3c7;
  --parent-grad: linear-gradient(90deg, var(--color-parent), var(--color-parent-end));
  --teacher-grad: linear-gradient(90deg, var(--color-teacher), var(--color-teacher-end));
  --student-grad: linear-gradient(90deg, var(--color-student), var(--color-student-end));

  /* Premium-Schatten */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06), 0 1px 3px 0 rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 1px 5px 0 rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 20px 40px -15px rgba(37, 99, 235, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-mark {
  transform: scale(1.1) rotate(-5deg);
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.menu a {
  border-bottom: 2px solid transparent;
  padding: 28px 0 26px;
  color: var(--muted);
}

.menu a:hover {
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.4);
}

.menu a.is-active {
  color: var(--blue);
  border-color: var(--blue) !important;
  font-weight: 700;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 20%, rgba(37, 99, 235, 0.08), transparent 35%),
    radial-gradient(circle at 15% 80%, rgba(79, 70, 229, 0.06), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.hero-grid {
  display: grid;
  min-height: 460px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
  padding: 56px 0 56px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-heading);
  max-width: 660px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.lead {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 0 28px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
}

.button.primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.45);
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  background: var(--soft);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Hero Panel (Das neue interaktive Stundenplan-Widget) */
.hero-panel {
  position: relative;
  min-height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 26px;
  transition: all 0.3s ease;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.preview-stack {
  display: grid;
  gap: 14px;
}

.preview-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 12px 18px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preview-card.featured {
  border-color: rgba(79, 70, 229, 0.15);
  background: linear-gradient(135deg, #ffffff, var(--teacher-soft));
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.05);
}

.preview-date {
  display: grid;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
}

.preview-card.featured .preview-date {
  background: var(--color-teacher);
  color: #ffffff;
}

.preview-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
}

.preview-lines span + span {
  width: 74%;
  margin-top: 8px;
  background: #cbd5e1;
}

.preview-card.featured .preview-lines span:first-child {
  background: var(--color-teacher);
  opacity: 0.8;
}

.preview-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.preview-card.featured .preview-status {
  background: var(--color-teacher-end);
  box-shadow: 0 0 10px var(--color-teacher-end);
}

.preview-note {
  margin-top: 18px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, var(--soft));
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* Kleines Wasserzeichen-Faultier im Dashboard-Hintergrund */
.preview-note::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -15px;
  width: 80px;
  height: 80px;
  background-image: url("herr-faul-logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.preview-note span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
}

.preview-note span:first-child {
  width: 44%;
  background: var(--ink);
  height: 10px;
}

.preview-note span + span {
  margin-top: 9px;
}

.preview-note span:nth-child(2) {
  width: 88%;
  background: var(--muted);
  opacity: 0.6;
}

.preview-note span:nth-child(3) {
  width: 68%;
}

.gateway-panel {
  min-height: 0;
}

.quick-access {
  display: grid;
  gap: 14px;
}

.quick-access-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.quick-access-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.quick-icon,
.gateway-icon,
.guide-icon,
.side-symbol {
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
}

.quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 1.45rem;
}

.quick-access-item strong,
.quick-access-item small {
  display: block;
}

.quick-access-item strong {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  line-height: 1.2;
}

.quick-access-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.quick-parent .quick-icon,
.gateway-parent .gateway-icon,
.guide-school .guide-icon,
.parent-overview-panel .side-symbol {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.quick-student .quick-icon,
.gateway-student .gateway-icon,
.guide-learning .guide-icon {
  background: var(--color-student-soft);
  color: var(--color-student);
}

.quick-teacher .quick-icon,
.gateway-teacher .gateway-icon {
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
}

.quick-material .quick-icon,
.gateway-material .gateway-icon,
.guide-media .guide-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

/* Sections */
section {
  padding: 96px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

h2 {
  font-family: var(--font-heading);
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-copy {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Cards Layout */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.card {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 34px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--line);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

/* Spezifische Akzente für Tools (SchooPlan & Schoodoku) */
.card:nth-child(1)::before {
  background: linear-gradient(90deg, var(--color-teacher), var(--color-teacher-end));
}

.card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--color-teacher), var(--color-teacher-end));
}

.card:nth-child(3)::before {
  background: #cbd5e1;
}

.card:nth-child(3):hover::before {
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.card .label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card:nth-child(1) .label {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.card:nth-child(2) .label {
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
}

.card:nth-child(3) .label {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid rgba(203, 213, 225, 0.5);
}

.card h3 {
  font-family: var(--font-heading);
  margin: 24px 0 12px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.card .button {
  margin-top: auto;
}

.compact-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-cards .card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 26px;
}

.compact-cards .card h3 {
  margin-top: 18px;
  font-size: 1.45rem;
}

.compact-cards .card p {
  flex-grow: 1;
  font-size: 0.96rem;
}

/* Zielgruppen-Weiche (Farbliche Akzentuierung) */
.audiences {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.audience {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 34px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.audience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  transition: all 0.3s ease;
}

/* Eltern (Teal) */
.audience:nth-child(1)::before { background: var(--parent-grad); }
.audience:nth-child(1):hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.2);
}

/* Lehrkräfte (Indigo) */
.audience:nth-child(2)::before { background: var(--teacher-grad); }
.audience:nth-child(2):hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.2);
}

/* Schüler (Amber) */
.audience:nth-child(3)::before { background: var(--student-grad); }
.audience:nth-child(3):hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(217, 119, 6, 0.15);
  border-color: rgba(217, 119, 6, 0.2);
}

/* Zielgruppen Icons mit neuem, lebendigem Style */
.audience-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Eltern Icon */
.audience:nth-child(1) .audience-icon {
  background: var(--color-parent-soft);
  color: var(--color-parent);
  border: 1px solid rgba(13, 148, 136, 0.2);
}
.audience:nth-child(1):hover .audience-icon {
  transform: scale(1.1);
  background: var(--color-parent);
  color: #ffffff;
}

/* Lehrkräfte Icon */
.audience:nth-child(2) .audience-icon {
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
  border: 1px solid rgba(79, 70, 229, 0.2);
}
.audience:nth-child(2):hover .audience-icon {
  transform: scale(1.1);
  background: var(--color-teacher);
  color: #ffffff;
}

/* Schüler Icon */
.audience:nth-child(3) .audience-icon {
  background: var(--color-student-soft);
  color: var(--color-student);
  border: 1px solid rgba(217, 119, 6, 0.2);
}
.audience:nth-child(3):hover .audience-icon {
  transform: scale(1.1);
  background: var(--color-student);
  color: #ffffff;
}

.audience h3 {
  font-family: var(--font-heading);
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 800;
}

.audience p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  flex-grow: 1;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.gateway-card {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 26px;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.gateway-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--line);
}

.gateway-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gateway-parent::before {
  background: var(--parent-grad);
}

.gateway-student::before {
  background: var(--student-grad);
}

.gateway-teacher::before {
  background: var(--teacher-grad);
}

.gateway-material::before {
  background: linear-gradient(90deg, var(--blue), #38bdf8);
}

.gateway-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 18px;
  font-size: 1.7rem;
}

.gateway-card .label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-card h3 {
  margin: 10px 0 10px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.15;
}

.gateway-card p {
  flex-grow: 1;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* Materialien Teaser & Notizen */
.materials {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.schooplan-spotlight {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 24%, rgba(79, 70, 229, 0.08), transparent 30%),
    #ffffff;
}

.schooplan-preview {
  border: 1px solid rgba(79, 70, 229, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, var(--color-teacher-soft));
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.schooplan-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--color-teacher);
  font-family: var(--font-heading);
  font-weight: 800;
}

.schooplan-preview-head span:last-child {
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 999px;
  background: #ffffff;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.schooplan-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.schooplan-days div {
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: start;
  border: 1px solid rgba(79, 70, 229, 0.14);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
}

.schooplan-days strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
  font-family: var(--font-heading);
}

.schooplan-days span {
  color: var(--ink);
  font-weight: 800;
}

.schooplan-days small {
  color: var(--muted);
  font-weight: 600;
}

.schooplan-preview-note {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  border-left: 4px solid var(--color-teacher);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px 18px;
}

.schooplan-preview-note strong {
  color: var(--ink);
  font-family: var(--font-heading);
}

.schooplan-preview-note span {
  color: var(--muted);
  line-height: 1.5;
}

.note {
  border-left: 5px solid var(--blue);
  border-radius: 20px;
  background: var(--soft);
  padding: 34px;
  box-shadow: var(--shadow);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.note p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: #f8fafc;
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer .brand {
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 28px;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Sub-Pages Styles */
.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
  padding: 80px 0 68px;
  position: relative;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.breadcrumb-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.breadcrumb-line a,
.breadcrumb-line span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0 12px;
}

.breadcrumb-line a {
  color: var(--color-student);
}

.breadcrumb-line span {
  color: var(--ink);
}

.audience-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.audience-hero-symbol {
  display: grid;
  width: clamp(150px, 16vw, 220px);
  height: clamp(150px, 16vw, 220px);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 7vw, 6rem);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.parent-symbol {
  border-color: rgba(13, 148, 136, 0.2);
  color: var(--color-parent);
  background: linear-gradient(180deg, #ffffff, var(--color-parent-soft));
}

.student-symbol {
  border-color: rgba(217, 119, 6, 0.22);
  color: var(--color-student);
  background: linear-gradient(180deg, #ffffff, var(--color-student-soft));
}

.teacher-symbol {
  border-color: rgba(79, 70, 229, 0.22);
  color: var(--color-teacher);
  background: linear-gradient(180deg, #ffffff, var(--color-teacher-soft));
}

.material-symbol {
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--blue);
  background: linear-gradient(180deg, #ffffff, var(--blue-soft));
}

.page-content {
  padding: 80px 0 96px;
  background: #ffffff;
}

.overview-content {
  padding-top: 48px;
}

.theme-student .page-hero,
.materials-hero {
  padding: 72px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.intro-panel,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 34px;
  box-shadow: var(--shadow);
}

.intro-panel {
  background: var(--soft);
  position: sticky;
  top: 110px;
}

.content-panel + .content-panel {
  margin-top: 24px;
}

.content-panel h2,
.intro-panel h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.content-panel p,
.intro-panel p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.link-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.parent-overview-layout {
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
}

.parent-overview-panel .side-symbol {
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  border-radius: 20px;
  font-size: 1.85rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.guide-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--parent-grad);
}

.guide-media::before {
  background: linear-gradient(90deg, var(--blue), #38bdf8);
}

.guide-learning::before {
  background: var(--student-grad);
}

.guide-plan::before {
  background: var(--teacher-grad);
}

.guide-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 18px;
  font-size: 1.5rem;
}

.guide-plan .guide-icon {
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
}

.guide-card .label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
}

.guide-card p {
  flex-grow: 1;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.guide-card .button {
  width: 100%;
  margin-top: auto;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.guide-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.parent-short-note {
  margin-top: 24px;
  background: var(--color-parent-soft);
  border-color: rgba(13, 148, 136, 0.18);
}

.student-overview-layout,
.materials-overview-layout {
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
}

.student-overview-panel .side-symbol {
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: var(--color-student-soft);
  color: var(--color-student);
  font-size: 1.85rem;
}

.study-grid,
.student-choice-grid,
.download-grid {
  display: grid;
  gap: 24px;
}

.study-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.study-card,
.student-choice-card,
.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 26px;
  box-shadow: var(--shadow);
}

.study-card {
  min-height: 292px;
}

.student-choice-card {
  min-height: 270px;
}

.study-card::before,
.student-choice-card::before,
.download-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--student-grad);
}

.study-words::before {
  background: var(--teacher-grad);
}

.study-time::before {
  background: linear-gradient(90deg, var(--blue), #38bdf8);
}

.study-learn::before,
.study-tool::before {
  background: var(--parent-grad);
}

.study-game::before {
  background: linear-gradient(90deg, #ef4444, var(--color-student-end));
}

.choice-learning::before {
  background: var(--student-grad);
}

.choice-plan::before {
  background: var(--parent-grad);
}

.choice-reading::before {
  background: linear-gradient(90deg, var(--blue), #38bdf8);
}

.choice-game::before {
  background: linear-gradient(90deg, #ef4444, var(--color-student-end));
}

.study-icon,
.download-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--color-student-soft);
  color: var(--color-student);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
}

.study-card .label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.student-choice-card .label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.student-choice-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.65rem, 2.3vw, 2.2rem);
}

.study-card p,
.student-choice-card p,
.download-card p {
  flex-grow: 1;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.52;
}

.student-short-note {
  margin-top: 24px;
  background: var(--color-student-soft);
  border-color: rgba(217, 119, 6, 0.2);
}

.materials-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-soft) 100%);
}

.materials-filter-panel .side-symbol {
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.85rem;
}

.material-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
}

button.tag {
  cursor: pointer;
  font: inherit;
}

.material-filter-button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.download-card[hidden],
.download-section[hidden] {
  display: none;
}

.tag-student {
  border-color: rgba(217, 119, 6, 0.2);
  background: var(--color-student-soft);
  color: var(--color-student);
}

.tag-parent {
  border-color: rgba(13, 148, 136, 0.2);
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.tag-teacher {
  border-color: rgba(79, 70, 229, 0.2);
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
}

.download-section + .download-section,
.download-section + .materials-short-note {
  margin-top: 34px;
}

.section-mini-head {
  margin-bottom: 18px;
}

.section-mini-head .eyebrow {
  margin-bottom: 8px;
}

.section-mini-head h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
}

.download-grid {
  grid-template-columns: 1fr;
}

.download-grid-two {
  grid-template-columns: 1fr;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(220px, 0.72fr);
  gap: 22px;
  min-height: 285px;
  align-items: stretch;
}

.download-preview-link {
  display: block;
  height: clamp(230px, 24vw, 300px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.download-preview-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.download-preview {
  width: 100%;
  height: 150%;
  display: block;
  object-fit: cover;
  object-position: top center;
  padding: 0;
  background: #ffffff;
}

.download-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.download-parent::before {
  background: var(--parent-grad);
}

.download-parent .download-icon {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.download-card h3 {
  margin: 14px 0 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.15;
}

.download-card .button {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.download-actions {
  display: grid;
  width: 100%;
  gap: 10px;
  margin-top: auto;
}

.download-actions .button.secondary {
  box-shadow: none;
}

.materials-short-note {
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.16);
}

.materials-compact-hero {
  padding: 58px 0 42px;
}

.materials-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 34px;
  align-items: end;
}

.materials-hero-note {
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 20px;
  box-shadow: var(--shadow);
}

.materials-hero-note strong,
.materials-hero-note span {
  display: block;
}

.materials-hero-note strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.materials-hero-note span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.hero-symbol-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.hero-symbol-note .hero-note-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
}

.hero-symbol-note > span:last-child > span,
.hero-symbol-note > span:last-child > strong {
  display: block;
}

.hero-symbol-note > span:last-child > span {
  margin-top: 6px;
}

.parent-note-icon {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.teacher-note-icon {
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
}

.student-note-icon {
  background: var(--color-student-soft);
  color: var(--color-student);
}

.material-note-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.materials-resource-page {
  background:
    radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.08), transparent 32%),
    var(--soft);
}

.materials-resource-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.materials-resource-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  padding: 28px;
}

.materials-resource-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.45rem);
}

.materials-resource-head p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.materials-search {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0 14px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.materials-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.materials-search input::placeholder {
  color: var(--muted);
}

.materials-resource-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.materials-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.materials-sidebar-card,
.materials-collection-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.materials-sidebar-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.materials-category {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.materials-category span {
  display: grid;
  width: 24px;
  place-items: center;
  color: currentColor;
  font-family: var(--font-heading);
  font-weight: 900;
}

.materials-category:hover,
.materials-category.is-active {
  background: var(--blue-soft);
  color: var(--blue);
}

.materials-side-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  border-radius: 12px;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 800;
}

.materials-side-link:hover {
  background: var(--soft);
  color: var(--blue);
}

.materials-collection-card {
  background: linear-gradient(135deg, var(--blue), var(--color-teacher));
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.22);
}

.materials-collection-card strong,
.materials-collection-card small {
  display: block;
}

.materials-collection-card strong {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
}

.materials-collection-card small {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.materials-progress {
  overflow: hidden;
  height: 8px;
  margin: 12px 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.materials-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #5ee88a;
  transition: width 0.2s ease;
}

.materials-list-area {
  min-width: 0;
}

.materials-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.materials-tabs button,
.materials-tabs a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font: inherit;
  font-weight: 800;
}

.materials-tabs .is-active {
  border-color: var(--blue);
  color: var(--blue);
}

.materials-list {
  display: grid;
  gap: 12px;
}

.material-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 82px;
  border: 1px solid #e5ebf5;
  border-left: 5px solid var(--blue);
  border-radius: 16px;
  background: #ffffff;
  padding: 13px 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.material-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d6e0ef;
}

.material-row[hidden] {
  display: none;
}

.material-student {
  border-left-color: var(--color-student);
}

.material-parent {
  border-left-color: var(--color-parent);
}

.material-file-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 900;
}

.material-student .material-file-icon {
  background: var(--color-student-soft);
  color: var(--color-student);
}

.material-parent .material-file-icon {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.material-row-main {
  min-width: 0;
}

.material-row-main .tag {
  min-height: 24px;
  margin-bottom: 6px;
  padding: 0 9px;
  font-size: 0.72rem;
}

.material-row h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  line-height: 1.2;
}

.material-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.material-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.material-download-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
}

.material-download-button:hover {
  background: var(--blue);
  color: #ffffff;
}

.materials-empty {
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  background: var(--soft);
  color: var(--muted);
  padding: 28px;
  text-align: center;
  font-weight: 700;
}

.parent-compact-hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(13, 148, 136, 0.11), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--color-parent-soft) 100%);
  padding: 58px 0 42px;
}

.parent-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 34px;
  align-items: end;
}

.parent-hero-note {
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 20px;
  box-shadow: var(--shadow);
}

.parent-hero-note strong,
.parent-hero-note span {
  display: block;
}

.parent-hero-note strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.parent-hero-note span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.parent-resource-page {
  background:
    radial-gradient(circle at 14% 0%, rgba(13, 148, 136, 0.09), transparent 30%),
    var(--soft);
}

.parent-resource-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.parent-resource-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfffd);
  padding: 28px;
}

.parent-resource-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.45rem);
}

.parent-resource-head p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.parent-search {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0 14px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.parent-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.parent-search input::placeholder {
  color: var(--muted);
}

.parent-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 22px;
}

.parent-module {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.parent-module[hidden] {
  display: none;
}

.parent-module h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.parent-module h3 span {
  color: var(--color-parent);
  font-weight: 900;
}

.parent-faq-module h3 span {
  color: var(--color-student);
}

.parent-topic-wide {
  grid-column: 1 / -1;
}

.parent-download-list,
.parent-topic-list,
.parent-faq-list {
  display: grid;
  gap: 10px;
}

.parent-download-row,
.parent-topic-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: #ffffff;
  padding: 11px 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.parent-download-row:hover,
.parent-topic-row:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow: var(--shadow);
}

.parent-download-row[hidden],
.parent-topic-row[hidden],
.parent-faq-list details[hidden] {
  display: none;
}

.parent-file-icon,
.parent-topic-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  background: var(--color-parent-soft);
  color: var(--color-parent);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
}

.parent-topic-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.parent-topic-row:nth-child(2) .parent-topic-icon {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.parent-topic-row:nth-child(3) .parent-topic-icon {
  background: var(--color-student-soft);
  color: var(--color-student);
}

.parent-download-row strong,
.parent-topic-row strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

.parent-download-row small,
.parent-topic-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.parent-row-action {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 900;
}

.parent-faq-list details {
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: #ffffff;
  padding: 0 14px;
}

.parent-faq-list summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.parent-faq-list summary::-webkit-details-marker {
  display: none;
}

.parent-faq-list summary::after {
  content: "⌄";
  color: var(--muted);
  font-weight: 900;
  transition: transform 0.2s ease;
}

.parent-faq-list details[open] summary::after {
  transform: rotate(180deg);
}

.parent-faq-list details p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.parent-note-module p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.parent-soft-note {
  margin-top: 16px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 16px;
  background: var(--color-parent-soft);
  padding: 16px;
  color: #115e59;
  font-weight: 700;
}

.parent-empty {
  margin: 0 22px 22px;
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  background: var(--soft);
  color: var(--muted);
  padding: 28px;
  text-align: center;
  font-weight: 700;
}

.teacher-compact-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(79, 70, 229, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--color-teacher-soft) 100%);
  padding: 58px 0 42px;
}

.teacher-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 34px;
  align-items: end;
}

.teacher-hero-note {
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 20px;
  box-shadow: var(--shadow);
}

.teacher-hero-note strong,
.teacher-hero-note span {
  display: block;
}

.teacher-hero-note strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.teacher-hero-note span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.teacher-resource-page {
  background:
    radial-gradient(circle at 82% 0%, rgba(79, 70, 229, 0.08), transparent 32%),
    var(--soft);
}

.teacher-resource-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.teacher-resource-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  padding: 28px;
}

.teacher-resource-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.45rem);
}

.teacher-resource-head p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.teacher-search {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0 14px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.teacher-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.teacher-search input::placeholder {
  color: var(--muted);
}

.teacher-resource-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.teacher-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.teacher-sidebar-card,
.teacher-collection-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.teacher-sidebar-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-category {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.teacher-category span {
  display: grid;
  width: 24px;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 900;
}

.teacher-category:hover,
.teacher-category.is-active {
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
}

.teacher-side-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  border-radius: 12px;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 800;
}

.teacher-side-link:hover {
  background: var(--soft);
  color: var(--color-teacher);
}

.teacher-collection-card {
  background: linear-gradient(135deg, var(--color-teacher), var(--color-teacher-end));
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(79, 70, 229, 0.22);
}

.teacher-collection-card strong,
.teacher-collection-card small {
  display: block;
}

.teacher-collection-card strong {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
}

.teacher-collection-card small {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.teacher-progress {
  overflow: hidden;
  height: 8px;
  margin: 12px 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.teacher-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #5ee88a;
  transition: width 0.2s ease;
}

.teacher-list-area {
  min-width: 0;
}

.teacher-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.teacher-tabs button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font: inherit;
  font-weight: 800;
}

.teacher-tabs .is-active {
  border-color: var(--color-teacher);
  color: var(--color-teacher);
}

.teacher-list {
  display: grid;
  gap: 12px;
}

.teacher-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 86px;
  border: 1px solid #e5ebf5;
  border-left: 5px solid var(--color-teacher);
  border-radius: 16px;
  background: #ffffff;
  padding: 13px 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.teacher-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d6e0ef;
}

.teacher-row[hidden] {
  display: none;
}

.teacher-material-row {
  border-left-color: var(--blue);
}

.teacher-reading-row {
  border-left-color: var(--color-parent);
}

.teacher-game-row {
  border-left-color: var(--color-student);
}

.teacher-soon-row {
  border-left-color: #94a3b8;
  background: var(--soft);
}

.teacher-row-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
  font-family: var(--font-heading);
  font-weight: 900;
}

.teacher-material-row .teacher-row-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.teacher-reading-row .teacher-row-icon {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.teacher-game-row .teacher-row-icon {
  background: var(--color-student-soft);
  color: var(--color-student);
}

.teacher-soon-row .teacher-row-icon {
  background: #e2e8f0;
  color: #64748b;
}

.teacher-row-main {
  min-width: 0;
}

.teacher-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 999px;
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 900;
}

.teacher-pill-material {
  border-color: rgba(37, 99, 235, 0.2);
  background: var(--blue-soft);
  color: var(--blue);
}

.teacher-pill-reading {
  border-color: rgba(13, 148, 136, 0.2);
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.teacher-pill-game {
  border-color: rgba(217, 119, 6, 0.2);
  background: var(--color-student-soft);
  color: var(--color-student);
}

.teacher-pill-soon {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
}

.teacher-row h2 {
  margin: 7px 0 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.14rem;
  line-height: 1.2;
}

.teacher-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.teacher-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teacher-action-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
}

.teacher-action-button:hover {
  background: var(--color-teacher);
  color: #ffffff;
}

.teacher-status {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.teacher-empty {
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  background: var(--soft);
  color: var(--muted);
  padding: 28px;
  text-align: center;
  font-weight: 700;
}

.teacher-note {
  display: grid;
  gap: 4px;
  margin: 0 22px 22px;
  border-left: 4px solid var(--color-teacher);
  border-radius: 18px;
  background: var(--color-teacher-soft);
  padding: 16px 18px;
}

.teacher-note strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 800;
}

.teacher-note span {
  color: var(--muted);
  line-height: 1.5;
}

.teacher-hub-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.teacher-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 22px;
}

.teacher-module {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.teacher-module[hidden] {
  display: none;
}

.teacher-module h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.teacher-module h3 span {
  color: var(--color-teacher);
  font-weight: 900;
}

.teacher-material-module h3 span {
  color: var(--blue);
}

.teacher-play-module h3 span {
  color: var(--color-student);
}

.teacher-soon-module h3 span {
  color: #64748b;
}

.teacher-link-list {
  display: grid;
  gap: 10px;
}

.teacher-link-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: #ffffff;
  padding: 11px 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.teacher-link-row:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.22);
  box-shadow: var(--shadow);
}

.teacher-link-row[hidden] {
  display: none;
}

.teacher-static-row:hover {
  transform: none;
  box-shadow: none;
}

.teacher-link-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 900;
}

.teacher-material-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.teacher-reading-icon {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.teacher-student-icon,
.teacher-game-icon {
  background: var(--color-student-soft);
  color: var(--color-student);
}

.teacher-soon-icon {
  background: #e2e8f0;
  color: #64748b;
}

.teacher-link-row strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

.teacher-link-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.teacher-row-action {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
  font-family: var(--font-heading);
  font-weight: 900;
}

.teacher-note-module {
  grid-column: 1 / -1;
}

.teacher-note-module p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.teacher-soft-note {
  margin-top: 16px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 16px;
  background: var(--color-teacher-soft);
  padding: 16px;
  color: #3730a3;
  font-weight: 700;
}

.student-compact-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(217, 119, 6, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--color-student-soft) 100%);
  padding: 58px 0 42px;
}

.student-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 34px;
  align-items: end;
}

.student-hero-note {
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 20px;
  box-shadow: var(--shadow);
}

.student-hero-note strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.student-resource-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 119, 6, 0.09), transparent 30%),
    var(--soft);
}

.student-hub-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.student-resource-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fffdf7);
  padding: 28px;
}

.student-resource-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.45rem);
}

.student-resource-head p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.student-search {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0 14px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.student-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.student-search input::placeholder {
  color: var(--muted);
}

.student-hub-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.student-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.student-sidebar-card,
.student-goal-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.student-sidebar-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.student-category {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.student-category span {
  display: grid;
  width: 24px;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 900;
}

.student-category:hover,
.student-category.is-active {
  background: var(--color-student-soft);
  color: var(--color-student);
}

.student-goal-card {
  background: linear-gradient(135deg, var(--color-student), var(--color-student-end));
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(217, 119, 6, 0.2);
}

.student-goal-card strong,
.student-goal-card small {
  display: block;
}

.student-goal-card strong {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
}

.student-goal-card small {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.student-progress {
  overflow: hidden;
  height: 8px;
  margin: 12px 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.student-progress span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: #5ee88a;
}

.student-card-area {
  min-width: 0;
}

.student-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.student-tabs button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font: inherit;
  font-weight: 800;
}

.student-tabs .is-active {
  border-color: var(--color-student);
  color: var(--color-student);
}

.student-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.student-topic-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  min-height: 156px;
  border: 1px solid #e5ebf5;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.student-topic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 6, 0.24);
  box-shadow: var(--shadow);
}

.student-topic-card[hidden] {
  display: none;
}

.student-soon-card {
  color: inherit;
}

.student-topic-art {
  display: grid;
  min-height: 126px;
  place-items: center;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 900;
}

.student-topic-art.blocks {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.86), transparent 22%),
    linear-gradient(135deg, #fef3c7, #dbeafe);
  color: #92400e;
}

.student-topic-art.words {
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  color: var(--blue);
}

.student-topic-art.time {
  background: linear-gradient(135deg, #dcfce7, #e0f2fe);
  color: var(--color-parent);
}

.student-topic-art.study {
  background: linear-gradient(135deg, #fef3c7, #fce7f3);
  color: var(--color-student);
}

.student-topic-art.soon {
  background: #e2e8f0;
  color: #64748b;
}

.student-topic-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.student-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.student-topic-content strong {
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.15;
}

.student-topic-content small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.student-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.student-chip-row span {
  border-radius: 999px;
  background: var(--soft);
  color: #334155;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.student-empty {
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  background: var(--soft);
  color: var(--muted);
  padding: 28px;
  text-align: center;
  font-weight: 700;
}

.transfer-hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(13, 148, 136, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--color-parent-soft) 100%);
  padding: 58px 0 42px;
}

.transfer-content {
  background: var(--soft);
}

.transfer-shell {
  display: grid;
  gap: 24px;
}

.transfer-jumpbar {
  position: sticky;
  top: 86px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.transfer-jumpbar a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 800;
}

.transfer-jumpbar a:hover {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.transfer-overview,
.transfer-path-grid,
.transfer-reminder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.transfer-fact-card,
.transfer-path-card,
.transfer-reminder-grid article,
.transfer-tool,
.transfer-section,
.transfer-sources {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.transfer-card-icon,
.transfer-path-card span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  background: var(--color-parent-soft);
  color: var(--color-parent);
  font-family: var(--font-heading);
  font-weight: 900;
}

.transfer-fact-card h2,
.transfer-path-card h3 {
  margin: 16px 0 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.transfer-fact-card p,
.transfer-path-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.transfer-tool-head,
.transfer-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.transfer-tool-head h2,
.transfer-section-head h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}

.transfer-tool-head p,
.transfer-section-head p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.transfer-note {
  max-width: 320px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 16px;
  background: var(--color-parent-soft);
  color: #115e59;
  padding: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.transfer-download-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(0, 87, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, var(--blue-soft));
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}

.transfer-download-strip > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.transfer-download-strip strong,
.transfer-download-strip span {
  display: block;
}

.transfer-download-strip strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.transfer-download-strip span {
  color: var(--muted);
  line-height: 1.35;
}

.transfer-download-strip .transfer-download-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  line-height: 1;
}

.transfer-download-strip-quiet {
  box-shadow: none;
}

.transfer-calculator-grid,
.transfer-probe-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.transfer-input-panel,
.transfer-scenario-grid,
.transfer-check-grid {
  display: grid;
  gap: 14px;
}

.transfer-input-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
}

.transfer-input-panel label,
.transfer-scenario-grid label,
.transfer-probe-grid label,
.transfer-check-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 800;
}

.transfer-input-panel select,
.transfer-scenario-grid select,
.transfer-probe-grid select {
  min-height: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  font-family: var(--font-body);
  font-weight: 800;
}

.transfer-result-panel,
.transfer-probe-result,
.transfer-scenario-result,
.transfer-fit-result {
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, var(--color-parent-soft));
  padding: 20px;
}

.transfer-result-kicker {
  color: var(--color-parent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transfer-result-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.transfer-result-panel p,
.transfer-probe-result p,
.transfer-scenario-result p,
.transfer-fit-result p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.transfer-route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.transfer-route-tags span {
  border-radius: 999px;
  background: #ffffff;
  color: #115e59;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.transfer-path-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.transfer-scenario-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.transfer-case-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.transfer-case-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.case-group {
  display: grid;
  align-content: start;
  gap: 6px;
}

.case-group > span {
  color: var(--color-parent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transfer-case-row {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

@media (max-width: 560px) {
  .transfer-case-picker {
    grid-template-columns: 1fr;
  }
}

.transfer-case-row.is-active {
  border-color: rgba(13, 148, 136, 0.42);
  background: var(--color-parent-soft);
  color: #115e59;
}

.transfer-probe-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.probe-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.probe-decision-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
}

.probe-decision-grid h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.probe-decision-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.probe-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.probe-link-label {
  margin: 16px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.probe-links a {
  border: 1px solid rgba(0, 87, 255, 0.18);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 900;
}

.transfer-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.transfer-check-grid input {
  width: 100%;
  accent-color: var(--color-parent);
}

.transfer-questionnaire {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.transfer-questionnaire fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
}

.transfer-questionnaire legend {
  padding: 0 4px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 900;
}

.transfer-questionnaire label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.transfer-questionnaire label:has(input:checked) {
  border-color: rgba(13, 148, 136, 0.35);
  background: var(--color-parent-soft);
  color: #115e59;
}

.transfer-questionnaire input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-parent);
  flex: 0 0 auto;
}

.fit-score-line {
  display: block;
  margin-top: 12px;
  color: var(--color-parent);
  font-size: 0.9rem;
  font-weight: 900;
}

.transfer-step-test {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.fit-progress {
  display: grid;
  gap: 8px;
  color: var(--color-parent);
  font-weight: 900;
}

.fit-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.fit-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-parent), var(--green));
  transition: width 0.2s ease;
}

.fit-question-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
}

.fit-question-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.28rem;
}

.fit-answer-list {
  display: grid;
  gap: 10px;
}

.fit-answer {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  padding: 13px 14px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.fit-answer.is-selected {
  border-color: rgba(13, 148, 136, 0.42);
  background: var(--color-parent-soft);
  color: #115e59;
}

.fit-test-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.transfer-reminder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transfer-reminder-grid article strong,
.transfer-reminder-grid article span,
.transfer-source-list a {
  display: block;
}

.transfer-reminder-grid article strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.12rem;
}

.transfer-reminder-grid article span {
  margin-top: 6px;
  color: var(--muted);
}

.transfer-source-list {
  display: grid;
  gap: 10px;
}

.transfer-source-list a {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 14px 16px;
  color: var(--blue);
  font-weight: 800;
}

.transfer-source-list a:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.teacher-overview-layout {
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
}

.teacher-overview-panel .side-symbol {
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
  font-size: 1.85rem;
}

.teacher-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.teacher-tool-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.teacher-tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--teacher-grad);
}

.tool-blitz::before {
  background: var(--parent-grad);
}

.tool-material::before {
  background: linear-gradient(90deg, var(--blue), #38bdf8);
}

.tool-soon {
  background: var(--soft);
}

.tool-soon::before {
  background: #cbd5e1;
}

.teacher-tool-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
}

.tool-blitz .teacher-tool-icon {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.tool-material .teacher-tool-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.tool-soon .teacher-tool-icon {
  background: #f1f5f9;
  color: #64748b;
}

.teacher-tool-card .label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-tool-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
}

.teacher-tool-card p {
  flex-grow: 1;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.52;
}

.teacher-tool-card .button {
  width: 100%;
}

.teacher-short-note {
  margin-top: 24px;
  background: var(--color-teacher-soft);
  border-color: rgba(79, 70, 229, 0.18);
}

.parent-guide-layout {
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
}

.parent-guide-panel {
  scroll-margin-top: 120px;
}

.parent-guide-nav {
  position: sticky;
  top: 96px;
}

.parent-principles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.parent-principles span,
.parent-sentence-list span {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  background: #ecfdf5;
  color: #0f766e;
  padding: 12px 14px;
  font-weight: 800;
}

.parent-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.parent-info-grid > div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  padding: 18px;
}

.parent-info-grid h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.parent-info-grid p {
  margin: 0;
}

.parent-routine {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.parent-routine strong {
  color: var(--ink);
}

.parent-sentence-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.source-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.source-panel a {
  color: #0f766e;
  font-weight: 800;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: #1d4ed8;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.audience .text-link,
.note .text-link {
  display: inline-flex;
  margin-top: 18px;
}

/* Farblicht-Varianten für Zielgruppen-Unterseiten */
body.theme-parent .eyebrow,
body.theme-parent .text-link {
  color: var(--color-parent);
}
body.theme-parent .button.primary {
  background: var(--color-parent);
  border-color: var(--color-parent);
  box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.35);
}
body.theme-parent .button.primary:hover {
  background: #0f766e;
  border-color: #0f766e;
}
body.theme-parent .page-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-parent-soft) 100%);
}

body.theme-teacher .eyebrow,
body.theme-teacher .text-link {
  color: var(--color-teacher);
}
body.theme-teacher .button.primary {
  background: var(--color-teacher);
  border-color: var(--color-teacher);
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.35);
}
body.theme-teacher .button.primary:hover {
  background: #4338ca;
  border-color: #4338ca;
}
body.theme-teacher .page-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-teacher-soft) 100%);
}

body.theme-student .eyebrow,
body.theme-student .text-link {
  color: var(--color-student);
}
body.theme-student .button.primary {
  background: var(--color-student);
  border-color: var(--color-student);
  box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.35);
}
body.theme-student .button.primary:hover {
  background: #b45309;
  border-color: #b45309;
}
body.theme-student .page-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-student-soft) 100%);
}

/* Learning Hub */
.learning-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 119, 6, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--color-student-soft) 100%) !important;
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.learning-main {
  display: grid;
  gap: 28px;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.learning-grid-small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-section {
  scroll-margin-top: 120px;
}

.hub-section + .hub-section {
  margin-top: 42px;
}

.topic-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.topic-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--student-grad);
}

.topic-card h2 {
  margin: 10px 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.topic-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.topic-card .button {
  margin-top: auto;
}

.topic-card .guide-meta {
  margin-bottom: 18px;
}

.topic-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
}

.topic-german .topic-kicker,
.topic-reading .topic-kicker {
  border: 1px solid rgba(217, 119, 6, 0.18);
  background: var(--color-student-soft);
  color: var(--color-student);
}

.topic-math .topic-kicker {
  background: #dbeafe;
  color: #1d4ed8;
}

.topic-soon {
  background: var(--soft);
}

.topic-soon::before {
  background: #cbd5e1;
}

.topic-soon .topic-kicker {
  background: #f1f5f9;
  color: #64748b;
}

.learning-page:not(.topic-page) .learning-nav {
  border-color: rgba(217, 119, 6, 0.16);
  background: linear-gradient(180deg, #ffffff, #fffbeb);
}

.learning-page:not(.topic-page) .learning-nav .side-symbol {
  background: var(--color-student-soft);
  color: var(--color-student);
}

.learning-roadmap {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft);
  padding: 32px;
}

.learning-roadmap h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.15;
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.step-list strong {
  color: var(--ink);
}

/* Learning Topic Pages */
.learning-topic-layout {
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
}

.lesson-panel {
  scroll-margin-top: 120px;
}

.topic-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.topic-hero-symbol {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 32px;
  background: #ffffff;
  color: var(--color-student);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.topic-satzglieder .learning-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 119, 6, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fff7ed 100%) !important;
}

.topic-wortarten .learning-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(13, 148, 136, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--color-parent-soft) 100%) !important;
}

.topic-wortarten .topic-hero-symbol {
  border-color: rgba(13, 148, 136, 0.22);
  color: var(--color-parent);
}

.topic-zeitformen .learning-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--blue-soft) 100%) !important;
}

.topic-zeitformen .topic-hero-symbol {
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--blue);
}

.lesson-panel .eyebrow,
.practice-preview .eyebrow {
  margin-bottom: 10px;
  color: #0f766e;
}

.lesson-check {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-radius: 16px;
  background: #f0fdfa;
  color: #0f766e;
  padding: 12px 14px;
  font-weight: 700;
}

.learning-checklist {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.learning-checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.learning-checklist input {
  width: 20px;
  height: 20px;
  accent-color: #0f766e;
}

.example-box {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 18px;
  background: #f8fafc;
  margin: 22px 0;
  padding: 18px;
}

.example-box span {
  color: #0f766e;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.example-box p {
  margin: 0;
}

.example-box mark,
.subject-mark,
.predicate-mark,
.dative-mark,
.accusative-mark,
.time-mark,
.place-mark {
  border-radius: 8px;
  padding: 0 5px;
}

.subject-mark,
.question-card.subject {
  background: #fee2e2;
}

.predicate-mark,
.question-card.predicate {
  background: #dbeafe;
}

.dative-mark,
.question-card.dative {
  background: #dcfce7;
}

.accusative-mark,
.question-card.accusative {
  background: #fef3c7;
}

.time-mark,
.question-card.time {
  background: #ede9fe;
}

.place-mark,
.question-card.place {
  background: #ccfbf1;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wordtype-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.question-card {
  display: grid;
  gap: 6px;
  min-height: 116px;
  align-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px;
}

.question-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.question-card strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.2;
}

.split-lessons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.split-lessons > div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  padding: 20px;
}

.split-lessons h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.hint {
  border-left: 4px solid #0f766e;
  background: #f0fdfa;
  border-radius: 0 14px 14px 0;
  padding: 12px 14px;
}

/* Practice Components */
.exercise-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.exercise-list div {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  padding: 12px 14px;
  font-weight: 700;
}

.exercise-list strong {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0f766e;
  color: #ffffff;
}

.detective-game {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 20px;
  background: #f8fafc;
  margin-top: 24px;
  padding: 22px;
}

.game-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.game-tab {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.game-tab:hover {
  border-color: rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

.game-tab.is-active {
  border-color: rgba(13, 148, 136, 0.4);
  background: #ccfbf1;
  color: #0f766e;
}

.game-panel[hidden] {
  display: none;
}

.detective-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.detective-status strong {
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  padding: 6px 12px;
}

.detective-task {
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.detective-task span {
  display: block;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
}

.detective-task p {
  margin: 8px 0 0;
  color: var(--muted);
}

.sentence-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sentence-part,
.choice-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.choice-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.question-choice-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-button {
  min-height: 58px;
}

.sentence-part:hover,
.choice-button:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 148, 136, 0.35);
}

.sentence-part.is-correct,
.choice-button.is-correct {
  border-color: #16a34a;
  background: #dcfce7;
  color: #166534;
}

.sentence-part.is-wrong,
.choice-button.is-wrong {
  border-color: #f59e0b;
  background: #fef3c7;
  color: #92400e;
}

.sentence-part:disabled,
.choice-button:disabled {
  cursor: default;
  opacity: 0.82;
  transform: none;
}

.detective-feedback {
  margin: 0;
  border-radius: 16px;
  background: #ffffff;
  color: var(--muted);
  padding: 14px 16px;
  font-weight: 700;
}

.detective-feedback.is-correct {
  background: #dcfce7;
  color: #166534;
}

.detective-feedback.is-wrong,
.detective-feedback.is-tip {
  background: #fef3c7;
  color: #92400e;
}

.detective-result {
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.detective-result strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.2;
}

.detective-result p {
  margin: 10px 0 0;
  color: var(--muted);
}

.detective-game .button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

/* Einmaleins-Tafelfussball */
.game-page {
  min-height: 100vh;
  overflow: auto;
  background: #0b1220;
  color: #ffffff;
}

.soccer-game {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 14px;
  -webkit-touch-callout: none;
  user-select: none;
}

.scoreboard,
.game-controls {
  display: grid;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.scoreboard {
  grid-template-columns: auto minmax(130px, 0.7fr) minmax(280px, 1fr) minmax(130px, 0.7fr) auto;
  gap: 14px;
  min-height: 96px;
  padding: 12px 14px;
}

.game-home {
  color: #e2e8f0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.team-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 70px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.team-score strong {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team-left .team-name {
  color: #60a5fa;
}

.team-right .team-name {
  color: #fb7185;
}

.task-board {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
}

.task-board span {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.task-board strong {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.task-board.is-right strong {
  animation: task-right 0.58s ease;
}

.task-board.is-new strong {
  animation: task-new 0.58s ease;
}

.timer-wrap {
  width: min(460px, 100%);
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.timer-wrap span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #facc15, #ef4444);
  transition: width 0.08s linear;
}

.game-icon-button {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
}

.game-arena {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(360px, 1fr) minmax(150px, 230px);
  gap: 14px;
  min-height: 0;
}

.player-panel {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  min-height: 0;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  padding: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.left-player {
  border-color: rgba(96, 165, 250, 0.55);
}

.right-player {
  border-color: rgba(251, 113, 133, 0.55);
}

.player-head {
  display: grid;
  gap: 8px;
  text-align: center;
}

.player-head span {
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.player-head strong {
  display: grid;
  min-height: 62px;
  place-items: center;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.number-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(54px, 1fr);
  gap: 10px;
  min-height: 0;
}

.number-pad button,
.delete-button {
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18);
}

.number-pad button {
  background: #334155;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.left-player .number-pad button {
  background: #2563eb;
}

.right-player .number-pad button {
  background: #e11d48;
}

.number-pad button:active,
.delete-button:active {
  transform: translateY(2px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

.delete-button {
  min-height: 58px;
  background: #f59e0b;
  font-size: 1.1rem;
}

.side-task {
  display: grid;
  gap: 4px;
  min-height: 74px;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  text-align: center;
}

.side-task span {
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.side-task strong {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
}

.side-task.is-new {
  animation: side-task-new 0.72s ease;
}

.field-wrap {
  min-height: 0;
}

.football-field {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 9%, transparent 9% 18%),
    linear-gradient(135deg, #16803a, #0f6b32 46%, #20994a);
  box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.35), 0 20px 45px rgba(0, 0, 0, 0.24);
}

.field-line,
.center-circle,
.penalty-box,
.goal {
  position: absolute;
  border-color: rgba(255, 255, 255, 0.82);
}

.halfway {
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 4px solid rgba(255, 255, 255, 0.82);
}

.center-circle {
  top: 50%;
  left: 50%;
  width: min(24vw, 250px);
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.penalty-box {
  top: 23%;
  width: 17%;
  height: 54%;
  border: 4px solid rgba(255, 255, 255, 0.82);
}

.penalty-left {
  left: -4px;
}

.penalty-right {
  right: -4px;
}

.goal {
  top: 36%;
  width: 26px;
  height: 28%;
  border: 4px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.14);
}

.goal-left {
  left: -8px;
  border-left: 0;
}

.goal-right {
  right: -8px;
  border-right: 0;
}

.ball-track {
  position: absolute;
  inset: 0;
}

.ball {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(42px, 6vw, 76px);
  aspect-ratio: 1;
  border: 4px solid #111827;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #111827 0 14%, transparent 15%),
    radial-gradient(circle at 30% 28%, #111827 0 8%, transparent 9%),
    radial-gradient(circle at 68% 30%, #111827 0 8%, transparent 9%),
    radial-gradient(circle at 34% 72%, #111827 0 8%, transparent 9%),
    radial-gradient(circle at 70% 72%, #111827 0 8%, transparent 9%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%);
  transition: left 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.streak-label {
  position: absolute;
  bottom: 16px;
  min-width: 96px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  padding: 8px 14px;
  color: #ffffff;
  font-weight: 900;
  text-align: center;
}

.streak-left {
  left: 18px;
}

.streak-right {
  right: 18px;
}

.player-panel.is-right {
  animation: panel-right 0.5s ease;
}

.player-panel.is-wrong {
  animation: panel-wrong 0.5s ease;
}

.game-controls {
  grid-template-columns: auto auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.game-controls .button {
  min-height: 50px;
  border-radius: 14px;
}

.game-controls p {
  margin: 0;
  color: #e2e8f0;
  font-weight: 700;
  text-align: right;
}

.goal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
}

.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
}

.goal-overlay[hidden] {
  display: none;
}

.qr-overlay[hidden] {
  display: none;
}

.goal-dialog {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(620px, 100%);
  border: 5px solid #ffffff;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.26), transparent 42%),
    linear-gradient(135deg, #14532d, #166534);
  padding: clamp(30px, 5vw, 56px);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: goal-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-dialog {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(520px, 100%);
  border: 5px solid #ffffff;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: clamp(24px, 4vw, 40px);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: goal-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.goal-dialog span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
}

.qr-dialog span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
}

.goal-dialog strong {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 10rem);
  line-height: 0.82;
  text-shadow: 0 8px 0 rgba(15, 23, 42, 0.32);
}

.qr-dialog strong {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.95;
}

.qr-dialog img {
  width: min(360px, 76vw);
  aspect-ratio: 1;
  border: 12px solid #ffffff;
  border-radius: 18px;
  background: #ffffff;
}

.goal-dialog p {
  max-width: 460px;
  margin: 0;
  color: #dcfce7;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
}

.qr-dialog p {
  max-width: 100%;
  margin: 0;
  color: #dbeafe;
  font-size: 0.95rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.goal-dialog .button {
  min-width: 210px;
  margin-top: 8px;
  border-color: #ffffff;
  background: #ffffff;
  color: #14532d;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.qr-dialog .button {
  min-width: 210px;
  margin-top: 4px;
  border-color: #ffffff;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

@keyframes panel-right {
  0%, 100% { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26); }
  45% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.45), 0 18px 40px rgba(0, 0, 0, 0.26); }
}

@keyframes panel-wrong {
  0%, 100% { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26); }
  45% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.45), 0 18px 40px rgba(0, 0, 0, 0.26); }
}

@keyframes task-right {
  0%, 100% {
    color: #ffffff;
    text-shadow: none;
    transform: scale(1);
  }
  45% {
    color: #bbf7d0;
    text-shadow: 0 0 24px rgba(34, 197, 94, 0.9);
    transform: scale(1.12);
  }
}

@keyframes task-new {
  0% {
    color: #fde68a;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.75);
    transform: scale(1.08);
  }
  100% {
    color: #ffffff;
    text-shadow: none;
    transform: scale(1);
  }
}

@keyframes side-task-new {
  0%, 100% {
    border-color: rgba(226, 232, 240, 0.2);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transform: scale(1);
  }
  42% {
    border-color: rgba(250, 204, 21, 0.9);
    background: rgba(250, 204, 21, 0.18);
    box-shadow: 0 0 0 5px rgba(250, 204, 21, 0.18);
    transform: scale(1.04);
  }
}

@keyframes goal-pop {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .game-page {
    overflow: auto;
  }

  .scoreboard {
    grid-template-columns: 1fr auto;
  }

  .team-score,
  .task-board {
    grid-column: 1 / -1;
  }

  .game-home {
    align-self: center;
  }

  .game-icon-button {
    justify-self: end;
  }

  .game-arena {
    grid-template-columns: 1fr;
  }

  .football-field {
    min-height: 360px;
  }

  .number-pad {
    grid-auto-rows: 72px;
  }

  .game-controls {
    grid-template-columns: 1fr;
  }

  .game-controls p {
    text-align: center;
  }
}

/* Tool Shell (Lernplan-Assistent & Formulare) */
.tool-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
}

.tool-form,
.tool-output {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 34px;
  box-shadow: var(--shadow);
}

.tool-form {
  background: var(--soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.days-title {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 13px 16px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

/* Blitzlesen */
.blitz-page .page-hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(13, 148, 136, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.blitz-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.58fr);
  gap: 28px;
  align-items: start;
}

.blitz-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.blitz-panel-head h2 {
  margin: 0;
}

.blitz-panel-head .eyebrow {
  margin-bottom: 8px;
}

.blitz-panel-head strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 999px;
  background: var(--color-parent-soft);
  color: #0f766e;
  padding: 0 14px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.blitz-textarea {
  min-height: 220px !important;
  line-height: 1.7;
}

.blitz-settings {
  display: grid;
  gap: 22px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.choice-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
}

.choice-field legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
}

.choice-field label {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.choice-field label:has(input:checked) {
  border-color: rgba(13, 148, 136, 0.35);
  background: var(--color-parent-soft);
  color: #0f766e;
}

.choice-field input {
  accent-color: var(--color-parent);
}

.auto-pause-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pause-fixed[hidden],
.auto-pause-grid[hidden] {
  display: none;
}

.blitz-message {
  min-height: 24px;
  margin: 18px 0 0;
  color: #0f766e;
  font-weight: 700;
}

.blitz-actions {
  margin-top: 18px;
}

.saved-list {
  display: grid;
  gap: 12px;
}

.saved-empty,
.saved-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.saved-empty {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.saved-empty strong {
  color: var(--ink);
}

.saved-item {
  display: grid;
  gap: 14px;
}

.saved-item strong,
.saved-item span {
  display: block;
}

.saved-item strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
}

.saved-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-button {
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  padding: 0 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.mini-button:hover {
  border-color: #cbd5e1;
  color: var(--ink);
  background: #ffffff;
}

.mini-button.danger {
  color: #b91c1c;
}

.reader-is-open {
  overflow: hidden;
}

.reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #ffffff;
  color: #000000;
  font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
}

.reader-overlay[hidden] {
  display: none;
}

.reader-topbar,
.reader-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
}

.reader-topbar {
  color: #334155;
  font-family: var(--font-body);
  font-weight: 800;
}

.reader-button {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 16px;
  font: inherit;
  font-family: var(--font-body);
  font-weight: 800;
  cursor: pointer;
}

.reader-stage {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 24px;
}

.reader-word {
  max-width: min(92vw, 1200px);
  color: #000000;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.reader-controls {
  justify-content: center;
  padding-bottom: 28px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.day-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.day-check:hover {
  border-color: #cbd5e1;
  background: var(--soft);
}

.day-check input {
  width: auto;
  accent-color: var(--blue);
  box-shadow: none;
  padding: 0;
}

.day-check:has(input:checked) {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

.result-empty {
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  background: var(--soft);
  color: var(--muted);
  padding: 34px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
}

.plan-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.summary-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.summary-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: 800;
}

.summary-item span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.plan-day {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.plan-day + .plan-day {
  margin-top: 18px;
}

.plan-day h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 800;
}

.plan-day h2 span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.plan-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 18px 20px;
  align-items: start;
}

.plan-item + .plan-item {
  border-top: 1px solid var(--line);
}

.plan-time {
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--soft);
  padding: 4px 8px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.plan-task strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.plan-task span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Besondere Markierungen für Pausen und Freizeit */
.plan-item.break {
  background: rgba(248, 250, 252, 0.6);
}
.plan-item.break .plan-time {
  color: var(--muted);
  background: #ffffff;
}

.plan-item.free {
  background: var(--color-student-soft);
  opacity: 0.9;
}
.plan-item.free .plan-time {
  color: var(--color-student);
  background: #ffffff;
  border-color: rgba(217, 119, 6, 0.2);
}
.plan-item.free .plan-task strong {
  color: #92400e;
}

.print-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .nav,
  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .site-header {
    padding: 10px 0;
  }

  .nav {
    min-height: auto;
  }

  .menu {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    gap: 18px;
    row-gap: 0;
  }

  .menu a {
    padding: 8px 0;
    white-space: nowrap;
  }

  .hero-grid,
  .cards,
  .compact-cards,
  .audience-grid,
  .gateway-grid,
  .materials,
  .materials-hero-grid,
  .parent-hero-grid,
  .teacher-hero-grid,
  .student-hero-grid,
  .materials-resource-head,
  .materials-resource-layout,
  .parent-resource-head,
  .parent-compact-grid,
  .teacher-resource-head,
  .teacher-resource-layout,
  .teacher-module-grid,
  .student-resource-head,
  .student-hub-layout,
  .student-topic-grid,
  .transfer-overview,
  .transfer-path-grid,
  .transfer-reminder-grid,
  .transfer-calculator-grid,
  .transfer-input-panel,
  .transfer-scenario-grid,
  .transfer-case-layout,
  .transfer-probe-grid,
  .probe-decision-grid,
  .transfer-questionnaire,
  .transfer-check-grid,
  .content-grid,
  .tool-shell,
  .blitz-shell,
  .learning-layout,
  .learning-grid,
  .learning-roadmap,
  .question-grid,
  .split-lessons,
  .game-tabs,
  .guide-grid,
  .parent-overview-layout,
  .teacher-overview-layout,
  .student-overview-layout,
  .materials-overview-layout,
  .teacher-tool-grid,
  .study-grid,
  .student-choice-grid,
  .download-grid,
  .download-grid-two,
  .download-card,
  .schooplan-days,
  .topic-hero-layout,
  .audience-hero-layout,
  .parent-guide-layout,
  .parent-principles,
  .parent-info-grid,
  .parent-sentence-list {
    grid-template-columns: 1fr;
  }

  .material-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .material-actions {
    grid-column: 2;
    width: 100%;
  }

  .material-actions .mini-button {
    flex: 1;
  }

  .teacher-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .teacher-actions {
    grid-column: 2;
    width: 100%;
  }

  .teacher-actions .mini-button {
    flex: 1;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 40px;
    gap: 40px;
  }

  .hero-panel {
    min-height: auto;
  }

  .topic-hero-symbol {
    width: 100%;
    height: 96px;
    justify-self: stretch;
  }

  .audience-hero-symbol {
    width: 100%;
    height: 112px;
    justify-self: stretch;
    border-radius: 24px;
    font-size: 3rem;
  }
  
  .intro-panel {
    position: static;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 24px, 1120px);
  }
  .brand {
    gap: 10px;
    font-size: 1.18rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .menu {
    gap: 14px;
    font-size: 0.88rem;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .days-grid,
  .plan-summary,
  .choice-field,
  .auto-pause-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .plan-time {
    align-self: start;
    width: auto;
    display: inline-block;
  }

  .choice-field,
  .auto-pause-grid,
  .exercise-list,
  .choice-buttons {
    grid-template-columns: 1fr;
  }

  .reader-topbar,
  .reader-controls {
    padding-inline: 12px;
  }

  .reader-word {
    font-size: clamp(3.2rem, 18vw, 7rem);
  }

  .materials-resource-layout,
  .materials-resource-head,
  .materials-hero-grid,
  .parent-hero-grid,
  .parent-resource-head,
  .parent-compact-grid,
  .teacher-hero-grid,
  .teacher-resource-head,
  .teacher-resource-layout,
  .teacher-module-grid,
  .student-hero-grid,
  .student-resource-head,
  .student-hub-layout,
  .student-topic-grid {
    gap: 16px;
  }

  .transfer-tool-head,
  .transfer-section-head {
    flex-direction: column;
  }

  .transfer-note {
    max-width: none;
  }

  .transfer-download-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .materials-resource-head,
  .materials-resource-layout,
  .parent-resource-head,
  .parent-compact-grid,
  .teacher-resource-head,
  .teacher-resource-layout,
  .teacher-module-grid,
  .student-resource-head,
  .student-hub-layout {
    padding: 16px;
  }

  .material-row {
    grid-template-columns: 1fr;
  }

  .parent-download-row,
  .parent-topic-row,
  .teacher-link-row,
  .student-topic-card {
    grid-template-columns: 1fr;
  }

  .teacher-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .teacher-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .teacher-actions .mini-button {
    flex: 1;
  }

  .parent-row-action {
    width: 100%;
    height: 36px;
  }

  .teacher-row-action {
    width: 100%;
    height: 36px;
  }

  .student-topic-art {
    min-height: 96px;
  }

  .material-actions {
    width: 100%;
  }

  .material-actions .mini-button {
    flex: 1;
  }
}

/* Compact Home */
.home-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 22%, rgba(0, 128, 128, 0.13), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  padding: 64px 0 48px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 48px;
  align-items: center;
}

.home-hero-copy h1 {
  max-width: 820px;
}

.home-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.home-now-panel {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.home-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-now-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-now-row + .home-now-row {
  margin-top: 10px;
}

.home-now-row::after {
  content: "→";
  position: absolute;
  right: 16px;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-now-row:hover,
.home-now-row:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0, 87, 255, 0.28);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.home-now-row:hover::after,
.home-now-row:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.home-now-row strong,
.home-now-row small,
.home-route-card strong,
.home-route-card small,
.home-link-list strong,
.home-link-list span {
  display: block;
}

.home-now-row strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.home-now-row small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.home-now-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-now-row:hover .home-now-icon,
.home-now-row:focus-visible .home-now-icon {
  transform: scale(1.06) rotate(-3deg);
}

.home-now-icon.parent,
.route-parent span {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.home-now-icon.student,
.route-student span {
  background: var(--color-student-soft);
  color: var(--color-student);
}

.home-now-icon.material,
.route-material span {
  background: var(--blue-soft);
  color: var(--blue);
}

.route-teacher span {
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
}

.home-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.home-section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.home-section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-route-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  padding: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-route-card::after {
  content: "→";
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-route-card:hover,
.home-route-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 87, 255, 0.24);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.home-route-card:hover::after,
.home-route-card:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.home-route-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.home-route-card:hover span,
.home-route-card:focus-visible span {
  transform: scale(1.07);
}

.home-route-card strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.18rem;
}

.home-route-card small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.home-spotlight-section {
  background: var(--soft);
}

.home-spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: start;
}

.home-spotlight-main,
.home-tool-card,
.home-newspaper-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 22px;
}

.home-link-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.home-link-list a {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 13px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-link-list a::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 900;
  opacity: 0;
  transform: translate(-8px, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-link-list a:hover,
.home-link-list a:focus-visible {
  transform: translateX(4px);
  border-color: rgba(0, 87, 255, 0.24);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
}

.home-link-list a:hover::after,
.home-link-list a:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.home-link-list strong {
  color: var(--ink);
  font-family: var(--font-heading);
}

.home-link-list span {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.home-side-stack {
  display: grid;
  gap: 16px;
}

.home-newspaper-card {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, var(--blue-soft));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-newspaper-card img {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 14px;
  background: #eaf4ff;
}

.home-newspaper-card:hover,
.home-newspaper-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.home-newspaper-card .button,
.home-tool-card .button {
  width: 100%;
}
.home-tool-card {
  background: linear-gradient(180deg, #ffffff, var(--color-teacher-soft));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 95, 70, 0.22);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.home-tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
}

.home-tool-card p:not(.eyebrow),
.home-newspaper-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.home-material-strip {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 34px 0;
}

.home-material-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(0, 87, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, var(--blue-soft));
  padding: 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-material-inner:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 87, 255, 0.28);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.home-primary-actions .button,
.home-tool-card .button,
.home-newspaper-card .button,
.home-material-inner .button {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-primary-actions .button:hover,
.home-primary-actions .button:focus-visible,
.home-tool-card .button:hover,
.home-tool-card .button:focus-visible,
.home-newspaper-card .button:hover,
.home-newspaper-card .button:focus-visible,
.home-material-inner .button:hover,
.home-material-inner .button:focus-visible {
  transform: translateY(-2px);
}

.home-material-inner h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.home-material-inner p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-section {
  background: #ffffff;
  border-top: 0;
}

.contact-head {
  margin-bottom: 40px;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--soft);
}

.contact-actions {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .home-hero-grid,
  .home-spotlight-layout,
  .home-route-grid {
    grid-template-columns: 1fr;
  }

  .home-section-head,
  .home-material-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .home-material-inner .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .home-hero {
    padding: 44px 0 34px;
  }

  .home-primary-actions,
  .home-primary-actions .button {
    width: 100%;
  }

  .home-now-row {
    grid-template-columns: 1fr;
  }
}

/* Parent Learning Strategies */
.strategy-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(13, 148, 136, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--color-parent-soft) 100%);
}

.strategy-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 34px;
  align-items: center;
}

.strategy-hero-card {
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.strategy-hero-card .hero-note-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
}

.strategy-hero-card strong,
.strategy-hero-card p {
  display: block;
}

.strategy-hero-card strong {
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.strategy-hero-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.strategy-content {
  background: var(--soft);
}

.strategy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.strategy-nav {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.strategy-nav a {
  border-radius: 12px;
  color: var(--muted);
  padding: 10px 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.strategy-nav a:hover,
.strategy-nav a:focus-visible {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.strategy-main {
  display: grid;
  gap: 18px;
}

.strategy-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.strategy-panel h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
}

.strategy-panel > p,
.strategy-panel-head p {
  color: var(--muted);
  line-height: 1.6;
}

.strategy-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.strategy-card-grid article,
.subject-strategy-card,
.coach-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  padding: 16px;
}

.strategy-card-grid span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--color-parent-soft);
  color: var(--color-parent);
  font-family: var(--font-heading);
  font-weight: 900;
}

.strategy-card-grid h3,
.subject-strategy-card h3,
.coach-grid h3,
.strategy-result h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
}

.strategy-card-grid p,
.coach-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.strategy-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.strategy-choice-grid h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.strategy-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-segments button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 9px 13px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.strategy-segments button:hover,
.strategy-segments button:focus-visible,
.strategy-segments button.is-active {
  border-color: rgba(13, 148, 136, 0.35);
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.strategy-result {
  margin-top: 18px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, var(--color-parent-soft));
  padding: 18px;
}

.strategy-result-label {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-parent);
  padding: 5px 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 900;
}

.strategy-result ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.subject-strategy-grid,
.coach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.subject-pill {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 900;
}

.subject-pill.parent {
  background: var(--color-parent-soft);
  color: var(--color-parent);
}

.subject-pill.teacher {
  background: var(--color-teacher-soft);
  color: var(--color-teacher);
}

.subject-pill.material {
  background: var(--blue-soft);
  color: var(--blue);
}

.subject-strategy-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.subject-strategy-card li + li {
  margin-top: 8px;
}

.source-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.source-list a {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--blue);
  padding: 10px 12px;
  font-weight: 800;
}

.source-list a:hover,
.source-list a:focus-visible {
  background: #ffffff;
  border-color: rgba(0, 87, 255, 0.28);
}

@media (max-width: 980px) {
  .strategy-layout,
  .strategy-hero-grid,
  .strategy-card-grid,
  .subject-strategy-grid,
  .coach-grid {
    grid-template-columns: 1fr;
  }

  .strategy-nav {
    position: static;
  }

  .strategy-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .strategy-panel,
  .strategy-hero-card {
    padding: 16px;
  }

  .strategy-segments button {
    flex: 1;
  }
}

/* Legal Pages */
.legal-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.legal-page {
  background: var(--soft);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.legal-nav a {
  border-radius: 12px;
  color: var(--muted);
  padding: 10px 12px;
  font-weight: 800;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  background: var(--blue-soft);
  color: var(--blue);
}

.legal-main {
  display: grid;
  gap: 16px;
}

.legal-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.legal-panel h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.legal-panel h3 {
  margin: 20px 0 8px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-panel ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-data-box {
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: var(--blue-soft);
  padding: 16px;
}

.legal-data-box strong,
.legal-data-box span {
  display: block;
}

.legal-data-box strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.legal-data-box span {
  margin-top: 4px;
  color: var(--muted);
}

.legal-warning {
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 16px;
  background: var(--color-student-soft);
  color: #7c2d12;
  padding: 14px 16px;
  font-weight: 800;
  line-height: 1.5;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .page-hero,
  .tool-form,
  .site-footer,
  .print-note {
    display: none !important;
  }

  .page-content {
    padding: 0;
  }

  .tool-shell {
    display: block;
  }

  .tool-output {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  
  .plan-summary, .plan-day {
    page-break-inside: avoid;
  }
}



