ul.hinweise {
        list-style-type: disc;
        list-style-position: outside;
        margin-left: 0;
        padding-left: 1.2em;
}

p {
    margin-top: 6pt;
    margin-bottom: 6pt;
}

ri {
    font-style: italic;
    color: red;
}

r {
    color: red;
}

c {
    color: #4E6B9E;
    font-family: 'Courier New', Courier, monospace;
}
cb {
    color: #4E6B9E;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}
bi {
    color: #4E6B9E;
    font-style: italic;
    font-weight: 600;
}

.aufgaben-sql-abfrage {
    /* min-width: 1200px; */
    max-width: 1600px;
    margin: auto;
}

.aufgaben {
    display: inline-grid;
    width: 50%;
    border-right: #333 solid 1px;
}

.dark-mode .aufgaben {
    border-right: #fff solid 1px;
}

.lesson-completion-mode .lesson-completion-panel {
    border: none;
}

.sql-abfrage {
    position: sticky;
    display: inline-grid;
    width: 49%;
    top: 0;
}

.sql-example-run {
    align-items: center;
    background: #6e6570;
    border: 0;
    border-radius: 0.35em;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.82em;
    gap: 0.4em;
    line-height: 1.4;
    margin: 0.35em 0;
    padding: 0.3em 0.65em;
    text-decoration: none;
}

.sql-example-run:hover,
.sql-example-run:focus-visible {
    background: #817984;
    color: #ffffff;
}

.sql-example-run .fa-play {
    font-size: 0.85em;
}

.solution-run-button {
    background: #6e6570;
    box-shadow: none;
    color: #ffffff;
    display: inline-block;
    height: 2.2em;
    line-height: 2.2em;
    margin-top: 0.75em;
    min-width: 0;
    padding: 0 0.75em;
    width: auto;
}

.solution-run-button:hover {
    background: #817984;
    color: #ffffff;
}

.dark-mode .solution-run-button {
    background: var(--dark-surface-raised);
    box-shadow: inset 0 0 0 1px var(--dark-border);
    color: var(--dark-text);
}

.dark-mode .solution-run-button:hover {
    background: #2d3540;
    color: var(--dark-heading);
}

.solution-run-button .fa-play {
    margin-right: 0.35em;
}

.solution-result:empty {
    display: none;
}

.solution-result {
    box-sizing: border-box;
    contain: inline-size;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.solution-result {
    overflow-x: auto;
}

.solution-result .sql-result-table-wrap {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    width: 100%;
}

.solution-result .sql-result-table {
    max-width: none;
    min-width: 100%;
    width: max-content;
}

.lesson-solution-content {
    background: rgba(255, 255, 255, 0.58);
    border-radius: 0.25em;
    margin-top: 0.5em;
    padding: 0.75em;
}

.dark-mode .lesson-solution-content {
    background: rgba(255, 255, 255, 0.06);
}

.lesson-solution-option + .lesson-solution-option {
    margin-top: 0.75em;
}
bb {
    color: #4E6B9E;
    font-weight: bold;
}
.klammer-liste {
    list-style: none;
    counter-reset: punkt;
  }

  .klammer-liste li {
    counter-increment: punkt;
  }

  .klammer-liste li::before {
    content: counter(punkt) ".) ";
  }


:root {
    --button-font-family: 'Source Sans Pro', sans-serif;
    --button-font-size: 0.82em;
    --button-font-weight: 700;
    --button-letter-spacing: 0;
    --button-text-transform: none;
    --dark-page: #111418;
    --dark-surface: #1b2027;
    --dark-surface-raised: #232a33;
    --dark-border: #37404b;
    --dark-text: #d8dee6;
    --dark-muted: #aeb8c4;
    --dark-heading: #f1f4f8;
    --dark-link: #9fc7ff;
    --dark-code: #a8c9ff;
}

/* Einheitliche Typografie für native Buttons und Links im Button-Stil. */
button,
input[type="submit"],
input[type="reset"],
input[type="button"],
.button,
.sql-example-run {
    font-family: var(--button-font-family);
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    letter-spacing: var(--button-letter-spacing);
    text-transform: var(--button-text-transform);
}

.dark-mode {
    background-color: var(--dark-page);
    color: var(--dark-text);
}

.dark-mode .box,
.box.dark-mode {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
    color: var(--dark-heading);
}

.dark-mode a {
    color: var(--dark-link);
}

.dark-mode p,
.dark-mode li,
.dark-mode label {
    color: var(--dark-text);
}

.dark-mode strong,
.dark-mode b,
.dark-mode .lesson-task-label,
.dark-mode .exercise-task-text {
    color: var(--dark-heading);
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea {
    background: #141920;
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
    color: #8994a1;
}

.dark-mode c,
.dark-mode cb,
.dark-mode bi,
.dark-mode bb {
    color: var(--dark-code);
}

.dark-mode r,
.dark-mode ri {
    color: #ff9a9a;
}

.dark-mode #footer  {
    background-color: var(--dark-surface-raised);
    /* background-image: url("images/bottom-3200dark.svg");*/
}

.dark-mode #header {
    background-color: var(--dark-page);
    background-image: url("images/top-3200dark.svg"), url("images/overlay.png"), linear-gradient(rgba(17, 20, 24, 0.88), rgba(17, 20, 24, 0.88)), url("../../images/header.jpg");
    background-position: bottom center, top left, center center, center center;
    background-repeat: repeat-x, repeat, no-repeat, no-repeat;
    background-size: 3200px 460px, auto, cover, cover;
    color: var(--dark-text);
}

.dark-mode #header:before,
.dark-mode #header:after {
    background: rgba(216, 222, 230, 0.24);
}

