:root {
    --primary: #004080;
    --primary-dark: #003366;
    --secondary: #ffcc00;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Verhindert Flash of Unstyled Content (FOUC) - Schriften und Bilder */
html.no-js {
    opacity: 0;
    visibility: hidden;
}

/* Die html-Klasse wird hinzugefügt, sobald Schriften UND Bilder geladen sind */
html.content-loaded {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

/* Fallback für den Fall, dass JS deaktiviert ist */
.no-js body {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Für Bildladestatus - alle Bilder standardmäßig sichtbar */
img {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Nur speziell markierte Bilder werden animiert */
img.loading {
    opacity: 0.3; /* nicht komplett unsichtbar */
    filter: blur(5px);
    transition: opacity 0.5s ease, filter 0.5s ease;
}

img.loaded {
    opacity: 1;
    filter: blur(0);
    transition: opacity 0.5s ease, filter 0.5s ease;
}

body {
    font-family: 'Open Sans', 'Open Sans Fallback', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 82px; /* Feste Höhe für den Header */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--primary-dark);
}

.logo .material-symbols-rounded {
    margin-right: 8px;
    font-size: 28px;
}

nav ul {
    display: flex;
    height: 42px; /* Feste Höhe für das Menü */
    overflow-x: auto; /* Macht das Menü horizontal scrollbar */
    -webkit-overflow-scrolling: touch; /* Für besseres Scrolling auf iOS */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE und Edge */
    padding-bottom: 5px; /* Platz für Scrollbar */
}

/* Versteckt die Scrollbar, behält aber die Funktionalität */
nav ul::-webkit-scrollbar {
    display: none;
}

nav ul li {
    margin-left: 20px;
    height: 100%;
    flex-shrink: 0; /* Verhindert, dass die Menüpunkte schrumpfen */
}

nav ul li a {
    padding: 5px 10px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    height: 100%;
    white-space: nowrap; /* Verhindert Umbrechen des Textes */
}

.nav-icon {
    margin-right: 5px;
    font-size: 20px;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a.active {
    color: var(--primary);
    position: relative;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background-color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
    width: 100%;
    height: auto;
    max-height: 600px;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: -2;
    will-change: transform;
    transform: translateZ(0);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transform: translateZ(0);
    filter: brightness(0.7);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(0, 64, 128, 0.3) 0%, 
        rgba(0, 51, 102, 0.4) 100%);
    z-index: 0;
}

/* Entfernte Styles für .warning-image-container, da nicht mehr benötigt */

@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
    }
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--text-dark);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 1.05rem;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #ffdd33;
}

/* Product Section */
.products {
    padding: 80px 0;
}

.products h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    position: relative;
    letter-spacing: -0.5px;
    font-weight: 600;
}

