/* AW Academy – Lernbereich. Farben und Schriften wie im Aesthetik-Wunder-Theme (Quicksand / Editor's Note). */
.awa {
  --awa-gold: #d0a769;
  --awa-gold-dark: #b98f50;
  --awa-gold-light: #f5ece0;
  --awa-head: #000;
  --awa-text: #5a5a5a;
  --awa-line: #e2d6c4;
  --awa-ok: #2f7d4f;
  --awa-ok-bg: #edf6f0;
  --awa-err: #b32d2e;
  --awa-err-bg: #fbeeee;
  --awa-serif: "editorsnote", "Cormorant Garamond", Georgia, serif;
  --awa-sans: "quicksand", "Quicksand", Arial, sans-serif;
  --awa-script: "Mr De Haviland", "editorsnote", cursive;
  max-width: 1100px;
  margin: 24px auto 56px;
  padding: 0 16px;
  font-family: var(--awa-sans);
  color: var(--awa-text);
  line-height: 1.6;
  font-size: 16px;
}
.awa *, .awa *::before, .awa *::after { box-sizing: border-box; }
.awa a { color: var(--awa-gold-dark); }
.awa p { margin: 0 0 16px; }

/* Typo */
.awa-script { font-family: var(--awa-script); color: var(--awa-gold); font-size: 38px; line-height: 1; margin: 0 0 4px !important; }
.awa-title { font-family: var(--awa-serif); font-weight: 400; color: var(--awa-head); font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
.awa-small { font-size: 14px; }
.awa-center { text-align: center; }
.awa-right { text-align: right; }

/* Bausteine */
.awa-card { background: #fff; border: 1px solid var(--awa-line); border-radius: 14px; padding: 28px 26px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.awa-narrow { max-width: 460px; margin: 0 auto; }
.awa-btn {
  display: inline-block; padding: 12px 22px; border: 1px solid var(--awa-gold); border-radius: 999px;
  background: var(--awa-gold); color: #fff !important; font: 600 15px/1.2 var(--awa-sans); letter-spacing: .3px;
  text-decoration: none !important; cursor: pointer; transition: background .15s, border-color .15s;
}
.awa-btn:hover, .awa-btn:focus-visible { background: var(--awa-gold-dark); border-color: var(--awa-gold-dark); }
.awa-btn-ghost { background: #fff; color: var(--awa-gold-dark) !important; }
.awa-btn-ghost:hover, .awa-btn-ghost:focus-visible { background: var(--awa-gold-light); }
.awa-btn-block { display: block; width: 100%; }
.awa-notice { padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; font-size: 15px; }
.awa-notice.is-ok { background: var(--awa-ok-bg); color: var(--awa-ok); }
.awa-notice.is-error { background: var(--awa-err-bg); color: var(--awa-err); }
.awa-notice.is-info { background: var(--awa-gold-light); color: var(--awa-head); font-size: 14px; }
.awa-badge { display: inline-block; vertical-align: middle; font: 600 11px/1 var(--awa-sans); padding: 5px 8px; border-radius: 6px; background: #fff3cd; color: #7a5b00; letter-spacing: 0; }

/* Formulare */
.awa-form label { display: block; font-weight: 600; color: var(--awa-head); font-size: 14px; margin-bottom: 14px; }
.awa-form input[type="text"], .awa-form input[type="email"], .awa-form input[type="password"] {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: 16px var(--awa-sans);
  border: 1px solid var(--awa-line); border-radius: 10px; background: #fff; color: var(--awa-head);
}
.awa-form input:focus { outline: 2px solid var(--awa-gold); outline-offset: 1px; border-color: var(--awa-gold); }
.awa-form .awa-check { display: flex; gap: 8px; align-items: center; font-weight: 400; }

/* Fortschritt */
.awa-progress { display: flex; align-items: center; gap: 12px; font-size: 13px; margin: 12px 0 16px; }
.awa-bar { flex: 1; height: 6px; background: var(--awa-gold-light); border-radius: 6px; overflow: hidden; }
.awa-bar i { display: block; height: 100%; background: var(--awa-gold); border-radius: 6px; }

/* Dashboard */
.awa-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.awa-logout { font-size: 14px; white-space: nowrap; }
.awa-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.awa-course { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--awa-line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.awa-course-img img { display: block; width: 100%; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; }
.awa-course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.awa-course-body h3 { font-family: var(--awa-serif); font-weight: 400; font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.awa-course-body h3 a { color: var(--awa-head); text-decoration: none; }
.awa-course-body p { font-size: 15px; }
.awa-course-body .awa-progress { margin-top: auto; }
.awa-done-label { color: var(--awa-ok); font-weight: 600; font-size: 14px; margin-top: 8px; }

/* Kursübersicht */
.awa-crumbs { font-size: 13px; margin-bottom: 16px; }
.awa-crumbs a { text-decoration: none; }
.awa-course-head { max-width: 760px; margin-bottom: 28px; }
.awa-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.awa-lesson { background: #fff; border: 1px solid var(--awa-line); border-radius: 14px; padding: 18px 20px; }
.awa-lesson-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.awa-lesson-head h3 { flex: 1; margin: 0; font: 600 17px/1.3 var(--awa-sans); color: var(--awa-head); }
.awa-lesson-no { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--awa-gold-light); color: var(--awa-gold-dark); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.awa-lesson-count { font-size: 13px; }

/* Step-Liste (Übersicht + Seitenleiste) */
.awa-steps { list-style: none; margin: 0; padding: 0; }
.awa-steps li { margin: 0; }
.awa-steps a { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; color: var(--awa-text); text-decoration: none; font-size: 15px; line-height: 1.4; }
.awa-steps a:hover { background: var(--awa-gold-light); }
.awa-steps .is-current a { background: var(--awa-gold-light); color: var(--awa-head); font-weight: 600; }
.awa-dot { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--awa-line); background: #fff; position: relative; }
.awa-steps .is-seen .awa-dot { border-color: var(--awa-gold); }
.awa-steps .is-done .awa-dot { border-color: var(--awa-ok); background: var(--awa-ok); }
.awa-steps .is-done .awa-dot::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Step-Ansicht */
.awa-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.awa-side { min-width: 0; }
.awa-toc { background: #fff; border: 1px solid var(--awa-line); border-radius: 14px; padding: 6px 14px; }
.awa-toc > summary { display: flex; justify-content: space-between; padding: 10px 0; cursor: pointer; font-weight: 700; color: var(--awa-head); list-style: none; }
.awa-toc > summary::-webkit-details-marker { display: none; }
.awa-toc > summary::after { content: "▾"; margin-left: 8px; color: var(--awa-gold); }
.awa-toc[open] > summary::after { content: "▴"; }
.awa-toc > summary span { margin-left: auto; font-weight: 400; font-size: 13px; }
.awa-toc .awa-progress { margin: 0 0 8px; }
.awa-toc-lesson { border-top: 1px solid var(--awa-line); }
.awa-toc-lesson > summary { padding: 10px 0; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--awa-head); }
.awa-toc-lesson .awa-steps { padding-bottom: 8px; }
.awa-toc-lesson .awa-steps a { font-size: 14px; }
.awa-main { min-width: 0; max-width: 760px; }
.awa-kicker { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--awa-gold-dark); margin-bottom: 6px !important; }
.awa-step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--awa-line); }
.awa-step-nav form { margin: 0; margin-left: auto; }

@media (min-width: 900px) {
  .awa-layout { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .awa-side { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
}

/* Inhalte der Steps (Block-Editor) */
.awa-content { color: var(--awa-text); }
.awa-content strong, .awa-content b, .awa-content th { font-weight: 700; color: var(--awa-head); }
.awa-content h2, .awa-content h3, .awa-content h4 { color: var(--awa-head); font-family: var(--awa-sans); font-weight: 700; line-height: 1.3; margin: 28px 0 10px; }
.awa-content h2 { font-size: 22px; }
.awa-content h3 { font-size: 19px; }
.awa-content h4 { font-size: 17px; }
.awa-content ul, .awa-content ol { margin: 0 0 18px; padding-left: 22px; }
.awa-content li { margin-bottom: 6px; }
.awa-content img { max-width: 100%; height: auto; border-radius: 10px; }
.awa-content figure { margin: 0 0 20px; }
.awa-content figcaption { font-size: 13px; text-align: center; margin-top: 6px; }
.awa-content blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--awa-gold); font-style: italic; color: var(--awa-head); }
.awa-content .wp-block-table { overflow-x: auto; margin: 0 0 22px; }
.awa-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.awa-content th, .awa-content td { border: 1px solid var(--awa-line); padding: 9px 11px; text-align: left; vertical-align: top; }
.awa-content thead th, .awa-content tr:first-child th { background: var(--awa-gold-light); color: var(--awa-head); }
/* Checkliste: Liste mit der CSS-Klasse „awa-check-list“ */
.awa-content ul.awa-check-list { list-style: none; padding-left: 0; }
.awa-content ul.awa-check-list li { position: relative; padding-left: 28px; }
.awa-content ul.awa-check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--awa-gold-dark); font-weight: 700; }
/* Hinweisboxen: Gruppe mit Klasse „awa-tip“ (Tipp) bzw. „awa-warn“ (Achtung) */
.awa-content .awa-tip, .awa-content .awa-warn { border-radius: 12px; padding: 16px 18px; margin: 0 0 20px; }
.awa-content .awa-tip { background: var(--awa-gold-light); }
.awa-content .awa-warn { background: var(--awa-err-bg); }
.awa-content .awa-tip > :last-child, .awa-content .awa-warn > :last-child { margin-bottom: 0; }
.awa-content .awa-tip strong:first-child, .awa-content .awa-warn strong:first-child { color: var(--awa-head); }

@media (max-width: 600px) {
  .awa-title { font-size: 26px; }
  .awa-card { padding: 22px 18px; }
  .awa-step-nav .awa-btn { padding: 12px 16px; }
}

/* Download-Links (Formulare) */
.awa-content .awa-download { margin: 0 0 10px; }
.awa-content .awa-download a { display: inline-block; padding: 10px 14px; border: 1px solid var(--awa-line); border-radius: 10px; background: #fff; color: var(--awa-head); font-weight: 600; text-decoration: none; }
.awa-content .awa-download a:hover, .awa-content .awa-download a:focus-visible { border-color: var(--awa-gold); background: var(--awa-gold-light); }
