:root {
  --swiss-red: #DC143C;
  --swiss-dark-red: #a00f2e;
  --header-footer-bg: #580719;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
header {
  /* background-image: url('../img/header.jpeg'); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--header-footer-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--header-footer-bg);
  opacity: 0.5;
  z-index: 1;
}

header .container,
header nav {
  position: relative;
  z-index: 2;
}

.navbar-brand img {
  height: 100px;
  width: auto;
}

.navbar-dark .navbar-nav .nav-link {
  color: white;
  font-weight: 500;
  transition: opacity 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
  opacity: 0.8;
  color: white;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: 2rem;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: opacity 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  opacity: 0.7;
}

@media (max-width: 991px) {
  .social-icons {
    margin-left: 0;
    margin-top: 1rem;
    justify-content: center;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(247, 19, 64, 0.7) 0%, rgba(65, 6, 19, 0.7) 100%),
              url('../img/header.jpeg') center/cover;
              
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.2rem;
}

/* Section Titles */
.section-title {
  color: var(--swiss-red);
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--swiss-red);
}

/* Service Cards */
.service-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--swiss-red);
  box-shadow: 0 5px 20px rgba(220, 20, 60, 0.1);
  transform: translateY(-5px);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--swiss-red);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/* About Section */
.about-content {
  background: #f9f9f9;
  padding: 3rem;
  border-radius: 10px;
  border-left: 5px solid var(--swiss-red);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Expertise Section */
.expertise-section {
  background-color: #f8f9fa;
}

.expertise-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.expertise-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(180deg, #e8f4f8 0%, #f0f8fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.expertise-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.expertise-card:hover .expertise-image img {
  transform: scale(1.05);
}

.expertise-title {
  background: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.3;
}

.btn-expertise-contact {
  background-color: var(--swiss-red);
  color: white;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-expertise-contact:hover {
  background-color: var(--swiss-dark-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

/* Old Icons Section - Keep for backward compatibility */
.icon-item {
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  transition: all 0.3s;
  border: 2px solid transparent;
  text-align: center;
}

.icon-item:hover {
  border-color: var(--swiss-red);
  transform: scale(1.05);
}

.icon-item-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.icon-item p {
  color: #333;
  font-weight: 500;
  margin: 0;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-label {
  font-weight: 500;
  color: #333;
}

.form-control {
  border: 2px solid #e0e0e0;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--swiss-red);
  box-shadow: none;
}

.btn-primary {
  background: var(--swiss-red);
  border: none;
  padding: 0.8rem 3rem;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--swiss-dark-red);
}

.success-message {
  display: none;
  background: #4CAF50;
  color: white;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  text-align: center;
}

.success-message.show {
  display: block;
}

/* Contact Info */
.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--swiss-red);
  background: #f9f9f9;
  border-radius: 5px;
  transition: all 0.3s;
}

.contact-info-item:hover {
  background: #fff;
  transform: translateX(5px);
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--swiss-red);
  margin-right: 1rem;
  min-width: 30px;
}

.contact-info-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info-item a:hover {
  color: var(--swiss-red);
}

/* Map */
.map-container {
  width: 100%;
  height: 450px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background: var(--header-footer-bg);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.footer-link {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
}

.footer-link:hover {
  opacity: 0.85;
  color: white;
}

/* Privacy/Impressum page layout */
.content-section {
  padding: 4rem 0;
}

.content-box {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
  border-left: 5px solid var(--swiss-red);
  line-height: 1.8;
}

@media (max-width: 767px) {
  .hero h1 { font-size: 1.8rem; }
  .service-image { margin-bottom: 1rem; }
}

@media (min-width: 768px) {
  .service-image { height: 250px; margin-bottom: 0; }
}

/* Owl Carousel Section */
.carousel-section {
  background: #f9f9f9;
}

.carousel-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

/* Owl Carousel Custom Styling */
.owl-carousel .owl-nav {
  margin-top: 20px;
  text-align: center;
}

.owl-carousel .owl-nav button {
  background-color: var(--swiss-red) !important;
  color: white !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 10px;
  font-size: 24px;
  line-height: 50px;
  transition: all 0.3s;
}

.owl-carousel .owl-nav button:hover {
  background-color: var(--swiss-dark-red) !important;
  transform: scale(1.1);
}

.owl-carousel .owl-dots {
  text-align: center;
  margin-top: 20px;
}

.owl-carousel .owl-dots button.owl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc !important;
  margin: 0 5px;
  transition: all 0.3s;
}

.owl-carousel .owl-dots button.owl-dot.active {
  background-color: var(--swiss-red) !important;
  transform: scale(1.2);
}

.carousel-nav-prev,
.carousel-nav-next {
  display: inline-block;
  color: white;
  font-weight: bold;
}

@media (max-width: 767px) {
  .carousel-image {
    height: 300px;
  }
  
  .owl-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    font-size: 20px;
    line-height: 40px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .carousel-image {
    height: 400px;
  }
}
