/*
 Theme Name:   Eduma Child
 Theme URI:    http://educationwp.thimpress.com/
 Description:  Eduma Child Theme
 Author:       ThimPress
 Author URI:   http://thimpress.com
 Template:     eduma
 Version:      1.0.1
 Text Domain:  eduma-child
*/

/* 1. Typografie */
:root {
  --thim-font-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --thim-font-title-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --latcl-primary: #f54242;
  --latcl-secondary: #cc3333;
  --latcl-hover: #aa0000;
  --latcl-white: #fff;
  --latcl-light: #eee;
  --latcl-muted: #666;
  --latcl-text-strong: #000;
  --latcl-success: #16a34a;
  --latcl-shadow-strong: rgba(0, 0, 0, 0.8);
  --latcl-transparent: transparent;
  --latcl-table-image-border: #cbb;
  --latcl-table-head-1: hsl(5, 75%, 40%);
  --latcl-table-head-2: hsl(363, 72%, 45%);
  --latcl-table-head-3: hsl(360, 70%, 50%);
  --latcl-table-head-4: hsl(358, 70%, 60%);
  --latcl-table-head-5: hsl(355, 70%, 70%);
  --latcl-table-head-6: hsl(355, 70%, 75%);
  --latcl-table-head-7: hsl(355, 70%, 80%);
  --latcl-table-head-8: hsl(355, 70%, 85%);
  --latcl-table-head-9: hsl(355, 70%, 90%);
  --latcl-table-head-10: hsl(355, 70%, 95%);
  --latcl-table-row-odd: hsl(0, 0%, 87%);
  --latcl-table-row-even: hsl(0, 0%, 90%);
  --latcl-notice-border: #d6a100;
  --latcl-notice-bg: #fff8df;
  --latcl-notice-text: #5c4500;

  /* LearnPress-Farblogik an LATCL angleichen */
  --lp-primary-color: var(--latcl-primary);
  --lp-green: var(--latcl-success);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600 !important;
  margin-top: 40px !important;
  margin-bottom: 20px !important;
}

/* 2. LP-Kurs-Header */
body.course-item-popup #popup-header .course-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}
body.course-item-popup #popup-header {
    background: var(--latcl-light) !important;
}
body.course-item-popup #popup-header .course-title a:hover,
body.course-item-popup #popup-header .course-title a:focus {
    color: var(--latcl-text-strong) !important;
}
body.course-item-popup #sidebar-toggle:checked::before {
  color: var(--latcl-primary);
border-left: 2px solid var(--latcl-light) !important;

}

/* 3. Inhalt */
blockquote,
.learn-press-content blockquote,
.learn-press-content blockquote p,
.learn-press-content blockquote em {
  font-size: 16px !important;
  line-height: 1.8;
}
.large-img {
  display: block !important;
  margin-top: 60px !important;
  margin-bottom: 60px !important;
}

/* 4. LearnPress-Kommentare */
.learn-press-comments,
#learn-press-course-comments,
#comments {
  display: none !important;
}

/* 5. Kurs-KI */
.ki-uebung-box {
  background: var(--latcl-light);
  padding: 32px;
  border-radius: 16px;
  margin: 32px 0;
}
.prompt-box {
  background: var(--latcl-white);
  border: 1px solid var(--latcl-light);
  border-radius: 10px;
  padding: 18px;
  margin: 20px 0 24px;
}
.prompt-box pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
}
.ki-btn-group button {
  padding: 20px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  line-height: 0;
  min-width: 180px;
}

/* 6. Buttons */
.elementor-button,
.elementor-button-link,
.elementor-size-sm {
  width: 50% !important;
}
.elementor-button:hover,
.elementor-button-link:hover,
.elementor-size-sm:hover {
  transform: translateY(0);
  box-shadow: 0 2px 3px var(--latcl-shadow-strong);
}
button[type="submit"],
input[type="submit"] {
  border-radius: 999px !important;
}

/* 7. H5P-Wrapper */
.h5p-iframe-wrapper {
  border: 1px solid var(--latcl-light) !important;
  border-radius: 5px !important;
  padding: 10px !important;
  text-align: center;
  vertical-align: middle;
}

