* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    position: relative;
    min-height: 100vh;
}

.top-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 700px;
    background: linear-gradient(to right, rgb(103, 103, 103), rgb(154, 153, 152));
    z-index: -1;
}

/* Header Base */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px; /* Base padding when not scrolled */
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
}

@media (min-width: 1400px) {
    .header {
        padding-left: calc((100% - 1300px) / 2);
        padding-right: calc((100% - 1300px) / 2);
    }
}

.logo img {
    height: 36px; /* Slightly smaller logo for thinner header */
    display: block;
}

/* Default Dark/Transparent Header Links */
.header:not(.header-light) .nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    font-weight: 300;
}
.header:not(.header-light) .nav a.btn-outline {
    border: 1px solid #fff;
    padding: 8px 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}
.header:not(.header-light) .nav a.btn-outline:hover {
    background: #fff;
    color: rgb(103, 103, 103);
}
.header:not(.header-light) .socials a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}

/* Default Header Scrolled State */
.header:not(.header-light).scrolled {
    background: rgba(103, 103, 103, 0.85); /* Frosty brand gray */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Light Header (for White Background Pages like Aerzte) */
.header-light {
    background: transparent;
}
.header-light .nav a {
    color: #333;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    font-weight: 400;
}
.header-light .nav a.btn-outline {
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.03);
    transition: 0.3s;
    font-weight: 500;
}
.header-light .nav a.btn-outline:hover {
    background: #333;
    color: #fff;
}
.header-light .socials a {
    color: #333;
    text-decoration: none;
    margin-left: 15px;
}

/* Light Header Scrolled State */
.header-light.scrolled {
    background: rgba(255, 255, 255, 0.9); /* Frosty white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Socials */
.socials {
    display: flex;
    align-items: center;
}
.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: opacity 0.3s ease;
}
.socials a:hover {
    opacity: 0.8;
}
.socials svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 50px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 10;
}

/* Hero Text */
.hero-text {
    color: #fff;
    margin-bottom: 40px;
}

