/* 
 * Links-spezifisches CSS für Club des Frohsinns
 * Kombiniert Bulma Framework mit CdF Corporate Identity
 */

/* ============================================
   Message (Hinweis-Box)
   ============================================ */
.message.is-info {
  background-color: rgba(47, 35, 207, 0.03);
  border-left: 4px solid var(--cdf-blau);
}

.message.is-info .message-body {
  border: none;
  color: #363636;
}

.message.is-info .message-body a {
  color: var(--cdf-blau);
  font-weight: 600;
  text-decoration: underline;
}

.message.is-info .message-body a:hover {
  color: var(--cdf-rot);
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  color: var(--cdf-blau) !important;
  margin-bottom: 1.5rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.section-header .icon {
  color: var(--cdf-rot);
}

/* ============================================
   Link Boxes (Bulma Box Component)
   ============================================ */
.link-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--cdf-radius);
  box-shadow: var(--cdf-schatten-sm);
  transition: transform var(--cdf-dauer) ease, box-shadow var(--cdf-dauer) ease;
}

.link-box:hover {
  transform: translateY(var(--cdf-lift));
  box-shadow: var(--cdf-schatten-md);
}

/* Media Component in Box */
.link-box .media {
  margin-bottom: 1rem;
  align-items: center;
}

.link-box .media .title {
  color: var(--cdf-blau);
  margin-bottom: 0;
}

/* Icon Wrapper */
.link-icon-wrapper {
  background: linear-gradient(135deg, rgba(47, 35, 207, 0.1) 0%, rgba(180, 8, 32, 0.1) 100%);
  border-radius: 50%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Content Area */
.link-box .content {
  flex-grow: 1;
  color: #4a4a4a;
  line-height: 1.6;
}

.link-box .content p {
  margin-bottom: 1rem;
}

/* Button Override */
.link-box .button.is-link {
  background-color: var(--cdf-blau);
  border-color: transparent;
  color: white;
  font-weight: 600;
  transition: all var(--cdf-dauer) ease;
}

.link-box .button.is-link:hover {
  background-color: var(--cdf-rot);
  transform: translateY(var(--cdf-lift));
  box-shadow: var(--cdf-schatten-sm);
}

.link-box .button.is-link .icon {
  transition: transform var(--cdf-dauer) ease;
}

.link-box .button.is-link:hover .icon {
  transform: translateX(3px);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and below */
@media screen and (max-width: 1023px) {
  
  .section-header {
    font-size: 1.75rem !important;
    margin-bottom: 1.25rem !important;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  
  .section-header {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    flex-direction: column;
    gap: 0.5rem;
  }
      
  .link-icon-wrapper {
    padding: 10px;
  }
  
  .link-box .media .title {
    font-size: 1.15rem !important;
  }
  
  .link-box .content {
    font-size: 0.95rem;
  }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
  
  .section-header {
    font-size: 1.35rem !important;
  }
      
  .link-box .media {
    flex-direction: column;
    text-align: center;
  }
  
  .link-box .media-left {
    margin-bottom: 0.75rem;
  }
  
  .link-box .content {
    font-size: 0.9rem;
  }
  
  .message.is-info .message-body {
    font-size: 0.9rem;
  }
}

/* Hervorgehobene Ressource (Aufnahmeantrag) */
.ressource-hervorgehoben {
  border-left: 6px solid var(--cdf-rot);
}

.ressource-hervorgehoben .content p {
  color: #333;
}
