/* Self-hosted fonts (replaces Google Fonts CDN) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('assets/fonts/inter-latin-variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('assets/fonts/outfit-latin-variable.woff2') format('woff2');
}

/* Design System & Reset */
:root {
    /* Corporate Design, siehe docs/design-guidelines.md */
    --green-dark: #28401D;
    --green-sage: #B1BC8E;
    --green-muted: #9BA590;
    --sand: #D0CAC2;
    --ink: #1D1D1B;
    --white: #FFFFFF;

    /* Rollen */
    --bg-dark: #FFFFFF;
    --bg-darker: #F6F5F1;
    --bg-card: #F5F4EF;
    --bg-card-hover: #EDEBE3;
    --text-main: #1D1D1B;
    --text-muted: #5C6153;
    --accent: #28401D;
    --accent-hover: #1A2B12;
    --border: rgba(40, 64, 29, 0.14);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 8rem;
    
    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
}

.text-accent {
    color: var(--accent);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: var(--spacing-xxl) 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

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

/* --- Barrierefreiheit --- */

/* Nur fuer Screenreader, optisch ausgeblendet */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Sprung zum Inhalt: unsichtbar, bis er per Tab fokussiert wird */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
    transform: translateY(-120%);
    background-color: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-md) 0;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Deutlich sichtbarer Fokusring statt des blassen Browser-Standards */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Auf dunkelgruenem Grund braucht der Ring eine helle Farbe */
.footer :focus-visible,
.btn-primary:focus-visible {
    outline-color: var(--green-sage);
}

/* main wird vom Skip-Link angesprungen, soll dabei aber keinen Rahmen bekommen */
main[tabindex="-1"]:focus {
    outline: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark);
    border: 2px solid var(--accent);
}

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

.btn-secondary {
    background-color: rgba(177, 188, 142, 0.3);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(177, 188, 142, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-wrapper:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--accent);
}

.nav a.active {
    color: var(--accent);
}

.nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: saturate(0.8) contrast(1.2);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.55) 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-content .subtitle {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero-content .description {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-actions.center {
    justify-content: center;
}

/* Sub-page Hero (e.g. Physio page) */
.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.page-hero .hero-content {
    max-width: 800px;
}

/* Ablauf / Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.team-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background-color: rgba(177, 188, 142, 0.35);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Leistungen grid (Physio page) */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.leistung-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition);
}

.leistung-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

/* Intro / "Was ist ...?" */
.intro-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.intro-image img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.intro-text .subtitle {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Accordion (Leistungsdetails) */
.accordion {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: rgba(40, 64, 29, 0.3);
}

.accordion-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary::after {
    content: '+';
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
}

.accordion-item[open] summary {
    border-bottom: 1px solid var(--border);
}

.accordion-item[open] summary::after {
    content: '\2212';
}

.accordion-item p {
    padding: 1.25rem 1.5rem;
    margin: 0;
    color: var(--text-muted);
}

/* Services */
.section-header {
    margin-bottom: var(--spacing-xl);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(40, 64, 29, 0.25);
    box-shadow: 0 20px 40px rgba(29, 29, 27, 0.12);
}

.service-img {
    height: 300px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-img .tint {
    position: absolute;
    inset: 0;
    background: rgba(40, 64, 29, 0.35);
}

.service-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
}

.leader {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent);
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.price-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.price-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(177, 188, 142, 0.4) 100%);
    box-shadow: 0 18px 40px rgba(40, 64, 29, 0.14);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.price {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 1rem 0 0.5rem;
}

.price span {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.billing {
    font-size: 0.85rem;
    margin: 0;
}

.price-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.price-features ul {
    list-style: none;
}

.price-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(40, 64, 29, 0.1);
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.price-features li::before {
    content: '✓';
    color: var(--accent);
    margin-right: 10px;
    font-weight: bold;
}

/* Location */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.address {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.partners {
    margin-top: 3rem;
}

.partners h3 {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.partner-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.partner-tags span {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.location-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
}

/* Social links (footer) */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
}

.social-links svg {
    width: 22px;
    height: 22px;
}

/* Legal pages (Impressum, Datenschutz, AGB) */
.legal-content {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content a {
    color: var(--accent);
}

.legal-content code {
    background-color: var(--bg-card);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.notice-box {
    background-color: rgba(177, 188, 142, 0.22);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.notice-box strong {
    color: var(--accent);
}

/* Footer */
.footer {
    background-color: var(--green-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--spacing-xl) 0 2rem;
    border-top: 1px solid var(--border);
}

/* Footer steht auf Dunkelgruen, daher helle Schrift darauf */
.footer .logo-title {
    color: var(--white);
}

.footer .logo-subtitle {
    color: var(--green-sage);
}

.footer .footer-col h3 {
    color: var(--green-sage);
}

/* Schlaegt die globale p-Regel, die sonst dunkel auf Dunkelgruen faerbt */
.footer p {
    color: rgba(255, 255, 255, 0.75);
}

.footer .footer-col a,
.footer .footer-links a,
.footer .social-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer .footer-col a:hover,
.footer .footer-links a:hover,
.footer .social-links a:hover {
    color: var(--green-sage);
}

.footer .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.18);
}

.footer-grid {
    display: grid;
    /* Drei Spalten: die Oeffnungszeiten kommen erst zum Livegang dazu */
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--spacing-lg);
}

.footer-col h3 {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-brand p {
    max-width: 240px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: var(--spacing-lg);
    padding-top: 1.5rem;
    text-align: center;
}

.copyright {
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid, .location-content, .intro-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .price-card.featured:hover {
        transform: translateY(-5px);
    }
    
    h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
}

@media (max-width: 768px) {
    .nav ul {
        display: none; /* Add a hamburger menu for real production */
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }
}

/* Wer im System "Bewegung reduzieren" gesetzt hat, bekommt keine
   Scroll-Animationen und keine verschiebenden Hover-Effekte. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .step-card:hover,
    .team-card:hover,
    .service-card:hover,
    .price-card:hover,
    .accordion-item:hover,
    .price-card.featured {
        transform: none;
    }
}
