/* 
 * FinanzLicht GmbH - Main Stylesheet
 * Color Palette:
 * - Primary: #009379 (emerald)
 * - Secondary: #F6F1EE (ivory)
 * - Accent: #FFC857 (amber)
 * - Dark: #1A1A1A (charcoal gray)
 * - Text: #2E2E2E (dark) and #FFFFFF (white)
 */

:root {
    --primary: #009379;
    --secondary: #F6F1EE;
    --accent: #FFC857;
    --dark: #1A1A1A;
    --text-dark: #2E2E2E;
    --text-light: #FFFFFF;
    --max-width: 1200px;
    --header-height: 4rem;
    --footer-height: 12rem;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary);
    padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Helvetica', sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

h2:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    width: 5rem;
    height: 4px;
    background-color: var(--primary);
    transform: translateX(-50%);
}

/* Выравнивание заголовков для страниц политики */
.legal-content h2 {
    text-align: left;
}

.legal-content h2:after {
    left: 0;
    transform: none;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--accent);
    color: var(--dark);
}

.section {
    padding: 6rem 0;
}

.section:nth-child(even) {
    background-color: var(--secondary);
}

.section:nth-child(odd) {
    background-color: var(--text-light);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-light);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 1.8rem;
    width: auto;
}

/* Navigation Styles */
.checkbox-toggle {
    display: none;
}

.hamburger-icon {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

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

/* Hero Section */
.hero {
    background-color: var(--secondary);
    position: relative;
    padding: 5rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}

/* Services Section */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

/* Benefits Section */
.benefits-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

/* Testimonials Section */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
}

.testimonial-card:before {
    content: "\201C";
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.faq-question {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Contact Form Section */
.contact-section {
    position: relative;
    background-color: rgba(26, 26, 26, 0.8);
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./img/O096Na.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.contact-section h2,
.contact-section h2::after {
    color: var(--text-light);
}

.contact-section h2::after {
    background-color: var(--accent);
}

.form-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-checkbox input {
    margin-top: 0.3rem;
}

/* Footer Styles */
footer {
    background-color: var(--dark);
    color: var(--text-light);
    padding: 3rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-info h3 {
    color: var(--text-light);
}

.footer-links h3 {
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 24rem;
    background-color: var(--dark);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
}

.cookie-popup p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cookie-popup .btn {
    background-color: var(--accent);
    color: var(--dark);
}

.cookie-popup .btn:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .services-container, 
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 4rem;
    }

    body {
        padding-top: 4rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content {
        flex-direction: column;
    }

    .services-container,
    .benefits-container,
    .testimonials-container,
    .footer-container {
        grid-template-columns: 1fr;
    }

    /* Header adjustments for mobile */
    .logo {
        font-size: 1rem;
    }

    .logo img {
        height: 1.5rem;
    }
    
    .header-container {
        padding: 0.3rem 1rem;
    }

    /* CSS-only hamburger menu */
    .hamburger-icon {
        display: block;
        width: 24px;
        height: 24px;
        position: relative;
        cursor: pointer;
    }
    
    .hamburger-icon span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary);
        position: absolute;
        transition: var(--transition);
    }
    
    .hamburger-icon span:nth-child(1) {
        top: 4px;
    }
    
    .hamburger-icon span:nth-child(2) {
        top: 10px;
    }
    
    .hamburger-icon span:nth-child(3) {
        top: 16px;
    }
    
    .checkbox-toggle:checked ~ .hamburger-icon span:nth-child(1) {
        transform: rotate(45deg);
        top: 10px;
    }
    
    .checkbox-toggle:checked ~ .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .checkbox-toggle:checked ~ .hamburger-icon span:nth-child(3) {
        transform: rotate(-45deg);
        top: 10px;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--text-light);
        flex-direction: column;
        overflow: hidden;
        transition: var(--transition);
    }
    
    .checkbox-toggle:checked ~ .nav-menu {
        height: auto;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.8rem 0;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 3.5rem;
    }
    
    body {
        padding-top: 3.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 1.5rem 0;
    }
    
    .section {
        padding: 2.5rem 0;
    }
} 