:root {
    --primary-color: #006db1;
    --accent-color: #007c91;
    --accent-color-alt: #006db1;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #003366;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Navigation */
.navbar {
    background-color: var(--white) !important; /* Ensure white background */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 55px;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Style for the Jobs nav item */
.nav-item-jobs .nav-link {
    background-color: var(--accent-color); /* Use accent teal for background */
    color: var(--white) !important; /* White text */
    border-radius: 10px; /* Rounded corners */
    padding: 0.5rem 1rem !important; /* Match padding with other nav links */
    margin-left: 0.5rem; /* Add some space from the previous item */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-item-jobs .nav-link:hover {
    background-color: var(--primary-color); /* Primary blue on hover */
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 43, 95, 0.3), rgba(26, 43, 95, 0.3)),
                url('../image/mountain.webp') center/cover no-repeat;
    color: var(--white);
    padding-top: 80px;
    padding-bottom: 0;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Styles for Job Cards in Hero - Updated for Animation */
.hero .job-card {
    /* background-color: rgba(255, 255, 255, 0.8); */ /* Replaced by animation */
    /* border: 1px solid rgba(255, 255, 255, 0.4); */ /* Replaced by animation */
    border-radius: 15px; /* Match service cards */
    /* color: var(--primary-color); */ /* Replaced by animation */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.2); */ /* Replaced by animation */
    /* transition: all 0.3s ease; */ /* Replaced by animation */

    /* Added properties for animation */
    width: 100%;
    background: #fff; /* Base background */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease-out;
    text-decoration: none;
    padding: 1.5rem; /* Adjusted padding */
    min-height: 310px; /* Set minimum height */
}

.hero .job-card:hover {
    /* transform: translateY(-3px); */ /* Remove old hover effect */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.3); */ /* Remove old hover effect */
    transform: translateY(-5px) scale(1.005) translateZ(0); /* Use animation transform */
    box-shadow: 0 24px 36px rgba(255, 255, 255, 0.11),
                0 24px 46px rgba(255, 255, 255, 0.4); /* Shadow using accent color */
}

.hero .job-card:hover .overlay {
    transform: scale(8) translateZ(0); /* Adjust scale as needed */
}

.hero .job-card:hover div.circle { /* Use accent color */
    border-color: var(--accent-color-alt); /* Darker border on hover */
}

.hero .job-card:hover div.circle:after { /* Use accent color */
    background: var(--accent-color-alt);
    opacity: 1;
}

.hero .job-card:hover .card-content h5,
.hero .job-card:hover .card-content p {
    color: var(--primary-color); /* Keep text dark blue on hover */
}

.hero .job-card:hover .job-button {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Remove old simple hover styles */
/* .hero .job-card:hover { ... } */

/* Remove old card-body padding */
/* .hero .job-card .card-body { padding: 1rem 1.25rem; } */

/* Circle for Job Card Animation */
.hero .job-card .circle {
    width: 80px; /* Smaller circle */
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-color); /* Use accent color */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease-out, border-color 0.3s ease-out;
    margin-bottom: 1rem;
}

.hero .job-card .circle:after {
    content: "";
    width: 70px; /* Adjusted size */
    height: 70px;
    display: block;
    position: absolute;
    background: var(--accent-color); /* Use accent color */
    border-radius: 50%;
    opacity: 1;
    transition: background-color 0.3s ease-out, opacity 0.3s ease-out;
}

/* Style for icons within the hero card circle */
.hero .job-card .circle .material-icons {
    color: var(--white);
    font-size: 3rem; /* Adjust size as needed */
    z-index: 2; /* Ensure icon is above circle:after */
}

/* Overlay for Job Card Animation */
.hero .job-card .overlay {
    width: 70px;
    position: absolute;
    height: 70px;
    border-radius: 50%;
    background: #007c911a; /* Use accent color with alpha transparency */
    top: calc(1.5rem + 60px - 35px); /* Adjust calculation */
    left: calc(50% - 35px);
    z-index: 0;
    transform: scale(1) translateZ(0);
    transition: transform 0.3s ease-out;
}

/* Job Card Text Content */
.hero .job-card .card-content {
    text-align: center;
    z-index: 10;
    position: relative;
    width: 100%;
}

.hero .job-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color); /* Use primary color */
    transition: color 0.3s ease-out;
}

.hero .job-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--dark-gray); /* Use primary color */
    transition: color 0.3s ease-out;
}

.hero .job-card .job-button {
    /* Using styles from original .btn-outline-light */
    border-color: var(--primary-color);
    color: var(--dark-gray);
    padding: 0.25rem 0.75rem; /* Original small size */
    font-size: 0.875rem; /* Original small size */
    transition: all 0.3s ease-out;
    background-color: transparent;
}

/* Remove original button styles that are now handled by .job-button */
/* .hero .job-card .btn-outline-light { ... } */
/* .hero .job-card .btn-outline-light:hover { ... } */

/* Buttons */
.btn-primary {
    background-color: var(--primary-color); /* Use primary blue */
    border-color: var(--primary-color); /* Use primary blue */
    color: var(--white); /* White text */
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color); /* Use accent teal */
    border-color: var(--accent-color); /* Use accent teal */
    color: var(--white); /* Ensure text stays white */
    transform: translateY(-2px);
}

