/* CSS-Variablen für Light und Dark Mode */
:root {
    --primary-accent: #f28c38; /* Orange */
    --primary-accent-hover: #d97706; /* Dunkleres Orange */
    --background: #fff;
    --section-background: #f5f5f7;
    --text: #1d1d1f;
    --secondary-text: #6e6e73;
    --card-background: #fff;
    --nav-background: rgba(255, 255, 255, 0.95);
    --hero-overlay: rgba(0, 0, 0, 0.3); /* Leichter Overlay für Light Mode */
    --image-bg: #f0f0f0; /* Individuelle Hintergrundfarbe für transparente Bilder */
    --logo: url("bilder/logo_2.svg");
}

[data-theme="dark"] {
    --primary-accent: #f28c38;
    --primary-accent-hover: #d97706;
    --background: #1c2526;
    --section-background: #2e3b3e;
    --text: #e0e0e0;
    --secondary-text: #a0a0a0;
    --card-background: #1c2526;
    --nav-background: rgba(30, 37, 38, 0.95);
    --hero-overlay: rgba(0, 0, 0, 0.3); /* Dunklerer Overlay für Dark Mode */
    --image-bg: #919191; /* Dunklere Hintergrundfarbe für transparente Bilder im Dark Mode */
    --logo: url("bilder/logo_4.svg");
}

/* Allgemeine Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.5;
    background: var(--background);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--nav-background);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    /* font-size: 24px;
    font-weight: 800;
    font-weight: bold;
    max-width: 160px; */
    max-width: 120px;
    width: 120px;
    height: 40px;
    /* background-image: url("bilder/pep4logo_dark.svg"); */
    background-image: var(--logo);
    background-size: cover; /* Optional: Bild skaliert, um das div zu füllen */
    background-position: center; /* Optional: Bild zentriert */
    background-repeat: no-repeat; /* Optional: Verhindert Wiederholung des Bildes */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-accent);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
    transition: color 0.3s;
}

.theme-toggle:hover {
    color: var(--primary-accent);
}

/* Hero Section mit Parallax */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('hero-bg.jpg') no-repeat center/cover;
    background-blend-mode: overlay;
    background-color: var(--hero-overlay);
    z-index: -1;
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

.hero-content {
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    transition: transform 0.2s, background 0.3s;
}

.cta-button:hover {
    background: var(--primary-accent-hover);
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 80px 40px;
    text-align: center;
    background: var(--section-background);
}

.features h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    padding: 20px;
    background: var(--card-background);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
    min-height: 300px;
}

.feature-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.feature-item:hover h3 {
    color: var(--primary-accent);
}

.feature-item p {
    font-size: 16px;
    color: var(--secondary-text);
}

/* Screenshots Section */
.screenshots {
    padding: 80px 40px;
    text-align: center;
    background: var(--section-background);
}

.screenshots h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
}

.screenshot-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.screenshot-item {
    display: flex;
    align-items: center;
    background: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    max-width: 500px;
    width: 100%;
}

.screenshot-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.screenshot-image {
    flex: 1;
    max-width: 50%;
}

.screenshot-image img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-content {
    flex: 1;
    padding: 20px;
    text-align: left;
}

.screenshot-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.screenshot-content p {
    font-size: 16px;
    color: var(--secondary-text);
}

/* Benefits Section */
.benefits {
    padding: 80px 40px;
    text-align: center;
}

.benefits h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.benefit-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 16px;
    color: var(--secondary-text);
}

/* Pricing Section */
.pricing {
    padding: 80px 40px;
    text-align: center;
}

.pricing h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-item {
    padding: 20px;
    background: var(--section-background);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.pricing-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.pricing-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pricing-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.pricing-item .price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-accent);
    margin-bottom: 10px;
}

.pricing-item p {
    font-size: 16px;
    color: var(--secondary-text);
    margin-bottom: 20px;
}

.pricing-item ul {
    list-style: none;
    margin-bottom: 20px;
}

.pricing-item ul li {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 10px;
}

.pricing-item .cta-button {
    width: 100%;
    text-align: center;
}

/* Preisrechner Tabelle */
#priceTable {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#priceTable th,
#priceTable td {
    padding: 8px 24px;
    text-align: left;
}

#priceTable th {
    font-weight: 600;
    text-transform: uppercase;
    background-color: var(--primary-accent);
    color: white;
}

#priceTable td {
    font-weight: 500;
}

#priceTable tbody tr:not(:last-child) td {
    border-bottom: none;
}

