:root {
    --color-primary: #123f5a; /* Vibrant Corporate Blue */
    --color-footer-bg: #314653; /* Muted Grey-Blue for Footer */
    --color-secondary: #f8f8f8; /* Light Pale Gray/Off-White */
    --font-family-sans-serif: 'Poppins', sans-serif;
}
html, body {
    /* Ensure the root elements cover the full height of the viewport */
    height: 100%; 
    /* Prevent accidental overflow which might break fixed attachment */
    overflow-x: hidden; 
    /* Important for background-attachment: fixed to work consistently */
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-sans-serif);
    background-color: var(--color-secondary);
    /* For fixed navbar offset */
    padding-top: 56px; 
    scroll-padding-top: 64px;
}

/* --- Branding Utilities --- */
.primary-text {
    color: var(--color-primary) !important;
}

.primary-bg {
    background-color: var(--color-primary) !important;
}

.secondary-bg {
    background-color: var(--color-secondary) !important;
}

/* New Footer Background */
.footer-bg {
    background-color: var(--color-footer-bg) !important;
}

/* --- Navigation Bar --- */
.navbar {
    font-weight: 600;
}

/* --- Call to Action Button --- */
.main-cta {
    background-color: var(--color-primary);
    color: white !important;
    border: 2px solid var(--color-primary);
    transition: background-color 0.3s, color 0.3s;
}

.main-cta:hover {
    background-color: white;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary);
}


.hero-container {
    position: relative;
    /* Use 100vh for a full viewport-height parallax section */
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Negative margin to counteract padding-top on body */
    margin-top: -56px; 
    /* IMPORTANT: Ensures parallax effect is contained */
    overflow: hidden; 
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;

    /* KEY PARALLAX CSS PROPERTIES */
    background-image: url('https://images.unsplash.com/photo-1590646299329-ac2652afd477?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1470');
    background-attachment: fixed; /* 👈 THE CORE PARALLAX PROPERTY */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* Apply filter directly to the background container */
    filter: brightness(0.65);
}

.hero-text-content {
    z-index: 10;
    position: relative;
}

.hero-text-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-text-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-cta {
    background-color: white;
    color: var(--color-primary) !important;
    font-weight: 700;
    border: 1px solid white;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-primary) !important;
}

/* Crop the service card images to a max height of 50px */
#core-services .card-img-top{
    height: 25rem;           /* fixed display height */
    max-height: 25rem;
    width: 100%;
    object-fit: cover;      /* crop instead of stretch */
    object-position: center;/* adjust to 'top' or 'center right' if you prefer */
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
  }
  
  /* Ensure rounded corners stay clean when cropping */
  #core-services .card{
    overflow: hidden;
  }

/* --- General Section Styling --- */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* --- Service Card Styling --- */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.5rem;
}
.card-body p:first-of-type {
    flex-grow: 1;
    margin-bottom: 15px;
}
.card-img-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    bottom: auto;
    padding: 5px 10px;
    border-radius: 0 0 4px 4px; /* Adjust as needed for card overlay position */
    font-size: 1rem;
    display: inline-block;
    width: auto;
    left: 0;
}

/* --- Impressum Content --- */
.impressum-content p {
    margin-bottom: 0.5rem;
}

/* --- Contact Form Styles --- */
#contact-success-message {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    background-color: #e8f5e9; /* Light Green */
    color: #2e7d32; /* Dark Green */
    font-weight: 600;
    align-items: center;
}

#captcha-challenge {
    font-weight: 600;
    color: var(--color-primary);
}

#captcha-error-message {
    color: red;
    font-weight: 600;
    display: none;
}

.form-actions button {
    margin-right: 10px;
}

/* --- About Page Specific Styling --- */
.profile-photo-placeholder {
    width: 100%;
    padding-top: 100%; /* Makes it a square */
    background-color: #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    overflow: hidden;
}

.profile-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}