/*
 * custom-grid.css – Winkelmann.de
 * Ersetzt bootstrap.min.css vollständig für: Container, Grid, Navbar, Dropdowns
 * Größe: ~5 KB (statt 27 KB Bootstrap)
 *
 * TYPO3 einbinden:
 *   page.includeCSS.customGrid = EXT:site_package/Resources/Public/Css/custom-grid.css
 */

/* --- Basis ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* --- Container -------------------------------------------------------- */

.container,
.container1,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl {
  width: 100%;
  padding-right: 0.75rem;
  padding-left:  0.75rem;
  margin-right: auto;
  margin-left:  auto;
}

@media (min-width: 576px)  { .container, .container1, .container-sm { max-width: 540px; } }
@media (min-width: 768px)  { .container, .container1, .container-sm, .container-md { max-width: 720px; } }
@media (min-width: 992px)  { .container, .container1, .container-sm, .container-md, .container-lg { max-width: 960px; } }
@media (min-width: 1200px) { .container, .container1, .container-sm, .container-md, .container-lg, .container-xl { max-width: 1140px; } }
@media (min-width: 1400px) { .container, .container1, .container-xl { max-width: 1320px; } }

/* --- Row -------------------------------------------------------------- */

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left:  -0.75rem;
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left:  0.75rem;
}

/* --- Columns xs ------------------------------------------------------- */

