/* German Mosaic — design system */
/* Source of truth: ../../DESIGN.md (one level up from public/) */

/* Self-hosted fonts — no Google connection, DSGVO-clean */
@font-face { font-family: 'Unkempt'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/unkempt-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unkempt'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/unkempt-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'Life Savers'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/life-savers-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Life Savers'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/life-savers-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Life Savers'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/life-savers-700-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Life Savers'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/life-savers-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Life Savers'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/fonts/life-savers-800-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Life Savers'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/fonts/life-savers-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/quicksand-viet.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/quicksand-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/quicksand.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Palette */
  --gm-burgundy: #7f2e44;
  --gm-burgundy-soft: #9c4761;
  --gm-teal: #2d6769;
  --gm-teal-soft: #3f8285;
  --gm-sand: #cbb098;
  --gm-sand-50: #e5d8c5;
  --gm-cream: #f7eff2;
  --gm-ice: #e8f2f2;
  --gm-ink: #1a1014;
  --gm-error: #a82a3d;
  --gm-warn: #c89030;
  --gm-success: var(--gm-teal);

  /* Backgrounds */
  --gm-bg: #fbfaf7;
  --gm-bg-branded: var(--gm-sand);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Type */
  --font-display: 'Life Savers', system-ui, sans-serif;
  --font-body-accent: 'Life Savers', Georgia, serif;
  --font-body: 'Quicksand', -apple-system, system-ui, sans-serif;

  /* Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-body: 1rem;
  --text-h2: 1.25rem;
  --text-h1: 1.5rem;
  --text-display-md: 1.5rem;
  --text-display-lg: 2rem;
  --text-display-xl: 2.5rem;

  --container: 760px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root {
    --text-display-lg: 2.5rem;
    --text-display-xl: 3.5rem;
  }
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--gm-bg);
  color: var(--gm-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gm-burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gm-burgundy-soft); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--gm-burgundy); margin: 0 0 var(--space-3); }
h1 { font-size: var(--text-display-lg); }
h2 { font-size: var(--text-display-md); }
h3 { font-size: var(--text-h1); }
p { margin: 0 0 var(--space-4); }
img, svg { display: block; max-width: 100%; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Layout */
.gm-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.gm-main {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-4);
}
@media (min-width: 768px) { .gm-main { padding: var(--space-8) var(--space-6); } }
.gm-main--wide { max-width: 1200px; }

.gm-header {
  height: var(--header-h);
  background: var(--gm-cream);
  border-bottom: 1px solid var(--gm-sand-50);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  gap: var(--space-4);
}
.gm-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--gm-burgundy);
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.gm-header__brand svg,
.gm-header__brand img { height: 40px; width: auto; }
.gm-header__spacer { flex: 1; }

/* Bottom nav (mobile only) */
.gm-bottom-nav {
  position: sticky; bottom: 0; left: 0; right: 0;
  background: var(--gm-cream);
  border-top: 1px solid var(--gm-sand-50);
  display: flex;
  justify-content: space-around;
  padding: var(--space-2) 0;
  z-index: 50;
}
.gm-bottom-nav a {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--gm-ink);
  font-size: var(--text-xs); padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  transition: background-color 150ms ease-out;
}
.gm-bottom-nav a:hover, .gm-bottom-nav a.is-active { background: var(--gm-sand-50); color: var(--gm-burgundy); }
.gm-bottom-nav a svg { width: 22px; height: 22px; margin-bottom: 2px; }
@media (min-width: 768px) { .gm-bottom-nav { display: none; } }

/* Header nav (desktop only) */
.gm-header-nav {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}
.gm-header-nav a {
  text-decoration: none;
  color: var(--gm-ink);
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  transition: background-color 150ms ease-out;
}
.gm-header-nav a:hover,
.gm-header-nav a.is-active { background: var(--gm-sand-50); color: var(--gm-burgundy); }

/* The bubble — the brand's UI primitive */
.gm-bubble {
  background: var(--gm-cream);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: relative;
}
.gm-bubble--burgundy { background: var(--gm-burgundy); color: var(--gm-cream); }
.gm-bubble--burgundy h1, .gm-bubble--burgundy h2, .gm-bubble--burgundy h3 { color: var(--gm-cream); }
.gm-bubble--teal { background: var(--gm-teal); color: var(--gm-cream); }
.gm-bubble--teal h1, .gm-bubble--teal h2, .gm-bubble--teal h3 { color: var(--gm-cream); }
.gm-bubble--ice { background: var(--gm-ice); }
.gm-bubble--sand { background: var(--gm-sand-50); }
.gm-bubble--tail-bl::before {
  content: '';
  position: absolute;
  left: -8px; bottom: 18px;
  width: 28px; height: 28px;
  background: inherit;
  border-bottom-right-radius: 40%;
  transform: rotate(20deg);
}

