/* ============================================
   Design-System (orientiert an sachsconsulting.de)
   ============================================ */

/* Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #1a1a1a;
    --accent-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
}

/* Typography */
body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-nav .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1559757175-0eb30cd8c063?w=1920&h=1080&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(26, 26, 26, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.hero-content .container {
    width: 100%;
    max-width: 100%;
}

.hero-content .row {
    justify-content: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    width: 100%;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
}

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

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background-color: var(--text-light);
    border-color: var(--text-light);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Sections */
section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-dark {
    background-color: var(--secondary-color) !important;
}

/* About Section Images */
#about img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    color: #2980b9;
    text-decoration: none;
}

.service-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    height: 100%;
}

.product-card .row {
    height: 100%;
    min-height: 500px;
}

.product-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

.product-card:hover .product-image img:not(.carousel-item img) {
    transform: scale(1.1);
}

/* Carousel Styles für Medilyzer */
.product-image .carousel {
    height: 100%;
    width: 100%;
}

.product-image .carousel-inner {
    height: 100%;
}

.product-image .carousel-item {
    height: 100%;
}

.product-image .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image .carousel-control-prev,
.product-image .carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: var(--transition);
}

.product-image .carousel-control-prev:hover,
.product-image .carousel-control-next:hover {
    opacity: 1;
}

.product-image .carousel-indicators {
    margin-bottom: 10px;
}

.product-image .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.product-image .carousel-indicators button.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Medilyzer Slider - Angepasste Höhe für hochformatige Screenshots */
.product-image-medilyzer {
    height: 100% !important;
    min-height: 500px;
}

.product-image-medilyzer .carousel {
    height: 100%;
}

.product-image-medilyzer .carousel-inner {
    height: 100%;
}

.product-image-medilyzer .carousel-item {
    height: 100%;
    background-color: #000;
    text-align: center;
}

.product-image-medilyzer .carousel-item img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* NewsSense Slider - Angepasste Höhe für hochformatige Screenshots */
.product-image-newsense {
    height: 100% !important;
    min-height: 500px;
}

.product-image-newsense .carousel {
    height: 100%;
}

.product-image-newsense .carousel-inner {
    height: 100%;
}

.product-image-newsense .carousel-item {
    height: 100%;
    background-color: #000;
    text-align: center;
}

.product-image-newsense .carousel-item img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.col-md-6.position-relative .coming-soon-badge {
    position: absolute;
    top: 0;
    right: 0;
    margin-bottom: 0;
    margin-top: 0;
    z-index: 10;
}

.product-image .coming-soon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    margin-bottom: 0;
}

.product-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    padding: 2rem;
}

.contact-item i {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-item h4 {
    color: white;
    margin-bottom: 1rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

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

.contact-item a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

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

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

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

/* Fade-in Animation */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .service-card,
    .product-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Print Styles (DIN A4) */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .navbar,
    .hero-section,
    .btn,
    .footer {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
    
    @page {
        size: A4;
        margin: 2cm;
    }
}
