/*
 * Globale Styles für MVZ BAmed Demo‑Website
 *
 * Enthält Grundlayouts, Typografie, Navigation, Buttons und responsives Design.
 */
:root {
    --primary-color: #005ea2;
    --secondary-color: #f5f5f5;
    --accent-color: #008a5e;
    --text-color: #333333;
    --bg-color: #ffffff;
    --max-width: 1200px;
}

/* Standorte */
.locations-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: start;
}

.location-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.location-card h3 {
    margin-bottom: 0.5rem;
}

.location-meta {
    color: #555;
    margin: 0.25rem 0;
}

.map-embed {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
    .map-embed {
        height: 280px;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Responsive Navigation */
.nav-toggle {
    display: none;
}
.nav-toggle-label {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
    }
    nav {
        display: none;
        flex-direction: column;
        background-color: #ffffff;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 1rem;
        z-index: 998;
    }
    /* Show nav when toggle is checked */
    .nav-toggle:checked ~ nav {
        display: flex;
    }
    .nav-container {
        position: relative;
    }
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul li a {
        padding: 0.5rem 0;
    }
    .cta-header {
        margin-top: 1rem;
    }
    /* Hide the desktop CTA inside nav on mobile */
    .cta-header a {
        width: 100%;
    }
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.logo {
    /* The logo container now holds an image link instead of plain text. */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Size the logo image consistently in the header */
.logo img {
    height: 90px;
    width: auto;
    max-width: 520px;
    object-fit: contain;
    display: block;
}

/* Styling for the practice logo in the location/address sections */
.practice-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.practice-logo img {
    height: 48px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    border-radius: 0;
}

/* Locations */
.locations-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.25rem;
    align-items: start;
}

.map-embed {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.location-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.location-card h3 {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.location-meta {
    color: #555;
    margin: 0.35rem 0;
    line-height: 1.5;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
    .map-embed {
        height: 300px;
    }
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    display: block;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu for Leistungen */
.dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 999;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    font-size: 0.9rem;
    color: var(--text-color);
}

.dropdown-content a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* CTA Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #00497f;
}

.btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #e6f0ff 0%, #ffffff 100%);
    padding: 4rem 1rem;
    border-radius: 8px;
}

/* Hero feature list */
.hero-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}
.hero-features li {
    list-style: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
}
.hero-features li .icon {
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.hero img {
    margin-bottom: 1.5rem;
    max-height: 360px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Section Titles */
section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.service-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
}

.service-card img {
    height: 160px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}
.benefit-item .benefit-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}
.benefit-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}
.benefit-item p {
    font-size: 0.9rem;
}

/* FAQ Section */
details {
    margin-bottom: 1rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem 1rem;
}
details summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    outline: none;
}
details summary::-webkit-details-marker {
    display: none;
}
details p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Content Sections (Location, Team, etc.) */
.section-wrapper {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
}

.section-wrapper p, .section-wrapper li {
    font-size: 1rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.team-member {
    text-align: center;
    padding: 1rem;
}

.team-member img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
}

.team-member h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.team-member p {
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #f0f0f0;
    padding: 2rem 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-top: 3rem;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

footer h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

footer ul {
    list-style: none;
    line-height: 1.6;
}

footer a {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    .mobile-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -1px 4px rgba(0,0,0,0.1);
        z-index: 1001;
    }
    .mobile-bar a {
        flex: 1;
        padding: 0.8rem;
        text-align: center;
        border-right: 1px solid #ddd;
        font-size: 0.9rem;
        color: var(--primary-color);
    }
    .mobile-bar a:last-child {
        border-right: none;
    }
    .mobile-bar a .icon {
        display: block;
        margin-bottom: 0.25rem;
        font-size: 1.25rem;
    }
}


/* Logo scaling for tablets and mobile */
@media (max-width: 1024px) {
  .logo img { height: 70px; max-width: 420px; }
}
@media (max-width: 768px) {
  .logo img { height: 56px; max-width: 340px; }
}

/* Language switch (flags) */
.language-switch{display:flex;align-items:center;gap:10px;margin-left:10px;}
.language-switch a{font-size:1.4rem;line-height:1;text-decoration:none;opacity:0.9;}
.language-switch a:hover{opacity:1;}
@media (max-width: 768px){.language-switch{gap:8px;} .language-switch a{font-size:1.25rem;}}
