/* ===================================
   PHYSIOPOINT - HAUPTSTILE
   Globale Styles, Variables, Reset
   Mobile-First Approach
   =================================== */

/* CSS-Variablen für das Farbschema */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --secondary-color: #e6f2ff;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #dddddd;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

/* Reset und Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    text-align: left;
}

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

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

/* Container und Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Mobile Typography */
@media (max-width: 767px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    p {
        font-size: 1rem;
        text-align: left;
    }
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-sm);
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.logo span {
    color: var(--text-dark);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all 0.3s ease;
    border-radius: 4px;
}

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

/* Header Call to Action */
.header-cta {
    display: flex;
    align-items: center;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.cta-button:hover {
    background: var(--primary-color);
    color: #fff;
}

.phone-icon {
    font-size: 1.2rem;
}

.cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-label {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
}

.cta-number {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem var(--spacing-sm);
        gap: 1rem;
    }
    
    .menu-toggle {
        display: flex;
        order: 3; /* Nach CTA platzieren */
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }
    
    nav.active {
        max-height: 400px;
    }
    
    nav ul {
        flex-direction: column;
        padding: var(--spacing-sm);
        gap: 0;
    }
    
    nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav a {
        display: block;
        padding: var(--spacing-sm);
    }
    
    /* Header CTA Mobile - Angepasst für mobile Verfügbarkeit */
    .header-cta {
        display: flex;
        order: 2; /* Nach Logo, vor Menu-Toggle */
    }
    
    .cta-button {
        padding: 0.5rem;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
    }
    
    .cta-text {
        display: none; /* Nur Icon auf mobilen Geräten */
    }
    
    .phone-icon {
        font-size: 1.2rem;
        margin: 0;
    }
    
    /* Logo Mobile */
    .logo {
        order: 1; /* Erste Position */
        flex: 1;
    }
    
    .logo-image {
        height: 40px;
        max-width: 150px;
    }
    
    /* Menu Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* ===================================
   MAIN CONTENT
   =================================== */

main {
    min-height: calc(100vh - 200px);
    padding: 0;
}

section {
    margin-bottom: var(--spacing-xl);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--spacing-xl) var(--spacing-sm);
    text-align: center;
    border-radius: 8px;
    margin-bottom: var(--spacing-xl);
}

.hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.hero p {
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0.95;
    text-align: center;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ===================================
   FOOTER
   =================================== */

footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.footer-section h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* Logo Section */
.footer-logo {
    margin-bottom: var(--spacing-sm);
}

.footer-logo-image {
    height: 70px;
    width: auto;
    max-width: 220px;
    margin-bottom: 0.5rem;
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-logo-graphic {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-social-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.footer-social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-dark);
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-details {
    flex: 1;
}

.contact-details p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-details strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Links Section */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.footer-links li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Footer Bottom */
.footer-bottom {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-sm) 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
}

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

/* Meyer & Poczekaj Link */
.footer-bottom .dev-link {
    color: #72e0d0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom .dev-link:hover {
    color: #58b8b1;
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE DESIGN
   Tablet (768px+)
   =================================== */

@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   Desktop (1024px+)
   =================================== */

@media (min-width: 1024px) {
    h1 { font-size: 3rem; }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Footer Responsive */
@media (max-width: 767px) {
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        padding: var(--spacing-md) 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
}

/* ===================================
   STANDORT-AUSWAHL POPUP
   =================================== */

/* Popup Overlay */
.location-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.location-popup-overlay.active {
    display: flex;
}

/* Popup Container */
.location-popup {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    position: relative;
}

/* Popup Header */
.location-popup-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.location-popup-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--white);
    text-align: center;
}

.location-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.location-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Popup Body */
.location-popup-body {
    padding: 2rem 1.5rem;
}

.location-popup-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Location Options */
.location-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-option {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--white);
    cursor: pointer;
}

.location-option:hover {
    border-color: var(--primary-color);
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.location-option-icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.location-option-details {
    flex: 1;
}

.location-option-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    display: block;
}

.location-option-address {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.location-option-phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-option-phone-icon {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .location-popup {
        width: 95%;
        border-radius: 12px;
    }
    
    .location-popup-header {
        padding: 1.25rem;
        border-radius: 12px 12px 0 0;
    }
    
    .location-popup-header h2 {
        font-size: 1.3rem;
        padding-right: 2rem;
    }
    
    .location-popup-body {
        padding: 1.5rem 1rem;
    }
    
    .location-option {
        padding: 1.25rem;
    }
    
    .location-option-icon {
        font-size: 1.5rem;
        margin-right: 0.75rem;
    }
    
    .location-option-name {
        font-size: 1.1rem;
    }
    
    .location-option-address {
        font-size: 0.85rem;
    }
    
    .location-option-phone {
        font-size: 1rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.hidden { display: none; }

/* ===================================
   FADE-IN-UP ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base animation class */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Delayed animations for staggered effect */
.fade-in-up-delay-1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.fade-in-up-delay-2 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.fade-in-up-delay-3 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.fade-in-up-delay-4 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.fade-in-up-delay-5 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.fade-in-up-delay-6 {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* Intersection Observer classes - will be added via JS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .fade-in-up-delay-1,
    .fade-in-up-delay-2,
    .fade-in-up-delay-3,
    .fade-in-up-delay-4,
    .fade-in-up-delay-5,
    .fade-in-up-delay-6,
    .animate-on-scroll {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