/* LATCL – kompakte Drag-and-Drop-Darstellung
   innerhalb von H5P Column/Page */

html.h5p-iframe
.h5p-column-content
.h5p-dragquestion:not(.h5p-fullscreen):not(.h5p-semi-fullscreen) {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 8. LearnPress-Lektionslayout */
.single-lp_lesson #main-content .content-area.col-sm-9 {
  width: 100%;
}
.single-lp_lesson #sidebar.widget-area {
  display: none;
}

/* 9. Frage-H5 */
body h5 {
  position: relative !important;
  color: var(--latcl-hover) !important;
  font-weight: bold !important;
}
body h5::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  margin-bottom: 0;
  padding: 0;
  vertical-align: baseline;
  background-color: var(--latcl-white);
  background-image: url("https://latcl.at/wp-content/uploads/frage-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* 10. Tabellen */
table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 90%;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
}
table th,
table td {
  border: 1px solid var(--latcl-white) !important;
  border-radius: 0 !important;
  color: var(--latcl-text-strong);
  padding: 8px;
  text-align: center;
  vertical-align: top;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word !important;
  word-break: break-word;
  hyphens: auto !important;
}
table img {
  max-width: 100%;
  height: auto;
  display: block;
  background: var(--latcl-transparent) !important;
}
table td img {
  border: 9px solid var(--latcl-table-image-border);
  border-radius: 0;
  padding: 0 !important;
  box-sizing: border-box;
  box-shadow: none !important;
  background: var(--latcl-transparent) !important;
}
table thead tr:first-child > *:nth-child(1) {
  background-color: var(--latcl-table-head-1) !important;
  color: var(--latcl-white) !important;
}
table thead tr:first-child > *:nth-child(2) {
  background-color: var(--latcl-table-head-2) !important;
  color: var(--latcl-white) !important;
}
table thead tr:first-child > *:nth-child(3) {
  background-color: var(--latcl-table-head-3) !important;
  color: var(--latcl-white) !important;
}
table thead tr:first-child > *:nth-child(4) {
  background-color: var(--latcl-table-head-4) !important;
  color: var(--latcl-white) !important;
}
table thead tr:first-child > *:nth-child(5) {
  background-color: var(--latcl-table-head-5) !important;
  color: var(--latcl-white) !important;
}
table thead tr:first-child > *:nth-child(6) {
  background-color: var(--latcl-table-head-6) !important;
  color: var(--latcl-white) !important;
}
table thead tr:first-child > *:nth-child(7) {
  background-color: var(--latcl-table-head-7) !important;
  color: var(--latcl-white) !important;
}
table thead tr:first-child > *:nth-child(8) {
  background-color: var(--latcl-table-head-8) !important;
  color: var(--latcl-text-strong) !important;
}
table thead tr:first-child > *:nth-child(9) {
  background-color: var(--latcl-table-head-9) !important;
  color: var(--latcl-text-strong) !important;
}
table thead tr:first-child > *:nth-child(n+10) {
  background-color: var(--latcl-table-head-10) !important;
  color: var(--latcl-text-strong) !important;
}
table tbody tr:nth-child(odd) td {
  background-color: var(--latcl-table-row-odd) !important;
}
table tbody tr:nth-child(even) td {
  background-color: var(--latcl-table-row-even) !important;
}
table tbody td:nth-child(2) {
  filter: brightness(103%);
}
table tbody td:nth-child(3) {
  filter: brightness(106%);
}
table tbody td:nth-child(4) {
  filter: brightness(108%);
}
table tbody td:nth-child(5) {
  filter: brightness(110%);
}
table tbody td:nth-child(6) {
  filter: brightness(112%);
}
table tbody td:nth-child(7) {
  filter: brightness(114%);
}
table tbody td:nth-child(8) {
  filter: brightness(116%);
}
table tbody td:nth-child(n+9) {
  filter: brightness(118%);
}
@media (max-width: 768px) {
  table,
  table th,
  table td {
    font-size: 85%;
  }
}

