/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header styles */
.logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
}

.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100vw;
    top: 0;
    z-index: 1000;
    transform: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

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

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3498db;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Main content styles */
main {
    margin-top: 80px;
    width: 100vw;
}

/* Location Section Styles */
.location-section {
    padding: 4rem 2rem;
    background-color: #f9f9f9; /* Light background for the section */
}

.location-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    position: relative;
}

.location-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
}

.location-content-wrapper {
    display: flex;
    align-items: center; /* Vertically align items */
    gap: 2rem; /* Space between text and image */
    max-width: 1200px;
    margin: 0 auto;
}

.location-text-content {
    flex: 1; /* Takes up available space on the left */
    color: #333;
}

.location-text-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.location-text-content p, .location-text-content address {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.location-highlight {
    font-weight: bold;
    color: inherit;   
    text-decoration: none;  
}

.location-image-container {
    flex: 0 0 40%; /* Image container takes up 40% of the width, doesn't grow or shrink */
    display: flex;
    justify-content: center;
    align-items: center;
}

.location-image {
    width: 300px; /* Adjust as needed */
    height: 300px; /* Adjust as needed */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border: 5px solid white; /* Optional: white border like hero image */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Optional: shadow like hero image */
}

section {
    padding: 4rem 0;
    width: 100%;
    position: relative;
}

.fachgebiete-section {
    background: linear-gradient(135deg, #f5f7fa, #e5e9f2);
    padding-top: 120px;
    justify-content: center;
    align-items: center;
    position: middle;

}

.fachgebiete-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    position: relative;
}

.fachgebiete-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero section (Home) */
.hero-section {
    text-align: center;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;

}

/* Tasks section */
.tasks-section {
    background: linear-gradient(135deg, #3498db, #3498db);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically */
    align-items: center; /* Centers content horizontally */
    position: middle;
    padding: 2rem 2rem;
}

/* Accordion styles */
.fachgebiete-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    justify-content: center; 
    align-items: stretch; /* Make columns equal height */
}

.fachgebiete-column {
    flex: 1; /* Distribute space equally and allow growing/shrinking */
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fachgebiete-column h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.accordion {
    margin-bottom: 2rem;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-button {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.accordion-button:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.accordion-button.active {
    background: #e2e2e2;
    color: rgb(0, 100, 214);
}

.accordion-content {
    display: none;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.accordion-content.active {
    display: block;
}

.accordion-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 2rem;
    color: #2c3e50;
}

.fachgebiete-details {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fachgebiete-details h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.fachgebiete-details ul {
    list-style: none;
    padding-left: 2rem;
    color: #2c3e50;
}

.fachgebiete-details li {
    margin-bottom: 0.8rem;
    position: relative;
}

.fachgebiete-details li::before {
    content: '•';
    color: #3498db;
    position: absolute;
    left: -1.5rem;
    top: 0;
}

.default-message {
    color: #7f8c8d;
    text-align: center;
    font-style: italic;
}

/* Impressum section */
.impressum-section {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding-top: 8rem;
    padding-bottom: 8rem;
    position: relative;
}

/* Contact section */
.contact-section {
    background: linear-gradient(135deg, #3498db, #0099ff);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}

.contact-container {
    max-width: 700px;
    margin: 2rem auto;
    background: rgba(255,255,255,0.10);
    border-radius: 24px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.10);
    padding: 2.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}

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

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 2rem;
    margin-top: 0.1rem;
}

.contact-label {
    font-weight: bold;
    color: #fff;
    display: block;
}

.contact-value {
    color: #e0eaff;
    display: block;
    margin-top: 0.1rem;
}

.contact-cta {
    flex: 1;
    background: rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-cta p {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-button {
    background: #fff;
    color: #0099ff;
    font-weight: bold;
    border: none;
    border-radius: 24px;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
}

.contact-button:hover {
    background: #0099ff;
    color: #fff;
}

.impressum-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    color: #222;
    padding: 4rem 2rem;
}

.impressum-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.footer {
    background: #222;
    color: #fff;
    padding: 1.2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.footer-link {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #0099ff;
}


.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Wave separators for each section */
.wave-separator {
    position: absolute;
    bottom: 0;
    left: -1px;
    right: -1px;
    width: calc(100% + 2px);
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 10;
}

.wave-separator svg {
    position: relative;
    display: block;
    width: 100%;
    height: 70px;
    transform: scale(1.02);
}

/* Adjust text colors for better contrast */
.tasks-section h2,
.impressum-section h2,
.contact-section h2 {
    color: white;
    margin-bottom: 2rem;
    margin-left: 2rem
}

/* Update form styles for better visibility */
.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.contact-form button {
    background-color: #ffffff;
    color: #8e44ad;
    font-weight: bold;
}

.contact-form button:hover {
    background-color: #f0f0f0;
    color: #6c3483;
}

/* About section */
.about-section {
    background-color: #f8f9fa;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    border-left: 3px solid #3498db;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} /*
min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}
*/
/* Services section */
.services-section {
    background: linear-gradient(135deg, #e9ecef, #d1d9e6);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.accordion {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(184, 182, 182, 0.089);
    background: rgba(248, 248, 248, 0.95);
}

.accordion-button {
    width: 100%;
    padding: 1.2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
}

.accordion-button:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.accordion-button::after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    color: #3498db;
    transition: transform 0.3s ease;
}

.accordion-button.active {
    border-bottom-color: #3498db;
}

.accordion-button.active::after {
    content: '-';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background: none;
    transition: max-height 0.3s ease-out;
    color: #2c3e50;
}

.accordion-content.active {
    max-height: 500px;
    padding: 1.2rem;
    color: #000;
}

.accordion-content ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    color: rgb(0, 0, 0);
}

.accordion-content li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.accordion-content li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3498db;
}

@media (max-width: 768px) {
    .accordion {
        padding: 0 1rem;
    }
    
    .accordion-button {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .accordion-content.active {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    .service-card p {
        font-size: 1.3rem;
        padding: 1rem;
    }
}
/* Contact section */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
}

.contact-form button {
    background-color: #3498db;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #2980b9;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        gap: 1rem;
        padding: 0.8rem 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        text-align: center;
    }

    .fachgebiete-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;

    
}

.fachgebiete-list {
    flex: 1;
    max-width: 300px;
}

.fachgebiete-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fachgebiete-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fachgebiete-list li:hover {
    background-color: #7ebfff;
    transform: translateX(5px);
}

.fachgebiete-list li.active {
    background-color: #3498db;
    color: white;
}

.fachgebiete-details {
    flex: 2;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    min-height: 400px;
}

.fachgebiete-details h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.fachgebiete-details ul {
    list-style: none;
    padding: 0;
}

.fachgebiete-details li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.fachgebiete-details li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.hero-image {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    text-align: left;
    padding-right: 2rem;
}

.fachgebiete-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.fachgebiete-list {
    flex: 1;
    max-width: 300px;
}

.fachgebiete-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fachgebiete-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fachgebiete-list li:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.fachgebiete-list li.active {
    background-color: #3498db;
    color: white;
}

.fachgebiete-details {
    flex: 2;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    min-height: 400px;
}

.fachgebiete-details h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.fachgebiete-details ul {
    list-style: none;
    padding: 0;
}

.fachgebiete-details li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.fachgebiete-details li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.hero-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-image: url('Anwalt.JPG');
    background-size: cover;
    background-position: center;
    border: 8px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.container-move-middle{
    display: flex;
}

.address-styles {
    font-style: normal;           /* Kein Kursiv (Standard bei <address>) */
    line-height: 1.6;             /* Bessere Lesbarkeit durch mehr Zeilenhöhe */
    font-size: 1rem;              /* Standardgröße, bei Bedarf anpassbar */
    color: #333;                  /* Dunkles Grau – angenehmer als reines Schwarz */
    background-color: #f9f9f9;    /* Sanfter Hintergrund zur Abhebung */
    padding: 1rem;                /* Innenabstand */
    border-left: 4px solid #007BFF; /* Farblicher Akzent (z. B. Kanzlei-Farbe) */
    border-radius: 0.5rem;        /* Abgerundete Ecken */
    max-width: 400px;             /* Begrenzte Breite für gute Lesbarkeit */
    margin-bottom: 1rem;          /* Abstand nach unten */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Sanfter Schatten */
}

@media (max-width: 600px) {
    .address-styles {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
}

.Kontakt-headline {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    position: relative;
}