/* =========================================================
   LITERA BAVARICA
   Elegantes Bootstrap-5 Design
========================================================= */

/* =========================================================
   ROOT / FARBEN
========================================================= */

:root {

  /* Farbwelt */
  --lb-dark: rgb(18, 48, 76);
  --lb-dark-soft: rgb(26, 65, 102);

  --lb-light: rgb(50, 140, 204);
  --lb-light-hover: rgb(120, 190, 240);

  --lb-white: #ffffff;

  --lb-body-bg: #f5f7fa;
  --lb-body-gradient-top: #f8fafc;
  --lb-body-gradient-bottom: #eef3f8;

  --lb-border: rgba(18, 48, 76, 0.08);

  /* Bootstrap Override */
  --bs-primary: rgb(18, 48, 76);
  --bs-primary-rgb: 18, 48, 76;

  /* Radius */
  --lb-radius-sm: 0.5rem;
  --lb-radius: 1rem;
  --lb-radius-lg: 1.5rem;

  /* Schatten */
  --lb-shadow:
    0 0.25rem 1rem rgba(18, 48, 76, 0.08);

  --lb-shadow-hover:
    0 0.5rem 1.5rem rgba(18, 48, 76, 0.14);

  --lb-shadow-dropdown:
    0 1rem 2rem rgba(18, 48, 76, 0.12);

  /* Transition */
  --lb-transition:
    0.25s ease-in-out;

}

/* =========================================================
   BASE
========================================================= */

html {
  scroll-behavior: smooth;
}

body {

  font-family:
    "Inter",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  font-size: 1rem;
  line-height: 1.7;

  color: var(--lb-dark);

  background:
    linear-gradient(to bottom,
      var(--lb-body-gradient-top) 0%,
      var(--lb-body-gradient-bottom) 100%);

  min-height: 100vh;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   TYPOGRAFIE
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  color: var(--lb-dark);

  font-weight: 600;

  line-height: 1.3;

  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

h4 {
  font-size: 1.35rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 0.95rem;
}

p,
li,
td,
th {

  color: rgba(18, 48, 76, 0.92);
}

/* =========================================================
   LINKS
========================================================= */

a {

  color: var(--lb-light);

  text-decoration: none;

  transition:
    color var(--lb-transition),
    opacity var(--lb-transition);
}

a:hover,
a:focus {

  color: var(--lb-dark);
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
a:focus-visible {

  outline: 3px solid rgba(50, 140, 204, 0.35);

  outline-offset: 2px;
}

/* =========================================================
   CONTAINER
========================================================= */

.lb-container {

  padding-left: 1rem;
  padding-right: 1rem;
}

/* =========================================================
   HEADER TOP
========================================================= */

.header-top {

  position: relative;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.98);

  border-bottom:
    1px solid var(--lb-border);

  box-shadow:
    0 2px 12px rgba(18, 48, 76, 0.04);
}

/* =========================================================
   HEADER TITLE
========================================================= */

.header-title {

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  color: var(--lb-dark);

  letter-spacing: -0.02em;

  margin: 0;
}

.header-subtitle {

  font-family:
    "Inter",
    Arial,
    sans-serif;

  color: var(--lb-light);

  font-size: 1.1rem;

  margin: 0;
}

/* =========================================================
   HERO HEADER
========================================================= */

.header {

  position: relative;

  overflow: hidden;

  background:
    linear-gradient(rgba(18, 48, 76, 0.72),
      rgba(18, 48, 76, 0.72)),
    url('/design/img/kopf-02.png');

  background-size: cover;
  background-position: center center;

  min-height: 260px;

  display: flex;
  align-items: center;

  color: var(--lb-white);

  box-shadow:
    inset 0 -80px 120px rgba(0, 0, 0, 0.12);
}

.header h1 {

  color: var(--lb-white);

  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.3);
}

