html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.7;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
    background-color: #fff !important;
    transition: padding 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .hero-logo {
    width: 50px;
    height: 50px;
}

.navbar.navbar-transparent {
    background-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.navbar.navbar-transparent .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar.navbar-transparent .nav-link:hover {
    color: #fff !important;
}

.navbar.navbar-transparent .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.navbar.navbar-transparent .navbar-toggler-icon {
    filter: invert(1);
}

.navbar-brand {
    font-weight: bold;
    color: #111 !important;
}

.nav-link {
    color: #111 !important;
    margin: 0 8px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #888 !important;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    transition: width 0.35s ease, height 0.35s ease;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
    background-image: url(../assets/hero.jpg);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.hero .container {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero p {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.75);
}

.hero .btn-primary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
}

.hero .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

/* ─── Sections ──────────────────────────────────────────── */
.section {
    padding: 120px 0;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 64px;
    color: #111;
    text-align: center;
}

.section-text {
    line-height: 1.9;
    color: #555;
    font-size: 0.95rem;
}

/* ─── Service Cards ─────────────────────────────────────── */
.service-card {
    border: none;
    border-radius: 0;
    padding: 40px 32px;
    text-align: left;
    transition: box-shadow 0.35s ease;
    height: 100%;
    background-color: #fff;
}

.service-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.07);
}

.service-card h4 {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #111;
}

.service-card--media {
    padding: 0;
    overflow: hidden;
}

.service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-card--media:hover .service-card-img {
    transform: scale(1.03);
}

.service-card-body {
    padding: 28px 30px 36px;
}

/* ─── Über Uns ──────────────────────────────────────────── */
.bg-light {
    background-color: #f0f0f0 !important;
}

.about-text {
    line-height: 1.9;
    color: #555;
    font-size: 0.95rem;
}

.about-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

/* ─── Kontakt ───────────────────────────────────────────── */
.contact-label {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 12px;
}

.contact-link {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #666;
}

.contact-form {
    background-color: #fff;
    padding: 50px;
    border: 1px solid #e8e8e8;
}

.form-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 12px;
    background-color: #fafafa;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: #999;
    box-shadow: none;
    background-color: #fff;
}

.btn-primary {
    background-color: #111;
    border-color: #111;
    padding: 14px 40px;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 0;
    color: #fff;
}

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

/* ─── Footer ────────────────────────────────────────────── */
footer {
    background-color: #111;
    color: #ddd;
    font-size: 0.85rem;
}

footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

footer .list-unstyled li {
    margin-bottom: 8px;
}

footer .small {
    color: #666;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

/* ─── Back-to-top ───────────────────────────────────────── */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 0;
    background-color: var(--lm-primary, #111);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.2s ease;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    background-color: var(--lm-primary-hover, #333);
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.6rem;
        letter-spacing: 0.1em;
    }

    .hero p {
        letter-spacing: 0.2em;
    }

    .section {
        padding: 80px 0;
    }

    footer .row {
        margin-bottom: 15px;
    }

    footer .col-md-6 {
        text-align: center;
    }

    footer .text-md-end {
        text-align: center;
        margin-top: 20px;
    }
}