/* ═══════════════════════════════════════════════════════════════
   Handwertig Core — main_CSS.tpl
   Basis-Styles für Template 2 (Handwertig Website / Bootstrap 5)
   Bereinigt: Mobirise-Spezifika entfernt, eigene Styles behalten
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Basis ────────────────────────────────────────────────── */
section {
  background-color: #ffffff;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  word-wrap: break-word;
}

body {
  font-style: normal;
  line-height: 1.5;
  font-weight: 400;
  color: #101112;
  position: relative;
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
}

html, body {
  height: auto;
  min-height: 100vh;
}

button {
  background-color: transparent;
  border-color: transparent;
}

.container,
.container-fluid {
  position: relative;
  word-wrap: break-word;
}

a {
  font-style: normal;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
}

a:hover { text-decoration: none; }

a.mbr-iconfont:hover { text-decoration: none; }

b, strong { font-weight: bold; }

figure { margin-bottom: 0; overflow: hidden; }

img, iframe { display: block; width: 100%; }

blockquote {
  font-style: italic;
  padding: 3rem;
  font-size: 1.09rem;
  position: relative;
  border-left: 3px solid;
}

ul, ol, pre, blockquote {
  margin-bottom: 2.3125rem;
  list-style-type: square;
}

td, th {
  word-wrap: break-word;
  white-space: normal;
}

@media (max-width: 576px) {
  .table td, .table th { font-size: 0.875rem; }
}

[type=submit] { -webkit-appearance: none; }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  transition-delay: 9999s;
  transition-property: background-color, color;
}

textarea[type=hidden] { display: none; }

input[type=range] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

:focus { outline: none; }

::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

