/*
 * ============================================================
 *  Praxis Pinus – Rahel Aeschbacher
 *  Gemeinsames Stylesheet für alle Seiten
 * ============================================================
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: #4a4a4a;
    background-color: #ffffff;
    line-height: 1.7;
    font-size: 17px;
}

h1, h2, h3, h4 {
    font-family: 'Lustria', serif;
    color: #586068;
    font-weight: 400;
}

a {
    color: #7a9bae;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #5a7b8e;
}

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

/* ===== Header / Navigation ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 30px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area .logo-text {
    line-height: 1.15;
}

.logo-area .brand-sub {
    font-size: 11px;
    color: #8a9da8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.logo-area .brand-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #6a7d89;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    padding: 8px 12px;
    font-size: 17px;
    font-weight: 400;
    font-family: 'Lustria', serif;
    color: #050505;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: #3d4a52;
    background: rgba(163, 189, 204, 0.15);
}

nav a.active {
    color: #3d4a52;
    background: rgba(163, 189, 204, 0.20);
    border-radius: 6px;
}

/* CTA-Button «Termin buchen» */
.btn-cta {
    display: inline-block;
    background: #c3d5e0;
    color: #fff !important;
    padding: 13px 20px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 21px;
    letter-spacing: normal;
    transition: background 0.3s, transform 0.2s;
    margin-left: 10px;
}

.btn-cta:hover {
    background: #b3c2ce;
    transform: translateY(-1px);
}

/* Inline-CTA (z. B. auf TCM-Seite) */
.btn-cta-inline {
    display: inline-block;
    background: #c3d5e0;
    color: #fff;
    padding: 13px 32px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 17px;
    transition: background 0.3s, transform 0.2s;
}

.btn-cta-inline:hover {
    background: #b3c2ce;
    transform: translateY(-1px);
}

/* ===== Mobile Menu Toggle (Hamburger) ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #687078;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* X-Animation wenn Menu offen */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Tannenzapfen Hintergrundbild ===== */
.pine-bg {
    position: relative;
    overflow: hidden;
}

.pine-bg::before {
    content: '';
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 600px;
    background: url('Bilder/hintergrund-tannenzapfen.png') no-repeat center bottom;
    background-size: contain;
    opacity: 0.60;
    pointer-events: none;
    z-index: 0;
}

/* ===== Gemeinsame Seitenstruktur ===== */
.page-section {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 30px 80px;
    position: relative;
    z-index: 1;
}

.page-section h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #3d4a52;
}

.page-divider {
    width: 100%;
    height: 1px;
    background: #b0c4d0;
    margin: 20px 0 36px;
}

.page-intro {
    font-size: 1.05rem;
    color: #5a6570;
    margin-bottom: 50px;
    max-width: 700px;
}

/* ===== Preis-Box (verwendet auf TCM + Therapieangebot) ===== */
.price-box {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(195, 213, 224, 0.18);
    border: 1px solid rgba(163, 189, 204, 0.35);
    border-radius: 10px;
    padding: 16px 24px;
    margin-top: 10px;
}

.price-box-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #8a9da8;
    margin-bottom: 4px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-duration {
    font-size: 0.95rem;
    color: #5a6570;
    min-width: 90px;
}

.price-amount {
    font-size: 1.05rem;
    font-weight: 700;
    color: #3d4a52;
    font-family: 'DM Sans', sans-serif;
}

.price-note {
    font-size: 0.85rem;
    color: #8a9da8;
    margin-top: 6px;
    font-style: italic;
}

/* ===== Zitat / Blockquote ===== */
blockquote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-style: italic;
    font-size: 1.05rem;
    color: #6a7a85;
    line-height: 1.9;
    padding: 20px 40px;
    position: relative;
}

blockquote::before {
    content: '\201E';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: #c3d5e0;
    font-family: 'DM Sans', sans-serif;
}

blockquote cite {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-size: 0.85rem;
    color: #9aabb5;
}

/* ===== Formular (Kontakt) ===== */
.contact-form {
    max-width: 750px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #4a5560;
    margin-bottom: 4px;
    font-weight: 500;
}

.form-group label .required {
    color: #b0885a;
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c3d0d8;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #3d4a52;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #a3bdcc;
    box-shadow: 0 0 0 3px rgba(163, 189, 204, 0.25);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23687078' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

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

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #c47a6a;
    box-shadow: 0 0 0 3px rgba(196, 122, 106, 0.15);
}

