/* DOMAIN - Buchhaltung Deutschland | Professional Design System */
:root {
    /* Уникальная цветовая палитра */
    --primary-gradient: linear-gradient(135deg, #007FFF 0%, #FF6F61 100%);
    --accent-lime: #C8FF00;
    --background-graphite: #2E2E2E;
    --text-light: #EAEAEA;
    --button-teal: #00C2A8;
    --azure: #007FFF;
    --coral: #FF6F61;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-graphite);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Анимации CSS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(46, 46, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--accent-lime));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-lime);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-lime);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
.section {
    padding: 5rem 0;
    animation: fadeInUp 0.8s ease-out;
}

.section:target {
    animation: pulse 1s ease-in-out;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 46, 46, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--button-teal);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 194, 168, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 194, 168, 0.5);
    background: #00A693;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-lime);
    box-shadow: 0 15px 30px rgba(200, 255, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-lime);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--azure);
}

.service-description {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.service-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--accent-lime);
    text-decoration: none;
    border: 2px solid var(--accent-lime);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-button:hover {
    background: var(--accent-lime);
    color: var(--background-graphite);
    transform: scale(1.05);
}

/* Form Styles */
.form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--azure);
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-lime);
    box-shadow: 0 0 10px rgba(200, 255, 0, 0.3);
}

.form-select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-lime);
    box-shadow: 0 0 10px rgba(200, 255, 0, 0.3);
}

.form-select option {
    background: var(--background-graphite);
    color: var(--text-light);
    padding: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-input {
    margin-top: 0.2rem;
}

.checkbox-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--azure);
    text-decoration: none;
}

.checkbox-label a:hover {
    color: var(--accent-lime);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--button-teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #00A693;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 194, 168, 0.3);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(46, 46, 46, 0.98);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    z-index: 2000;
    backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: var(--button-teal);
    color: white;
}

.cookie-accept:hover {
    background: #00A693;
    transform: scale(1.05);
}

.cookie-decline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.cookie-decline:hover {
    background: var(--card-bg);
}

/* Footer */
.footer {
    background: rgba(46, 46, 46, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--azure);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-lime);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: rgba(234, 234, 234, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding-top: 80px;
        min-height: calc(100vh - 80px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .section {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
        min-height: calc(100vh - 100px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .services-grid {
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
}

/* SEO и accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Preloader animation */
.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Prevent horizontal overflow */
*, *::before, *::after {
    max-width: 100%;
}

iframe {
    max-width: 100%;
}

/* Focus styles for accessibility */
.cta-button:focus,
.service-button:focus,
.form-input:focus,
.submit-button:focus {
    outline: 2px solid var(--accent-lime);
    outline-offset: 2px;
}

/* FAQ Styles with Details/Summary */
.faq-item {
    background: var(--card-bg);
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-summary {
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: all 0.3s ease;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::marker {
    display: none;
}

.faq-question {
    color: var(--azure);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--accent-lime);
    font-weight: bold;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-item[open] .faq-icon::before {
    content: '×';
}

.faq-item:not([open]) .faq-icon::before {
    content: '+';
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    animation: fadeInUp 0.3s ease-out;
}

.faq-answer p {
    line-height: 1.6;
    margin: 0;
}

/* Responsive Grid Fixes */
@media (max-width: 768px) {
    #about .container > div {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    
    #contact .container > div {
        grid-template-columns: 1fr !important;
    }
} 