/* 
* ZahlenWert Steuerberatung GmbH
* Hauptstylesheet
*/

/* Farbvariablen */
:root {
    --primary-color: #5C5470;
    --accent-color: #F5A623;
    --bg-color: #F4F2F7;
    --text-color: #2A2A2A;
    --light-color: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow-color: rgba(92, 84, 112, 0.2);
    --gradient-start: #F5A623;
    --gradient-end: #FF6F61;
}

/* Reset und Basis */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: var(--light-color);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(245, 166, 35, 0.4);
    transform: translateY(-2px);
    color: var(--light-color);
}

.btn-primary-small {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: var(--light-color) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

/* Header */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.logo {
    float: left;
}

.logo a {
    display: block;
}

/* Navigation */
.main-nav {
    float: right;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 1rem;
}

.menu-icon span, .menu-icon span::before, .menu-icon span::after {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    position: relative;
    transition: all 0.3s ease-in-out;
}

.menu-icon span::before, .menu-icon span::after {
    content: '';
    position: absolute;
}

.menu-icon span::before {
    top: -8px;
}

.menu-icon span::after {
    bottom: -8px;
}

.menu {
    display: flex;
    list-style: none;
}

.menu > li {
    margin-left: 1.5rem;
    position: relative;
}

.menu > li > a {
    display: block;
    padding: 0.5rem 0;
    font-weight: 500;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 5px;
    list-style: none;
    padding: 0.5rem 0;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--primary-color);
    transition: background 0.2s ease;
}

.submenu li a:hover {
    background-color: var(--bg-color);
}

/* Cookie Notice */
#cookie-notice {
    display: none; /* Initially hidden */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(42, 42, 42, 0.95);
    color: var(--light-color);
    z-index: 9999;
    padding: 1rem 0;
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-container p {
    margin: 0 1rem 0 0;
    flex: 1;
}

/* Main Sections */
main {
    margin-top: 80px; /* Space for fixed header */
    min-height: 100vh;
}

section {
    padding: 8rem 0;
}

/* Hero Section */
.hero {
    background-color: var(--light-color);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    margin-top: 2rem;
    text-align: center;
}

.hero-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* About Section */
.about {
    background-color: var(--bg-color);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    margin-top: 2rem;
    text-align: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* Services Section */
.services {
    background-color: var(--light-color);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3, .service-card p {
    padding: 0 1.5rem;
}

.service-card h3 {
    margin-top: 1.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* Benefits Section */
.benefits {
    background-color: var(--bg-color);
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.benefit-item {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    margin: 0 auto 1.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-color);
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonial-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    flex: 1;
    min-width: 300px;
    max-width: 350px;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
}

.testimonial-author {
    text-align: right;
}

/* Contact Section */
.contact {
    background-color: var(--bg-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--light-color);
    transition: border 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.contact-details {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 2rem;
}

.map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.map iframe {
    display: block;
    border-radius: 8px;
}

/* FAQ Section */
.faq {
    background-color: var(--light-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--bg-color);
    padding: 1rem;
    cursor: pointer;
    position: relative;
}

.faq-question h3 {
    margin: 0;
    padding-right: 30px;
}

.faq-answer {
    padding: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p, .footer-section address {
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
}

.footer-section a {
    color: var(--accent-color);
}

.legal-links {
    list-style: none;
}

.legal-links li {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Thank You Page */
.thank-you {
    text-align: center;
    padding: 15rem 0;
}

.thank-you-content {
    background-color: var(--light-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Legal Pages */
.legal-content {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin: 2rem 0;
}

.legal-content h2 {
    text-align: left;
}

.legal-content h2::after {
    left: 0;
    transform: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    /* Mobile Navigation */
    .menu-icon {
        display: block;
    }
    
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--light-color);
        flex-direction: column;
        box-shadow: 0 5px 10px var(--shadow-color);
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        visibility: hidden;
    }
    
    .menu > li {
        margin: 0;
    }
    
    .menu > li > a {
        padding: 0.75rem 1.5rem;
    }
    
    .menu-toggle:checked ~ .menu {
        max-height: 500px;
        visibility: visible;
    }
    
    .menu-toggle:checked ~ .menu-icon span {
        background: transparent;
    }
    
    .menu-toggle:checked ~ .menu-icon span::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    /* Dropdown in mobile view */
    .submenu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .dropdown:hover .submenu {
        max-height: 200px;
    }
    
    .submenu li a {
        padding-left: 3rem;
    }
    
    /* Hero section in mobile */
    .hero {
        padding-top: 2rem;
    }
    
    .hero-content, .hero-image,
    .about-text, .about-image {
        flex: 100%;
        padding-right: 0;
    }
    
    /* Cookie Notice */
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-container p {
        margin: 0 0 1rem 0;
    }
    
    main {
        margin-top: 70px; /* Adjust for smaller header */
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.3rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
    }
    
    .hero {
        padding-top: 8rem; /* Extra padding for mobile to handle fixed header */
    }
} 