/**
 * WehrDich B2B Shop - Stylesheet
 * =====================================================
 * Created by MikeGeorg 2025-10-27 10:00:00 +01:00 CET Version 1.0
 * Updated by Mikegeorg 2025-12-30 13:20:00 +01:00 CET Version 1.6 (kept for history)
 * Updated by MikeGeorg 2025-12-30 14:55:00 +01:00 CET Version 1.7
 * Updated by MikeGeorg 2025-12-30 15:05:00 +01:00 CET Version 1.8
 * Updated by MikeGeorg 2025-12-30 15:25:00 +01:00 CET Version 1.9
 * Updated by MikeGeorg 2026-01-04 11:32:49 +01:00 CET Version 2.0 (Move maintenance page styles here; remove inline styles)
 * Updated by MikeGeorg 2026-01-04 11:47:33 +01:00 CET Version 2.1 (Align maintenance header/footer to original sizing and layout)
 * Updated by MikeGeorg 2026-01-04 12:15:49 +01:00 CET Version 2.2 (Set maintenance header/footer heights to 100px)
 */

/* =====================================================
   GLOBAL STYLES
   ===================================================== */
:root {
    --primary-color: #15224e;
    --accent-color: #f70000;
    --secondary-color: #15224e;
    --success-color: #198754;
    --danger-color: #f70000;
    --warning-color: #fff900;
    --info-color: #15224e;
    --light-color: #f8f9fa;
    --dark-color: #15224e;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #15224e 0%, #f70000 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--primary-color) !important;
    background-color: #f5f5f5;
}

h1, h2, h3, h4, h5, h6,
th, tr {
    color: var(--primary-color) !important;
}

.text-primary,
.text-primary:hover,
.text-primary:focus {
    color: var(--primary-color) !important;
}

.text-primary i {
    color: inherit !important;
}

.text-muted {
    color: var(--primary-color) !important;
}

.mt-3.text-muted.small,
.col-md-3,
.col-md-4,
.col-md-6,
.col-md-6.mb-3 {
    color: var(--primary-color) !important;
}

code {
    color: #d90000 !important;
    font-size: 1rem !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

/* =====================================================
   LINKS
   ===================================================== */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--primary-color);
    text-decoration: none;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    background: var(--gradient);
    min-height: 500px;
}

/* =====================================================
   MAINTENANCE PAGE
   ===================================================== */
body.maintenance-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.maintenance-page main {
    flex: 1 0 auto;
}

body.maintenance-page {
    --maintenance-header-height: 100px;
    --maintenance-footer-height: 100px;
}

.maintenance-header {
    height: var(--maintenance-header-height);
    background: var(--primary-color);
}

.maintenance-footer {
    height: var(--maintenance-footer-height);
    background: var(--primary-color);
}

.maintenance-header-title {
    font-size: 0.9rem;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .maintenance-header-title { font-size: 0.75rem; }
}

.maintenance-hero {
    min-height: calc(100vh - var(--maintenance-header-height) - var(--maintenance-footer-height));
    padding: 24px 0;
    margin: 0;
    background: var(--gradient);
}

.maintenance-logo {
    width: 180px;
    height: 180px;
}

.maintenance-teaser {
    font-size: 1.15rem;
}

@media (max-width: 576px) {
    .maintenance-hero { padding: 16px 0; }
    .maintenance-logo { width: 140px; height: 140px; }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--box-shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: none !important;
    box-shadow: none !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: none;
    background-image: none !important;
}

.table .btn.btn-primary,
.table .btn.btn-primary:hover,
.table .btn.btn-primary:focus,
.table .btn.btn-primary:active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.table .btn.btn-outline-success,
.table .btn.btn-outline-success:hover,
.table .btn.btn-outline-success:focus,
.table .btn.btn-outline-success:active {
    background: #198754 !important;
    border-color: #198754 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-accent-disabled {
    background: #d90000 !important;
    border-color: #d90000 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: var(--gradient);
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    box-shadow: 0 6px 16px rgba(21, 34, 78, 0.25);
    transition: all 0.25s ease;
}

.btn-main:hover,
.btn-main:focus {
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(21, 34, 78, 0.3);
}

.btn-main:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(21, 34, 78, 0.2);
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
    border-radius: var(--border-radius);
}

/* =====================================================
   FORMS
   ===================================================== */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.625rem 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
}

/* =====================================================
   TABLES
   ===================================================== */
.table {
    background: white;
    font-size: 0.9rem;
}

.table thead {
    background: #f8f9fa;
    border-bottom: 2px solid var(--primary-color);
}

