/* ==============================
   GLOBAL THEME – BGM Balkonbau
   ============================== */

/* Font */

/* Bootstrap Color Overrides */

:root {
  --bs-primary: #1b3760;
  --bs-secondary: #2864ae;
  --bs-info: #74a4d8;
  --bs-dark: #1b3760;
  --bs-primary-rgb: 27,55,96;
  --bs-secondary-rgb: 40,100,174;
  --bs-body-color: #707070;
  --bs-body-bg: #ffffff;
  --bs-link-color: #2864ae;
  --bs-link-hover-color: #1b3760;
  --bs-border-radius: 0.35rem;
}

/* Body */

body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Headings – markant */

h1, h2, h3, h4, h5 {
  color: #1b3760;
  font-weight: 600;
}

/* Buttons – industriell */

.btn {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.btn-primary {
  background-color: #1b3760;
  border-color: #1b3760;
}

.btn-primary:hover {
  background-color: #2864ae;
  border-color: #2864ae;
}

.btn-outline-primary {
  color: #1b3760;
  border-color: #1b3760;
}

.btn-outline-primary:hover {
  background-color: #1b3760;
  color: #fff;
}

/* Logo */
.logo {
  max-width: 240px;
}

@media (min-width: 768px) {   /* md */
  .logo {
    max-width: 280px;
  }
}

@media (min-width: 992px) {   /* lg */
  .logo {
    max-width: 320px;
  }
}




/* Navigation */

.navbar {
  border-top: 1px solid #e5e5e5;
  border-bottom: 2px solid #1b3760;
}

.navbar-nav .nav-link {
  color: #1b3760;
  padding: 0.75rem 1rem;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: #2864ae;
}

/* Dropdowns */

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Mega Menu */

.mega-menu {
  border-top: 2px solid #1b3760;
  border-radius: 0;
}

.mega-menu h6 {
  color: #1b3760;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mega-menu .dropdown-item {
  padding: 0.35rem 0;
  font-weight: 500;
}

.mega-menu .dropdown-item:hover {
  background: none;
  color: #2864ae;
}

/* Nav Hover Linie */

.navbar-nav .nav-link {
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: #74a4d8;
  transition: width .25s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* ==============================
   HERO CAROUSEL – INDUSTRIAL
   ============================== */

#hero {
  position: relative;
}

.hero-img {
  height: 70vh;
  min-height: 420px;
  object-fit: cover;
  filter: grayscale(10%);
}

/* Dunkles Overlay */

.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( 90deg, rgba(27,55,96,.85) 0%, rgba(27,55,96,.65) 45%, rgba(27,55,96,.25) 100% );
  z-index: 1;
}

/* Caption */

.carousel-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  z-index: 2;
}

/* Content Box */

.hero-box {
  max-width: 620px;
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  border-left: 5px solid #74a4d8;
  background: rgba(0,0,0,.15);
}

/* Text */

.hero-box h1 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.6rem, 3vw, 3rem);
}

.hero-box p {
  color: #e0e0e0;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Mobile Optimierung */

@media (max-width: 768px) {
  .hero-img {
    height: 60vh;
  }
}

@media (max-width: 768px) {
  .hero-box {
    padding: 1.5rem;
    border-left-width: 3px;
  }
}

/* ==============================
   REFERENZEN GRID
   ============================== */

.ref-item {
  position: relative;
  display: block;
  overflow: hidden;
}

.ref-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

/* Overlay */

.ref-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,55,96,.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity .4s ease;
}

.ref-overlay h5 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: .25rem;
  color: #fff;
}

.ref-overlay span {
  font-size: .9rem;
  color: #cfd8e3;
}

/* Hover */

.ref-item:hover img {
  transform: scale(1.08);
}

.ref-item:hover .ref-overlay {
  opacity: 1;
}



/* ==============================
   WILLKOMMEN MODUL
   ============================== */

.welcome-section {
  background: #ffffff;
}

.welcome-section h2 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.welcome-section .lead {
  font-weight: 500;
  color: #2864ae;
  margin-bottom: 1rem;
}

