/* BISpicy Warenwirtschaft Website - Main Styles */
:root {
    /* BISpicy Brand Colors */
    --bispicy-btn-primary: #3c85ac;
    --bispicy-btn-secondary: #940039;
    --bispicy-navbar-bg: #001220;
    --bispicy-hero-bg: #132e42;
    --bispicy-text-primary: #1a365d;
    --bispicy-font-family: 'Outfit', sans-serif;

    /* Legacy compatibility */
    --primary-color: #3c85ac;
    --secondary-color: #940039;
    --success-color: #198754;
    --warning-color: #940039;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --dark-color: #001220;
    --light-color: #f8f9fa;
    --font-family: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-4 {
    font-weight: 700;
}

.display-5 {
    font-weight: 700;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.75rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bispicy-btn-primary) 0%, var(--bispicy-hero-bg) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

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

.hero-features .d-flex {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-transform: none;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-weight: 700;
    color: var(--bispicy-btn-secondary);
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.circle {
    border-radius: 50%;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
}

.feature-icon {
    transition: all 0.3s ease;
}

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

.card {
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Pricing Section */
.pricing-teaser {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
}

.pricing-highlight {
    background: linear-gradient(135deg, var(--bispicy-btn-primary) 0%, var(--bispicy-hero-bg) 100%);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(60, 133, 172, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.pricing-highlight:hover {
    transform: translateY(-5px);
}

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

/* Demo Section */
.demo-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.demo-video {
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-video:hover {
    transform: scale(1.02);
}

.demo-video .btn {
    transition: all 0.3s ease;
}

.demo-video:hover .btn {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    padding: 6rem 0;
}

.avatar {
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bispicy-btn-primary) 0%, var(--bispicy-hero-bg) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

/* Footer */
.footer {
    background-color: var(--bispicy-navbar-bg) !important;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--bispicy-btn-secondary) !important;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.compliance-badges .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

/* 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 float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE DESIGN - Comprehensive Mobile-First
   ============================================ */

/* Base responsive utilities */
img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Touch-friendly minimum sizes */
.btn,
button,
a.nav-link,
.dropdown-item {
    min-height: 44px;
    min-width: 44px;
}

/* ============================================
   EXTRA SMALL DEVICES (Portrait Phones < 576px)
   ============================================ */
@media (max-width: 575.98px) {
    /* Typography */
    html {
        font-size: 14px;
    }

    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .display-5 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .display-6 {
        font-size: 1.25rem;
    }

    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }
    h4, .h4 { font-size: 1.1rem; }

    .lead {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

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

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
        padding: 0.875rem 1.5rem;
    }

    .hero-features .row {
        text-align: left;
    }

    .hero-features .d-flex {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .hero-stats {
        margin-top: 2rem;
        padding: 1rem;
    }

    .hero-stats .row {
        text-align: center;
    }

    .hero-stats .col-4 {
        padding: 0.5rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Dashboard Mockup */
    .dashboard-mockup {
        margin-top: 2rem;
        transform: none !important;
        padding: 1rem !important;
    }

    .dashboard-mockup .card-body {
        padding: 0.75rem;
    }

    .dashboard-mockup .h4 {
        font-size: 1.25rem;
    }

    .dashboard-mockup .h6 {
        font-size: 0.75rem;
    }

    /* Sections */
    .features-section,
    .demo-section,
    .testimonials-section,
    .pricing-teaser,
    .cta-section {
        padding: 3rem 0;
    }

    section.py-5 {
        padding: 2.5rem 0 !important;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .feature-icon i {
        font-size: 1.25rem !important;
    }

    /* Pricing */
    .pricing-highlight {
        padding: 1.5rem !important;
        border-radius: 1rem !important;
    }

    .pricing-highlight .row {
        text-align: center;
    }

    .pricing-highlight .col-md-6:first-child {
        margin-bottom: 1.5rem;
    }

    .price-display .h1 {
        font-size: 2rem;
    }

    /* CTA Buttons */
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }

    /* Demo Section */
    .demo-video {
        height: 250px !important;
    }

    /* Testimonials */
    .avatar {
        width: 40px !important;
        height: 40px !important;
    }

    /* Footer */
    .footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }

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

    .compliance-badges {
        justify-content: center;
    }

    /* Accordion */
    .accordion-button {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .accordion-body {
        font-size: 0.875rem;
        padding: 1rem;
    }

    /* Buttons general */
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }

    .btn {
        font-size: 0.9rem;
    }

    /* Gap utilities */
    .gap-3 {
        gap: 0.75rem !important;
    }

    .g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 1rem;
    }

    /* Badge */
    .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }

    /* List items */
    .list-unstyled li {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }

    /* Legal content */
    .legal-content h2 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.1rem;
    }

    .toc {
        padding: 1rem;
    }
}

/* ============================================
   SMALL DEVICES (Landscape Phones, 576px - 767px)
   ============================================ */
@media (min-width: 576px) and (max-width: 767.98px) {
    html {
        font-size: 15px;
    }

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

    .display-5 {
        font-size: 1.75rem;
    }

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

    .hero-buttons .btn {
        width: auto;
        display: inline-flex;
    }

    .dashboard-mockup {
        margin-top: 2rem;
        transform: none;
    }

    .features-section,
    .demo-section,
    .testimonials-section {
        padding: 4rem 0;
    }

    .pricing-highlight .row {
        text-align: center;
    }

    .pricing-highlight .col-md-6:first-child {
        margin-bottom: 1.5rem;
    }

    .demo-video {
        height: 300px !important;
    }

    .cta-buttons .btn {
        display: inline-flex;
        width: auto;
    }
}

/* ============================================
   MEDIUM DEVICES (Tablets, 768px - 991px)
   ============================================ */
@media (min-width: 768px) and (max-width: 991.98px) {
    html {
        font-size: 15px;
    }

    .display-4 {
        font-size: 2.25rem;
    }

    .display-5 {
        font-size: 1.875rem;
    }

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

    .dashboard-mockup {
        margin-top: 2.5rem;
        transform: none;
    }

    .features-section,
    .demo-section,
    .testimonials-section {
        padding: 4.5rem 0;
    }

    /* Two column layout for cards */
    .col-lg-4 {
        flex: 0 0 auto;
        width: 50%;
    }

    .pricing-highlight {
        padding: 2rem !important;
    }

    .demo-video {
        height: 350px !important;
    }

    /* Testimonials - 2 columns */
    .testimonials-section .col-lg-4 {
        width: 50%;
    }
}

/* ============================================
   LARGE DEVICES (Desktops, 992px - 1199px)
   ============================================ */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 90vh;
        padding: 5rem 0;
    }

    .dashboard-mockup {
        transform: perspective(1000px) rotateY(-3deg) rotateX(3deg);
    }

    .features-section,
    .demo-section,
    .testimonials-section,
    .cta-section {
        padding: 5rem 0;
    }

    .demo-video {
        height: 380px !important;
    }
}

/* ============================================
   EXTRA LARGE DEVICES (Large Desktops, ≥1200px)
   ============================================ */
@media (min-width: 1200px) {
    .display-4 {
        font-size: 3rem;
    }

    .display-5 {
        font-size: 2.25rem;
    }

    .hero-section {
        min-height: 100vh;
    }

    .dashboard-mockup {
        transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    }

    .features-section,
    .demo-section,
    .testimonials-section,
    .cta-section {
        padding: 6rem 0;
    }

    .demo-video {
        height: 400px !important;
    }
}

/* ============================================
   NAVIGATION RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 32px;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
    }

    .navbar .d-flex.align-items-center {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0;
        width: 100%;
    }

    .navbar .d-flex.align-items-center .btn {
        width: 100%;
        justify-content: center;
    }

    .navbar .dropdown {
        width: 100%;
    }

    .navbar .dropdown-toggle {
        width: 100%;
        text-align: left;
    }

    /* Mobile dropdown menu */
    .navbar .dropdown-menu {
        position: static !important;
        width: 100%;
        margin: 0;
        border: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
    }

    /* Language switcher in mobile */
    .navbar .dropdown:has(.dropdown-toggle .bi-globe) {
        width: auto;
    }
}