/* Tile grid */
.gm-tiles {
  display: grid;
  gap: var(--space-3);
}
.gm-tiles--2 { grid-template-columns: repeat(2, 1fr); }
.gm-tiles--3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gm-tiles--3 { grid-template-columns: repeat(3, 1fr); } }

/* Buttons (bubble buttons) */
.gm-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: none;
  background: var(--gm-burgundy);
  color: var(--gm-cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-body);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.gm-btn:hover { background: var(--gm-burgundy-soft); transform: translateY(-1px); }
.gm-btn:active { transform: translateY(0); }
.gm-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.gm-btn--teal { background: var(--gm-teal); }
.gm-btn--teal:hover { background: var(--gm-teal-soft); }
.gm-btn--ghost { background: var(--gm-cream); color: var(--gm-burgundy); border: 2px solid var(--gm-burgundy); }
.gm-btn--ghost:hover { background: var(--gm-sand-50); }
.gm-btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.gm-btn--full { width: 100%; justify-content: center; }

/* Level pills (A1..B2) */
.gm-pill {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  background: var(--gm-sand-50);
  color: var(--gm-burgundy);
}
.gm-pill--A1 { background: var(--gm-sand-50); color: var(--gm-burgundy); }
.gm-pill--A2 { background: var(--gm-cream); color: var(--gm-burgundy); }
.gm-pill--B1 { background: var(--gm-teal); color: var(--gm-cream); }
.gm-pill--B2 { background: var(--gm-burgundy); color: var(--gm-cream); }

/* Callout (the "one spot available" pattern from IG slide 2) */
.gm-callout {
  display: inline-block;
  background: var(--gm-burgundy);
  color: var(--gm-cream);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transform: rotate(-3deg);
  font-family: var(--font-body-accent);
  font-weight: 700;
}

/* Forms */
.gm-field { display: block; margin-bottom: var(--space-4); }
.gm-field label { display: block; margin-bottom: var(--space-1); font-weight: 600; font-size: var(--text-sm); }
.gm-field input:not([type="checkbox"]):not([type="radio"]), .gm-field textarea, .gm-field select {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid var(--gm-sand-50);
  border-radius: var(--radius-sm);
  background: white;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--gm-ink);
  transition: border-color 150ms ease-out;
}
.gm-field input:not([type="checkbox"]):not([type="radio"]):focus, .gm-field textarea:focus, .gm-field select:focus {
  outline: none;
  border-color: var(--gm-burgundy);
}
.gm-field textarea { min-height: 200px; resize: vertical; font-family: 'JetBrains Mono', 'SF Mono', monospace; font-size: var(--text-sm); }
.gm-field__error { color: var(--gm-error); font-size: var(--text-sm); margin-top: var(--space-1); }

/* Card list rows */
.gm-row {
  background: var(--gm-cream);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
  transition: transform 150ms ease-out, background-color 150ms ease-out;
}
.gm-row:hover { background: var(--gm-sand-50); transform: translateY(-1px); }
.gm-row__main { flex: 1; min-width: 0; }
.gm-row__title { font-weight: 700; margin-bottom: 2px; }
.gm-row__meta { font-size: var(--text-sm); color: var(--gm-ink); opacity: 0.7; }
.gm-row__quiet { color: var(--gm-warn); }

/* Streak indicator */
.gm-streak {
  display: flex;
  gap: var(--space-1);
}
.gm-streak__dot {
  width: 12px; height: 12px;
  border-radius: var(--radius-pill);
  background: var(--gm-sand-50);
}
.gm-streak__dot.is-active { background: var(--gm-teal); }

/* Locale picker */
.gm-locale {
  display: inline-flex;
  gap: var(--space-1);
  background: var(--gm-bg);
  border: 1px solid var(--gm-sand-50);
  border-radius: var(--radius-pill);
  padding: var(--space-1);
}
.gm-locale button {
  background: none;
  border: none;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--gm-ink);
  transition: background-color 150ms ease-out;
}
.gm-locale button.is-active { background: var(--gm-burgundy); color: var(--gm-cream); }
.gm-locale button:not(.is-active):hover { background: var(--gm-sand-50); }

