@font-face {
  font-family: Open Sans;
  src: url("./body.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Open Sans;
  src: url("./bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Open Sans;
  src: url("./display.woff") format("woff");
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
}

:root {
  --paper: #faf6ed;
  --cream: #fffaf0;
  --ink: #182039;
  --soft-ink: #414659;
  --blue: #263bc9;
  --blue-dark: #1d2e9d;
  --yellow: #ffdb57;
  --peach: #ffb69b;
  --mint: #c4e7cb;
  --line: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 12px;
  --sans: "Open Sans", system-ui, sans-serif;
  --mono: "Courier New", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 98px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.55 var(--sans); }
main { min-height: 55vh; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.05; letter-spacing: -.054em; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.65vw, 2.3rem); }
p { max-width: 70ch; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #6264e4;
  outline-offset: 4px;
}
.hero :focus-visible, .footer :focus-visible, .tone-blue :focus-visible { outline-color: var(--yellow); }
::selection { background: var(--yellow); color: var(--ink); }
.wrap { width: min(1320px, calc(100% - 112px)); margin-inline: auto; }
.section-pad { padding-block: clamp(42px, 5vw, 72px); }
.section-loose { padding-bottom: clamp(48px, 6vw, 86px); }
.mono { font-family: var(--mono); font-weight: 700; letter-spacing: .025em; }
.icon { display: inline-block; flex: 0 0 auto; width: 1.25em; height: 1.25em; vertical-align: -.19em; }
.tone-peach { background-color: var(--peach); }
.tone-mint { background-color: var(--mint); }
.tone-yellow { background-color: var(--yellow); }
.tone-blue { background-color: var(--blue); color: var(--cream); }
.skip { position: fixed; z-index: 30; left: 14px; top: 12px; transform: translateY(-150%); padding: 10px 16px; background: var(--yellow); border: var(--line); border-radius: 7px; font-weight: 700; }
.skip:focus { transform: none; }

.header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: var(--paper);
  border-bottom: var(--line);
}
.header-inner { height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-dark); font-size: 23px; font-weight: 800; line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
.brand .icon { width: 35px; height: 35px; transform: rotate(-8deg); }
.main-nav { display: flex; align-items: center; gap: clamp(3px, 1.08vw, 16px); }
.main-nav a { display: block; padding: 9px 10px; border-radius: 7px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.main-nav a:hover { color: var(--blue-dark); background: #ebe8ff; }
.main-nav [aria-current] { color: var(--blue-dark); background: #e4e3fd; }
.main-nav .nav-contact { display: none; }
.header-actions { display: flex; align-items: center; gap: 13px; }
.switch { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 2px; padding: 3px; border: 1px solid var(--ink); border-radius: 8px; }
.switch a { display: grid; place-items: center; min-width: 33px; min-height: 29px; border-radius: 5px; font: 700 13px/1 var(--mono); }
.switch [aria-current] { background: var(--blue); color: var(--cream); }
.switch a:hover:not([aria-current]) { background: #ebe8ff; }
.contact-button { display: inline-flex; gap: 8px; align-items: center; padding: 9px 13px; border: 1px solid var(--ink); border-radius: 8px; background: var(--yellow); font-weight: 700; font-size: 13px; }
.contact-button:hover, .contact-button[aria-current] { background: var(--ink); color: var(--cream); }
.header .menu-toggle { display: none; }

.button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 10px 16px;
  border: var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-size: .94rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  transition: transform 140ms, box-shadow 140ms, background 140ms, color 140ms;
}
.button--primary { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.button--light { background: var(--cream); }
.button--on-blue { border-color: #fdf4dfb5; background: transparent; color: var(--cream); }
.button--primary:hover { background: #ffe782; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.button--light:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.button--on-blue:hover { background: var(--cream); color: var(--blue-dark); }
.button:active { transform: translate(1px, 1px); }
.button:disabled { opacity: .5; transform: none; box-shadow: none; }
.icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 43px;
  min-height: 43px;
  padding: 6px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
}
.icon-button:hover:not(:disabled) { background: var(--yellow); }
.icon-button:disabled { opacity: .5; }
.pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border: 1px solid currentColor; border-radius: 100px; font-size: .8rem; line-height: 1.25; }

.hero {
  color: var(--cream);
  background-color: var(--blue);
  background-image:
    linear-gradient(#faf6ee0f 1px, transparent 1px),
    linear-gradient(90deg, #faf6ee0f 1px, transparent 1px),
    radial-gradient(ellipse at 80% 25%, #4051e9, #253ac8 61%, #2237bd);
  background-position: center;
  background-size: 40px 40px, 40px 40px, auto;
  border-bottom: var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 75px);
  padding-block: clamp(56px, 5.1vw, 78px) clamp(67px, 5.5vw, 86px);
}
.hero-copy { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; gap: 9px; align-items: center; padding: 5px 11px; border: 1px solid #fffaf0a6; border-radius: 100px; font-size: 12.5px; color: var(--cream); }
.hero-kicker .icon { color: var(--yellow); width: 16px; height: 16px; transform: rotate(-16deg); }
.hero h1 { margin: 20px 0 23px; font-size: clamp(4.25rem, 7.65vw, 7.25rem); letter-spacing: -.08em; line-height: .96; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span:last-child { color: var(--yellow); }
.hero-copy p { max-width: 510px; color: #fff8ec; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.58; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 29px; }
.hero-buttons .button { min-height: 51px; padding-inline: 17px; }
.hero-buttons .button--primary { padding-inline: 21px; }
.hero-art { position: relative; min-width: 0; width: min(100%, 536px); margin-inline: auto; }
.polaroid {
  position: relative;
  display: block;
  background: var(--cream);
  color: var(--ink);
  border: var(--line);
  border-radius: 5px;
  padding: 11px 11px 0;
  box-shadow: 10px 11px 0 #14277b;
  transform: rotate(4deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.polaroid:hover { transform: rotate(2deg) translateY(-4px); box-shadow: 13px 15px 0 #14277b; }
.polaroid-picture { overflow: hidden; border: 1px solid var(--ink); aspect-ratio: 1.41; }
.polaroid img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.polaroid-caption { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 47px; padding: 3px 4px 3px 1px; font-weight: 800; font-size: 16px; }
.polaroid-caption .mono { font-size: 11.5px; color: var(--blue-dark); white-space: nowrap; }
.art-spark { position: absolute; z-index: 1; pointer-events: none; font: 400 3.1rem/1 system-ui, sans-serif; color: var(--yellow); text-shadow: 2px 3px #182b97; }
.art-spark--left { top: 4%; left: -39px; transform: rotate(-12deg); }
.art-spark--right { bottom: 5%; right: -39px; transform: rotate(16deg); }
.miau-sticker {
  position: absolute;
  display: grid;
  place-items: center;
  top: -25px;
  right: -19px;
  width: 143px;
  height: 85px;
  z-index: 2;
  isolation: isolate;
  pointer-events: none;
  color: var(--ink);
  transform: rotate(11deg) skewX(-5deg);
  filter: drop-shadow(3px 4px 0 #172039);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.075em;
}
.miau-sticker::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: var(--yellow);
  clip-path: polygon(2% 47%, 13% 33%, 12% 18%, 28% 19%, 36% 6%, 49% 15%, 61% 3%, 70% 17%, 88% 14%, 88% 30%, 100% 42%, 92% 55%, 97% 70%, 84% 75%, 79% 93%, 64% 85%, 52% 97%, 40% 87%, 24% 95%, 20% 82%, 7% 79%, 10% 66%, 0 59%);
}
.article-sticker {
  position: absolute;
  z-index: 2;
  left: -17px;
  bottom: 73px;
  transform: rotate(-8deg);
  padding: 9px 12px;
  border: var(--line);
  border-radius: 5px;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--peach);
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}
.article-sticker:hover { background: var(--yellow); transform: rotate(-4deg); }
.ribbon { background: var(--yellow); border-bottom: var(--line); }
.ribbon-inner { display: flex; justify-content: space-between; gap: 20px; min-height: 49px; align-items: center; }
.ribbon-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 700 14px/1.3 var(--mono); }
.ribbon-item [lang="de"] { font-weight: 700; }
.ribbon-item span:last-child { font-weight: 400; }
.ribbon-mark { color: var(--blue-dark); font: 700 15px/1 system-ui, sans-serif; }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 40px; margin-bottom: 31px; }
.section-heading p { color: var(--soft-ink); }
.home-choices { padding-top: clamp(45px, 4.3vw, 65px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.feature {
  display: flex;
  position: relative;
  min-width: 0;
  min-height: 242px;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2vw, 27px);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.feature:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.feature-top { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.feature-icon { display: grid; place-items: center; width: 56px; height: 56px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--cream); color: var(--blue-dark); font-weight: 800; font-size: 35px; line-height: 1; transform: rotate(-6deg); }
.feature-icon .icon { width: 34px; height: 34px; }
.feature p { margin-top: 9px; max-width: 31ch; font-size: .95rem; }
.feature-copy { padding-right: 40px; }
.feature-arrow { position: absolute; right: 17px; bottom: 17px; display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--ink); border-radius: 50%; }
.feature:hover .feature-arrow { color: var(--cream); background: var(--ink); }

.word-band {
  background: var(--blue);
  background-image: radial-gradient(#f8f3e534 1px, transparent 1px);
  background-size: 17px 17px;
  color: var(--cream);
  border-block: var(--line);
}
.word-band-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(32px, 6vw, 90px); padding-block: clamp(50px, 6vw, 84px); }
.word-intro h2 { margin-top: 13px; }
.word-intro p { margin: 13px 0 22px; max-width: 38ch; }
.daily-card { color: var(--ink); padding: clamp(20px, 3.6vw, 42px); background: var(--cream); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.daily-card h3 { margin: 8px 0 8px; font-size: clamp(1.9rem, 4.1vw, 3.85rem); overflow-wrap: anywhere; }
.daily-category { color: var(--blue-dark); font-size: .82rem; }
.daily-card blockquote { padding-left: 12px; margin: 15px 0 20px; border-left: 3px solid var(--blue); }
.daily-card blockquote span { display: block; color: var(--soft-ink); font-size: .92rem; }
.daily-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 27px 35px; padding: clamp(21px, 4vw, 46px); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.callout h2 { font-size: clamp(1.65rem, 3.7vw, 2.9rem); }
.callout p { margin-top: 9px; }
.callout .button { flex-shrink: 0; }

.masthead, .profile { border-bottom: var(--line); background-image: radial-gradient(#1820391f 1px, transparent 1px); background-size: 17px 17px; }
.masthead.tone-blue { background-image: radial-gradient(#fffaf03a 1px, transparent 1px); }
.masthead > .wrap, .profile > .wrap { padding-block: 24px clamp(42px, 5.4vw, 80px); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; font-size: .8rem; line-height: 1.4; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.crumb a:hover { text-decoration-thickness: 2px; }
.masthead-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 50px; padding-top: clamp(25px, 3.7vw, 55px); }
.masthead h1 { font-size: clamp(3.15rem, 6.35vw, 6.2rem); line-height: .99; letter-spacing: -.068em; }
.masthead p { max-width: 64ch; margin-top: 14px; font-size: clamp(.98rem, 1.35vw, 1.22rem); }
.masthead-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(91px, 12vw, 172px);
  aspect-ratio: 1;
  margin-inline: 0 9px;
  background: var(--cream);
  border: var(--line);
  border-radius: 26%;
  color: var(--blue-dark);
  box-shadow: var(--shadow);
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: 1;
  transform: rotate(9deg);
}
.masthead-mark .icon { width: 62%; height: 62%; }
.mark-small { font-size: .68em; }
.masthead--short > .wrap { padding-bottom: clamp(32px, 3.6vw, 52px); }
.masthead--short .masthead-grid { padding-top: clamp(21px, 2.8vw, 39px); }
.masthead--short h1 { font-size: clamp(2.7rem, 5.25vw, 4.8rem); }
.masthead--short .masthead-mark { width: clamp(74px, 9.3vw, 122px); font-size: clamp(2rem, 4.8vw, 4.3rem); }

.cats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.cat-card { display: flex; flex-direction: column; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cat-shot { display: block; border-bottom: var(--line); overflow: hidden; aspect-ratio: 1.65; }
.cat-shot img { height: 100%; object-fit: cover; object-position: var(--focus); transition: scale 220ms; }
.cat-shot:hover img { scale: 1.035; }
.cat-shot:focus-visible { outline-offset: -5px; }
.cat-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(18px, 3vw, 36px); }
.cat-card h2 { margin-top: 10px; }
.cat-card p { margin: 10px 0 22px; max-width: 49ch; }
.cat-card .button { margin-top: auto; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(25px, 6vw, 85px); padding-top: 33px; }
.profile-copy h1 { font-size: clamp(5rem, 11vw, 9.5rem); letter-spacing: -.09em; margin-top: 8px; }
.profile-copy h1 span { color: var(--blue); }
.profile-copy p { margin: 12px 0 22px; max-width: 44ch; font-size: clamp(1rem, 1.5vw, 1.22rem); }
.profile-photo { display: block; padding: 10px; background: var(--cream); border: var(--line); border-radius: 8px; box-shadow: 7px 7px 0 var(--ink); transform: rotate(3deg); }
.profile-photo img { aspect-ratio: 1.37; object-fit: cover; object-position: var(--focus); border: 1px solid var(--ink); }
.cat-desk { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px 55px; align-items: center; }
.cat-desk h2 { margin-bottom: 10px; }
.cat-reply { padding: clamp(18px, 3vw, 32px); background: var(--cream); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cat-reply blockquote { min-height: 3.8em; padding-left: 13px; margin: 12px 0 18px; border-left: 3px solid var(--blue); font-size: 1.12rem; font-weight: 700; }
.cat-reply .pill { color: var(--blue-dark); }
.reply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.pet-burst { animation: pet-bump 360ms ease; }
@keyframes pet-bump { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(0deg) scale(1.027); } }

.lesson-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(242px, 1fr); gap: clamp(22px, 5.2vw, 76px); align-items: start; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lesson-meta a, .game-top a { display: inline-flex; align-items: center; gap: 7px; text-underline-offset: 4px; }
.lesson-meta a:hover, .game-top a:hover { text-decoration: underline; }
.lesson-step { margin-top: 34px; }
.lesson-step h2 { font-size: clamp(1.55rem, 3.5vw, 2.6rem); }
.lesson-step p { margin: 10px 0 17px; }
.examples { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.examples li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--cream); }
.examples strong, .examples div > span { display: block; }
.examples strong { font-size: 1.12rem; }
.examples div > span { color: var(--soft-ink); }
.lesson-side { display: grid; gap: 18px; }
.lesson-nav, .inline-quiz { padding: clamp(16px, 2.7vw, 29px); border: var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink); }
.lesson-nav h2, .inline-quiz h2 { font-size: 1.52rem; }
.lesson-nav ol { margin: 12px 0 0; padding: 0 0 0 22px; }
.lesson-nav li + li { margin-top: 6px; }
.lesson-nav a { text-decoration: underline; text-underline-offset: 4px; }
.inline-quiz p { margin-top: 9px; }
.quick-choices { display: grid; gap: 7px; margin-top: 12px; }
.choice-button { min-height: 42px; padding: 7px 12px; border: 1.5px solid var(--ink); background: var(--cream); color: var(--ink); border-radius: 8px; font-weight: 700; }
.choice-button:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--ink); }
.choice-button.is-right { background: var(--mint); border-color: #326743; }
.choice-button.is-wrong { background: #ffdbd2; border-color: #913f36; }
.feedback { padding: 11px 13px; border: 1.5px solid #66667e; border-radius: 8px; background: #efedff; font-size: .94rem; }
.feedback--good { background: #def0dc; border-color: #4d815c; }
.feedback--bad { background: #ffe3d8; border-color: #ae5d50; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.filter { padding: 7px 13px; min-height: 40px; border: 1.5px solid var(--ink); border-radius: 100px; background: var(--cream); font-size: .89rem; font-weight: 700; }
.filter:hover:not([aria-pressed="true"]) { background: #eae7ff; }
.filter[aria-pressed="true"] { color: var(--cream); background: var(--blue-dark); }
.vocab-section { width: min(900px, calc(100% - 112px)); }
.vocab-card { min-width: 0; border: var(--line); border-radius: var(--radius); background: #e5e8ff; box-shadow: var(--shadow); }
.vocab-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px clamp(15px, 3vw, 28px); border-bottom: 1.5px solid var(--ink); }
.vocab-tools > div { display: flex; gap: 7px; }
.vocab-tools [aria-pressed="true"] .icon { fill: #ff806a; }
.vocab-term { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 215px; padding: clamp(16px, 4vw, 42px); }
.vocab-term h2 { font-size: clamp(2.3rem, 6vw, 5.2rem); overflow-wrap: anywhere; }
.vocab-term > .button { margin-top: 16px; }
.vocab-meaning { margin-top: 12px; }
.vocab-meaning > strong { font-size: 1.14rem; }
.vocab-meaning blockquote { margin-top: 6px; padding-left: 10px; border-left: 3px solid var(--blue); }
.vocab-meaning blockquote span { display: block; color: var(--soft-ink); }
.vocab-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; }
.vocab-bottom span { white-space: nowrap; }
.empty-card { padding: clamp(20px, 4vw, 40px); }
.empty-card p { margin-top: 8px; }

.game-section { width: min(945px, calc(100% - 112px)); padding-top: clamp(24px, 3.5vw, 48px); }
.game-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 700; }
.game-board { padding: clamp(15px, 4.2vw, 38px); border: var(--line); border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); }
.game-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .87rem; }
.game-board progress { display: block; width: 100%; height: 8px; margin-top: 9px; border: 0; border-radius: 8px; background: #e5e5ef; overflow: hidden; accent-color: var(--blue); }
.game-board progress::-webkit-progress-bar { background: #e5e5ef; }
.game-board progress::-webkit-progress-value { background: var(--blue); }
.article-prompt { padding: 25px 0 20px; }
.article-prompt h2 { font-size: clamp(2.35rem, 6.2vw, 5rem); overflow-wrap: anywhere; }
.article-prompt p { margin-top: 7px; color: var(--soft-ink); }
.article-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.article-choices .choice-button { min-height: 66px; font-size: clamp(1.3rem, 3vw, 2rem); }
.article-choices .choice-button:nth-child(1):not(:disabled) { background: var(--peach); }
.article-choices .choice-button:nth-child(2):not(:disabled) { background: var(--mint); }
.article-choices .choice-button:nth-child(3):not(:disabled) { background: var(--yellow); }
.game-board .feedback { margin-top: 15px; }
.game-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.game-result { display: grid; justify-items: start; gap: 12px; }
.game-result h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
.game-result .icon { color: var(--blue-dark); }
.game-result .button .icon { color: inherit; }
.result-paw .icon { width: 44px; height: 44px; transform: rotate(-12deg); }

.sentence-hint { padding-top: 17px; }
.sentence-hint h2 { font-size: clamp(1.35rem, 2.7vw, 2.1rem); }
.sentence-hint p { margin-top: 5px; }
.sentence-label { display: block; margin: 13px 0 5px; color: var(--soft-ink); font-size: .84rem; }
.sentence-zone, .word-bank { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.sentence-zone { min-height: 64px; padding: 8px; border: 2px dashed #8984aa; border-radius: 9px; background: #eeedff; }
.sentence-zone > em { margin-left: 4px; color: var(--soft-ink); }
.word-bank { min-height: 49px; margin-top: 13px; }
.word-chip { min-height: 40px; padding: 6px 9px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--mint); font-weight: 700; }
.word-chip:not(:disabled):hover { background: var(--yellow); }
.sentence-zone .word-chip { background: var(--cream); }
.word-chip:disabled { opacity: .77; }
.memory-status { min-height: 1.5em; margin: 9px 0 13px; }
.memory-grid { display: grid; gap: clamp(6px, 1.2vw, 12px); grid-template-columns: repeat(4, minmax(0,1fr)); }
.memory-card { position: relative; display: grid; place-items: center; min-width: 0; min-height: clamp(59px, 9vw, 103px); padding: 7px 5px; overflow-wrap: anywhere; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--blue); color: var(--cream); text-align: center; font-size: clamp(.72rem, 1.6vw, .96rem); font-weight: 700; line-height: 1.25; }
.memory-card .icon { width: 30px; height: 30px; transform: rotate(-12deg); }
.memory-card[aria-disabled="true"] { cursor: default; }
.memory-card:not([aria-disabled="true"]):hover { background: var(--blue-dark); }
.memory-card.is-open, .memory-card.is-open:hover { background: var(--yellow); color: var(--ink); }
.memory-card.is-matched, .memory-card.is-matched:hover { background: var(--mint); color: var(--ink); }
.memory-card.is-matched .icon { width: 13px; height: 13px; margin-top: 4px; transform: none; }
.memory-card.is-matched span { display: block; }
.memory-finish { margin-top: 16px; }
.record-board { margin-top: 46px; }
.record-board h2 { font-size: 2rem; }
.record-list { display: grid; gap: 8px; margin-top: 12px; }
.record-list a { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--cream); padding: 10px 14px; font-weight: 700; }
.record-list a:hover { background: var(--mint); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.gallery-card { display: flex; flex-direction: column; overflow: hidden; border: var(--line); border-radius: var(--radius); background: var(--cream); transition: transform 140ms, box-shadow 140ms; }
.gallery-card:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.gallery-card > img { width: 100%; height: auto; aspect-ratio: 1.28; object-fit: cover; object-position: var(--focus); border-bottom: var(--line); }
.gallery-card:nth-child(3n+2) { background: #fff0b0; }
.gallery-card:nth-child(3n) { background: #e0eee0; }
.gallery-caption { display: flex; flex: 1; justify-content: space-between; align-items: flex-start; gap: 10px; min-height: 82px; padding: 11px 13px; }
.gallery-caption strong { display: block; line-height: 1.3; }
.gallery-caption span span { color: var(--soft-ink); font-size: .84rem; }
.gallery-caption .icon { color: var(--blue-dark); }
.lightbox { padding: 0; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); width: min(760px, calc(100% - 26px)); max-height: 94vh; max-height: 94dvh; background: var(--cream); color: var(--ink); }
.lightbox::backdrop { background: #111834d9; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.lightbox-controls { padding: 7px 12px; display: flex; align-items: center; justify-content: space-between; }
.lightbox-view { min-width: 0; min-height: 0; background: var(--ink); }
.lightbox-view img { width: 100%; height: min(65vh, 640px); height: min(65dvh, 640px); object-fit: contain; }
.lightbox-bottom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 9px; text-align: center; }
.lightbox-bottom strong, .lightbox-bottom [lang="de"] { display: block; }
.lightbox-bottom [lang="de"] { color: var(--soft-ink); font-size: .89rem; }

.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 75px); align-items: start; }
.about-photo { background: var(--cream); padding: 10px; border: var(--line); border-radius: 8px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.about-photo img { aspect-ratio: 1.2; object-fit: cover; object-position: center 69%; border: 1px solid var(--ink); }
.about-photo figcaption { padding: 9px 2px 1px; font-size: .93rem; font-weight: 700; }
.about-copy h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.about-copy h2:not(:first-child) { margin-top: 25px; }
.about-copy p { margin: 8px 0 15px; }
.contact-card, .contact-form { padding: clamp(18px, 3.6vw, 38px); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card h2 { margin: 8px 0; }
.email-link { display: block; max-width: fit-content; color: var(--blue-dark); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; font-weight: 700; font-size: clamp(1rem, 2.1vw, 1.65rem); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 17px; }
.contact-card .action-status { min-height: 1.5em; margin-top: 8px; font-size: .88rem; }
.contact-form { background: var(--cream); }
.contact-form h2 { font-size: clamp(1.55rem, 2.8vw, 2.3rem); }
.contact-form label { display: grid; gap: 4px; margin: 12px 0; font-weight: 700; font-size: .91rem; }
.contact-form :is(input, textarea, select) { display: block; width: 100%; min-height: 43px; padding: 8px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; font-weight: 400; }
.contact-form textarea { resize: vertical; }
.contact-form p { margin-top: 10px; color: var(--soft-ink); font-size: .86rem; }

.footer { padding: 28px 0; background: var(--ink); color: var(--cream); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: center; gap: 25px; }
.footer .brand { --icon-cut: var(--ink); color: var(--yellow); }
.footer p { margin-top: 5px; font-size: .88rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 13px; font-size: .9rem; }
.footer a:hover { color: var(--yellow); }
.footer-mail { color: var(--cream); font-size: .83rem; overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 25; bottom: 16px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 30px); border: var(--line); border-radius: 8px; padding: 9px 15px; box-shadow: var(--shadow); background: var(--cream); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }

@media (max-width: 1120px) {
  .wrap, .vocab-section, .game-section { width: min(100% - 72px, 1320px); }
  .vocab-section { max-width: 900px; }
  .game-section { max-width: 945px; }
  .header-inner { gap: 10px; }
  .main-nav { gap: 1px; }
  .main-nav a { padding-inline: 8px; }
  .header-actions { gap: 8px; }
  .hero-grid { gap: 40px; }
  .art-spark--right { right: -37px; font-size: 2.5rem; }
}
@media (max-width: 1010px) {
  .header .menu-toggle { display: inline-grid; min-width: 37px; min-height: 37px; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 9px 26px 12px;
    background: var(--paper);
    border-bottom: var(--line);
    box-shadow: 0 6px 0 #18203922;
  }
  .main-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .main-nav .nav-contact { display: block; }
  .main-nav a { padding: 10px 12px; }
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: clamp(3.4rem, 8.1vw, 6.15rem); }
  .art-spark--left { left: -32px; font-size: 2.3rem; }
  .miau-sticker { top: -18px; right: -16px; width: 120px; height: 75px; font-size: 1.7rem; }
  .ribbon-item:last-child { display: none; }
  .footer-inner { grid-template-columns: 1fr 1.2fr; }
  .footer-mail { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .wrap, .vocab-section, .game-section { width: calc(100% - 44px); }
  .header-inner { height: 63px; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 42px 49px; gap: 45px; }
  .hero h1 { font-size: clamp(3.3rem, 11.65vw, 5.8rem); margin-block: 17px 19px; }
  .hero-copy p { max-width: 47ch; }
  .hero-buttons { margin-top: 22px; gap: 9px; }
  .hero-art { width: min(calc(100% - 30px), 475px); }
  .art-spark--right { right: -30px; }
  .ribbon-inner { justify-content: flex-start; gap: 19px; overflow: hidden; }
  .ribbon-item { font-size: 13px; }
  .ribbon-item:nth-child(3) { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature { min-height: 175px; gap: 14px; }
  .feature-icon { width: 45px; height: 45px; font-size: 28px; }
  .feature-icon .icon { width: 29px; height: 29px; }
  .feature-arrow { right: 12px; bottom: 12px; }
  .feature p { max-width: 45ch; }
  .word-band-grid, .cat-desk { grid-template-columns: 1fr; }
  .callout { align-items: flex-start; flex-direction: column; gap: 16px; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-side { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .about-grid, .contact-grid { gap: 21px; }
}
@media (max-width: 560px) {
  .wrap, .vocab-section, .game-section { width: calc(100% - 34px); }
  .header-inner { height: 58px; gap: 7px; }
  .brand { font-size: clamp(.92rem, 4.55vw, 1.24rem); gap: 4px; }
  .brand .icon { width: 26px; height: 26px; }
  .header-actions { gap: 6px; }
  .header .menu-toggle { min-width: 36px; min-height: 36px; }
  .switch a { min-width: 27px; min-height: 27px; }
  .contact-button { display: none; }
  .hero-grid { gap: 41px; }
  .hero-kicker { font-size: 11px; }
  .hero-buttons .button { min-height: 47px; padding-inline: 12px; font-size: .84rem; }
  .hero-art { width: calc(100% - 23px); }
  .polaroid { padding: 7px 7px 0; box-shadow: 6px 7px 0 #14277b; }
  .polaroid-caption { min-height: 34px; gap: 5px; font-size: 12px; }
  .polaroid-caption .mono { font-size: 9.5px; }
  .miau-sticker { top: -22px; right: -12px; width: 96px; height: 62px; font-size: 1.4rem; }
  .article-sticker { left: -11px; bottom: 42px; font-size: 9.5px; padding: 6px 8px; }
  .art-spark--left { top: 6%; left: -23px; font-size: 1.8rem; }
  .art-spark--right { right: -22px; font-size: 1.75rem; }
  .ribbon-inner { min-height: 42px; gap: 12px; justify-content: space-between; }
  .ribbon-item { font-size: clamp(10px, 3.3vw, 12px); gap: 5px; }
  .masthead > .wrap, .profile > .wrap { padding-top: 17px; }
  .masthead-grid { grid-template-columns: 1fr; padding-top: 19px; }
  .masthead h1 { font-size: clamp(2.5rem, 11.2vw, 3.65rem); overflow-wrap: anywhere; }
  .masthead--short h1 { font-size: clamp(2.3rem, 10vw, 3.45rem); }
  .masthead p { margin-top: 10px; font-size: .96rem; }
  .masthead-mark { display: none; }
  .cats-grid, .profile-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .profile-grid { padding-top: 23px; }
  .profile-photo { margin-inline: 8px; }
  .about-photo { margin-inline: 6px; }
  .game-board { box-shadow: 3px 4px 0 var(--ink); }
  .memory-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .gallery-caption { min-height: 100px; padding: 8px; gap: 5px; font-size: .83rem; }
  .gallery-caption span span { font-size: .77rem; }
  .gallery-caption > .icon { display: none; }
  .vocab-bottom .button { padding-inline: 9px; gap: 4px; font-size: .79rem; min-height: 42px; }
  .footer-inner { grid-template-columns: 1fr; gap: 13px; }
  .footer .brand { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.lightbox-open { overflow: hidden; }
@media (max-width: 430px) {
  .ribbon-inner { flex-wrap: wrap; gap: 6px 12px; padding-block: 7px; }
}