.dark-mode #header .logo {
    background: #2d3540;
    color: var(--dark-heading);
}

.dark-mode #header h1,
.dark-mode #header h2,
.dark-mode #header h3,
.dark-mode #header h4,
.dark-mode #header h5,
.dark-mode #header h6 {
    color: var(--dark-heading);
}

.hide {
    display: none;
}

/* Der Platzhalter wird auf einigen Lernseiten per fetch mit der Navigation gefuellt.
   Ohne eigene Box kann die Sticky-Navigation bis zum Ende der Seite haften. */
#nav-placeholder {
	display: contents;
}

body.has-fixed-navigation {
	padding-top: var(--navigation-height, 0px);
}

#navbar{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	background: #3a3a3a;
	overflow: visible;              /* Dropdown darf raus */
	transform: translate3d(0, calc(-1 * var(--navigation-offset, 0px)), 0);
	backface-visibility: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	will-change: transform;
  }

  .dark-mode #navbar {
	background: #20252c;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  }

  #navbar:focus-within {
	--navigation-offset: 0px;
  }

  @media (prefers-reduced-motion: reduce) {
	#navbar {
		transform: translate3d(0, 0, 0);
	}
  }

  /* Nur innen horizontal scrollen */
  .nav-scroll{
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	white-space: nowrap;
	overflow-x: auto;
	overflow-y: visible;            /* wichtig */
  }

  /* Links / Button aussehen */
  #navbar a,
  .nav-link{
	padding: 14px 18px;
	color: white;
	text-decoration: none;
	display: flex;
	align-items: center;
	cursor: pointer;
	background: none;
	border: 0;
	font: inherit;
  }

  .darkmode-toggle {
	align-items: center;
	align-self: stretch;
	background: none;
	border: 0;
	color: white;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font: inherit;
	justify-content: center;
	margin: 0 0.4em 0 auto;
	min-height: 100%;
	padding: 0 1em;
	width: 3.5em;
  }

  .darkmode-toggle i {
	display: block;
	font-size: 1.35em;
	line-height: 1;
  }

  .darkmode-toggle:hover,
  .darkmode-toggle:focus-visible {
	background-color: #ddd;
	color: black;
	outline: none;
  }

  .dark-mode .darkmode-toggle:hover,
  .dark-mode .darkmode-toggle:focus-visible {
	background-color: #3a4450;
	color: var(--dark-heading);
  }

  /* Dropdown-Container */
  .dropdown{
	position: relative;
  }

  .dropdown > .dropbtn::after {
	content: "";
	border-left: 0.28em solid transparent;
	border-right: 0.28em solid transparent;
	border-top: 0.34em solid currentColor;
	margin-left: 0.45em;
  }

  /* Menü */
  .dropdown-menu{
	position: fixed;
	width: max-content;
    white-space: nowrap;
	background: #535353;
	border-radius: 6px;
	overflow: hidden;
	z-index: 999999;
	display: none;
  }

  .dark-mode .dropdown-menu {
	background: #2a313a;
	box-shadow: 0 0.55em 1.4em rgba(0, 0, 0, 0.35);
  }

  .dropdown-menu a{
	display: block;
	padding: 10px 14px;
  }

  .dropdown-menu a:hover{
	background: #6b6b6b;
  }

  .dark-mode .dropdown-menu a:hover {
	background: #3a4450;
	color: var(--dark-heading);
  }

  /* Öffnen per Hover ODER Fokus (wichtig für Button) */
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu,
  .dropdown.is-open .dropdown-menu{
	display: block;
  }

