/* ═══════════════════════════════════════════════════════════════
   SK Akademie · Custom CSS für Canvas Theme Editor
   Admin → Themes → Edit → Reiter "CSS" → Diese Datei hochladen
   
   PROBLEM:  Canvas "Link Color" (#8A6D00) gilt global –
             sowohl in der weißen Kurs-Navigation (gut, 4.9:1 AA)
             als auch innerhalb unserer dunklen SK-Pages (zu dunkel).
   
   LÖSUNG:   Links innerhalb SK-Pages (dark wrapper) → #FFCD00
             Links in Canvas-nativen weißen Bereichen → #8A6D00 (Theme)
   ═══════════════════════════════════════════════════════════════ */

/* Hintergrund mobile Login-Seite */
body.webkit.touch {
    background: #1C1F24 !important;
    height: 100%;
    margin: 0;
    padding: 0;
    min-width: auto !important;
}

/* Logo-Bereich: Canvas-Logo ersetzen durch SK-Logo */
.mobileLogin-Header {
    z-index: 1;
    background-image: url(https://lernen.schneller-karriere.de/accounts/1/brand_variables) !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 200px auto;
    min-height: 160px;
    background-color: #1C1F24;
}

/* Login-Box Hintergrund */
.ic-Login {
    background: #2F3237;
    border-radius: 14px;
    padding: 24px;
    margin: 0 20px;
}

/* Eingabefelder */
.ic-Input {
    background: #1C1F24 !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #F0F0F0 !important;
    border-radius: 8px !important;
}

/* Placeholder-Text */
.ic-Input::placeholder {
    color: #6B7280 !important;
}

/* Anmeldung-Button */
.Button.Button--primary.Button--block {
    background: #FFCD00 !important;
    border-color: #FFCD00 !important;
    color: #0B0B0B !important;
    border-radius: 8px !important;
    font-weight: bold !important;
}

/* "Kennwort vergessen?" ausblenden */
.ic-Login__forgot,
.forgot_password_link,
#login_forgot_password {
    display: none !important;
}

/* Toggle-Switch verkleinern (mobile) */
.ic-Super-toggle--ui-switch .ic-Super-toggle__switch {
    width: 30px;
    height: 15px;
}
.ic-Super-toggle--ui-switch .ic-Super-toggle__switch::after {
    width: 15px;
    height: 15px;
}
.ic-Super-toggle__switch::after {
    background-image: none !important;
}




/* ── 1. SK-PAGES: Links auf Gold zurücksetzen ─────────────────
   Greift auf <a>-Tags innerhalb unseres dark-wrappers.
   Der Attribut-Selektor [style*='background:#1c1f24'] matcht
   den äußersten div jeder SK-Page (alle unsere Pages haben exakt
   diesen inline-style als erstes Attribut).
   Canvas stripped class="" aus dem RCE, aber style="" bleibt.
   ─────────────────────────────────────────────────────────────── */

.user_content [style*="background:#1c1f24"] a,
.user_content [style*="background: #1c1f24"] a {
  color: #FFCD00;           /* 11.0:1 auf #1c1f24 – AAA ✓        */
  text-decoration: none;
}

.user_content [style*="background:#1c1f24"] a:hover,
.user_content [style*="background: #1c1f24"] a:hover {
  color: #FFE066;
  text-decoration: underline;
}


/* ── 2. KURS-NAVIGATION: Tiefgold auf weißem Hintergrund ─────
   Canvas setzt hier bereits #8A6D00 aus dem Theme.
   Explizit deklariert, damit keine andere Regel überschreibt.
   ─────────────────────────────────────────────────────────────── */

#section-tabs .section-tab-label,
#section-tabs a,
.course-menu-item a,
.module-sequence-footer a,
.ic-app-nav-toggle-and-crumbs a {
  color: #8A6D00;           /* 4.9:1 auf Weiß – AA ✓             */
}

#section-tabs a:hover,
.course-menu-item a:hover {
  color: #6B5400;           /* 7.3:1 auf Weiß – AAA ✓            */
  text-decoration: underline;
}


/* ── 3. MODUL-LISTE & AUFGABEN ───────────────────────────────
   Weiße/helle Canvas-Bereiche – Tiefgold schützen.
   ─────────────────────────────────────────────────────────────── */

.context_module_item a.title,
.ig-title a,
.assignment-title a,
.discussion-title a {
  color: #8A6D00;           /* 4.9:1 auf Weiß – AA ✓             */
}


/* ── 4. DASHBOARD & ANKÜNDIGUNGEN ────────────────────────────
   Kurs-Kacheln und Ankündigungslinks auf weißem BG.
   ─────────────────────────────────────────────────────────────── */

.ic-DashboardCard__link,
.announcements-v2__header-title a,
.discussion-entry a {
  color: #8A6D00 !important; /* 4.9:1 auf Weiß – AA ✓           */
}


