/*
Theme Name: FDDL AWL Vorlage
Theme URI: https://www.fddl.2ix.at/
Author: ChatGPT
Description: Leeres klassisches WordPress-Theme als Einseiten-Vorlage mit integriertem Fit-durch-AWL-Logo und leeren Lernbereichen.
Version: 4.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fddl-leere-vorlage
Tags: education, one-column, custom-logo, custom-menu
*/

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #182333;
  --muted: #607086;
  --line: #dce4ee;
  --brand: #2457a6;
  --brand-dark: #163a74;
  --accent: #f2b84b;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(18, 35, 62, 0.10);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(36, 87, 166, 0.14), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, #ffffff 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 228, 238, 0.8);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}


.brand-with-logo {
  max-width: min(460px, 58vw);
}

.brand-logo,
.custom-logo {
  display: block;
  width: min(460px, 58vw);
  height: auto;
  max-height: 118px;
  object-fit: contain;
}

.brand-with-logo .custom-logo-link {
  display: inline-flex;
}

@media (max-width: 900px) {
  .brand-with-logo,
  .brand-logo,
  .custom-logo {
    width: min(420px, 90vw);
    max-width: 100%;
  }
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 24px rgba(36, 87, 166, 0.24);
  font-weight: 900;
}

.nav,
.nav ul,
.menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.nav li,
.menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a,
.menu a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav a:hover,
.nav a:focus-visible,
.menu a:hover,
.menu a:focus-visible {
  background: var(--surface-soft);
  color: var(--brand-dark);
  outline: none;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 22px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 34px;
  align-items: stretch;
}

.hero-copy {
  padding: 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 243, 248, 0.94));
  border: 1px solid rgba(220, 228, 238, 0.9);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.lead {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}


.hero-title {
  max-width: 14ch;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy .lead {
  max-width: 66ch;
}

.hero-panel {
  min-height: 100%;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--text);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(242, 184, 75, 0.22);
}

