/* =========================
   BASIS
========================= */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --background: #faf8f4;
  --surface: #ffffff;
  --surface-soft: #eff1ea;
  --text: #2b2a26;
  --muted: #837e73;
  --border: #e4e0d6;
  --accent: #3e93ab;
  --accent-dark: #2e7186;
  --accent-warm: #dd9169;
  --danger: #b5605a;
  --warning: #b3822f;
  --success: #3e93ab;
  --radius-small: 12px;
  --radius: 16px;
  --radius-large: 24px;
  --radius-button: 12px;
  --shadow: 0 10px 26px rgba(60, 70, 60, 0.06);
  --max-width: 620px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1100px 550px at 12% -8%, rgba(62, 147, 171, 0.12), transparent 60%),
    radial-gradient(800px 460px at 105% 4%, rgba(221, 145, 105, 0.1), transparent 55%),
    var(--background);
  background-attachment: fixed;
  color: var(--text);
  font-family:
    "Manrope",
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  font-weight: 450;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid rgba(62, 147, 171, 0.28);
  outline-offset: 3px;
}


/* =========================
   LAYOUT
========================= */

.app-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow,
.section-label {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.intro {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}


/* =========================
   BUTTONS
========================= */

.icon-button,
.back-button,
.primary-button,
.secondary-button,
.rating-button,
.topic-card {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: background 120ms ease, transform 100ms ease;
}

.icon-button:hover {
  background: var(--surface-soft);
}

.icon-button:active {
  transform: scale(0.94);
}

.primary-button,
.secondary-button {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 1rem;
  transition: filter 120ms ease, background 120ms ease, transform 100ms ease;
}

.primary-button {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(46, 113, 134, 0.22);
}

.primary-button:hover {
  filter: brightness(0.93);
}

.primary-button:active,
.secondary-button:active {
  transform: scale(0.98);
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.secondary-button:hover {
  background: var(--surface-soft);
}

.back-button {
  display: inline-block;
  margin-bottom: 18px;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
}


/* =========================
   PROGRESS
========================= */

.progress-card {
  position: relative;
  margin-bottom: 32px;
  padding: 16px 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 32px;
}


@media (max-width: 600px) {
  .progress-card {
    margin-top: 20px;
  }
  }
/* Signature: leichte Wellenkante am unteren Rand, Meer-Motiv */
.progress-card::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -1px;
  height: 14px;
  background: var(--background);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q 27.5 0 55 10 T 110 10 T 165 10 T 220 10 V20 H0 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q 27.5 0 55 10 T 110 10 T 165 10 T 220 10 V20 H0 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 220px 100%;
  mask-size: 220px 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}

.progress-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.progress-card__day {
  margin-bottom: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.progress-card__percent {
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 750;
}

.progress-track {
  height: 9px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transition: width 220ms ease;
}

.stats-grid {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 2px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  background: none;
  border-radius: 0;
}

.stat + .stat {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.stat__value,
.stat__label {
  display: block;
}

.stat__value {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.stat__label {
  color: var(--muted);
  font-size: 0.82rem;
}


/* =========================
   TOPICS
========================= */

.section-heading {
  margin-bottom: 16px;
}

.topic-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.topic-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  text-align: left;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  transition:
    border-color 120ms ease,
    background 120ms ease,
    transform 100ms ease;
}

.topic-card:hover {
  border-color: rgba(62, 147, 171, 0.35);
}

.topic-card:active {
  transform: scale(0.99);
}

.topic-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: rgba(62, 147, 171, 0.09);
  font-size: 1.3rem;
}

.topic-card__title {
  display: block;
  margin-bottom: 2px;
  font-size: 0.98rem;
  font-weight: 700;
}

.topic-card__description {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.topic-card__arrow {
  color: var(--muted);
  font-size: 1.1rem;
}


/* =========================
   TRAINING
========================= */

.training-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.training-counter {
  flex: 0 0 auto;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.exercise-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.exercise-card__prompt {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
}

.exercise-card__question {
  min-height: 84px;
  margin-bottom: 22px;
  font-size: clamp(1.3rem, 6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.solution-box {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(62, 147, 171, 0.22);
  border-radius: var(--radius);
  background: rgba(62, 147, 171, 0.06);
}

.solution-box__label {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.solution-box__answer {
  margin-bottom: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: "Georgia", serif; /* dezenter Twist nur bei Ergebnis-Zahlen */
  letter-spacing: 0.01em;
}

.rating-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.rating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: opacity 120ms ease, transform 100ms ease, border-color 120ms ease;
}

.rating-button:hover {
  opacity: 0.85;
}

.rating-button:active {
  transform: scale(0.97);
}

.rating-button--hard {
  border-color: rgba(181, 96, 90, 0.25);
  background: rgba(181, 96, 90, 0.08);
  color: var(--danger);
}

.rating-button--hard::before {
  content: "○";
}

.rating-button--medium {
  border-color: rgba(179, 130, 47, 0.25);
  background: rgba(179, 130, 47, 0.08);
  color: var(--warning);
}

.rating-button--medium::before {
  content: "◐";
}

.rating-button--easy {
  border-color: rgba(62, 147, 171, 0.25);
  background: rgba(62, 147, 171, 0.08);
  color: var(--success);
}

.rating-button--easy::before {
  content: "●";
}

.training-hint {
  margin: 14px 8px 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}


/* =========================
   TABLET / DESKTOP
========================= */

@media (min-width: 620px) {
  .app-shell {
    padding-top: 40px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-card {
    grid-template-columns: 46px 1fr;
  }

  .topic-card__arrow {
    display: none;
  }

  .rating-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* =========================
   DARK MODE
========================= */

@media (prefers-color-scheme: dark) {
  :root {
    --background: #14181a;
    --surface: #1c2123;
    --surface-soft: #262c2e;
    --text: #f2f3ee;
    --muted: #a2aaa6;
    --border: #33393c;
    --accent: #7bb9cf;
    --accent-dark: #93c6d9;
    --accent-warm: #e6a97e;
    --danger: #e5a3a0;
    --warning: #ecc788;
    --success: #7bb9cf;
    --shadow: none;
  }

  .primary-button {
    color: #10262e;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  }

  .solution-box {
    background: rgba(123, 185, 207, 0.09);
  }

  .progress-card::after {
    background: var(--background);
  }

  .training-finish-overlay {
  background: rgba(3, 10, 12, 0.76);
}

.training-finish-dialog {
  border: 1px solid rgba(178, 219, 215, 0.12);
  background: #1d3033;
  color: #e8f0ef;

  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.38);
}

.training-finish-dialog p {
  color: #bdcecc;
}
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* =========================
   FOOTER
========================= */

.footer-global {
  width: min(100%, var(--max-width));
  margin: 15vh auto 0;
  padding: 20px 16px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-global p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-global a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 2px;
}

.footer-global a:hover {
  color: var(--accent);
}

@media (max-width: 420px) {
  .footer-global p {
    display: block;
    white-space: nowrap;
  }
}

.progress-overview-button {
  margin-top: 18px;
}

/* =========================
   FORTSCHRITTS-AKTIONEN
========================= */

.progress-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.progress-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 52px;
  padding: 12px 18px;

  border-radius: 15px;

  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.progress-action:hover {
  transform: translateY(-1px);
}

.progress-action:active {
  transform: translateY(0);
}


/* Gelernte Sätze */

.progress-action--secondary {
  border: 1px solid rgba(18, 70, 78, 0.18);
  background: #ffffff;
  color: #174b52;
}

.progress-action--secondary:hover {
  border-color: rgba(18, 70, 78, 0.32);
  background: rgba(18, 70, 78, 0.045);
}


/* Lernweg */

.progress-action--primary {
  border: 1px solid #174f57;
  background: #174f57;
  color: #ffffff;
  box-shadow:
    0 8px 18px rgba(23, 79, 87, 0.16);
}

.progress-action--primary:hover {
  border-color: #123f46;
  background: #123f46;
  box-shadow:
    0 10px 22px rgba(23, 79, 87, 0.22);
}


/* Tastaturbedienung */

.progress-action:focus-visible {
  outline: 3px solid rgba(214, 127, 63, 0.3);
  outline-offset: 3px;
}


/* Mobil */

@media (max-width: 600px) {
  .progress-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .progress-action {
    min-height: 50px;
  }
}

/* =========================
   FORTSCHRITTS-AKTIONEN
   DARK MODE
========================= */

@media (prefers-color-scheme: dark) {

  .progress-action--secondary {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #e7f0f1;
  }

  .progress-action--secondary:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
  }

  .progress-action--primary {
    border-color: #4d9ba5;
    background: #4d9ba5;
    color: #0d292e;

    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.22);
  }

  .progress-action--primary:hover {
    border-color: #65adb6;
    background: #65adb6;

    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.3);
  }

  .progress-action:focus-visible {
    outline-color: rgba(224, 143, 77, 0.5);
  }
}

/* =========================
   FRANKREICH-BANNER
========================= */

.travel-banner {
  position: relative;
  min-height: 210px;
  margin: 28px 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(18, 70, 78, 0.1);
  border-radius: 24px;
  background: #dfe9e8;
  box-shadow:
    0 16px 34px rgba(20, 52, 58, 0.08);
}

.travel-banner__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.travel-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(8, 27, 31, 0.02) 20%,
      rgba(8, 27, 31, 0.18) 58%,
      rgba(8, 27, 31, 0.74) 100%
    );
}

.travel-banner__content {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
}

.travel-banner__eyebrow {
  margin: 0 0 5px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.28);
}

.travel-banner__title {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.08rem, 5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.42);
}


/* =========================
   FRANKREICH-BANNER:
   GRÖSSERE BILDSCHIRME
========================= */

@media (min-width: 620px) {
  .travel-banner {
    min-height: 250px;
    margin: 36px 0;
    border-radius: 28px;
  }

  .travel-banner__content {
    min-height: 250px;
    padding: 26px 28px;
  }

  .travel-banner__eyebrow {
    font-size: 0.74rem;
  }
}


@media (min-width: 900px) {
  .travel-banner {
    min-height: 290px;
    margin: 42px 0;
  }

  .travel-banner__content {
    min-height: 290px;
    padding: 30px 34px;
  }

  .travel-banner__title {
    font-size: 1.55rem;
  }
}

/* =========================
   FRANKREICH-BANNER:
   DARK MODE
========================= */

@media (prefers-color-scheme: dark) {
  .travel-banner {
    border-color: rgba(178, 219, 215, 0.12);
    background: #203638;
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.24);
  }

  .travel-banner__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(3, 13, 15, 0.06) 15%,
        rgba(3, 13, 15, 0.26) 55%,
        rgba(3, 13, 15, 0.82) 100%
      );
  }

  .travel-banner__eyebrow,
  .travel-banner__title {
    color: #ffffff;
  }
  .training-banner {
  border-color: rgba(178, 219, 215, 0.12);
  background: #203638;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.24);
}

