/* Restore the existing course-grid design from bibliothek/index.html.
   Owner request 2026-09-04: restore the original tiles; no new redesign.
   Deliberately scoped to the two already deployed course cards. */
#freelife-kurse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
#freelife-kurse > header { grid-column: 1 / -1; }
#freelife-kurse .halten-library-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #8f777f;
  border-radius: 16px;
  color: #fcf5eb;
  background: #403438;
  text-align: left;
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
  transition: border-color .2s, transform .2s;
}
#freelife-kurse .halten-library-card:hover { border-color: #dfc38e; transform: translateY(-4px); }
#freelife-kurse .halten-library-image {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(221,197,143,.18);
  background: #1b222b;
}
#freelife-kurse .halten-library-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: 280px;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 18px 36px;
}
#freelife-kurse .halten-library-image > span { display: none; }
#freelife-kurse .halten-library-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  width: 100%;
  padding: 24px;
  color: #e0d2cb;
  font: .96rem/1.7 var(--sans,system-ui,sans-serif);
}
#freelife-kurse .halten-library-copy > p { margin: 0; }
#freelife-kurse .halten-library-copy .halten-kicker { color: #dfc38e; font-size: .76rem; line-height: 1.6; letter-spacing: normal; text-transform: none; }
#freelife-kurse .halten-library-copy h3 {
  margin: 0;
  color: #fcf5eb;
  font: 400 clamp(1.5rem,2.2vw,1.9rem)/1.15 var(--serif,Georgia,serif);
  letter-spacing: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
#freelife-kurse .halten-library-sub { color: #e0d2cb; font: inherit; }
#freelife-kurse .halten-library-copy details { margin: 0; padding: 12px 0; border-color: rgba(221,197,143,.25); }
#freelife-kurse .halten-library-copy summary { color: #dfc38e; min-height: 44px; display: list-item; }
#freelife-kurse .halten-library-actions { gap: 12px; min-height: 48px; margin-top: auto; padding-top: 20px; justify-content: space-between; }
#freelife-kurse .halten-library-actions > strong { color: #fcf5eb; font-size: 1rem; white-space: nowrap; }
#freelife-kurse .halten-library-actions a,
#freelife-kurse .halten-library-actions button { flex: none; min-height: 48px; padding: 10px 14px; color: #dfc38e; background: transparent; border: 1px solid #8f777f; border-radius: 12px; font-size: .9rem; }
#freelife-kurse .halten-library-status,
#freelife-kurse .halten-library-contact { color: #e0d2cb; font-size: .85rem; line-height: 1.6; }
#freelife-kurse :focus-visible { outline: 3px solid #dfc38e; outline-offset: 4px; }
@media(max-width:950px) { #freelife-kurse { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) {
  #freelife-kurse { grid-template-columns: minmax(0,1fr); gap: 22px; }
  #freelife-kurse .halten-library-copy { padding: 22px; font-size: 1rem; }
  #freelife-kurse .halten-library-actions { font-size: .96rem; }
}
@media(prefers-reduced-motion:reduce) {
  #freelife-kurse .halten-library-card { animation: none; transition: none; }
  #freelife-kurse .halten-library-card:hover { transform: none; }
}
