/* ===================================================
   ZENTRALE STYLES - Dr. Florian Bosse Website
   Gemeinsame CSS-Regeln für alle Seiten
   =================================================== */

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

/* ===== VARIABLEN ===== */
:root {
    --petrol: #34585B;
    --petrol-dark: #254449;
    --petrol-light: #486E72;
    --petrol-lighter: #648A8E;
    --cream: #E8DDD3;
    --cream-light: #F5F1ED;
    --beige: #D4C9BF;
    --off-white: #FAFAF8;
    --text-primary: #172E31;
    --text-secondary: #34585B;
    --text-light: #648A8E;
}

/* ===== BODY ===== */
body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--off-white);
    overflow-x: hidden;
    font-weight: 400;
}

/* ===== TYPOGRAFIE ===== */
h1, h2, h3 {
    font-family: 'Crimson Pro', serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ===== NAVIGATION (Basis für alle Seiten) ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 244, 238, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(52, 88, 91, 0.08);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-weight: 400;
    color: var(--petrol);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-image {
    height: 40px;
    width: 150px; /* ← statt auto */
    display: inline-block;  /* ← block macht das SVG zu breit! */
    vertical-align: middle;
}

/* ===== BACK LINK (Unterseiten) ===== */
.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: var(--petrol);
}

.back-link::before {
    content: '←';
    font-size: 1.2rem;
}

/* ===== FOOTER (Basis-Stil) ===== */
.footer-logo-mobile {
    display: none;
}
@media (max-width: 768px) {
    .footer-logo-mobile {
        display: block;
        margin-top: 1rem;
        text-align: left;
    }
}
footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 2.5rem 2rem;
    text-align: center;
}

footer p {
    font-size: 0.85rem;
    font-weight: 300;
}

footer a {
    color: var(--cream);
    text-decoration: underline;
}

/* ===== RESPONSIVE LOGO SIZING (Für alle Seiten) ===== */
@media (max-width: 768px) {
    .logo-image {
        height: 36px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 32px;
    }
    
    .logo {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
}

@media (max-width: 400px) {
    .nav-container {
        padding: 1.5rem 1rem;
    }
}

/* ===== NAVIGATION & BURGER MENU ===== */
.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--petrol);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--petrol); }
.nav-links a:hover::after { width: 100%; }
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}
.burger-menu span {
    width: 24px;
    height: 2px;
    background: var(--petrol);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(23, 46, 49, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 968px) {
    .burger-menu { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--off-white);
        flex-direction: column;
        padding: 8rem 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        transition: right 0.7s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .nav-links li {
        opacity: 0;
        transform: translateX(30px);
        border-top: 1px solid rgba(52, 88, 91, 0.08);
        padding: 1.8rem 0;
    }
    .nav-links li:first-child { border-top: none; padding-top: 0; }
    .nav-links li:last-child { padding-bottom: 0; }
    .nav-links.active li {
        animation: slideInMenuItem 0.6s ease-out forwards;
    }
    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-links.active li:nth-child(6) { animation-delay: 0.6s; }
    @keyframes slideInMenuItem {
        to { opacity: 1; transform: translateX(0); }
    }
    .nav-links a { font-size: 1.1rem; display: block; }
}

/* ===== CTA BUTTON ===== */
.cta-button {
    display: inline-block;
    background: var(--petrol);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 88, 91, 0.2);
}
.cta-button:hover {
    background: var(--petrol-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 88, 91, 0.3);
}

/* ===== NAV SCROLL BEHAVIOUR ===== */
nav.hide-on-scroll {
    transform: translateY(-100%);
}
nav.fast-transition {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ===== SECTION LAYOUT ===== */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-intro {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
.section-intro h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 400;
}
.section-intro p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* ===== APPROACH PHOTO (Unterseiten Hero) ===== */
.approach-photo {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
