/* ============================================
   KONTAKT - Specifikke styles for kontakt.html
   ============================================ */

/* Kontakt titel til venstre */
.section-title.contact-title {
    text-align: left;
}

/* Container section med kontaktinformation - 800px bredde på skærme over 800px */
@media (min-width: 800px) {
    .container.section:has(.contact-grid) {
        width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1200px) {
    .container.section:has(.contact-grid) {
        width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Kontakt grid - max 2 kolonner, venstre-justeret tekst */
.contact-grid {
    grid-template-columns: repeat(2, 1fr);
    min-width: 0;
}

.contact-grid .employee-card {
    text-align: left;
}

/* Employee cards */
.employee-card {
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 1rem;
    text-align: center;
    outline: none;
}

.employee-card:focus {
    outline: none;
}

.employee-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 1rem;
}

/* Employee card tekst styling */
.employee-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.employee-card p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.employee-card p:first-of-type {
    margin-top: 0;
}

.employee-card p:last-of-type {
    margin-bottom: 0;
}

.employee-card strong {
    font-weight: 700;
    display: inline;
}

.employee-card br {
    line-height: 1.4;
}

.employee-card a {
    color: var(--accent);
    text-decoration: none;
}

.employee-card a:hover {
    text-decoration: underline;
}

/* Desktop 1200px+: Kontaktinformation grid skal kun have 3 kolonner (team grid) */
@media (min-width: 1200px) {
    .grid:has(.employee-card):not(.contact-grid) {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile responsive */
@media (max-width: 799px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 320px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