/* ─── Typographie ──────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-4, .display-5, .display-7,
span, p, a {
  line-height: 1.3;
  word-break: break-word;
  word-wrap: break-word;
  font-weight: 400;
}

.article .lead p,
.article .lead ul,
.article .lead ol,
.article .lead pre,
.article .lead blockquote {
  margin-bottom: 0;
}

.mbr-section-title {
  font-style: normal;
  line-height: 1.3;
  color: #ffffff;
}

.mbr-section-subtitle { line-height: 1.3; }

.mbr-text {
  font-style: normal;
  line-height: 1.7;
}

.uppercase { text-transform: uppercase; }
.hidden    { visibility: hidden; }
.handwertig { font-weight: bold; }
.facts { font-weight: 300; font-size: 62px; }

/* ─── Farben & Utilities ───────────────────────────────────────────── */
.mbr-white    { color: #ffffff; }
.mbr-black    { color: #111111; }
.mbr-bg-white { background-color: #ffffff; }
.mbr-bg-black { background-color: #000000; }

.mbr-z-index20  { z-index: 20; }
.mbr-light      { font-weight: 300; }
.mbr-regular    { font-weight: 400; }
.mbr-semibold   { font-weight: 500; }
.mbr-bold       { font-weight: 700; }

.bg-handwertig  { background-color: #d63384; }
.mbr-handwertig { color: #d63384 !important; }

.align-left   { text-align: left; }
.align-center { text-align: center; }
.align-right  { text-align: right; }

@media (max-width: 767px) {
  .align-left,
  .align-right { text-align: center; }
}

.mt-4 { margin-top: 2rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

/* ─── Hintergrund (Startseite) ─────────────────────────────────────── */
.autobg {
  background-image: url("/cms-assets/handwertig/images/team/AdobeStock_783615922.jpeg");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

.mbr-overlay {
  background-color: #000;
  bottom: 0; left: 0;
  opacity: 0.5;
  position: absolute;
  right: 0; top: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Navigation ──────────────────────────────────────────────────── */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar.navbar-short { background: transparent !important; }

.navbar-toggler {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.navbar-toggler:focus,
.navbar-toggler:hover {
  text-decoration: none;
  box-shadow: none;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em; height: 1.5em;
  vertical-align: middle;
  content: "";
  background: no-repeat center center;
  background-size: 100% 100%;
}

.menu .navbar-brand { display: flex; }
.menu .navbar-brand span { display: flex; }
.menu .navbar-brand .navbar-logo img { display: flex; width: auto; }

.navbar-caption-wrap, .title-wrap { color: transparent !important; }
.logo { width: 200px; }

.nav { display: flex; flex-wrap: wrap; }
.row { display: flex; flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.card-wrapper { flex: 1; }
.nav-item { border: none !important; }

.nav-link, .nav-link:focus, .nav-link:hover { color: #e22278; }

.nav-link .mbr-iconfont { margin-right: 0.5rem; }

.nav-dropdown .link {
  padding: 0.667em 1.667em !important;
  margin: 0 !important;
}

@media (max-width: 991px) {
  .menu .navbar-collapse { max-height: 93.5vh; }
  .menu .navbar-collapse.show { overflow: auto; }
}

@media (min-width: 992px) {
  .menu .navbar-nav.nav-dropdown { display: flex; }
  .menu .collapsed .navbar-collapse { max-height: 93.5vh; }
  .menu .collapsed .navbar-collapse.show { overflow: auto; }
}

@media (max-width: 767px) {
  .menu .navbar-collapse { max-height: 80vh; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .menu .navbar-toggleable-sm .navbar-nav { display: flex; }
}

/* ─── Dropdown ─────────────────────────────────────────────────────── */
.dropdown-menu {
  border-radius: 0;
  background-color: #e22278;
}

.dropdown-hndwrtg { background: white !important; }

.dropdown-item {
  padding: .5rem 1rem;
  font-weight: 500;
}

.dropdown-toggle { white-space: normal !important; }

.dropdown-menu .dropdown-menu { right: 100%; }
.dropdown-item + .dropdown-menu { display: none; }
.dropdown-item:hover + .dropdown-menu,
.dropdown-menu:hover { display: block; }

.dropup .dropdown-toggle::after { display: none; }

/* ─── Buttons ──────────────────────────────────────────────────────── */
.mbr-section-btn {
  margin-left: -0.6rem;
  margin-right: -0.6rem;
  font-size: 0;
}

.btn {
  font-weight: 600;
  letter-spacing: .2rem;
  border-width: 1px;
  font-style: normal;
  margin: 0.6rem 0.6rem;
  white-space: normal;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
}

.btn-sm, .btn-md, .btn-lg {
  font-weight: 600;
  letter-spacing: .2rem;
  transition: all 0.3s ease-in-out;
}

.btn-form { margin: 0; }
.btn-form:hover { cursor: pointer; }

nav .mbr-section-btn {
  margin-left: 0;
  margin-right: 0;
}

.btn .mbr-iconfont,
.btn.btn-sm .mbr-iconfont {
  order: 1;
  cursor: pointer;
  margin-left: 0.5rem;
  vertical-align: sub;
}

.btn.btn-md .mbr-iconfont { margin-left: 0.8rem; }

.btn.disabled, .btn:disabled, fieldset:disabled .btn { opacity: .30; }

/* Handwertig-Primärfarbe (#e22278) */
.btn-primary {
  border: 0;
  position: relative;
  z-index: 1;
}
.btn-primary,
.btn-primary:active {
  background-color: #e22278 !important;
  border-color: #e22278 !important;
  color: #ffffff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary.active {
  color: #e22278 !important;
  background-color: #ffffff !important;
  border-color: #e22278 !important;
}
.btn-primary.disabled,
.btn-primary:disabled {
  color: #ffffff !important;
  background-color: #e22278 !important;
  border-color: #e22278 !important;
}
.btn-primary:before {
  content: '';
  left: 0; top: 0; bottom: auto;
  position: absolute;
  width: 100%; height: 0%;
  background-color: white;
  z-index: -1;
  transition: all 0.3s;
  border: 3px solid #e22278 !important;
}
.btn-primary:hover:before {
  height: 100%; top: auto; bottom: 0;
}

/* Weißer Outline-Button (auf dunklem Hintergrund) */
.btn-hndwrtg {
  border: 3px solid #fff;
  position: relative;
  z-index: 1;
  font-size: 1em;
}
.btn-hndwrtg,
.btn-hndwrtg:active {
  border-color: #fff !important;
  color: #ffffff !important;
}
.btn-hndwrtg:hover,
.btn-hndwrtg:focus,
.btn-hndwrtg.focus,
.btn-hndwrtg.active {
  color: #ffffff !important;
  border-color: #e22278 !important;
  outline: none !important;
  box-shadow: none !important;
}
.btn-hndwrtg.disabled,
.btn-hndwrtg:disabled {
  color: #ffffff !important;
  background-color: #47b5ed !important;
  border-color: #47b5ed !important;
}
.btn-hndwrtg:before {
  content: '';
  left: 0; top: 0; bottom: auto;
  position: absolute;
  width: 100%; height: 0%;
  z-index: -1;
  transition: all 0.3s;
}

.qualibutton {
  letter-spacing: 0px;
  font-weight: bold;
  padding: 50px;
}

/* ─── Formulare ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group:focus { outline: none; }

.form-control {
  background-color: #ffffff;
  background-clip: border-box;
  color: #232323;
  line-height: 1rem !important;
  height: auto;
  padding: 0.6rem 1.2rem;
  transition: border-color 0.25s ease 0s;
  border: 1px solid transparent !important;
  border-radius: 4px;
  box-shadow: rgba(0,0,0,.07) 0px 1px 1px 0px,
              rgba(0,0,0,.07) 0px 1px 3px 0px,
              rgba(0,0,0,.03) 0px 0px 0px 1px;
}

.form-active .form-control:invalid { border-color: red; }
.form-control:focus { box-shadow: none; }

form .row {
  margin-left: -0.6rem;
  margin-right: -0.6rem;
}
form .row [class*=col] {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}
form .mbr-section-btn {
  margin: 0;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}
form .btn {
  display: flex;
  padding: 0.6rem 1.2rem;
  margin: 0;
}
form .form-check-input { margin-top: 0.5; }

textarea.form-control { line-height: 1.5rem !important; }

.form-control, form .btn { min-height: 48px; }

.form-asterisk {
  font-family: initial;
  position: absolute;
  top: -2px;
  font-weight: normal;
}

.form-control-label {
  position: relative;
  cursor: pointer;
  margin-bottom: 0.357em;
  padding: 0;
}

.alert {
  color: #ffffff;
  border-radius: 0;
  border: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1.875rem;
  padding: 1.25rem;
  position: relative;
  text-align: center;
}

.alert.alert-form::after {
  background-color: inherit;
  bottom: -7px;
  content: "";
  display: block;
  height: 14px;
  left: 50%;
  margin-left: -7px;
  position: absolute;
  transform: rotate(45deg);
  width: 14px;
}

/* ─── Gewerke-Auswahl (Projektanfrage) ─────────────────────────────── */
.job {
  margin: 50px 0;
}
.job img {
  display: inline-block;
  width: 100%;
  max-width: 100px;
}
.job label {
  display: block;
  position: relative;
  color: #000;
  font-weight: bold;
}
.job label:hover { cursor: pointer; }
.job input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0; width: 0;
}
.job .checkmark {
  display: none;
  position: absolute;
  right: 0; top: 0;
  width: 25%;
}
.job input:checked ~ .checkmark { display: block; }

#jobs-extended { display: none; }

/* ─── Karten & Medien ──────────────────────────────────────────────── */
.card {
  background-color: transparent;
  border: none;
}
.card-box {
  width: 100%;
  margin-bottom: 25px;
}
.card-img {
  text-align: center;
  flex-shrink: 0;
  width: auto;
}
.card-img img, .mbr-figure img { width: 100%; }

.card-wrapper, .item-wrapper { overflow: hidden; }
.card-wrapper { flex: 1; }

.item { position: relative; }

.media {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
}

.mbr-figure { align-self: center; }

@media (max-width: 991px) {
  .media { width: auto; }
  .mbr-figure { width: 100% !important; }
}

/* ─── Grid-Padding ─────────────────────────────────────────────────── */
@media (min-width: 992px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .row {
    margin-left: -16px;
    margin-right: -16px;
  }
  .row > [class*=col] {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 768px) {
  .container-fluid {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ─── Modal & Carousel ─────────────────────────────────────────────── */
.modal-dialog, .modal-content { height: 100%; }
.modal-dialog .carousel-inner { height: calc(100vh - 1.75rem); }

@media (max-width: 575px) {
  .modal-dialog .carousel-inner { height: calc(100vh - 1rem); }
}

.carousel-item { text-align: center; }
.carousel-item img { margin: auto; }
.carousel-control { z-index: 10; display: flex; }
.carousel-controls { display: flex; }

.carousel-indicators [data-bs-target] {
  width: 40px; height: 7px;
  margin-right: 7px; margin-left: 7px;
  background-color: #e22278;
}
.carousel-control-next, .carousel-control-prev {
  background-color: #e22278;
  opacity: 0;
}
.carousel-control-next:hover, .carousel-control-prev:hover {
  background-color: #e22278;
  opacity: .3;
}
.carousel-control-next-icon {
  background-image: url("/cms-assets/handwertig/layout/icon_right.svg");
  width: 20rem; height: 20rem;
}
.carousel-control-prev-icon {
  background-image: url("/cms-assets/handwertig/layout/icon_left.svg");
  width: 20rem; height: 20rem;
}

/* ─── Slick-Slider (Partner-Logos) ────────────────────────────────── */
.slick-slide { margin: 0px 20px; }
.slick-slide img { width: 100%; }

.slick-slider {
  position: relative;
  display: block;
  box-sizing: border-box;
  user-select: none;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0; padding: 0;
  background-color: #fafafa;
}
.slick-list:focus { outline: none; }
.slick-list.dragging { cursor: pointer; }

.slick-slider .slick-track,
.slick-slider .slick-list {
  transform: translate3d(0, 0, 0);
}

.slick-track {
  position: relative;
  top: 0; left: 0;
  display: block;
}
.slick-track:before, .slick-track:after { display: table; content: ''; }
.slick-track:after { clear: both; }
.slick-loading .slick-track { visibility: hidden; }

.slick-slide {
  display: none;
  float: left;
  height: 100%;
  min-height: 1px;
}
[dir='rtl'] .slick-slide { float: right; }
.slick-slide img { display: block; }
.slick-slide.slick-loading img { display: none; }
.slick-slide.dragging img { pointer-events: none; }
.slick-initialized .slick-slide { display: block; }
.slick-loading .slick-slide { visibility: hidden; }
.slick-vertical .slick-slide { display: block; height: auto; border: none; }
.slick-arrow.slick-hidden { display: none; }

/* ─── cid-Handwertig-Abschnitt (Konfigurator/Rechner-Bereiche) ─────── */
.cid-handwertig {
  padding-top: 45px;
  padding-bottom: 60px;
  background-color: #fafafa;
}
.cid-handwertig h2 {
  color: #000;
  font-size: 2.1rem;
  line-height: 2.4rem;
  font-weight: bold;
  text-align: left;
}

/* Dropdown-Abschnitt (Bestandsentwicklung) */
.cid-tM2Lf4BzMe { padding-bottom: 8rem; }

/* ─── Tabs (Fahrtenbuch / interne Tools) ───────────────────────────── */
.nav-tabs .nav-link.active {
  background-color: #e22278;
  color: #fff;
  margin-top: -8px;
  padding-bottom: 15px;
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active { border-color: #e22278; }
.nav-tabs {
  border-bottom: 1px solid #e22278;
  margin-bottom: 50px;
}
.nav-tabs .nav-link {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background-color: #e9ecef;
}
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover { background-color: #e22278; color: #fff; }

/* ─── Sonstiges ────────────────────────────────────────────────────── */
@media (min-width: 400px) {
  .factbox { margin-top: 50%; }
}

.form-inline { display: flex; }

.map { height: 25rem; position: relative; }
.map iframe { width: 100%; height: 100%; }

/* Calendly-Widget Links positionieren */
.calendly-badge-widget {
  right: auto !important;
  left: 20px !important;
}

#panorama { width: 300px; height: 200px; }

.navbar-scrolled { background: rgba(42,36,89,.92) !important; box-shadow: 0 2px 20px rgba(0,0,0,.22) !important; }

/* ── Fix: Quellen-Text "– Barbara Ettinger-Brinckmann"
   auf dunklem Hintergrund → weiß ── */
section[class*="team4"] .mbr-section-head .mbr-text,
section[class*="team4"] .mbr-section-head p,
section[class*="team4"] .mbr-text.display-7 {
  color: #fff !important;
}
