/* CSS Styles for Steuerberater Waldmann */
:root {
    --primary-color: #0f172a;      /* Deep Slate Blue */
    --secondary-color: #0284c7;    /* Trust Blue */
    --accent-color: #f59e0b;       /* Subtle Gold */
    --bg-color: #f8fafc;           /* Light Gray Blue */
    --text-color: #334155;
    --light-text: #64748b;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
}

.logo i {
    width: 32px;
    height: 32px;
    color: var(--secondary-color);
}

.logo-text h1 {
    font-size: 1.5rem;
    line-height: 1;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.75)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 5%;
}

.hero-content {
    max-width: 800px;
    animation: fadeInDown 1s ease-out;
}

.hero-content h2 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

/* Services */
.services, .interactive-section, .contact {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background-color: var(--secondary-color);
}

.section-header p {
    color: var(--light-text);
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 10px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.service-card i {
    width: 48px;
    height: 48px;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    background: #f0f9ff;
    padding: 10px;
    border-radius: 12px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Interactive Section */
.interactive-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.interactive-section .section-header h2 {
    color: var(--white);
}

.interactive-section .section-header p {
    color: #cbd5e1;
}

.checklist-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--white);
    color: var(--text-color);
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#progress-text {
    text-align: right;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.check-container {
    display: block;
    position: relative;
    padding-left: 40px;
    margin-bottom: 1.2rem;
    cursor: pointer;
    font-size: 1.05rem;
    user-select: none;
    transition: color 0.3s;
    line-height: 1.4;
}

.check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.3s;
}

.check-container:hover input ~ .checkmark {
    background-color: #e2e8f0;
}

.check-container input:checked ~ .checkmark {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.check-container input:checked ~ .checkmark:after {
    display: block;
}

.check-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-container.checked-text {
    color: #94a3b8;
    text-decoration: line-through;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

#success-message {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: #f0fdf4;
    color: #166534;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 1;
    visibility: visible;
    height: auto;
    transition: all 0.4s ease;
}

#success-message i {
    color: #166534;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    padding: 4rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--secondary-color);
    background: #f0f9ff;
    padding: 12px;
    border-radius: 50%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    transition: all 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

/* Footer */
footer {
    background-color: #020617;
    color: #94a3b8;
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

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

/* Responsive Design */
@media screen and (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 100%;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links li {
        margin: 2rem 0;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .checklist-container {
        padding: 2rem;
    }
    
    .services, .interactive-section, .contact {
        padding: 4rem 5%;
    }
}

/* Layout für den Kontakt-Bereich */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
}

.contact-info, 
.contact-map {
  flex: 1 1 300px; /* Flexibel: mindestens 300px breit */
}

/* Styling für die Karte */
.contact-map {
  min-height: 350px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
}