.table thead th {
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: #6c757d;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.table-hover tbody tr:hover {
    cursor: pointer;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-body {
    color: var(--primary-color);
}

.card-header {
    background: white;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.card-body .rounded-circle {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar-dark,
.admin-navbar {
    background: var(--primary-color);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.admin-navbar .navbar-brand,
.admin-navbar .nav-link {
    color: #ffffff !important;
}

.admin-navbar .nav-link:hover,
.admin-navbar .nav-link:focus {
    color: rgba(255, 255, 255, 0.85) !important;
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.header-dropdown-menu {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

.header-dropdown-menu .dropdown-header,
.header-dropdown-menu .dropdown-item {
    color: var(--primary-color);
}

.header-dropdown-menu .dropdown-item:hover,
.header-dropdown-menu .dropdown-item:focus {
    background: rgba(21, 34, 78, 0.08);
    color: var(--primary-color);
}

.header-dropdown-menu .dropdown-header small,
.header-dropdown-menu .dropdown-item i {
    color: var(--primary-color);
}

.header-dropdown-menu .dropdown-item.text-danger,
.header-dropdown-menu .dropdown-item.text-danger i {
    color: #f70000;
}

.header-dropdown-menu hr {
    border-color: #dee2e6;
}

.header-user-name {
    color: #ffffff !important;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
#sidebar,
.admin-sidebar {
    min-height: calc(100vh - 56px);
}

#sidebar .nav-link,
#sidebar .nav-link i,
#sidebar .sidebar-heading span,
.admin-sidebar .nav-link,
.admin-sidebar .nav-link i,
.admin-sidebar .sidebar-heading span {
    color: var(--primary-color) !important;
}

#sidebar .nav-link.active,
.admin-sidebar .nav-link.active {
    font-weight: 600;
    color: var(--primary-color) !important;
}

#sidebar .nav-link .badge,
.admin-sidebar .nav-link .badge {
    background-color: var(--primary-color);
}

#sidebar hr,
.admin-sidebar hr {
    border-color: rgba(21, 34, 78, 0.15);
}

.admin-sidebar {
    background: white;
    border-right: 1px solid #dee2e6;
}

.admin-sidebar .nav-link {
    color: #2c3e50;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.admin-sidebar .nav-link.active {
    background: var(--gradient);
    color: white !important;
    font-weight: 500;
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.admin-sidebar .sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #6c757d;
    padding: 1rem 1rem 0.5rem;
}

.sidebar {
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

.sidebar .nav-link {
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    margin: 0.125rem 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    color: inherit;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* =====================================================
   ADMIN DASHBOARD TEXT
   ===================================================== */
.admin-dashboard h1,
.admin-dashboard h2,
.admin-dashboard h3,
.admin-dashboard h4,
.admin-dashboard h5,
.admin-dashboard h6,
.admin-dashboard label,
.admin-dashboard .form-label,
.admin-dashboard .card-header,
.admin-dashboard .breadcrumb a,
.admin-dashboard p,
.admin-dashboard small,
.admin-dashboard strong,
.admin-dashboard td,
.admin-dashboard th,
.admin-dashboard .card-footer a,
.admin-dashboard .list-group-item,
.admin-dashboard .list-group-item small,
.admin-dashboard .list-group-item a,
.admin-dashboard .table thead th,
.admin-dashboard .table tbody td,
.admin-dashboard .text-muted {
    color: var(--primary-color) !important;
}

.admin-dashboard .btn-primary,
.admin-dashboard .btn-primary i {
    color: #ffffff !important;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-image: none !important;
    box-shadow: none !important;
}

.admin-dashboard .btn-outline-primary i {
    color: var(--primary-color) !important;
}

.admin-dashboard .table thead th {
    border-color: rgba(21, 34, 78, 0.15) !important;
}

/* =====================================================
   ADMIN FEATURE BOXES
   ===================================================== */
.feature-admin-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    min-height: 180px;
    backdrop-filter: blur(4px);
}

.feature-admin-box .icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.feature-admin-box h4,
.feature-admin-box p {
    margin: 0;
    color: #15224e !important;
}

/* =====================================================
   PRODUCT LIST
   ===================================================== */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    object-fit: cover;
}

.price-badge {
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
}

/* =====================================================
   LANDING HERO (scoped, no impact on content pages)
   ===================================================== */
.landing-hero h1,
.landing-hero h2,
.landing-hero h3,
.landing-hero h4,
.landing-hero h5,
.landing-hero h6 {
    color: #ffffff !important;
}

.landing-hero .feature-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 20px;
    min-height: 180px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.landing-hero .feature-box .icon-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.landing-hero .feature-box h4,
.landing-hero .feature-box p {
    color: #ffffff !important;
    margin: 0;
}

/* =====================================================
   LIST HELPERS
   ===================================================== */
.kw-ul-inline i.fas {
    font-size: 14px !important;
    margin-right: 5px !important;
    color: inherit !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.kw-ul-inline a {
    text-decoration: none !important;
    color: inherit !important;
}

.kw-ul-inline li {
    list-style: none !important;
    display: inline-block !important;
    margin-right: 15px !important;
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--box-shadow);
}

.alert i {
    font-size: 1.1rem;
}

/* =====================================================
   LOGIN
   ===================================================== */
.min-vh-100 {
    min-height: 100vh;
}

.card.shadow-sm {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        min-height: auto;
    }
    
    .navbar-brand span {
        font-size: 0.9rem;
    }
    
    main {
        padding: 1rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
}

@media (min-width: 768px) {
    .sidebar {
        position: sticky;
        top: 56px;
        z-index: 1000;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        min-height: auto;
    }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
    .navbar,
    .admin-navbar,
    .admin-sidebar,
    .sidebar,
    .btn,
    .alert,
    footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}