#navbar a:hover {
    background-color: #ddd;
    color: black;
}

.dark-mode #navbar a:hover {
    background-color: #3a4450;
    color: var(--dark-heading);
}

#navbar a.active {
    background-color: #d9d9d9;
    color: black;
}

.dark-mode #navbar a.active {
    background-color: #4a5563;
    color: #f8fafc;
}

/* Aufklappbare Hinweise und Lösungen klar als anklickbare Elemente kennzeichnen. */
details {
    margin: 0.75em 0;
    border: 1px solid #6e6570;
    border-radius: 0.35em;
    background: #f5f4f5;
    overflow: hidden;
}

details img {
    width: 100%;
}

details > summary {
    display: flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.65em 0.85em;
    background: #adabad;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary::before {
    content: "▸";
    display: inline-block;
    font-size: 1.1em;
    transition: transform 0.15s ease;
}

details[open] > summary::before {
    transform: rotate(90deg);
}

details[open] {
    padding: 0 0.85em 0.75em;
}

details[open] > summary {
    margin: 0 -0.85em 0.75em;
}

details > summary:hover {
    background: #817984;
}

details > summary:focus-visible {
    outline: 3px solid #817984;
    outline-offset: -3px;
}

.dark-mode details {
    border-color: var(--dark-border);
    background: var(--dark-surface-raised);
}

.dark-mode details > summary {
    background: #2d3540;
    color: var(--dark-heading);
}

.dark-mode details > summary:hover {
    background: #3a4551;
}

.dark-mode details > summary:focus-visible {
    outline-color: #6f8bb0;
}

.tableshow,
.tableshow2,
.tableshow3,
.tableshow4 {
    border: 1px solid black;
}

.dark-mode .tableshow,
.dark-mode .tableshow2,
.dark-mode .tableshow3,
.dark-mode .tableshow4 {
    border-color: var(--dark-border);
}

.tablehide {
    display: none
}

.tablehide2 {
    opacity: 0.75;
    border: 1px solid rgba(0, 0, 0, 0.4);
}

.dark-mode .tablehide2 {
    border-color: rgba(216, 222, 230, 0.36);
}

.tablehide3 {
    opacity: 0.5;
    border: 1px solid rgba(0, 0, 0, 0.20);
}

.dark-mode .tablehide3 {
    border-color: rgba(216, 222, 230, 0.22);
}