.training-banner__overlay {
  background:
    linear-gradient(
      180deg,
      rgba(3, 13, 15, 0.08) 20%,
      rgba(3, 13, 15, 0.28) 56%,
      rgba(3, 13, 15, 0.84) 100%
    );
}

.training-banner__eyebrow,
.training-banner__title {
  color: #ffffff;
}

}

/* =========================
   THEMENBANNER TRAINING
========================= */

.training-banner {
  position: relative;
  min-height: 170px;
  margin: 18px 0 24px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(18, 70, 78, 0.1);
  border-radius: 22px;
  background: #dfe9e8;
  box-shadow:
    0 14px 30px rgba(20, 52, 58, 0.08);
}

.training-banner__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.training-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(7, 23, 27, 0.02) 22%,
      rgba(7, 23, 27, 0.18) 58%,
      rgba(7, 23, 27, 0.76) 100%
    );
}

.training-banner__content {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #ffffff;
}

.training-banner__eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.3);
}

.training-banner__title {
  max-width: 520px;
  margin: 0;
  font-size: clamp(1.05rem, 5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.42);
}

@media (min-width: 620px) {
  .training-banner {
    min-height: 205px;
    margin: 22px 0 28px;
    border-radius: 26px;
  }

  .training-banner__content {
    min-height: 205px;
    padding: 22px 24px;
  }

  .training-banner__title {
    font-size: 1.45rem;
  }
}

