/* ========================================
   PHYSIOTHERAPIE BRANDHOFER – STYLESHEET
   Brand colors from logo PDF:
   Navy:  #2B2F5E
   Red:   #E6302B
   Teal:  #479F9C
   ======================================== */

/* ---- CUSTOM PROPERTIES ---- */
:root {
    --bg: #FFFFFF;
    --bg-alt: #F5F8F8;
    --primary: #479F9C;
    --primary-dark: #3A8582;
    --primary-light: #5BB5B2;
    --secondary: #DBF0EF;
    --navy: #2B2F5E;
    --red: #E6302B;
    --text: #2B2F5E;
    --text-light: #5A6178;
    --accent: #A8D5D3;
    --white: #FFFFFF;
    --border: #E2EAE9;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-brand: 'Capriola', var(--font);

    /* Spacing */
    --section-padding: 7rem 0;
    --container-width: 1140px;
    --radius: 12px;
    --radius-lg: 20px;

    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

/* ---- CONTAINER ---- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    gap: 0.5rem;
}

.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);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(71, 159, 156, 0.3);
}

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

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn--block {
    width: 100%;
}

/* ---- SECTION DEFAULTS ---- */
.section {
    padding: var(--section-padding);
}

.section__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section__title {
    font-family: var(--font-brand);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* ========================================
   LOGO
   ======================================== */
.header__logo {
    text-decoration: none;
    line-height: 0;
}

.header__logo-img {
    height: 120px;
    max-width: none;
}

.footer__logo-img {
    height: 80px;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 249, 249, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav__link:hover {
    color: var(--primary);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link.active {
    color: var(--primary);
}

.nav__link.active::after {
    width: 100%;
}

.header__cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all var(--transition);
    border-radius: 2px;
}

/* ---- MOBILE NAV ---- */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 2rem;
    z-index: 999;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav__link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy);
    border-bottom: 1px solid var(--border);
}

.mobile-nav__cta {
    margin-top: 1rem;
    text-align: center;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    padding: 10rem 0 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero__title {
    font-family: var(--font-brand);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.hero__title--accent {
    color: var(--primary);
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero__trust {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.trust-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.hero__brand-img {
    width: 100%;
}

.hero__photo {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 20px 60px rgba(43, 47, 94, 0.15);
}

/* ========================================
   LEISTUNGEN
   ======================================== */
.leistungen {
    background: var(--bg-alt);
}

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

.card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(71, 159, 156, 0.12);
    border-color: var(--accent);
}

.card__icon {
    width: 56px;
    height: 56px;
    background: var(--secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.card__title {
    font-family: var(--font-brand);
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.card__text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   ÜBER MICH
   ======================================== */
.ueber-mich__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.ueber-mich__photo {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 20px 60px rgba(43, 47, 94, 0.12);
}

.ueber-mich__content .section__label {
    text-align: left;
}

.ueber-mich__content .section__title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.ueber-mich__text {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.ueber-mich__text strong {
    color: var(--navy);
}

.ueber-mich__qualifikationen {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.quali {
    display: flex;
    flex-direction: column;
}

.quali__number {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    color: var(--primary);
    line-height: 1;
}

.quali__label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ========================================
   KASSENINFO
   ======================================== */
.kasseninfo {
    background: var(--bg-alt);
}

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

.kasseninfo__card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    text-align: center;
}

.kasseninfo__icon {
    width: 56px;
    height: 56px;
    background: var(--secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
}

.kasseninfo__card h3 {
    font-family: var(--font-brand);
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.kasseninfo__card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   ABLAUF
   ======================================== */
.ablauf__steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 300px;
    position: relative;
}

.step__number {
    font-family: var(--font-brand);
    font-size: 3rem;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 1rem;
}

.step__icon {
    width: 72px;
    height: 72px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
}

.step__title {
    font-family: var(--font-brand);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.step__text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 220px;
    margin: 0 auto;
}

.step__connector {
    width: 60px;
    height: 2px;
    background: var(--secondary);
    margin-top: 6.5rem;
    flex-shrink: 0;
}

/* ========================================
   BEWERTUNGEN
   ======================================== */
.bewertungen {
    background: var(--bg-alt);
}

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

.testimonial {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
}

.testimonial__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.testimonial__text {
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial__author {
    display: flex;
    flex-direction: column;
}

.testimonial__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
}

.testimonial__detail {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========================================
   FAQ
   ======================================== */
.faq__list {
    max-width: 700px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--border);
}

.faq__question {
    padding: 1.25rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--navy);
    transition: color var(--transition);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform var(--transition);
}

details[open] .faq__question::after {
    content: '\2212';
}

.faq__question:hover {
    color: var(--primary);
}

.faq__answer {
    padding: 0 0 1.25rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq__price-table {
    width: 100%;
    max-width: 320px;
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.95rem;
}

.faq__price-table th {
    text-align: left;
    font-weight: 600;
    color: var(--navy);
    padding: 0.5rem 1rem 0.5rem 0;
    border-bottom: 2px solid var(--primary);
}

.faq__price-table td {
    padding: 0.5rem 1rem 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.faq__price-table td:last-child,
.faq__price-table th:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--navy);
}

/* ========================================
   KONTAKT
   ======================================== */
.kontakt {
    background: var(--bg-alt);
}

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

.kontakt__info {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.kontakt__detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.kontakt__icon {
    width: 48px;
    height: 48px;
    background: var(--secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.kontakt__detail h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--navy);
}

.kontakt__detail p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.kontakt__detail a {
    color: var(--primary);
}

/* ---- CONTACT FORM ---- */
.kontakt__form-title {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.form__group {
    margin-bottom: 1rem;
}

.form__group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.form__optional {
    font-weight: 400;
    color: var(--text-light);
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(71, 159, 156, 0.15);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: #b0b8b7;
}

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

.kontakt__form .btn {
    margin-top: 0.5rem;
}

.kontakt__form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form__success {
    text-align: center;
    padding: 2rem 1rem;
}

.form__success svg {
    margin-bottom: 1rem;
}

.form__success h3 {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form__success p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.kontakt__map-placeholder {
    background: var(--bg);
    border-radius: var(--radius-lg);
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    border: 2px dashed var(--border);
}

.kontakt__map-placeholder span {
    font-size: 0.75rem;
    opacity: 0.6;
    max-width: 250px;
    text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer__tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.footer__links {
    display: flex;
    gap: 2rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: color var(--transition);
}

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

.footer__copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   STICKY MOBILE CTA
   ======================================== */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: rgba(247, 249, 249, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 998;
    transform: translateY(100%);
    transition: transform var(--transition);
}

.sticky-cta.visible {
    transform: translateY(0);
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1rem;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner__inner p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.cookie-banner__inner a {
    color: var(--primary);
    font-weight: 500;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ========================================
   FADE-IN ANIMATION
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in--delay-1 { transition-delay: 0.15s; }
.fade-in--delay-2 { transition-delay: 0.3s; }
.fade-in--delay-3 { transition-delay: 0.45s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .leistungen__grid,
    .bewertungen__grid,
    .kasseninfo__content {
        grid-template-columns: repeat(2, 1fr);
    }

    .ablauf__steps {
        flex-direction: column;
        align-items: center;
    }

    .step__connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .step {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4.5rem 0;
    }

    .header__nav,
    .header__cta {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .header__burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header__burger.active span:nth-child(2) {
        opacity: 0;
    }

    .header__burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 7rem 0 4rem;
        min-height: auto;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.05rem;
    }

    .hero__image {
        order: -1;
    }

    .hero__photo {
        aspect-ratio: 4/3;
        object-position: center top;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .leistungen__grid,
    .kasseninfo__content {
        grid-template-columns: 1fr;
    }

    .bewertungen__grid {
        grid-template-columns: 1fr;
    }

    .ueber-mich__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ueber-mich__photo {
        aspect-ratio: 4/3;
        object-position: center top;
    }

    .ueber-mich__qualifikationen {
        gap: 1.5rem;
    }

    .kontakt__inner {
        grid-template-columns: 1fr;
    }

    .sticky-cta {
        display: block;
    }

    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer {
        padding-bottom: 5rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.7rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .ueber-mich__qualifikationen {
        flex-direction: column;
        gap: 1rem;
    }

    .quali {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
    }

    .logo__name {
        font-size: 1.1rem;
    }

    .logo__physio {
        font-size: 0.7rem;
    }
}