.welcome-image {
  position: relative;
  padding-left: 1rem;
}

.welcome-image img {
  border-left: 5px solid #74a4d8;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}




/* ==============================
   KARRIERE MODUL
   ============================== */

.career-section {
  background: linear-gradient( 135deg, #f8f9fa 0%, #eef2f6 100% );
}

.career-box {
  height: 100%;
  padding: 2.5rem;
  background: #fff;
  border-left: 5px solid #1b3760;
  box-shadow: 0 15px 30px rgba(0,0,0,.06);
}

.career-box h4 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.career-box p {
  margin-bottom: 1.5rem;
}

/* Alternative Box (Ausbildung) */

.career-box-alt {
  border-left-color: #74a4d8;
}

/* ==============================
   FOOTER – INDUSTRIAL
   ============================== */

.footer-industrial {
  background-color: #1b3760;
  color: #cfd8e3;
}

.footer-industrial p {
  color: #cfd8e3;
  font-size: 0.95rem;
}

.footer-logo {
  max-width: 200px;
}

.footer-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a, .footer-industrial a {
  color: #cfd8e3;
  text-decoration: none;
}

.footer-links a:hover, .footer-industrial a:hover {
  color: #74a4d8;
}

.footer-divider {
  border-color: rgba(255,255,255,.15);
}

.footer-legal a {
  margin-left: 1rem;
  font-size: 0.85rem;
}

footer .logo {
  filter: grayscale(100%) brightness(2);
}


/* ==============================
   LEISTUNGEN / SERVICES
   ============================== */

.service-box {
  position: relative;
  min-height: 260px;
  padding: 2.5rem 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  border-left: 5px solid #74a4d8;
}

/* Hintergrundbild */
.service-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 1;
}

.service-bg:hover::before {
  transform: scale(1.1);
}

/* Overlay */
.service-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,55,96,0.78);
  z-index: 2;
}

/* Content */
.service-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-content h5 {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.service-content p {
  color: #d7e1ef;
  font-size: 0.95rem;
}

/* Icon */
.service-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #74a4d8;
}

.service-icon img {
  width: 32px;
  height: 32px;
  display: inline-block;
}


/* ==============================
   HINTERGRUNDBILDER
   ============================== */

.service-balkon::before {
  background-image: url("../picture/services/balkon.jpg");
}

.service-treppe::before {
  background-image: url("../picture/services/treppen.jpg");
}

.service-gelaender::before {
  background-image: url("../picture/services/gelaender.jpg");
}

.service-zaun::before {
  background-image: url("../picture/services/zaun.jpg");
}

.service-referenz::before {
  background-image: url("../picture/services/referenz.jpg");
}

.service-planung::before {
  background-image: url("../picture/services/planung.jpg");
}


/* ==============================
   REFERENZEN DETAILSEITE
   ============================== */

.reference-detail h2 {
  color: #1b3760;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.reference-detail p {
  color: #707070;
}

.ref-main-image img {
  border: 4px solid #74a4d8;
}

.ref-thumb {
  border: 2px solid #cfd8e3;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.ref-thumb:hover {
  transform: scale(1.05);
  border-color: #1b3760;
}

/* Breadcrumb modern */

.breadcrumb-wrapper {
  padding: 0.75rem 0;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #9ca3af;
  padding: 0 0.6rem;
}

.breadcrumb a {
  color: #2864ae;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #1e40af;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #6b7280;
  font-weight: 500;
}


/* ==============================
   REFERENZEN SHARE BUTTONS
   ============================== */

.btn-facebook {
  background-color: #3b5998;
  color: #fff;
  border: none;
}

.btn-facebook:hover {
  background-color: #2d4373;
}

.btn-instagram {
  background-color: #517ea7;
  color: #fff;
  border: none;
}

.btn-instagram:hover {
  background-color: #386590;
}

/* ==============================
   SHARE BUTTONS HOVER & ANIMATION
   ============================== */

