:root {
  --bg: #f7f2ea;
  --surface: #ffffff;
  --surface-soft: #fff8ef;
  --text: #182231;
  --muted: #667085;
  --line: #e9dcc9;
  --accent: #c8663d;
  --accent-dark: #934626;
  --ink: #223447;
  --green: #21795b;
  --red: #b42318;
  --shadow: 0 18px 50px rgba(44, 35, 25, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 clamp(16px, 4vw, 22px);
  width: 100%;
}

.site-header {
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  align-items: center;
  display: flex;
  min-height: 76px;
  justify-content: space-between;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 11px;
}

.brand-logo {
  background: #fff8ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 38px;
  object-fit: cover;
  width: 38px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.site-nav a {
  color: var(--muted);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
}

.site-nav a:hover {
  background: #fff1df;
  color: var(--accent-dark);
}

.menu-button {
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: none;
  font-weight: 700;
  padding: 9px 12px;
}

.hero {
  padding: 76px 0 42px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  margin-bottom: 22px;
}

.hero-text {
  color: var(--muted);
  font-size: 19px;
  max-width: 680px;
}

.hero-actions,
.section-heading,
.footer-inner,
.actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(200, 102, 61, 0.22);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: #fffaf4;
  border-color: var(--line);
  color: var(--text);
}

.button.small {
  min-height: 38px;
  padding: 8px 12px;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.level-stack {
  display: grid;
  gap: 10px;
}

.level-stack a {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  font-weight: 800;
  padding: 14px;
}

.level-stack span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.level-stack a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.article-section,
.page-shell,
.article-page {
  padding-bottom: 70px;
  padding-top: 38px;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading h2,
.page-heading h1 {
  font-size: clamp(30px, 5vw, 48px);
  margin-bottom: 6px;
}

.toolbar {
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1fr) 170px 190px;
  margin-bottom: 18px;
  padding: 14px;
}

.toolbar label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}

.toolbar input,
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 44px;
  padding: 9px 11px;
  width: 100%;
}

.articles-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.article-card a {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.article-image {
  aspect-ratio: 16 / 10;
  background: #f2eee8;
  overflow: hidden;
}

.article-image img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.article-info {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
}

.article-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.pill {
  background: #fff0df;
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 800;
  padding: 4px 9px;
}

.article-info h3 {
  font-size: 21px;
  margin-bottom: 0;
}

.article-info p {
  color: var(--muted);
  margin-bottom: 0;
}

body[data-page="home"] .home-articles-grid {
  align-items: stretch;
}

body[data-page="home"] .home-articles-grid .article-card a {
  grid-template-rows: 210px 1fr;
}

body[data-page="home"] .home-articles-grid .article-image {
  aspect-ratio: auto;
  height: 210px;
}

body[data-page="home"] .home-articles-grid .article-info {
  align-content: start;
  min-height: 0;
}

body[data-page="home"] .home-articles-grid .article-info p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.status-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  margin-bottom: 18px;
  padding: 16px;
}

.status-box.error {
  background: #fff4f2;
  color: var(--red);
}

.status-box.empty {
  background: #fff;
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.pagination button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 800;
  min-width: 42px;
  padding: 9px 12px;
}

.pagination button[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.back-link {
  color: var(--accent-dark);
  display: inline-flex;
  font-weight: 800;
  margin-bottom: 24px;
}

.page-heading {
  margin-bottom: 22px;
}

.page-heading p {
  color: var(--muted);
}

.content-page {
  padding-bottom: 72px;
  padding-top: 54px;
}

.content-page .page-heading {
  max-width: 860px;
}

.content-page .page-heading h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 16px;
}

.wortschatz-page {
  display: grid;
  gap: 24px;
}

.wortschatz-hero {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
}

.wortschatz-level-panel,
.flashcard-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.wortschatz-level-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.wortschatz-level-panel p {
  color: var(--muted);
  font-weight: 900;
  margin: 0;
}