.header p {

  color:
    rgba(255, 255, 255, 0.88);
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {

  background:
    rgba(255, 255, 255, 0.98) !important;

  border-bottom:
    1px solid var(--lb-border);

  box-shadow:
    0 2px 12px rgba(18, 48, 76, 0.04);
}

.navbar-brand,
.nav-link {

  color: var(--lb-dark) !important;

  font-weight: 500;
}

.nav-link:hover {

  color: var(--lb-light) !important;
}

/* =========================================================
   DROPDOWN
========================================================= */

.dropdown-menu {

  border: 0;

  border-radius: var(--lb-radius);

  box-shadow: var(--lb-shadow-dropdown);

  padding: 0.75rem;

  background: rgba(255, 255, 255, 0.98);
}

.dropdown-item {

  border-radius: 0.75rem;

  padding: 0.65rem 1rem;

  transition:
    background-color var(--lb-transition),
    color var(--lb-transition);
}

.dropdown-item:hover {

  background:
    rgba(50, 140, 204, 0.08);

  color: var(--lb-dark);
}

/* =========================================================
   LOGIN DROPDOWN
========================================================= */

.login-dropdown {

  min-width: 320px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {

  border-radius: 0.75rem;

  font-weight: 500;

  transition:
    background-color var(--lb-transition),
    color var(--lb-transition),
    transform var(--lb-transition),
    box-shadow var(--lb-transition);
}

.btn-primary {

  background:
    linear-gradient(135deg,
      var(--lb-dark),
      var(--lb-dark-soft));

  border: 0;

  box-shadow:
    0 4px 12px rgba(18, 48, 76, 0.18);
}

.btn-primary:hover {

  transform: translateY(-2px);

  background:
    linear-gradient(135deg,
      var(--lb-dark-soft),
      var(--lb-light));
}

.btn-outline-primary {

  border-color: var(--lb-dark);

  color: var(--lb-dark);
}

.btn-outline-primary:hover {

  background: var(--lb-dark);

  border-color: var(--lb-dark);

  color: var(--lb-white);
}

/* =========================================================
   FORMULAR
========================================================= */

.form-control,
.form-select {

  border:
    1px solid rgba(18, 48, 76, 0.12);

  padding:
    0.75rem 1rem;

  border-radius:
    0.75rem;

  transition:
    border-color var(--lb-transition),
    box-shadow var(--lb-transition);
}

.form-control:focus,
.form-select:focus {

  border-color:
    var(--lb-light);

  box-shadow:
    0 0 0 0.2rem rgba(50, 140, 204, 0.15);
}

/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {

  background: transparent;

  margin-bottom: 0;
}

.breadcrumb-item,
.breadcrumb-item a {

  color:
    rgba(255, 255, 255, 0.92);
}

.breadcrumb-item.active {

  color:
    rgba(255, 255, 255, 0.72);
}

/* =========================================================
   CARDS
========================================================= */

.card {

  border: 0;

  border-radius: var(--lb-radius);

  overflow: hidden;

  background: var(--lb-white);

  box-shadow: var(--lb-shadow);

  transition:
    transform var(--lb-transition),
    box-shadow var(--lb-transition);
}

.card:hover {

  transform: translateY(-4px);

  box-shadow: var(--lb-shadow-hover);
}

.card-header {

  background:
    linear-gradient(135deg,
      var(--lb-dark),
      var(--lb-dark-soft));

  color: var(--lb-white);

  border: 0;

  padding: 1rem 1.25rem;
}

.card-body {

  padding: 1.5rem;
}

/* =========================================================
   IMAGES
========================================================= */

.card-image-hover {

  border-radius: var(--lb-radius);

  transition:
    transform var(--lb-transition),
    box-shadow var(--lb-transition);
}

.card-image-hover:hover {

  transform: scale(1.01);

  box-shadow:
    0 0.5rem 1rem rgba(18, 48, 76, 0.08);
}

/* =========================================================
   SECTION TITLE
========================================================= */

.heading-full-underline {

  position: relative;

  padding-bottom: 0.75rem;

  margin-bottom: 2rem;
}

.heading-full-underline::after {

  content: '';

  position: absolute;

  left: 0;
  bottom: 0;

  width: 90px;
  height: 3px;

  border-radius: 999px;

  background:
    linear-gradient(90deg,
      var(--lb-light),
      var(--lb-dark));
}

/* =========================================================
   MAIN
========================================================= */

main {

  position: relative;

  z-index: 2;

  min-height:
    calc(100vh - 320px);
}

/* =========================================================
   FOOTER
========================================================= */

footer {

  background:
    linear-gradient(135deg,
      rgb(14, 38, 60),
      rgb(18, 48, 76));

  color:
    rgba(255, 255, 255, 0.88);

  padding:
    3rem 0;
}

footer h2,
footer h3,
footer h4,
footer h5 {

  color: var(--lb-white);
}

footer a {

  color:
    rgba(255, 255, 255, 0.88);

  transition:
    color var(--lb-transition);
}

footer a:hover {

  color:
    var(--lb-light-hover);
}

/* =========================================================
   PRELOADER
========================================================= */

#preloader {

  position: fixed;

  inset: 0;

  background: var(--lb-white);

  z-index: 9999;
}

#status {

  position: absolute;

  top: 50%;
  left: 50%;

  width: 120px;
  height: 120px;

  margin:
    -60px 0 0 -60px;

  background:
    url('/assets/img/loader.gif') no-repeat center center;

  background-size: contain;
}

/* =========================================================
   MAP
========================================================= */

#map,
.map {

  width: 100%;

  height:
    clamp(400px, 70vh, 800px);

  border-radius:
    var(--lb-radius);

  border:
    1px solid var(--lb-border);

  overflow: hidden;

  box-shadow:
    var(--lb-shadow);
}

/* =========================================================
   LEAFLET
========================================================= */

.leaflet-popup-content-wrapper {

  border-radius:
    var(--lb-radius) !important;

  box-shadow:
    0 1rem 2rem rgba(18, 48, 76, 0.18);
}

.popup-title {

  color: var(--lb-dark);

  font-weight: 600;
}

/* =========================================================
   BACK TO TOP
========================================================= */

#backToTop {

  width: 52px;
  height: 52px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 0.5rem 1rem rgba(18, 48, 76, 0.2);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  .header {

    min-height: 180px;

    text-align: center;
  }

  .header-title {

    font-size: 2rem;
  }

  .header-subtitle {

    font-size: 1rem;
  }

  .card-body {

    padding: 1rem;
  }

  .login-dropdown {

    min-width: 280px;
  }

  h1 {

    font-size: 2rem;
  }

}