/* Main styles for domain.com - Accounting services in Germany */

/* Base styles and variables */
:root {
    --primary-color: #282c34; /* Dark gray with blue undertone */
    --accent-color: #fdb813; /* Bright yellow */
    --background-color: #ffffff; /* White */
    --secondary-color: #9ae19d; /* Mint green */
    --text-color: #1a1a1a; /* Black */
    --text-secondary: #6e6e6e; /* Dark gray */
    --transition: all 0.3s ease;
    --container-padding: 15px;
    --section-spacing: 80px;
}

/* Reset and base styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

h2:after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    height: 4px;
    width: 80px;
    background-color: var(--accent-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: lowercase;
}

.logo span {
    color: var(--accent-color);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

/* Mobile navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

#mobile-menu-checkbox {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--background-color);
        transition: var(--transition);
        overflow-y: auto;
    }

    #mobile-menu-checkbox:checked ~ nav {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin: 15px 0;
    }

    .mobile-menu-toggle span {
        transition: var(--transition);
    }

    #mobile-menu-checkbox:checked ~ .mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #mobile-menu-checkbox:checked ~ .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu-checkbox:checked ~ .mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--background-color);
    max-width: 800px;
}

.hero h1 {
    color: var(--background-color);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Sections */
section {
    padding: var(--section-spacing) 0;
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background-color: #eee;
}

section:nth-child(even) {
    background-color: #f9f9f9;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-gap: 40px;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
}

.service-card {
    background-color: var(--background-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 5px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--accent-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Benefits Section */
.benefits {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.benefits h2 {
    color: var(--background-color);
}

.benefits h3 {
    color: var(--background-color);
}

.benefits p {
    color: var(--background-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.benefit-icon {
    margin-right: 15px;
    color: var(--accent-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Testimonials Section */
.testimonials-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.testimonial-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
    margin-right: 30px;
    background-color: var(--background-color);
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content:before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
}

.testimonial-info h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-item summary {
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
}

.faq-item[open] summary:after {
    content: '-';
}

.faq-content {
    padding: 0 15px 15px;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
}

.blog-card {
    background-color: var(--background-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.blog-excerpt {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Order Form Section */
.order-form-section {
    background-color: #f9f9f9;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--background-color);
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-row {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(253, 184, 19, 0.2);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M2 5l6 6 6-6H2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.form-select option {
    color: black;
    background-color: white;
}

.form-checkbox-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-checkbox {
    margin-right: 10px;
    margin-top: 3px;
}

.form-checkbox-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-submit {
    width: 100%;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--background-color);
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-about p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-heading {
    color: var(--background-color);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
}

.contact-icon {
    margin-right: 10px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #999;
}

/* Policy Pages */
.policy-container {
    max-width: 900px;
    margin: 100px auto 50px;
    padding: 40px;
    background-color: var(--background-color);
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-logo {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.policy-logo span {
    color: var(--accent-color);
}

.policy-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
}

.policy-content h3 {
    font-size: 1.25rem;
    margin-top: 30px;
}

.policy-content ul, 
.policy-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 10px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

.cookie-popup.active {
    display: block;
    animation: slideIn 0.5s forwards;
}

.cookie-text {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 10px;
}

.cookie-accept {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.cookie-decline {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Extra pages */
.simple-page {
    padding: 120px 0 80px;
}

.simple-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Thank you page */
.thank-you-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 100px auto 50px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

/* Card styling for images */
.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 2:3 aspect ratio */
}

.card-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-container img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    background-color: #fff;
}

.card-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        height: 80vh;
        padding-top: 100px;
    }
    
    .hero-content {
        width: 100%;
        max-width: 600px;
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    var(--section-spacing) {
        --section-spacing: 60px;
    }
    
    .testimonial-card {
        max-width: 100%;
        margin-right: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .hero {
        height: 100vh;
        min-height: 500px;
        padding: 120px 20px 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    var(--section-spacing) {
        --section-spacing: 40px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .form-container {
        padding: 20px;
    }
}
