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

:root {
    --primary-dark: #009ee0;
    /* Main blue from practice logo */
    --primary-darker: #007dac;
    /* Darker shade for top bar and hover states */
    --bg-grey: #eef1f5;
    /* Light grey for cards background */
    --text-dark: #222222;
    --text-light: #555555;
    --bg-white: #ffffff;
    --accent-blue: #005073;
    /* Dark contrast blue for buttons or emphasis */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: white;
    border: none;
}

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

/* New Header & Navigation */
.top-bar {
    background-color: var(--primary-darker);
    color: #ccc;
    font-size: 13px;
    padding: 8px 40px;
    text-align: right;
    letter-spacing: 0.5px;
}

header {
    background-color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.logo-container {
    padding: 10px 40px;
    display: flex;
    align-items: center;
    width: 35%;
    background-color: var(--bg-white);
    position: relative;
    z-index: 2;
}

.logo-container img {
    height: 85px;
}

/* Slanted Navigation Container */
.nav-container {
    width: 65%;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 50px;
    padding-right: 60px;
    /* Create the \ slant effect */
    clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -20px;
    position: relative;
    z-index: 1;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.nav-links a:hover {
    color: #aeb5be;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-dark);
    padding: 20px;
    align-self: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: url('hero_compilation.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Light overlay to make text readable */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    /* Using dark grey/black as in image */
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 30px;
}

/* Services Block */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-grey);
    text-align: center;
}

.services-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #ccc;
}

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

.service-card {
    background-color: white;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: var(--bg-grey);
    padding: 40px 20px;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.footer-left {
    line-height: 1.4;
}

.footer-center {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
}

.footer-center a {
    color: var(--text-dark);
}

.footer-right a {
    margin-left: 15px;
    color: var(--text-dark);
}

/* Responsive Tablets */
@media (max-width: 900px) {
    .nav-container {
        width: 75%;
    }

    .logo-container {
        width: 25%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .top-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px 10px;
        text-align: center;
    }

    .top-bar span {
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: center;
    }

    header {
        height: auto;
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .logo-container {
        width: 100%;
        padding: 0;
        justify-content: space-between;
    }

    .logo-container img {
        height: auto;
        max-height: 60px;
        width: auto;
        max-width: 70vw;
    }

    .menu-toggle {
        display: block;
        position: relative;
        top: 0;
        right: 0;
        padding: 10px;
    }

    .nav-container {
        width: 100%;
        padding: 0;
        clip-path: none;
        margin: 10px 0 0 0;
        justify-content: center;
        display: none;
        /* simple toggle */
        flex-direction: column;
        padding: 20px;
    }

    .nav-container.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Subpages Generic Header */
.page-header {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('leistungen_bg.jpg') no-repeat center center/cover;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-weight: 700;
}

/* Technik & Verfahren specific header background */
.page-header--technik {
    background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)), url('technik_header_bg.png') no-repeat center center/cover;
}

/* Digitale Zahnmedizin specific header background */
.page-header--digitale {
    background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)), url('prothetik_bg.png') no-repeat center center/cover;
}

/* Jobs specific header background */
.page-header--jobs {
    background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)), url('jobs_bg.png') no-repeat center center/cover;
}

/* Service specific header background */
.page-header--service {
    background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)), url('service_bg.png') no-repeat center center/cover;
}

/* News specific header background */
.page-header--news {
    background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)), url('news_bg.png') no-repeat center center/cover;
}

/* Impressum specific header background (using jpg) */
.page-header--impressum {
    background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)), url('impressum_bg.jpg') no-repeat center center/cover;
}

/* Kontakt specific header background */
.page-header--kontakt {
    background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)), url('kontakt_bg.jpg') no-repeat center center/cover;
}

/* Team specific header background */
.page-header--team {
    background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)), url('team_bg.jpg') no-repeat center center/cover;
}

/* Leistungen List Styles */
.leistungen-container {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.leistungen-cluster {
    margin-bottom: 40px;
}

.leistungen-cluster h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.leistungen-list {
    list-style: none;
    padding-left: 0;
}

.leistungen-list li {
    font-size: 1.1rem;
    color: var(--text-dark);
    /* Keep text dark as in mockup */
    margin-bottom: 6px;
    font-weight: 400;
}

/* Technik & Verfahren Split Screen */
.technik-split-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 80vh;
}

.technik-text-side {
    flex: 1;
    min-width: 300px;
    background-color: var(--primary-dark);
    color: white;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.technik-text-side h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #eef1f5;
    margin-bottom: 20px;
    font-weight: 500;
}

.technik-text-side blockquote {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 30px;
    color: white;
}

.technik-text-side blockquote strong {
    font-weight: 700;
}

.technik-text-side p {
    font-size: 1rem;
    color: #cbe6f1;
    line-height: 1.6;
    margin-bottom: 30px;
}

.technik-image-side {
    flex: 1;
    min-width: 300px;
    background: url('technik_bg.png') no-repeat center center/cover;
    /* Requires the image to be named technik_bg.png */
}

/* Specific Pill Button for Dark BG */
.btn-outline-light {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    background-color: #cbe6f1;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

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

@media (max-width: 900px) {
    .technik-split-section {
        flex-direction: column;
    }
    
    .technik-image-side {
        min-height: 400px;
    }
}