.panel-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.placeholder-line {
  display: block;
  height: 14px;
  margin: 18px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.placeholder-line.short {
  width: 52%;
}

.placeholder-line.medium {
  width: 76%;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-note {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--muted);
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metric,
.learning-card,
.wp-content-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 40px rgba(18, 35, 62, 0.07);
}

.metric {
  padding: 24px;
  min-height: 150px;
}

.metric-title {
  display: block;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.empty-block {
  display: block;
  height: 13px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.empty-block.wide {
  width: 88%;
}

.empty-block.mid {
  width: 64%;
}

.empty-block.small {
  width: 42%;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.learning-card {
  min-height: 310px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.learning-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 87, 166, 0.32);
  box-shadow: 0 22px 54px rgba(18, 35, 62, 0.12);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(36, 87, 166, 0.10);
  color: var(--brand-dark);
  font-weight: 900;
}

.learning-card h3 {
  margin-bottom: 16px;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.card-placeholder {
  margin-top: 16px;
}

.empty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px dashed rgba(36, 87, 166, 0.34);
  color: var(--brand);
  font-weight: 800;
  cursor: default;
}

.cta-band {
  max-width: var(--max);
  margin: 34px auto 0;
  padding: 0 22px 72px;
}

.cta-inner {
  padding: 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.cta-inner::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -50px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.cta-inner p {
  max-width: 58ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.cta-placeholder {
  min-height: 120px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.wp-content-card {
  max-width: var(--max);
  margin: 36px auto 72px;
  padding: 34px;
}

.wp-content-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .header-inner,
  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .dashboard,
  .learning-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .cta-inner {
    padding: 28px;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}


.learning-card-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.learning-card-active {
  border-color: rgba(255, 122, 0, 0.38);
}

.learning-link {
  cursor: pointer;
  border-style: solid;
  border-color: rgba(255, 122, 0, 0.45);
  background: rgba(255, 122, 0, 0.08);
  color: #d86400;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.learning-link:hover,
.learning-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 122, 0, 0.14);
  border-color: rgba(255, 122, 0, 0.7);
  outline: none;
}

.learning-overview-hero {
  padding-top: 72px;
}

.overview-title {
  max-width: 14ch;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.exercise-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.exercise-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(18, 35, 62, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.exercise-card h2 {
  margin-bottom: 14px;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.exercise-card p {
  color: var(--muted);
}

.exercise-link-list {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.exercise-link-list li {
  list-style: none;
}

.exercise-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.exercise-link-list a::after {
  content: "→";
  color: #d86400;
}

.exercise-link-list a:hover,
.exercise-link-list a:focus-visible {
  background: rgba(255, 122, 0, 0.12);
  outline: none;
}

@media (max-width: 900px) {
  .exercise-overview-grid {
    grid-template-columns: 1fr;
  }
}


.overview-intro-wide {
  width: 100%;
  margin-bottom: 34px;
}

.overview-title-wide {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.exercise-hub,
.embedded-exercise {
  margin-top: 28px;
  padding: 32px;
  border: 1px solid rgba(220, 228, 238, 0.95);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,253,0.94)),
    radial-gradient(circle at top right, rgba(255,122,0,0.14), transparent 24rem);
  box-shadow: 0 22px 70px rgba(18, 35, 62, 0.10);
}

.exercise-hub-header,
.embedded-exercise-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 26px;
}

.exercise-hub-header h2,
.embedded-exercise-header h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.exercise-hub-header p,
.embedded-exercise-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.exercise-launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.exercise-launch-card {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 32px rgba(18, 35, 62, 0.07);
}

.exercise-launch-card span {
  color: #d86400;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.exercise-launch-card strong {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(0.78rem, 1.15vw, 0.98rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exercise-launch-card small {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
}

.exercise-launch-card.is-active {
  border-color: rgba(255, 122, 0, 0.45);
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,244,232,0.92));
}

.exercise-launch-card.is-placeholder {
  opacity: 0.68;
}

.exercise-status-panel {
  padding: 22px;
  border-radius: 22px;
  background: var(--text);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(18, 35, 62, 0.16);
}

.exercise-status-panel span,
.exercise-status-panel small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.exercise-status-panel strong {
  display: block;
  margin: 6px 0;
  font-size: 2.2rem;
  line-height: 1;
}

.rounding-rule-box {
  margin-bottom: 24px;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(36, 87, 166, 0.08);
  border: 1px solid rgba(36, 87, 166, 0.14);
}

.rounding-rule-box strong {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.rounding-rule-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.rounding-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rounding-question-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 35, 62, 0.06);
}

.rounding-question-card.is-correct {
  border-color: rgba(36, 166, 86, 0.45);
  background: rgba(236, 252, 241, 0.72);
}

.rounding-question-card.is-wrong {
  border-color: rgba(216, 100, 0, 0.42);
  background: rgba(255, 248, 240, 0.85);
}

.rounding-question-card.is-solved {
  border-color: rgba(36, 87, 166, 0.32);
  background: rgba(238, 243, 248, 0.82);
}

.rounding-task span {
  display: block;
  margin-bottom: 8px;
  color: #d86400;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rounding-task strong {
  display: block;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.05rem;
}

.rounding-question-card input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font: inherit;
  background: #ffffff;
}

.rounding-question-card input:focus {
  border-color: rgba(36, 87, 166, 0.7);
  outline: 3px solid rgba(36, 87, 166, 0.12);
}

.rounding-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.rounding-card-actions button,
.exercise-reset-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.rounding-check-button {
  background: var(--brand);
  color: #ffffff;
}

.rounding-solution-button {
  background: rgba(255, 122, 0, 0.12);
  color: #d86400;
}

.rounding-card-actions button:disabled {
  opacity: 0.55;
  cursor: default;
}

.rounding-feedback {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.exercise-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.exercise-reset-button {
  background: var(--text);
  color: #ffffff;
}

@media (max-width: 900px) {
  .exercise-hub,
  .embedded-exercise {
    padding: 24px;
  }

  .exercise-hub-header,
  .embedded-exercise-header,
  .exercise-launch-grid,
  .rounding-question-grid {
    grid-template-columns: 1fr;
  }
}


.learning-fullwidth-page {
  width: min(100% - 44px, var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

.learning-page-titlebar {
  width: 100%;
  margin: 0 0 34px;
}

.learning-page-titlebar h1 {
  max-width: none;
  width: 100%;
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.learning-fullwidth-page .exercise-hub,
.learning-fullwidth-page .embedded-exercise {
  width: 100%;
}

@media (max-width: 900px) {
  .learning-fullwidth-page {
    width: min(100% - 32px, var(--max));
    padding: 48px 0;
  }
}


.exercise-empty-state {
  margin-top: 28px;
  padding: 28px;
  border: 1px dashed rgba(36, 87, 166, 0.26);
  border-radius: var(--radius-lg);
  background: rgba(238, 243, 248, 0.72);
  color: var(--muted);
  text-align: center;
  font-weight: 750;
}

.exercise-empty-state p {
  margin: 0;
}

.exercise-backline {
  margin-bottom: 22px;
}

.exercise-backline a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(36, 87, 166, 0.08);
  color: var(--brand-dark);
  font-weight: 850;
}

.exercise-backline a:hover,
.exercise-backline a:focus-visible {
  background: rgba(255, 122, 0, 0.12);
  color: #d86400;
  outline: none;
}


.exercise-empty-state-in-grid {
  grid-column: 1 / -1;
  margin-top: 0;
}


.hero-dashboard-panel {
  background:
    radial-gradient(circle at 92% 105%, rgba(255, 255, 255, 0.22), transparent 13rem),
    linear-gradient(135deg, #ff8a00 0%, #f06f00 48%, #d85f00 100%);
  color: #ffffff;
  max-height: 100%;
}

.hero-dashboard-panel::after {
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-news {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-news-head {
  flex: 0 0 auto;
}

.dashboard-news-head .panel-label {
  color: rgba(255, 255, 255, 0.92);
}

.dashboard-news-head p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.dashboard-news-scroll {
  flex: 1 1 auto;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.72) rgba(255, 255, 255, 0.18);
}

.dashboard-news-scroll::-webkit-scrollbar {
  width: 8px;
}

.dashboard-news-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.dashboard-news-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-news-item {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.dashboard-news-item + .dashboard-news-item {
  margin-top: 12px;
}

.dashboard-news-item time {
  display: inline-flex;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-news-item h3 {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.dashboard-news-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .hero-dashboard-panel {
    max-height: none;
  }

  .dashboard-news-scroll {
    max-height: 340px;
  }
}


.hero-dashboard-panel {
  background:
    radial-gradient(circle at 92% 105%, rgba(255, 235, 210, 0.22), transparent 13rem),
    linear-gradient(135deg, #f28a18 0%, #c96f22 38%, #8a542d 72%, #5b351f 100%);
}

.dashboard-news-item {
  background: rgba(92, 52, 26, 0.22);
  border-color: rgba(255, 229, 199, 0.26);
}

.dashboard-news-item:hover {
  background: rgba(92, 52, 26, 0.30);
}

#lernbereiche.section {
  padding-top: 34px;
}

#lernbereiche .learning-grid {
  margin-top: 0;
}


.learning-elements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.learning-element {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 122, 0, 0.18);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,246,236,0.9));
  box-shadow: 0 10px 28px rgba(18, 35, 62, 0.06);
}

.learning-element span {
  display: block;
  margin-bottom: 9px;
  color: #d86400;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.learning-element h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.learning-element p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.percent-exercise-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 22px;
}

.percent-filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(36, 87, 166, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.percent-filter-button.is-active,
.percent-filter-button:hover,
.percent-filter-button:focus-visible {
  border-color: rgba(255, 122, 0, 0.42);
  background: rgba(255, 122, 0, 0.12);
  color: #d86400;
  outline: none;
}

.percent-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.percent-question-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 35, 62, 0.06);
}

.percent-question-card.is-correct {
  border-color: rgba(36, 166, 86, 0.45);
  background: rgba(236, 252, 241, 0.72);
}

.percent-question-card.is-wrong {
  border-color: rgba(216, 100, 0, 0.42);
  background: rgba(255, 248, 240, 0.85);
}

.percent-question-card.is-solved {
  border-color: rgba(36, 87, 166, 0.32);
  background: rgba(238, 243, 248, 0.82);
}

.percent-task span {
  display: block;
  margin-bottom: 8px;
  color: #d86400;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.percent-task strong {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.03rem;
}

.percent-hint {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(36, 87, 166, 0.06);
  color: var(--muted);
}

.percent-hint summary {
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 850;
}

.percent-hint p {
  margin: 8px 0 0;
}

.percent-question-card input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font: inherit;
  background: #ffffff;
}

.percent-question-card input:focus {
  border-color: rgba(36, 87, 166, 0.7);
  outline: 3px solid rgba(36, 87, 166, 0.12);
}

.percent-feedback {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 900px) {
  .learning-elements-grid,
  .percent-question-grid {
    grid-template-columns: 1fr;
  }
}


.income-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 22px;
}

.income-tab-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(36, 87, 166, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.income-tab-button.is-active,
.income-tab-button:hover,
.income-tab-button:focus-visible {
  border-color: rgba(255, 122, 0, 0.42);
  background: rgba(255, 122, 0, 0.12);
  color: #d86400;
  outline: none;
}

.income-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.income-question-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 35, 62, 0.06);
}

.income-question-card.is-correct {
  border-color: rgba(36, 166, 86, 0.45);
  background: rgba(236, 252, 241, 0.72);
}

.income-question-card.is-wrong {
  border-color: rgba(216, 100, 0, 0.42);
  background: rgba(255, 248, 240, 0.85);
}

.income-question-card.is-solved {
  border-color: rgba(36, 87, 166, 0.32);
  background: rgba(238, 243, 248, 0.82);
}

.income-task span {
  display: block;
  margin-bottom: 8px;
  color: #d86400;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.income-task strong {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 122, 0, 0.32);
  border-radius: 16px;
  background: rgba(255, 247, 237, 0.92);
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.income-options {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.income-option-button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.income-option-button:hover,
.income-option-button:focus-visible {
  border-color: rgba(36, 87, 166, 0.45);
  background: rgba(36, 87, 166, 0.06);
  outline: none;
}

.income-option-button.is-wrong-choice {
  border-color: rgba(216, 100, 0, 0.42);
  background: rgba(255, 122, 0, 0.08);
}

.income-question-card input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font: inherit;
  background: #ffffff;
}

.income-question-card input:focus {
  border-color: rgba(36, 87, 166, 0.7);
  outline: 3px solid rgba(36, 87, 166, 0.12);
}

.income-solution-button {
  min-height: 40px;
  margin-top: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #d86400;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.income-solution-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.income-feedback {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 900px) {
  .income-question-grid {
    grid-template-columns: 1fr;
  }
}


.learning-card-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.learning-card-actions .empty-button {
  margin-top: 0;
}

.learning-video-link {
  border-color: rgba(36, 87, 166, 0.38);
  background: rgba(36, 87, 166, 0.06);
  color: var(--brand);
}

.learning-video-link:hover,
.learning-video-link:focus-visible {
  background: rgba(36, 87, 166, 0.11);
  border-color: rgba(36, 87, 166, 0.62);
  color: var(--brand-dark);
  outline: none;
}


.front-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 20px;
  padding: 0 18px;
  border: 1px solid rgba(245, 130, 32, 0.42);
  border-radius: 999px;
  background: rgba(245, 130, 32, 0.10);
  color: #c8661d;
  font-weight: 900;
}

.front-admin-link:hover,
.front-admin-link:focus-visible {
  background: rgba(245, 130, 32, 0.18);
  color: #8a542d;
  outline: none;
}


.front-admin-link-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-top: 20px;
}

.front-admin-link-wrap .front-admin-link {
  margin-top: 0;
}

.front-admin-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}