.col     { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1  { flex: 0 0 auto; width:  8.3333%; }
.col-2  { flex: 0 0 auto; width: 16.6667%; }
.col-3  { flex: 0 0 auto; width: 25%; }
.col-4  { flex: 0 0 auto; width: 33.3333%; }
.col-5  { flex: 0 0 auto; width: 41.6667%; }
.col-6  { flex: 0 0 auto; width: 50%; }
.col-7  { flex: 0 0 auto; width: 58.3333%; }
.col-8  { flex: 0 0 auto; width: 66.6667%; }
.col-9  { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.3333%; }
.col-11 { flex: 0 0 auto; width: 91.6667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* --- Columns sm ------------------------------------------------------- */

@media (min-width: 576px) {
  .col-sm     { flex: 1 0 0%; }
  .col-sm-auto { flex: 0 0 auto; width: auto; }
  .col-sm-1  { flex: 0 0 auto; width:  8.3333%; }
  .col-sm-2  { flex: 0 0 auto; width: 16.6667%; }
  .col-sm-3  { flex: 0 0 auto; width: 25%; }
  .col-sm-4  { flex: 0 0 auto; width: 33.3333%; }
  .col-sm-5  { flex: 0 0 auto; width: 41.6667%; }
  .col-sm-6  { flex: 0 0 auto; width: 50%; }
  .col-sm-7  { flex: 0 0 auto; width: 58.3333%; }
  .col-sm-8  { flex: 0 0 auto; width: 66.6667%; }
  .col-sm-9  { flex: 0 0 auto; width: 75%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.3333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.6667%; }
  .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

/* --- Columns md ------------------------------------------------------- */

@media (min-width: 768px) {
  .col-md     { flex: 1 0 0%; }
  .col-md-auto { flex: 0 0 auto; width: auto; }
  .col-md-1  { flex: 0 0 auto; width:  8.3333%; }
  .col-md-2  { flex: 0 0 auto; width: 16.6667%; }
  .col-md-3  { flex: 0 0 auto; width: 25%; }
  .col-md-4  { flex: 0 0 auto; width: 33.3333%; }
  .col-md-5  { flex: 0 0 auto; width: 41.6667%; }
  .col-md-6  { flex: 0 0 auto; width: 50%; }
  .col-md-7  { flex: 0 0 auto; width: 58.3333%; }
  .col-md-8  { flex: 0 0 auto; width: 66.6667%; }
  .col-md-9  { flex: 0 0 auto; width: 75%; }
  .col-md-10 { flex: 0 0 auto; width: 83.3333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.6667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
}

/* --- Columns lg ------------------------------------------------------- */

@media (min-width: 992px) {
  .col-lg     { flex: 1 0 0%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; }
  .col-lg-1  { flex: 0 0 auto; width:  8.3333%; }
  .col-lg-2  { flex: 0 0 auto; width: 16.6667%; }
  .col-lg-3  { flex: 0 0 auto; width: 25%; }
  .col-lg-4  { flex: 0 0 auto; width: 33.3333%; }
  .col-lg-5  { flex: 0 0 auto; width: 41.6667%; }
  .col-lg-6  { flex: 0 0 auto; width: 50%; }
  .col-lg-7  { flex: 0 0 auto; width: 58.3333%; }
  .col-lg-8  { flex: 0 0 auto; width: 66.6667%; }
  .col-lg-9  { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.3333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.6667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* --- Columns xl ------------------------------------------------------- */

@media (min-width: 1200px) {
  .col-xl     { flex: 1 0 0%; }
  .col-xl-auto { flex: 0 0 auto; width: auto; }
  .col-xl-1  { flex: 0 0 auto; width:  8.3333%; }
  .col-xl-2  { flex: 0 0 auto; width: 16.6667%; }
  .col-xl-3  { flex: 0 0 auto; width: 25%; }
  .col-xl-4  { flex: 0 0 auto; width: 33.3333%; }
  .col-xl-5  { flex: 0 0 auto; width: 41.6667%; }
  .col-xl-6  { flex: 0 0 auto; width: 50%; }
  .col-xl-7  { flex: 0 0 auto; width: 58.3333%; }
  .col-xl-8  { flex: 0 0 auto; width: 66.6667%; }
  .col-xl-9  { flex: 0 0 auto; width: 75%; }
  .col-xl-10 { flex: 0 0 auto; width: 83.3333%; }
  .col-xl-11 { flex: 0 0 auto; width: 91.6667%; }
  .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

/* --- Display-Utilities ------------------------------------------------ */

.d-flex         { display: flex !important; }
.d-inline-flex  { display: inline-flex !important; }
.d-block        { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-none         { display: none !important; }
.flex-wrap      { flex-wrap: wrap !important; }
.flex-nowrap    { flex-wrap: nowrap !important; }
.flex-column    { flex-direction: column !important; }
.flex-row       { flex-direction: row !important; }
.flex-fill      { flex: 1 1 auto !important; }

.justify-content-start   { justify-content: flex-start !important; }
.justify-content-end     { justify-content: flex-end !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-start       { align-items: flex-start !important; }
.align-items-end         { align-items: flex-end !important; }
.align-items-center      { align-items: center !important; }

@media (min-width: 576px)  { .d-sm-none { display: none !important; } .d-sm-block { display: block !important; } .d-sm-flex { display: flex !important; } }
@media (min-width: 768px)  { .d-md-none { display: none !important; } .d-md-block { display: block !important; } .d-md-flex { display: flex !important; } }
@media (min-width: 992px)  { .d-lg-none { display: none !important; } .d-lg-block { display: block !important; } .d-lg-flex { display: flex !important; } }
@media (min-width: 1200px) { .d-xl-none { display: none !important; } .d-xl-block { display: block !important; } .d-xl-flex { display: flex !important; } }

/* --- Spacing – nur die in deinem HTML genutzten Klassen --------------- */

.ms-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: 1rem !important; }

@media (min-width: 992px) {
  .mb-lg-0  { margin-bottom: 0 !important; }
  .mt-lg-0  { margin-top: 0 !important; }
  .me-lg-3  { margin-right: 1rem !important; }
  .ms-lg-auto { margin-left: auto !important; }
}

/* --- Navbar ------------------------------------------------------------ */

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
}

@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
}

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

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding-top:    0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

/* --- Toggler ---------------------------------------------------------- */

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.55);
  appearance: none;
  -webkit-appearance: none;
}

.navbar-toggler:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}

.navbar-toggler svg {
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  display: inline-block;
}

/* --- Collapse --------------------------------------------------------- */

.collapse:not(.show) {
  display: none;
}

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

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

/* --- Nav-Liste -------------------------------------------------------- */

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 992px) {
  .navbar-nav {
    flex-direction: row;
    align-items: center;
  }
}

.nav-item {
  position: relative;
}

/* --- Dropdown-Menü ---------------------------------------------------- */

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 230px;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-menu li a {
  display: block;
  padding: 0.375rem 1.25rem;
  text-decoration: none;
  white-space: nowrap;
  color: inherit;
}

.dropdown-menu li a:hover {
  background-color: #f8f9fa;
}

/* Desktop: hover öffnet Dropdown */
@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* Mobil: per JS .show gesetzt */
.dropdown-menu.show {
  display: block;
}

/* --- .submenu-toggle (dein Pfeil-Button) ------------------------------ */
/*
 * Das <span class="submenu-toggle"> neben dem Hauptlink.
 * Nur auf mobilen Geräten sichtbar.
 */

.submenu-toggle {
  display: none;
}

@media (max-width: 991.98px) {
  .nav-item.has-subnav {
    position: relative;
  }

  /* Pfeil-Button */
  .submenu-toggle {
   display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
       right: 4px;
        width: 6px;
        height: 16px;
        cursor: pointer;
        z-index: 10;
        margin-top: 10px;
  }

  .submenu-toggle::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -3px;
  }

  .submenu-toggle.active::after {
    transform: rotate(-135deg);
    margin-top: 3px;
  }

  /* Untermenü auf Mobil */
  .nav-item .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid rgba(0, 0, 0, 0.12);
    border-radius: 0;
    margin-left: 1rem;
    padding: 0.25rem 0;
    background: transparent;
  }

  .nav-item .dropdown-menu.show {
    display: block;
  }
}

