/* Sprachlern-Erweiterung für mathiasellmann.de */

.sprach-page .wissen-main {
  overflow-wrap: anywhere;
}

.sprach-learning-goal {
  margin: 0 0 2.5rem;
  padding: 1.6rem;
  border: 1px solid #d8dde6;
  border-radius: 1rem;
  background: #f7f9fc;
}

.sprach-expression-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.sprach-expression {
  padding: 1.35rem;
  border: 1px solid #d8dde6;
  border-radius: 1rem;
  background: #fff;
}

.sprach-expression__spanish {
  margin: 0 0 .4rem;
  font-size: 1.55rem;
  line-height: 1.3;
}

.sprach-pattern,
.sprach-example,
.sprach-practice,
.sprach-dialog {
  margin: 1.25rem 0;
  padding: 1.35rem;
  border-left: .3rem solid currentColor;
  background: #f7f9fc;
}

.sprach-formula {
  display: inline-block;
  padding: .65rem .9rem;
  border: 1px solid #d8dde6;
  border-radius: .75rem;
  background: #f7f9fc;
  font-weight: 700;
}

.sprach-quiz-section {
  margin-top: 3rem;
}

.sprach-quiz__progress {
  font-weight: 700;
}

.sprach-quiz__question {
  font-size: 1.3rem;
  line-height: 1.45;
}

.sprach-answers {
  display: grid;
  gap: .8rem;
  margin: 1.25rem 0;
}

.sprach-answer {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 2px solid #d8dde6;
  border-radius: .85rem;
  background: #fff;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.sprach-answer:hover {
  border-color: currentColor;
}

.sprach-answer[aria-pressed="true"] {
  border-color: currentColor;
  font-weight: 700;
}

.sprach-answer.is-wrong {
  border-style: dashed;
}

.sprach-answer:focus-visible,
.sprach-quiz__button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.sprach-feedback,
.sprach-quiz__complete {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #d8dde6;
  border-radius: .75rem;
  background: #f7f9fc;
}

.sprach-quiz__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.sprach-quiz__button {
  padding: .8rem 1rem;
  border: 2px solid currentColor;
  border-radius: .75rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sprach-quiz__button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

@media (max-width: 720px) {
  .sprach-expression-grid {
    grid-template-columns: 1fr;
  }
}


/* A1.0 REDESIGN 2026-09-19 */

/* ---------------------------------------------------------
   Wissen-Hub
   --------------------------------------------------------- */

.sprach-wissen-section {
  display: block;
}

.sprach-wissen-heading {
  max-width: 58rem;
  margin-bottom: 1.5rem;
}

.sprach-wissen-intro {
  max-width: 52rem;
  font-size: 1.06rem;
  line-height: 1.7;
}

.sprach-wissen-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  width: 100%;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid #d6dee5;
  border-radius: 1rem;
  background: #fff;
}

.sprach-wissen-teaser__body {
  max-width: 52rem;
}