.products h2:after {
    content: "";
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.category-nav {
    display: flex;
    justify-content: center;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    margin: 0 10px 10px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-link span {
    margin-right: 8px;
    font-size: 20px;
}

.category-link:hover, 
.category-link.active {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 40px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 40px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

.product-item:nth-child(even) {
    flex-direction: row-reverse;
}

.product-info {
    flex: 1;
    max-width: 500px;
}

.product-preview {
    flex: 1;
    max-width: 600px;
    contain: content;
}

.product-category {
    display: none;
}

.product-category.active {
    display: block;
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    border: 1px solid #eaeaea;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.details-btn-container {
    text-align: center;
    margin: 30px 0;
}

.details-btn {
    display: inline-block;
    text-align: center;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.details-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-details-container {
    display: none;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: var(--shadow);
}

.product-details-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.product-details-container h3 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.detail-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.detail-icon {
    background-color: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.detail-icon .material-symbols-rounded {
    font-size: 24px;
}

.detail-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.detail-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bildoptimierung Effekte */
.optimized-image {
    transition: opacity 0.5s ease;
    transform: translateZ(0);
    will-change: transform;
    max-width: 100%;
    height: auto;
}

/* Progressives Laden von Bildern */
.hero-image {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Bilder mit niedrigerer Priorität */
img[loading="lazy"] {
    opacity: 0;
    animation: fade-in 0.5s ease 0.2s forwards;
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* Reduzierte Auflösung für mobile Geräte */
@media (max-width: 768px) {
    .optimized-image {
        max-width: 100%;
        object-fit: cover;
    }
}

.product-screenshot-large {
    width: 100%;
    height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background-color: #f5f5f5;
    contain: layout style;
}

.product-screenshot-large picture {
    display: block;
    width: 100%;
    height: 100%;
}

.product-screenshot-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
    cursor: pointer;
    will-change: transform;
    transform: translateZ(0);
}

.product-item:hover .product-screenshot-large {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* No hover effect for product screenshots */

.business-tag {
    position: absolute;
    right: 0;
    top: 20px;
    background-color: var(--secondary);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 5px 15px;
    border-radius: 20px 0 0 20px;
}

.product-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 10px;
}

.product-icon .material-symbols-rounded {
    font-size: 60px;
    color: var(--primary);
}

.product-screenshot {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
    background-color: #f5f5f5;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.product-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.product-card:hover .product-screenshot {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card:hover .product-screenshot img {
    transform: scale(1.05);
}


.product-features {
    padding: 0 20px 20px;
    color: var(--text-light);
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature .material-symbols-rounded {
    color: var(--primary);
    margin-right: 8px;
    font-size: 20px;
}

.product-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.product-card p {
    padding: 0 20px 10px;
    color: var(--text-light);
    flex-grow: 1;
}

.btn-secondary {
    display: block;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 12px 20px;
    margin: 0 20px 20px;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
    letter-spacing: -0.5px;
    font-weight: 600;
}

.about h2:after {
    content: "";
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.benefit {
    padding: 0 0 30px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.benefit-image {
    height: 180px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    contain: layout style;
}

.benefit-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform;
}

.benefit:hover .benefit-image img {
    transform: scale(1.05);
}

.benefit h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.icon-large {
    font-size: 48px;
    color: var(--white);
    background-color: var(--primary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -40px auto 15px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow);
}

.benefit p {
    padding: 0 20px;
}

/* Migration Showcase */
.migration-showcase {
    margin-top: 80px;
    display: flex;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.showcase-image {
    flex: 0 0 40%;
    background-color: var(--primary);
    position: relative;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.showcase-content {
    flex: 0 0 60%;
    padding: 40px;
}

.showcase-content h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.showcase-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    left: 20px;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    align-items: center;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    position: absolute;
    left: 20px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon .material-symbols-rounded {
    color: var(--primary-dark);
    font-size: 20px;
}

.timeline-content {
    margin-left: 40px;
    padding: 15px 20px;
    background: var(--bg-light);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.timeline-content h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .migration-showcase {
        flex-direction: column;
    }
    
    .showcase-image {
        height: 300px;
    }
    
    .showcase-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .timeline-content {
        padding: 12px 15px;
    }
}

/* Subpage Styles */
.subpage-hero {
    padding: 100px 0;
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
    display: block;
    text-align: center;
}

.subpage-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
    z-index: -1;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    letter-spacing: -0.2px;
}

/* Add padding to sections after hero */
.subpage-hero + section {
    padding-top: 80px;
}

.reasons .section-intro {
    margin-bottom: 20px;
}

/* Reasons Page Styles */
.reasons h2 {
    margin-bottom: 30px;
    font-size: 2.2rem;
    color: var(--text-dark);
    text-align: center;
}
.reasons-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 80px;
    margin-top: 60px;
}

.reason-card {
    display: flex;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.reason-image {
    flex: 0 0 35%;
    min-height: 320px;
    max-height: 400px;
    overflow: hidden;
    border-radius: var(--radius) 0 0 var(--radius);
}

.reason-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* No hover effect for reason card images */

.reason-content {
    flex: 0 0 65%;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reason-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-right: 15px;
    z-index: 5;
    overflow: visible;
}

.reason-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
}

.reason-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.reason-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.reason-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 80px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.comparison-table th {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px;
    text-align: left;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* FAQ Section */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background-color: var(--white);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.faq-toggle {
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 500px;
}

.faq-answer p, .faq-answer ul {
    margin-bottom: 15px;
}

/* Contact Page */
.contact-section {
    padding: 80px 0 100px;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    margin-top: 20px;
}

.contact-info {
    flex: 1;
}

.contact-form-container {
    flex: 1;
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid #eaeaea;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-option {
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-option span {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-option h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-direct {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item span {
    margin-right: 15px;
    color: var(--primary);
    font-size: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: 'Space Grotesk', sans-serif;
}

.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 3px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 24px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    letter-spacing: -0.2px;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-section {
    margin: 120px 0;
    padding-top: 40px;
}

.map-wrapper {
    margin-top: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.map-marker {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    background-color: white;
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    align-items: center;
    max-width: 300px;
}

.marker-pin {
    margin-right: 15px;
}

.marker-pin .material-symbols-rounded {
    color: var(--primary);
    font-size: 36px;
}

.marker-info h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary);
}

.marker-info p {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.map-placeholder {
    width: 100%;
    height: auto;
    display: block;
}

/* Testimonials */
.testimonials {
    padding: 40px 0 60px;
    margin-top: 60px;
}

.testimonials-slider {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 30px 0;
    margin-bottom: 50px;
}

.testimonial {
    flex: 0 0 calc(50% - 20px);
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-info h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

/* Case Studies */
.case-studies-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.case-study {
    display: flex;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 30px;
}

.case-study-logo {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 30px;
}

.case-study-logo img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.case-study-content {
    flex: 1;
}

.case-study-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.case-study-content p {
    margin-bottom: 10px;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    margin-top: 15px;
}

.btn-text span {
    margin-left: 5px;
    transition: transform 0.3s;
}

.btn-text:hover span {
    transform: translateX(3px);
}

@media (max-width: 992px) {
    .reason-card,
    .case-study {
        flex-direction: column;
    }
    
    .reason-image {
        height: 250px;
        min-height: 250px;
        max-height: 250px;
    }
    
    .reason-content {
        padding: 50px 30px 30px;
    }
    
    .reason-icon {
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .case-study-logo {
        margin-bottom: 20px;
        padding-right: 0;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .testimonial {
        flex: 0 0 100%;
    }
}

/* Typography for headings and navigation */
h1, h2, h3, h4, h5, h6, nav, .logo, .category-link, .timeline-content h4, .reason-content h3, .footer-section h4, 
.btn, .btn-secondary, .btn-primary, .btn-cta, .details-btn, .faq-question h3 {
    font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
    font-weight: 500;
    font-display: swap;
}

/* Typography for body text */
body, p, li, .feature, .detail-card p, .timeline-content p, input, textarea, select, label, 
.contact-item p, .testimonial-content p, .case-study-content p {
    font-family: 'Open Sans', 'Open Sans Fallback', sans-serif;
    font-display: swap;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 40px;
}

.cta-banner {
    display: flex;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-image {
    flex: 0 0 40%;
    position: relative;
    contain: layout style;
}

.cta-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.cta-content {
    flex: 0 0 60%;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.cta-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
    }
    
    .cta-image {
        height: 200px;
    }
    
    .cta-content {
        padding: 30px;
    }
}

.btn-cta {
    background-color: var(--secondary);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px 32px;
    border-radius: 30px;
    transition: all 0.3s;
    display: inline-block;
    letter-spacing: 0.5px;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #ffdd33;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.footer-section h4 .material-symbols-rounded {
    margin-right: 8px;
}

.footer-section p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Image Modal/Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    margin-top: 50px;
    object-fit: contain;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--secondary);
    text-decoration: none;
}

/* Mobile navigation styles */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    height: 42px; /* Passend zur Menühöhe */
}

.burger-icon {
    display: block;
    position: relative;
    width: 25px;
    height: 20px;
}

.burger-icon span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger-icon span:nth-child(1) {
    top: 0px;
}

.burger-icon span:nth-child(2) {
    top: 8px;
}

.burger-icon span:nth-child(3) {
    top: 16px;
}

.mobile-nav-toggle.active .burger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobile-nav-toggle.active .burger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-nav-toggle.active .burger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

body.no-scroll {
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -300px;
        width: 270px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 20px 30px;
        transition: right 0.3s ease-in-out;
        z-index: 95;
        margin-top: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-x: visible;
        overflow-y: auto;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        margin-bottom: 15px;
        flex-shrink: 1;
    }
    
    nav ul li a {
        display: flex;
        width: 100%;
        padding: 10px;
        white-space: normal;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    .product-item, 
    .product-item:nth-child(even) {
        flex-direction: column;
        align-items: center;
    }
    
    .product-info {
        max-width: 100%;
    }
    
    .product-preview {
        max-width: 100%;
        width: 100%;
    }
    
    .product-screenshot-large {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
        min-height: 350px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .benefits {
        grid-template-columns: 1fr;
    }
    
    .product-screenshot-large {
        height: 250px;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .product-screenshot-large img {
        object-fit: contain;
    }
    
    /* Verbessertes horizontales Scrolling für Menü auf mobilen Geräten */
    nav ul {
        padding-right: 10px; /* Zusätzlicher Platz für den letzten Menüpunkt */
    }
    
    nav ul li:last-child {
        padding-right: 10px; /* Verhindert Abschneiden des letzten Elements */
    }
}