/* ==========================================================================
   LOCAL FONT FACE EINBINDUNG (100% DSGVO-konform)
   ========================================================================== */
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 500;
    src: url('lora-v32-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('inter-v18-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('inter-v18-latin-600.woff2') format('woff2');
}

/* ==========================================================================
   DESIGN-SYSTEM VARIABLEN
   ========================================================================== */
:root {
    --bg-color: #f7f5f2;       /* Kieselstein */
    --main-tone: #8e8279;      /* Warmes Taupe */
    --text-color: #3d3531;     /* Schokoladengrau */
    --accent-color: #d4a396;   /* Altrosa */
    --text-light: #f7f5f2;     
    
    --font-headings: 'Lora', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* ==========================================================================
   BASIS & STRUKTUR
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.65;
    padding-top: 70px;
}

body.no-scroll {
    overflow: hidden;
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-layout {
    max-width: 850px;
}

/* ==========================================================================
   PASSWORT OVERLAY STYLES
   ========================================================================== */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.password-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(61, 53, 49, 0.1);
    max-width: 420px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(142, 130, 121, 0.2);
}

.password-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.password-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.password-card input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--main-tone);
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.password-card input[type="password"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 163, 150, 0.25);
}

.password-btn {
    width: 100%;
    padding: 0.85rem;
    background-color: var(--text-color);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.password-btn:hover {
    background-color: var(--main-tone);
}

.password-error {
    color: #c0392b !important;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   NAVIGATION & MOBILES OVERLAY
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #d4a396;
    border-bottom: 1px solid rgba(142, 130, 121, 0.2);
    z-index: 10000;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--main-tone);
}

.special-link {
    border: 1px solid var(--main-tone);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.special-link:hover {
    background-color: var(--main-tone);
    color: var(--text-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
}

.nav-close-wrapper {
    display: none;
    width: 100%;
    text-align: right;
    padding: 0 1.5rem;
}

.nav-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.6rem;
}

/* ==========================================================================
   LOGOS & GRAFIKEN
   ========================================================================== */
.main-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
}

.nav-mini-logo {
    height: 80px;
    width: auto;
    display: block;
}

/* ==========================================================================
   SEKTIONEN & TYPOGRAFIE
   ========================================================================== */
.section {
    padding: 5rem 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative;
}

.section-hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-alt {
    background-color: var(--main-tone);
    color: var(--text-light);
}

.section-alt h1,
.section-alt h2,
.section-alt h3,
.section-alt h4 {
    color: var(--text-light);
}

.section-alt a {
    color: var(--text-light);
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; margin-top: 2.5rem; }

.welcome-heading {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.subtext {
    font-size: 1.4rem;
    font-family: var(--font-headings);
    font-style: italic;
    opacity: 0.9;
}

.content-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.content-text strong {
    font-weight: 600;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.notice-box {
    background-color: #ffffff;
    color: var(--text-color);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.notice-box h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.quote-block {
    margin: 3rem 0;
    padding-left: 2rem;
    border-left: 3px solid var(--accent-color);
    font-family: var(--font-headings);
}

.quote-block p {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.quote-block cite {
    font-size: 0.95rem;
    opacity: 0.85;
    font-style: normal;
    display: block;
}

ul {
    list-style: none;
    margin: 1.5rem 0;
}

ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ==========================================================================
   BILDER & MEDIEN
   ========================================================================== */
.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.profile-img, .praxis-img {
    box-shadow: 0 4px 20px rgba(61, 53, 49, 0.12);
}

.central-image {
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   TRENNLINIE (Sektions-Separator - Volle Bildschirmbreite)
   ========================================================================== */
.tusche-separator {
    position: relative;
    width: 100%;
    height: 40px;
    margin-top: -20px;
    margin-bottom: -20px;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    overflow: hidden;
}

.tusche-separator img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: fill;
    display: block;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-map-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.drawn-map {
    width: 100%;
    height: auto;
    display: block;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.map-link:hover {
    opacity: 0.8;
}

.accessibility-note {
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   FIXIERTE KONTAKT-LEISTE
   ========================================================================== */
.fixed-contact-bar {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    border-radius: 4px;
    background-color: var(--text-color);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, transform 0.2s;
}

.contact-btn:hover {
    background-color: var(--main-tone);
    transform: translateY(-2px);
}

.contact-btn .icon {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-section {
    border-top: none;
}

.footer-links {
    margin-top: 2rem;
}

.footer-links a {
    color: var(--main-tone);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILES OVERLAY
   ========================================================================== */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-close-wrapper {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background-color: var(--main-tone);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1.5rem;
        padding: 1.5rem 0 2.5rem 0;
        
        display: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 10002;
    }

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

    .nav-menu .nav-link {
        color: var(--text-light);
        font-size: 1.2rem;
    }

    .nav-menu .special-link {
        border-color: var(--text-light);
        color: var(--text-light);
    }

    .nav-menu .special-link:hover {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
    }

    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    
    .grid-2col, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
    
    .mobile-break { display: none; }
    
    .main-logo {
        max-width: 140px;
    }

    .nav-mini-logo {
        height: 30px;
    }

    .tusche-separator img {
        width: 100%;
    }

    .fixed-contact-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        flex-direction: row;
        gap: 0;
        width: 100%;
    }

    .contact-btn {
        flex: 1;
        border-radius: 0;
        padding: 1.1rem 0;
        box-shadow: none;
    }

    .phone-btn {
        background-color: var(--text-color);
        border-right: 1px solid rgba(247, 245, 242, 0.2);
    }

    .mail-btn {
        background-color: var(--text-color);
    }

    .contact-btn:hover {
        transform: none;
    }
}