/* Auth (login) layout */
.gm-auth {
  min-height: 100dvh;
  background: var(--gm-sand);
  display: grid;
  place-items: center;
  padding: var(--space-6);
}
.gm-auth__card {
  background: var(--gm-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 18px 48px rgba(26, 16, 20, 0.18);
}
.gm-auth__card svg { margin-bottom: var(--space-6); }
.gm-auth__title { font-family: var(--font-display); color: var(--gm-burgundy); font-size: var(--text-display-md); margin-bottom: var(--space-2); }
.gm-auth__subtitle { color: var(--gm-ink); opacity: 0.8; margin-bottom: var(--space-6); font-family: var(--font-body-accent); font-size: var(--text-h2); }

/* Study session (flashcards) */
.gm-card-stage {
  background: var(--gm-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.gm-card-stage__front, .gm-card-stage__back {
  font-family: var(--font-display);
  font-size: var(--text-display-lg);
  color: var(--gm-burgundy);
  margin-bottom: var(--space-3);
}
.gm-card-stage__back { color: var(--gm-teal); }
.gm-card-stage__example {
  font-family: var(--font-body-accent);
  font-style: italic;
  color: var(--gm-ink);
  opacity: 0.7;
  margin-top: var(--space-4);
}
.gm-rate {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.gm-rate__btn {
  border: none;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--gm-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-1);
  transition: transform 150ms ease-out;
}
.gm-rate__btn:hover { transform: translateY(-2px); }
.gm-rate__btn small { font-weight: 400; font-size: var(--text-xs); opacity: 0.85; }
.gm-rate__btn--schlecht { background: var(--gm-error); }
.gm-rate__btn--ok { background: var(--gm-warn); }
.gm-rate__btn--gut { background: var(--gm-teal); }
.gm-rate__btn--perfekt { background: var(--gm-burgundy); }

/* Misc */
.gm-meta { color: var(--gm-ink); opacity: 0.6; font-size: var(--text-sm); }
.gm-tag { display: inline-block; padding: 2px var(--space-2); background: var(--gm-ice); color: var(--gm-teal); border-radius: var(--radius-pill); font-size: var(--text-xs); }
.gm-spacer { height: var(--space-4); }
.gm-spacer--lg { height: var(--space-8); }
.gm-progress { background: var(--gm-sand-50); border-radius: var(--radius-pill); height: 8px; overflow: hidden; }
.gm-progress__fill { background: var(--gm-teal); height: 100%; border-radius: var(--radius-pill); }
.gm-stack > * + * { margin-top: var(--space-4); }

/* Hide on mobile / desktop */
@media (max-width: 767px) { .gm-md-only { display: none !important; } }
@media (min-width: 768px) { .gm-sm-only { display: none !important; } }

/* ─── Landing page ──────────────────────────────────────────────────────── */

.gm-landing-header {
  background: var(--gm-cream);
  border-bottom: 1px solid var(--gm-sand-50);
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.gm-landing-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}
.gm-landing-header__brand img { height: 40px; width: auto; }
.gm-landing-header__spacer { flex: 1; }
.gm-landing-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Hero */
.gm-landing-hero {
  background: var(--gm-sand);
  padding: var(--space-16) var(--space-6);
  text-align: center;
}
.gm-landing-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.gm-landing-hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  color: var(--gm-burgundy);
  margin: 0 0 var(--space-4);
  line-height: 1.15;
}
.gm-landing-hero__sub {
  font-family: var(--font-body-accent);
  font-size: var(--text-h2);
  color: var(--gm-ink);
  margin: 0 0 var(--space-8);
}
.gm-landing-hero__ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.gm-landing-section {
  padding: var(--space-12) var(--space-6);
}
.gm-landing-section--alt { background: var(--gm-ice); }
.gm-landing-section__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.gm-landing-section__title {
  font-family: var(--font-display);
  font-size: var(--text-display-md);
  color: var(--gm-burgundy);
  margin: 0 0 var(--space-6);
}

/* About */
.gm-landing-about {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 640px) {
  .gm-landing-about { grid-template-columns: 1fr 2fr; }
}
.gm-landing-about__avatar {
  width: 100%;
  aspect-ratio: 1;
  max-width: 240px;
  border-radius: var(--radius-lg);
  background: var(--gm-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gm-landing-about__avatar svg { width: 80px; height: 80px; opacity: 0.3; }
.gm-landing-about__text { font-size: var(--text-body); line-height: 1.7; }
.gm-landing-about__text p { margin: 0 0 var(--space-4); }
.gm-landing-about__ig {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  color: var(--gm-burgundy);
  text-decoration: none;
  font-size: var(--text-sm);
}
.gm-landing-about__ig:hover { color: var(--gm-burgundy-soft); }

/* Taboo: one row per level, deck A + deck B as two columns, colour = level */
.gm-taboo-level {
  max-width: 360px;
  margin: 0 auto var(--space-6);
}
.gm-taboo-level > .gm-pill {
  font-size: var(--text-h2);
  padding: var(--space-2) var(--space-6);
}
.gm-taboo-level > .gm-pill--A1 { background: var(--gm-burgundy); color: var(--gm-cream); }
.gm-taboo-level > .gm-pill--A2 { background: var(--gm-sand); color: var(--gm-ink); }
.gm-taboo-level > .gm-pill--B1 { background: var(--gm-teal); color: var(--gm-cream); }
.gm-taboo-level__decks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.gm-taboo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--font-display, var(--font-body-accent));
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}
.gm-taboo-tile:hover { transform: translateY(-3px) scale(1.03); }
.gm-taboo-tile--a1 { background: var(--gm-burgundy); color: var(--gm-cream); }
.gm-taboo-tile--a1:hover { background: var(--gm-burgundy-soft); }
.gm-taboo-tile--a2 { background: var(--gm-sand); color: var(--gm-ink); }
.gm-taboo-tile--a2:hover { background: var(--gm-sand-50); }
.gm-taboo-tile--b1 { background: var(--gm-teal); color: var(--gm-cream); }
.gm-taboo-tile--b1:hover { background: var(--gm-teal-soft); }
.gm-taboo-tile__label {
  font-size: 1.5rem;
  line-height: 1.2;
  text-align: center;
}

/* Gendered article colours (JUDITH.md §3, flashcards & Tabu) */
.gm-word { color: var(--gm-ink); }
.gm-word__article--der { color: #2b5fad; font-weight: 700; }
.gm-word__article--die { color: var(--gm-error); font-weight: 700; }
.gm-word__article--das { color: #2f7d4f; font-weight: 700; }

/* Tabu game: flip-card grid */
.gm-taboo-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (min-width: 640px) { .gm-taboo-board { grid-template-columns: repeat(5, 1fr); } }
.gm-flip-tile {
  perspective: 1000px;
  min-height: 190px;
}
.gm-flip-tile__inner {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: transform 500ms;
  transform-style: preserve-3d;
}
.gm-flip-tile.is-flipped .gm-flip-tile__inner { transform: rotateY(180deg); }
.gm-flip-tile__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  text-align: center;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}
.gm-flip-tile__face--front { font-size: 2rem; }
.gm-flip-tile__face--front .gm-flip-tile__index {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  font-size: 0.65rem;
  font-family: var(--font-body);
  opacity: 0.7;
}
.gm-flip-tile__face--back {
  background: var(--gm-cream);
  transform: rotateY(180deg);
  gap: var(--space-2);
}
.gm-flip-tile__word {
  font-family: var(--font-display, var(--font-body-accent));
  font-size: 1.1rem;
  line-height: 1.2;
}
.gm-flip-tile__hints {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.7rem;
  line-height: 1.5;
}

/* Word of the day */
.gm-wotd {
  background: var(--gm-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(26,16,20,0.10);
}
.gm-wotd__german {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  color: var(--gm-burgundy);
  margin: 0 0 var(--space-3);
}
.gm-wotd__label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gm-ink);
  opacity: 0.5;
  margin: 0 0 var(--space-2);
}
.gm-wotd__translation {
  font-family: var(--font-body-accent);
  font-size: var(--text-display-md);
  color: var(--gm-teal);
  margin: 0;
}
.gm-wotd__divider {
  height: 2px;
  background: var(--gm-sand-50);
  border: none;
  margin: var(--space-6) 0;
}

/* Schedule */
.gm-schedule {
  width: 100%;
  border-collapse: collapse;
}
.gm-schedule th {
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gm-ink);
  opacity: 0.5;
  padding: 0 var(--space-4) var(--space-3);
  border-bottom: 2px solid var(--gm-sand-50);
}
.gm-schedule th:first-child { padding-left: 0; }
.gm-schedule td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--gm-sand-50);
  font-size: var(--text-body);
}
.gm-schedule td:first-child { padding-left: 0; font-weight: 700; }
.gm-schedule tr:last-child td { border-bottom: none; }

