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

:root {
    --primary: #1e293b;
    --accent: #10b981;
    --accent-soft: rgba(16, 185, 129, 0.1);
    --bg-soft: #f8fafc;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-soft);
    color: var(--primary);
    padding-top: 5rem;
    line-height: 1.6;
}

h1,
h2,
h3,
.Kategorie {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Navbar Redesign */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    padding: 0.75rem 0;
}

.logoNav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
}

.logoNav:hover {
    transform: scale(1.05);
}

.nav-item {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link {
    color: var(--primary) !important;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
#headerpic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-image: linear-gradient(rgba(30, 41, 59, 0.5), rgba(30, 41, 59, 0.5)), url(Bilder/Himmel.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: var(--white);
    clip-path: ellipse(150% 100% at 50% 0%);
    margin-bottom: 4rem;
}

#headerpic h1 {
    font-size: 3.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headlines */
.Kategorie {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border-bottom: none !important;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.Kategorie::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--accent);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Cards & Components */
.callBox {
    background-color: var(--white);
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
}

.callBox:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: var(--accent);
    color: var(--white) !important;
}

/* Aktuelles Section */
.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Opening Times */
.Openingtimes {
    background-color: var(--white);
    padding: 3rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: none;
    margin-top: 2rem;
}

.TableSprechstunden {
    border-right: 1px solid #e2e8f0;
    padding: 1rem 2rem;
}

.TableSprechstunden:last-child {
    border-right: none;
}

.picture_opening {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    border: none;
    opacity: 0.8;
}

/* Schwerpunkte */
.schwerpunkte {
    background: var(--white) !important;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.schwerpunkte:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-soft);
}

.schwerpunkteBild {
    color: var(--accent);
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
}

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

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
}

/* Helper Classes */
.normalizeA {
    color: inherit;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #headerpic h1 {
        font-size: 2.2rem;
        padding: 0 1rem;
    }

    .TableSprechstunden {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 2rem;
    }

    .TableSprechstunden:last-child {
        border-bottom: none;
    }

    .callBox {
        width: 100%;
        justify-content: center;
    }
}

/* Glassmorphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Page Header refinement */
#headerpic {
    min-height: 40vh !important;
    /* Smaller for subpages */
    margin-bottom: 3rem;
}

#headerpic h1 {
    font-size: 3rem;
}

/* Info Card enhancements */
.bg-accent-soft {
    background-color: var(--accent-soft);
}

.text-accent {
    color: var(--accent) !important;
}