/* 11. LearnPress-Elemente */
.course-item-nav__name,
.free,
.table-ohne-pdf + .ttpe-btn,
.widget_course_filter,
.learnpress-widget-wrapper,
form.lp-form-course-filter {
  display: none !important;
}

/* 12. Eduma-Header */
body .top_heading_out .top_site_main {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: flex;
  align-items: center;
}
body .top_heading_out .page-title-wrapper {
  background: var(--latcl-transparent) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body .top_heading_out h1.page-title {
  margin: 0 !important;
  font-size: clamp(32px, 5vw, 48px) !important;
  line-height: 1.1 !important;
}
body.single-lp_course:not(.course-item-popup) .top_heading_out {
  display: none;
}

/* 13. LearnPress-Lektionen */
.lp-course-curriculum .course-item.current .course-item__content .course-item-title {
  color: var(--latcl-text-strong) !important;
  font-weight: bold !important;
}
.course-item.lp-lesson-visited .course-item-title {
  color: var(--latcl-muted) !important;
  font-style: italic !important;
}

/* 14. LearnPress-Profil mobil */
@media (max-width: 768px) {
  .learn-press-profile-course__progress {
    overflow-x: auto;
    display: block;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .learn-press-profile-course__progress table {
    min-width: 600px;
    width: max-content;
  }
  .learn-press-profile-course__progress td,
  .learn-press-profile-course__progress th {
    white-space: nowrap;
    padding: 8px;
    vertical-align: middle;
  }
  .learn-press-profile-course__progress img {
    max-width: 80px;
    height: auto;
    display: block;
  }
  .learn-press-profile-course__progress a {
    display: inline-block;
    max-width: 100%;
  }
}

/* 15. LearnPress-Profil */
#profile-sidebar .lp-profile-nav-tabs li.orders,
#profile-sidebar .lp-profile-nav-tabs li.h5p {
  display: none !important;
}
#profile-sidebar .lp-profile-nav-tabs {
  display: flex;
  flex-direction: column;
}
#profile-sidebar .lp-profile-nav-tabs .logout {
  order: -1;
}
.learn-press-profile-course__statistic {
  display: none !important;
}
#thim-breadcrumbs,
.breadcrumbs {
  display: none !important;
}

/* 16. Status-Häkchen */
.learn-press .lp-course-curriculum .course-item.completed .item-status,
.learn-press .lp-course-curriculum .course-item.status-completed .item-status,
.learn-press .course-item.completed .item-status,
.learn-press .course-item.status-completed .item-status,
.learn-press .course-item.completed .course-item-status,
.learn-press .course-item.status-completed .course-item-status {
  color: var(--lp-green) !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  -webkit-text-fill-color: var(--lp-green) !important;
}
.learn-press .course-item .item-status i,
.learn-press .course-item .course-item-status i,
.learn-press .course-item .item-status .fa,
.learn-press .course-item .course-item-status .fa,
.learn-press .course-item .item-status [class*="lp-icon"],
.learn-press .course-item .course-item-status [class*="lp-icon"],
.learn-press .course-item .item-status::before,
.learn-press .course-item .course-item-status::before {
  color: var(--lp-green) !important;
  -webkit-text-fill-color: var(--lp-green) !important;
}
.learn-press .course-item .item-status svg,
.learn-press .course-item .course-item-status svg {
  color: var(--lp-green) !important;
  fill: var(--lp-green) !important;
  stroke: var(--lp-green) !important;
}
.learn-press .course-item .item-status svg *,
.learn-press .course-item .course-item-status svg * {
  fill: var(--lp-green) !important;
  stroke: var(--lp-green) !important;
}
.learn-press .course-item .item-status svg [fill="none"] {
  fill: none !important;
}
.learn-press .course-item .item-status,
.learn-press .course-item .course-item-status {
  min-width: 1em;
  line-height: 1;
}
@media (max-width: 768px) {
  .learn-press .course-item .item-status,
  .learn-press .course-item .course-item-status {
    font-size: 1em;
    transform: none;
  }
}

