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

/* Language-specific hyphenation for German */
html {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    scroll-behavior: smooth;
}

/* Цветовая палитра */
:root {
    --primary-color: #1E3A8A;
    --accent-color: #F59E0B;
    --background-color: #F3F4F6;
    --text-color: #111827;
    --hover-color: #3B82F6;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 4rem;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
    margin-top: -4rem;
    padding-top: 9rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero .container {
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero h1 span {
    word-break: break-word;
    hyphens: auto;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background-color: #D97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Cards */
.card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Service Cards */
.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 1rem 0;
}

.service-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.service-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

/* Testimonials */
.testimonial {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.testimonial .author {
    font-weight: 600;
    color: var(--primary-color);
}

/* FAQ */
.faq-item {
    background-color: var(--white);
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--background-color);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Form Styles */
.form-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group input.error,
.form-group select.error {
    border-color: #EF4444;
}

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

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}

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

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

.form-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.form-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    line-height: 1.6;
}

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

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

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text a {
    color: var(--accent-color);
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-button:hover {
    background-color: #D97706;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 4rem;
    }
    
    .header {
        padding: 0.3rem 0;
    }
    
    .header-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .nav a {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 0;
        padding-top: 6rem;
        text-align: center;
        min-height: 50vh;
        display: flex;
        align-items: center;
    }
    
    .hero .container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.4rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        font-weight: 700;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero h1 span {
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        line-height: 1.6;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        opacity: 0.95;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        display: inline-block;
        margin-top: 0.5rem;
        min-width: 200px;
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 3.5rem;
    }
    
    .header {
        padding: 0.2rem 0;
    }
    
    .header-container {
        padding: 0 0.5rem;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 0.9rem;
    }
    
    .nav ul {
        gap: 0.3rem;
        justify-content: center;
    }
    
    .nav a {
        font-size: 0.75rem;
        padding: 0.1rem 0.3rem;
    }
    
    .hero {
        padding: 2rem 0;
        padding-top: 5rem;
        min-height: 40vh;
        display: flex;
        align-items: center;
    }
    
    .hero .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero h1 span {
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
        line-height: 1.5;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        opacity: 0.95;
    }
    
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        display: block;
        margin: 1rem auto 0;
        width: 90%;
        max-width: 280px;
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        text-align: center;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .grid {
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}



/* Utilities */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.hidden {
    display: none;
}

/* Word break utility for long German words */
.break-long-words {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    word-break: break-word;
}

/* Mobile-specific word breaking */
@media (max-width: 768px) {
    h1, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Specific handling for long German compound words */
    .hero h1 {
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    .hero h1 span {
        display: inline-block;
        max-width: 100%;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        -ms-hyphens: auto;
    }
}

/* Success/Error Messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #10B981;
    color: var(--white);
}

.alert-error {
    background-color: #EF4444;
    color: var(--white);
} 

/* Thank You Page Styles */
.thank-you-step-card {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.thank-you-contact-card {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.thank-you-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.thank-you-step-card h3,
.thank-you-contact-card h3 {
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.thank-you-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
}

.step-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Mobile adjustments for thank you page */
@media (max-width: 768px) {
    .thank-you-step-card,
    .thank-you-contact-card {
        padding: 1.5rem;
    }
    
    .step-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .thank-you-step-card h3,
    .thank-you-contact-card h3 {
        font-size: 1.2rem;
    }
    
    .thank-you-steps {
        gap: 0.75rem;
    }
    
    .contact-info {
        gap: 0.75rem;
    }
} 