/*
Theme Name: Arztpraxis Potsdam
Author: Antigravity
Description: Ein modernes, frisches und seriöses WordPress-Theme für eine Arztpraxis.
Version: 1.1
*/

:root {
    --primary-color: #064e3b;
    /* Deep Emerald */
    --accent-color: #10b981;
    /* Fresh Mint */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --bg-surface: #ffffff;
    /* Pure White */
    --bg-soft: #f8fafc;
    /* Slate 50 */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-max: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-surface);
    margin: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: var(--bg-surface);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Dashicons Integration */
@font-face {
    font-family: "dashicons";
    src: url("/wp-includes/fonts/dashicons.eot");
    src: url("/wp-includes/fonts/dashicons.eot?#iefix") format("embedded-opentype"),
        url("/wp-includes/fonts/dashicons.woff") format("woff"),
        url("/wp-includes/fonts/dashicons.ttf") format("truetype"),
        url("/wp-includes/fonts/dashicons.svg#dashicons") format("svg");
    font-weight: normal;
    font-style: normal;
}

.dashicons {
    font-family: "dashicons";
    font-size: 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-img {
    height: 64px;
    /* Slightly larger for the minimalist icon */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    display: block;
}

@media (max-width: 640px) {
    .logo-text {
        display: none;
        /* Hide text on small screens if logo is present */
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    /* Reduced from 2rem to fit more items */
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none !important;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block !important;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-surface);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease;
        padding: 80px 2rem 2rem;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 2rem;
    }

    .main-navigation a {
        font-size: 1.25rem;
        display: block;
    }

    /* Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}

.btn:hover {
    background: #065f46;
    transform: translateY(-2px);
}

/* Opening Hours Section */
.opening-hours {
    padding: 6rem 0;
    background-color: var(--bg-soft);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.hour-card {
    background: var(--bg-surface);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-soft);
}

.card-header h3 {
    margin-bottom: 0.25rem;
    font-size: 1.75rem;
}

.doctor-beruf {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.doctor-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 1rem;
}

/* Accordion Styles */
.doctor-accordion {
    margin-top: 1.5rem;
    border-top: 1px solid var(--bg-soft);
    padding-top: 1rem;
}

.accordion-trigger {
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.accordion-trigger:hover {
    background: var(--bg-soft);
    border-color: var(--primary-color);
}

.accordion-trigger.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.accordion-trigger .dashicons {
    transition: transform 0.3s ease;
}

.accordion-trigger.active .dashicons {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.accordion-inner {
    padding: 1rem 0;
    border-top: 1px solid var(--bg-soft);
}

.accordion-content.active {
    max-height: 500px;
    /* High enough to fit content */
}

.qualifications-list {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.qualifications-list li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-soft);
}

.hours-list li:last-child {
    border-bottom: none;
}

.day {
    font-weight: 600;
    color: var(--text-main);
}

.time {
    color: var(--text-muted);
}

/* News Section */
.news-section {
    padding: 6rem 0;
    background-color: var(--bg-surface);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background: var(--bg-soft);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-content {
    padding: 2rem;
}

.news-date {
    display: block;
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.news-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.news-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.news-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.news-link:hover {
    color: var(--accent-color);
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: var(--bg-soft);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -2rem;
    margin-bottom: 4rem;
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.service-card {
    background: var(--bg-surface);
    padding: 3.5rem 2.5rem;
    border-radius: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(6, 78, 59, 0.12);
    border-color: var(--accent-color);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--primary-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary-color);
    color: white;
}

.service-icon-wrapper .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.service-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: auto;
}

/* Footer (Original rest) */
footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    margin-bottom: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

.footer-legal a:hover {
    color: white;
    text-decoration: underline;
}

.footer-legal .sep {
    color: rgba(255, 255, 255, 0.3);
}

/* Lektion 12: Team Sektion */
.team-section {
    padding: 60px 0;
    background-color: var(--bg-surface);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.team-card {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.team-image {
    width: 100%;
    height: 250px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.team-subtitle {
    display: block;
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.team-text-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 30px;
    background: var(--bg-soft);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.team-general-text {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
    margin: 0;
}

/* Lektion 13: Kontakt Sektion */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-soft);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
    margin-top: 40px;
    align-items: start;
}

@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-container iframe {
        min-height: 300px;
    }
}



.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 400px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    margin-top: 4px;
}

.info-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Contact Form 7 Styling */
.contact-form-wrapper {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.wpcf7-form label {
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin-top: 8px;
    transition: border-color 0.2s;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.wpcf7-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    width: 100%;
    font-size: 1.1rem;
    margin-top: 10px;
}

.wpcf7-submit:hover {
    background: #065f46;
    transform: translateY(-2px);
}

.wpcf7-spinner {
    position: absolute;
    margin: 0;
}