/* =========================
   COOKIE-BANNER
========================= */

.cookie-banner {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 1200;

  display: flex;
  flex-direction: column;
  gap: 16px;

  max-width: 560px;
  margin: 0 auto;
  padding: 18px;

  border: 1px solid rgba(18, 70, 78, 0.12);
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 20px 50px rgba(20, 52, 58, 0.18);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: #465558;
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-banner a {
  color: #145e67;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-banner a:hover {
  color: #0f4d55;
}

.cookie-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cookie-buttons button {
  min-height: 48px;
  padding: 11px 16px;

  border-radius: 14px;

  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;

  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.cookie-buttons button:hover {
  transform: translateY(-1px);
}

.cookie-buttons button:active {
  transform: translateY(0);
}

.cookie-buttons button:focus-visible {
  outline: 3px solid rgba(45, 145, 158, 0.28);
  outline-offset: 3px;
}

#accept-cookies {
  border: 1px solid #145e67;
  background: #145e67;
  color: #ffffff;
  box-shadow:
    0 10px 22px rgba(20, 94, 103, 0.16);
}

#accept-cookies:hover {
  border-color: #0f5058;
  background: #0f5058;
}

#decline-cookies {
  border: 1px solid rgba(18, 70, 78, 0.2);
  background: transparent;
  color: #145e67;
}

