/**
 * Main Garten Glück - Main Stylesheet
 * Location: /assets/css/style.css
 * File: style.css
 * Function: Main styling definitions with responsive design and accessibility
 * Version: 1.0.0
 * Change History:
 * - v1.0.0: Initial stylesheet with complete responsive design and service styling
 */

/* CSS Variables */
:root {
    --primary: #2E8B57;
    --primary-dark: #1D5C3A;
    --primary-light: #4CAF6B;
    --secondary: #F8A31C;
    --secondary-light: #FFB84D;
    --light-bg: #F4F6F4;
    --dark-text: #243227;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: rgba(0, 0, 0, 0.125);
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    padding-top: 76px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
    border-radius: var(--border-radius);
}

/* Navigation - Enhanced UX */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
}

.navbar.scrolled .logo-img {
    height: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-text) !important;
    margin: 0 0.25rem;
    position: relative;
    transition: var(--transition-fast);
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    background: rgba(46, 139, 87, 0.1);
    color: var(--primary) !important;
}

.nav-link.active {
    color: var(--primary) !important;
    background: rgba(46, 139, 87, 0.05);
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    transition: var(--transition-fast);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--secondary);
}

.navbar-toggler-icon {
    transition: var(--transition-fast);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Tooltips */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-wrapper[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--dark-text);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1000;
    pointer-events: none;
}

.tooltip-wrapper[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(2px);
    border: 5px solid transparent;
    border-top-color: var(--dark-text);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.tooltip-wrapper:hover[data-tooltip]::after,
.tooltip-wrapper:hover[data-tooltip]::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Form Enhancements */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
    outline: none;
    background: #fafafa;
}

