/* =====================================================
   VARIABLEN
   ===================================================== */
:root {
  --bs-primary: #1f3a5f;
  --bs-secondary: #185095;
  --bs-body-font-family: Roboto, Helvetica Neue, Helvetica, Arial, sans-serif;
  --bs-heading-color: #333;
  --heading-margin-bottom: 1rem;
  --bs-link-color: var(--bs-secondary) !important;
  --bs-link-hover-color: var(--bs-primary);
}


/* =====================================================
   FONTS
   ===================================================== */

/* roboto-300 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-300.eot');
  src:
    local('Roboto Light'),
    local('Roboto-Light'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-300.woff2') format('woff2'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-300.woff') format('woff'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-300.ttf') format('truetype');
  font-display: swap;
}

/* roboto-400 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src:
    local('Roboto'),
    local('Roboto-Regular'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-regular.woff2') format('woff2'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-regular.woff') format('woff'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-regular.ttf') format('truetype');
  font-display: swap;
}

/* roboto-700 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src:
    local('Roboto Bold'),
    local('Roboto-Bold'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-700.woff2') format('woff2'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-700.woff') format('woff'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-700.ttf') format('truetype');
  font-display: swap;
}

/* roboto-900 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src:
    local('Roboto Black'),
    local('Roboto-Black'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-900.woff2') format('woff2'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-900.woff') format('woff'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-900.ttf') format('truetype');
  font-display: swap;
}


/* =====================================================
   GLOBALE / CUSTOM KLASSEN
   ===================================================== */

html {
  scroll-behavior: smooth;
}

body {
  color: #333;
  font-family: var(--bs-body-font-family);
}

a {
  color: var(--bs-link-color);
  text-decoration: none;
}

a:hover {
  color: var(--bs-link-hover-color);
  text-decoration: none;
}

ul {
  padding-left: 1rem;
}

.container-xl {
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
}

.lead {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0;
}

h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-bottom: var(--heading-margin-bottom);
}

@media (min-width: 768px) {
  .text-md-justify {
    text-align: justify !important;
  }
}

/* FADE-UP / LEFT / RIGHT */
/* Standard: immer sichtbar für no-js */
.no-js .fade-up,
.no-js .fade-left,
.no-js .fade-right {
  opacity: 1;
  transform: none;
  transition: none;
}

.fade-up, 
.fade-left, 
.fade-right {
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.fade-up {  transform: translateY(30px);}
.fade-left { transform: translateX(-30px); }
.fade-right { transform: translateX(30px); }

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays */
.fade-up:nth-child(1),
.fade-left:nth-child(1),
.fade-right:nth-child(1) {
  transition-delay: 0ms;
}

.fade-up:nth-child(2),
.fade-left:nth-child(2),
.fade-right:nth-child(2) {
  transition-delay: 150ms;
}

.fade-up:nth-child(3),
.fade-left:nth-child(3),
.fade-right:nth-child(3) {
  transition-delay: 300ms;
}

.fade-up:nth-child(4),
.fade-left:nth-child(4),
.fade-right:nth-child(4) {
  transition-delay: 450ms;
}



/* =====================================================
   BOOTSTRAP OVERRIDES (Farben & Buttons)
   ===================================================== */

.text-primary { color: var(--bs-primary) !important; }
.bg-primary { background-color: var(--bs-primary) !important; }

.text-secondary { color: var(--bs-secondary) !important; }
.bg-secondary { background-color: var(--bs-secondary) !important; }

.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
  background-color: #c32f2b !important;
  border-color: #c32f2b !important;
}

.btn-secondary {
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
}

.btn-secondary:hover {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}


/* =====================================================
   HEADER
   ===================================================== */

header {
  background-color: #fff;
}

header .h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header .lead {
  font-size: 1.1rem;
}

.logo {
  max-width: 160px;
}


/* =====================================================
   CAROUSEL
   ===================================================== */

.carousel img {
  object-fit: cover;
  height: 420px;
}

@media (max-width: 767px) {
  .carousel img {
    height: 280px;
  }
}

.carousel-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--bs-primary);
  mix-blend-mode: multiply;
  opacity: 0.3;
  pointer-events: none;
}


/* =====================================================
   CARDS / SERVICES
   ===================================================== */

.card {
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 6px;
}

.card i {
  color: var(--bs-primary);
}


/* =====================================================
   ABOUT (bg-primary)
   ===================================================== */
/* nutzt Bootstrap bg-primary */


/* =====================================================
   KONTAKT / FOOTER
   ===================================================== */

footer {
  background-color: #f5f5f5;
  box-shadow: inset 0 4px 15px rgba(3, 3, 3, 0.1);
  font-size: 20px;
}

footer h5,
footer a {
  color: var(--bs-primary);
}

