/**
 * Lohnunternehmen Bengsch - Custom Styles
 * Farbschema: Grün/Erdtöne für Land- und Forstwirtschaft
 */

:root {
    /* Hauptfarben */
    --primary: #1a472a;
    --primary-light: #2d5a3d;
    --primary-dark: #0f2a1a;
    
    /* Akzentfarben */
    --accent: #4a7c59;
    --accent-light: #6b9b7a;
    
    /* Erdtöne */
    --earth-brown: #8b7355;
    --earth-light: #a89078;
    --earth-dark: #5c4a3a;
    
    /* Neutrals */
    --bg-light: #f8f9f6;
    --bg-cream: #faf9f7;
    --text-dark: #2c3e2e;
    --text-muted: #6c757d;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(26, 71, 42, 0.1);
    --shadow-md: 0 4px 12px rgba(26, 71, 42, 0.15);
    --shadow-lg: 0 8px 24px rgba(26, 71, 42, 0.2);
}

/* ===================== */
/* General */
/* ===================== */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-light);
}

/* ===================== */
/* Navbar */
/* ===================== */

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* ===================== */
/* Hero Section */
/* ===================== */

.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-section {
        min-height: 50vh;
    }
}

/* ===================== */
/* Buttons */
/* ===================== */

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Hero Buttons - guter Kontrast auf dunklem Hintergrund */
.hero-section .btn-light {
    background-color: #fff;
    border-color: #fff;
    color: var(--primary);
    font-weight: 600;
}

.hero-section .btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: var(--primary-dark);
}

.hero-section .btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 500;
    background: transparent;
}

.hero-section .btn-outline-light:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--primary);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
}

/* ===================== */
/* Cards */
/* ===================== */

.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    border-radius: 12px 12px 0 0;
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    color: var(--text-dark);
}

/* Service Cards */
.service-card {
    height: 100%;
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-card .icon i {
    font-size: 1.5rem;
    color: #fff;
}

/* Category Cards */
.category-card {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.category-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===================== */
/* Gallery */
/* ===================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* ===================== */
/* Sections */
/* ===================== */

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-cream {
    background-color: var(--bg-cream) !important;
}

/* ===================== */
/* Features */
/* ===================== */

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: #fff;
}

/* ===================== */
/* Contact */
/* ===================== */

.contact-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    opacity: 0.9;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 71, 42, 0.15);
}

/* ===================== */
/* Footer */
/* ===================== */

.footer-main {
    background: var(--primary-dark);
    color: #fff;
    margin-top: 4rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-link-small {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link-small:hover {
    color: #fff;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
}

/* ===================== */
/* Breadcrumb */
/* ===================== */

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ===================== */
/* Page Header */
/* ===================== */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    opacity: 0.9;
}

/* ===================== */
/* Lightbox */
/* ===================== */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ===================== */
/* Service Detail */
/* ===================== */

.service-detail-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.service-detail-image img {
    width: 100%;
    height: auto;
}

.service-bullets {
    list-style: none;
    padding: 0;
}

.service-bullets li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid #eee;
}

.service-bullets li:last-child {
    border-bottom: none;
}

.service-bullets li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ===================== */
/* Animations */
/* ===================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===================== */
/* Utilities */
/* ===================== */

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.shadow-soft {
    box-shadow: var(--shadow-md);
}

.rounded-xl {
    border-radius: 12px;
}

/* Spacing for fixed navbar */
body {
    padding-top: 76px;
}

/* ===================== */
/* Mobile Responsive */
/* ===================== */

@media (max-width: 991px) {
    body {
        padding-top: 66px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.5rem;
        font-size: 0.95rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-card i {
        font-size: 2.5rem;
    }
    
    .category-card h3 {
        font-size: 1.1rem;
    }
    
    .footer-main .col-lg-4 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

@media (max-width: 575px) {
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn {
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===================== */
/* Mobile Header & Floating Menu */
/* ===================== */

.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.mobile-header .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Floating Menu Button */
.floating-menu-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1040;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(26, 71, 42, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-menu-btn:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.floating-menu-btn.active {
    background: var(--primary-dark);
}

/* Floating Menu Overlay */
.floating-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Floating Menu Panel */
.floating-menu {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    z-index: 1040;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    min-width: 200px;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-menu.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.floating-menu .nav-item {
    list-style: none;
}

.floating-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.floating-menu .nav-link:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.floating-menu .nav-link.active {
    background: var(--primary);
    color: #fff;
}

.floating-menu .nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* ===================== */
/* Tablet Bottom Navigation */
/* ===================== */

.tablet-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.tablet-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.tablet-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.tablet-nav-item:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.tablet-nav-item.active {
    color: var(--primary);
}

.tablet-nav-item.active i {
    color: var(--primary);
}

/* Hide desktop elements on tablet/mobile */
@media (min-width: 1400px) {
    .mobile-header,
    .tablet-mobile-header,
    .floating-menu-btn,
    .floating-menu,
    .floating-menu-overlay,
    .tablet-nav,
    .tablet-only,
    .phone-only {
        display: none !important;
    }
    
    .desktop-nav {
        display: flex !important;
    }
    
    body {
        padding-top: 56px;
    }
}

/* Tablet (768px - 1399px) */
@media (min-width: 768px) and (max-width: 1399px) {
    .desktop-nav {
        display: none !important;
    }
    
    body {
        padding-top: 56px;
        padding-bottom: 70px;
    }
    
    .mobile-header,
    .tablet-mobile-header {
        display: flex !important;
        position: fixed !important;
    }
    
    .tablet-nav,
    .tablet-only {
        display: flex !important;
    }
    
    .floating-menu-btn,
    .floating-menu,
    .floating-menu-overlay,
    .phone-only {
        display: none !important;
    }
}

/* Mobile / Smartphone (unter 768px) */
@media (max-width: 767px) {
    .desktop-nav {
        display: none !important;
    }
    
    .tablet-nav,
    .tablet-only {
        display: none !important;
    }
    
    body {
        padding-top: 56px;
    }
    
    .mobile-header,
    .tablet-mobile-header {
        display: flex !important;
        position: fixed !important;
    }
    
    .phone-only {
        display: flex !important;
    }
    
    .floating-menu-btn.phone-only {
        display: flex !important;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
}
