/* 
 * domain - Buchhaltungsdienstleistungen
 * Color Palette:
 * - Electric Plum (#7D3AC1)
 * - Honey Gold (#FFB83D)
 * - Arctic Aqua (#78E6D0)
 * - Charcoal Ash (#2E2E38)
 * - Rose Quartz (#F5B6B6)
 */

/* Reset and Base Styles */
:root {
    --plum: #7D3AC1;
    --gold: #FFB83D;
    --aqua: #78E6D0;
    --charcoal: #2E2E38;
    --rose: #F5B6B6;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--plum);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--gold);
    color: var(--charcoal);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--plum);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Header Styles */
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 .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

.desktop-menu li {
    margin-left: 30px;
}

.desktop-menu a {
    color: var(--charcoal);
    font-weight: 600;
    position: relative;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.desktop-menu a:hover::after,
.desktop-menu a.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
}

#menu-toggle {
    display: none;
}

.mobile-menu-toggle label {
    display: flex;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.mobile-menu-toggle label span {
    background: var(--charcoal);
    height: 3px;
    margin: 3px 0;
    transition: 0.4s;
    border-radius: 2px;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: -1;
    overflow-x: hidden;
}

.mobile-menu ul {
    flex-direction: column;
    gap: 15px;
}

.mobile-menu li {
    width: 100%;
    margin: 0;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-size: 1.2rem;
}

#menu-toggle:checked ~ .mobile-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#menu-toggle:checked + label span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#menu-toggle:checked + label span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + label span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--plum), var(--aqua));
    padding: 160px 0 100px;
    color: white;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    width: 100%;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    white-space: normal;
    overflow: hidden;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
    white-space: nowrap;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    padding: 20px;
}

.about-content h2 {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--gold);
}

/* Services Section */
.services {
    background-color: #f9f9f9;
    padding: 100px 0;
    position: relative;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--plum);
}

/* Why Choose Us Section */
.why-us {
    padding: 100px 0;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.reason-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-10px);
}

.reason-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--aqua);
    border-radius: 50%;
    color: var(--plum);
    font-size: 2rem;
}

/* Process Section */
.process {
    background-color: #f9f9f9;
    padding: 100px 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--gold);
}

.process-step {
    text-align: center;
    width: 22%;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--plum);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-content h3 {
    margin-bottom: 10px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
}

.testimonial-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    display: flex;
    width: 300%;
}

.testimonial {
    width: 33.33%;
    flex-shrink: 0;
    padding: 40px;
    background-color: var(--rose);
    border-radius: 10px;
    margin: 0 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 5rem;
    color: rgba(125, 58, 193, 0.1);
    position: absolute;
    top: -40px;
    left: -20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--plum);
    font-size: 0.9rem;
    margin: 0;
}

/* CSS-only automatic testimonial slider */
@keyframes slide {
    0%, 30% { transform: translateX(0); }
    33%, 63% { transform: translateX(-33.33%); }
    66%, 96% { transform: translateX(-66.66%); }
    100% { transform: translateX(0); }
}

.testimonial-slide {
    animation: slide 20s infinite ease-in-out;
}

.testimonial-slide:hover {
    animation-play-state: paused;
}

/* Pricing Section */
.pricing {
    background-color: #f9f9f9;
    padding: 100px 0;
}

.pricing-table {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.pricing-plan {
    width: 30%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.plan-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--plum), var(--aqua));
    color: white;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 15px 0;
}

.plan-price span {
    font-size: 1rem;
    font-weight: normal;
}

.plan-features {
    padding: 30px;
}

.plan-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.plan-features li::before {
    content: '✓';
    color: var(--plum);
    position: absolute;
    left: 0;
}

.plan-cta {
    text-align: center;
    padding-bottom: 30px;
}

/* Order Form Section */
.order-form {
    padding: 100px 0;
    position: relative;
}

.form-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--rose);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    padding: 60px 40px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--plum);
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.form-checkbox {
    margin-bottom: 15px;
}

.form-checkbox input {
    margin-right: 10px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Footer */
footer {
    background-color: var(--charcoal);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info p {
    margin-top: 20px;
    opacity: 0.8;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin: 0;
}

/* Cookie Consent Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 400px;
    text-align: center;
    z-index: 1001;
    display: none;
}

.cookie-popup.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

.cookie-popup p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

#accept-cookies {
    background-color: var(--gold);
    color: var(--charcoal);
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#accept-cookies:hover {
    background-color: var(--plum);
    color: white;
}

/* Policy Pages */
.policy-page {
    padding: 150px 0 100px;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--rose);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
    color: var(--plum);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gold);
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    color: var(--plum);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

/* Animation triggers - CSS only implementation */
.fade-in-up {
    animation: fadeInUpAuto 2s forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUpAuto {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    h1 {
        font-size: 2.7rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .services-grid,
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        flex-wrap: wrap;
    }
    
    .process-step {
        width: 45%;
        margin-bottom: 40px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 130px 0 70px;
    }
    
    .hero-content {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .pricing-table {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-plan {
        width: 100%;
        max-width: 400px;
        margin-bottom: 30px;
    }
    
    .form-container {
        clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Additional mobile fixes */
    main, section, div {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 120px 0 60px;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        width: 100%;
    }
    
    .form-container {
        padding: 40px 20px;
        clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
    }
    
    /* Force no horizontal scroll */
    html, body {
        width: 100vw;
        overflow-x: hidden;
    }
    
    main {
        width: 100%;
    }
    
    section {
        width: 100%;
    }
    
    /* Fix table displays on mobile */
    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
}