.form-control:valid {
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 1.06-1.06-1.06-1.06-.94.94L1.24 3.55l.94.94-.94.94 1.06 1.06L3.36 5.43l.94.94z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-control.is-invalid {
    border-color: var(--danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.5 5.5 1 1 1-1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-label {
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-label .required {
    color: var(--danger);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating > label {
    opacity: 0.7;
    transition: var(--transition-fast);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 1;
    color: var(--primary);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: var(--font-size-sm);
    color: var(--danger);
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox and Radio Enhancements */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #dee2e6;
    border-radius: 0.25rem;
    transition: var(--transition-fast);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.25);
}

/* Interactive Elements */
.clickable {
    cursor: pointer;
    transition: var(--transition-fast);
}

.clickable:hover {
    transform: translateY(-1px);
}

.clickable:active {
    transform: translateY(0);
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(46, 139, 87, 0.2);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Micro-interactions */
.scale-on-hover {
    transition: var(--transition-fast);
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.bounce-in {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Buttons - Enhanced UX */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.5;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

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

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

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.whatsapp {
    background: #25D366;
    border-color: #25D366;
}

.whatsapp:hover {
    background: #1db955;
    border-color: #1db955;
}

/* Hero Section - Enhanced */
.hero {
    background: linear-gradient(140deg, rgba(46, 139, 87, 0.96), rgba(29, 92, 58, 0.92)),
                url('/assets/images/hero-bg.webp') center/cover no-repeat;
    color: white;
    border-radius: 0 0 28px 28px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(248, 163, 28, 0.2) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

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

.hero .pill {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease 0.2s both;
    transition: var(--transition);
}

.hero .pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero .display-4 {
    animation: fadeInUp 0.8s ease 0.4s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    animation: fadeInUp 0.8s ease 0.6s both;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .btn {
    animation: bounceIn 0.8s ease 0.8s both;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--dark-text);
}

.hero .btn-light:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.hero .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

/* CTA Sections Enhancement */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Floating CTA Enhancement */
.floating-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 0.75rem;
    display: none;
    gap: 0.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-cta .btn {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 48px;
}

.floating-cta .whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
}

.floating-cta .whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-1px);
}

/* Notice Banner Enhancement */
.notice-banner {
    background: linear-gradient(90deg, var(--secondary), #FFD700);
    color: #1c1c1c;
    padding: 1rem 0;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.notice-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: slide 3s infinite;
}

@keyframes slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    background: var(--primary);
}

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

/* Service Cards */
.service-category {
    margin-bottom: 4rem;
}

.service-category-header {
    background: var(--light-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.service-category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.card.service {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.card.service:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.service .media {
    height: 200px;
    background: #f7f7f7;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

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

.card.service:hover .media img {
    transform: scale(1.06);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.service-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.125rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-features li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.service-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Service Details */
.service-detail {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.service-detail-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.service-detail-body {
    padding: 1.5rem;
}

.service-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
}

/* Contact Info */
.contact-info {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

/* QR Codes */
.qr-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
}

.qr-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    overflow: hidden;
    transition: var(--transition);
}

.qr-item:hover {
    box-shadow: var(--box-shadow-lg);
}

.qr-box {
    position: relative;
    width: 192px;
    height: 192px;
}

.qr-box img,
.qr-box canvas {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 192px;
    height: 192px;
    display: block;
}

.qr-label {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.6rem;
    word-break: break-all;
    color: var(--dark-text);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 0.6rem 0.8rem;
    display: none;
    gap: 0.6rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.floating-cta .btn {
    flex: 1;
    font-size: 0.9rem;
}

/* FAQ */
.accordion {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.accordion-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.accordion-button {
    background: white;
    border: none;
    font-weight: 500;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--light-bg);
    color: var(--primary);
    box-shadow: none;
}

.accordion-body {
    padding: 1.5rem;
    background: white;
}

/* Footer */
footer {
    background: #19251d;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Utility Classes */
.bg-light-custom {
    background-color: var(--light-bg) !important;
}

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

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

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        border-radius: 0 0 20px 20px;
        min-height: 50vh;
    }

    .hero .display-4 {
        font-size: 2rem;
    }

    .logo-img {
        height: 42px;
    }

    .floating-cta {
        display: flex;
    }

    .qr-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .qr-box,
    .qr-box img,
    .qr-box canvas {
        width: 224px;
        height: 224px;
    }

    .qr-item {
        padding: 22px;
    }

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

    .contact-info {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-group-mobile .btn {
        margin-bottom: 0.5rem;
    }

    .section-padding {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .hero .display-4 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1.125rem;
    }

    .service-category-header {
        padding: 1.5rem;
    }

    .contact-info {
        padding: 1rem;
    }

    .qr-box,
    .qr-box img,
    .qr-box canvas {
        width: 180px;
        height: 180px;
    }
}

/* Additional UX animations and effects */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.field-feedback {
    font-size: var(--font-size-sm);
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.field-feedback.success {
    color: var(--success);
    background: rgba(25, 135, 84, 0.1);
    border-left: 3px solid var(--success);
}

.field-feedback.error {
    color: var(--danger);
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid var(--danger);
}

/* Bootstrap Icons global enhancements */
.bi {
    transition: var(--transition-fast);
    vertical-align: -0.125em;
}

/* Icon hover effects in interactive elements */
.btn .bi,
.nav-link .bi,
.card .bi {
    transition: var(--transition-fast);
}

/* Focus states for interactive icons */
.bi:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Improved button states */
.btn:focus-visible {
    outline-color: var(--secondary);
    outline-offset: 3px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.5);
}

.btn:hover .bi,
.nav-link:hover .bi,
.card:hover .bi {
    transform: scale(1.1);
}

/* Icon colors for different contexts */
.form-label .bi {
    color: var(--primary);
}

.form-text .bi {
    color: var(--info);
    opacity: 0.8;
}

.alert .bi {
    flex-shrink: 0;
}

.contact-icon .bi {
    font-size: 1.1rem;
}

/* Star ratings */
.bi-star-fill {
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Service category icons */
.service-category-icon .bi {
    font-size: 1.5rem;
    transform: none;
}

/* Badge icons */
.badge .bi {
    font-size: 0.8rem;
    margin-right: 0.25rem;
}

/* Price icons */
.service-price .bi {
    color: var(--primary);
    font-weight: bold;
}

/* Required field indicators */
.required {
    color: var(--danger);
    font-weight: bold;
}

.required::before {
    content: "";
    width: 8px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    margin-right: 0.25rem;
    vertical-align: middle;
}

/* Select option styling with icons */
select option {
    padding-left: 1.5rem;
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: 0.5rem center;
}

/* Improved button states */
.btn:focus-visible {
    outline-color: var(--secondary);
    outline-offset: 3px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* Enhanced focus states */
*:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
    border-radius: var(--border-radius);
}

/* Enhanced hover states for cards */
.card:hover {
    box-shadow: var(--box-shadow-md);
    transform: translateY(-2px);
}

.card:hover .bi {
    color: var(--primary);
    transform: scale(1.1);
}

/* Smooth transitions for all interactive elements */
.card,
.btn,
.form-control,
.form-select,
.nav-link,
.navbar-brand,
.service-badge,
.contact-icon,
.qr-item {
    transition: var(--transition);
}

.bi {
    transition: var(--transition-fast);
}

/* Skip to main content enhancement */
.skip-link {
    position: absolute;
    top: -50px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-weight: 500;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--secondary);
}

/* Better focus management for keyboard users */
.keyboard-user *:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Loading overlay improvements */
.loading-overlay {
    border-radius: inherit;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    position: relative;
}

.loading-spinner::after {
    content: 'Laden...';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1rem;
    font-size: var(--font-size-sm);
    color: var(--primary);
    white-space: nowrap;
}

/* Print Styles */
@media print {
    .navbar,
    .floating-cta,
    .notice-banner,
    .scroll-progress {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    .hero {
        background: var(--primary) !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    .btn::before {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --box-shadow: 0 0 0 2px #000;
    }

    .btn {
        border-width: 2px;
    }

    .card {
        border: 2px solid var(--border-color);
    }
}

/* Dark mode preparation (for future implementation) */
@media (prefers-color-scheme: dark) {
    .card.service {
        background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    }
}

/* Performance optimizations */
.hero,
.card.service,
.btn {
    will-change: transform;
}

/* Improved mobile touch targets */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .form-control,
    .form-select {
        min-height: 44px;
        padding: 0.75rem;
    }

    .floating-cta .btn {
        min-height: 48px;
        font-size: 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
    .hero::before {
        animation: float 6s ease-in-out infinite;
    }

    .notice-banner::before {
        animation: slide 3s infinite;
    }

    .service-badge {
        animation: pulse 2s infinite;
    }
}

/* Focus management improvements */
.keyboard-navigation *:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
    border-radius: var(--border-radius);
}

/* Enhanced visual feedback */
.btn:active {
    transform: translateY(1px) scale(0.98);
}

.card.service:active {
    transform: translateY(-6px) scale(1.01);
}

/* Better loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: currentColor;
}




/* Service Detail Specific Styles */
.service-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.service-price-display {
    text-align: center;
}

.price-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-from {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    display: block;
    margin-bottom: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.price-unit {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    display: block;
    margin-top: 0.25rem;
}

/* Service Category Icons - Various Sizes */
.service-category-icon-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-category-icon-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: var(--box-shadow-md);
}

/* Service Detail Cards on Services Page */
.service-detail-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.service-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-info {
    flex-grow: 1;
}

.service-price {
    margin-top: 0.5rem;
}

.service-price .price-from {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.service-price .price-amount {
    font-size: 1.25rem;
    font-weight: 600;
}

.service-price .price-unit {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-left: 0.25rem;
}

/* Service Features */
.service-features {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

.service-features ul li {
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

/* Service Actions */
.service-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

/* Quick Links */
.service-quick-link {
    display: block;
    background: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-quick-link:hover {
    background: var(--light-bg);
    color: inherit;
    transform: translateX(4px);
    border-color: var(--primary);
}

.service-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Extended Service Content */
.extended-service-content {
    line-height: 1.7;
}

.extended-service-content h3 {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

/* Service Category Header */
.service-category-header {
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Price Display in Sidebar */
.price-display {
    text-align: center;
    padding: 1rem 0;
}

/* FAQ Accordion Customization */
.accordion-button:not(.collapsed) {
    background-color: var(--light-bg);
    color: var(--primary);
}

.accordion-button:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(46, 139, 87, 0.25);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .service-detail-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .service-detail-icon {
        align-self: center;
    }

    .service-category-icon-lg {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2rem !important;
    }

    .service-detail-card {
        padding: 1rem;
    }
}

/* Sticky Sidebar */
@media (min-width: 992px) {
    .sticky-top {
        position: sticky;
        top: 100px;
        z-index: 1020;
    }
}

/* Animation for Service Cards */
.service-detail-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Service badges */
.badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
}

/* Hover effects for interactive elements */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading states for buttons */
.btn[data-loading="true"] {
    position: relative;
    color: transparent !important;
}

.btn[data-loading="true"]::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: currentColor;
    animation: spin 1s linear infinite;
    color: white;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Print styles */
@media print {
    .service-detail-card,
    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .btn,
    .service-actions {
        display: none !important;
    }

    .sticky-top {
        position: static !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-detail-card {
        border: 2px solid var(--dark-text);
    }

    .service-quick-link {
        border: 2px solid var(--dark-text);
    }

    .service-quick-link:hover {
        background: var(--dark-text);
        color: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .service-detail-card,
    .service-quick-link,
    .btn {
        transition: none;
        animation: none;
    }

    .service-detail-card:hover {
        transform: none;
    }

    .service-quick-link:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.service-quick-link:focus-visible,
.service-detail-card:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
    .service-detail-card {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .service-quick-link {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .service-category-header {
        background: rgba(255, 255, 255, 0.05);
    }
}