/* ============================================================================
   Ressourcen-Seite (Literatur) – eigener "lit-" Präfix
   Keine Kollision mit site.css (das .resource-card / .resources-grid nutzt)
   ========================================================================= */

:root {
  --lit-blue: #087db3;
  --lit-blue-dark: #0a4f7b;
  --lit-bg: #f4f6f8;
  --lit-card: #ffffff;
  --lit-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  --lit-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.14);
  --lit-gradient: linear-gradient(135deg, #087db3 0%, #0a4f7b 100%);
}

.lit-page {
  background: var(--lit-bg);
}

/* ---------- Hero ---------- */
.lit-hero {
  background: var(--lit-gradient);
  padding: 72px 20px;
  text-align: center;
}

.lit-hero-content {
  max-width: 820px;
  margin: 0 auto;
  animation: litFadeUp 0.6s ease-out;
}

.lit-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.1;
}

.lit-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 680px;
}

/* ---------- Section / Container ---------- */
.lit-section {
  padding: 64px 20px;
  background: var(--lit-bg);
}

.lit-container {
  max-width: 1180px;
  margin: 0 auto;
}

.lit-intro {
  text-align: center;
  margin-bottom: 48px;
}

.lit-intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 12px;
  color: var(--lit-blue);
  font-weight: 700;
}

.lit-intro p {
  font-size: 1rem;
  color: #5a6470;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Grid ---------- */
.lit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* ---------- Card ---------- */
.lit-card {
  background: var(--lit-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--lit-shadow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lit-shadow-hover);
}

/* ---------- Cover: ganzes Bild verkleinert einpassen ---------- */
.lit-cover {
  width: 100%;
  height: 360px;
  background: #eef1f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lit-cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lit-card:hover .lit-cover img {
  transform: scale(1.04);
}

.lit-cover-placeholder {
  background: var(--lit-gradient);
}

.lit-placeholder-icon {
  font-size: 3.4rem;
  opacity: 0.55;
}

/* ---------- Content ---------- */
.lit-content {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lit-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.lit-type {
  display: inline-block;
  padding: 5px 13px;
  background: rgba(8, 125, 179, 0.12);
  color: var(--lit-blue);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lit-year {
  color: #9aa3ad;
  font-size: 0.85rem;
}

.lit-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2530;
  margin: 0 0 12px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.lit-card:hover .lit-card-title {
  color: var(--lit-blue);
}

.lit-desc {
  font-size: 0.95rem;
  color: #5a6470;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

/* ---------- Button ---------- */
.lit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--lit-blue);
  color: #fff;
  text-decoration: none;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.lit-link:hover {
  background: var(--lit-blue-dark);
}

.lit-arrow {
  transition: transform 0.3s ease;
}

.lit-link:hover .lit-arrow {
  transform: translateX(4px);
}

/* ---------- Empty ---------- */
.lit-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #9aa3ad;
  font-size: 1.1rem;
}

/* ---------- Header-Aktivlink ---------- */
.lit-page .nav-links a.active {
  color: #b6ff00;
  font-weight: 600;
}

/* ---------- Animation ---------- */
@keyframes litFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .lit-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 480px) {
  .lit-hero { padding: 56px 20px; }
  .lit-section { padding: 44px 18px; }
  .lit-cover { height: 320px; }
}