/* ── 5. FOCUS-RING (WCAG 2.4.7) ─────────────────────────────
   Sichtbarer Tastatur-Fokus in beiden Kontexten.
   ─────────────────────────────────────────────────────────────── */

a:focus-visible {
  outline: 2px solid #8A6D00;
  outline-offset: 2px;
  border-radius: 2px;
}

.user_content [style*="background:#1c1f24"] a:focus-visible,
.user_content [style*="background: #1c1f24"] a:focus-visible {
  outline-color: #FFCD00;
}

/*
 * ============================================================
 *  SCHNELLER-KARRIERE · Flip-Card System für Canvas LMS
 *  Upload: Admin → Themes → Custom CSS
 * ============================================================
 */

/* ── Wrapper & Layout ─────────────────────────────────────── */
.sk-flashcards {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f0f4f8;
  padding: 28px;
  border-radius: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Header ───────────────────────────────────────────────── */
.sk-header {
  background: #1a3a5c;
  padding: 14px 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.sk-header__logo {
  background: #e8a020;
  color: #1a3a5c;
  font-weight: 800;
  font-size: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  text-align: center;
  line-height: 40px;
  flex-shrink: 0;
}
.sk-header__title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
}
.sk-header__title span { color: #e8a020; }
.sk-header__sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.4px;
}
.sk-header__badge {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Intro ────────────────────────────────────────────────── */
.sk-intro {
  text-align: center;
  margin-bottom: 28px;
}
.sk-intro__title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 6px;
}
.sk-intro__title em {
  color: #e8a020;
  font-style: normal;
}
.sk-intro__sub {
  color: #6b7280;
  font-size: 0.87rem;
}

/* ── TOC Navigation ───────────────────────────────────────── */
.sk-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  justify-content: center;
}
.sk-toc__link {
  background: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  border: 2px solid #ccc;
  color: #1a3a5c;
  transition: opacity 0.15s;
}
.sk-toc__link:hover { opacity: 0.8; text-decoration: none; }

/* ── Section Header ───────────────────────────────────────── */
.sk-section {
  margin-top: 36px;
}
.sk-section__header {
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sk-section__icon {
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  text-align: center;
  line-height: 38px;
  flex-shrink: 0;
}
.sk-section__label { flex: 1; }
.sk-section__name {
  color: white;
  font-weight: 700;
  font-size: 1rem;
}
.sk-section__count {
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
}
.sk-section__top-link {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.2);
}
.sk-section__top-link:hover { background: rgba(255,255,255,0.2); text-decoration: none; }

/* ── Card Grid ────────────────────────────────────────────── */
.sk-grid {
  columns: 2 280px;
  column-gap: 16px;
  orphans: 1;
  widows: 1;
}
.sk-grid__item {
  break-inside: avoid;
  margin-bottom: 14px;
}

/* ── Flip Card ────────────────────────────────────────────── */
.sk-card {
  width: 100%;
  min-height: 190px;
  perspective: 1000px;
  cursor: pointer;
}
.sk-card__inner {
  position: relative;
  width: 100%;
  min-height: 190px;
  text-align: left;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  transform-style: preserve-3d;
  border-radius: 11px;
  box-shadow: 0 3px 12px rgba(26,58,92,0.10);
}
.sk-card:hover .sk-card__inner {
  transform: rotateY(180deg);
}
.sk-card__front,
.sk-card__back {
  position: absolute;
  width: 100%;
  min-height: 190px;
  border-radius: 11px;
  padding: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
}

