/* 
   Project: Dr. Jungbluth - Modern Medical Premium 
   Design System: Deep Navy & Soft Gold
*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette - CI/CD Compliant */
    --color-primary: #0A3D91;
    /* Jungbluth Dunkelblau - CI/CD Official */
    --color-primary-light: #1e4a9f;
    --color-secondary: #3FA9F5;
    /* Jungbluth Hellblau - CI/CD Official */
    --color-accent: #C5A059;
    /* Jungbluth Gold - CI/CD Official */
    --color-accent-light: #e6c584;
    --color-bg-body: #f8fafc;
    /* Off-White - Clean, Soft */
    --color-bg-white: #ffffff;
    --color-text-main: #334155;
    /* Slate - Readable text */
    --color-text-muted: #64748b;
    --color-success: #10b981;

    /* Typography */
    --font-heading: 'Open Sans', Arial, sans-serif;
    --font-body: 'Open Sans', Arial, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* RGB Components (für rgba() in Gradients & Shadows) */
    --jb-primary-rgb: 10, 61, 145;       /* #0A3D91 */
    --jb-secondary-rgb: 63, 169, 245;    /* #3FA9F5 */
    --jb-gold-rgb: 197, 160, 89;         /* #C5A059 */
    --white-rgb: 255, 255, 255;
    --black-rgb: 0, 0, 0;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(var(--black-rgb), 0.1);
    --shadow-md: 0 4px 6px -1px rgba(var(--black-rgb), 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(var(--black-rgb), 0.1);
    --shadow-gold: 0 4px 14px 0 rgba(var(--jb-gold-rgb), 0.3);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    min-width: 44px;  /* WCAG 2.1 Touch Target */
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    border: 1px solid var(--color-bg-white);
    color: var(--color-bg-white);
}

.btn-outline:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
}

.section-padding {
    padding: 80px 0;
}

/* Services Section */
.services-section {
    background-color: var(--color-bg-body);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.service-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.service-content p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* About Section */
.about-section {
    background-color: var(--color-primary);
    color: white;
}

.about-section h2,
.about-section p {
    color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    padding-right: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: rgba(var(--white-rgb), 0.98);
    backdrop-filter: blur(10px);
    /* Fixed background */
    position: fixed;
    width: 100%;
    top: 40px;
    /* Below top bar */
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.nav-wrapper {
    background-color: rgba(var(--white-rgb), 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--black-rgb), 0.05);
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    background-color: transparent;
    /* Background handled by wrapper */
    padding: 0 20px;
    /* Reset padding to normal since wrapper handles width */
    margin: 0 auto;
    /* Ensure centering */
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    min-width: 250px;
    /* Prevent shrinking and text overlap */
    margin-right: 40px;
}

.logo img {
    height: 80px !important;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.service-img {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.about-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.mobile-cta {
    display: none !important;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-cta {
        display: inline-flex !important;
        margin-left: auto;
        /* Fix visibility on white header - override btn-outline */
        color: var(--color-primary) !important;
        border-color: var(--color-primary) !important;
    }
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(var(--jb-primary-rgb), 0.7), rgba(var(--jb-primary-rgb), 0.5)), url('../website_jungbluth_v3_vite/public/images/praxis_hero.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 140px;
    /* Offset fixed header + top bar */
}

/* ... existing styles ... */

/* Hero Small (for subpages) */
.hero-small {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(var(--jb-primary-rgb), 0.9), rgba(var(--jb-primary-rgb), 0.7));
    /* Darker overlay */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white !important;
    margin-top: 140px;
    /* Offset fixed header + top bar */
}

.hero-small h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white !important;
    /* Force white text */
    text-shadow: 0 2px 10px rgba(var(--black-rgb), 0.5);
    /* Stronger shadow */
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: rgba(var(--white-rgb), 0.7);
}

.breadcrumbs a {
    color: rgba(var(--white-rgb), 0.7);
}

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

/* Content Block */
.content-block {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.content-block h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.content-block p {
    margin-bottom: 20px;
}

.content-block ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-block li {
    margin-bottom: 10px;
}

/* Quick Access Cards */
.quick-access-section {
    position: relative;
    margin-top: -80px;
    /* Stronger overlap */
    z-index: 10;
    margin-bottom: 80px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* Increased gap */
}

.access-card {
    background: white;
    padding: 40px 30px;
    /* More vertical padding */
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(var(--black-rgb), 0.08);
    /* Premium soft shadow */
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--color-accent);
    /* Golden accent top */
}

.access-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(var(--black-rgb), 0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-accent);
    height: 60px;
    /* Fixed height for alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

.access-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.access-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.access-card a {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 2px;
}

.access-card a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s;
}

.access-card a:hover::after {
    width: 100%;
}

/* Form Styles */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;  /* iOS-Zoom-Bug Fix */
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(var(--jb-gold-rgb), 0.1);
}

