/* Общие стили и переменные */
:root {
    /* Цветовая палитра */
    --bg-color: #111827; /* Deep Midnight Navy */
    --primary-accent: #C084FC; /* Violet Neon */
    --secondary-accent: #34D399; /* Aquatic Mint Green */
    --headings: #FDE68A; /* Soft Yellow */
    --text: #E5E7EB; /* Light Gray */
    --cta-btn-bg: #F43F5E; /* Raspberry Red */
    --cta-btn-text: #FFFFFF; /* White */
    
    /* Типографика */
    --font-main: 'Inter', sans-serif;
    --font-alt: 'Rubik', sans-serif;
    --line-height: 1.2;
}

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Предотвращение горизонтального скролла на мобильных устройствах */
}

/* Смещение якорей, чтобы учитывать фиксированную шапку */
:target {
    scroll-margin-top: 80px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text);
    line-height: var(--line-height);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: var(--primary-accent);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-alt);
    color: var(--headings);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: var(--primary-accent);
    transform: translateX(-50%);
}

h3 {
    font-size: 1.8rem;
}

/* Секции */
section {
    padding: 80px 0;
    position: relative;
}

/* Диагональные разделители между секциями */
.diagonal-divider {
    height: 100px;
    position: relative;
    overflow: hidden;
}

.diagonal-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--primary-accent) 100%);
    transform: skewY(-3deg);
    transform-origin: 0 0;
}

/* Кнопки */
.button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.button-primary {
    background-color: var(--primary-accent);
    color: var(--cta-btn-text);
}

.button-primary:hover {
    background-color: var(--secondary-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.button-cta {
    background-color: var(--cta-btn-bg);
    color: var(--cta-btn-text);
}

.button-cta:hover {
    background-color: #e33552; /* Темнее Raspberry Red */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Header */
.site-header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: rgba(17, 24, 39, 0.9); /* Semi-transparent Deep Midnight Navy */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
}

.main-nav .nav-list li {
    margin-left: 30px;
}

.main-nav .nav-list li a {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav .nav-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: width 0.3s ease;
}

.main-nav .nav-list li a:hover::after {
    width: 100%;
}

.main-nav .nav-list .cta-button a {
    background-color: var(--cta-btn-bg);
    color: var(--cta-btn-text);
    padding: 8px 20px;
    border-radius: 50px;
}

.main-nav .nav-list .cta-button a:hover {
    background-color: #e33552; /* Темнее Raspberry Red */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.main-nav .nav-list .cta-button a::after {
    display: none;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
}

.menu-button {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-icon, .menu-icon:before, .menu-icon:after {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    position: absolute;
    transition: all 0.3s ease;
}

.menu-icon {
    top: 50%;
    transform: translateY(-50%);
}

.menu-icon:before {
    content: '';
    top: -8px;
}

.menu-icon:after {
    content: '';
    bottom: -8px;
}

.menu-icon.menu-open {
    background-color: transparent;
}

.menu-icon.menu-open:before {
    transform: rotate(45deg);
    top: 0;
}

.menu-icon.menu-open:after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Hero секция */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(192, 132, 252, 0.2) 100%);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.2s ease both;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s 0.4s ease both;
    justify-content: center;
}

/* Секция "Über uns" */
.about {
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Секция "Dienstleistungen" */
.services {
    background-color: rgba(17, 24, 39, 0.8);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(192, 132, 252, 0.1);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-accent);
    box-shadow: 0 15px 30px rgba(192, 132, 252, 0.2);
}

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Секция "Vorteile" */
.benefits {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(52, 211, 153, 0.1) 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.benefit-item {
    display: flex;
    gap: 20px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Секция "Kundenmeinungen" */
.testimonials {
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    width: 300%;
    animation: slideTestimonials 20s infinite linear;
}

.testimonial-slide {
    width: 33.333%;
    padding: 0 15px;
}

.testimonial-card {
    background: rgba(17, 24, 39, 0.8);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 4px solid var(--primary-accent);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    content: """;
    font-size: 5rem;
    color: var(--primary-accent);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -15px;
    z-index: -1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: rgba(229, 231, 235, 0.7);
}

/* Секция "Preise" */
.pricing {
    background-color: rgba(17, 24, 39, 0.9);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background: rgba(17, 24, 39, 0.8);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(192, 132, 252, 0.2);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--headings);
    margin-bottom: 10px;
}

.pricing-description {
    color: rgba(229, 231, 235, 0.7);
    font-size: 0.9rem;
}

.pricing-features {
    margin: 30px 0;
    list-style: none;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.1);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Секция "FAQ" */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: rgba(17, 24, 39, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-toggle {
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background-color: var(--primary-accent);
    transition: all 0.3s ease;
}

.faq-toggle::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-toggle::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-item.active .faq-toggle::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* Секция "Bestellformular" */
.order-form {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(192, 132, 252, 0.1) 100%);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    background-color: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(192, 132, 252, 0.3);
    color: var(--text);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23E5E7EB' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.form-checkbox label {
    font-size: 0.9rem;
}

.form-checkbox a {
    color: var(--primary-accent);
}

.form-submit {
    margin-top: 30px;
    text-align: center;
}

/* Footer */
.site-footer {
    background-color: rgba(13, 17, 28, 0.95); /* Темнее чем основной цвет фона */
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(229, 231, 235, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact h3,
.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 10px;
}

.footer-contact a,
.footer-links a {
    color: rgba(229, 231, 235, 0.7);
    transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: var(--primary-accent);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(229, 231, 235, 0.1);
    color: rgba(229, 231, 235, 0.5);
    font-size: 0.9rem;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(13, 17, 28, 0.95);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 1000;
}

.cookie-popup.active {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.cookie-content p {
    font-size: 0.9rem;
}

.cookie-content button {
    background-color: var(--primary-accent);
    color: var(--cta-btn-text);
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cookie-content button:hover {
    background-color: var(--secondary-accent);
}

/* CSS анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideTestimonials {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(0);
    }
    33.33% {
        transform: translateX(-33.333%);
    }
    58.33% {
        transform: translateX(-33.333%);
    }
    66.66% {
        transform: translateX(-66.666%);
    }
    91.66% {
        transform: translateX(-66.666%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-info {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding-top: 80px;
    }
    
    /* Мобильное меню */
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100vh;
        background-color: rgba(13, 17, 28, 0.95);
        padding: 100px 30px 30px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.nav-open {
        transform: translateX(0);
    }
    
    .main-nav .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav .nav-list li {
        margin-left: 0;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .main-nav .nav-list .cta-button {
        margin-top: 20px;
    }
    
    .main-nav .nav-list .cta-button a {
        display: block;
        text-align: center;
    }
    
    /* Структура сеток */
    .about-content,
    .services-grid,
    .benefits-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-buttons .button {
        margin-bottom: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cookie-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .button {
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .testimonial-slide {
        padding: 0;
    }
}
