:root {
  --color-grey: #00152C;
  --color-red: #841F27;
}

* {
  font-family: verdana,geneva,sans-serif;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  background-image: url('../img/beton.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

#logo {
  max-height: 48px;
}
.dropdown:hover>.dropdown-menu {
  display: block;
}

/* Dropdown-Menüs auf Geräten < 993px direkt anzeigen */
@media (max-width: 992px) {
  .navbar-nav .dropdown .dropdown-menu {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin-top: 0 !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  
  .navbar-nav .dropdown .dropdown-item {
    padding-left: 2rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

.bg-gray {
  background-color: var(--color-grey);
  color: #fff;
}
.bg-red {
  background-color: var(--color-red);
  color: #fff;
}
.text-red {
  color: var(--color-red);
}

.bi {
  display: inline-block;
  width: 1rem;
  height: 1rem;
}

.fs-em-08 {
  font-size: 0.8em;
}

h2 {
  font-weight: bold;
  hyphens: auto;
  overflow-wrap: break-word;
}

/*
 * Sidebar
 */
@media (min-width: 768px) {
  .sidebar .offcanvas-lg {
    position: -webkit-sticky;
    position: sticky;
    top: 48px;
  }

  .sidebar-main {
    min-height: calc(100vh - 48px);
  }
}

[id] { scroll-margin-top: var(--scroll-offset, 150px); }

.sidebar .nav-link {
  font-size: .875rem;
  font-weight: 500;
}

.sidebar .nav-link.active {
  color: #dc8624;
}

.sidebar-heading {
  font-size: .75rem;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
  padding: .75rem 1rem;
}

.badge.bg-warning {
  color: rgb(80, 65, 23);
}
.badge.bg-info {
  color: rgb(10, 57, 66);
}
.badge.bg-success {
  color: rgb(6, 48, 28);
}

/* Auftrag | Bilder */
.card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
}
.upload-area {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  color: #999;
  cursor: pointer;
}
.upload-area.dragover {
  background-color: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
}
#preview {
  margin-top: 20px;
}
.card-contract-img {
  max-width: 18rem;
}
@media (max-width: 768px) {
  .card-contract-img {
    width: 100%;
    max-width: 100%;
  }
}


#video { width: 100%; height: auto; border: 1px solid #ccc; border-radius: 8px; }
#snap, #upload { margin-top: 0.5rem; padding: 0.5rem 1rem; font-size: 1rem; border: none; border-radius: 4px; cursor: pointer; }
#snap { background: #007bff; color: #fff; }
#upload { background: #28a745; color: #fff; }
#preview-container { margin-top: 1rem; display: none; }
#preview { width: 100%; height: auto; border: 1px solid #ccc; border-radius: 8px; }

.main-image-links a {
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 1.125rem;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  background-color: var(--color-red);
  transition: all 0.6s ease;
  border-color: var(--color-red);
  border: 3px solid #fff;
}
.main-image-links a:hover {
  background-color: #fff;
  color: var(--color-red);
  border-color: var(--color-red);
}
.main-image-links a:active {
  background-color: var(--color-red);
  color: #fff;
}

.main-image-links-header a {
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  background-color: var(--color-red);
  transition: all 0.6s ease;
  border-color: var(--color-red);
  border: 1px solid #fff;
}
.main-image-links-header a:hover {
  background-color: #fff;
  color: var(--color-red);
  border-color: var(--color-red);
}
.main-image-links-header a:active {
  background-color: var(--color-red);
  color: #fff;
}

#header {
  position:relative;
  height: 600px;
}
@media (max-width: 992px) {
  #header {
    height: 640px;
  }
}
@media (max-width: 768px) {
  #test {
    width: 100% !important;
  }
}

.card-angebot {
  background: var(--color-red);
}
.card-angebot a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  display: block;
}
.square-card {
  aspect-ratio: 1 / 1;      /* macht das Element quadratisch */
}

.card-img-top-mainpage {
  height: 100%;
  object-fit: cover;
}

footer a.link {
  color: #fff;
  text-decoration: none;
  margin-right: 20px;
}
footer a.link:active {
  color: #fff;
  text-decoration: none;
}
footer a.bold {
  font-weight: bold;
  text-transform: uppercase;
}

ul.list-checked {
  list-style: none !important; /* Standardnummern abschalten */
  padding: 0;
  margin: 0;
  counter-reset: item;
}
ul.list-checked li {
  position: relative;
  padding-left: 1.5em;
}
ul.list-checked li::marker {
  content: none; /* Nur sicherheitshalber, falls Browser Marker anzeigen */
}
ul.list-checked li::before {
  content: "✓";
  counter-increment: item;
  position: absolute;
  left: 0; 
  width: 2em;        /* feste Breite für Zahl */
  text-align: left; /* Zahl linksbündig ausrichten */
}

.img-personal-wrapper {
  width: 245px;
  height: 288px;
  overflow: hidden;
}
.img-personal-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.btn-success {
  background: var(--color-grey);
  border-color: var(--color-grey);
  color: #fff;
}
.btn-success:hover,
.btn-success:active {
  background: var(--color-grey);
  border-color: var(--color-grey);
  color: #fff;
}

.list-stellenangebot li {
  padding-bottom: 12px;
}
.list-stellenangebot li li {
  padding: 6px 0 3px 0;
}
.list-stellenangebot li li:last-child {
  padding-bottom: 0;
}