/*
Theme Name: Futuristic Print
Theme URI: http://example.com/futuristic-print
Author: Your Printing Company
Author URI: http://example.com
Description: A futuristic theme for printing companies with smooth animations and single-page navigation
Version: 1.0
License: GPL v2 or later
Text Domain: futuristic-print
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0080ff;
    --secondary-color: #ff0080;
    --accent-color: #00cc66;
    --dark-bg: #ffffff;
    --light-bg: #f8f9fa;
    --text-light: #212529;
    --text-gray: #6c757d;
    --gradient-1: linear-gradient(135deg, #0080ff 0%, #ff0080 100%);
    --gradient-2: linear-gradient(135deg, #00cc66 0%, #0080ff 100%);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 120px; /* Account for both contact bar and navigation */
    position: relative;
    font-weight: 400;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 3rem; /* Added specific margin to create space from navigation */
}

@media (min-width: 769px) {
    .language-switcher {
        order: 3; /* Position after nav-menu on desktop */
    }
}

.lang-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-link:hover {
    background-color: rgba(0, 128, 255, 0.1);
    color: var(--primary-color);
}

.lang-link.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.lang-link.switching {
    opacity: 0.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: -0.02em;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* General paragraph text overflow handling */
p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

/* List items overflow handling */
li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Top Contact Bar */
.top-contact-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(248, 249, 250, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 128, 255, 0.1);
    font-size: 0.875rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-items {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--primary-color);
}

.contact-item i {
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* Navigation */
.main-navigation {
    position: fixed;
    top: 40px; /* Account for contact bar */
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Reduced from 2rem to create more space */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Hide navigation sections on desktop */
@media (min-width: 769px) {
    .nav-left-section {
        display: contents;
    }
    
    .nav-right-section {
        display: contents;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: none;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.site-title:hover {
    color: var(--secondary-color);
}

.site-logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.site-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 3rem; /* Added space between logos and navigation menu */
}

.site-logos img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.site-logos img:hover {
    transform: scale(1.1);
}

/* Custom Logo Support */
.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem; /* Reduced from 2rem to create more space */
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    text-transform: none;
    font-weight: 500;
    font-size: 0.85rem; /* Reduced from 0.95rem to prevent word breaking */
    letter-spacing: -0.02em; /* Slightly tighter letter spacing */
    position: relative;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    white-space: nowrap; /* Prevent word breaking */
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 10px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.2);
    margin-top: 10px;
    z-index: 1000;
}

.nav-menu > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    list-style: none;
}

.dropdown a {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 128, 255, 0.1);
    transition: all 0.3s ease;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown a:hover {
    background: rgba(0, 128, 255, 0.1);
    padding-left: 2rem !important;
}

.dropdown li a::after {
    display: none !important;
}

/* Dropdown arrow indicator */
.dropdown-arrow {
    font-size: 0.75rem;
    margin-right: 0.4rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
    padding: 0.5rem;
}

/* Navigation sections for mobile layout */
.nav-left-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-right-section {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(0, 128, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 128, 255, 0.02) 10px, rgba(0, 128, 255, 0.02) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 0, 128, 0.02) 10px, rgba(255, 0, 128, 0.02) 20px);
    animation: backgroundScroll 20s linear infinite;
}

@keyframes backgroundScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-image-overlay {
    position: relative;
    display: inline-block;
    margin-bottom: -12rem;
    z-index: 2;
}

.hero-image-overlay img {
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 128, 255, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-image-overlay img:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 128, 255, 0.4);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from { text-shadow: 0 0 5px rgba(0, 212, 255, 0.3); }
    to { text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Fade In Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fallback for no-JS */
.no-js .fade-in,
.no-js .fade-in-left,
.no-js .fade-in-right {
    opacity: 1;
    transform: none;
}

/* Staggered animations for service cards */
.service-card:nth-child(1) {
    transition-delay: 0s;
}
.service-card:nth-child(2) {
    transition-delay: 0.15s;
}
.service-card:nth-child(3) {
    transition-delay: 0.3s;
}
.service-card:nth-child(4) {
    transition-delay: 0.45s;
}
.service-card:nth-child(5) {
    transition-delay: 0.6s;
}

/* Staggered animations for subsection cards */
.subsection-card:nth-child(1) {
    transition-delay: 0s;
}
.subsection-card:nth-child(2) {
    transition-delay: 0.2s;
}
.subsection-card:nth-child(3) {
    transition-delay: 0.4s;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

/* Remove default background when background image is set */
.service-card[style*="background-image"] {
    background: none;
    backdrop-filter: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    z-index: -1;
    opacity: 0;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* White text on hover for Leistungen Digitaldruck cards */
#leistungen .service-card:hover,
#leistungen .service-card:hover h3,
#leistungen .service-card:hover p,
#leistungen .service-card:hover .service-icon {
    color: #ffffff !important;
}

/* Ensure contrast on hover */
#leistungen .service-card:hover {
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.9) 0%, rgba(128, 0, 255, 0.9) 100%);
}