.sprach-wissen-teaser__body h3 {
  margin-top: .8rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.sprach-wissen-teaser__claim {
  max-width: 34rem;
  font-weight: 700;
  line-height: 1.45;
}

.sprach-wissen-teaser__meta {
  margin-bottom: 0;
  font-size: .95rem;
  font-weight: 700;
}

.sprach-wissen-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.sprach-pill {
  display: inline-block;
  margin: 0;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: #edf5f2;
  color: #245b4a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.sprach-kicker {
  margin: 0 0 .6rem;
  color: #155d50;
  font-size: .79rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* ---------------------------------------------------------
   Sprach-Hubs
   --------------------------------------------------------- */

.sprach-source-entry {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid #d6dee5;
  border-radius: 1rem;
  background: #f7faf9;
}


/* ---------------------------------------------------------
   Hero / Lernziel
   --------------------------------------------------------- */

.sprach-lesson-hero {
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.sprach-hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(18rem, 22rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.sprach-hero-copy h1 {
  max-width: 13ch;
  margin-top: .7rem;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.sprach-hero-copy .wissen-lead {
  max-width: 43rem;
}

.sprach-goal-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid #d5dee6;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(20, 40, 60, .06);
}

.sprach-goal-card h2 {
  margin: .3rem 0 1.4rem;
  font-size: 1.45rem;
  line-height: 1.25;
}

.sprach-goal-list {
  display: grid;
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sprach-goal-list li {
  position: relative;
  padding-left: 1.8rem;
  line-height: 1.5;
}

.sprach-goal-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #227a42;
  font-weight: 900;
}


/* ---------------------------------------------------------
   Aussprache
   --------------------------------------------------------- */

.sprach-pronunciation {
  margin: 3rem 0;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid #d5dee6;
  border-radius: 1rem;
  background: #f7fafc;
}

.sprach-section-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.sprach-section-heading h2 {
  margin: .15rem 0 0;
}

.sprach-pronunciation-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #e8f2ef;
  color: #155d50;
}

.sprach-pronunciation-list {
  display: grid;
  gap: .8rem;
  margin-top: 1.5rem;
}

.sprach-pronunciation-row {
  display: grid;
  grid-template-columns: minmax(12rem, .7fr) 1.3fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #d8e1e7;
}

.sprach-pronunciation-row:first-child {
  border-top: 0;
}

.sprach-pronunciation-row strong[lang="es"] {
  display: block;
  margin-bottom: .25rem;
  font-size: 1.15rem;
}

.sprach-pronunciation-row p {
  margin: 0;
}

.sprach-ipa {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: .95rem;
}

.sprach-pronunciation-note {
  margin-top: 1.4rem;
  padding: 1rem;
  border-left: .28rem solid #155d50;
  background: #fff;
}


/* ---------------------------------------------------------
   Selbsttest
   --------------------------------------------------------- */

.sprach-quiz-section {
  margin-top: 4rem;
}

.sprach-question-card {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid #d4dde5;
  border-radius: 1rem;
  background: #fff;
}

.sprach-question-head {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}

.sprach-question-number {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: #132b43;
  color: #fff;
  font-weight: 850;
}

.sprach-question-title {
  margin: .2rem 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.sprach-quiz__meta {
  margin: 1.5rem 0 .8rem;
  color: #596b7d;
  font-size: .92rem;
}

.sprach-answers {
  display: grid;
  gap: .65rem;
  margin: 0;
}

.sprach-answer {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  min-height: 3.3rem;
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #d4dde5;
  border-radius: .7rem;
  background: #fff;
  color: inherit;
  text-align: left;
  font: inherit;
  line-height: 1.45;
  cursor: pointer;
}

.sprach-answer:hover {
  background: #f7fafc;
}

.sprach-answer__radio {
  position: relative;
  display: inline-block;
  width: .95rem;
  height: .95rem;
  border: 1.5px solid #778899;
  border-radius: 50%;
}

.sprach-answer[aria-pressed="true"] {
  border-color: #183c58;
  background: #f4f8fb;
}

.sprach-answer[aria-pressed="true"]
.sprach-answer__radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #183c58;
}

.sprach-answer.is-correct {
  border-color: #2c7a49;
  background: #f4faf6;
}

.sprach-answer.is-wrong {
  border-color: #9d5252;
  background: #fff7f7;
}

.sprach-feedback {
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: .7rem;
  background: #f4f7f9;
  line-height: 1.55;
}

.sprach-quiz__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}


/* ---------------------------------------------------------
   Quellen
   --------------------------------------------------------- */

.sprach-source-card {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #d6dee5;
  border-radius: .8rem;
  background: #f8fafb;
}

.sprach-source-card p:last-child {
  margin-bottom: 0;
}

.sprach-rights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 860px) {

  .sprach-wissen-teaser,
  .sprach-hero-grid,
  .sprach-pronunciation-row {
    grid-template-columns: 1fr;
  }

  .sprach-wissen-teaser__actions {
    align-items: flex-start;
  }

  .sprach-hero-copy h1 {
    max-width: none;
  }

  .sprach-rights-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {

  .sprach-wissen-teaser__actions {
    display: grid;
  }

  .sprach-wissen-teaser__actions .wissen-button {
    width: 100%;
  }

  .sprach-goal-card {
    padding: 1.2rem;
  }

}


/* A1 ENTRY UX FIX 2026-09-19 */

/* ---------------------------------------------------------
   Lesbare Labels
   --------------------------------------------------------- */

.sprach-lesson-hero .sprach-kicker {
  color: #c7f1e5;
}

.sprach-goal-card {
  color: #172b3a;
}

.sprach-goal-card .sprach-kicker {
  color: #176252;
}

.sprach-goal-card h2,
.sprach-goal-card li {
  color: #172b3a;
}

.sprach-section-kicker {
  margin: 0 0 .65rem;
  color: #176252;
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* ---------------------------------------------------------
   Lernziel
   --------------------------------------------------------- */

.sprach-goal-card h2 {
  margin-bottom: 1.25rem;
}

.sprach-goal-list li::before {
  color: #247a43;
}


/* ---------------------------------------------------------
   Aussprache-Button
   --------------------------------------------------------- */

.sprach-audio-button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .55rem;
  padding: .4rem .7rem;
  border: 1px solid #bac8d1;
  border-radius: .55rem;
  background: #fff;
  color: #173d53;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}

.sprach-audio-button:hover {
  background: #eef5f7;
}

.sprach-audio-button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

.sprach-audio-status {
  margin-top: .8rem;
  font-size: .9rem;
}


/* ---------------------------------------------------------
   Aufklappbare Beispiele
   --------------------------------------------------------- */

.sprach-example-details {
  margin-top: 1.2rem;
  border: 1px solid #d4dde5;
  border-radius: .8rem;
  background: #fff;
  overflow: hidden;
}

.sprach-example-details summary {
  padding: .9rem 1rem;
  font-weight: 750;
  cursor: pointer;
}

.sprach-example-details summary:hover {
  background: #f5f8fa;
}

.sprach-example-details__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #e2e8ed;
}


/* ---------------------------------------------------------
   Selbsttest
   --------------------------------------------------------- */

.sprach-quiz-intro {
  max-width: 48rem;
}

.sprach-quiz-progress {
  margin: 0 0 1.25rem;
}

.sprach-quiz-progress__text {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .45rem;
  font-size: .9rem;
  font-weight: 700;
}

.sprach-quiz-progress__track {
  height: .45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e9ee;
}

.sprach-quiz-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: #176252;
  transition: width .2s ease;
}


/* ---------------------------------------------------------
   Quellen
   --------------------------------------------------------- */

.sprach-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.sprach-reference-card {
  padding: 1.2rem;
  border: 1px solid #d4dde5;
  border-radius: .85rem;
  background: #fff;
}

.sprach-reference-card h3 {
  margin-top: .3rem;
}

.sprach-reference-card__type {
  margin: 0;
  color: #176252;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.sprach-source-principle {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: .3rem solid #176252;
  background: #f4f8f7;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 720px) {

  .sprach-reference-grid {
    grid-template-columns: 1fr;
  }

}

/* SPANISCH A1 LABEL CONTRAST */

.sprach-page .wissen-card .wissen-eyebrow {
  display: inline-block;
  width: auto;
  margin: 0 0 .8rem;
  padding: .38rem .62rem;

  border-radius: 999px;

  background: #e8f2ef;

  color: #155d50 !important;

  opacity: 1 !important;

  font-size: .78rem;
  font-weight: 850;

  letter-spacing: .08em;
  line-height: 1.2;

  text-transform: uppercase;
}

.sprach-page .wissen-card .wissen-eyebrow + h3 {
  margin-top: 0;
}

/* QUIZ FORMATIVE DIAGNOSE */

.sprach-quiz-round {
  margin: 0 0 .75rem;
  color: #596b7d;
  font-size: .9rem;
  font-weight: 700;
}

.sprach-quiz-summary {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid #d4dde5;
  border-radius: 1rem;
  background: #fff;
}

.sprach-quiz-summary > h3 {
  margin-top: .25rem;
}

.sprach-quiz-summary h4 {
  margin-top: 2rem;
  margin-bottom: .8rem;
  font-size: 1.05rem;
}

.sprach-quiz-stats {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin: 1.5rem 0;
}

.sprach-quiz-stat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-height: 7rem;
  padding: 1rem;
  border: 1px solid #d7e0e6;
  border-radius: .8rem;
  background: #f8fafb;
}

