* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0077c0;
    --secondary-blue: #0094e0;
    --accent-orange: #ff7f27;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f5f5f5;
    --bg-dark: #333;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 0.8rem 2rem;
    border-bottom: 1px solid #eaeaea;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    max-height: 50px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* Desktop vs Mobile Element Visibility */
.desktop-only {
    display: flex;
}

.mobile-menu-item {
    padding: 1rem 2rem;
}

.language-selector-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.language-selector-mobile label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-blue);
}

#mobileLanguageSelect {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    font-size: 1rem;
}

.mobile-cta {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.8rem 1rem;
    font-size: 1rem;
}

.language-selector select {
    padding: 0.5rem 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
    color: #444;
}

.header-cta {
    margin: 0;
    background-color: var(--primary-blue);
    border-radius: 25px;
    padding: 0.7rem 1.2rem;
    min-width: unset;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    text-align: center;
}

.header-cta:hover {
    background-color: #0065a8;
}

/* Mobile Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    margin-left: 1rem;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

nav {
    display: none;
}

nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 100;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    border-bottom: 1px solid #eaeaea;
}

nav ul li:last-child {
    border-bottom: none;
}

nav ul li a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #f5f5f5;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

#benefits .section-title {
    font-size: 2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.3;
    color: #222;
}

#calculator .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    background-color: #f0f5f9;
    padding: 4rem 0;
    margin: 20px calc(-50vw + 50%);
    width: 100vw;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin-left: auto;
    padding-left: 2rem;
}

.hero-content h1 {
    color: var(--primary-blue);
    font-size: 3.2rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 700;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-left: 2rem;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-size: 1.2rem;
    font-weight: bold;
}

.check-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    position: relative;
    max-width: 600px;
    margin-right: auto;
    padding-right: 2rem;
}

.hero-gallery {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    aspect-ratio: 16 / 9;
}

.gallery-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-images img.active {
    opacity: 1;
}

.pixel-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-cta {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    margin-top: 2.5rem;
    width: 100%;
    max-width: 400px;
    margin-left: 2rem;
    transform: translateX(-2rem);
    display: block;
}

/* CTA Button */
.cta-button {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin: 2rem auto;
    min-width: 250px;
}

.cta-button:hover {
    background-color: #e06a1b;
}

/* Benefits Section */
.benefits-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.benefit-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    width: calc(25% - 1.5rem);
    min-width: 240px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon.blue {
    background-color: var(--primary-blue);
}

.icon.orange {
    background-color: var(--accent-orange);
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.benefit-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
}

.cta-container {
    text-align: center;
    margin: 2.5rem auto;
}

.blue-button {
    background-color: var(--primary-blue);
}

.blue-button:hover {
    background-color: #0065a8;
}

/* Calculator Section */
.calculator-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.calculator {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-field label {
    font-weight: 600;
    color: #444;
}

.input-with-button {
    display: flex;
    width: 100%;
}

.input-with-button input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    font-weight: 500;
}

.shares-button {
    padding: 0.8rem 1.2rem;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-weight: 500;
    color: #555;
}

.slider-container {
    position: relative;
    padding: 1.5rem 0;
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    transform: translateY(-50%);
    z-index: 1;
}

.slider-track-blue {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%; /* Updated by JS */
    background-color: var(--primary-blue);
    border-radius: 3px 0 0 3px;
    z-index: 2;
}

.slider-track-orange {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50%; /* Updated by JS */
    background-color: var(--accent-orange);
    border-radius: 0 3px 3px 0;
    z-index: 2;
}

#shares-slider {
    position: relative;
    width: 100%;
    height: 6px;
    appearance: none;
    background: transparent;
    z-index: 3;
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
}

#shares-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 30px;
}

#shares-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 30px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.results-container {
    display: flex;
    gap: 1.5rem;
}

.result-box {
    flex: 1;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.result-box.blue-bg {
    background-color: #e6f1fc;
    color: var(--primary-blue);
}

.result-box.green-bg {
    background-color: #e6ffe6;
    color: #2a8c2a;
}

.result-label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.result-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
}