#decline-cookies:hover {
  border-color: rgba(18, 70, 78, 0.34);
  background: rgba(18, 70, 78, 0.06);
}

@media (min-width: 700px) {
  .cookie-banner {
    right: 24px;
    bottom: 24px;
    left: auto;

    width: min(100% - 48px, 520px);
    margin: 0;
    padding: 20px 22px;
  }

  .cookie-buttons {
    display: flex;
    justify-content: flex-end;
  }

  .cookie-buttons button {
    min-width: 130px;
  }
}

.cookie-banner {
  border-color: rgba(178, 219, 215, 0.12);
  background: rgba(27, 45, 48, 0.96);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.34);
}

.cookie-banner p {
  color: #c5d3d1;
}

.cookie-banner a {
  color: #8dc9c4;
}

.cookie-banner a:hover {
  color: #b4e0dc;
}

#accept-cookies {
  border-color: #3b9188;
  background: #3b9188;
  color: #ffffff;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.2);
}

#accept-cookies:hover {
  border-color: #4da49b;
  background: #4da49b;
}

#decline-cookies {
  border-color: rgba(181, 217, 213, 0.2);
  background: rgba(255, 255, 255, 0.02);
  color: #a9d3cf;
}

#decline-cookies:hover {
  border-color: rgba(181, 217, 213, 0.34);
  background: rgba(181, 217, 213, 0.08);
}

/* =========================
   TRAINING ABGESCHLOSSEN
========================= */

.training-finish-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;

  display: grid;
  place-items: center;

  padding: 20px;

  background: rgba(8, 25, 29, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.training-finish-dialog {
  width: min(100%, 440px);
  padding: 30px 24px;

  border-radius: 26px;

  background: #ffffff;

  text-align: center;

  box-shadow:
    0 24px 60px rgba(8, 25, 29, 0.24);
}

.training-finish-dialog__icon {
  display: block;
  margin-bottom: 14px;

  font-size: 2.6rem;
}

.training-finish-dialog h2 {
  margin: 0 0 10px;
}

.training-finish-dialog p {
  margin: 0;
  line-height: 1.6;
}

.training-finish-dialog__actions {
  display: grid;
  gap: 10px;

  margin-top: 24px;
}

@media (prefers-color-scheme: dark) {
/* =========================
   TRAININGSABSCHLUSS:
   DARK MODE
========================= */

.training-finish-overlay {
  background: rgba(3, 10, 12, 0.78);
}

.training-finish-dialog {
  border: 1px solid rgba(178, 219, 215, 0.12);
  background: #1d3033;
  color: #e8f0ef;
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.38);
}

.training-finish-dialog h2 {
  color: #f3f8f7;
}

.training-finish-dialog p {
  color: #bdcecc;
}

.training-finish-dialog__icon {
  filter: saturate(0.95) brightness(1.05);
}

.training-finish-dialog .primary-button {
  border-color: #3f978e;
  background: #3f978e;
  color: #ffffff;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.training-finish-dialog .primary-button:hover {
  border-color: #50a79e;
  background: #50a79e;
}

.training-finish-dialog .secondary-button {
  border-color: rgba(181, 217, 213, 0.2);
  background: rgba(255, 255, 255, 0.025);
  color: #b8d8d4;
}

.training-finish-dialog .secondary-button:hover {
  border-color: rgba(181, 217, 213, 0.34);
  background: rgba(181, 217, 213, 0.08);
  color: #d7e9e7;
}

.training-finish-dialog button:focus-visible {
  outline-color: rgba(116, 199, 190, 0.42);
}}