/* Front */
.sk-card__front {
  background: white;
  border: 2px solid #e5eaf0;
  display: flex;
  flex-direction: column;
}
.sk-card__num {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sk-card__icon {
  font-size: 1.1rem;
  margin-bottom: 7px;
}
.sk-card__question {
  font-size: 0.87rem;
  font-weight: 500;
  color: #1a3a5c;
  line-height: 1.5;
  flex: 1;
}
.sk-card__hint {
  margin-top: 10px;
  font-size: 0.63rem;
  color: #9ca3af;
  font-style: italic;
}

/* Back */
.sk-card__back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
}
.sk-card__answer-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.sk-card__answer {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.93);
  line-height: 1.6;
  flex: 1;
}
.sk-card__back-hint {
  margin-top: 10px;
  font-size: 0.63rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

/* ── Footer ───────────────────────────────────────────────── */
.sk-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e0e7f0;
  color: #9ca3af;
  font-size: 0.73rem;
}
.sk-footer__top {
  color: #1a3a5c;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 8px;
}
.sk-footer__top:hover { text-decoration: underline; }
.sk-footer strong { color: #1a3a5c; }

/* ── Colour Themes ────────────────────────────────────────── */
/* Each theme defines: header bg, accent colour, toc border/text, card-num, back bg */

/* blue (default – SK brand) */
.sk-theme--blue .sk-section__header { background: #1a3a5c; }
.sk-theme--blue .sk-section__icon   { background: #e8a020; color: #1a3a5c; }
.sk-theme--blue .sk-card__num       { color: #e8a020; }
.sk-theme--blue .sk-card__back      { background: #1a3a5c; border-top-color: #e8a020; }
.sk-theme--blue .sk-card__answer-label { color: #e8a020; }
.sk-theme--blue .sk-toc__link       { border-color: #e8a020; color: #1a3a5c; }

/* green */
.sk-theme--green .sk-section__header { background: #1a4a3a; }
.sk-theme--green .sk-section__icon   { background: #2ecc71; color: #1a4a3a; }
.sk-theme--green .sk-card__num       { color: #2ecc71; }
.sk-theme--green .sk-card__back      { background: #1a4a3a; border-top-color: #2ecc71; }
.sk-theme--green .sk-card__answer-label { color: #2ecc71; }
.sk-theme--green .sk-toc__link       { border-color: #2ecc71; color: #1a4a3a; }

/* purple */
.sk-theme--purple .sk-section__header { background: #2c1a5c; }
.sk-theme--purple .sk-section__icon   { background: #9b59b6; color: #2c1a5c; }
.sk-theme--purple .sk-card__num       { color: #9b59b6; }
.sk-theme--purple .sk-card__back      { background: #2c1a5c; border-top-color: #9b59b6; }
.sk-theme--purple .sk-card__answer-label { color: #9b59b6; }
.sk-theme--purple .sk-toc__link       { border-color: #9b59b6; color: #2c1a5c; }

/* blue2 */
.sk-theme--blue2 .sk-section__header { background: #1a3a5c; }
.sk-theme--blue2 .sk-section__icon   { background: #3498db; color: #1a3a5c; }
.sk-theme--blue2 .sk-card__num       { color: #3498db; }
.sk-theme--blue2 .sk-card__back      { background: #1a3a5c; border-top-color: #3498db; }
.sk-theme--blue2 .sk-card__answer-label { color: #3498db; }
.sk-theme--blue2 .sk-toc__link       { border-color: #3498db; color: #1a3a5c; }

/* red */
.sk-theme--red .sk-section__header { background: #3a1a1a; }
.sk-theme--red .sk-section__icon   { background: #e74c3c; color: #3a1a1a; }
.sk-theme--red .sk-card__num       { color: #e74c3c; }
.sk-theme--red .sk-card__back      { background: #3a1a1a; border-top-color: #e74c3c; }
.sk-theme--red .sk-card__answer-label { color: #e74c3c; }
.sk-theme--red .sk-toc__link       { border-color: #e74c3c; color: #3a1a1a; }

/* teal */
.sk-theme--teal .sk-section__header { background: #1a3a2c; }
.sk-theme--teal .sk-section__icon   { background: #27ae60; color: #1a3a2c; }
.sk-theme--teal .sk-card__num       { color: #27ae60; }
.sk-theme--teal .sk-card__back      { background: #1a3a2c; border-top-color: #27ae60; }
.sk-theme--teal .sk-card__answer-label { color: #27ae60; }
.sk-theme--teal .sk-toc__link       { border-color: #27ae60; color: #1a3a2c; }

/* navy */
.sk-theme--navy .sk-section__header { background: #1a2a3a; }
.sk-theme--navy .sk-section__icon   { background: #1abc9c; color: #1a2a3a; }
.sk-theme--navy .sk-card__num       { color: #1abc9c; }
.sk-theme--navy .sk-card__back      { background: #1a2a3a; border-top-color: #1abc9c; }
.sk-theme--navy .sk-card__answer-label { color: #1abc9c; }
.sk-theme--navy .sk-toc__link       { border-color: #1abc9c; color: #1a2a3a; }

/* violet */
.sk-theme--violet .sk-section__header { background: #2a1a3a; }
.sk-theme--violet .sk-section__icon   { background: #8e44ad; color: #2a1a3a; }
.sk-theme--violet .sk-card__num       { color: #8e44ad; }
.sk-theme--violet .sk-card__back      { background: #2a1a3a; border-top-color: #8e44ad; }
.sk-theme--violet .sk-card__answer-label { color: #8e44ad; }
.sk-theme--violet .sk-toc__link       { border-color: #8e44ad; color: #2a1a3a; }

/* gray */
.sk-theme--gray .sk-section__header { background: #2a2a2a; }
.sk-theme--gray .sk-section__icon   { background: #95a5a6; color: #2a2a2a; }
.sk-theme--gray .sk-card__num       { color: #95a5a6; }
.sk-theme--gray .sk-card__back      { background: #2a2a2a; border-top-color: #95a5a6; }
.sk-theme--gray .sk-card__answer-label { color: #95a5a6; }
.sk-theme--gray .sk-toc__link       { border-color: #95a5a6; color: #2a2a2a; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .sk-grid { columns: 1; }
  .sk-header__badge { display: none; }
  .sk-card { min-height: 160px; }
  .sk-card__inner { min-height: 160px; }
  .sk-card__front, .sk-card__back { min-height: 160px; }
}

