/* ==========================================================================
   Profile Cards Grid Component
   ========================================================================== */

/* CSS Custom Properties */
:root {
    --profilecard-title-color: #4a7c59;
    --profilecard-subtitle-color: #333333;
    --profilecard-bg: transparent;
    --profilecard-transition: 0.3s ease;
}

/* ==========================================================================
   Grid Container
   ========================================================================== */
.profilecards-grid {
    display: grid;
    width: 100%;
}

h3 + .profilecards-grid
{
	margin-top:2rem;
}

/* Spalten Varianten */
.profilecards-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.profilecards-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.profilecards-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Gap Varianten */
.profilecards-grid--gap-small {
    gap: 1.5rem;
}

.profilecards-grid--gap-medium {
    gap: 2.5rem;
}

.profilecards-grid--gap-large {
    gap: 3.5rem;
}

/* ==========================================================================
   Profile Card (Einzelne Karte)
   ========================================================================== */
.profilecard {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--profilecard-bg);
}

/* Image Wrapper */
.profilecard__image-wrapper {
    width: 100%;
    margin-bottom: 1rem;
}

.profilecard__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Section */
.profilecard__content {
    width: 100%;
}

/* Titel */
.profilecard__title {
	font-family: var(--font_serif);
    font-size: var(--size_33);
    font-weight: 600;
    color: var(--color_green_light);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
	text-align:center;
}

/* Untertitel */
.profilecard__subtitle {
	font-family: var(--font_sans);
    font-size: var(--size_22);
    font-weight: 600;
    color: var(--color_green_dark);	
   
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (768px) */
@media (max-width: 768px) {
    .profilecards-grid--cols-4,
    .profilecards-grid--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profilecard__title {
        font-size: 1.15rem;
    }
    
    .profilecard__subtitle {
        font-size: 0.95rem;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .profilecards-grid--cols-4,
    .profilecards-grid--cols-3,
    .profilecards-grid--cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profilecards-grid--gap-large,
    .profilecards-grid--gap-medium {
        gap: 1.5rem;
    }
    
    .profilecards-grid--gap-small {
        gap: 1rem;
    }
    
    .profilecard__title {
        font-size: 1.05rem;
    }
    
    .profilecard__subtitle {
        font-size: 0.9rem;
    }
}

/* Mobile klein (360px) */
@media (max-width: 360px) {
    .profilecards-grid--cols-4,
    .profilecards-grid--cols-3,
    .profilecards-grid--cols-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .profilecard {
        transition: none;
    }
}
