:root {
    --primary-color: #0056b3;
    --secondary-color: #f8f9fa;
    --text-color: #333333;
    --accent-color: #e9ecef;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
}

.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 0;
    min-height: 72px;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    overflow: visible;
    align-items: center;
}

.navbar > .container {
    position: relative;
    min-height: 72px;
    align-items: center;
    overflow: visible;
    padding-left: 265px; /* Platz für Logo, das nach unten aus der Navbar ragt */
}

.navbar-brand {
    position: absolute;
    left: calc(var(--bs-gutter-x, 0.75rem) * 0.5);
    top: 10px;
    transform: none;
    margin: 0;
    padding: 0;
    z-index: 11;
    line-height: 0;
}

.navbar-brand img {
    height: 192px;
    width: auto;
    display: block;
    margin: 0;
    position: relative;
    z-index: 10;
    transition: height 0.3s ease;
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    /* Hero zieht unter die Navbar – Logo ragt in den Bereich hinein */
    margin-top: -50px;
    padding: 170px 0 120px;
    text-align: center;
    border-bottom: 1px solid var(--accent-color);
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.hero-section p.lead {
    font-size: 1.4rem;
    color: #444;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
    white-space: nowrap;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE
   ========================================== */

/* Burger-Menü (unter lg / 992px) */
@media (max-width: 991.98px) {
    .navbar > .container {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: minmax(72px, auto) auto;
        justify-content: stretch;
        align-items: center;
    }

    .navbar-toggler {
        grid-column: 2;
        grid-row: 1;
        margin-left: 0;
        justify-self: end;
        align-self: center;
        z-index: 12;
        position: relative;
    }

    .navbar-collapse {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .navbar-collapse .navbar-nav {
        align-items: flex-end;
        text-align: right;
    }
}

/* Tablets (bis 991px) */
@media (max-width: 991px) {
    .navbar > .container {
        padding-left: 180px;
    }

    .hero-section h1 {
        font-size: 2.4rem;
    }
    .hero-section p.lead {
        white-space: normal;
        font-size: 1.15rem;
        padding: 0 15px;
    }
    .service-card {
        padding: 28px;
    }
}

/* Mobile (bis 767px) */
@media (max-width: 767px) {
    /* Navbar */
    .navbar,
    .navbar > .container {
        min-height: 56px;
    }
    .navbar > .container {
        padding-left: 77px;
        grid-template-rows: minmax(56px, auto) auto;
    }
    .navbar-brand img {
        height: 70px;
    }
    /* Aufgeklapptes Burger-Menü */
    .navbar-collapse .navbar-nav {
        padding: 12px 20px 8px;
    }
    .navbar-collapse .nav-link {
        padding-left: 8px;
        padding-right: 8px;
        margin: 4px 0;
    }

    /* Topbar: Telefon links, E-Mail rechts */
    .topbar .container {
        justify-content: stretch !important;
        flex-direction: row;
        align-items: center !important;
    }
    .topbar-right {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .topbar .me-3 {
        margin-right: 0 !important;
    }
    .topbar-item:first-child {
        justify-content: flex-start;
    }
    .topbar-item:last-child {
        justify-content: flex-end;
        text-align: right;
    }
    .topbar-item:last-child a {
        word-break: break-all;
    }

    /* Hero */
    .hero-section {
        margin-top: 0;
        padding: 70px 20px 50px;
    }
    .hero-section h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }
    .hero-section p.lead {
        white-space: normal;
        font-size: 1rem;
        padding: 0;
    }

    /* Content Sections */
    .content-section {
        padding: 50px 0;
    }

    /* Service Cards */
    .service-card {
        padding: 24px 20px;
        margin-bottom: 8px;
    }
    .service-card h3 {
        font-size: 1.2rem;
    }
    .service-list li {
        font-size: 0.95rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 40px 20px;
    }
    .cta-section h3 {
        font-size: 1.3rem;
    }
    .cta-section p.lead {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    .footer .col-md-4 {
        text-align: center !important;
    }

    /* Team */
    .team-img-wrapper {
        width: 160px;
        height: 160px;
    }
}

.content-section {
    padding: 80px 0;
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.footer {
    background-color: #2b2b2b;
    padding: 60px 0 30px;
    margin-top: auto;
    border-top: none;
}

.footer h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer p {
    color: #adb5bd !important;
}

.footer a {
    color: #adb5bd !important;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ffffff !important;
}

/* Team Section */
.team-member {
    text-align: center;
    margin-bottom: 40px;
}

.team-img-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e2e8f0; /* Einheitlicher Hintergrund (LANOMA) */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Fokus auf den oberen Bereich (Kopf) */
}

.team-member h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-member p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Services */
.service-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 40px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(0, 86, 179, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
}

.service-card h3 {
    color: #2b2b2b;
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.service-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.service-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Forms */
.form-control {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.contact-info {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
}

.contact-info h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #555;
}

/* Topbar */
.topbar {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.9);
    padding: 5px 0;
    font-size: 0.85rem;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.topbar-icon {
    font-size: 0.9em;
    opacity: 0.95;
}

.topbar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.topbar a:hover {
    color: #fff;
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background-color: #575556;
    color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #dee2e6;
}

.cta-section h3 {
    color: #ffffff;
    font-weight: 600;
}

.cta-section p.lead {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section p.lead a {
    color: inherit;
    text-decoration: none;
}

.cta-section p.lead a:hover {
    text-decoration: underline;
}

.cta-section .btn-primary {
    background-color: #ffffff;
    color: #575556;
    border-color: #ffffff;
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background-color: #e9ecef;
    border-color: #e9ecef;
    color: #333;
}