.awl-exercise-standalone-page {
  padding-top: 38px;
}

.awl-exercise-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.awl-exercise-page-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(245, 130, 32, 0.38);
  border-radius: 999px;
  background: rgba(245, 130, 32, 0.10);
  color: #c8661d;
  font-weight: 900;
}

.awl-exercise-page-nav a:hover,
.awl-exercise-page-nav a:focus-visible {
  background: rgba(245, 130, 32, 0.18);
  color: #8a542d;
  outline: none;
}

/* QR-Codes für Übungskarten */
.learning-card.has-awl-qr {
  position: relative;
  padding-right: 142px;
}

.awl-qr-learning-button,
.awl-qr-inline-trigger {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: center;
  cursor: zoom-in;
}

.awl-qr-learning-button {
  position: absolute;
  top: 76px;
  right: 24px;
  width: 96px;
}

.awl-qr-learning-button:hover,
.awl-qr-learning-button:focus-visible,
.awl-qr-inline-trigger:hover,
.awl-qr-inline-trigger:focus-visible {
  color: var(--brand-dark);
  outline: none;
}

.awl-qr-learning-button:hover .awl-qr-thumb,
.awl-qr-learning-button:focus-visible .awl-qr-thumb,
.awl-qr-inline-trigger:hover .awl-qr-thumb,
.awl-qr-inline-trigger:focus-visible .awl-qr-thumb {
  transform: scale(1.06);
  border-color: rgba(36, 87, 166, 0.32);
  box-shadow: 0 10px 24px rgba(18, 35, 62, 0.16);
}

