/* Heilkraft Partner CSS - Professionelles Design */

/* CSS Custom Properties */
:root {
    --hk-primary: #1f7a42;
    --hk-primary-dark: #0f5a34;
    --hk-primary-light: #e7f1eb;
    --hk-success: #28a745;
    --hk-warning: #ffc107;
    --hk-info: #17a2b8;
    --hk-light: #f8f9fa;
    --hk-dark: #343a40;
    --hk-white: #ffffff;
    
    --hk-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --hk-line-height: 1.6;
    --hk-border-radius: 8px;
    --hk-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hk-transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: var(--hk-font-family);
    line-height: var(--hk-line-height);
    color: var(--hk-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Gutschein-Banner */
.hk-banner {
    position: sticky;
    top: 0;
    z-index: 1030;
    font-weight: 500;
    animation: hk-pulse 2s infinite;
}

@keyframes hk-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* Header */
.hk-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.hk-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hk-primary) !important;
    text-decoration: none;
    transition: var(--hk-transition);
}

.hk-brand:hover {
    color: var(--hk-primary-dark) !important;
    transform: scale(1.05);
}

/* Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--hk-dark) !important;
    transition: var(--hk-transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--hk-primary) !important;
}

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

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--hk-box-shadow);
    border-radius: var(--hk-border-radius);
}

.dropdown-item {
    transition: var(--hk-transition);
}

.dropdown-item:hover {
    background-color: var(--hk-primary-light);
    color: var(--hk-primary);
}

/* Hero Section */
.hk-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hk-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hk-hero-bg.active {
    opacity: 1;
}

.hk-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 122, 66, 0.8), rgba(15, 90, 52, 0.6));
}

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

