section {
    margin-bottom: 1.75rem;
}

.input-section {
    display: block;
    position: relative;
    background-color: #e0e0e0;
    padding: 10px clamp(1rem, 4vw, 2.75rem);
    top: 0;
    transition: all 0.3s;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.input-section label {
    display: block;
    margin-top: 10px;
}

.input-section .text-and-image {
    display: flex;
    align-items: flex-start;
    /* Ohne flex-start: stretch verteilt bei Umbruch (Text + Bild) Leerraum zwischen den Zeilen. */
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    min-width: 0;
}

/* Viele Lern-SVGs sind A4 (210mm×297mm) im Root — intrinsische Größe + flex min-height:auto
   kann die Layout-Höhe künstlich auf ~ganze Seite treiben, obwohl width per CSS klein ist. */
.input-section .text-and-image img.image-right {
    display: block;
    max-width: min(360px, 100%);
    width: auto;
    height: auto;
    max-height: min(520px, 72vh);
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 0;
    min-height: 0;
}

.input-section .text-and-image img:not(.image-right) {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: min(520px, 72vh);
    object-fit: contain;
    min-width: 0;
    min-height: 0;
}

.input-section .text-and-image p {
    flex: 1 1 12rem;
    margin: 0;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* Kein break-all / anywhere: Umbruch nur an Wortgrenzen bzw. Silbentrennung */
    word-break: normal;
    /* Silbentrennung (nutzt <html lang="…"> auf der Mathe-Seite) */
    -webkit-hyphens: auto;
    hyphens: auto;
    /* Wo unterstützt: etwas weniger „harte“ Zeilenenden (CSS Text 4) */
    text-wrap: pretty;
    hyphenate-limit-chars: 6 3 3;
}

/* LaTeX/MathJax: keine Silbentrennung im Formel-Rendering (kein nowrap/overflow-x — vermeidet horizontales Scrollen der Seite) */
#content mjx-container {
    hyphens: none;
    -webkit-hyphens: none;
}

/* Input-Texte: lange Gleichungsketten sollen im Textbereich umbrechen
   statt in das Bild rechts hinein zu laufen. */
#content .input-section .text-and-image p mjx-container {
    max-width: 100%;
}

#content .input-section .text-and-image p mjx-container[display="true"],
#content .input-section .text-and-image p mjx-container[display="block"] {
    display: block !important;
    width: 100% !important;
    /* Kein x-hidden: hidden+visible erzwingt oft auto auf y -> Scrollbar */
    overflow: visible !important;
    max-height: none !important;
    scrollbar-width: none;
}

#content .input-section .text-and-image p mjx-container[display="true"] mjx-math,
#content .input-section .text-and-image p mjx-container[display="block"] mjx-math {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}


.exercises {
    margin-top: 20px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.exercises h2 {
    margin-top: 0;
}

.exercise {
    position: relative;
    margin-bottom: 20px;
    padding-right: 2.75rem; /* Platz für Kompetenz-„i“ rechts */
}

/* Kompetenzstufen: Button rechts, Popover darunter */
.exercise-levels-panel {
    position: absolute;
    top: 0.35rem;
    right: 0.45rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    isolation: isolate;
}

.exercise-reviewed-star {
    font-size: 1rem;
    line-height: 1;
    color: #64748b;
    user-select: none;
}

.exercise-reviewed-star[data-reviewed="1"] {
    color: #ca8a04;
}

.exercise-levels-btn {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    color: #334155;
    background: transparent;
    border: 1px dashed #64748b;
    border-radius: 50%;
    cursor: pointer;
}

.exercise-levels-btn:hover {
    color: #0f172a;
    border-color: #475569;
    background: rgba(148, 163, 184, 0.12);
}

.exercise-levels-popover {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    min-width: 15rem;
    max-width: 21rem;
    padding: 0.65rem 1.75rem 0.65rem 0.75rem;
    font-size: 0.88rem;
    line-height: 1.35;
    color: #0f172a;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.35rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    z-index: 2;
}

/* Floating-Layer: über allen Aufgabenkarten, unter Bubble-Menü (Blur ~10049) */
#exercise-competency-popover-root {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
}