.error-msg {
    color: #c47a6a;
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

/* Honeypot – versteckt vor Menschen */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Captcha */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.captcha-question {
    font-size: 1rem;
    color: #4a5560;
    font-weight: 500;
    background: rgba(195, 213, 224, 0.2);
    padding: 10px 18px;
    border-radius: 8px;
    white-space: nowrap;
}

.captcha-group input {
    width: 100px;
}

/* Absenden-Button */
.btn-submit {
    display: inline-block;
    background: #a3bdcc;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #8daab9;
    transform: translateY(-1px);
}

.btn-submit:disabled {
    background: #c8d4dc;
    cursor: not-allowed;
    transform: none;
}

/* Formular-Feedback */
.form-feedback {
    display: none;
    padding: 18px 24px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 1rem;
}

.form-feedback.success {
    display: block;
    background: rgba(139, 180, 148, 0.15);
    border: 1px solid rgba(139, 180, 148, 0.4);
    color: #4a7a55;
}

.form-feedback.spam-detected,
.form-feedback.error {
    display: block;
    background: rgba(196, 122, 106, 0.1);
    border: 1px solid rgba(196, 122, 106, 0.3);
    color: #a05a4a;
}

/* ===== Lightbox ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: lbFadeIn 0.25s ease;
}

.lightbox-overlay.active {
    display: flex;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    animation: lbZoomIn 0.3s ease;
}

@keyframes lbZoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.5);
    cursor: default;
    object-fit: contain;
}

.lightbox-caption {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    margin-top: 14px;
    opacity: 0.85;
}

.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #3d4a52;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    z-index: 10000;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    color: #3d4a52;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s, background 0.2s;
}

.lightbox-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* ===== Footer ===== */
footer {
    background: #a4b2bc;
    color: #fff;
    padding: 50px 30px 35px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #fff;
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 2px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.25);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner {
        padding: 6px 16px;
    }

    .logo-area img {
        width: 130px !important;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 12px 16px;
        width: 100%;
    }

    .btn-cta {
        margin: 10px 0 0;
        text-align: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    blockquote {
        padding: 20px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    .lightbox-close {
        top: -12px;
        right: -4px;
    }
}

/* ===== Kategorien-Trennlinie ===== */
.category-header { display: flex; align-items: center; gap: 16px; margin: 50px 0 30px; }
.category-header:first-of-type { margin-top: 0; }
.category-header h2 { font-size: 1.7rem; color: #3d4a52; white-space: nowrap; }
.category-line { flex: 1; height: 1px; background: #b0c4d0; }

/* ===== Akkordeon ===== */
.accordion-item { background: #e4d1d1; border: 1px solid #d2d2d2; border-radius: 4px; margin-bottom: 6px; overflow: hidden; }
.accordion-trigger { width: 100%; background: none; border: none; text-align: left; padding: 16px 20px; cursor: pointer; display: flex; align-items: center; gap: 14px; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600; color: #3d4a52; transition: background 0.2s; }
.accordion-trigger:hover { background: rgba(0,0,0,0.04); }
.accordion-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #3d4a52; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; line-height: 1; transition: transform 0.3s; font-weight: 400; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { display: none; padding: 4px 20px 20px 56px; }
.accordion-item.open .accordion-body { display: block; }
.accordion-body p { color: #4a5560; margin-bottom: 10px; font-size: 1rem; }
.accordion-body ul { list-style: none; padding: 0; margin: 8px 0 12px 0; }
.accordion-body ul li { padding: 3px 0 3px 20px; position: relative; color: #4a5560; font-size: 1rem; }
.accordion-body ul li::before { content: '–'; position: absolute; left: 4px; color: #a3bdcc; }

/* ===== Kasseninfo ===== */
.kasse-info { display: flex; align-items: flex-start; gap: 10px; background: rgba(122, 188, 163, 0.08); border-left: 3px solid rgba(122, 188, 163, 0.5); border-radius: 0 8px 8px 0; padding: 12px 16px; margin-top: 14px; font-size: 0.9rem; color: #4a5a50; }

/* ===== Zitat Bereich ===== */
.quote-area { text-align: center; margin-top: 60px; padding-top: 40px; border-top: 1px solid #b0c4d0; }

/* ===== CTA-Block (Seitenabschluss) ===== */
.page-cta { margin-top: 40px; text-align: center; padding: 36px 30px; background: rgba(195, 213, 224, 0.12); border: 1px solid rgba(163, 189, 204, 0.25); border-radius: 16px; }
.page-cta p { font-size: 1.05rem; color: #4a5560; margin-bottom: 20px; font-style: italic; }

@media (max-width: 768px) {
    .category-header { gap: 10px; }
    .accordion-body { padding: 4px 16px 16px 42px; }
    .page-cta .btn-cta-inline { display: block; margin: 0 auto 8px; max-width: 260px; }
}