footer h5 {
  font-weight: 900;
}

/* Contact Ribbon */
.contact-ribbon-container {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  padding: 0 15px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.contact-ribbon {
  position: sticky;
  top: 20px;
  background-color: var(--bs-primary);
  color: #fff;
  height: 50px;
  width: 50px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,.2);
  pointer-events: all;
  z-index: 9999;
}

.contact-ribbon:hover {
  background-color: var(--bs-secondary);
}


/* =====================================================
   MAPS
   ===================================================== */

iframe {
  border: 0;
}

.maps {
  position: relative;
  height: 450px;
  overflow: hidden;
}

@supports (mix-blend-mode: color) {
  .maps::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #333;
    mix-blend-mode: color;
    pointer-events: none;
    z-index: 1;
  }
}

/* =====================================================
   FONTS
   ===================================================== */

/* roboto-300 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-300.eot');
  src:
    local('Roboto Light'),
    local('Roboto-Light'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-300.woff2') format('woff2'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-300.woff') format('woff'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-300.ttf') format('truetype');
  font-display: swap;
}

/* roboto-400 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src:
    local('Roboto'),
    local('Roboto-Regular'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-regular.woff2') format('woff2'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-regular.woff') format('woff'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-regular.ttf') format('truetype');
  font-display: swap;
}

/* roboto-700 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src:
    local('Roboto Bold'),
    local('Roboto-Bold'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-700.woff2') format('woff2'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-700.woff') format('woff'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-700.ttf') format('truetype');
  font-display: swap;
}

/* roboto-900 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src:
    local('Roboto Black'),
    local('Roboto-Black'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-900.woff2') format('woff2'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-900.woff') format('woff'),
    url('https://webfonts.intecsoft.com/roboto/roboto-v18-latin-ext_latin-900.ttf') format('truetype');
  font-display: swap;
}


/* =====================================================
   GLOBALE / CUSTOM KLASSEN
   ===================================================== */

body {
  color: #333;
  font-family: var(--bs-body-font-family);
}

a {
  text-decoration: none;
}

ul {
  padding-left: 1rem;
}

.container-xl {
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
}

.lead {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0;
}

h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-bottom: var(--heading-margin-bottom);
}

@media (min-width: 768px) {
  .text-md-justify {
    text-align: justify !important;
  }
}


/* =====================================================
   BOOTSTRAP OVERRIDES (Farben & Buttons)
   ===================================================== */

.text-primary { color: var(--bs-primary) !important; }
.bg-primary { background-color: var(--bs-primary) !important; }

.text-secondary { color: var(--bs-secondary) !important; }
.bg-secondary { background-color: var(--bs-secondary) !important; }

.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
  background-color: #c32f2b !important;
  border-color: #c32f2b !important;
}

.btn-secondary {
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
}

.btn-secondary:hover {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}


/* =====================================================
   HEADER
   ===================================================== */

header {
  background-color: #fff;
}

header .h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header .lead {
  font-size: 1.1rem;
}

header .logo {
  max-width: 160px;
}

header .social a {
	line-height: 15px;
	color: var(--bs-primary);
}

header .social a:hover {
	color: var(--bs-secondary);
}



/* =====================================================
   CAROUSEL
   ===================================================== */

.carousel img {
  object-fit: cover;
  height: 420px;
}

@media (max-width: 767px) {
  .carousel img {
    height: 280px;
  }
}

.carousel-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--bs-primary);
  mix-blend-mode: multiply;
  opacity: 0.3;
  pointer-events: none;
}


/* =====================================================
   CARDS / SERVICES
   ===================================================== */

.card {
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 6px;
}

.card i {
  color: var(--bs-primary);
}


/* =====================================================
   KONTAKT / FOOTER
   ===================================================== */

footer {
  background-color: #f5f5f5;
  box-shadow: inset 0 4px 15px rgba(3, 3, 3, 0.1);
  font-size: 20px;
}

footer h5,
footer a {
  color: var(--bs-primary);
}

footer h5 {
  font-weight: 900;
}


/* Contact Ribbon */
.contact-ribbon-container {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.contact-ribbon {
  position: sticky;
  top: 20px;
  background-color: var(--bs-primary);
  color: #fff;
  height: 50px;
  width: 50px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,.2);
  z-index: 9999;
}

.contact-ribbon:hover {
  background-color: var(--bs-secondary);
}


/* =====================================================
   MAPS
   ===================================================== */

iframe {
  border: 0;
}

.maps {
  position: relative;
  height: 450px;
  overflow: hidden;
}

@supports (mix-blend-mode: color) {
  .maps::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #333;
    mix-blend-mode: color;
    pointer-events: none;
    z-index: 1;
  }
}
