/* 
 * Main Stylesheet for Steuerberatung Website
 * Author: Professional Developer
 * Version: 1.0
 */

/* ===== Base Styles ===== */
:root {
    --color-bg: #fef8f0;
    --color-primary: #003049;
    --color-accent: #d62828;
    --color-secondary: #f77f00;
    --color-light: #eae2b7;
    --font-main: 'Arial', sans-serif;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 3rem 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #002035;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* ===== Header & Navigation ===== */
.main-header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    max-width: 200px;
}

.logo-svg {
    width: 200px;
    height: 60px;
}

.main-nav {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.active .nav-link::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    padding: 8rem 0;
    background-image: url('../img/SyAskL.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.hero-content .btn {
    font-size: 1.1rem;
    padding: 0.85rem 2rem;
}

.hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Адаптивные стили для hero-секции */
@media (max-width: 992px) {
    .hero {
        padding: 6rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .btn {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
}

/* ===== About Section ===== */
.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-text p {
    margin-bottom: 1rem;
}

/* ===== Services Section ===== */
.services {
    background-color: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ===== Benefits Section ===== */
.benefits {
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.benefit-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    margin-bottom: 0.75rem;
}

/* ===== Process Section ===== */
.process {
    background-color: var(--color-bg);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.step {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--color-secondary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.author-info p {
    font-size: 0.9rem;
    color: #777;
}

/* ===== Pricing Section ===== */
.pricing {
    background-color: var(--color-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 2px solid var(--color-secondary);
    transform: translateY(-10px);
}

.pricing-header {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--color-primary);
    color: white;
}

.pricing-header h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
}

.price span {
    font-size: 1rem;
    font-weight: normal;
}

.pricing-features {
    padding: 1.5rem;
}

.pricing-features ul {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--color-secondary);
    position: absolute;
    left: 0;
}

.pricing-card .btn {
    display: block;
    margin: 0 1.5rem 1.5rem;
}

/* ===== Contact Section ===== */
.contact {
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 0.75rem;
    display: flex;
}

.contact-label {
    font-weight: bold;
    margin-right: 0.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 1rem;
}

.contact-form .checkbox-group {
    display: flex;
    align-items: flex-start;
}

.contact-form .checkbox-group input {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.3rem;
}

.form-submit {
    text-align: right;
}

/* ===== Footer ===== */
.main-footer {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-grid h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-grid a {
    color: var(--color-light);
}

.footer-grid a:hover {
    color: white;
}

.footer-legal ul {
    list-style: none;
}

.footer-legal li {
    margin-bottom: 0.75rem;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0.5rem 1rem 0.5rem 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-banner .btn {
    margin: 0.5rem 0;
}

.cookie-banner .btn-primary {
    background-color: #f77f00;
    color: white;
    border: 2px solid #f77f00;
    font-weight: bold;
}

.cookie-banner .btn-primary:hover {
    background-color: #f28500;
    border-color: #f28500;
}

.cookie-banner .btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-weight: bold;
}

.cookie-banner .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== Thanks Page ===== */
.thanks-section {
    padding: 5rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.thanks-content h1 {
    margin-bottom: 1.5rem;
}

.thanks-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.thanks-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card, .service-card, .benefit-card, .step, .testimonial-card {
    animation: fadeIn 0.5s ease-out;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 85px;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: var(--shadow);
        height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    
    .main-nav.show {
        height: auto;
        padding: 1rem 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* ===== Policy Pages ===== */
.policy-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.policy-content {
    margin-bottom: 2rem;
}

.policy-content h2 {
    margin-top: 2rem;
    text-align: left;
}

.policy-content h3 {
    margin-top: 1.5rem;
}

.policy-content p, .policy-content ul {
    margin-bottom: 1rem;
}

.policy-content ul {
    padding-left: 2rem;
}

/* Адаптивные таблицы */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.cookie-table th, .cookie-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cookie-table th {
    background-color: var(--color-light);
    font-weight: bold;
}

/* Мобильная версия таблицы */
@media (max-width: 768px) {
    .cookie-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== Responsive Tables ===== */
.table-responsive {
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .cookie-table {
        border: 0;
    }
    
    .cookie-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    .cookie-table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: 1rem;
    }
    
    .cookie-table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: 0.9rem;
        text-align: right;
    }
    
    .cookie-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
    
    .cookie-table td:last-child {
        border-bottom: 0;
    }
}

/* Utility classes for responsive behavior */
.d-md-none {
    display: none;
}

@media (max-width: 768px) {
    .d-md-none {
        display: inline;
    }
} 