.exercise-levels-popover.exercise-levels-popover--floating {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    pointer-events: auto;
    z-index: 9001;
    background-color: #ffffff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
}

.exercise-levels-heading {
    font-weight: 600;
    margin-bottom: 0.4rem;
    padding-right: 0.5rem;
    font-size: 0.82rem;
    color: #475569;
}

.exercise-levels-list {
    margin: 0;
    padding: 0 0 0 0.15rem;
    list-style: none;
}

.exercise-levels-list li {
    margin: 0.2rem 0;
}

.exercise-levels-abbr {
    display: inline-block;
    min-width: 1.5rem;
    font-weight: 600;
    color: #334155;
}

.exercise-levels-close {
    position: absolute;
    top: 0.2rem;
    right: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 0.2rem;
    cursor: pointer;
}

.exercise-levels-close:hover {
    color: #0f172a;
    background: rgba(148, 163, 184, 0.2);
}

.exercise-group-intro {
    width: 100%;
    margin: 0 0 0.65rem;
    padding: 0.35rem 0;
    box-sizing: border-box;
}

/* Freitext (s): Eingabe direkt an den Aufgabentext; Feedback nur in derselben Zeile, wenn die Zeile breit genug ist (flex-wrap). */
.exercise-type-s.exercise-task-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    column-gap: 0.45rem;
    row-gap: 0.35rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* a) und Aufgabentext in einer Zeile (Block-HTML in der Beschreibung erlaubt). */
