/* ==========================================
   1. Reset & Variablen
   ========================================== */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-color: #1e293b;
    --bg-dark: #363636;
    --bg-light: #f8fafc;;
    --white: #ffffff;
    --radius: 8px;
    --max-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}
.container-navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Sanftes Scrollen global aktivieren */
html {
    scroll-behavior: smooth;
}

/* Floating Button Grundstil */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #1d2d5a; /* Kanzlei-Dunkelblau */
    color: #ffffff;
    border: none;
    cursor: pointer;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Unsichtbar & unklickbar als Startzustand */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Pfeil-Icon */
.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* Hover-Effekt */
.back-to-top:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Zustand: Sichtbar beim Scrollen */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================
   2. Buttons & Titles
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid white;
}

.btn-secondary:hover {
    background-color: #1d2d5a;
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* ==========================================
   3. Abschnitte
   ========================================== */
/* Navbar */
/* ==========================================
   Header & Navigation
   ========================================== */
/* ==========================================
   Header & Responsives Burger-Menü
   ========================================== */
.navbar {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.container-navbar.navbar-content {
    width: 100%;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo Wrapper */
.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
}

/* Text neben dem Logo */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #334155;
    font-weight: 600;
}

.logo-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1d2d5a;
    white-space: nowrap;
}

/* ==========================================
   Mobile Anpassung für kleine Screens
   ========================================== */
@media (max-width: 480px) {
    .logo-img {
        height: 38px;
    }

    .logo-title {
        font-size: 0.65rem;
    }

    .logo-name {
        font-size: 0.95rem;
    }
}

/* Burger Button: Standardmäßig auf Desktop ausgeblendet */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #1d2d5a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation des Burger-Icons zu einem 'X' */
.burger-menu.active .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.burger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.burger-menu.active .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Desktop-Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #1d2d5a;
}

.nav-links .btn-primary {
    padding: 0.6rem 1.4rem;
    background-color: #2563eb;
    color: #ffffff !important;
    border-radius: var(--radius, 6px);
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.nav-links .btn-primary:hover {
    background-color: #1d4ed8;
}

/* ==========================================
   Mobile Ansicht (unter 768px)
   ========================================== */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    /* Ausklappbares Menü */
    .nav-links {
        position: absolute;
        top: calc(100% + 1rem);
        left: 1.5rem;
        right: 1.5rem;
        background-color: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 1.25rem;
        border-radius: var(--radius, 8px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;

        /* Versteckt im Ruhezustand */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links a {
        text-align: center;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }

    /* Sichtbar beim Klick */
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

    /* Hero Section: Geringes Padding oben/unten, damit nachfolgender Inhalt sofort sichtbar ist */
.hero {
    padding: 1.5rem 0;
    background-color: var(--bg-light);
}


.image-container {
    position: relative;
    width: 100%;
   /* border-radius: var(--radius);*/
    overflow: hidden;
    display: block;
    margin: 0 auto;
}

.image-container img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center 50%;
    display: block;
}

.hero-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;

    background: rgba(0, 0, 0, 0.35);
}


.h1feld {
    padding: 1.25rem 1.75rem;
    max-width: 580px;
    text-align: center;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    border-radius: 12px;
}


.h1feld h1 {
    color: #ffffff;
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.h1feld p {
    color: #f1f5f9;
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.5rem 1.15rem;
    font-size: 0.9rem;
}
.container_about{
    width: 100%;
    display: grid;
    padding: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.container_about p {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.profile-img{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.profile-img img {
    width: 20rem;
}
/* Card Styling */
.features .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.features .card {
    background-color: #ffffff;
    padding: 2.25rem 1.5rem;
    border-radius: var(--radius, 8px);
    border: 1px solid #e2e8f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.features .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(29, 45, 90, 0.08);
}


.features .card .icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #eef2ff;
    color: #1d2d5a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.features .card:hover .icon {
    background-color: #1d2d5a;
    color: #ffffff;
}


.features .card .icon svg {
    width: 30px;
    height: 30px;
}

.features .card h3 {
    font-size: 1.2rem;
    color: #1d2d5a;
    margin-bottom: 0.75rem;
}

.features .card p {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}

.eye-catcher {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    margin: 0 auto;
}

.eye-catcher img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center 75%;
    display: block;
}



.cta {
    position: relative;
    width: 100%;
    margin: 3rem auto;
    overflow: hidden;
}

.cta .eye-catcher {
    width: 100%;
    display: block;
}


.cta .eye-catcher img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center 70%;
    display: block;
}

.cta .cta-text-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;

    background: rgba(0, 0, 0, 0.35);
}

.cta .contact.h1feld {
    padding: 2rem 2.5rem;
    max-width: 540px;
    text-align: center;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 14px;
}

.cta .contact.h1feld h1 {
    color: #ffffff;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.cta .contact.h1feld p {
    color: #f1f5f9;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}


.cta-buttons {
    display: flex;
    justify-content: center;
}


/* Container für die Karte */
.container-location {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.map-container {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

/* Sicherstellen, dass das iframe reaktionsfähig bleibt */
.map-container iframe {
    width: 100%;
    height: 400px;
    display: block;
}
.directions{
    display: block;
    text-align: center;
    padding: 2rem 0;

}
.directions h2{
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}
.col-lg-4{
    font-size: 1.2rem;
    max-width: 100%;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
}

/* ==========================================
   FAQ Section & Accordion
   ========================================== */
.faq-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.faq-item {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
}


.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
    cursor: pointer;
    list-style: none; /* Entfernt den Standard-Browser-Pfeil */
    user-select: none;
}

/* Standard-Dreieck für Chrome/Safari/Firefox entfernen */
.faq-question::-webkit-details-marker {
    display: none;
}

/* Das Plus/Minus Icon */
.faq-icon {
    font-size: 1.4rem;
    font-weight: 400;
    color: #1d2d5a;
    transition: transform 0.2s ease;
    line-height: 1;
    margin-left: 1rem;
}

/* Zustand wenn geöffnet */
.faq-item[open] {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #93c5fd;
}

.faq-item[open] .faq-question {
    color: #1d2d5a;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg); /* Dreht das "+" zu einem "x" */
}

/* Antwort-Textfeld */
.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
}
/* Fließtext & Listen in den FAQ-Antworten */
.faq-answer p,
.faq-answer ul {
    color: #1e293b;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 450;
}
.faq-answer ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.75rem;
    color: #334155;
}

.faq-answer strong {
    color: #0f172a;
    font-weight: 700;
}
/* ==========================================
   Footer & Legal Pages Styling
   ========================================== */
.footer {
    padding: 2.5rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color, #1d2d5a);
    text-decoration: underline;
}

.footer-links .divider {
    color: #cbd5e1;
}

/* Stil für Impressum & Datenschutz-Seiten */
.legal-content {
    padding: 4rem 0;
    min-height: 70vh;
}

.legal-content h1 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: #1d2d5a;
}

.legal-content h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1d2d5a;
}

.legal-content p,
.legal-content ul {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}