.tablehide4 {
    opacity: 0.25;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .tablehide4 {
    border-color: rgba(216, 222, 230, 0.12);
}

.box.container {
    min-width: 0;
}

.box.container > div {
    min-width: 0;
}

section {
    min-width: 0;
}

.lesson-task-prompt {
    display: block;
    font-weight: 400;
    margin-top: 1.1em;
    border-top: 1px dashed #333;
    padding: 12px 0;
}

.dark-mode .lesson-task-prompt {
    border-top: 1px dashed #fff;
}

.lesson-task-label {
    display: inline-block;
    font-weight: 700;
    margin-right: 0.35em;
}

.lesson-task-body {
    font-weight: 400;
}

section[id^="teilaufgabe"] p:has(.lesson-task-prompt) {
    margin-bottom: 0;
}


table {
    font-size: clamp(12px, 0.75vw, 16px);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.table-scroll table {
    width: max-content;
    min-width: 100%;
}

.sql-result-table-wrap {
    margin-top: 0.75em;
}

/* Gleich breite Lernseiten-Panels mit Außen- und Zwischenabstand. */
#main > .box.container[style*="display: inline-grid"] {
    float: left;
    margin-left: 1em;
    margin-right: 0.75em;
    width: calc( 50% - 1.75em) !important;
}

#main > .box.container[style*="display: inline-grid"]
    + .box.container[style*="display: inline-grid"] {
    margin-left: 0.75em;
    margin-right: 1em;
}

#main::before {
    display: none;
}

/* Responsiver Sicherheitsabstand vor der Footer-Ziergrafik. */
#main {
    padding-bottom: clamp(5em, 7vw, 7em);
}

#footer::before {
    display: none;
}

#footer {
    /* margin-top: -320px;
    padding: calc(460px + 3em) 0 4em;*/
}

#footer .footer-sections {
    display: grid;
    gap: 2.5em;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: center;
}

#footer .copyright {
    text-align: center;
}

@media screen and (max-width: 1280px) {
    #footer {
        /* margin-top: -130px;
        padding: calc(230px + 2em) 0 3em;*/
        width: 100%;
    }
}

@media screen and (max-width: 736px) {
    #footer {
        /* margin-top: -110px;
        padding: calc(184px + 1.5em) 1.25em 2em; */
        width: 100%;
    }

    #footer .footer-sections {
        grid-template-columns: 1fr;
    }
}

#main::after {
    clear: both;
    content: "";
    display: table;
}

.sql-result-table-wrap--scrollable {
    max-height: 31rem;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.sql-result-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: clamp(12px, 0.82vw, 15px);
    line-height: 1.35;
}

.sql-result-table th,
.sql-result-table td {
    border-bottom: 1px solid #d8d8d8;
    border-right: 1px solid #e5e5e5;
    max-width: 20em;
    min-width: 7em;
    overflow-wrap: anywhere;
    padding: 0.55em 0.85em;
    text-align: left;
    vertical-align: top;
    white-space: normal;
}

.sql-result-table th {
    background: #eeeeee;
    border-top: 1px solid #d8d8d8;
    color: #444;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1;
}

.sql-result-table th:first-child,
.sql-result-table td:first-child {
    border-left: 1px solid #d8d8d8;
}

.sql-result-table tbody tr:nth-child(even) td {
    background: #f8f8f8;
}

.dark-mode .sql-result-table th,
.dark-mode .sql-result-table td {
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.dark-mode .sql-result-table th {
    background: #2a323c;
    color: var(--dark-heading);
}

.dark-mode .sql-result-table td {
    background: #171c22;
}

.dark-mode .sql-result-table tbody tr:nth-child(even) td {
    background: #20262e;
}

.table-scroll::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.table-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 6px;
}

.dark-mode .table-scroll::-webkit-scrollbar-thumb {
    background: #56616f;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.dark-mode .table-scroll::-webkit-scrollbar-thumb:hover {
    background: #6a7685;
}

.sql-command-actions {
    display: grid;
    gap: 0.75em;
    grid-template-columns: 1fr;
    margin: 0.75em 0 1.5em;
    min-width: 0;
    width: 100%;
}