.wortschatz-levels {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.vocab-level-button {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  font-weight: 900;
  min-height: 54px;
  place-items: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.vocab-level-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.vocab-level-button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.flashcard-shell {
  display: grid;
  gap: 18px;
  justify-self: center;
  max-width: 760px;
  padding: 22px;
  width: 100%;
}

.flashcard-topbar,
.flashcard-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.flashcard-topbar h2 {
  font-size: 28px;
  margin: 0;
}

.flashcard-count {
  background: #fff0df;
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 900;
  padding: 8px 12px;
}

.flashcard {
  background: transparent;
  border: 0;
  display: grid;
  min-height: 330px;
  opacity: 1;
  padding: 0;
  perspective: 1200px;
  position: relative;
  transition: opacity 0.18s ease, transform 0.18s ease;
  width: 100%;
}

.flashcard.is-changing {
  opacity: 0;
  transform: translateY(8px) scale(0.99);
}

.flashcard-face {
  align-content: center;
  backface-visibility: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(200, 102, 61, 0.16), transparent 28%),
    linear-gradient(145deg, #fffaf4 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(44, 35, 25, 0.12);
  display: grid;
  gap: 16px;
  inset: 0;
  justify-items: center;
  padding: 36px;
  position: absolute;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.52s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
}

.flashcard:hover .flashcard-face {
  box-shadow: 0 22px 54px rgba(44, 35, 25, 0.15);
}

.flashcard-front {
  transform: rotateY(0deg);
}

.flashcard-back {
  background:
    radial-gradient(circle at 82% 16%, rgba(33, 121, 91, 0.15), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f4fbf7 100%);
  transform: rotateY(180deg);
}

.flashcard.is-flipped .flashcard-front {
  transform: rotateY(-180deg);
}

.flashcard.is-flipped .flashcard-back {
  transform: rotateY(0deg);
}

.flashcard-kicker {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.flashcard strong {
  font-size: clamp(36px, 7vw, 62px);
  line-height: 1.03;
}

.flashcard small {
  color: var(--muted);
  display: block;
  font-size: 18px;
  max-width: 560px;
}

.flashcard-pos {
  background: #e7f7ef;
  border: 1px solid #b8dec9;
  border-radius: 999px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  padding: 5px 10px;
  text-transform: uppercase;
}

.flashcard-progress {
  background: #efe2d0;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.flashcard-progress span {
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.28s ease;
  width: 0;
}


.seo-page {
  max-width: 900px;
}

.seo-page h2 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  margin: 34px 0 14px;
}

.legal-page {
  max-width: 980px;
}

.legal-updated {
  color: var(--text);
  text-align: center;
}

.subscribe-section {
  background: linear-gradient(180deg, #d8753c 0%, #c8663d 100%);
  color: #231a13;
  margin-top: 16px;
  padding: 48px 0 38px;
}

.subscribe-inner {
  align-items: center;
  display: grid;
  justify-items: center;
  text-align: center;
}

.subscribe-updated {
  background: var(--bg);
  font-size: 14px;
  margin: -48px 0 38px;
  padding: 12px 0;
  width: 100%;
}

.subscribe-form {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: 420px;
  width: 100%;
}

.subscribe-form label {
  justify-self: start;
}

.subscribe-form input {
  background: #fffaf4;
  border: 1px solid rgba(147, 70, 38, 0.22);
  border-radius: 8px;
  min-height: 50px;
  padding: 12px 15px;
  width: 100%;
}

.subscribe-form button {
  background: #fff8ef;
  border: 1px solid #934626;
  border-radius: 8px;
  color: #934626;
  font-weight: 800;
  min-height: 46px;
  min-width: 150px;
  padding: 10px 18px;
}

.subscribe-form button:hover:not(:disabled) {
  background: #fff1df;
}

.subscribe-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.subscribe-message {
  border-radius: 8px;
  font-weight: 700;
  margin: 0;
  padding: 10px 12px;
  width: 100%;
}

.subscribe-message.success {
  background: rgba(231, 247, 239, 0.94);
  color: var(--green);
}

.subscribe-message.error {
  background: rgba(255, 240, 239, 0.94);
  color: var(--red);
}

.subscribe-privacy {
  margin: 28px 0 18px;
}

.subscribe-section a {
  color: #231a13;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subscribe-links {
  display: grid;
  gap: 18px;
}

.article-hero {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  margin-bottom: 36px;
}

.article-hero h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.06;
  margin: 12px 0;
  max-width: 780px;
}

.article-hero p {
  color: var(--muted);
  font-size: 18px;
}

.article-hero img {
  aspect-ratio: 16 / 11;
  background: #f2eee8;
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.article-layout {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.article-layout.blog-layout {
  grid-template-columns: minmax(0, 900px);
}

.blog-toolbar {
  grid-template-columns: minmax(240px, 1fr);
}

.article-body,
.article-aside section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 24px;
}

.article-body {
  font-size: 18px;
  line-height: 1.9;
}

.article-body h2 {
  border-top: 1px solid var(--line);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
  margin: 34px 0 16px;
  padding-top: 28px;
}

.article-body h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.article-body h3 {
  color: var(--ink);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.22;
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 26px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body > p + p {
  margin-top: 10px;
}

.article-body > h2 + p,
.article-body > h3 + p {
  margin-top: 6px;
}

.article-body strong {
  background: #fff2d9;
  border-radius: 5px;
  color: #111827;
  font-weight: 900;
  padding: 0 4px;
}

.article-body mark {
  background: #fff0a8;
  border-radius: 5px;
  color: #241b08;
  padding: 0 5px;
}

.article-body a {
  color: var(--accent-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--accent);
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 26px;
}

.article-body li {
  padding-left: 4px;
}

.article-body table {
  border-collapse: collapse;
  box-shadow: 0 12px 32px rgba(44, 35, 25, 0.08);
  display: block;
  font-size: 16px;
  line-height: 1.45;
  margin: 26px 0;
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.article-body tr:nth-child(even) td {
  background: #fffaf4;
}

.tip-box,
.warning-box,
.info-box,
.example-box,
.quick-box,
.checklist-box {
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(44, 35, 25, 0.06);
  line-height: 1.65;
  margin: 26px 0;
  padding: 16px 18px;
}

.tip-box {
  background: #fff8e8;
  border-left-color: #d89a2b;
}

.warning-box {
  background: #fff3f0;
  border-left-color: var(--red);
}

.info-box,
.checklist-box {
  background: #eef8f3;
  border-left-color: var(--green);
}

.example-box,
.quick-box {
  background: #f3f7ff;
  border-left-color: #4777d9;
}

.related-links-box {
  background: #fffaf4;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(44, 35, 25, 0.08);
  margin: 34px 0;
  padding: 18px;
}

.related-links-box h2 {
  border-top: 0;
  font-size: 26px;
  margin: 0 0 10px;
  padding-top: 0;
}

.related-links-box p {
  color: var(--muted);
  margin-bottom: 14px;
}

.related-links-box ul {
  margin-bottom: 0;
}

.article-publication-date {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-top: 28px;
  padding-top: 18px;
}

.article-quiz {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 26px;
  padding: 20px;
}

.quiz-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.quiz-heading h2 {
  margin: 0;
}

.quiz-score {
  color: var(--green);
  font-weight: 900;
}

.quiz-question {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 16px 0;
}

.quiz-question legend {
  font-weight: 900;
  margin-bottom: 10px;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-options label {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.quiz-options label.correct {
  background: #e7f7ef;
  border-color: #66b892;
  color: var(--green);
}

.quiz-options label.incorrect {
  background: #fff0ef;
  border-color: #dc8b84;
  color: var(--red);
}

.article-aside {
  display: grid;
  gap: 16px;
}

.article-aside h2 {
  font-size: 18px;
}

.vocab-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  padding: 12px 0;
}

.vocab-item:first-of-type {
  border-top: 0;
}

.vocab-item span,
.muted,
details p {
  color: var(--muted);
}

details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0;
}

.footer-inner {
  justify-content: space-between;
}

@media (max-width: 900px) {
  .hero-grid,
  .article-hero,
  .article-layout,
  .toolbar,
  .wortschatz-hero {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 680px) {
  .header-inner {
    align-items: stretch;
    flex-wrap: wrap;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 10px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-top: 1px solid var(--line);
    padding: 14px 0;
    width: 100%;
  }

  .hero {
    padding: 38px 0 28px;
  }

  .hero h1,
  .content-page .page-heading h1 {
    font-size: clamp(34px, 12vw, 48px);
    line-height: 1.06;
  }

  .hero-text,
  .article-hero p {
    font-size: 16px;
  }

  .article-section,
  .page-shell,
  .article-page,
  .content-page {
    padding-bottom: 46px;
    padding-top: 28px;
  }

  .toolbar {
    padding: 12px;
  }

  .hero-actions,
  .section-heading,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-info {
    padding: 15px;
  }

  .article-info h3 {
    font-size: 19px;
    line-height: 1.22;
  }

  .article-meta {
    font-size: 12px;
  }

  .wortschatz-levels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flashcard-shell {
    padding: 16px;
  }

  .flashcard {
    min-height: 300px;
  }

  .flashcard-face {
    gap: 12px;
    padding: 24px 16px;
  }

  .flashcard strong {
    font-size: clamp(30px, 11vw, 44px);
    overflow-wrap: anywhere;
  }

  .flashcard small {
    font-size: 15px;
  }

  .flashcard-topbar,
  .flashcard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .article-hero {
    gap: 22px;
    margin-bottom: 24px;
  }

  .article-hero h1 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.08;
  }

  .article-body,
  .article-aside section {
    padding: 18px 16px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.75;
  }

  .article-body h2 {
    font-size: clamp(24px, 8vw, 32px);
    margin: 30px 0 14px;
    padding-top: 24px;
  }

  .article-body h3 {
    font-size: clamp(20px, 6vw, 25px);
  }

  .article-body p {
    margin-bottom: 22px;
  }

  .article-body table {
    font-size: 14px;
    margin: 22px 0;
  }

  .article-body th,
  .article-body td {
    min-width: 150px;
    padding: 10px 11px;
  }

  .tip-box,
  .warning-box,
  .info-box,
  .example-box,
  .quick-box,
  .checklist-box,
  .related-links-box,
  .article-quiz {
    margin: 22px 0;
    padding: 14px;
  }

  .quiz-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .header-inner {
    min-height: 66px;
  }

  .brand {
    max-width: calc(100% - 88px);
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-button {
    min-width: 72px;
  }

  .hero h1,
  .content-page .page-heading h1 {
    font-size: 34px;
  }

  .section-heading h2,
  .page-heading h1 {
    font-size: 30px;
  }

  .pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .wortschatz-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flashcard {
    min-height: 280px;
  }

  .article-body ul,
  .article-body ol {
    padding-left: 22px;
  }
}
