/* CSS Variables - Blaue Primärfarbe */
:root {
    --primary: #0056A4;
    --primary-dark: #003d75;
    --primary-light: #1a73c7;
    --primary-lighter: #e8f2fc;
    --accent: #00A3E0;
    --text-dark: #1a1a2e;
    --text-medium: #374151;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: rgba(0, 86, 164, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 86, 164, 0.08);
    --shadow: 0 4px 24px rgba(0, 86, 164, 0.12);
    --shadow-lg: 0 12px 48px rgba(0, 86, 164, 0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(160deg, var(--bg-light) 0%, #dbeafe 50%, var(--primary-lighter) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Decorative Background Elements */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 86, 164, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Main Card Container */
.card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    max-width: 580px;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Header with Original Image */
.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Area */
.card-content {
    padding: 2rem 1.75rem 2.25rem;
}

/* Name & Title Section */
.name-section {
    text-align: center;
    margin-bottom: 1.75rem;
}

.title-prefix {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.name {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.specialty {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.specialty strong {
    color: var(--primary);
    font-weight: 600;
}

/* Expertise Tags */
.expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.tag {
    background: var(--primary-lighter);
    color: var(--primary);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 86, 164, 0.15);
    transition: var(--transition);
    cursor: default;
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Accordion Styles */
.accordion {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--primary-lighter);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    text-align: left;
}

.accordion-header:hover {
    background: #d6e9f9;
}

.accordion-header svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-header.active svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--white);
}

.accordion-content.open {
    max-height: 1000px;
}

.accordion-body {
    padding: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
    text-align: left;
}

.accordion-body p {
    margin-bottom: 1rem;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

/* Section Styles */
.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Positions Section */
.positions-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
}

.position-item {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.position-item:last-child {
    margin-bottom: 0;
}

.position-item--spaced {
    margin-bottom: 1.25rem;
}

.position-item strong {
    color: var(--text-dark);
}

/* Symptoms Section */
.symptoms-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
}

.symptoms-text {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0.75rem;
    margin: 0 -0.75rem;
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--primary-lighter);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 86, 164, 0.25);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
}

.contact-details {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    word-break: break-word;
}

.contact-value a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-value a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-sub {
    color: var(--text-light);
    font-size: 0.875rem;
}

.institution-description {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Website Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.link-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 86, 164, 0.35);
}

.link-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 164, 0.45);
}

.link-btn.secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.link-btn.secondary:hover {
    background: var(--primary-lighter);
    transform: translateY(-2px);
}

.link-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.link-btn.primary svg {
    fill: var(--white);
}

.link-btn.secondary svg {
    fill: var(--primary);
}

/* Footer */
.card-footer {
    background: var(--primary-lighter);
    padding: 1rem 1.75rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-lighter);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
}

.modal-close:hover svg {
    fill: var(--white);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    fill: var(--text-medium);
    transition: var(--transition);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.modal-body h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body a {
    color: var(--primary);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* Responsive Design - Mobile First Optimizations */
@media (max-width: 480px) {
    body {
        padding: 1rem 0.75rem;
    }

    .card {
        border-radius: 20px;
    }

    .card-content {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .name {
        font-size: 1.5rem;
    }

    .specialty {
        font-size: 0.85rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-value {
        font-size: 0.9rem;
    }

    .expertise {
        gap: 0.4rem;
    }

    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .link-btn {
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .card-content {
        padding: 2rem 1.5rem;
    }
}

@media (min-width: 769px) {
    .links-section {
        flex-direction: row;
    }

    .link-btn {
        flex: 1;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .link-btn {
        border: 1px solid var(--primary);
    }

    .modal-overlay {
        display: none !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
.link-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