/* ============================================
   TABLE RESPONSIVE
   ============================================ */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    table {
        font-size: 0.875rem;
    }

    table th,
    table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
}

/* ============================================
   UTILITY RESPONSIVE CLASSES
   ============================================ */
/* Hide on mobile */
@media (max-width: 575.98px) {
    .d-mobile-none {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 576px) {
    .d-mobile-only {
        display: none !important;
    }
}

/* Full width on mobile */
@media (max-width: 767.98px) {
    .w-md-100 {
        width: 100% !important;
    }
}

/* Text center on mobile */
@media (max-width: 767.98px) {
    .text-md-center {
        text-align: center !important;
    }
}

/* ============================================
   FEATURE PAGES RESPONSIVE
   ============================================ */
@media (max-width: 767.98px) {
    /* Feature hero adjustments */
    .hero-section .badge {
        margin-bottom: 1rem !important;
    }

    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        width: 100%;
    }

    .hero-section .d-flex.gap-3 .btn {
        width: 100%;
    }

    /* Related features section */
    section .col-md-4 a.card {
        margin-bottom: 1rem;
    }

    /* Import/Export section */
    .col-sm-6 .d-flex {
        margin-bottom: 1rem;
    }
}

/* ============================================
   PRINT RESPONSIVE (unchanged but expanded)
   ============================================ */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .hero-buttons,
    .cta-buttons {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    .hero-section {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0;
    }

    .hero-section * {
        color: #000 !important;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Custom Bootstrap overrides */
.btn-warning,
.btn-bispicy-secondary {
    background-color: var(--bispicy-btn-secondary) !important;
    border-color: var(--bispicy-btn-secondary) !important;
    color: white !important;
    font-weight: 600;
}

.btn-warning:hover,
.btn-bispicy-secondary:hover {
    background-color: #7a002d !important;
    border-color: #7a002d !important;
    color: white !important;
}

.btn-primary,
.btn-bispicy-primary {
    background-color: var(--bispicy-btn-primary) !important;
    border-color: var(--bispicy-btn-primary) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-bispicy-primary:hover {
    background-color: #2e6888 !important;
    border-color: #2e6888 !important;
    color: white !important;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus {
    box-shadow: 0 0 0 3px rgba(60, 133, 172, 0.25);
}

.nav-link:focus {
    box-shadow: none;
    outline: none;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 2px solid var(--bispicy-btn-primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08);
}

/* Legal Pages Styles */
.legal-content {
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bispicy-btn-primary);
    color: var(--bispicy-btn-primary);
    font-size: 1.75rem;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.toc {
    background: #f8f9fa;
    border-left: 4px solid var(--bispicy-btn-primary);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.last-updated {
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    padding: 1rem;
    margin-bottom: 2rem;
}
