:root {
  --bg: #fafaf7;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --accent: #b91c1c;
  --accent-2: #f59e0b;
  --accent-3: #111827;
  --border: #e5e7eb;
  --good: #047857;
  --bad: #b91c1c;
  --code-bg: #f3f4f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ========== HERO (compact, clean) ========== */

.hero {
  position: relative;
  padding: 64px 24px 40px;
  margin-bottom: 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(245, 158, 11, 0.08), transparent 70%),
    linear-gradient(180deg, #fafaf7 0%, #ffffff 100%);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg,
      transparent 0%,
      #111827 18%,
      #b91c1c 50%,
      #f59e0b 82%,
      transparent 100%) 1;
}

.hero-inner { position: relative; z-index: 1; }

/* Mini German flag chip */
.flag-chip {
  display: inline-flex;
  flex-direction: column;
  width: 56px;
  height: 76px;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow:
    0 10px 28px rgba(17, 24, 39, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transform: rotate(-4deg);
  animation: chipFloat 5s ease-in-out infinite alternate;
  position: relative;
}

.flag-chip span { flex: 1; display: block; }
.flag-chip span:nth-child(1) { background: #111827; }
.flag-chip span:nth-child(2) { background: #b91c1c; }
.flag-chip span:nth-child(3) { background: #f59e0b; }

/* subtle shine sweep */
.flag-chip::after {
  content: "";
  position: absolute;
  inset: -10% -50%;
  background: linear-gradient(110deg,
      transparent 35%,
      rgba(255, 255, 255, 0.5) 50%,
      transparent 65%);
  animation: chipShine 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes chipFloat {
  from { transform: rotate(-5deg) translateY(0); }
  to   { transform: rotate(3deg)  translateY(-6px); }
}

@keyframes chipShine {
  0%, 100% { transform: translateX(-60%); opacity: 0; }
  50%      { transform: translateX(60%);  opacity: 1; }
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(40px, 6.5vw, 60px);
  letter-spacing: -2px;
  font-weight: 800;
  color: var(--accent-3);
  animation: titleIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero p {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.2px;
  animation: subIn 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes subIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .flag-chip, .flag-chip::after, .hero h1, .hero p {
    animation: none !important;
  }
}

/* ========== TOPNAV ========== */

nav.topnav {
  margin: 24px 0;
  font-size: 14px;
  color: var(--muted);
}

nav.topnav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

nav.topnav a:hover { text-decoration: underline; }

/* ========== HEADINGS & CARDS ========== */

h1, h2, h3 { color: var(--accent-3); }

h2 {
  margin-top: 40px;
  border-bottom: 3px solid var(--accent-2);
  padding-bottom: 6px;
  display: inline-block;
}

h3 { margin-top: 28px; color: var(--accent); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* ========== LANDING SECTION CARDS (2 big cards) ========== */

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 8px;
  margin-bottom: 36px;
}

.section-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-2);
}

.section-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #111827, #b91c1c, #f59e0b);
}

.section-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.section-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
  color: var(--accent-3);
  border-bottom: none;
}

.section-subtitle {
  color: var(--muted);
  font-style: italic;
  margin: 0 0 8px;
  font-size: 14px;
}

.section-meta {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.section-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.lvl-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f4f6;
  color: var(--ink);
}

.section-cta {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  margin-top: 6px;
}

/* ========== LEVEL TAGS & FILTER ========== */

.lvl-a1 { background: #dcfce7 !important; color: #166534 !important; }
.lvl-a2 { background: #fef3c7 !important; color: #92400e !important; }
.lvl-b1 { background: #fee2e2 !important; color: #991b1b !important; }
.lvl-b2 { background: #ede9fe !important; color: #5b21b6 !important; }

.lvl-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.section-header {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-header h1 {
  margin: 0;
  font-size: 30px;
}

.section-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.level-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.lvl-btn {
  background: white;
  border: 1.5px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: all 0.15s;
}

.lvl-btn:hover {
  border-color: var(--accent-2);
  color: var(--accent-3);
}

.lvl-btn.active {
  background: var(--accent-3);
  color: white;
  border-color: var(--accent-3);
}

/* ========== VOCAB CARDS (in /lugat list) ========== */

.vocab-card {
  text-align: left;
}

.vocab-icon {
  font-size: 36px;
  margin: 6px 0;
  line-height: 1;
}

.vocab-count {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* ========== VOCAB TABLE (in /lugat/{slug}) ========== */

.vocab-count-pill {
  display: inline-block;
  background: #f3f4f6;
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.topic-icon {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.vocab-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  margin: 14px 0 24px;
}

.vocab-table th {
  background: var(--accent-3);
  color: white;
  padding: 11px 14px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.vocab-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

.vocab-table tr:last-child td { border-bottom: none; }
.vocab-table tr:hover td { background: #fafafa; }

.vocab-de strong { color: var(--accent-3); font-weight: 700; }
.vocab-az { color: var(--ink); }
.vocab-plural { color: var(--muted); font-size: 14px; font-style: italic; }

.vocab-tip {
  background: #fef9c3;
  border-left: 4px solid var(--accent-2);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 22px 0;
  font-size: 14px;
  line-height: 1.55;
}

/* ========== INTRO CARD (home page only) ========== */

.intro-card {
  background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 20px 26px;
  margin: 8px auto 36px;
  max-width: 720px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  animation: introIn 0.9s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes introIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-card .intro-cta {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.intro-card .intro-credit {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.intro-card .intro-credit strong {
  color: var(--accent-3);
  font-weight: 600;
}

.intro-card a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  font-weight: 500;
}

.intro-card a:hover {
  color: var(--accent-3);
  border-bottom-style: solid;
}

/* ========== TOPIC GRID ========== */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.topic-card {
  display: block;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  padding: 20px 22px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-left-color 0.18s ease;
  overflow: hidden;
}

.topic-card::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 22px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-left-color: var(--accent-2);
}

.topic-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.topic-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-3);
  color: white;
  font-weight: 700;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.topic-card .topic-de {
  margin: 4px 0 2px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-3);
  letter-spacing: -0.3px;
}

.topic-card .topic-az {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
}

.topic-card .topic-summary {
  margin: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

/* ========== TOPIC PAGE HEADER (bilingual) ========== */

.topic-header {
  margin: 28px 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.topic-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.topic-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-3);
  color: white;
  font-weight: 700;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 15px;
}

.topic-title-de {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -1px;
  color: var(--accent-3);
  font-weight: 800;
}

.topic-title-az {
  margin: 6px 0 0;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
}

/* ========== BADGES ========== */

.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.badge.easy   { background: #dcfce7; color: #166534; }
.badge.medium { background: #fef3c7; color: #92400e; }
.badge.hard   { background: #fee2e2; color: #991b1b; }

/* ========== TABLES ========== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

th, td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

th {
  background: var(--accent-3);
  color: white;
  font-weight: 600;
}

tr:nth-child(even) td { background: #fafafa; }

.de { font-weight: 600; color: var(--accent-3); }
.az { color: var(--muted); font-style: italic; font-size: 0.95em; }

/* ========== EXAMPLE / TIP / WARN BLOCKS ========== */

.example {
  background: #fff8e6;
  border-left: 4px solid var(--accent-2);
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 0 8px 8px 0;
}

.example .de { display: block; font-size: 17px; }
.example .az { display: block; }

.tip {
  background: #ecfdf5;
  border-left: 4px solid var(--good);
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
}

.warn {
  background: #fef2f2;
  border-left: 4px solid var(--bad);
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
}

code, kbd {
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* ========== PAGER ========== */

.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.pager a {
  flex: 1;
  text-decoration: none;
  color: var(--accent-3);
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  transition: background 0.1s, border-color 0.1s, transform 0.1s;
  font-weight: 500;
}

.pager a:hover {
  background: #f9fafb;
  border-color: var(--accent-2);
}

.pager a.next { text-align: right; }
.pager small { color: var(--muted); display: block; font-size: 12px; }

/* ========== FOOTER ========== */

.site-footer {
  margin-top: 80px;
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .footer-cta {
  max-width: 560px;
  margin: 0 auto 16px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer .footer-credit {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.site-footer .footer-credit strong {
  color: var(--accent-3);
  font-weight: 600;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}

.site-footer a:hover {
  color: var(--accent-3);
  border-bottom-style: solid;
}

/* ========== CONTACT FORM (modern, Bootstrap-vari) ========== */

.contact-page {
  max-width: 680px;
  margin: 24px auto 0;
}

.contact-hero {
  text-align: center;
  padding: 32px 20px 24px;
}

.contact-hero-icon {
  font-size: 56px;
  margin-bottom: 12px;
  line-height: 1;
}

.contact-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--accent-3);
}

.contact-hero p {
  color: var(--muted);
  margin: 0 auto;
  font-size: 16px;
  max-width: 480px;
  line-height: 1.55;
}

/* Honeypot hidden offscreen */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Card */
.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.03),
    0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Two-column row on desktop */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .contact-card { padding: 22px 18px; }
}

/* Floating label inputs */
.form-floating {
  position: relative;
  margin-bottom: 16px;
}

.form-floating input,
.form-floating textarea {
  width: 100%;
  padding: 18px 14px 8px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.form-floating textarea {
  min-height: 140px;
  padding-top: 22px;
  resize: vertical;
  line-height: 1.55;
}

.form-floating input:focus,
.form-floating textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.form-floating label {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
  transition: all 0.15s ease-out;
  background: transparent;
  padding: 0 4px;
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating textarea:focus + label,
.form-floating textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-3);
  background: white;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.form-floating.is-invalid input,
.form-floating.is-invalid textarea {
  border-color: var(--bad);
}

.form-floating.is-invalid input:focus,
.form-floating.is-invalid textarea:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-err {
  display: block;
  margin-top: 6px;
  padding-left: 4px;
  color: var(--bad);
  font-size: 12px;
  font-weight: 500;
}

/* Captcha — special visual block */
.captcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 8px 0 20px;
  flex-wrap: wrap;
}

.captcha-question {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.captcha-icon {
  font-size: 26px;
  line-height: 1;
}

.captcha-label {
  color: #78350f;
  font-size: 14px;
  font-weight: 500;
}

.captcha-equation {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 19px;
  font-weight: 700;
  color: var(--accent-3);
  letter-spacing: 1px;
  background: white;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #fde68a;
}

.captcha-input {
  width: 80px;
  padding: 9px 12px;
  border: 1.5px solid #fde68a;
  border-radius: 8px;
  background: white;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  font-family: inherit;
  color: var(--accent-3);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.captcha-input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.captcha-input::-webkit-outer-spin-button,
.captcha-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.captcha-input { -moz-appearance: textfield; }

.captcha-box.is-invalid {
  border-color: var(--bad);
  background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
}

/* Buttons (Bootstrap-vari) */
.contact-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.15s ease-out;
  line-height: 1;
}

.btn-modern-primary {
  background: var(--accent-3);
  color: white;
  border-color: var(--accent-3);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

.btn-modern-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.25);
}

.btn-modern-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.15);
}

.btn-modern-primary .btn-arrow {
  transition: transform 0.15s;
}

.btn-modern-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-modern-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-modern-ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Note below the form */
.contact-note {
  margin: 20px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Alerts (Bootstrap-vari) */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  border: 1px solid transparent;
}

.alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
}

.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-success .alert-icon {
  background: var(--good);
  color: white;
}

.alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-danger .alert-icon {
  background: var(--bad);
  color: white;
}

/* ========== DEFAULT FOOTER (with nav links) ========== */

.site-footer-default {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 60px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}

.site-footer-default a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 4px;
  border-bottom: 1px dashed transparent;
}

.site-footer-default a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ========== HIGHLIGHTS ========== */

.highlight-der { color: #2563eb; font-weight: 700; }
.highlight-die { color: #dc2626; font-weight: 700; }
.highlight-das { color: #16a34a; font-weight: 700; }
.highlight-pl  { color: #7c3aed; font-weight: 700; }

/* ========== MOBILE ========== */

@media (max-width: 600px) {
  .hero { padding: 60px 20px 70px; margin-bottom: 32px; }
  .hero-words span { font-size: 38px !important; }
  .pager { flex-direction: column; }
  .pager a.next { text-align: left; }
  table { font-size: 14px; }
  th, td { padding: 8px 10px; }
}