.exercise-type-s .exercise-prompt {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    column-gap: 0.45rem;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.exercise-type-s .exercise-prompt .exercise-letter {
    flex: 0 0 auto;
    font-weight: 600;
}

.exercise-type-s .exercise-prompt .exercise-description {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-hyphens: auto;
    hyphens: auto;
    text-wrap: pretty;
    hyphenate-limit-chars: 6 3 3;
}

.exercise-type-s .exercise-description > :first-child {
    margin-top: 0;
}

.exercise-type-s .exercise-description p:first-of-type {
    margin-top: 0;
}

/* Multiple Choice: Buchstabe direkt vor dem Aufgabentext */
.exercise-mc-prompt {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    column-gap: 0.45rem;
    margin-bottom: 0.5rem;
    min-width: 0;
    max-width: 100%;
}

.exercise-mc-prompt .exercise-letter {
    flex: 0 0 auto;
    font-weight: 600;
}

.exercise-mc-prompt .exercise-description {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-hyphens: auto;
    hyphens: auto;
    text-wrap: pretty;
    hyphenate-limit-chars: 6 3 3;
}

.exercise-mc-prompt .exercise-description > :first-child {
    margin-top: 0;
}

.exercise-mc-prompt .exercise-description p:first-of-type {
    margin-top: 0;
}

.exercise-answer-core {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    max-width: 100%;
    box-sizing: border-box;
}

.exercise-type-s .feedback {
    flex: 0 1 auto;
    max-width: 100%;
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.exercise_description {
    padding: 10px 0;
}

.exercise-label {
    margin-right: 1.1rem;
    font-weight: 600;
}


/* Container für Multiple-Choice-Aufgaben */
.exercise-mc {
  text-align: left;       /* Container linksbündig */
  margin-bottom: 20px;
}

/* Bild innerhalb der Exercise */
.exercise-mc img {
  display: block;         /* Block, damit margin-bottom funktioniert */
  max-width: 300px;       /* Definierte Breite */
  height: auto;           /* proportional skalieren */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 10px;    /* Abstand zu den Antworten */
}

/* Antworten horizontal zentriert unter dem Bild */
.exercise-mc .multiple-choice-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: start;
}



/* Einzelne Antwortoption */
.exercise-mc .answer-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px 12px;
  font-size: 16px;
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.exercise-mc .answer-option label {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.5;
  display: block;
}

/* MC: Fließtext + MathJax — blockartige mjx-Container brechen sonst das 2-Spalten-Layout */
.exercise-mc .mc-answer-body {
  display: block;
  width: 100%;
  min-width: 0;
}

.exercise-mc .answer-option mjx-container {
  display: inline-block !important;
  vertical-align: middle;
  margin: 0 0.12em;
  max-width: 100%;
}

.exercise-mc .answer-option mjx-container[display="true"] {
  display: inline-block !important;
}

.exercise-mc .answer-option mjx-container[display="block"] {
  display: inline-block !important;
}

.exercise-mc .mc-answer-body img {
  display: block;
  max-width: min(200px, 100%);
  height: auto;
  border-radius: 6px;
}

/* Button soll unter dem 2-Spalten-Grid voll breit sein */
.exercise-mc .multiple-choice-form button {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (max-width: 640px) {
  .exercise-mc .multiple-choice-form {
    grid-template-columns: 1fr;
  }
}

/* Gemischte Übungen: Tile ohne 💡/🏋️ (s. showTileAndLoadContent.js) */
body.page-mathe-learning .tile-horizontal--exercises-only .tile-title {
  margin-bottom: 0.5rem;
}

/* Radio-Buttons etwas größer */
.exercise-mc .answer-option input[type="radio"] {
  transform: scale(1.2);
  cursor: pointer;
}

/* Submit-Button */
.exercise-mc .multiple-choice-form button {
  margin-top: 15px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background-color: #cd0e0e;
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.exercise-mc .multiple-choice-form button:hover {
  background-color: #5599dd;
}



body.page-mathe-learning .exercise.highlight {
    border-radius: 12px;
    border: 3px solid transparent !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1) !important;
    padding: 0.7rem;
}

body.page-mathe-learning .exercise.highlight-active {
    border-color: rgba(37, 99, 235, 0.72) !important;
    box-shadow:
        0 0 0 3px rgba(191, 219, 254, 0.95),
        0 10px 26px rgba(30, 64, 175, 0.16) !important;
}

body.page-mathe-learning .exercise.highlight-expired {
    border-color: rgba(107, 114, 128, 0.78) !important;
    box-shadow:
        0 0 0 3px rgba(209, 213, 219, 0.9),
        0 8px 20px rgba(107, 114, 128, 0.14) !important;
    filter: saturate(0.88);
}

.exercise-input {
    display: inline-block;
    margin-left: 0;
    margin-top: 0;
    flex: 0 0 auto;
    width: 11rem;
    min-width: 7rem;
    max-width: min(100%, 16rem);
    height: 2.15rem;
    line-height: 1.25;
    padding: 0.2rem 0.45rem;
    box-sizing: border-box;
    white-space: nowrap;
    overflow-x: auto;
}

.feedback {
    font-size: 20px;
    margin-left: 10px;
    margin-top: 20px;
}

.hero {
    background-color: #e9e9e9;
    padding: 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin: 0;
}

.section {
    margin: 2rem 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.bigsection {
    display: flex;
    justify-content: space-around;
}

.formatted-answer {
    display: inline-block;
    font-size: inherit;
    margin-left: 0;
    vertical-align: middle;
    max-width: 100%;
    min-width: 0;
}

/* === Reihenfolge-Aufgaben (type 'o'): Sortierliste (robust, touch-friendly) === */
.exercise-order {
    margin-top: 0.65rem;
}

.order-list {
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.order-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.order-item.dragging {
    opacity: 0.75;
    transform: scale(0.99);
}

.order-handle {
    font-weight: 900;
    color: rgba(15, 23, 42, 0.55);
    line-height: 1.1;
    padding-top: 0;
    user-select: none;
    cursor: grab;
}

.order-body {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.05rem;
    line-height: 1.25;
}

.order-controls {
    display: inline-flex;
    gap: 0.35rem;
}

.order-move {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 10px;
    border: 1px solid rgba(26, 26, 46, 0.18);
    background: rgba(243, 244, 248, 0.95);
    color: #1a1a2e;
    font-weight: 800;
    cursor: pointer;
}

.order-move:hover {
    border-color: rgba(200, 169, 74, 0.55);
    background: #fff;
}

.order-item--locked .order-handle {
    cursor: default;
    opacity: 0.55;
}

@media (max-width: 520px) {
    .order-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .order-controls {
        grid-column: 1 / -1;
        grid-auto-flow: column;
        justify-content: end;
    }
}


/* Container für die Drop-Zonen */
.drop-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* max. 4 pro Reihe */
    justify-items: center;    /* Zentriert die Drop-Zonen horizontal */
    gap: 20px;                /* Abstand zwischen den Drop-Zonen */
    padding: 20px;
}




/* Einzelne Drop-Zonen */
.drop-zone {
    position: relative;          /* Referenz für absolute Positionierung */
    height: 150px;
    width: 150px;
    border: 2px dashed #aaa;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder {
  visibility: hidden;
  width: 100%; /* oder genaue Breite wie das Item */
  height: 100%; /* Höhe wie das Item */
}
.draggable.dragging { opacity: 0.6; }

.dropped-clone { cursor: pointer; }

.draggable.used { opacity: 0.4; }

@keyframes bounceBack {
  0%   { transform: scale(1) translate(0,0); }
  30%  { transform: scale(1.1) translate(10px, -10px); }
  60%  { transform: scale(0.9) translate(-10px, 10px); }
  100% { transform: scale(1) translate(0,0); }
}

.bounce-back {
  animation: bounceBack 0.6s ease;
}

.drop-zone:empty::after {
    content: "Zielzone";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
    z-index: 0; /* Ganz nach hinten */
}


/* Bilder in der Drop-Zone */
.drop-zone img {
    position: relative;
    z-index: 1;                 /* Bilder liegen über dem Text */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}


.drop-zone:hover {
    border-color: #66aaff;       /* Akzentfarbe beim Hover */
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    transform: translateY(-3px); /* leichte Bewegung nach oben */
}


/* Container für die dragbaren Elemente */
.drag-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* dynamisch max. 4 Spalten */
    justify-items: center;  /* Bilder zentrieren */
    gap: 10px;              /* Abstand zwischen Bildern */
}

/* Einzelne draggables */
.drag-container .draggable {
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: grab;
    user-select: none;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Bilder innerhalb der draggables */
.drag-container .draggable img,
.drop-zone .draggable img {
    width: 200px;      /* feste Breite */
    height: auto;      /* proportional skalieren */
    object-fit: contain;
    display: block;
}

/* Bei Dragging */
.draggable.dragging {
    opacity: 0.5;
}

/* === Mathematik Lern-UI (body.page-mathe-learning auf mathematik.php) === */

body.page-mathe-learning {
    --learning-accent: #2563eb;
    --learning-accent-soft: rgba(37, 99, 235, 0.14);
    --learning-surface: #fafafa;
    --learning-surface-elevated: #ffffff;
    --learning-border: rgba(15, 23, 42, 0.09);
    --learning-text: #1e293b;
    --learning-radius: 14px;
    --learning-radius-sm: 10px;
    --learning-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
    --learning-shadow-hover: 0 16px 48px rgba(15, 23, 42, 0.11);
    --learning-heading-rule: 3px solid rgba(15, 23, 42, 0.16);
    --learning-exercise-shadow:
        0 2px 4px rgba(15, 23, 42, 0.07),
        0 8px 22px rgba(15, 23, 42, 0.1),
        0 14px 36px rgba(15, 23, 42, 0.12);
    --learning-exercises-block-shadow:
        0 4px 8px rgba(15, 23, 42, 0.06),
        0 10px 28px rgba(15, 23, 42, 0.09),
        0 18px 44px rgba(15, 23, 42, 0.1);
    background: linear-gradient(165deg, #ebe6ec 0%, #eae2e2 38%, #e4dfe8 100%);
}

/* Kein heller Rand/Schatten unter dem Banner — sonst Streifen auf dunklem Mathgard-Header (siehe style_brand_mathgard_preview.css). */
body.page-mathe-learning .header {
    border-bottom: none;
    box-shadow: none;
}

body.page-mathe-learning .sidebar a:hover,
body.page-mathe-learning .sidebar a.active {
    color: var(--learning-accent);
}

body.page-mathe-learning .tile-horizontal {
    border-radius: var(--learning-radius);
    box-shadow: var(--learning-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.page-mathe-learning .tile-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: var(--learning-shadow-hover);
}

body.page-mathe-learning .tile-horizontal.active {
    box-shadow: 0 0 28px var(--tile-glow-color, rgba(99, 102, 241, 0.35)),
        var(--learning-shadow-hover);
}

/* 💡 / 🏋️ Zustand (volles Styling optional in style_mathe_cheerful.css) */
body.page-mathe-learning .tile-horizontal .tile-icon.tile-icon--active {
    opacity: 1;
    filter: none;
}

body.page-mathe-learning .tile-horizontal .tile-icon.tile-icon--inactive {
    opacity: 0.5;
    filter: grayscale(0.45);
}

body.page-mathe-learning .input-section {
    background: var(--learning-surface-elevated);
    border: 1px solid var(--learning-border);
    border-radius: var(--learning-radius);
    box-shadow: var(--learning-shadow);
    padding: clamp(1.05rem, 3vw, 1.85rem) clamp(1rem, 4vw, 2.75rem);
}

body.page-mathe-learning .input-section h2 {
    margin: 0 0 1.05rem;
    padding: 0 0 0.55rem 0;
    border-bottom: var(--learning-heading-rule);
    color: #0f172a;
    font-size: clamp(1.2rem, 2.4vw, 1.62rem);
    line-height: 1.28;
    letter-spacing: -0.02em;
}

body.page-mathe-learning .input-section .text-and-image {
    gap: 1.35rem;
}

body.page-mathe-learning .input-section .text-and-image p {
    line-height: 1.72;
    color: var(--learning-text);
    max-width: min(65ch, 100%);
}

body.page-mathe-learning .input-section .text-and-image p b {
    color: #0f172a;
    font-weight: 700;
}

body.page-mathe-learning .input-section .text-and-image img.image-right,
body.page-mathe-learning .input-section .text-and-image img:not(.image-right) {
    border-radius: var(--learning-radius-sm);
    border: 1px solid var(--learning-border);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
}

body.page-mathe-learning .exercises {
    margin-top: 1.35rem;
    padding: 0.85rem 1.1rem 1.35rem;
    background: var(--learning-surface-elevated);
    border: 1px solid var(--learning-border);
    border-radius: var(--learning-radius);
    box-shadow: var(--learning-exercises-block-shadow);
}

body.page-mathe-learning .exercises h2 {
    color: #0f172a;
    padding-bottom: 0.45rem;
    margin-bottom: 0.85rem;
    border-bottom: var(--learning-heading-rule);
}

body.page-mathe-learning .exercise {
    padding: 0.65rem 0.8rem;
    padding-right: 2.75rem;
    border-radius: var(--learning-radius-sm);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--learning-border);
    box-shadow: var(--learning-exercise-shadow);
}

body.page-mathe-learning .exercise.assign-selectable {
    padding-right: 4.5rem;
}

body.page-mathe-learning a:focus-visible,
body.page-mathe-learning button:focus-visible,
body.page-mathe-learning input:focus-visible,
body.page-mathe-learning textarea:focus-visible,
body.page-mathe-learning select:focus-visible {
    outline: 2px solid var(--learning-accent);
    outline-offset: 2px;
}

@media (max-width: 720px) {
    body.page-mathe-learning .input-section .text-and-image {
        flex-direction: column;
    }

    body.page-mathe-learning .input-section .text-and-image img.image-right {
        margin-left: 0;
        max-width: 100%;
    }
}