/* White text on hover for alpha-insight cards */
#alpha-insight .service-card:hover,
#alpha-insight .service-card:hover h3,
#alpha-insight .service-card:hover p,
#alpha-insight .service-card:hover .service-icon {
    color: #ffffff !important;
}

/* Ensure contrast on hover */
#alpha-insight .service-card:hover {
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.9) 0%, rgba(128, 0, 255, 0.9) 100%);
}

/* Service Card with Background Image */
.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 1;
}

.service-card-content {
    position: relative;
    z-index: 2;
}

/* Add semi-transparent background to content when card has background image */
.service-card[style*="background-image"] .service-card-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* When card has background image, keep text dark for readability */
.service-card:has(.service-card-overlay) h3 {
    color: var(--primary-color);
}

.service-card:has(.service-card-overlay) p {
    color: var(--text-light);
}

.service-card:has(.service-card-overlay) .service-icon {
    color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service Detail Sections */
.service-detail-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
}

.service-detail-section:nth-child(even) {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.service-detail-content.reverse {
    direction: rtl;
}

.service-detail-content.reverse > * {
    direction: ltr;
}

.detail-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-transform: none;
    letter-spacing: -0.01em;
    font-weight: 600;
}

.feature-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-gray);
}

.detail-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 128, 255, 0.2);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.detail-image:hover img {
    transform: scale(1.05);
}

.detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.2) 0%, rgba(255, 0, 128, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.detail-image:hover::before {
    opacity: 1;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    background: #f8f9fa;
    border: 2px solid rgba(0, 128, 255, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.8) 0%, rgba(255, 0, 128, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: #ffffff;
    margin: 0;
    padding: 0 1rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-transform: none;
    letter-spacing: -0.01em;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff3333;
}

/* Contact Form 7 Styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

/* German Contact Form Improvements */
.german-contact-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
    cursor: pointer;
}

.german-contact-form .checkbox-label input[type="checkbox"] {
    width: auto;
    min-width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.german-contact-form input::placeholder,
.german-contact-form textarea::placeholder {
    color: rgba(108, 117, 125, 0.7);
    font-style: italic;
}

.german-contact-form input[type="tel"] {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.3s ease;
}

.german-contact-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Contact Info */
.contact-info {
    text-align: center;
    margin-top: 3rem;
}

.contact-info p {
    margin: 0.5rem 0;
    color: var(--text-gray);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--gradient-1);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: -0.01em;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Footer */
.site-footer {
    background: var(--dark-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-gray);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Impressum Styles */
.impressum-link {
    display: inline-block;
    margin: 0 0.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    position: relative;
    z-index: 1000;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.impressum-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    background: rgba(0, 128, 255, 0.1);
    transform: translateY(-2px);
}

.impressum-content {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.impressum-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Impressum Modal */
.impressum-modal {
    display: none;
    position: fixed !important;
    z-index: 99999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: auto !important;
    background-color: rgba(0,0,0,0.85) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from { 
        opacity: 0;
    }
    to { 
        opacity: 1;
    }
}

@keyframes fadeOut {
    from { 
        opacity: 1;
    }
    to { 
        opacity: 0;
    }
}

.impressum-modal-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,249,250,0.98) 100%);
    margin: 50px auto;
    padding: 0;
    border: 1px solid rgba(0, 128, 255, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 25px 80px rgba(0, 128, 255, 0.25), 
                0 0 120px rgba(0, 128, 255, 0.1),
                inset 0 0 2px rgba(255, 255, 255, 0.5);
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Modal Header */
.impressum-modal-content h2 {
    margin: 0;
    padding: 2rem 3rem;
    background: transparent;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Close Button */
.impressum-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    z-index: 10;
    border: 2px solid rgba(255,255,255,0.3);
}

.impressum-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg) scale(1.1);
    border-color: white;
}

/* Modal Body */
.impressum-modal-body {
    padding: 2.5rem 3rem;
    line-height: 1.8;
    color: #333;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
    font-size: 1rem;
    background: transparent !important;
}

/* Scrollbar Styling */
.impressum-modal-body::-webkit-scrollbar {
    width: 8px;
}

.impressum-modal-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.impressum-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0080ff 0%, #ff0080 100%);
    border-radius: 4px;
}

