/* ========================================= */
/* Links Page - Modern Link Cards           */
/* ========================================= */

/* Reduzierter Section Abstand für Links-Seite */
.main section {
  margin-bottom: 40px; /* Reduziert von 100px */
}

.main section:last-child {
  margin-bottom: 0;
}

.main section h2 {
  text-align: left;
}

/* Link Cards Container */
.link-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

/* Einzelne Link Card */
.link-card {
  background: linear-gradient(135deg, rgba(35, 138, 210, 0.15) 0%, rgba(26, 111, 168, 0.1) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%; /* Volle Breite */
}

.link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  /* KORREKTUR: #238ad2 und #3da9f5 ersetzt durch Variablen */
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.link-card:hover::before {
  transform: scaleX(1);
}

.link-card:hover {
  transform: translateY(-5px);
  border-color: rgba(35, 138, 210, 0.5);
  box-shadow: 0 10px 30px rgba(35, 138, 210, 0.3);
  background: linear-gradient(135deg, rgba(35, 138, 210, 0.25) 0%, rgba(26, 111, 168, 0.15) 100%);
}

/* Link in der Card */
.link-card a {
  display: flex;
  align-items: center;
  gap: 15px;
  /* KORREKTUR: #fff ersetzt durch Variable */
  color: var(--text-main);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.link-card:hover a {
  /* KORREKTUR: #3da9f5 ersetzt durch Variable */
  color: var(--accent);
}

/* Icon für externe Links */
.link-card a::before {
  content: "🔗";
  font-size: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.link-card:hover a::before {
  transform: scale(1.2) rotate(15deg);
}

/* Pfeil am Ende */
.link-card a::after {
  content: "→";
  margin-left: auto;
  font-size: 20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.link-card:hover a::after {
  opacity: 1;
  transform: translateX(0);
}

/* Beschreibung unter dem Link (optional) */
.link-description {
  margin-top: 12px;
  font-size: 14px;
  /* KORREKTUR: rgba(255, 255, 255, 0.7) ersetzt durch Variable */
  color: var(--text-muted);
  line-height: 1.5;
}

/* Alternative: Einfache Liste mit modernem Style */
.modern-link-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.modern-link-list li {
  margin-bottom: 15px;
}

.modern-link-list li a {
  background: rgba(35, 138, 210, 0.1);
  /* KORREKTUR: #238ad2 ersetzt durch Variable */
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.modern-link-list li a:hover {
  background: rgba(35, 138, 210, 0.25);
  /* KORREKTUR: #3da9f5 ersetzt durch Variable */
  border-left-color: var(--accent);
  padding-left: 35px;
  box-shadow: 0 5px 15px rgba(35, 138, 210, 0.2);
}

.modern-link-list li a::before {
  content: "→";
  font-size: 20px;
  /* KORREKTUR: #238ad2 ersetzt durch Variable */
  color: var(--primary);
  transition: transform 0.3s ease;
}

.modern-link-list li a:hover::before {
  transform: translateX(5px);
  /* KORREKTUR: #3da9f5 ersetzt durch Variable */
  color: var(--accent);
}

/* ========================================= */
/* Responsive - Tablet                      */
/* ========================================= */
@media (max-width: 768px) {
  .link-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .link-card {
    padding: 20px;
  }

  .link-card a {
    font-size: 16px;
  }

  .modern-link-list li a {
    padding: 15px 20px;
    font-size: 15px;
  }

  .main section {
    margin-bottom: 30px;
  }
}

/* ========================================= */
/* Responsive - Mobile                      */
/* ========================================= */
@media (max-width: 375px) {
  .link-card {
    padding: 18px;
  }

  .link-card a {
    font-size: 15px;
    gap: 12px;
  }

  .link-card a::before {
    font-size: 20px;
  }

  .modern-link-list li a {
    padding: 12px 18px;
    font-size: 14px;
  }
}