/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2c5f7a;
    --accent-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
}

.section-padding {
    padding: 100px 0;
}

/* ===== TYPOGRAPHY ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: var(--primary-color);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo {
    height: 32px;
    width: auto;
    transition: var(--transition);
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.8), rgba(44, 95, 122, 0.8)),
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 95, 0.3);
}

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

.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-logo-img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.hero-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(2px 2px 12px rgba(0, 0, 0, 0.4));
}

/* Text Logo */
.text-logo {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.logo-letter {
    color: var(--white);
    display: inline-block;
    transition: var(--transition);
    position: relative;
}

.logo-letter::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transform: translateX(-50%);
    transition: var(--transition);
}

.logo-ampersand {
    color: var(--accent-color);
    margin: 0 0.2em;
    font-weight: 700;
    font-style: italic;
    display: inline-block;
    transition: var(--transition);
}

.text-logo:hover .logo-letter {
    transform: translateY(-5px);
    color: var(--accent-color);
}

.text-logo:hover .logo-letter::after {
    width: 100%;
}

.text-logo:hover .logo-ampersand {
    color: var(--white);
    transform: scale(1.2) rotate(5deg);
}



.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    background: var(--accent-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    padding: 20px;
    transition: var(--transition);
    border-radius: 50%;
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator:active {
    transform: translateX(-50%) scale(0.95);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-indicator:hover .scroll-arrow {
    border-color: var(--accent-color);
    animation-duration: 1s;
}

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

/* ===== FEATURE BOXES ===== */
.feature-box {
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: var(--white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-box h5 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.3;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    hyphens: auto;
    word-wrap: break-word;
}

.feature-box p {
    flex-grow: 1;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    flex-shrink: 0;
}

.service-card h5 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.3;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    hyphens: auto;
    word-wrap: break-word;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== PRODUCT GALLERY ===== */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* 1:1 Seitenverhältnis */
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 95, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

.product-btn {
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    transform: translateY(20px);
    box-shadow: var(--shadow);
}

.product-card:hover .product-btn {
    transform: translateY(0);
}

.product-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== COMING SOON SECTION ===== */
.coming-soon-box {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.coming-soon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.coming-soon-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--white);
    font-size: 3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===== CONTACT INFO ===== */
.contact-info-item {
    padding: 2rem 1rem;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-info-item h6 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-item a:hover {
    color: var(--accent-color);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--white);
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-color);
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

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

/* ===== RESPONSIVE DESIGN ===== */
/* ===== MEDIUM SCREENS (iPad, small laptops) ===== */
@media (max-width: 1200px) and (min-width: 993px) {
    .service-card h5 {
        font-size: 1rem;
        min-height: 3rem;
        line-height: 1.2;
    }
    
    .feature-box h5 {
        font-size: 1rem;
        min-height: 3rem;
        line-height: 1.2;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .service-card h5 {
        font-size: 1.05rem;
        min-height: 2.5rem;
    }
    
    .feature-box h5 {
        font-size: 1.05rem;
        min-height: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        text-align: center;
    }
    
    .hero-logo-img {
        max-width: 150px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .coming-soon-box {
        padding: 3rem 2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
    }
    
    .navbar-logo {
        height: 28px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 26px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }    .service-card {
        padding: 2rem 1.5rem;
        min-height: 260px;
    }
    
    .service-card h5 {
        font-size: 1rem;
        min-height: 2.4rem;
    }
    
    .feature-box {
        padding: 1.5rem 1rem;
        min-height: 220px;
    }
    
    .feature-box h5 {
        font-size: 1rem;
        min-height: 2.4rem;
    }
}

@media (max-width: 576px) {
    .hero-logo-img {
        max-width: 120px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .feature-box,
    .service-card {
        margin-bottom: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .coming-soon-box {
        padding: 2rem 1.5rem;
    }
    
    .scroll-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.bg-light {
    background-color: var(--bg-light) !important;
}

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

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

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

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== MODAL STYLES ===== */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 2rem;
}

/* Impressum & Datenschutz Content Styles */
.impressum-content h3,
.datenschutz-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.impressum-content h4,
.datenschutz-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.company-info,
.register-info,
.management-info,
.business-info,
.content-responsibility {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.impressum-content .list-unstyled li,
.datenschutz-content .list-unstyled li {
    padding: 0.3rem 0;
}

.impressum-content a,
.datenschutz-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.impressum-content a:hover,
.datenschutz-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus states for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.footer-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        --shadow-hover: 0 4px 12px rgba(0, 0, 0, 1);
    }
}