#priceTable tbody tr:last-child td {
    border-top: 2px solid var(--primary-accent);
    font-weight: 700;
    background-color: var(--section-background);
}

#priceTable td:last-child {
    text-align: right;
}

#priceTable input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--secondary-text);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

#priceTable input[type="checkbox"]:checked {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
}

#priceTable input[type="checkbox"]:checked::after {
    content: '\2713';
    color: white;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#priceTable tbody tr:hover input[type="checkbox"] {
    border-color: var(--primary-accent);
}

#priceTable th:first-child,
#priceTable td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
}

#priceTable thead th {
    position: sticky;
    top: 0;
    background-color: var(--primary-accent);
    z-index: 2;
}

/* Eingabefeld für Mitarbeiteranzahl */
#employeeCount {
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

#employeeCount:focus {
    box-shadow: 0 0 0 3px rgba(242, 140, 56, 0.2);
}

/* Animation für Puls-Effekt in Gesamtzeile */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.animate-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 40px;
    text-align: center;
    background: var(--section-background);
}

.testimonials h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-item {
    padding: 20px;
    background: var(--card-background);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.testimonial-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-item p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-accent);
}

/* Contact Section */
.contact {
    padding: 80px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    color: var(--secondary-text);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.contact-form.animate {
    opacity: 1;
    transform: translateY(0);
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--secondary-text);
    border-radius: 8px;
    background: var(--background);
    color: var(--text);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-accent);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.form-group.consent {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.form-group.consent input {
    width: auto;
}

.form-group.consent label {
    font-size: 14px;
    font-weight: 400;
}

.form-group.consent a {
    color: var(--primary-accent);
    text-decoration: none;
}

.form-group.consent a:hover {
    text-decoration: underline;
}

.contact-form .cta-button {
    width: 100%;
    text-align: center;
}

/* Imprint und Privacy Section */
.imprint,
.privacy {
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.imprint h1,
.privacy h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.imprint h2,
.privacy h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.imprint p,
.privacy p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 10px;
}

.imprint ul,
.privacy ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 10px;
}

.imprint ul li,
.privacy ul li {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 5px;
}

.imprint a,
.privacy a {
    color: var(--primary-accent);
    text-decoration: none;
}

.imprint a:hover,
.privacy a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--section-background);
    padding: 40px;
    text-align: center;
}

.footer-content p {
    font-size: 14px;
    color: var(--secondary-text);
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Vertriebspartner Sektion */
.partners {
    padding: 80px 40px;
    text-align: center;
    background: var(--section-background);
}

.partners p {
    font-size: 18px;
    color: var(--secondary-text);
    margin-bottom: 40px;
}

.partners h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-item {
    padding: 20px;
    background: var(--card-background);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.partner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    background-color: var(--image-bg); /* Individuelle Hintergrundfarbe für transparente Logos */
    padding: 10px; /* Optional: Padding für besseres Aussehen */
    border-radius: 8px; /* Optional: Abgerundete Ecken */
    object-fit: contain; /* Verhindert Verzerrung des Logos */
}

.partner-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.partner-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.3s;
}

.partner-link:hover {
    background: var(--primary-accent-hover);
}

/* Barrierefreiheit: Reduzierte Animationen */
@media (prefers-reduced-motion: reduce) {
    .feature-item,
    .benefit-item,
    .pricing-item,
    .testimonial-item,
    .screenshot-item,
    .contact-form,
    .partner-item,
    #priceTable,
    #employeeCount {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .hero-bg {
        transform: none !important;
    }
    .animate-pulse {
        animation: none;
    }
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.4s;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .logo {
        max-width: 100px;
        height: 30px;
    }

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: var(--nav-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 18px;
    }

    .features h2,
    .screenshots h2,
    .benefits h2,
    .pricing h2,
    .testimonials h2,
    .contact h1,
    .partners h2,
    .imprint h1,
    .privacy h1 {
        font-size: 36px;
    }

    .screenshot-item {
        flex-direction: column;
        max-width: 100%;
    }

    .screenshot-image {
        max-width: 100%;
    }

    .screenshot-content {
        text-align: center;
    }

    .partner-item {
        padding: 15px;
    }

    .partner-logo {
        width: 80px;
        height: 80px;
    }

    .partner-item h3 {
        font-size: 20px;
    }

    .partner-link {
        font-size: 14px;
        padding: 8px 16px;
    }

    #priceTable {
        min-width: 100%;
    }

    #priceTable {
        font-size: 14px;
    }
    #priceTable th,
    #priceTable td {
        padding: 8px 12px;
    }
}