.awl-qr-thumb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid rgba(220, 228, 238, 0.96);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(18, 35, 62, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.awl-qr-thumb img,
.awl-qr-modal-code img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.awl-qr-caption {
  color: inherit;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}

.exercise-launch-card.has-awl-qr {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 86px;
}

.exercise-launch-card.has-awl-qr .awl-qr-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: space-between;
}

.exercise-launch-card.has-awl-qr .awl-qr-inline-trigger {
  position: absolute;
  top: 48px;
  right: 22px;
  z-index: 2;
}

.awl-qr-modal[hidden] {
  display: none;
}

.awl-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.awl-qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 35, 51, 0.42);
  backdrop-filter: blur(2px);
}

.awl-qr-modal-box {
  position: relative;
  width: min(94vw, 620px);
  padding: 42px;
  border: 1px solid rgba(220, 228, 238, 0.95);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 26px 80px rgba(18, 35, 62, 0.24);
}

.awl-qr-modal-box h2 {
  margin: 0 42px 12px 0;
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.awl-qr-modal-box p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.awl-qr-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.awl-qr-modal-close:hover,
.awl-qr-modal-close:focus-visible {
  background: var(--surface-soft);
  color: var(--brand-dark);
  outline: none;
}

.awl-qr-modal-link {
  display: block;
  width: min(100%, 460px);
  margin: 0 auto;
  border-radius: 18px;
}

.awl-qr-modal-link:focus-visible {
  outline: 3px solid rgba(36, 87, 166, 0.35);
  outline-offset: 4px;
}

.awl-qr-modal-code {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 14px;
  border: 1px solid rgba(220, 228, 238, 0.96);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 35, 62, 0.08);
}

body.awl-qr-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .learning-card.has-awl-qr {
    padding-right: 26px;
  }

  .awl-qr-learning-button {
    position: static;
    width: 96px;
    margin-top: 22px;
    align-self: flex-start;
  }

  .exercise-launch-card.has-awl-qr {
    padding-right: 82px;
  }

  .exercise-launch-card.has-awl-qr .awl-qr-inline-trigger {
    top: 46px;
    right: 20px;
  }
}

@media (max-width: 520px) {
  .awl-qr-modal-box {
    padding: 30px 24px;
  }

  .awl-qr-modal-link {
    width: min(100%, 360px);
  }
}