/* Team Grid */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-card {
    display: flex;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    align-items: flex-start;
}

.team-card:nth-child(even) {
    flex-direction: row-reverse;
}

.team-img {
    width: 250px;
    height: 300px;
    background-size: cover;
    background-position: center top;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.team-content {
    flex: 1;
}

.team-content h3 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.team-content .role {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

/* Responsive Team */
@media (max-width: 768px) {

    .team-card,
    .team-card:nth-child(even) {
        flex-direction: column;
        gap: 20px;
    }



}

/* Sub-Navigation (Tabs/Pills) - GLOBAL */
.sub-nav-section {
    background-color: white;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 140px;
    /* Account for Header (100px) + TopBar (~40px) */
    z-index: 900;
}

.sub-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sub-nav a {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    background-color: var(--color-bg-body);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.sub-nav a:hover {
    color: var(--color-primary);
    background-color: #f1f5f9;
}

.sub-nav a.active {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Top Bar */
.top-bar {
    background-color: var(--color-primary);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1001;
    /* Above header nav */
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}

.top-bar a {
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-bar a:nth-child(2) {
    background: rgba(var(--white-rgb), 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(var(--white-rgb), 0.3);
    transition: all 0.3s ease;
}

.top-bar a:nth-child(2):hover {
    background: rgba(var(--white-rgb), 0.25);
    border-color: rgba(var(--white-rgb), 0.5);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
    padding: 8px;
    margin-left: auto;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    padding: 2rem;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-primary);
    padding: 8px;
}

.mobile-menu a {
    padding: 1rem 0;
    font-size: 1.1rem;
    color: var(--color-text-main);
    border-bottom: 1px solid #f1f5f9;
    display: block;
}

.mobile-menu a:hover {
    color: var(--color-accent);
}

.mobile-menu .btn-primary {
    margin-top: 1.5rem;
    justify-content: center;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-cta {
        display: none !important;
    }

    .sub-nav-section {
        top: 80px;
    }

    .hero {
        height: 70vh;
        margin-top: 100px;
    }

    .hero-small {
        height: 40vh;
        min-height: 300px;
        margin-top: 100px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-padding {
        padding: 50px 0;
    }

    /* Contact page grid */
    .container>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* =========================================
   PRO UTILITIES - Added for Professional V2 Subpages
   ========================================= */

/* Responsive Grid (Mobile: Stacked, Desktop: 2-Columns) */
.grid-responsive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    /* Using rem instead of var(--space-8) for V2 compatibility */
    margin-bottom: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .grid-responsive {
        grid-template-columns: 1fr 1fr;
    }

    /* Reverse order for zig-zag layout on desktop only */
    .grid-reverse .text-col {
        order: 2;
    }

    .grid-reverse .img-col {
        order: 1;
    }
}

/* Premium Image Styling */
.img-premium {
    width: 100%;
    height: 350px;
    /* Consistent height */
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.img-premium:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Feature Card (Veneers/Bleaching) */
.feature-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f1f5f9;
    /* fallback for var(--bg-light) */
    box-shadow: var(--shadow-sm);
}

.feature-img-bg {
    min-height: 250px;
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .feature-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-img-bg {
        min-height: 100%;
        /* Fill height on desktop */
    }
}

/* =========================================
   FOOTER STYLES
   ========================================= */

footer {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 0 20px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p a {
    color: rgba(var(--white-rgb), 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col p a:hover {
    color: var(--color-accent);
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(var(--white-rgb), 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(var(--white-rgb), 0.1);
    color: rgba(var(--white-rgb), 0.6);
    font-size: 0.85rem;
}

.copyright a {
    color: rgba(var(--white-rgb), 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

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

.schwesterpraxis-link {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s;
}

.schwesterpraxis-link:hover {
    color: white;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
}

/* =========================================
   HEADER SCROLL EFFECT
   ========================================= */

header.scrolled {
    background-color: rgba(var(--jb-primary-rgb), 0.95);
    box-shadow: 0 2px 20px rgba(var(--black-rgb), 0.1);
}