/* Zusätzliche Styles für die Team-Seite */

.full-width {
    display: block;
    width: 100%;
}

.team-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.team-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Ärzte-Reihe: genau 2 gleich grosse Spalten */
.team-grid-doctors {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1rem;
}

.team-member {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

/* Gruppenfoto oben mittig */
.team-group-photo {
    text-align: center;
    margin-bottom: 30px;
}

.team-group-photo img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

/* Team-Member: Bild sichtbar, Name als Overlay nur bei Hover */
.team-member {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-member:hover,
.team-member:focus {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.team-member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.82);
    padding: 12px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.team-member-overlay h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
}

.team-member:hover .team-member-overlay,
.team-member:focus .team-member-overlay {
    opacity: 1;
}

.team-member h3 {
    color: var(--primary-color);
    margin: 15px 15px 5px;
    font-size: 1.2rem;
}

.team-philosophy {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.team-philosophy h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.team-philosophy p {
    margin-bottom: 15px;
}


/* 2. Bilder skalierbar machen */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. Typografie und Fliesstext */
body {
    line-height: 1.6;
    font-size: 1rem;
}
/* Für Team-Grid und Karten */
.team-grid,
.staff-grid,
.services-container,
.informationen .insurance-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-section {
        padding: 20px 15px;
    }

    .team-member img {
        height: 200px;
    }
}

/* 1. Container zentrieren und Padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}





/* Styles for Aktuelles (News) page */
.news-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.news-item h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.news-item h4 {
    color: var(--primary-color);
    margin: 15px 0;
    font-size: 1.3rem;
}

.news-item .content-with-image {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.news-item p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.news-item ul {
    list-style: none;
    margin: 15px 0;
    padding-left: 20px;
}

.news-item ul li {
    margin-bottom: 10px;
    position: relative;
}

.news-item ul li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -20px;
}

/* Specific styling for the news content */
.text-content {
    flex: 1;
}

.text-content p strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Responsive adjustments for news items */
@media (max-width: 768px) {
    .news-item {
        padding: 20px;
    }

    .news-item h3 {
        font-size: 1.4rem;
    }

    .news-item .content-with-image {
        flex-direction: column;
    }

    .text-content {
        order: 2;
    }

    .image-container {
        order: 1;
        margin-bottom: 20px;
    }
}

/* Accordion styles for news items */
.news-item .accordion-toggle {
    cursor: pointer;
    padding: 15px 20px;
    background-color: var(--secondary-color);
    margin-bottom: 0;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
}

.news-item .accordion-toggle::after {
    content: '+';
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}

.news-item .accordion-toggle.active::after {
    content: '−';
}

.news-item .accordion-toggle:hover {
    background-color: #d8e7ff;
}

.news-item .accordion-toggle.active {
    border-radius: 5px 5px 0 0;
}

.news-item .accordion-content {
    display: none;
    padding: 20px;
    background-color: var(--white);
    border-radius: 0 0 5px 5px;
    border: 1px solid var(--secondary-color);
    border-top: none;
}

.news-item .accordion-content.active {
    display: block;
}

/* Spacing between accordion items */
.news-item {
    margin-bottom: 15px;
    box-shadow: none;
    padding: 0;
}

.news-item:last-child {
    margin-bottom: 0;
}

/* Add these styles to team.css */

/* Accordion arrow styles */
.accordion-toggle {
    position: relative;
    padding-right: 40px !important; /* Space for arrow */
}

.accordion-toggle::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    font-size: 0.8em;
    color: var(--primary-color);
}

.accordion-toggle.active::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Adjust existing accordion styles */
.accordion-toggle {
    cursor: pointer;
    padding: 15px 20px;
    background-color: var(--secondary-color);
    margin-top: 5px;
    margin-bottom: 0;
    border-radius: 5px 5px 0 0;
    transition: var(--transition);
    font-weight: bold;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
}

.accordion-toggle:hover {
    background-color: #d8e7ff;
}

.accordion-toggle.active {
    background-color: var(--primary-color);
    color: white;
}

/* When active, the arrow should be white */
.accordion-toggle.active::after {
    color: white;
}

/* Adjust the news item accordions specifically */
.news-item .accordion-toggle::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.news-item .accordion-toggle.active::after {
    transform: translateY(-50%) rotate(180deg);
}