/* News */
.gm-news-item {
  background: var(--gm-cream);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.gm-news-item__date {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gm-teal);
  margin-bottom: var(--space-2);
}
.gm-news-item__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  color: var(--gm-burgundy);
  margin: 0 0 var(--space-2);
}
.gm-news-item__body { margin: 0; color: var(--gm-ink); }

/* Legal links in landing header */
.gm-landing-header__legal {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--gm-ink);
  opacity: 0.55;
}
.gm-landing-header__legal a {
  color: inherit;
  text-decoration: none;
}
.gm-landing-header__legal a:hover { opacity: 0.85; text-decoration: underline; }
@media (min-width: 640px) {
  .gm-landing-header__legal { display: flex; }
}

/* Free group class section */
.gm-free-class {
  background: var(--gm-teal);
  padding: var(--space-16) var(--space-6);
  text-align: center;
}
.gm-free-class__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.gm-free-class__badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.gm-free-class__title {
  font-family: var(--font-display);
  font-size: var(--text-display-lg);
  color: #fff;
  margin: 0 0 var(--space-4);
  line-height: 1.2;
}
.gm-free-class__text {
  font-family: var(--font-body-accent);
  font-size: var(--text-h2);
  color: rgba(255,255,255,0.88);
  margin: 0 0 var(--space-8);
  line-height: 1.65;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.gm-free-class__cta {
  display: inline-block;
  background: #fff;
  color: var(--gm-teal);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-body);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: opacity 0.15s;
}
.gm-free-class__cta:hover { opacity: 0.88; color: var(--gm-teal); }