/*.sql-command-actions .button {
    display: block;
    justify-self: end;
    margin: 0;
    min-width: 7em;
    max-width: 100%;
    padding: 0 1.15em;
    white-space: nowrap;
    width: auto;
}*/

.sql-command-actions .button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.freestyle-db-select {
    margin: 1em 0 0;
}

.freestyle-db-select label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.35em;
}

.freestyle-db-select select {
    max-width: 100%;
    width: 22em;
}

.freestyle-db-current {
    background: #f7f7f7;
    border: 1px solid #dddddd;
    border-radius: 0.25em;
    color: #555;
    font-size: 0.9em;
    line-height: 1.55;
    margin-top: 0.5em;
    overflow-x: auto;
    padding: 0.8em 1em;
}

.dark-mode .freestyle-db-current,
.dark-mode .lesson-completion,
.dark-mode .exercise-status {
    background: var(--dark-surface-raised);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.relational-schema {
    background: #f5f4f5;
    border: 1px solid #6e6570;
    border-radius: 0.35em;
    color: #6e6570;
    line-height: 1.55;
    margin: 1em 0;
    overflow: hidden;
    padding: 0;
}

.dark-mode .relational-schema {
    background: var(--dark-surface-raised);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.task-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    justify-content: flex-start;
    margin: 0.35em 0 1.25em;
    min-width: 0;
}

/*.task-help-actions .button {
    display: inline-block;
    height: 2.2em;
    line-height: 2.2em;
    margin: 0;
    min-width: 0;
    padding: 0 0.75em;
    white-space: nowrap;
    width: auto;
}*/

/* #loesung-button.button {
    background-color: #F1E8FF;
} */

#loesung-button.button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.sql-alert {
    border: 0.1em solid transparent;
    border-radius: 0.25em;
    margin: 1em 0;
    padding: 1em;
}

.sql-alert > strong {
    display: block;
    margin-bottom: 0.5em;
}

.sql-alert a {
    color: inherit;
    text-decoration: underline;
}

