/* ============================================================
   GEDUFA Kurse – Frontend Styles
   Passt sich automatisch an Lexend Theme und GEDUFA-Farben an
   ============================================================ */

/* === Grid === */
.gk-wrapper { margin: 0 0 40px; }

.gk-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #12243A;
  margin-bottom: 24px;
}

.gk-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 16px;
}
.gk-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gk-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* === Kurs-Karte === */
.gk-card {
  background: #FFFFFF;
  border: 1.5px solid #E8ECF2;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 79, 138, 0.10);
  border-color: #1A4F8A;
}
.gk-card--voll {
  opacity: .75;
  border-color: #F0EDE8;
}
.gk-card--voll:hover {
  transform: none;
  box-shadow: none;
  border-color: #F0EDE8;
}

/* === Karten-Header === */
.gk-card-header {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.gk-typ-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}

.gk-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.gk-badge--voll  { background: #FEE2E2; color: #B91C1C; }
.gk-badge--wenig { background: #FEF3C7; color: #B45309; }

/* === Karten-Body === */
.gk-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gk-kurs-name {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #12243A !important;
  line-height: 1.3 !important;
  margin: 0 0 4px !important;
}

/* === Meta-Liste === */
.gk-meta {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.gk-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6B7A8D;
  margin: 0 !important;
  padding: 0 !important;
}
.gk-meta li::before { display: none !important; }
.gk-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #1A4F8A;
  opacity: .7;
}

/* === Belegungsbalken === */
.gk-capacity {
  margin-top: 4px;
}
.gk-capacity-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6B7A8D;
  font-weight: 500;
  margin-bottom: 6px;
}
.gk-progress {
  height: 7px;
  background: #F0EDE8;
  border-radius: 999px;
  overflow: hidden;
}
.gk-progress-bar {
  height: 100%;
  border-radius: inherit;
  transition: width .6s ease;
}
.gk-bar--frei  { background: linear-gradient(90deg, #1A4F8A, #3B82F6); }
.gk-bar--wenig { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.gk-bar--voll  { background: linear-gradient(90deg, #EF4444, #F87171); }

/* === Beschreibung === */
.gk-beschreibung {
  font-size: 13px !important;
  color: #6B7A8D !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Karten-Footer === */
.gk-card-footer {
  padding: 16px 20px;
  border-top: 1px solid #F0EDE8;
  margin-top: auto;
}

.gk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all .15s ease;
  cursor: pointer;
  box-sizing: border-box;
}
.gk-btn svg { width: 15px; height: 15px; }

.gk-btn--primary {
  background: #1A4F8A;
  color: #fff !important;
  border: none;
}
.gk-btn--primary:hover {
  background: #12243A;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 79, 138, .25);
}

.gk-btn--disabled {
  background: #F0EDE8;
  color: #A0A0A0 !important;
  border: 1px solid #E0DCDA;
  cursor: not-allowed;
}

/* === Hinweis-Footer === */
.gk-footer-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #A0A0A0;
  margin-top: 16px;
}
.gk-footer-note svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* === Empty State === */
.gk-empty {
  text-align: center;
  padding: 56px 24px;
  background: #F7F5F2;
  border-radius: 16px;
  color: #6B7A8D;
}
.gk-empty-icon { font-size: 40px; margin-bottom: 12px; }
.gk-empty p { font-size: 15px; margin: 0; }

/* === Responsive === */
@media (max-width: 900px) {
  .gk-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gk-cols-2,
  .gk-cols-3 { grid-template-columns: 1fr; }
  .gk-card:hover { transform: none; box-shadow: none; }
}