.sub-heading {
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.sub-heading strong {
    font-weight: 700;
}

.main-heading {
    font-weight: 300;
    font-size: 32px;
    margin-bottom: 25px;
    line-height: 1.3;
}

.main-heading strong {
    font-weight: 700;
}

.description {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Card */
.main-card {
    background: #ffffff;
    border-radius: 10px;
    position: relative;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.calc-section {
    padding: 40px 30px 30px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.form-section {
    padding: 40px 30px 30px;
    position: relative;
}

.calc-badge, .form-badge {
    background: rgb(117, 117, 115);
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    position: absolute;
    top: -15px;
    left: 20px;
}

/* Calculator specific */
.calc-controls {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-col {
    flex: 1;
}

.calc-col label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin-bottom: 15px;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #ccc;
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: rgb(117, 117, 115);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.val-display {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: #f9f9f9;
    color: #333;
}

.calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-bottom: 15px;
}

.rate-label {
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

.rate-value {
    font-weight: 700;
    font-size: 24px;
    color: #333;
}

.calc-disclaimer {
    font-size: 10px;
    color: #888;
    line-height: 1.4;
}

/* Form specific */
.input-group {
    margin-bottom: 20px;
}

.row {
    display: flex;
    gap: 20px;
}

.half {
    flex: 1;
}

label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    transition: 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: rgb(117, 117, 115);
}

small {
    display: block;
    font-size: 10px;
    color: #888;
    margin-top: 5px;
    line-height: 1.3;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.checkbox-group input {
    margin-right: 10px;
}

.checkbox-group label {
    font-size: 14px;
    margin-bottom: 0;
    color: #333;
}

.submit-btn {
    background: rgb(117, 117, 115);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* Right Column (Image & Highlights) */
.image-wrapper {
    height: 576px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image {
    max-height: 100%;
    object-fit: contain;
    object-position: bottom;
}

.info-side {
    margin-top: 60px;
}

.info-box {
    margin-bottom: 40px;
}

.mt-4 {
    margin-top: 20px;
}

.box-header {
    background: rgb(117, 117, 115);
    color: #fff;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 20px;
}

.box-header strong {
    font-weight: 700;
}

.highlights-list {
    list-style: none;
}

.highlights-list li {
    font-size: 13px;
    margin-bottom: 15px;
    color: #888;
    line-height: 1.5;
}

.info-text p {
    color: #888;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Details Section */
.mt-50 { margin-top: 50px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-15 { margin-top: 15px; }
.mt-40 { margin-top: 40px; }

.left-col {
    position: relative;
    width: 100%;
}

.details-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.details-text-col {
    color: #555;
}

.section-badge {
    background: rgb(117, 117, 115);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 300;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.section-badge strong {
    font-weight: 700;
}

.req-title {
    font-size: 16px;
    font-weight: 700;
    color: #555;
    margin-bottom: 15px;
}

.req-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
}

.req-list {
    list-style: none;
    margin-bottom: 10px;
}

.req-list li {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
    position: relative;
    padding-left: 12px;
}

.req-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: #888;
    font-weight: bold;
}

.req-sublist {
    list-style: none;
    margin-top: 5px;
    padding-left: 20px;
}

.req-sublist li::before {
    content: "–";
}

.req-note {
    display: block;
    font-size: 11px;
    color: #aaa;
    line-height: 1.4;
    margin-bottom: 20px;
}

.made-in-germany {
    display: flex;
    align-items: center;
    gap: 15px;
}
.made-in-germany img {
    height: 40px;
}
.made-in-germany-text {
    font-size: 20px;
    font-weight: 300;
    color: #555;
    line-height: 1.2;
}
.made-in-germany-text strong {
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgb(117, 117, 115);
    color: #fff;
    padding: 60px 20px 30px;
    font-size: 13px;
    font-weight: 300;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-contact p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #eee;
}

.footer-contact a {
    color: #eee;
    text-decoration: none;
}

.footer-logo img {
    height: 120px;
}

.footer-bottom {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-bottom a {
    color: #ddd;
    text-decoration: none;
    font-size: 13px;
}

.footer-bottom a:hover {
    color: #fff;
}

@media(max-width: 900px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
}

.info-text small {
    color: #999;
}

/* Responsive */
@media(max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .image-wrapper {
        height: auto;
    }
    .hero-image {
        max-height: 400px;
    }
    .top-background {
        height: 1200px; /* Need to expand gray bg for mobile */
    }
}

/* Mobile Header & Menu Toggle */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    /* Prevent body overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    body.no-scroll {
        overflow: hidden;
    }

    .header {
        padding: 12px 24px;
        background: transparent;
    }
    
    .header:not(.header-light).scrolled {
        background: rgba(103, 103, 103, 0.95);
    }
    .header-light.scrolled {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }
    
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    }
    
    .header-light .menu-toggle span {
        background-color: #333;
    }
    
    /* Toggle active animation (X) */
    .header.menu-open .menu-toggle span {
        background-color: #333 !important; /* Always dark gray on the white overlay */
    }
    .header.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .header.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .header.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Full-screen Mobile Nav Menu (Frosted White) */
    .header .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.97); /* Frosted white */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        padding: 100px 24px 80px;
        margin: 0;
    }
    
    .header.menu-open .nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    .header .nav a {
        color: #333 !important; /* Dark text for readability on white background */
        font-size: 22px !important;
        font-weight: 500 !important;
        margin: 0 !important;
        width: auto !important;
        text-align: center;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        transition: color 0.2s ease;
    }
    
    .header .nav a:hover {
        color: rgb(117, 117, 115) !important;
    }
    
    .header .nav a.btn-outline {
        font-weight: 700 !important;
        text-transform: uppercase !important;
    }
    
    .header .socials {
        display: none;
    }

    /* Display socials at the bottom of the open mobile menu */
    .header.menu-open .socials {
        display: flex !important;
        position: fixed;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        justify-content: center;
        gap: 25px;
        margin: 0;
    }
    
    .header.menu-open .socials a {
        color: #333 !important;
        margin: 0;
    }
    
    .header.menu-open .socials svg {
        width: 24px;
        height: 24px;
    }
}