.impressum-modal-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.impressum-modal-body strong {
    color: #0080ff;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.impressum-modal-body p:first-child strong {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .impressum-modal {
        padding-top: 60px; /* Add padding to account for fixed navigation */
    }
    
    .impressum-modal-content {
        margin: 20px auto;
        width: 95%;
        max-height: calc(100vh - 100px);
        position: relative;
        z-index: 99999;
    }
    
    .impressum-modal-content h2 {
        padding: 1.5rem 3rem 1.5rem 2rem;
        font-size: 1.5rem;
    }
    
    .impressum-modal-body {
        padding: 1.5rem;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .impressum-modal-body > div:first-child {
        flex: 1 !important;
        padding-right: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 2rem;
    }
    
    .impressum-modal-body > div:last-child {
        padding-left: 0 !important;
    }
    
    .impressum-close {
        right: 1rem;
        top: 1.2rem;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Subsection Cards */
.subsection-card {
    overflow: hidden !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

.subsection-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    line-height: 1.6;
}

/* Ensure long filenames and codes break properly */
.subsection-content code,
.subsection-content b {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important;
    display: inline-block !important;
    max-width: 100% !important;
}

/* Force text breaking for all content in subsection cards */
.subsection-card * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Specific rule for long text strings */
.subsection-card p,
.subsection-card div,
.subsection-card span {
    word-break: break-all !important;
}

/* Fix for inline text in subsection-content */
.subsection-content {
    white-space: normal !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
}

/* Target the specific subsection card container */
div[style*="background: rgba(255,255,255,0.05)"] {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Ensure all text nodes break properly */
.subsection-content br + text,
.subsection-content::after,
.subsection-content::before {
    word-break: break-all !important;
}

/* Ensure links in subsections wrap properly */
.subsection-content a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Feature Text Overflow Fix */
.feature-item p,
.feature-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-inner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Hide desktop navigation on tablets - use mobile nav instead */
    .main-navigation {
        display: none !important;
    }
    
    /* Ensure body has proper padding for mobile nav on tablets */
    body {
        padding-top: 160px !important;
    }
    
    /* Old tablet styles - kept for reference but not used since we're using mobile nav */
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.5rem;
    }
    
    .site-logos {
        flex: 0 0 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .language-switcher {
        flex: 0 0 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .nav-menu {
        flex: 0 0 100%;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Dropdown adjustments for tablets */
    .dropdown {
        position: fixed;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-title { font-size: 2.5rem; }
    
    /* Hide contact bar on mobile for cleaner look */
    .top-contact-bar {
        display: none;
    }
    
    /* Adjust navigation position for mobile */
    .main-navigation {
        top: 0;
        padding: 0.75rem 0;
        min-height: auto;
    }
    
    /* Adjust body padding */
    body {
        padding-top: 110px;
    }
    
    /* Mobile navigation container with two rows */
    .nav-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        align-items: center;
    }
    
    /* First row: Logos and menu button */
    .nav-left-section {
        grid-column: 1;
        grid-row: 1;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
        position: relative;
        min-height: 40px;
    }
    
    /* Second row: Language switcher */
    .nav-right-section {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    /* Site logos styling */
    .site-logos {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        margin-right: 0;
    }
    
    .site-logos img {
        height: 30px;
        width: auto;
    }
    
    /* Ensure logos are clickable on mobile */
    .logo-clickable {
        position: relative;
        z-index: 100 !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
    }
    
    .hero-image-overlay img {
        max-width: 350px;
    }
    
    .hero-image-overlay {
        margin-bottom: -6rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 20px var(--shadow-color);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        width: 100%;
        z-index: 999;
        display: flex !important;
        grid-column: 1;
        grid-row: 3;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        background: white !important;
        border: 2px solid var(--primary-color) !important;
        border-radius: 5px;
        padding: 0.5rem 0.75rem;
        color: var(--primary-color) !important;
        font-size: 1.2rem;
        cursor: pointer;
        z-index: 9999 !important;
        min-width: 50px;
        min-height: 40px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu-toggle i {
        display: block !important;
        color: var(--primary-color) !important;
    }
    
    .mobile-menu-toggle:hover {
        background: var(--primary-color) !important;
        color: white !important;
    }
    
    .mobile-menu-toggle:hover i {
        color: white !important;
    }
    
    .language-switcher {
        display: flex !important;
        margin-left: 0;
        margin-top: 0;
        gap: 0.75rem;
        justify-content: center;
        padding: 0.5rem 0;
        border-top: none;
        width: 100%;
    }
    
    .language-switcher .lang-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        border: 1px solid rgba(0, 128, 255, 0.3);
        border-radius: 5px;
    }
    
    .language-switcher .lang-link.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    /* Service detail sections on mobile */
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail-content.reverse {
        direction: ltr;
    }
    
    .detail-image {
        order: -1;
    }
    
    /* Fix overflow issues on mobile */
    .subsection-card {
        padding: 1.5rem !important;
    }
    
    .subsection-content {
        font-size: 0.9rem;
    }
    
    /* Mobile dropdown - completely reset positioning */
    .dropdown {
        position: static !important;
        width: 100%;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        margin: 0 !important;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
    
    /* Remove hover effect on mobile */
    .nav-menu > li:hover .dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        /* But don't display it on hover */
    }
    
    /* Only show dropdown when active class is added via JavaScript */
    .has-dropdown.active .dropdown {
        display: block !important;
    }
    
    .dropdown li {
        width: 100%;
    }
    
    .dropdown a {
        width: 100%;
        padding: 0.8rem 1rem 0.8rem 3rem !important;
        background: rgba(248, 249, 250, 0.5);
        border-bottom: 1px solid rgba(0, 128, 255, 0.1);
        font-size: 0.875rem;
        margin: 0;
        display: block;
    }
    
    .dropdown a:hover {
        background: rgba(0, 128, 255, 0.1);
        padding-left: 3rem !important;
    }
    
    /* Mobile dropdown toggle */
    .has-dropdown > a {
        cursor: pointer;
        position: relative;
    }
    
    /* Show dropdown arrow on mobile */
    .dropdown-arrow {
        transition: transform 0.3s ease;
    }
    
    .has-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* Impressum responsive styles */
    .impressum-link {
        display: block;
        margin: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .impressum-modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 1.5rem;
        max-height: calc(100vh - 100px);
    }
    
    .impressum-content {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .impressum-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .impressum-close {
        font-size: 24px;
    }
    
    /* Fix for other footer modals on mobile */
    .versand-modal,
    .datenschutz-modal,
    .widerruf-modal {
        padding-top: 60px !important; /* Add padding to account for fixed navigation */
    }
    
    .versand-modal-content,
    .datenschutz-modal-content,
    .widerruf-modal-content {
        margin: 20px auto !important;
        max-height: calc(100vh - 100px) !important;
        position: relative !important;
        z-index: 99999 !important;
    }
}

/* Fix scroll behavior */
html {
    scroll-behavior: auto !important; /* Disable smooth scroll for instant response */
}

/* All section images transparent background */
.detail-image {
    background: transparent !important;
    box-shadow: none !important;
}

.detail-image::before {
    display: none !important;
}

.detail-image img {
    mix-blend-mode: multiply;
    background: transparent;
}

/* CRITICAL FIX: Force text breaking for long filenames in subsections */
.subsection-content,
.subsection-content * {
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    -webkit-hyphens: auto !important;
    -moz-hyphens: auto !important;
    -ms-hyphens: auto !important;
    hyphens: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
}

/* Specific fix for the technical data section */
.subsection-card:has(.subsection-content) {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    word-break: break-all !important;
}

/* Logo Modal Styles */
.logo-clickable {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.logo-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    width: fit-content;
    max-width: 95vw;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.3);
    animation: modalFadeIn 0.3s ease-out;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.modal-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Modal Images */
.modal-content img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 85vh;
    display: block;
    margin: 0;
    object-fit: contain;
    border-radius: 10px;
}

/* Desktop - larger images */
@media (min-width: 1200px) {
    .modal-content img {
        max-width: 85vw;
        max-height: 80vh;
    }
}

/* Tablet view for logo modals */
@media (max-width: 1024px) {
    .logo-modal {
        z-index: 999999 !important;
        padding-top: 120px;
    }
    
    .modal-content {
        margin: 30px auto;
        top: 0;
        position: relative;
        z-index: 999999;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .logo-modal {
        z-index: 999999 !important;
        padding-top: 100px;
    }
    
    .modal-content {
        margin: 20px auto;
        padding: 0;
        width: fit-content;
        max-width: 98vw;
        top: 0;
        position: relative;
        z-index: 999999;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .modal-content img {
        max-width: 98vw;
        max-height: 70vh;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .modal-content {
        margin: 0.5% auto;
        padding: 0;
        width: fit-content;
        max-width: 98vw;
        top: 5px;
    }
    
    .modal-content img {
        min-width: unset;
        min-height: unset;
        width: 96vw;
        height: auto;
        max-height: 88vh;
    }
}


