:root {
  --primary: #176b63;
  --primary-dark: #0f4844;
  --ink: #172b2a;
  --bg: #f5f7f3;
  --card: #ffffff;
  --text: #203130;
  --muted: #71807c;
  --border: #dce6df;
  --yellow: #f5bd4f;
  --shadow: 0 16px 42px rgba(31, 66, 60, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site {
  position: relative;
  overflow: hidden;
  background: #174f4a;
  color: #fff;
  padding: 1.25rem max(1.2rem, calc((100% - 1120px) / 2));
  text-align: left;
}
header.site h1 { margin: 0; font-size: 1.5rem; line-height: 1.1; font-weight: 800; }
header.site p { margin: .3rem 0 0; opacity: 0.9; font-size: .95rem; max-width: 590px; }
header.site:not(.site-home) { text-align: center; padding: 1.4rem 1rem; }
.site-home h1 { font-size: clamp(2.8rem, 7vw, 5.7rem); line-height: .98; letter-spacing: -.065em; }
.site-home p { margin: 1.2rem 0 0; font-size: 1.05rem; }

.site-home { min-height: 500px; }
.site-nav { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-actions { display: flex; align-items: center; gap: 1.15rem; }
.brand { color: #fff; display: inline-flex; gap: .6rem; align-items: center; font-weight: 800; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--yellow); color: #174f4a; transform: rotate(-8deg); }
.nav-link { color: #d9eee6; font-size: .85rem; font-weight: 700; }
.nav-link span { color: var(--yellow); margin-left: .3rem; }
.hero-content { position: relative; z-index: 1; max-width: 1120px; margin: 6.2rem auto 0; }
.eyebrow, .section-kicker { color: var(--yellow); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(245, 189, 79, .15); }
.hero-content h1 em { color: var(--yellow); font-style: normal; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero-button { display: inline-flex; align-items: center; gap: .7rem; color: #173b38; background: var(--yellow); padding: .75rem 1.05rem; border-radius: 11px; font-weight: 800; font-size: .9rem; }
.hero-button:hover { text-decoration: none; background: #ffd477; transform: translateY(-1px); }
.hero-button.ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.hero-button.ghost:hover { background: rgba(255,255,255,.15); }
.hero-button.check-button { background: transparent; color: #f8dd91; border: 1px solid rgba(245,189,79,.55); }
.hero-button.check-button:hover { background: rgba(245,189,79,.12); }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.4rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.25rem; color: #fff; }
.hero-stats span { color: #b5d3cb; font-size: .72rem; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 650px; height: 650px; right: -155px; top: -240px; }
.orbit-two { width: 450px; height: 450px; right: -35px; top: -140px; border-color: rgba(245,189,79,.18); }

.container { max-width: 1120px; margin: 0 auto; padding: 1.4rem 1.2rem; }
.check-spotlight { display: flex; justify-content: space-between; gap: 2rem; align-items: center; margin-top: 1.2rem; padding: 1.4rem 1.5rem; background: #fff; border: 1px solid #cfe3dc; border-radius: 18px; box-shadow: var(--shadow); }
.spotlight-copy { max-width: 650px; }.spotlight-copy h2 { margin: .35rem 0 .45rem; color: var(--ink); font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.04em; }.spotlight-copy p { margin: 0; color: var(--muted); font-size: .85rem; max-width: 600px; }.spotlight-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }.spotlight-actions .btn { font-size: .8rem; }
.spotlight-route { display: flex; align-items: center; gap: .55rem; flex: 0 0 auto; }.spotlight-route div { display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center; }.spotlight-route b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #e5f2ed; color: var(--primary); font-size: .7rem; }.spotlight-route span { color: var(--muted); font-size: .62rem; white-space: nowrap; }.spotlight-route i { width: 22px; height: 1px; background: #b9d7ce; }

/* ad slot placeholder – replace with AdSense code */
.ad-slot {
  margin: 1.2rem auto;
  padding: 0.8rem;
  border: 1px dashed #c2ccd6;
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: #fbfcfe;
}

.welcome-strip { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.15rem; background: #fffdf4; border: 1px solid #f2e6b8; border-radius: 14px; color: #665b37; box-shadow: 0 8px 25px rgba(102, 91, 55, .04); }
.welcome-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: #f8d878; color: #6e5b20; font-size: 1.2rem; }
.welcome-strip div { display: flex; flex-direction: column; gap: .05rem; }
.welcome-strip strong { font-size: .85rem; }
.welcome-strip div span { font-size: .76rem; opacity: .8; }
.welcome-arrow { margin-left: auto; color: #d3ad39; }

.plan-section, .library-section { padding-top: 4rem; scroll-margin-top: 1rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.section-heading h2 { margin: .3rem 0 0; font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.045em; color: var(--ink); }
.section-note, .result-count { color: var(--muted); font-size: .78rem; }
.library-tools { display: flex; align-items: center; gap: .8rem; }.search-box { display: flex; align-items: center; gap: .35rem; width: min(340px, 42vw); padding: .2rem .35rem .2rem .65rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--muted); }.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: .78rem; }.search-box button { display: none; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }.search-box button.visible { display: block; }.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23,107,99,.1); }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.plan-card { position: relative; display: flex; align-items: center; gap: .75rem; border: 1px solid var(--border); border-radius: 17px; padding: 1.1rem .9rem; text-align: left; color: var(--text); cursor: pointer; min-height: 112px; font: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.plan-card > span:nth-child(2) { display: flex; flex-direction: column; gap: .3rem; }
.plan-card strong { font-size: .92rem; }
.plan-card small { color: var(--muted); font-size: .7rem; line-height: 1.35; }
.plan-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 13px; font-weight: 900; font-size: 1rem; }
.plan-go { margin-left: auto; align-self: flex-start; font-size: 1.1rem; font-weight: 800; }
.plan-math { background: #eff7ef; }.plan-math .plan-icon { background: #b9ddb7; color: #235b31; }.plan-math .plan-go { color: #3e8a4b; }
.plan-language { background: #fff2e9; }.plan-language .plan-icon { background: #f5c6a6; color: #9a4c25; }.plan-language .plan-go { color: #c86a38; }
.plan-world { background: #edf5f7; }.plan-world .plan-icon { background: #b6dce0; color: #17616b; }.plan-world .plan-go { color: #258391; }
.plan-foreign { background: #f1eefb; }.plan-foreign .plan-icon { background: #d4c8f0; color: #65409e; }.plan-foreign .plan-go { color: #7957b6; }

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 8px 22px rgba(31, 66, 60, .04);
}
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.filter-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-right: 0.2rem; }
.fbtn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0.35rem 0.8rem;
  border-radius: 9px;
  font-size: 0.85rem;
  cursor: pointer;
  font: inherit;
}
.fbtn:hover { border-color: var(--primary); color: var(--primary); }
.fbtn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.fbtn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin: 1.2rem 0; }
.pager-info { font-size: 0.85rem; color: var(--muted); margin-left: 0.6rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.card .card-top { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.card > .card-top:first-child { flex-wrap: nowrap; overflow: hidden; }
.card > .card-top:first-child > * { white-space: nowrap; }
.card .badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.card .badge.gym { background: #8a5a00; }
.card .badge.img { background: #2c8a4f; }
.card .blatties-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
  font-size: 1.05rem;
  line-height: 1;
  transform: rotate(-8deg);
  overflow: hidden;
}
.card .class-pill { font-size: .68rem; font-weight: 700; color: var(--muted); padding: .15rem .45rem; border: 1px solid var(--border); border-radius: 999px; background: #f8fbf9; }
.card .subj-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.card h3 { margin: 0.2rem 1.6rem 0.4rem 0; font-size: 1.05rem; letter-spacing: -.02em; }
.card p { margin: 0 0 0.8rem; font-size: 0.85rem; color: var(--muted); flex: 1; }
.card .kind { font-size: 0.68rem; color: #9aa6b2 !important; flex: 0 !important; margin-bottom: 0.8rem !important; white-space: nowrap; }
.card .topic-line { color: var(--primary); font-size: .7rem; line-height: 1.45; min-height: 2.05em; margin-bottom: .8rem; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.card-bottom .kind { margin: 0 !important; }
.card .go {
  align-self: flex-start;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem .8rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
}
.card .go:hover { background: var(--primary-dark); text-decoration: none; }
.card .go span { margin-left: .25rem; }

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

/* ---------- premium page ---------- */
.nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.2rem 0;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav a { color: var(--primary); }
.banner {
  background: linear-gradient(135deg, #0e3f63, #145a8c 55%, #1f6b3a);
  color: #fff;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
}
.banner h2 { margin: 0 0 0.4rem; }
.banner p { margin: 0; opacity: 0.92; font-size: 0.9rem; }
.quality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin-top: 1rem; }
.quality-grid span { padding: .5rem .6rem; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #e1f2ed; font-size: .72rem; font-weight: 700; }
.prem-badge { background: #b8860b !important; }
.card .price { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin: 0 0 0.5rem !important; flex: 0 !important; }
.card .meta-row { font-size: 0.78rem; color: var(--muted); display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.6rem !important; flex: 0 !important; }
.card .actions { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.2rem; }
.card .preview {
  background: var(--primary); color: #fff; padding: 0.4rem 0.9rem;
  border-radius: 6px; font-size: 0.85rem; font-weight: 600;
}
.card .preview:hover { background: var(--primary-dark); text-decoration: none; }
.card .buy {
  background: #2c8a4f; color: #fff; padding: 0.4rem 0.9rem;
  border-radius: 6px; font-size: 0.85rem; font-weight: 600; border: none; cursor: pointer;
}
.card .buy:hover { background: #1f6b3a; text-decoration: none; }
.card .buy:disabled { background: #cbd5e1; color: #6b7785; cursor: not-allowed; }
.prem-note {
  font-size: 0.82rem; color: var(--muted); background: #fbfcfe;
  border: 1px dashed #c2ccd6; border-radius: 8px; padding: 0.8rem 1rem; margin-top: 1.4rem;
}

/* ---------- parent learning check ---------- */
.check-hero { background: linear-gradient(135deg, #173f3b, #267a6d); color: #fff; border-radius: 20px; padding: 2.1rem 2.2rem; margin: 1.2rem 0 1rem; position: relative; overflow: hidden; }
.check-hero::after { content: "✓"; position: absolute; right: 5%; top: -20px; font-size: 9rem; line-height: 1; color: #f5c45c; opacity: .12; }
.check-hero .section-kicker { color: #f5c45c; }
.check-hero h1 { margin: .35rem 0 .6rem; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.055em; line-height: 1; max-width: 650px; position: relative; z-index: 1; }
.check-hero p { margin: 0; max-width: 650px; color: #d0e8e1; font-size: .95rem; position: relative; z-index: 1; }
.privacy-note { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; padding: .42rem .65rem; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: #e5f3ee; font-size: .72rem; position: relative; z-index: 1; }
.check-layout { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr); gap: 1rem; align-items: start; }
.check-card, .check-last { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.2rem; box-shadow: 0 8px 22px rgba(31,66,60,.04); }
.check-card h2, .check-last h2 { margin: 0 0 .3rem; color: var(--ink); font-size: 1.15rem; letter-spacing: -.02em; }
.check-card > p, .check-last > p { margin: 0 0 1rem; color: var(--muted); font-size: .82rem; }
.check-form { display: grid; gap: .8rem; }
.check-form label { display: grid; gap: .3rem; color: var(--text); font-size: .78rem; font-weight: 800; }
.check-form select { width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: .65rem .7rem; color: var(--text); background: #fbfdfc; font: inherit; }
.check-form .btn { width: 100%; margin-top: .25rem; }
.check-helper { display: flex; gap: .45rem; align-items: flex-start; padding: .7rem; background: #fff8e5; border: 1px solid #f2e0a6; border-radius: 10px; color: #68582c; font-size: .73rem; line-height: 1.45; }
.check-last.empty { color: var(--muted); font-size: .82rem; }
.check-last.empty strong { display: block; color: var(--text); margin-bottom: .25rem; }
.check-steps { display: grid; gap: .7rem; margin-top: 1rem; }
.check-step { display: flex; gap: .65rem; align-items: flex-start; }
.check-step b { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; background: #e6f3ee; border-radius: 8px; color: var(--primary); font-size: .75rem; }
.check-step span { font-size: .78rem; color: var(--muted); }
.check-step strong { display: block; color: var(--text); margin-bottom: .1rem; }
.check-workspace { max-width: 820px; margin: 1.2rem auto 0; }
.check-workspace[hidden] { display: none; }
.check-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.check-progress { height: 7px; background: #e0ece7; border-radius: 999px; overflow: hidden; margin-bottom: 1rem; }
.check-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #f5bd4f, #2c907f); border-radius: inherit; transition: width .25s; }
.check-question { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.35rem; box-shadow: var(--shadow); }
.check-topic { color: var(--primary); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 800; }
.check-question h2 { margin: .45rem 0 0; color: var(--ink); font-size: clamp(1.1rem, 2.5vw, 1.5rem); line-height: 1.4; }
.check-context { margin: .8rem 0; padding: .75rem; background: #f3f8f5; border-left: 3px solid #7db8aa; border-radius: 5px; color: #49645e; font-size: .85rem; }
.check-visual { text-align: center; margin: .75rem 0; }.check-visual svg, .check-visual img { max-width: 170px; max-height: 150px; }
.check-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 1rem; }
.check-option { padding: .75rem .8rem; text-align: left; border: 1px solid var(--border); border-radius: 10px; background: #fbfdfc; color: var(--text); cursor: pointer; font: inherit; }
.check-option:hover { border-color: var(--primary); background: #eef8f4; }.check-option.correct { background: #dff4e8; border-color: #54a97e; }.check-option.wrong { background: #fff0ed; border-color: #d86a57; }
.check-input-row { display: flex; gap: .55rem; margin-top: 1rem; }.check-input { flex: 1; min-width: 0; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 9px; font: inherit; }
.check-feedback { min-height: 1.35em; margin-top: .8rem; color: var(--primary); font-size: .82rem; font-weight: 700; }
.check-feedback.wrong { color: #b54d3e; }.check-next { display: flex; justify-content: flex-end; margin-top: .7rem; }
.check-report { background: #173f3b; color: #fff; border-radius: 18px; padding: 1.4rem; }.check-report[hidden] { display: none; }.check-report h2 { margin: 0; }.check-report p { color: #c5dfd7; font-size: .85rem; }
.report-score { display: flex; align-items: center; gap: 1rem; padding: .9rem; margin: 1rem 0; border-radius: 12px; background: rgba(255,255,255,.09); }.report-number { color: #f5c45c; font-size: 2rem; font-weight: 800; }.report-bars { display: grid; gap: .45rem; }.report-bar { display: grid; grid-template-columns: 120px 1fr 36px; gap: .5rem; align-items: center; color: #d3e9e3; font-size: .72rem; }.report-bar i { height: 7px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }.report-bar i span { display: block; height: 100%; background: #f5c45c; border-radius: inherit; }.report-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }.report-actions .btn { background: #f5c45c; color: #173f3b; }.report-actions .btn.secondary { background: rgba(255,255,255,.12); color: #fff; }
.recommendation { margin-top: 1.1rem; padding: .9rem; border: 1px solid rgba(245,196,92,.35); border-radius: 12px; background: rgba(245,196,92,.08); display: grid; gap: .25rem; }.recommendation-label { color: #f5c45c; text-transform: uppercase; letter-spacing: .1em; font-size: .65rem; font-weight: 800; }.recommendation strong { font-size: 1rem; }.recommendation > span:not(.recommendation-label) { color: #c5dfd7; font-size: .78rem; }.recommendation .report-actions { margin-top: .7rem; }.report-secondary-actions .btn { background: rgba(255,255,255,.12); color: #fff; }
.report-print-only { display: none; }

/* ---------- generated premium preview ---------- */
.packet-intro { max-width: 800px; margin: 1.2rem auto; }.packet-intro h1 { margin: .3rem 0; color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.05em; }.packet-intro p { margin: 0; color: var(--muted); font-size: .85rem; }.packet-sheet { margin-top: 1rem; }.packet-head { padding: 1rem 1.1rem; border-radius: 10px; background: linear-gradient(120deg, #173f3b, #267a6d); color: #fff; }.packet-head h2 { margin: .25rem 0; color: #fff; border: 0; font-size: 1.25rem; }.packet-head p { margin: 0; color: #d4ebe4; font-size: .82rem; }.packet-badge { color: #f5c45c; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }.packet-section { margin-top: 1rem; padding-top: .2rem; page-break-inside: avoid; }.packet-section h3 { margin-top: .8rem; }.packet-visual { float: right; margin: 0 0 .4rem .8rem; }.packet-visual svg, .packet-visual img { max-width: 90px; max-height: 85px; }.packet-options { margin: .3rem 0; }.packet-option { display: inline-block; margin: 2px 1rem 2px 0; }.packet-answer { display: block; margin-top: .3rem; color: #b54d3e; font-weight: 700; font-size: .85rem; }

/* ---------- worksheet page ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 22px rgba(31, 66, 60, .04);
}
.toolbar .spacer { flex: 1; }
.toolbar-status { color: var(--muted); font-size: .85rem; }
.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background: #eef2f7; color: var(--text); }
.btn.secondary:hover { background: #e1e8f0; }
.toggle { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.back-link { font-size: 0.9rem; }

.sheet-intro { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 1.2rem auto; max-width: 800px; }
.sheet-intro h1 { margin: .25rem 0 0; color: var(--ink); letter-spacing: -.04em; font-size: clamp(1.6rem, 4vw, 2.25rem); }
.sheet-intro p { color: var(--muted); font-size: .85rem; margin: .35rem 0 0; }
.sheet-label { color: var(--primary); text-transform: uppercase; font-size: .68rem; letter-spacing: .12em; font-weight: 800; }

/* ---------- browser quiz ---------- */
.quiz-panel { max-width: 800px; margin: 0 auto 1.2rem; background: #173f3b; color: #fff; border-radius: 18px; padding: 1.25rem; box-shadow: 0 18px 42px rgba(23, 79, 74, .18); }
.quiz-panel[hidden] { display: none; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.quiz-kicker { color: var(--yellow); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 800; }
.quiz-score { color: #c0dfd7; font-size: .8rem; font-weight: 700; }
.quiz-progress { height: 5px; background: rgba(255,255,255,.13); border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; }
.quiz-progress span { display: block; height: 100%; background: var(--yellow); border-radius: inherit; transition: width .25s; }
.quiz-question { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 13px; padding: 1.15rem; }
.quiz-question .quiz-section { color: #a9d3c9; font-size: .72rem; font-weight: 700; margin-bottom: .65rem; }
.quiz-question .quiz-visual { text-align: center; margin: .3rem 0 .7rem; }
.quiz-question .quiz-visual svg, .quiz-question .quiz-visual img { max-width: 135px; max-height: 135px; }
.quiz-question h3 { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-top: 1rem; }
.quiz-option { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); color: #fff; padding: .7rem .8rem; border-radius: 10px; text-align: left; cursor: pointer; font-size: .85rem; }
.quiz-option:hover { background: rgba(255,255,255,.16); border-color: var(--yellow); }
.quiz-option.correct { background: #2c8968; border-color: #8de0bd; }
.quiz-option.wrong { background: #9a4b4b; border-color: #f2aaaa; }
.quiz-input-row { display: flex; gap: .55rem; margin-top: 1rem; }
.quiz-input { min-width: 0; flex: 1; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.95); color: var(--text); border-radius: 10px; padding: .7rem .8rem; font: inherit; }
.quiz-feedback { min-height: 1.3em; margin-top: .8rem; color: #f7d98c; font-size: .82rem; font-weight: 700; }
.quiz-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .9rem; }
.quiz-actions .btn { background: var(--yellow); color: #173f3b; }
.quiz-actions .btn:hover { background: #ffd477; }
.quiz-result { text-align: center; padding: 1.5rem .5rem .4rem; }
.quiz-result .result-star { color: var(--yellow); font-size: 2.2rem; }
.quiz-result h2 { margin: .3rem 0; }
.quiz-result p { color: #c0dfd7; margin: 0 0 1rem; }

.worksheet {
  background: #fff;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.worksheet .ws-header {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.worksheet .ws-header .ws-ico { width: 30px; height: 30px; flex: 0 0 30px; }
.worksheet .ws-header .ws-ico svg { width: 100%; height: 100%; display: block; }
.worksheet .ws-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 10px 0 18px;
  flex-wrap: wrap;
}
.worksheet .ws-meta span b { color: var(--text); }
.worksheet h3 {
  color: var(--primary-dark);
  font-size: 1.05rem;
  margin: 18px 0 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.worksheet ol {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin: 0;
}
.worksheet li {
  counter-increment: item;
  position: relative;
  padding: 6px 0 0 34px;
  min-height: 38px;
  font-size: 1rem;
}
.worksheet li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 6px;
  font-weight: 700;
  color: var(--primary);
}
.worksheet li .answer {
  display: inline-block;
  margin-top: 2px;
  color: #c0392b;
  font-weight: 600;
  font-size: 0.9rem;
}
.worksheet li .answer::before { content: " → "; }
.worksheet li .answer.hidden { display: none; }
.worksheet .q { font-weight: 500; }
.worksheet .tag { font-size: 0.72rem; color: var(--muted); font-weight: 400; font-style: italic; }
.worksheet .opts { display: block; margin-top: 4px; }
.worksheet .opt { display: inline-block; margin: 2px 16px 2px 0; }
.worksheet .sec-img { text-align: center; margin: 6px 0 12px; }
.worksheet .sec-img svg { max-width: 90px; height: auto; }
.worksheet .sec-img img { display: block; margin: 0 auto; }

.worksheet .h-ico { display: inline-block; vertical-align: -4px; margin-right: 6px; }
.worksheet .h-ico svg, .worksheet .h-ico img { width: 22px; height: 22px; }

.worksheet .q { line-height: 1.5; }
.worksheet .q-ico { display: inline-block; vertical-align: -5px; margin-right: 6px; }
.worksheet .q-ico svg, .worksheet .q-ico img { width: 24px; height: 24px; }

.worksheet .q-fig { text-align: center; margin: 4px 0 8px; }
.worksheet .q-fig svg, .worksheet .q-fig img { max-width: 100px; height: auto; }

.worksheet .sec, .worksheet .sec-img, .worksheet .passage,
.worksheet .ws-item, .worksheet .li-match {
  page-break-inside: avoid;
  break-inside: avoid;
}
.worksheet .ws-meta { page-break-after: avoid; break-after: avoid; }
.worksheet .passage {
  background: #f7fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 8px 0 14px;
  font-size: 0.98rem;
}
.worksheet .li-match { min-height: auto; }
.worksheet .mrow { display: flex; gap: 1rem; padding: 3px 0; }
.worksheet .mleft { min-width: 50%; }
.worksheet .answer.img-ans svg, .worksheet .answer.img-ans img { max-width: 100px; height: auto; }
.worksheet svg.prob-img { max-width: 200px; }
.worksheet .answer.img-ans::before { content: none; }
.worksheet .answer.img-ans { display: block; margin-top: 6px; padding-top: 4px; border-top: 1px dashed var(--border); }
.worksheet table.magic { border-collapse: collapse; margin: 6px 0 8px; }
.worksheet table.magic caption { font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }
.worksheet table.magic td {
  width: 34px; height: 34px; text-align: center; font-size: 1.05rem;
  border: 1px solid var(--primary); font-weight: 600;
}
.worksheet table.magic td.blank { background: #f4f6f9; }
.worksheet .ws-foot {
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

/* ---------- Rechtliches: Impressum & Datenschutz ---------- */
.legal-hero { padding: 2.6rem 0 1.4rem; }
.legal-hero h1 { margin: .3rem 0 .4rem; font-size: 2rem; letter-spacing: -.02em; }
.legal-hero p { color: var(--muted); }
.legal-body { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem 1.7rem; margin: 1.4rem 0; line-height: 1.6; color: #2b3a38; }
.legal-body h2 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; letter-spacing: -.01em; color: var(--ink); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: .92rem; margin: 1.1rem 0 .3rem; color: var(--ink); }
.legal-body code { font-size: .85em; background: #eef3ef; padding: .1rem .3rem; border-radius: 5px; }
.legal-body p, .legal-body li { font-size: .9rem; color: #49645e; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body ul li { margin-bottom: .35rem; }
.legal-placeholder-note { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 2rem; }
.legal-links { font-size: .82rem; }

/* ---------- Consent-Banner ---------- */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #0f2b28;
  color: #fff;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
  padding: .9rem 1rem;
  font-size: .85rem;
}
.consent-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.consent-text { display: flex; flex-direction: column; gap: .2rem; max-width: 720px; }
.consent-text strong { font-size: .95rem; letter-spacing: -.01em; }
.consent-text span { color: #cfe0dc; line-height: 1.45; }
.consent-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.consent-actions .btn { color: #fff; background: #2c8a4f; }
.consent-actions .btn:hover { background: #1f6b3a; }
.consent-actions .btn.secondary { background: transparent; border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.consent-actions .btn.secondary:hover { border-color: #fff; }
.consent-actions .btn.linklike {
  background: transparent;
  border: none;
  color: #cfe0dc;
  text-decoration: underline;
  padding: .35rem .5rem;
}
.consent-actions .btn.linklike:hover { color: #fff; }

/* ---------- Consent-Einstellungen (Dialog) ---------- */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 26, 24, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.consent-overlay[hidden] { display: none; }
.consent-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.6rem 1.7rem 1.4rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  color: #2b3a38;
  line-height: 1.55;
}
.consent-modal h2 { margin: 0 0 .35rem; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.consent-modal-intro { margin: 0 0 1.1rem; font-size: .88rem; color: var(--muted); }
.consent-modal-close {
  position: absolute;
  top: .7rem;
  right: .9rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: .2rem .4rem;
  border-radius: 8px;
}
.consent-modal-close:hover { color: var(--ink); background: #eef3ef; }
.consent-switch {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "box text";
  gap: .15rem .8rem;
  align-items: start;
  padding: .85rem 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.consent-switch input {
  grid-area: box;
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.consent-switch-track {
  grid-area: box;
  margin-top: .15rem;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cfdad3;
  position: relative;
  transition: background .18s ease;
  flex: none;
}
.consent-switch-dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .18s ease;
}
.consent-switch input:checked + .consent-switch-track { background: #2c8a4f; }
.consent-switch input:checked + .consent-switch-track .consent-switch-dot { transform: translateX(18px); }
.consent-switch input:focus-visible + .consent-switch-track { outline: 2px solid #2c8a4f; outline-offset: 2px; }
.consent-switch-text { grid-area: text; display: flex; flex-direction: column; gap: .2rem; }
.consent-switch-text strong { font-size: .95rem; color: var(--ink); }
.consent-switch-text small { font-size: .82rem; color: #58716b; }
.consent-modal-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.consent-modal-actions .btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}
.consent-modal-actions .btn.secondary:hover { border-color: #9fb5ad; }

@media (max-width: 600px) {
  .consent-inner { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
  .consent-modal { padding: 1.3rem 1.2rem 1.1rem; }
  .consent-modal-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
  .site-home { min-height: 570px; }
  .site-nav { align-items: flex-start; }
  .nav-link { font-size: .75rem; }
  .nav-actions { gap: .5rem; }.parent-link { display: none; }
  .hero-content { margin-top: 5.3rem; }
  .hero-content p { font-size: .92rem; }
  .hero-stats { gap: 1.25rem; }
  .orbit-one { right: -350px; }
  .orbit-two { right: -260px; }
  .plan-section, .library-section { padding-top: 2.8rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .section-note { align-self: flex-start; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .plan-card { min-height: 125px; padding: .8rem; flex-direction: column; align-items: flex-start; }
  .plan-card > span:nth-child(2) { gap: .2rem; }
  .plan-go { position: absolute; top: .8rem; right: .8rem; }
  .welcome-strip { align-items: flex-start; }
  .welcome-arrow { display: none; }
  .filters { align-items: flex-start; flex-direction: column; }
  .library-tools { width: 100%; flex-direction: column-reverse; align-items: stretch; gap: .5rem; }.search-box { width: 100%; }
  .filter-group { align-items: flex-start; flex-direction: column; gap: .5rem; width: 100%; }
  .filter-group > span:last-child { display: flex; flex-wrap: wrap; gap: .35rem; }
  .quiz-options { grid-template-columns: 1fr; }
  .check-layout { grid-template-columns: 1fr; }.check-hero { padding: 1.5rem; }.check-options { grid-template-columns: 1fr; }.check-input-row { flex-direction: column; }.report-bar { grid-template-columns: 92px 1fr 32px; }
  .check-spotlight { align-items: flex-start; flex-direction: column; gap: 1.2rem; }.spotlight-route { width: 100%; justify-content: space-between; }.spotlight-route i { flex: 1; }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz-input-row { flex-direction: column; }
  .worksheet { padding: 20px 18px; }
  .toolbar { font-size: 0.85rem; }
  .toolbar .spacer { display: none; }
  .sheet-intro { align-items: flex-start; flex-direction: column; gap: .2rem; }
}

@media print {
  body { background: #fff; }
  .consent-banner { display: none !important; }
  .consent-overlay { display: none !important; }
  .site-nav, .hero-orbit, .toolbar, .back-link, .ad-slot, .quiz-panel, .sheet-intro { display: none !important; }
  .worksheet { box-shadow: none; border: 0; }
  .check-hero, .check-layout, .check-workspace, .back-link { display: none !important; }
  .report-print-only { display: block; color: #172b2a; }
  .check-report { background: #fff; color: #172b2a; border: 1px solid #dce6df; }
  .check-report p, .report-bar { color: #49645e; }
  .packet-toolbar, .packet-intro { display: none !important; }
  .packet-sheet { box-shadow: none; border: 0; }
}
