/**
 * SeniorenFotobox Website - Hauptstyles
 * Barrierefreies, responsives Design mit 4 Farbthemes
 */

/* === ROOT VARIABLES === */
/* Werden durch PHP dynamisch gesetzt */

/* === GRUNDLAGEN === */
:root {
    --bs-font-sans-serif: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
}

/* === TYPOGRAPHY === */
body {
    font-family: var(--bs-font-sans-serif);
    line-height: 1.6;
    padding-top: 76px; /* Kompensiert fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-start .section-title::after {
    left: 0;
    transform: none;
}

/* === BUTTONS === */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: rgba(var(--primary-rgb), 0.8);
    border-color: rgba(var(--primary-rgb), 0.8);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(var(--secondary-rgb), 0.8);
    border-color: rgba(var(--secondary-rgb), 0.8);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

.btn-outline-light:hover,
.btn-outline-light:focus {
    transform: translateY(-2px);
}

/* === NAVBAR === */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-rgb), 0.8));
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* === CARDS === */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.feature-card {
    height: 100%;
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

/* === PACKAGE CARDS === */
.package-card {
    border: 2px solid #eee;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.package-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.package-card.featured::before {
    content: 'BELIEBT';
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 10;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

/* === TRUST BADGES === */
.trust-badge {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
    height: 100%;
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* === FORMS === */
.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--secondary-rgb), 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* === ACCORDION === */
.accordion-button:not(.collapsed) {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary-color), rgba(var(--secondary-rgb), 0.3));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--secondary-color);
}

/* === ALERTS === */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
}

.alert-info {
    background-color: rgba(var(--secondary-rgb), 0.1);
    border-left: 4px solid var(--secondary-color);
    color: var(--primary-color);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    color: #856404;
}

/* === CONTENT SECTIONS === */
.content-section {
    padding: 4rem 0;
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(var(--secondary-rgb), 0.8);
    transform: translateY(-3px) scale(1.1);
}

/* === SOCIAL LINKS === */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* === MAP CONTAINER === */
.map-container {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    min-height: 300px;
}

/* === LOADING STATES === */
.spinner-border-custom {
    color: var(--secondary-color);
}

/* === ACCESSIBILITY === */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus States für bessere Accessibility */
a:focus, 
button:focus, 
.form-control:focus, 
.form-select:focus,
.btn:focus {
    outline: 3px solid rgba(var(--secondary-rgb), 0.5);
    outline-offset: 2px;
}

.form-control:focus,
.form-select:focus {
    outline: none; /* Bootstrap Focus State beibehalten */
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item::before {
        left: -1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .package-price {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .trust-badge {
        padding: 1rem;
    }
}

/* === PRINT STYLES === */
@media print {
    .navbar,
    .back-to-top,
    footer,
    .btn,
    .dropdown {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .content-section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1pt solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-on-hover:hover {
    animation: pulse 0.6s ease-in-out;
}

/* === UTILITY CLASSES === */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.border-secondary-custom {
    border-color: var(--secondary-color) !important;
}

/* === THEME-SPECIFIC OVERRIDES === */
/* Diese können für spezifische Theme-Anpassungen verwendet werden */
.theme-serious {
    /* Spezielle Styles für das "Seriös & Aktiv" Theme */
}

.theme-warm {
    /* Spezielle Styles für das "Warm & Fürsorglich" Theme */
}

.theme-modern {
    /* Spezielle Styles für das "Modern & Klar" Theme */
}

.theme-inviting {
    /* Spezielle Styles für das "Human & Einladend" Theme */
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--secondary-rgb), 0.8);
}

/* === HIGH CONTRAST MODE SUPPORT === */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .form-control,
    .form-select {
        border-width: 3px;
    }
}

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .back-to-top,
    .btn,
    .card,
    .feature-icon {
        transition: none;
    }
}