.sql-success-alert {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

.sql-warning-alert {
    background-color: #f2edde;
    border-color: #ebe7cc;
    color: #7d741f;
}

.sql-error-alert {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

.sql-tip-alert {
    background-color: #d9edf7;
    border-color: #bce8f1;
    color: #31708f;
}

.sql-solution-alert {
    background-color: #f1e8ff;
    border-color: #d7c2f2;
    color: #5f3f8c;
}

.sql-syntax-success-alert {
    margin-top: -0.75em;
}

.dark-mode .sql-success-alert,
.dark-mode .sql-syntax-success-alert {
    --alert-accent: #527a62;
    background-color: #1f2924;
}

.dark-mode .sql-warning-alert {
    --alert-accent: #8a7844;
    background-color: #2b2921;
}

.dark-mode .sql-error-alert {
    --alert-accent: #8b555a;
    background-color: #2d2325;
}

.dark-mode .sql-tip-alert {
    --alert-accent: #4f7182;
    background-color: #202a30;
}

.dark-mode .sql-solution-alert {
    --alert-accent: #6c5a86;
    background-color: #282431;
}

.dark-mode .sql-alert {
    border-color: var(--dark-border);
    border-left-color: var(--alert-accent, var(--dark-border));
    border-left-width: 0.3em;
    color: var(--dark-text);
}

.exercise-task-text {
    display: inline-block;
    margin-top: 1.15em;
}

.exercise-task-done::before {
    content: "✓ ";
    color: #3c763d;
    font-weight: bold;
}

.exercise-task-matched {
    color: #3c763d;
}

.exercise-self-check {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.0em;
    margin: 0.15em 0 0.35em;
    border-bottom: 1px dashed #333;
    padding: 12px 0;
}

.dark-mode .exercise-self-check {
    border-bottom: 1px dashed #fff;
}

/*.exercise-self-check .button {
    background: #6e6570;
    box-shadow: none;
    color: #ffffff;
    display: inline-block;
    height: 2.2em;
    line-height: 2.2em;
    margin: 0;
    min-width: 0;
    padding: 0 0.75em;
    width: auto;
}*/

.exercise-self-check .button:hover {
    background: #817984;
    color: #ffffff;
}

.dark-mode .exercise-self-check .button {
    background: var(--dark-surface-raised);
    box-shadow: inset 0 0 0 1px var(--dark-border);
    color: var(--dark-text);
}

.dark-mode .exercise-self-check .button:hover {
    background: #2d3540;
    color: var(--dark-heading);
}

.exercise-self-check .button[aria-pressed="true"],
.exercise-self-check .button[aria-pressed="true"]:disabled {
    background: #4eb980;
    box-shadow: none;
    color: #ffffff;
    opacity: 1;
}

.dark-mode .exercise-self-check .button[aria-pressed="true"],
.dark-mode .exercise-self-check .button[aria-pressed="true"]:disabled {
    background: #3da873;
    box-shadow: none;
    color: #ffffff;
}

.exercise-status {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 0.25em;
    color: #555;
    display: inline-block;
    font-size: 0.72em;
    font-weight: bold;
    line-height: 2.15em;
    padding: 0 0.65em;
}

.exercise-solution {
    box-sizing: border-box;
    flex-basis: 100%;
    max-width: 100%;
    margin: 0.25em 0 0;
    min-width: 0;
    width: 100%;
}

.exercise-solution pre {
    background: rgba(255, 255, 255, 0.58);
    border-radius: 0.25em;
    color: inherit;
    margin: 0.5em 0;
    overflow-x: auto;
    padding: 0.75em;
    white-space: pre-wrap;
}

.dark-mode .exercise-solution pre {
    background: rgba(255, 255, 255, 0.06);
}

#main.exercise-workspace {
    align-items: start;
    display: grid;
    gap: 1.5em;
    grid-template-columns: minmax(0, 1.08fr) minmax(20em, 0.92fr);
    margin-left: auto;
    margin-right: auto;
    max-width: 112em;
    padding-left: 1em;
    padding-right: 1em;
}

#main.exercise-workspace::before {
    display: none;
}

#main.exercise-workspace > .box.container {
    margin-bottom: 0;
    max-width: none;
    min-width: 0;
    width: 100%;
}

#main.exercise-workspace > .box.container.exercise-intro-panel {
    justify-self: center;
    max-width: 51em;
    text-align: left;
    width: min(51em, 100%);
}

#main.exercise-workspace > .box.container.exercise-tasks-panel {
    justify-self: center;
    max-width: 51em;
    text-align: left;
    width: 100%;
}

#main.exercise-workspace .exercise-command-panel {
    align-self: start;
    position: sticky;
    top: 1em;
}

#main.exercise-workspace .exercise-intro-panel {
    grid-column: 1 / -1;
    text-align: left;
}

#main.exercise-workspace .exercise-intro-panel header {
    margin-bottom: 1em;
}

#main.exercise-workspace .exercise-intro-panel p {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left;
}

#main.exercise-workspace .exercise-intro-panel p[style*="background-color"] {
    margin: 1em 0 !important;
}

#main.exercise-workspace .exercise-intro-panel > div[style*="background-color"],
#main.exercise-workspace .exercise-intro-panel > div[style*="background-color"] > div {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

#main.exercise-workspace .exercise-intro-panel > div[style*="background-color"] {
    text-align: left;
}

#main.exercise-workspace .exercise-intro-panel #myBar {
    display: block;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: center;
    transform-origin: left center;
}

#main.exercise-workspace textarea#texteingabe {
    min-height: 8em;
}

.task-navigation {
    align-items: center;
    display: grid;
    gap: 0.75em;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    margin: 0 0 1.5em;
    min-width: 0;
    width: 100%;
}