.info-text {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.info-text h4 {
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.info-text p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.result-box.green-bg .result-value {
    color: var(--accent-orange);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-left: 1rem;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* Testimonials Section */
.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.testimonial {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    width: 45%;
    min-width: 300px;
    position: relative;
}

.testimonial-content {
    position: relative;
    padding-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 1.5rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: rgba(255, 127, 39, 0.15);
    font-family: Arial, sans-serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #333;
}

.author-info span {
    font-weight: bold;
}

.author-info .separator {
    color: #999;
    margin: 0 0.2rem;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 4rem 0 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.footer-content h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.footer-bottom {
    background: white;
    padding: 3rem 0;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.footer-left {
    flex: 1;
    text-align: left;
    padding-left: 2rem;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-right {
    flex: 1;
    text-align: right;
    padding-right: 2rem;
}

.footer-logo {
    max-width: 180px;
    margin: 0;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    transition: transform 0.2s;
    cursor: pointer;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

.legal-links {
    margin: 1rem 0 0;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    margin: 0 0 0 1.5rem;
    font-size: 0.9rem;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.gallery-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 15;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: var(--accent-orange);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    /* Tablet Styles */
    main {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        gap: 2rem;
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .benefit-card {
        width: calc(50% - 1.5rem);
    }
    
    .testimonials-container {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Styles */
    .desktop-only {
        display: none;
    }
    
    .header-container {
        flex-direction: row;
        padding: 1rem;
    }
    
    .header-right {
        margin-top: 0;
        width: auto;
        justify-content: flex-end;
    }
    
    .hamburger-menu {
        display: flex;
        margin-left: 0;
    }
    
    nav.active {
        display: block;
        position: fixed;
        top: 70px; /* Anpassen an die Header-Höhe */
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;
        padding-bottom: 20px;
    }
    
    nav ul {
        padding-top: 10px;
    }
    
    nav ul li a {
        font-size: 1.1rem;
        padding: 1.2rem 2rem;
    }
    
    .hero-section {
        flex-direction: column;
        padding: 2rem 0;
    }
    
    .hero-content, .hero-image {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-cta {
        margin-left: 0;
        transform: none;
        width: 100%;
    }
    
    .benefits-container {
        flex-direction: column;
    }
    
    .benefit-card {
        width: 100%;
    }
    
    .results-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .testimonials-container {
        flex-direction: column;
    }
    
    .testimonial {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .footer-left, .footer-center, .footer-right {
        width: 100%;
        margin-bottom: 1.5rem;
        justify-content: center;
        padding: 0;
    }
    
    .footer-logo {
        margin: 0 auto 1rem;
    }
    
    .social-share {
        margin-bottom: 1rem;
    }
    
    .legal-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .legal-links a {
        margin: 0;
    }
}

@media (max-width: 480px) {
    /* Small Mobile Styles */
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .slider-labels {
        font-size: 0.8rem;
    }
    
    .hero-gallery {
        height: 250px;
    }
    
    .gallery-indicators {
        bottom: 10px;
    }
    
    .calculator-container {
        padding: 1rem;
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .input-with-button input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .shares-button {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .slider-container {
        margin: 1.5rem 0;
    }
    
    #shares-slider {
        margin: 1.5rem 0;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    .author-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .footer-content h2 {
        font-size: 1.5rem;
    }
    
    .header-container {
        padding: 0.8rem;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .hamburger-menu {
        top: 1.2rem;
        right: 1.2rem;
    }
    
    nav.active {
        top: 60px; /* Anpassen für kleinere Header-Höhe */
    }
    
    .mobile-menu-item {
        padding: 0.8rem 1.5rem;
    }
}

/* Optimierung für Touch-Geräte */
@media (hover: none) {
    #shares-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    #shares-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
    
    .cta-button, .header-cta, .shares-button {
        padding: 12px 20px;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
    }
    
    .social-icon svg {
        width: 24px;
        height: 24px;
    }
}