.btn-outline-primary {
    /* Default for light backgrounds */
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: transparent; /* Ensure no background */
}

.btn-outline-primary:hover {
    background-color: var(--white); /* Restore white background */
    color: var(--primary-color); /* Change text to primary blue */
    border-color: var(--accent-color); /* Keep border accent teal */
    transform: translateY(-2px);
}

.hero .btn-outline-primary {
    /* Specific style for the 'Über Uns' button in the hero on dark background */
    color: var(--white);
    border-color: var(--white);
    /* Inherit padding, radius, font-weight, transition */
}

.hero .btn-outline-primary:hover {
    color: var(--primary-color); /* Ensure white text on hover */
}

/* Services Section */
.services {
    /* Removed padding: 4rem 0; as general section padding applies */
}

#dienstleistungen h2 {
    /* Removed redundant rule here */
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem 1.5rem; /* Increased padding */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Use flexbox for content alignment */
    flex-direction: column; /* Stack elements vertically */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-card .card-body {
    padding: 0; /* Remove default bootstrap card-body padding */
    flex-grow: 1; /* Allow body to grow */
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-weight: 600; /* Slightly bolder */
    color: #003366; /* Dark Blue Color */
    margin-top: 1rem; /* Space below icon */
    margin-bottom: 0.75rem;
    font-size: 1.3rem; /* Adjust size if needed */
}

.service-card p {
    color: #003366; /* Darker gray for text */
    font-size: 0.95rem;
    margin-bottom: 0; /* Remove bottom margin if no button */
    flex-grow: 1; /* Allow paragraph to take remaining space */
}

.service-card .material-icons {
    font-size: 3rem; /* Icon size */
    color: var(--primary-color); /* Gold-like color */
    margin-bottom: 0.5rem; /* Space below icon */
    /* Position icon top-left (if needed, otherwise default is fine) */
    /* align-self: flex-start; */ /* Uncomment if needed */
}

/* Features Section */
.features {
    background-color: var(--white);
    color: var(--dark-gray);
}

.features h2 {
    color: var(--dark-gray);
}

/* Ensure feature item text is dark on white background */
.feature-item h4 {
    color: var(--primary-color);
}
.feature-item .material-icons {
    color: var(--primary-color);
}

/* Base style for icons */
.material-icons {
    color: var(--primary-color);
}

/* Products Section */
.products {
    background-color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.carousel-item {
    padding: 2rem 0;
    min-height: 480px; /* Add minimum height to prevent layout shift */
    /* Optional: Align content consistently if needed */
    /* display: flex; */
    /* align-items: center; */
}

.carousel-item img {
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.carousel-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* New styles for product features list */
.product-features li {
    display: flex;
    align-items: flex-start; /* Align icon with the start of the text */
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.product-features .material-icons {
    color: var(--accent-color-alt); /* Use alternate accent color */
    margin-right: 0.75rem;
    margin-top: 0.15rem; /* Align icon slightly better vertically */
    font-size: 1.25rem; /* Slightly smaller icon */
}

/* Style for product images */
.product-image {
    max-height: 400px; /* Limit image height */
    object-fit: cover; /* Ensure image covers the area nicely */
    width: 100%;
}

/* Carousel Controls */
#productCarousel .carousel-control-prev-icon,
#productCarousel .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 1rem;
    background-size: 50% 50%;
}

#productCarousel .carousel-control-prev,
#productCarousel .carousel-control-next {
    width: auto; /* Let the icon size dictate the width */
    opacity: 0.7;
    transition: opacity 0.3s ease;
    /* Move controls outwards */
    top: 50%;
    transform: translateY(-50%);
}

#productCarousel .carousel-control-prev {
    left: -70px; /* Adjust this value as needed */
}

#productCarousel .carousel-control-next {
    right: -70px; /* Adjust this value as needed */
}

#productCarousel .carousel-control-prev:hover,
#productCarousel .carousel-control-next:hover {
    opacity: 1;
}

/* Carousel Indicators */
#productCarousel .carousel-indicators {
    position: relative; /* Ensure margin works as expected */
    bottom: auto; /* Override default Bootstrap positioning */
    margin-top: 1.5rem; /* Add space above indicators */
    margin-bottom: 0; /* Remove default bottom margin if any */
}

#productCarousel .carousel-indicators button {
    background-color: var(--primary-color);
    opacity: 0.5;
    border-radius: 50%; /* Make indicators circular */
    width: 12px;
    height: 12px;
    border: none;
    margin: 0 5px;
}

#productCarousel .carousel-indicators .active {
    opacity: 1;
}