/* --- Sticky / Fixed --------------------------------------------------- */

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.fixed-top {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1030;
}

/* --- Sizing ------------------------------------------------------------ */

.w-25  { width: 25% !important; }
.w-50  { width: 50% !important; }
.w-75  { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

.h-25  { height: 25% !important; }
.h-50  { height: 50% !important; }
.h-75  { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }

.min-vw-100 { min-width: 100vw !important; }
.min-vh-100 { min-height: 100vh !important; }
.vw-100     { width: 100vw !important; }
.vh-100     { height: 100vh !important; }

/* --- Position ---------------------------------------------------------- */

.position-static   { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed    { position: fixed !important; }
.position-sticky   { position: sticky !important; }

.top-0    { top: 0 !important; }
.top-50   { top: 50% !important; }
.top-100  { top: 100% !important; }

.bottom-0   { bottom: 0 !important; }
.bottom-50  { bottom: 50% !important; }
.bottom-100 { bottom: 100% !important; }

.start-0   { left: 0 !important; }
.start-50  { left: 50% !important; }
.start-100 { left: 100% !important; }

.end-0   { right: 0 !important; }
.end-50  { right: 50% !important; }
.end-100 { right: 100% !important; }

.translate-middle   { transform: translate(-50%, -50%) !important; }
.translate-middle-x { transform: translateX(-50%) !important; }
.translate-middle-y { transform: translateY(-50%) !important; }

/* --- Overflow ---------------------------------------------------------- */

.overflow-auto   { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }

/* --- Images ------------------------------------------------------------ */

.img-fluid {
  max-width: 100% !important;
  height: auto !important;
}

.img-thumbnail {
  padding: 0.25rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  max-width: 100%;
  height: auto;
}

.rounded       { border-radius: 0.375rem !important; }
.rounded-0     { border-radius: 0 !important; }
.rounded-1     { border-radius: 0.25rem !important; }
.rounded-2     { border-radius: 0.375rem !important; }
.rounded-3     { border-radius: 0.5rem !important; }
.rounded-4     { border-radius: 1rem !important; }
.rounded-5     { border-radius: 2rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill  { border-radius: 50rem !important; }

/* --- Margin (m-0 bis m-5, alle Richtungen) ---------------------------- */

.m-0  { margin: 0 !important; }
.m-1  { margin: 0.25rem !important; }
.m-2  { margin: 0.5rem !important; }
.m-3  { margin: 1rem !important; }
.m-4  { margin: 1.5rem !important; }
.m-5  { margin: 3rem !important; }
.m-auto { margin: auto !important; }

.mt-0  { margin-top: 0 !important; }
.mt-1  { margin-top: 0.25rem !important; }
.mt-2  { margin-top: 0.5rem !important; }
.mt-3  { margin-top: 1rem !important; }
.mt-4  { margin-top: 1.5rem !important; }
.mt-5  { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }

.mb-0  { margin-bottom: 0 !important; }
.mb-1  { margin-bottom: 0.25rem !important; }
.mb-2  { margin-bottom: 0.5rem !important; }
.mb-3  { margin-bottom: 1rem !important; }
.mb-4  { margin-bottom: 1.5rem !important; }
.mb-5  { margin-bottom: 3rem !important; }
.mb-auto { margin-bottom: auto !important; }

.ms-0  { margin-left: 0 !important; }
.ms-1  { margin-left: 0.25rem !important; }
.ms-2  { margin-left: 0.5rem !important; }
.ms-3  { margin-left: 1rem !important; }
.ms-4  { margin-left: 1.5rem !important; }
.ms-5  { margin-left: 3rem !important; }
.ms-auto { margin-left: auto !important; }

.me-0  { margin-right: 0 !important; }
.me-1  { margin-right: 0.25rem !important; }
.me-2  { margin-right: 0.5rem !important; }
.me-3  { margin-right: 1rem !important; }
.me-4  { margin-right: 1.5rem !important; }
.me-5  { margin-right: 3rem !important; }
.me-auto { margin-right: auto !important; }

.mx-0  { margin-right: 0 !important; margin-left: 0 !important; }
.mx-1  { margin-right: 0.25rem !important; margin-left: 0.25rem !important; }
.mx-2  { margin-right: 0.5rem !important;  margin-left: 0.5rem !important; }
.mx-3  { margin-right: 1rem !important;    margin-left: 1rem !important; }
.mx-4  { margin-right: 1.5rem !important;  margin-left: 1.5rem !important; }
.mx-5  { margin-right: 3rem !important;    margin-left: 3rem !important; }
.mx-auto { margin-right: auto !important;  margin-left: auto !important; }

.my-0  { margin-top: 0 !important;      margin-bottom: 0 !important; }
.my-1  { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2  { margin-top: 0.5rem !important;  margin-bottom: 0.5rem !important; }
.my-3  { margin-top: 1rem !important;    margin-bottom: 1rem !important; }
.my-4  { margin-top: 1.5rem !important;  margin-bottom: 1.5rem !important; }
.my-5  { margin-top: 3rem !important;    margin-bottom: 3rem !important; }
.my-auto { margin-top: auto !important;  margin-bottom: auto !important; }

/* Responsive Margins lg */
@media (min-width: 992px) {
  .mt-lg-0 { margin-top: 0 !important; }
  .mt-lg-1 { margin-top: 0.25rem !important; }
  .mt-lg-2 { margin-top: 0.5rem !important; }
  .mt-lg-3 { margin-top: 1rem !important; }
  .mt-lg-4 { margin-top: 1.5rem !important; }
  .mt-lg-5 { margin-top: 3rem !important; }

  .mb-lg-0 { margin-bottom: 0 !important; }
  .mb-lg-1 { margin-bottom: 0.25rem !important; }
  .mb-lg-2 { margin-bottom: 0.5rem !important; }
  .mb-lg-3 { margin-bottom: 1rem !important; }
  .mb-lg-4 { margin-bottom: 1.5rem !important; }
  .mb-lg-5 { margin-bottom: 3rem !important; }

  .ms-lg-0    { margin-left: 0 !important; }
  .ms-lg-auto { margin-left: auto !important; }
  .me-lg-0    { margin-right: 0 !important; }
  .me-lg-3    { margin-right: 1rem !important; }
  .me-lg-auto { margin-right: auto !important; }

  .mx-lg-0    { margin-right: 0 !important; margin-left: 0 !important; }
  .mx-lg-auto { margin-right: auto !important; margin-left: auto !important; }

  .my-lg-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
  .my-lg-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
  .my-lg-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
  .my-lg-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
}

/* Responsive Margins md */
@media (min-width: 768px) {
  .mt-md-0 { margin-top: 0 !important; }
  .mt-md-3 { margin-top: 1rem !important; }
  .mt-md-4 { margin-top: 1.5rem !important; }
  .mt-md-5 { margin-top: 3rem !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
  .mb-md-3 { margin-bottom: 1rem !important; }
  .mb-md-4 { margin-bottom: 1.5rem !important; }
  .mb-md-5 { margin-bottom: 3rem !important; }
  .ms-md-auto { margin-left: auto !important; }
  .me-md-auto { margin-right: auto !important; }
  .mx-md-auto { margin-right: auto !important; margin-left: auto !important; }
}

/* --- Padding (p-0 bis p-5, alle Richtungen) --------------------------- */

.p-0  { padding: 0 !important; }
.p-1  { padding: 0.25rem !important; }
.p-2  { padding: 0.5rem !important; }
.p-3  { padding: 1rem !important; }
.p-4  { padding: 1.5rem !important; }
.p-5  { padding: 3rem !important; }

.pt-0  { padding-top: 0 !important; }
.pt-1  { padding-top: 0.25rem !important; }
.pt-2  { padding-top: 0.5rem !important; }
.pt-3  { padding-top: 1rem !important; }
.pt-4  { padding-top: 1.5rem !important; }
.pt-5  { padding-top: 3rem !important; }

.pb-0  { padding-bottom: 0 !important; }
.pb-1  { padding-bottom: 0.25rem !important; }
.pb-2  { padding-bottom: 0.5rem !important; }
.pb-3  { padding-bottom: 1rem !important; }
.pb-4  { padding-bottom: 1.5rem !important; }
.pb-5  { padding-bottom: 3rem !important; }

.ps-0  { padding-left: 0 !important; }
.ps-1  { padding-left: 0.25rem !important; }
.ps-2  { padding-left: 0.5rem !important; }
.ps-3  { padding-left: 1rem !important; }
.ps-4  { padding-left: 1.5rem !important; }
.ps-5  { padding-left: 3rem !important; }

.pe-0  { padding-right: 0 !important; }
.pe-1  { padding-right: 0.25rem !important; }
.pe-2  { padding-right: 0.5rem !important; }
.pe-3  { padding-right: 1rem !important; }
.pe-4  { padding-right: 1.5rem !important; }
.pe-5  { padding-right: 3rem !important; }

.px-0  { padding-right: 0 !important;      padding-left: 0 !important; }
.px-1  { padding-right: 0.25rem !important; padding-left: 0.25rem !important; }
.px-2  { padding-right: 0.5rem !important;  padding-left: 0.5rem !important; }
.px-3  { padding-right: 1rem !important;    padding-left: 1rem !important; }
.px-4  { padding-right: 1.5rem !important;  padding-left: 1.5rem !important; }
.px-5  { padding-right: 3rem !important;    padding-left: 3rem !important; }

.py-0  { padding-top: 0 !important;        padding-bottom: 0 !important; }
.py-1  { padding-top: 0.25rem !important;  padding-bottom: 0.25rem !important; }
.py-2  { padding-top: 0.5rem !important;   padding-bottom: 0.5rem !important; }
.py-3  { padding-top: 1rem !important;     padding-bottom: 1rem !important; }
.py-4  { padding-top: 1.5rem !important;   padding-bottom: 1.5rem !important; }
.py-5  { padding-top: 3rem !important;     padding-bottom: 3rem !important; }

/* Responsive Padding lg */
@media (min-width: 992px) {
  .p-lg-0  { padding: 0 !important; }
  .p-lg-3  { padding: 1rem !important; }
  .p-lg-4  { padding: 1.5rem !important; }
  .p-lg-5  { padding: 3rem !important; }
  .pt-lg-0 { padding-top: 0 !important; }
  .pt-lg-3 { padding-top: 1rem !important; }
  .pt-lg-4 { padding-top: 1.5rem !important; }
  .pt-lg-5 { padding-top: 3rem !important; }
  .pb-lg-0 { padding-bottom: 0 !important; }
  .pb-lg-3 { padding-bottom: 1rem !important; }
  .pb-lg-4 { padding-bottom: 1.5rem !important; }
  .pb-lg-5 { padding-bottom: 3rem !important; }
  .px-lg-0 { padding-right: 0 !important;     padding-left: 0 !important; }
  .px-lg-3 { padding-right: 1rem !important;   padding-left: 1rem !important; }
  .px-lg-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
  .px-lg-5 { padding-right: 3rem !important;   padding-left: 3rem !important; }
  .py-lg-0 { padding-top: 0 !important;        padding-bottom: 0 !important; }
  .py-lg-3 { padding-top: 1rem !important;     padding-bottom: 1rem !important; }
  .py-lg-4 { padding-top: 1.5rem !important;   padding-bottom: 1.5rem !important; }
  .py-lg-5 { padding-top: 3rem !important;     padding-bottom: 3rem !important; }
}

/* Responsive Padding md */
@media (min-width: 768px) {
  .p-md-0  { padding: 0 !important; }
  .p-md-3  { padding: 1rem !important; }
  .p-md-4  { padding: 1.5rem !important; }
  .p-md-5  { padding: 3rem !important; }
  .pt-md-0 { padding-top: 0 !important; }
  .pt-md-3 { padding-top: 1rem !important; }
  .pt-md-4 { padding-top: 1.5rem !important; }
  .pt-md-5 { padding-top: 3rem !important; }
  .pb-md-0 { padding-bottom: 0 !important; }
  .pb-md-3 { padding-bottom: 1rem !important; }
  .pb-md-4 { padding-bottom: 1.5rem !important; }
  .pb-md-5 { padding-bottom: 3rem !important; }
  .px-md-0 { padding-right: 0 !important;     padding-left: 0 !important; }
  .px-md-3 { padding-right: 1rem !important;   padding-left: 1rem !important; }
  .px-md-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
  .py-md-0 { padding-top: 0 !important;        padding-bottom: 0 !important; }
  .py-md-3 { padding-top: 1rem !important;     padding-bottom: 1rem !important; }
  .py-md-4 { padding-top: 1.5rem !important;   padding-bottom: 1.5rem !important; }
  .py-md-5 { padding-top: 3rem !important;     padding-bottom: 3rem !important; }
}

/* --- Text-Utilities ---------------------------------------------------- */

.text-start   { text-align: left !important; }
.text-center  { text-align: center !important; }
.text-end     { text-align: right !important; }

.text-lowercase  { text-transform: lowercase !important; }
.text-uppercase  { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.fw-light    { font-weight: 300 !important; }
.fw-normal   { font-weight: 400 !important; }
.fw-medium   { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold     { font-weight: 700 !important; }

.fst-italic  { font-style: italic !important; }
.fst-normal  { font-style: normal !important; }

.text-decoration-none       { text-decoration: none !important; }
.text-decoration-underline  { text-decoration: underline !important; }

.text-truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.text-nowrap  { white-space: nowrap !important; }
.text-wrap    { white-space: normal !important; }
.text-break   { word-wrap: break-word !important; overflow-wrap: break-word !important; }

@media (min-width: 768px) {
  .text-md-start  { text-align: left !important; }
  .text-md-center { text-align: center !important; }
  .text-md-end    { text-align: right !important; }
}
@media (min-width: 992px) {
  .text-lg-start  { text-align: left !important; }
  .text-lg-center { text-align: center !important; }
  .text-lg-end    { text-align: right !important; }
}

/* --- Visibility -------------------------------------------------------- */

.visible   { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* Screenreader-only */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Object-Fit -------------------------------------------------------- */

.object-fit-contain { object-fit: contain !important; }
.object-fit-cover   { object-fit: cover !important; }
.object-fit-fill    { object-fit: fill !important; }
.object-fit-scale   { object-fit: scale-down !important; }
.object-fit-none    { object-fit: none !important; }

/* --- Z-Index ----------------------------------------------------------- */

.z-0    { z-index: 0 !important; }
.z-1    { z-index: 1 !important; }
.z-2    { z-index: 2 !important; }
.z-3    { z-index: 3 !important; }
.z-n1   { z-index: -1 !important; }

/* --- Ratio (Seitenverhältnis) ------------------------------------------ */

.ratio {
  position: relative;
  width: 100%;
}
.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}
.ratio > * {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.ratio-1x1   { --bs-aspect-ratio: 100%; }
.ratio-4x3   { --bs-aspect-ratio: 75%; }
.ratio-16x9  { --bs-aspect-ratio: 56.25%; }
.ratio-21x9  { --bs-aspect-ratio: 42.857143%; }

/* --- Cursor ------------------------------------------------------------ */

.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }
.user-select-none { user-select: none !important; }
.user-select-all  { user-select: all !important; }

/* --- Borders ----------------------------------------------------------- */

.border       { border: 1px solid #dee2e6 !important; }
.border-0     { border: 0 !important; }
.border-top   { border-top: 1px solid #dee2e6 !important; }
.border-bottom { border-bottom: 1px solid #dee2e6 !important; }
.border-start { border-left: 1px solid #dee2e6 !important; }
.border-end   { border-right: 1px solid #dee2e6 !important; }

/* --- Gap (für Flex/Grid) ----------------------------------------------- */

.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

.row-gap-0 { row-gap: 0 !important; }
.row-gap-3 { row-gap: 1rem !important; }
.row-gap-4 { row-gap: 1.5rem !important; }

.column-gap-0 { column-gap: 0 !important; }
.column-gap-3 { column-gap: 1rem !important; }
.column-gap-4 { column-gap: 1.5rem !important; }