.sprach-quiz-stat__number {
  font-size: 2rem;
  line-height: 1;
}

.sprach-quiz-stat__label {
  line-height: 1.35;
}

.sprach-quiz-stat.is-secure {
  border-color: #afd1b9;
  background: #f3faf5;
}

.sprach-quiz-stat.is-second {
  border-color: #decf9c;
  background: #fffaf0;
}

.sprach-quiz-stat.is-uncertain {
  border-color: #dfb3b3;
  background: #fff6f6;
}

.sprach-quiz-overview {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sprach-quiz-overview__item {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  gap: 1rem;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid #e2e8ed;
}

.sprach-quiz-overview__question {
  line-height: 1.45;
}

.sprach-quiz-status {
  display: inline-block;
  padding: .35rem .55rem;
  border: 1px solid #cbd5dc;
  border-radius: 999px;
  white-space: nowrap;
  font-size: .76rem;
  font-weight: 800;
}

.sprach-quiz-status.is-secure {
  border-color: #9bc9aa;
  background: #eef8f1;
  color: #235f38;
}

.sprach-quiz-status.is-second {
  border-color: #d7c27b;
  background: #fff8df;
  color: #69571e;
}

.sprach-quiz-status.is-uncertain {
  border-color: #d8a6a6;
  background: #fff0f0;
  color: #7d3030;
}

.sprach-quiz-status.is-open {
  background: #f4f6f7;
  color: #596b7d;
}

.sprach-quiz-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

@media (max-width: 820px) {

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

}

@media (max-width: 560px) {

  .sprach-quiz-stats {
    grid-template-columns: 1fr;
  }

  .sprach-quiz-overview__item {
    grid-template-columns: 1fr;
  }

  .sprach-quiz-summary__actions {
    display: grid;
  }

  .sprach-quiz-summary__actions
  .sprach-quiz__button {
    width: 100%;
  }

}