/* Features Section */
.feature-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item .material-icons {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* About Section */
.about {
    background-color: var(--light-gray);
}

.about h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.about p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* CTA Section */
.cta {
    /* background-color: var(--primary-color); */ /* Keep primary color as fallback/overlay */
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 8rem 0; /* Increased padding for more height */
    background: linear-gradient(rgba(26, 43, 95, 0.75), rgba(26, 43, 95, 0.75)), /* Overlay for text readability */
                url('../image/mountain.webp') center/cover no-repeat fixed; /* Parallax background */
    background-attachment: fixed; /* Parallax effect */
}

/* Removed the ::before pseudo-element as the background is now directly on .cta */
/* .cta::before { ... } */

.cta .container {
    position: relative;
    z-index: 1;
    padding-top: 50px;
    padding-bottom: 50px;
}

.cta h2 {
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta .lead {
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-info {
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 15px;
}

.contact-info h3 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info .material-icons {
    color: var(--primary-color);
    margin-right: 0.5rem;
    vertical-align: middle;
}

.social-links a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Clients Section */
.clients {
    background-color: var(--light-gray);
}

.clients img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.clients img:hover {
    filter: grayscale(0%);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0;
}

/* Form Controls */
.form-control {
    border-radius: 10px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .service-card {
        margin-bottom: 1.5rem; /* Add space between cards on mobile */
    }
    .feature-item {
        margin-bottom: 1.5rem;
    }
    .contact-info {
        margin-top: 2rem;
    }
}

/* Animations */
.nav-link, .btn, .service-card, .feature-item {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Custom Container Width */
.container {
    max-width: 1440px !important; /* Override Bootstrap default */
}

/* Specific Hero Layout Adjustments - REMOVED */
/* section#start .hero .row > .col-lg-7 { ... } */
/* section#start .hero .col-lg-7 > div.mt-4 { ... } */

/* Style for Referenzen project cards */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

/* --- Animated Job Card Styles (Generalized from Hero) --- */
.animated-job-card {
    border-radius: 15px;
    width: 100%;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease-out;
    text-decoration: none;
    padding: 1.5rem;
    min-height: 310px; /* Ensure consistent height */
}

.animated-job-card:hover {
    transform: translateY(-5px) scale(1.005) translateZ(0);
    box-shadow: 0 24px 36px rgba(0, 0, 0, 0.11),
                0 24px 46px rgba(0, 124, 145, 0.2); /* Shadow using accent color - Reduced opacity */
}

.animated-job-card .overlay {
    width: 70px;
    position: absolute;
    height: 70px;
    border-radius: 50%;
    background: #007c911a; /* Use accent color with alpha transparency */
    top: calc(1.5rem + 40px - 35px);
    left: calc(50% - 35px);
    z-index: 0;
    transform: scale(1) translateZ(0); /* Base scale is 1 */
    transition: transform 0.3s ease-out;
}

.animated-job-card:hover .overlay {
    transform: scale(12) translateZ(0); /* Increased scale on hover */
}

.animated-job-card .circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease-out, border-color 0.3s ease-out;
    margin-bottom: 1rem;
}

.animated-job-card:hover .circle {
    border-color: var(--primary-color); /* Use primary blue for border */
    background: var(--white); /* Keep background white */
}

.animated-job-card .circle:after { /* Inner colored circle */
    content: "";
    width: 70px;
    height: 70px;
    display: block;
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 1;
    transition: background-color 0.3s ease-out, opacity 0.3s ease-out;
}

.animated-job-card:hover .circle:after {
    background: var(--primary-color); /* Use primary blue */
    opacity: 1;
}

.animated-job-card .circle .material-icons {
    color: var(--white);
    font-size: 3rem;
    z-index: 2;
}

.animated-job-card .card-content {
    text-align: center;
    z-index: 10;
    position: relative;
    width: 100%;
}

.animated-job-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: color 0.3s ease-out;
}

.animated-job-card:hover .card-title,
.animated-job-card:hover .card-text {
    color: var(--primary-color); /* Keep text dark blue on hover */
}

.animated-job-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    transition: color 0.3s ease-out;
}

.animated-job-card .job-button {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease-out;
    background-color: transparent;
    border-radius: 50px; /* Added rounded corners */
}

.animated-job-card:hover .job-button {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}
/* --- End Animated Job Card Styles --- */

/* General Section Padding */
section {
    padding-top: 10rem;
    padding-bottom: 10rem;
    overflow: hidden; /* Prevent content overflow issues with large padding */
}

/* --- Flip Card Styles (for Leistungen/Lösungen pages) --- */
/* Placed at the end to minimize potential conflicts during edits */
.flip-card {
  min-height: 280px; /* Adjust height as needed */
  background-color: transparent;
  perspective: 1000px;
  border: none;
  box-shadow: none;
  border-radius: 15px; /* Match other cards */
  overflow: hidden; /* Ensure back image respects border radius */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px; /* Match .flip-card */
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

.flip-card-front {
  background-color: var(--primary-color); /* Use primary color */
  color: var(--white);
  padding: 1rem;
}

.flip-card-front h3 {
  font-size: 1.4rem; /* Adjust as needed */
  color: var(--white);
  margin: 0;
}

.flip-card-back {
  background-color: var(--light-gray);
  color: var(--dark-gray);
  transform: rotateY(180deg);
  overflow: hidden;
  padding: 0; /* Remove padding for image */
}

.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* --- End Flip Card Styles --- */

/* END OF FILE */ 