/* Testimonials carousel */
.gm-testimonials-carousel { user-select: none; }
.gm-testimonials-viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
}
.gm-testimonials-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.gm-testimonial-slide { min-width: 100%; }
.gm-testimonial {
  background: var(--gm-cream);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 220px;
}
.gm-testimonial__quote {
  font-family: var(--font-body-accent);
  font-size: var(--text-h2);
  line-height: 1.75;
  color: var(--gm-ink);
  margin: 0;
  font-style: italic;
  flex: 1;
}
.gm-testimonial__name {
  font-weight: 700;
  color: var(--gm-burgundy);
  font-size: var(--text-sm);
  margin: 0;
}
.gm-testimonial__location {
  font-size: var(--text-xs);
  color: var(--gm-ink);
  opacity: 0.55;
  margin: 0;
}
.gm-testimonial__class {
  font-size: var(--text-xs);
  color: var(--gm-teal);
  font-weight: 700;
  margin: var(--space-1) 0 0;
  letter-spacing: 0.02em;
}
.gm-testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.gm-testimonials-arrow {
  background: none;
  border: 2px solid var(--gm-sand-50);
  color: var(--gm-burgundy);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.gm-testimonials-arrow:hover {
  background: var(--gm-burgundy);
  color: #fff;
  border-color: var(--gm-burgundy);
}
.gm-testimonials-dots { display: flex; gap: var(--space-2); align-items: center; }
.gm-testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gm-sand-50);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.gm-testimonials-dot--active {
  background: var(--gm-burgundy);
  transform: scale(1.4);
}

/* Sign-in strip */
.gm-signin-strip {
  background: var(--gm-cream);
  border-top: 1px solid var(--gm-sand-50);
  padding: var(--space-8) var(--space-6);
}
.gm-signin-strip__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  text-align: center;
}
.gm-signin-strip__text {
  margin: 0;
  font-family: var(--font-body-accent);
  font-size: var(--text-h2);
  color: var(--gm-ink);
}

/* Landing footer */
.gm-landing-footer {
  background: var(--gm-burgundy);
  color: var(--gm-cream);
  text-align: center;
  padding: var(--space-8) var(--space-6);
  font-size: var(--text-sm);
  opacity: 1;
}
.gm-landing-footer a { color: var(--gm-sand); }
.gm-landing-footer a:hover { color: var(--gm-cream); }

/* Admin data table — spreadsheet style */
.gm-table-wrap { overflow-x: auto; border: 1px solid rgba(0,0,0,.18); }
.gm-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); white-space: nowrap; }
.gm-table th { padding: 5px 10px; text-align: left; font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--gm-ink); background: var(--gm-sand-50); border-bottom: 2px solid rgba(0,0,0,.18); border-right: 1px solid rgba(0,0,0,.12); }
.gm-table th:last-child { border-right: none; }
.gm-table td { padding: 5px 10px; border-bottom: 1px solid rgba(0,0,0,.10); border-right: 1px solid rgba(0,0,0,.08); vertical-align: middle; }
.gm-table td:last-child { border-right: none; }
.gm-table__data-row:nth-child(4n+3) > td { background: rgba(232,242,242,.45); }
.gm-table tbody tr:hover > td { background: var(--gm-ice); }
.gm-table tr.gm-table__edit-row > td { background: var(--gm-cream); padding: var(--space-4); white-space: normal; border-right: none; }
.gm-table .gm-table__comment { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
