#main-navbar {
    width: 100%;
    z-index: 1030;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Desktop: über dem Hero */
@media (min-width: 768px) {
    #main-navbar {
        position: absolute;
        top: 0;
        left: 0;
        background: transparent;
    }

    .hero {
        padding-top: 120px;
    }
}

/* Mobile: normal im Layout */
@media (max-width: 767.98px) {
    #main-navbar {
        position: relative;
        background: #0b2545;
    }

    .hero {
        padding-top: 0;
    }
}

/* Scroll-Zustand */
#main-navbar.is-scrolled {
    position: fixed;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.footer {
    background: #0b2545;
    color: white;
}

.footer p {
    color: rgba(255,255,255,0.7);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.2s;
}

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

.footer-divider {
    border-color: rgba(255,255,255,0.1);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: white;
}

.hero-background {
    background: linear-gradient(135deg,#0b2545 0%,#133a63 60%,#1e5f9e 100%);
}

#navbar_brand {
    max-height: 60px;
}

.first-section {
    padding-top: 25vh;
    min-height: 125vh;
}

.hero {
    background: linear-gradient(
135deg,
#0b2545,
#133a63,
#1e5f9e
);
    color: white;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 30px;
}

.hero .btn {
    margin-right: 10px;
}

.section-problems {
    background: linear-gradient(180deg, #f6f9fc 0%, #eef4fa 100%);
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.problem-item {
    align-items: flex-start;
    padding: 1.25rem 1.25rem;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.problem-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.problem-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(30, 95, 158, 0.12);
    color: #1e5f9e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.problem-item h5 {
    color: #0b2545;
}

.service-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .icon {
    font-size: 32px;
    color: #1e5f9e;
}

.pricing-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.featured {
    border: 2px solid #ff7a00;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.section-soft {
    background: #f8fafc;
}

.text-muted-soft {
    color: #64748b;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(30, 95, 158, 0.1);
    color: #1e5f9e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.pricing-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.pricing-card-featured {
    border: 2px solid #ff7a00;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.pricing-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 122, 0, 0.12);
    color: #ff7a00;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.price-prefix {
    font-size: 0.95rem;
    color: #64748b;
}

.price-value {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: #0b2545;
}

.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    color: #475569;
}

.pricing-list li {
    position: relative;
    padding-left: 1.4rem;
}

.pricing-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #1e5f9e;
    font-weight: 700;
}

.care-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.care-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.care-card-featured {
    border: 2px solid #1e5f9e;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.care-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0b2545;
    line-height: 1.1;
}

.project-showcase {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
    color: inherit;
}

.project-showcase:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.project-image-wrap {
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.project-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.project-showcase:hover .project-image-wrap img {
    transform: scale(1.02);
}

.project-content {
    padding: 1.5rem 1.5rem 1.75rem;
}

.project-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e5f9e;
    background: rgba(30, 95, 158, 0.1);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.project-note {
    padding-top: 0.75rem;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-item {
    align-items: flex-start;
}

.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(30, 95, 158, 0.1);
    color: #1e5f9e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.cta-block {
    max-width: 100%;
    padding: 3rem 2rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.cta-text {
    max-width: 620px;
}

.cta-points {
    font-size: 0.95rem;
    color: #475569;
}

.cta-points span {
    position: relative;
    padding-left: 1.2rem;
}

section {
    padding: 100px 0;
}

h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-points span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #1e5f9e;
}

.care-price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
}

/* Basis */
.navbar .nav-link {
    position: relative;
    font-weight: 600;
    padding: 0.7rem 1rem !important;
    border-radius: 999px;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

/* Underline für beide Modi */
.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.45rem;
    height: 2px;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

/* HERO / dunkle Navbar */
.navbar:not(.is-scrolled) .nav-link {
    color: rgba(255,255,255,0.88);
}

.navbar:not(.is-scrolled) .nav-link:hover,
.navbar:not(.is-scrolled) .nav-link:focus {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.navbar:not(.is-scrolled) .nav-link::after {
    background: #ff7a00;
}

.navbar:not(.is-scrolled) .nav-link:hover::after,
.navbar:not(.is-scrolled) .nav-link:focus::after,
.navbar:not(.is-scrolled) .nav-link.active::after {
    transform: scaleX(1);
    opacity: 1;
}

.navbar:not(.is-scrolled) .nav-link.active {
    color: #ffffff;
    background: rgba(255,255,255,0.12);
}

/* LIGHT MODE beim Scrollen */
.navbar.is-scrolled .nav-link {
    color: #334155;
}

.navbar.is-scrolled .nav-link:hover,
.navbar.is-scrolled .nav-link:focus {
    color: #0b2545;
    background: rgba(30,95,158,0.08);
}

.navbar.is-scrolled .nav-link::after {
    background: #1e5f9e;
}

.navbar.is-scrolled .nav-link:hover::after,
.navbar.is-scrolled .nav-link:focus::after,
.navbar.is-scrolled .nav-link.active::after {
    transform: scaleX(1);
    opacity: 1;
}

.navbar.is-scrolled .nav-link.active {
    color: #0b2545;
    background: rgba(30,95,158,0.10);
}

/* Leicht lebendiger, aber nicht verspielt */
.navbar .nav-link:hover {
    transform: translateY(-1px);
}

.navbar .dropdown-menu {
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 12px 35px rgba(15,23,42,0.12);
    padding: 0.5rem;
    min-width: 210px;
    margin-top: 0.4rem;
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(30,95,158,0.07);
    color: #0b2545;
}

.navbar .dropdown-item.fw-semibold {
    color: #1e5f9e;
}

.navbar .dropdown-divider {
    margin: 0.35rem 0.5rem;
    border-color: rgba(15,23,42,0.07);
}

/* Footer Navigation-Spalte */
.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav-links a:hover {
    color: white;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    margin-bottom: 0.6rem;
}

.footer-contact-link:hover {
    color: white;
}

.footer-contact-link i {
    color: #4b9ede;
    font-size: 1rem;
    flex-shrink: 0;
}
