@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #0F2A44;
    --secondary-blue: #1a3a5c;
    --light-blue: #e8f0fe;
    --white: #FFFFFF;
    --medical-gray: #BFC6CC;
    --light-gray: #f8f9fa;
    --swiss-red: #D52B1E;
    --text-dark: #2c3e50;
    --shadow: rgba(15, 42, 68, 0.1);
    --shadow-hover: rgba(15, 42, 68, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
    min-height: 100vh;
}

header {
    background: var(--white);
    color: var(--primary-blue);
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(15, 42, 68, 0.1);
    border-bottom: 2px solid var(--light-blue);
    overflow: hidden;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    width: 100%;
    gap: 2rem;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    height: 100%;
}

.logo img {
    height: 90px;
    width: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 2px 8px rgba(15,42,68,0.08));
    transition: transform 0.3s ease;
    margin-top: 10px;
}

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

.logo span {
    display: inline-block;
    line-height: 1.2;
    color: var(--primary-blue);
    font-weight: 800;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin-left: auto;
}

nav a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.7rem 0.3rem;
    letter-spacing: 0.01em;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--swiss-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 25px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 4px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(15, 42, 68, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lang-switcher a {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.lang-switcher a::before {
    content: '';
    width: 20px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lang-switcher a[href*="de/"]::before,
.lang-switcher a[href="../"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Crect width='5' height='1' fill='%23000'/%3E%3Crect y='1' width='5' height='1' fill='%23D00'/%3E%3Crect y='2' width='5' height='1' fill='%23FFCE00'/%3E%3C/svg%3E");
}

.lang-switcher a[href="index.html"]::before,
.lang-switcher a[href="../index.html"]::before,
.lang-switcher a:not([href*="de/"]):not([href="../"])::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath fill='%23fff' d='M25 0h10v30H25zM0 10h60v10H0z'/%3E%3Cpath fill='%23C8102E' d='M27 0h6v30h-6zM0 12h60v6H0z'/%3E%3C/svg%3E");
}

.lang-switcher a::after {
    display: none;
}

.lang-switcher a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: scale(1.05);
}

.lang-switcher a.active {
    background: linear-gradient(135deg, var(--swiss-red) 0%, #ff4136 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(213, 43, 30, 0.4);
}

.lang-switcher a.active:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(213, 43, 30, 0.5);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--swiss-red);
    transform: translateY(-1px);
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.hero {
    text-align: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 50%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23BFC6CC" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23BFC6CC" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23BFC6CC" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    letter-spacing: -0.03em;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

section {
    margin: 6rem 0;
    position: relative;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--swiss-red), var(--primary-blue));
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.card {
    background: var(--white);
    border: none;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--swiss-red));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.card p {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   PREMIUM FOOTER STYLES
   ============================================ */
footer {
    background: linear-gradient(135deg, #0a1f33 0%, #0F2A44 50%, #1a3a5c 100%);
    color: var(--white);
    padding: 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D52B1E 0%, #ff6b5b 50%, #D52B1E 100%);
}

footer::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(213, 43, 30, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-top {
    padding: 80px 40px 60px;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    text-align: left;
    margin-bottom: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand .brand-logo img {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
}

.footer-brand .brand-logo span {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.footer-certifications {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cert-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: rgba(213, 43, 30, 0.2);
    border-color: rgba(213, 43, 30, 0.4);
    transform: translateY(-2px);
}

.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #D52B1E;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section ul li a::before {
    content: '';
    width: 0;
    height: 2px;
    background: #D52B1E;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::before {
    width: 15px;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item .text {
    display: flex;
    flex-direction: column;
}

.contact-item .text span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}

.contact-item .text a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item .text a:hover {
    color: #D52B1E;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 40px;
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer .copyright {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

footer .copyright span {
    color: #D52B1E;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--swiss-red);
}

.footer-legal-links span {
    color: rgba(255, 255, 255, 0.4);
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: #D52B1E;
    border-color: #D52B1E;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(213, 43, 30, 0.3);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 60px 25px 40px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    .footer-brand {
        grid-column: span 1;
        align-items: center;
    }
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-section ul li a {
        justify-content: center;
    }
    .footer-section ul li a::before {
        display: none;
    }
    .contact-item {
        justify-content: center;
    }
    .footer-certifications {
        justify-content: center;
    }
    .footer-bottom {
        padding: 20px 25px;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    footer .copyright {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* Form styling */
form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
}

form div {
    margin-bottom: 2rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1rem;
}

form input,
form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(15, 42, 68, 0.1);
}

form button {
    width: 100%;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section > * {
    animation: fadeInUp 0.6s ease-out;
}

section:nth-child(odd) > * {
    animation-delay: 0.2s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }
    .logo {
        font-size: 1.4rem;
    }
    .logo img {
        height: 36px;
        transform: scale(1.2);
        transform-origin: left center;
    }
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(15, 42, 68, 0.1);
        border-top: 1px solid var(--light-gray);
    }
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        background: var(--white);
        box-shadow: 0 4px 20px rgba(15, 42, 68, 0.1);
    }
    .hero {
        padding: 4rem 0 2rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    .card {
        padding: 2rem 1.5rem;
    }
    form {
        padding: 2rem 1.5rem;
    }
    footer {
        padding: 3rem 0 1.5rem;
    }
    .social-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}