/* ============================================
   Physiotherapie Raptis — style.css
   ============================================ */

/* --- Fonts (self-hosted, DSGVO-konform) --- */
@font-face {
    font-family: 'Karla';
    src: url('../fonts/Karla-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Karla';
    src: url('../fonts/Karla-latin-ext.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Variables --- */
:root {
    --primary: #3a5a8d;
    --primary-dark: #2d4770;
    --primary-light: #4a6fa0;
    --dark: #222428;
    --bg: #ffffff;
    --bg-alt: #f3f4f6;
    --text: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --white: #ffffff;
    --font: 'Karla', sans-serif;
    --max-w: 1100px;
    --ease: 0.25s ease;
    --header-h: 64px;
    --radius: 6px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--ease);
    text-decoration: none;
    line-height: 1;
}

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

.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }

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

.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--ease);
}

.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-logo span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-logo:hover span { color: var(--primary-dark); }

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-cta {
    margin-left: 1rem;
}

.nav-cta .btn {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    position: absolute;
    left: 0;
    transition: all var(--ease);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile menu — transparent wrapper on desktop */
.mobile-menu {
    display: contents;
}

/* --- Sections --- */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg-alt); }

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

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

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.section-subtitle-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    margin-top: var(--header-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(34,36,40,0.82) 0%, rgba(58,90,141,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    width: 100%;
}

.hero-content .hero-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero-content .hero-motto {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* --- Job Banner --- */
.job-banner {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 1rem 1.5rem;
}

.job-banner a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
}

.job-banner a:hover {
    color: rgba(255,255,255,0.8);
}

/* --- Intro Text --- */
.intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.intro-text p {
    margin-bottom: 1rem;
}

/* --- About Teaser --- */
.about-teaser {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image img {
    border-radius: var(--radius);
    width: 100%;
}

.about-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.about-text .about-role {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.about-text .about-sub {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.about-text .qualifications {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.qualification-tag {
    background: rgba(58,90,141,0.08);
    color: var(--primary);
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Visitenkarte --- */
.vcard-section {
    position: relative;
    background: var(--bg-alt);
}

.vcard-section iframe {
    width: 100%;
    height: 800px;
    border: none;
}

.vcard-intro {
    text-align: center;
    padding: 3rem 1.5rem 0;
}

.vcard-intro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.vcard-intro p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.qr-code {
    width: 160px;
    height: 160px;
    margin: 1.5rem auto 0;
}

.qr-desktop { display: block; }
.qr-mobile { display: none; }

/* --- Features / Wir bieten --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(58,90,141,0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: left;
    transition: all var(--ease);
    text-decoration: none;
    color: var(--text);
    display: block;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(58,90,141,0.1);
    color: var(--text);
}

.service-card .service-icon {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(58,90,141,0.08);
    color: var(--primary);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--dark);
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    transition: opacity var(--ease);
}

.gallery-grid img:hover {
    opacity: 0.85;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.testimonial-card blockquote {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-footer img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-footer .name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.8rem;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 4rem 1.5rem;
}

.cta-banner h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-banner p {
    opacity: 0.7;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    padding: 3.5rem 1.5rem 1.5rem;
}

.footer-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-grid h4 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-grid a {
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.footer-grid a:hover { color: var(--white); }

.footer-info p {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.footer-motto {
    margin-top: 1rem;
    font-style: italic;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-bottom {
    max-width: var(--max-w);
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* --- Page Header --- */
.page-header {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 2.5rem;
    background: var(--bg-alt);
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Leistungen Detail --- */
.leistung-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.leistung-section:last-child { border-bottom: none; }

.leistung-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.leistung-section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* --- Über uns --- */
.about-full {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-full img {
    border-radius: var(--radius);
    width: 100%;
}

.about-full h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.about-full p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.service-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.service-areas span {
    background: var(--bg-alt);
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.map-container {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* --- Formular --- */
.form-container { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--dark); font-size: 0.9rem; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color var(--ease);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(58,90,141,0.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--ease);
    background: var(--bg-alt);
}

.upload-zone:hover,
.upload-zone.dragover { border-color: var(--primary); background: rgba(58,90,141,0.04); }

.upload-zone .upload-icon { font-size: 2rem; margin-bottom: 0.4rem; display: block; }
.upload-zone .upload-text { color: var(--text-muted); font-size: 0.9rem; }
.upload-zone .upload-text strong { color: var(--primary); }

.file-preview { display: none; align-items: center; gap: 0.75rem; padding: 0.6rem 0.85rem; background: var(--bg-alt); border-radius: var(--radius); margin-top: 0.5rem; }
.file-preview.active { display: flex; }
.file-preview .file-info { flex: 1; font-size: 0.85rem; color: var(--text-muted); }
.file-preview .file-remove { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 1.25rem; padding: 0.25rem; }
.file-preview .file-remove:hover { color: #ef4444; }

.form-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; }
.form-checkbox input[type="checkbox"] { width: auto; margin-top: 0.2rem; accent-color: var(--primary); }
.form-checkbox label { font-weight: 400; font-size: 0.85rem; color: var(--text-muted); }
.form-checkbox a { color: var(--primary); text-decoration: underline; }

.form-message { padding: 0.85rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; display: none; font-weight: 500; font-size: 0.9rem; }
.form-message.success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-message.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.btn-submit { width: 100%; justify-content: center; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* --- Legal Pages --- */
.legal-content { max-width: 680px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.legal-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-top: 2rem; margin-bottom: 0.5rem; }
.legal-content h3 { font-size: 1.05rem; font-weight: 600; color: var(--dark); margin-top: 1.25rem; margin-bottom: 0.4rem; }
.legal-content p { margin-bottom: 0.75rem; color: var(--text-muted); line-height: 1.7; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.legal-content li { margin-bottom: 0.4rem; color: var(--text-muted); }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .about-full, .about-teaser { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

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

    /* Mobile menu: override display:contents so it becomes a real box */
    .mobile-menu {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0.75rem;
        background: var(--white);
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        z-index: 999;
    }

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

    .mobile-menu .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-left: 0;
    }

    .mobile-menu .nav-cta {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
        margin-left: 0;
    }

    .hero { min-height: 70vh; }
    .hero-content h1 { font-size: 1.75rem; }
    .section-title { font-size: 1.35rem; }
    .services-grid { grid-template-columns: 1fr; }
    .about-teaser { gap: 2rem; }
    .about-image { order: -1; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .section { padding: 3rem 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .vcard-section iframe { height: 600px; }
    .qr-desktop { display: none; }
    .qr-mobile { display: block; }
}