/* .task-navigation .button {
    align-items: center;
    display: inline-flex;
    font-size: 1.25em;
    height: 2.1rem;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    white-space: nowrap;
    width: 100%;
} */

.task-navigation .button {
    font-size: 1.25em;
    padding: 0.3em;
}

.task-navigation .button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.task-progress-dots {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
    min-width: 0;
    padding: 0 0.35em;
}

.task-progress-dot {
    background: #eeeeee;
    border: 2px solid #b8b8b8;
    border-radius: 999px;
    box-sizing: border-box;
    display: inline-block;
    flex: 0 0 auto;
    height: 0.82em;
    width: 0.82em;
}

.task-progress-dot.is-done {
    background: #9f9f9f;
    border-color: #7f7f7f;
}

.task-progress-dot.is-current {
    background: #ffffff;
    border-color: #555555;
    box-shadow: 0 0 0 0.18em #ffffff, 0 0 0 0.34em #555555;
}

.task-progress-dot.is-current.is-done {
    background: #9f9f9f;
    border-color: #666666;
    box-shadow: 0 0 0 0.18em #ffffff, 0 0 0 0.34em #666666;
}

.dark-mode .task-progress-dot {
    background: #2a323c;
    border-color: #56616f;
}

.dark-mode .task-progress-dot.is-done {
    background: #7d8792;
    border-color: #a0aab5;
}

.dark-mode .task-progress-dot.is-current {
    background: var(--dark-surface);
    border-color: #e5ebf3;
    box-shadow: 0 0 0 0.18em var(--dark-surface), 0 0 0 0.34em #e5ebf3;
}

.dark-mode .task-progress-dot.is-current.is-done {
    background: #7d8792;
    border-color: #d0d6dd;
    box-shadow: 0 0 0 0.18em var(--dark-surface), 0 0 0 0.34em #d0d6dd;
}

.lesson-completion {
    background: #f7f7f7;
    border: 1px solid #dddddd;
    border-radius: 0.25em;
    margin-top: 1.5em;
    padding: 1.25em;
    text-align: center;
}

.lesson-completion p {
    margin-left: auto;
    margin-right: auto;
    max-width: 48em;
}

.lesson-completion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    justify-content: center;
    margin-top: 1em;
}

/*.lesson-completion-actions .button {
    height: 2.6em;
    line-height: 2.6em;
    margin: 0;
    max-width: 100%;
    min-width: 0;
    padding: 0 1.15em;
    width: 13em;
} */

.lesson-completion-links {
    margin-top: 1em;
}

/* .lesson-completion-links .lesson-completion-actions .button {
    width: 8em;
}*/

.lesson-completion-links > strong {
    display: block;
    margin-bottom: 0.65em;
}

.lesson-completion-mode .lesson-completion-panel {
    clear: both;
    display: block !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 50em;
    width: calc(100% - 2em) !important;
}

.lesson-completion-mode .lesson-completion-panel > header {
    display: none;
}

@media screen and (max-width: 980px) {
    #main > .box.container[style*="display: inline-grid"],
    #main > .box.container[style*="display: inline-grid"]
        + .box.container[style*="display: inline-grid"] {
        display: grid !important;
        float: none;
        margin-bottom: 1em;
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 2em) !important;
    }

    #main.exercise-workspace {
        display: block;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    #main.exercise-workspace > .box.container {
        margin-bottom: 1em;
    }

#main.exercise-workspace .exercise-command-panel {
        position: static;
    }

}

@media screen and (max-width: 480px) {
    .sql-command-actions {
        grid-template-columns: 1fr;
    }

    .task-navigation {
        gap: 0.5em;
        grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem;
    }

    .task-progress-dots {
        gap: 0.38em;
        padding: 0;
    }

    .task-progress-dot {
        height: 0.68em;
        width: 0.68em;
    }

    .task-help-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    /*.task-help-actions .button {
        width: 100%;
    }*/
}
