/* ══════════════════════════════════════════
   DOWNLOADS.CSS – Infos & Downloads Seite
══════════════════════════════════════════ */

/* ── HEADER ── */
.downloads-header {
  padding: 120px 5% 60px; text-align: center; background: var(--warm-white);
  position: relative; overflow: hidden;
}
.downloads-header::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(71,151,243,.12), transparent 70%);
}
.downloads-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--heading); margin-bottom: 1rem;
}
.downloads-header p {
  color: var(--text-light); font-size: 1rem;
  line-height: 1.75; max-width: 560px; margin: 0 auto;
}

/* ── MAIN SECTION ── */
.downloads-section { padding: 60px 5% 100px; max-width: 1100px; margin: 0 auto; }

/* ── KATEGORIE TITEL ── */
.downloads-category {
  margin-bottom: 3.5rem;
}
.downloads-category-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; color: var(--heading);
  margin-bottom: 1.5rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--sand);
  display: flex; align-items: center; gap: .7rem;
}
.downloads-category-title .cat-icon { font-size: 1.4rem; }

/* ── DOWNLOAD GRID ── */
.downloads-grid {
  display: flex; flex-wrap: wrap;
  gap: 1.2rem; justify-content: flex-start;
}

/* ── DOWNLOAD KACHEL ── */
.download-card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 20px;
  padding: 1.8rem 1.5rem;
  flex: 1 1 280px; max-width: 340px;
  display: flex; flex-direction: column;
  gap: .8rem;
  transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.download-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity .3s;
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}
.download-card:hover::before { opacity: 1; }

.download-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(71,151,243,.15), rgba(24,170,255,.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}

.download-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; color: var(--heading);
  line-height: 1.3;
}

.download-card p {
  font-size: .85rem; color: var(--text-light);
  line-height: 1.65; flex: 1;
}

.download-meta {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; color: var(--text-light);
}
.download-meta .file-type {
  background: rgba(71,151,243,.1); color: var(--primary);
  padding: .15rem .5rem; border-radius: 6px;
  font-weight: 700; font-size: .7rem; letter-spacing: .05em;
}

.download-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary); color: #fff;
  padding: .65rem 1.3rem; border-radius: 30px;
  text-decoration: none; font-weight: 600; font-size: .85rem;
  transition: background .2s, transform .2s;
  align-self: flex-start; margin-top: .3rem;
  box-shadow: 0 4px 14px rgba(71,151,243,.3);
}
.download-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.download-btn .btn-icon { font-size: 1rem; }

/* Info-Kachel (kein Download, nur Info) */
.download-card.info-card { border-color: rgba(71,151,243,.2); background: rgba(71,151,243,.04); }
.download-card.info-card .download-icon {
  background: linear-gradient(135deg, rgba(71,151,243,.2), rgba(24,170,255,.15));
}
.info-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--primary);
  padding: .65rem 1.3rem; border-radius: 30px;
  border: 1.5px solid var(--primary);
  text-decoration: none; font-weight: 600; font-size: .85rem;
  transition: background .2s, color .2s;
  align-self: flex-start; margin-top: .3rem;
}
.info-btn:hover { background: var(--primary); color: #fff; }

/* ── HINWEIS BOX ── */
.hinweis-box {
  background: rgba(71,151,243,.06);
  border: 1px solid rgba(71,151,243,.2);
  border-radius: 16px; padding: 1.2rem 1.5rem;
  margin-bottom: 3rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.hinweis-box .hint-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.hinweis-box p { font-size: .88rem; color: var(--text-light); line-height: 1.7; }
.hinweis-box strong { color: var(--heading); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .downloads-header { padding: 100px 5% 40px; }
  .downloads-grid { gap: 1rem; }
  .download-card { flex: 1 1 240px; }
}
@media (max-width: 500px) {
  .download-card { flex: 1 1 100%; max-width: 100%; }
}