/* 17. Profil-Tabellen */
.lp-profile-content .lp-list-table,
.lp-profile-content .lp_profile_course_progress,
.lp-profile-content .profile-list-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}
.lp-profile-content .lp-list-table thead th,
.lp-profile-content .lp_profile_course_progress thead th,
.lp-profile-content .profile-list-table thead th {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center !important;
  padding: 8px 6px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.lp-profile-content .lp-list-table td,
.lp-profile-content .lp_profile_course_progress td,
.lp-profile-content .profile-list-table td {
  font-size: 13px !important;
  text-align: center !important;
  padding: 8px 6px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.lp-profile-content .lp-list-table th,
.lp-profile-content .lp-list-table td,
.lp-profile-content .lp_profile_course_progress th,
.lp-profile-content .lp_profile_course_progress td,
.lp-profile-content .profile-list-table th,
.lp-profile-content .profile-list-table td {
  width: auto !important;
}
.lp-profile-content .learn-press-filters li span {
  font-size: 13px !important;
  padding: 4px 10px !important;
}

/* 18. H5P mobil */
.latcl-h5p-desktop-tablet-only {
  display: block;
}
.latcl-h5p-mobile-note {
  display: none;
}
@media only screen and (max-width: 767px) {
  .latcl-h5p-desktop-tablet-only {
    display: none !important;
  }
  .latcl-h5p-mobile-note {
    display: block;
    padding: 16px 18px;
    margin: 20px 0;
    border: 1px solid var(--latcl-notice-border);
    border-radius: 8px;
    background: var(--latcl-notice-bg);
    color: var(--latcl-notice-text);
    font-size: 15px;
    line-height: 1.5;
  }
}

/* 19. Header breit */
@media (min-width: 1600px) {
  #masthead .thim-nav-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* 20. LearnPress-Quiz */
body.learnpress-v4.course-item-popup #popup-course #popup-header {
  background: var(--latcl-light) !important;
}

body.learnpress-v4.course-item-popup #popup-course #popup-header .course-title > a {
  color: var(--latcl-text-strong) !important;
}

body.learnpress-v4.course-item-popup #popup-course #popup-header .course-title .curriculum-info,
body.learnpress-v4.course-item-popup #popup-course #popup-header .items-progress,
body.learnpress-v4.course-item-popup #popup-course #popup-header .items-progress * {
  color: var(--latcl-muted) !important;
}

body.learnpress-v4.course-item-popup #learn-press-quiz-app .quiz-status {
  background-color: var(--latcl-light) !important;
  color: var(--latcl-muted) !important;
}

body.learnpress-v4.course-item-popup #learn-press-quiz-app .quiz-status > div,
body.learnpress-v4.course-item-popup #learn-press-quiz-app .quiz-status > div * {
  color: var(--latcl-muted) !important;
}

body.learnpress-v4.course-item-popup #learn-press-quiz-app .questions-pagination .nav-links .page-numbers {
  color: var(--latcl-muted) !important;
}

body.learnpress-v4.course-item-popup #learn-press-quiz-app .questions-pagination .nav-links .page-numbers.current,
body.learnpress-v4.course-item-popup #learn-press-quiz-app .questions-pagination .nav-links button.page-numbers:hover,
body.learnpress-v4.course-item-popup #learn-press-quiz-app .questions-pagination .nav-links button.page-numbers:focus,
body.learnpress-v4.course-item-popup #learn-press-quiz-app .questions-pagination .nav-links button.page-numbers:focus-visible {
  background-color: var(--latcl-primary) !important;
  border-color: var(--latcl-primary) !important;
  color: var(--latcl-white) !important;
}


/* 21. LearnPress-Kursnavigation: globale Überschriftenabstände gezielt zurücksetzen. */
body.course-item-popup #popup-sidebar .lp-course-curriculum__title {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* 22. Kursnavigation vollständig scrollbar */
body.course-item-popup #popup-sidebar {
  height: calc(100% - var(--lp-popup-header-height, 80px));
  overflow: hidden;
}

body.course-item-popup #popup-sidebar .course-curriculum {
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* 23. LearnPress-Kurssuche */
body.course-item-popup #popup-sidebar .search-course input[name="s"] {
    color: var(--latcl-primary, #f54242) !important;
    font-weight: 700 !important;
    caret-color: var(--latcl-primary, #f54242);
}