.cheat-action {
  grid-column: 1 / -1;
  text-align: center;
}

.progress-action--next {
  width: 100%;
  border: 1px dashed rgba(47, 135, 157, 0.4);
  background: rgba(47, 135, 157, 0.08);
  color: #236b7c;
}

.progress-action--next:hover {
  background: rgba(47, 135, 157, 0.15);
  transform: translateY(-1px);
}

.progress-action--next:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}

.cheat-action__hint {
  margin: 7px 8px 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #6b7280;
}

@media (prefers-color-scheme: dark) {
  .progress-action--next {
    border-color: rgba(94, 200, 220, 0.4);
    background: rgba(94, 200, 220, 0.08);
    color: #8edce8;
  }

  .progress-action--next:hover {
    background: rgba(94, 200, 220, 0.16);
  }

  .progress-action--next:disabled {
    opacity: 0.5;
  }

  .cheat-action__hint {
    color: #9ca3af;
  }
}


/* =========================
   LIGHT-VERSION-SPERRE
========================= */

body.light-version-locked {
  overflow: hidden;
}

body.light-version-locked
  > *:not(.light-version-overlay) {
  pointer-events: none;
  user-select: none;
}

.light-version-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(10, 18, 32, 0.76);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;

  transition: opacity 0.25s ease;
}

.light-version-overlay--visible {
  opacity: 1;
}

.light-version-dialog {
  width: min(100%, 760px);

  padding: 34px;

  border: 1px solid
    rgba(255, 255, 255, 0.16);

  border-radius: 28px;

  background: var(--surface, #ffffff);
  color: var(--text, #182033);

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.35);
}

.light-version-content {
  display: grid;

  grid-template-columns:
    minmax(160px, 220px)
    minmax(0, 1fr);

  gap: 36px;

  align-items: center;
}

/* =========================
   BUCHCOVER
========================= */

.light-version-cover {
  display: flex;
  justify-content: center;
}

.light-version-cover img {
  display: block;

  width: 100%;
  max-width: 210px;
  height: auto;

  border-radius: 8px;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.28);

  transform: rotate(-2deg);
}

/* =========================
   TEXT
========================= */

.light-version-info {
  text-align: left;
}

.light-version-eyebrow {
  margin: 0 0 8px;

  color: var(--accent, #2b865e);

  font-size: 0.78rem;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.light-version-dialog h2 {
  margin: 0 0 16px;

  font-size: clamp(
    1.7rem,
    4vw,
    2.35rem
  );

  line-height: 1.1;
}

.light-version-text {
  margin: 0 0 24px;

  color: var(--muted, #657083);

  font-size: 1rem;
  line-height: 1.6;
}

/* =========================
   CTA
========================= */

.light-version-buy-button {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 54px;

  padding: 14px 22px;

  border-radius: 15px;

  background:
    var(--accent, #2b865e);

  color: #ffffff;

  font-weight: 800;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.light-version-buy-button:hover {
  transform: translateY(-2px);

  filter: brightness(1.05);
}

.light-version-note {
  margin: 16px 0 0;

  color: var(--muted, #657083);

  font-size: 0.78rem;
  line-height: 1.45;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  .light-version-overlay {
    align-items: flex-end;

    padding: 10px;
  }

  .light-version-dialog {
    padding: 24px 20px 22px;

    border-radius: 26px;
  }

  .light-version-content {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .light-version-cover img {
    max-width: 125px;

    transform: rotate(-2deg);
  }

  .light-version-info {
    text-align: center;
  }

  .light-version-dialog h2 {
    font-size: 1.7rem;
  }

  .light-version-text {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .light-version-buy-button {
    width: 100%;
  }

}