/* =========================================================================
   ZAHNARZT BACKHEUER - DESIGN TOKENS & BASE
   ========================================================================= */

:root {
    /* Colors */
    --bg-primary: #FCFCFC;     /* Off-white, soft background */
    --bg-light: #F4F7F6;       /* Very subtle grey-green/blue for alternating sections */
    --bg-accent-blue: #E8F0F2; /* Soft blue accent */
    
    --text-primary: #2C3539;   /* Dark, readable slate */
    --text-secondary: #5A6970; /* Muted text */
    
    --brand-primary: #3B6978;  /* Trustful, calming blue-green */
    --brand-secondary: #84A9AC;/* Softer blue-green */
    --brand-accent: #204051;   /* Deepest contrast */
    --cta-color: #D3A771;      /* Warm golden-beige highlight if needed, or stick to deep blue */

    /* Typography */
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif; /* Optional for elegance in headlines */
    
    --text-base: 1.125rem; /* 18px */
    --text-lg: 1.35rem;  
    --text-xl: 1.75rem;
    --text-2xl: 2.25rem;
    --text-3xl: 3rem;
    --text-4xl: 4rem;
    
    /* Spacing & Layout */
    --spacing-1: 0.5rem;
    --spacing-2: 1rem;
    --spacing-3: 1.5rem;
    --spacing-4: 2.5rem;
    --spacing-5: 4rem;
    --spacing-6: 6rem;
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 40px rgba(32, 64, 81, 0.05);
    --shadow-hover: 0 15px 50px rgba(32, 64, 81, 0.08);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */

h1, h2, h3, h4 {
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-2);
    color: var(--brand-accent);
}

h1 {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
}

h2 {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-xl);
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-2);
}

.subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.text-accent {
    color: var(--brand-primary);
    font-style: italic; /* A little flair */
}

/* =========================================================================
   UTILITIES
   ========================================================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-3);
}

.section-padding {
    padding: var(--spacing-6) 0;
}

.text-center { text-align: center; }
.max-w-content { max-width: 800px; margin: 0 auto; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-inline: auto; }

.mt-1 { margin-top: var(--spacing-1); }
.mt-2 { margin-top: var(--spacing-2); }
.mt-3 { margin-top: var(--spacing-3); }
.mt-4 { margin-top: var(--spacing-4); }
.mb-2 { margin-bottom: var(--spacing-2); }
.pb-4 { padding-bottom: var(--spacing-4); }
.p-3 { padding: var(--spacing-3); }

.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: #fff; }
.bg-accent-blue { background-color: var(--bg-accent-blue); }

.radius-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow-soft); }

.text-sm { font-size: 0.9rem; }
.opacity-70 { opacity: 0.7; }

/* =========================================================================
   BUTTONS
   ========================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    text-transform: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--brand-primary);
    color: #fff;
    border: 2px solid var(--brand-primary);
}

.btn-primary:hover {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 105, 120, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-accent);
    border: 2px solid rgba(32, 64, 81, 0.1);
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-text {
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.btn-text:hover {
    color: var(--brand-accent);
}

.btn.large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* =========================================================================
   HEADER
   ========================================================================= */

.header {
    background: rgba(252, 252, 252, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 600;
    color: var(--brand-primary);
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* =========================================================================
   HERO
   ========================================================================= */

.hero {
    padding: 6rem 0;
    overflow: hidden; /* So border-radius shapes don't leak out */
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    aspect-ratio: 4/5;
    width: 100%;
}

/* =========================================================================
   GRIDS & LAYOUTS
   ========================================================================= */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.grid-2-img {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-2-img.reverse .content-side {
    order: 2;
}

/* =========================================================================
   CARDS & FEATURES
   ========================================================================= */

.card {
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.card-base {
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
    border-radius: var(--radius-md); /* a bit smaller radius for trust cards */
}

.card-base:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    color: var(--brand-secondary);
    margin-bottom: 1.5rem;
}

.card-premium {
    padding: 2.5rem;
    background: #fff;
    border-left: 4px solid var(--brand-secondary);
}

.card-premium h3 {
    margin-bottom: 0.5rem;
    color: var(--brand-primary);
}

.card-premium p {
    color: var(--text-secondary);
    margin: 0;
}

.card-premium:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

/* Services inline icons */
.service-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    background: #fff;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service-icon-box:hover {
    box-shadow: var(--shadow-soft);
    color: var(--brand-primary);
}

.service-icon-box ion-icon {
    font-size: 2.5rem;
    color: var(--brand-secondary);
}

.service-icon-box p {
    font-weight: 500;
    margin: 0;
}

/* =========================================================================
   CONTACT
   ========================================================================= */

.huge-phone a {
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--brand-accent);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.huge-phone a:hover {
    color: var(--brand-primary);
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hours-list li:last-child {
    border-bottom: none;
}

.separator {
    height: 1px;
    background: rgba(0,0,0,0.05);
}

/* =========================================================================
   RESPONSIVE (Mobile First approach applied via media queries)
   ========================================================================= */

@media (max-width: 992px) {
    .hero-inner, .grid-2-img, .grid-3 {
        gap: 2rem;
    }
    h1 {
        font-size: 3rem;
    }
    .hero-image img {
        aspect-ratio: 1/1;
    }
}

@media (max-width: 768px) {
    .hero-inner, .grid-2-img, .grid-3, .grid-2, .grid-5 {
        grid-template-columns: 1fr;
    }
    
    .grid-2-img.reverse .content-side {
        order: 0;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-outline {
        padding: 0.5rem 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .huge-phone a {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    .btn.large {
        width: 100%;
    }
}
