:root {
  /* Custom Color Palette - Freundliches, helles Technik-Blau */
  --primary-blue: #3ca9e2;
  --primary-blue-dark: #2c8bbd;
  --dark-black: #1a1a1a;
  --light-grey: #f8f9fa;
}

/* roboto-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/roboto-v50-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/roboto-v50-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/roboto-v50-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/roboto-v50-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--dark-black);
}

/* --- Helper Classes --- */
.text-primary {
  color: var(--primary-blue) !important;
}

.bg-primary {
  background-color: var(--primary-blue) !important;
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
}

.ls-2 {
  letter-spacing: 2px;
}

/* --- Top Bar --- */
.top-bar {
  background-color: var(--dark-black);
  color: #fff;
  font-size: 0.85rem;
}

.top-bar a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.top-bar a:hover,
.top-bar a.active {
  color: var(--primary-blue);
}

/* --- Navbar --- */
.navbar {
  transition: all 0.4s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-link {
  color: var(--dark-black);
  font-weight: 500;
  margin-right: 1rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

/* --- Dropdown Styling --- */

/* Verhindert das "Hüpfen" der Navbar bei Dropdown-Öffnung auf Desktop */
@media (min-width: 992px) {
  .navbar-nav .dropdown-menu {
    border-top: 3px solid var(--primary-blue) !important; /* Akzentlinie oben */
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.dropdown-item {
  font-size: 0.9rem;
  color: var(--dark-black);
  font-weight: 400;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--light-grey);
  color: var(--primary-blue);
  padding-left: 1.25rem; /* Kleiner Slide-Effekt */
}

.dropdown-divider {
  border-top: 1px solid #eee;
}

/* Anpassung der Navbar-Links für bessere Abstände */
.nav-link {
  padding: 0.5rem 1rem !important;
}

/* --- Hero Section --- */
.carousel-item {
  position: relative;
}

/* Dark Overlay damit weißer Text lesbar ist */
.carousel-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  bottom: 0;
  top: 0; /* Full height centering */
}

/* Object Fit Cover für perfekte Bildskalierung */
.object-fit-cover {
  object-fit: cover;
}

/* --- Services Section --- */
.section-padding {
  padding: 6rem 0;
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 4px; /* Slight rounding, not fully square but distinctive */
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-card .icon-box {
  transition: transform 0.3s ease;
}

.service-card:hover .icon-box {
  transform: scale(1.1);
}

/* --- Footer --- */
footer a:hover {
  color: var(--primary-blue) !important;
}

.header-logo {
  height: 50px;
}

.footer-logo {
  height: 100px;
}
.site-header {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 11 !important;
}
/* --- Hero Zoom Effekt --- */

/* 1. Definition der Animation (von 100% auf 115% Größe) */
@keyframes zoomSlow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.15); /* Wie stark der Zoom ist (1.15 = 15%) */
  }
}

/* 2. Sicherstellen, dass das gezoomte Bild nicht aus dem Container ragt */
.carousel-item {
  overflow: hidden;
}

/* 3. Animation aktivieren, sobald der Slide "active" (sichtbar) ist 
   Der Selektor "img" sorgt dafür, dass das <video> ignoriert wird. */
.carousel-item.active img {
  animation: zoomSlow 15s linear forwards; /* 20s Dauer für sehr sanfte Bewegung */
  transform-origin: center center; /* Zoomt aus der Mitte heraus */
}

/* --- Hero Readability Fixes --- */

/* 1. Text-Schatten: Macht die Schriftkanten "knackig" auf jedem Untergrund */
.carousel-caption h1,
.carousel-caption h5,
.carousel-caption p {
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

/* 2. Verbessertes Overlay:
   Statt einfach nur grau zu sein, verläuft es von links (dunkel) nach rechts (heller).
   So ist der Text links immer lesbar, aber das Bild rechts strahlt noch.
*/
.carousel-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Verlauf: Links 85% Schwarz -> Rechts nur 20% Schwarz */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}
.text-white-75 {
  --bs-text-opacity: 1;
  color: rgba(255, 255, 255, 0.75) !important;
}

/* --- Footer Kontaktformular Styling --- */

/* Der Behälter für das Formular */
.footer-form-container {
  background: rgba(
    255,
    255,
    255,
    0.03
  ); /* Ganz dezenter Kontrast zum Hintergrund */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Anpassung der Input-Felder für den Dark-Mode */
.footer-input {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff !important;
  border-radius: 0; /* Passend zum kantigen Industry-Style */
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.footer-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-input:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-blue);
  box-shadow: none; /* Entfernt den Standard Bootstrap Glow */
  outline: none;
}

/* Hover-Effekt für die Footer-Links */
.footer-links a {
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-blue) !important;
  padding-left: 5px; /* Kleiner Animationseffekt beim Hover */
}

/* Border-Start Akzent für die Überschrift links */
.border-primary {
  border-color: var(--primary-blue) !important;
}

.modal-content {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-header .btn-close {
  filter: brightness(0) invert(1); /* Macht das X weiß */
}

/* --- Experience & Trust Section --- */

.experience-trust {
  position: relative;
  z-index: 10; /* Leicht überlappend zum nächsten Bereich falls gewünscht */
}

/* Icon-Box Styling passend zu den Service-Cards */
.exp-icon-box {
  min-width: 45px;
  height: 45px;
  background-color: var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 4px; /* Konsistent zum restlichen Design */
  transition: all 0.3s ease;
}

.experience-trust .d-flex:hover .exp-icon-box {
  background-color: var(--primary-blue);
}

.experience-trust .d-flex:hover .exp-icon-box i {
  color: #fff !important;
}

.trust-footer {
  border-color: #eee !important;
}

/* Subtile Animation für die Liste */
.experience-list .d-flex {
  transition: transform 0.2s ease;
}

.experience-list .d-flex:hover {
  transform: translateX(5px);
}

/* --- HVP Overview Section --- */

.h-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.ls-2 {
  letter-spacing: 2px;
}

.hvp-overview .card {
  border-radius: 4px; /* Industrial Look */
}

.hvp-overview .innovation-focus {
  border-left: 4px solid var(--primary-blue);
}

.hvp-overview .list-unstyled i {
  font-size: 1.2rem;
}

/* Subtiler Einblendeffekt für die Liste */
.hvp-overview li {
  transition: transform 0.3s ease;
}

.hvp-overview li:hover {
  transform: translateX(10px);
}

.ls-2 {
  letter-spacing: 2px;
}
.badge.border {
  border-color: #dee2e6 !important;
  padding: 0.5rem 0.8rem;
  background: transparent;
}
/* Entfernt den Kachel-Hover Effekt für diese Seite */
.competence-fields .border-start {
  transition: border-color 0.3s ease;
}
.competence-fields .border-start:hover {
  border-left-color: var(--primary-blue) !important;
}

/* Hero Subpage */
.page-hero {
  border-bottom: 4px solid var(--primary-blue);
}

.page-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/asset/hvp/videos/Experten_fuer_Freileitungsmasten.jpg");
  background-size: cover;
  background-position: center 70%;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "|"; /* Individueller Trenner passend zum Industrie-Look */
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-item a {
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #fff !important;
}