.hk-hero h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hk-hero .lead {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--hk-border-radius);
    transition: var(--hk-transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-success {
    background-color: var(--hk-success);
    border-color: var(--hk-success);
}

.btn-success:hover {
    background-color: var(--hk-primary);
    border-color: var(--hk-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

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

.btn-outline-success:hover {
    background-color: var(--hk-success);
    border-color: var(--hk-success);
    transform: translateY(-2px);
}

/* Tabs */
.hk-tabs .nav-link {
    border-radius: var(--hk-border-radius);
    font-weight: 500;
    color: var(--hk-dark);
    border: 2px solid transparent;
    transition: var(--hk-transition);
    margin: 0 0.5rem;
}

.hk-tabs .nav-link:hover {
    color: var(--hk-primary);
    border-color: var(--hk-primary-light);
    background-color: var(--hk-primary-light);
}

.hk-tabs .nav-link.active {
    color: var(--hk-white);
    background-color: var(--hk-primary);
    border-color: var(--hk-primary);
}

.hk-tabs .badge {
    font-size: 0.75rem;
}

/* Product Cards */
.hk-product-card {
    border: none;
    border-radius: var(--hk-border-radius);
    box-shadow: var(--hk-box-shadow);
    transition: var(--hk-transition);
    overflow: hidden;
}

.hk-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hk-image-wrapper {
    position: relative;
    overflow: hidden;
}

.hk-image-wrapper img {
    transition: var(--hk-transition);
    width: 100%;
    height: 200px; /* Feste Höhe für Konsistenz */
    object-fit: contain; /* Vollständiges Bild ohne Abschneiden */
    object-position: center;
    background-color: #f8f9fa; /* Heller Hintergrund für Letterboxing */
}

.hk-product-card:hover .hk-image-wrapper img {
    transform: scale(1.05);
}

.hk-image-wrapper .badge {
    z-index: 2;
}

.card-title {
    color: var(--hk-primary);
    font-weight: 600;
}

.card-text {
    color: #6c757d;
    line-height: 1.5;
}

/* Trust Section */
.hk-trust-item {
    padding: 2rem 1rem;
    transition: var(--hk-transition);
}

.hk-trust-item:hover {
    transform: translateY(-5px);
}

.hk-trust-item i {
    transition: var(--hk-transition);
}

.hk-trust-item:hover i {
    transform: scale(1.1);
    color: var(--hk-primary) !important;
}

/* Gutschein-Box */
.hk-coupon-box {
    background: linear-gradient(135deg, var(--hk-primary-light), var(--hk-white));
    border: 2px dashed var(--hk-primary);
    border-radius: var(--hk-border-radius);
    position: relative;
    overflow: hidden;
}

.hk-coupon-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(31, 122, 66, 0.1), transparent);
    animation: hk-shine 3s infinite;
}

@keyframes hk-shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hk-coupon-code {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hk-coupon-code span {
    color: var(--hk-primary);
    font-family: 'Courier New', monospace;
    background-color: var(--hk-white);
    padding: 0.5rem 1rem;
    border-radius: var(--hk-border-radius);
    border: 2px solid var(--hk-primary);
}

/* Contact Card */
.hk-contact-card {
    border: 1px solid #e9ecef;
    transition: var(--hk-transition);
}

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

/* Footer */
.hk-footer-contact a {
    text-decoration: none;
    transition: var(--hk-transition);
}

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

.hk-footer-coupon {
    position: relative;
    overflow: hidden;
}

.hk-footer-coupon::before {
    content: '🎁';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    opacity: 0.3;
}

/* WhatsApp Float */
.hk-whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.hk-whatsapp-float .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    animation: hk-bounce 2s infinite;
}

@keyframes hk-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.hk-whatsapp-float .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* A/B Test Variants */
[data-hk-ab-variant] {
    display: none;
}

[data-hk-ab-variant].active {
    display: block;
}

[data-hk-ab-variant="A"].active,
[data-hk-ab-variant="B"].active {
    display: inline-block;
}

/* FAQ Accordion */
.accordion-button {
    font-weight: 500;
    color: var(--hk-dark);
}

.accordion-button:not(.collapsed) {
    background-color: var(--hk-primary-light);
    color: var(--hk-primary);
    border-color: var(--hk-primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(31, 122, 66, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hk-hero {
        min-height: 50vh;
    }
    
    .hk-hero h1 {
        font-size: 2rem;
    }
    
    .hk-hero .lead {
        font-size: 1rem;
    }
    
    .hk-tabs .nav-link {
        margin: 0.25rem;
        font-size: 0.9rem;
    }
    
    .hk-coupon-code {
        flex-direction: column;
        text-align: center;
    }
    
    .hk-whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .hk-whatsapp-float .btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .hk-hero h1 {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hk-product-card .card-body {
        padding: 1rem;
    }
    
    .hk-image-wrapper img {
        height: 200px;
    }
}

/* Performance Optimizations */
.hk-hero-bg {
    will-change: opacity;
}

.hk-product-card {
    will-change: transform;
}

.btn {
    will-change: transform;
}

/* Print Styles */
@media print {
    .hk-banner,
    .hk-whatsapp-float,
    .btn {
        display: none !important;
    }
    
    .hk-hero {
        min-height: auto;
        background: var(--hk-primary-light) !important;
    }
    
    .hk-hero h1,
    .hk-hero .lead {
        color: var(--hk-dark) !important;
        text-shadow: none !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.btn:focus,
.nav-link:focus,
.accordion-button:focus {
    outline: 2px solid var(--hk-primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --hk-primary: #000000;
        --hk-primary-dark: #000000;
        --hk-success: #000000;
    }
    
    .btn-success {
        background-color: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    
    .hk-hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}


/* Mobile Optimierungen */
@media (max-width: 768px) {
    /* Produktkarten mobile Anpassungen */
    .hk-product-card {
        margin-bottom: 1.5rem;
    }
    
    .hk-image-wrapper {
        aspect-ratio: 4/3; /* Festes Seitenverhältnis für Konsistenz */
        background-color: #f8f9fa;
    }
    
    .hk-image-wrapper img {
        height: 100%; /* Nutze die volle Wrapper-Höhe */
        object-fit: contain; /* Vollständiges Bild ohne Abschneiden */
        object-position: center;
        padding: 0.5rem; /* Abstand zum Rand */
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .card-text {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Hero mobile Anpassungen */
    .hk-hero {
        min-height: 60vh; /* Kleinere Hero-Höhe auf Mobile */
    }
    
    .hk-hero h1 {
        font-size: 2rem;
    }
    
    .hk-hero .lead {
        font-size: 1rem;
    }
    
    /* Tab-Navigation mobile */
    .hk-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        margin: 0 0.25rem;
    }
    
    /* Gutschein-Banner mobile */
    .hk-banner {
        font-size: 0.85rem;
        padding: 0.75rem 0;
    }
    
    /* WhatsApp Button mobile */
    .hk-whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .hk-whatsapp-float i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* Extra kleine Bildschirme */
    .hk-image-wrapper {
        aspect-ratio: 3/2; /* Etwas breiteres Verhältnis für sehr kleine Bildschirme */
    }
    
    .hk-image-wrapper img {
        padding: 0.25rem; /* Kleinerer Abstand */
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    .hk-hero h1 {
        font-size: 1.75rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