.btn-facebook, .btn-instagram {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-facebook:hover, .btn-instagram:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn-facebook {
  background-color: #3b5998;
  color: #fff;
  border: none;
}

.btn-facebook:hover {
  background-color: #2d4373;
}

.btn-instagram {
  background-color: #517ea7;
  color: #fff;
  border: none;
}

.btn-instagram:hover {
  background-color: #386590;
}

/* ==============================
   REFERENZEN HAUPTSEITE / CARDS
   ============================== */

.references-section h2 {
  text-transform: uppercase;
  color: #1b3760;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.references-section p {
  color: #707070;
}

.reference-card {
  background: #ffffff;
  border-left: 5px solid #74a4d8;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
}

.reference-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.reference-card .ref-img img {
  width: 100%;
  transition: transform 0.3s ease;
}

.reference-card:hover .ref-img img {
  transform: scale(1.05);
}

.reference-card h5 {
  color: #1b3760;
  margin-bottom: 0.5rem;
}

.reference-card p {
  font-size: 0.95rem;
  color: #707070;
}

.reference-card .btn {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cards */

.card {
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

/* Sections */

.section-dark {
  background-color: #1b3760;
  color: #fff;
}

.section-dark h2 {
  color: #fff;
}

/* Parallax */

.parallax-divider,
.parallax-divider h1,
.parallax-divider h2,
.parallax-divider h3,
.parallax-divider h4,
.parallax-divider h5,
.parallax-divider h6,
.parallax-divider p,
.parallax-divider a,
.parallax-divider span {
  color: #ffffff !important;
}

.parallax-divider {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background-image: url("../img/template/pexels-marketingtuig-87223.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
}

.parallax-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27,55,96,0.75);
}

.parallax-divider .container {
  position: relative;
  z-index: 2;
}

.parallax-divider h2 {
  text-transform: uppercase;
  letter-spacing: 0.15em;
}


/* ==============================
   PAGE HEADER
   ============================== */

.page-header {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Hintergrundbild kommt aus dem HTML */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* Overlay für bessere Lesbarkeit */
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 55, 96, 0.75); /* dein Blau */
  z-index: 1;
}

/* Inhalt */
.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 1rem;
}

.page-header-content h1 {
  color: #ffffff;
  font-size: 2.4rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.page-header-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}


@media (max-width: 768px) {
  .page-header {
    height: 220px;
  }

  .page-header-content h1 {
    font-size: 1.9rem;
  }

  .page-header-content p {
    font-size: 1rem;
  }
}



/* ==============================
   Bilder Galerie
   ============================== */

.gallery-item {
  width: 100%;
  height: 200px; /* gewünschte Höhe der Bilder */
  overflow: hidden;
  border-radius: 8px; /* optional, wie bei "rounded" */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild wird zugeschnitten und passt ins Raster */
  object-position: center; /* zentriert den Bildausschnitt */
}



/* Grid-Bilder einheitlich */
.ref-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.ref-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* zuschneiden, nicht quetschen */
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.ref-img:hover img {
  transform: scale(1.05);
}


.ref-img-fixed {
  width: 100%;
  height: 250px;           /* feste Höhe für einheitliche Größe */
  overflow: hidden;
  background: #f5f5f5;     /* optional: Hintergrund, falls Bild kleiner ist */
}

.ref-img-fixed img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* Zuschneiden ohne Verzerren */
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.ref-img-fixed:hover img {
  transform: scale(1.05);  /* leichter Hover-Effekt */
}

.ref-img-square {
  width: 100%;
  height: 200px; /* Hauptbild größer, Galerie kleiner */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ref-img-square img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* schneidet Bilder einheitlich ohne Verzerren */
}


/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

.ref-lightbox {
  cursor: zoom-in;
}

.ref-main-image {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 0.5rem;
}

.ref-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.map-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f1f1f1;
}

/* Auf großen Bildschirmen noch höher */
@media (min-width: 992px) {
  .map-wrapper {
    height: 400px;
  }
}


.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info h2 {
  color: #1b3760;
}

.social-icons a {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.5rem;
  color: #517ea7;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #2864ae;
}
