/* raleway-300 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/raleway-v34-latin-300.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-regular - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/raleway-v34-latin-regular.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-700 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Raleway";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/raleway-v34-latin-700.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
body {
  font: 400 16px / 24px 'Raleway';
  color: #000;
  background: #FFFFFF;
  overflow-y: scroll;
  overflow-x: hidden;
}
@media print, screen and (min-width: 1024px) {
  body {
    font: 400 16px / 24px 'Raleway';
  }
}
@media print, screen and (min-width: 1440px) {
  body {
    font: 400 18px / 24px 'Raleway';
  }
}
p {
  font: 400 16px / 24px 'Raleway';
}
@media print, screen and (min-width: 1024px) {
  p {
    font: 400 16px / 24px 'Raleway';
  }
}
@media print, screen and (min-width: 1440px) {
  p {
    font: 400 18px / 24px 'Raleway';
  }
}
h1,
.h1 {
  font: 400 40px / 48px 'Raleway';
}
@media print, screen and (min-width: 1024px) {
  h1,
  .h1 {
    font: 400 48px / 48px 'Raleway';
  }
}
@media print, screen and (min-width: 1440px) {
  h1,
  .h1 {
    font: 400 56px / 56px 'Raleway';
  }
}
h2,
.h2 {
  font: 400 40px / 56px 'Raleway';
}
@media print, screen and (min-width: 1024px) {
  h2,
  .h2 {
    font: 400 40px / 56px 'Raleway';
  }
}
@media print, screen and (min-width: 1440px) {
  h2,
  .h2 {
    font: 400 40px / 56px 'Raleway';
  }
}
h3,
.h3 {
  font: 400 24px / 24px 'Raleway';
}
@media print, screen and (min-width: 1024px) {
  h3,
  .h3 {
    font: 400 24px / 24px 'Raleway';
  }
}
@media print, screen and (min-width: 1440px) {
  h3,
  .h3 {
    font: 400 32px / 32px 'Raleway';
  }
}
h3 + .callout,
.h3 + .callout,
h3 + .card,
.h3 + .card {
  margin-top: 16px;
}
h3 small,
.h3 small {
  color: #939393;
}
h4,
.h4 {
  font: 700 24px / 32px 'Raleway';
}
@media print, screen and (min-width: 1024px) {
  h4,
  .h4 {
    font: 700 24px / 32px 'Raleway';
  }
}
@media print, screen and (min-width: 1440px) {
  h4,
  .h4 {
    font: 700 24px / 32px 'Raleway';
  }
}
a {
  color: #000;
  transition: all 0.3s;
}
a:hover {
  color: #c32b41;
  opacity: 0.9;
}
.mb {
  margin-bottom: 16px !important;
}
.grid-container {
  max-width: 1400px;
}
.swiper {
  width: 600px;
  height: 300px;
}
main {
  min-height: 600px;
  margin-top: 96px;
}
main > :first-child:not(.brick_header) {
  padding-top: 12px;
}
.dropzone .dz-message .dz-button {
  color: #000;
}
.ocm-input {
  padding-left: 30px;
}
.ocm-input + .label {
  position: absolute;
  left: 12px;
  top: 18px;
}
.ocm-input.field-error-input {
  border: 1px solid #c32b41;
}
.ocm-input.field-error-input + .label::after {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #c32b41;
  font-size: 24px;
  position: absolute;
  top: -3px;
  left: 54px;
}
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
  position: relative;
}
.tag-container.no-tags::after {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #c32b41;
  font-size: 24px;
  position: absolute;
  top: 3px;
  right: 10px;
}
.tag-container.no-tags input {
  border: 1px solid #c32b41;
}
.tag-container input {
  margin-bottom: 0;
}
.tag {
  position: absolute;
  left: 0;
  top: 0;
  background-color: #f7f7f7;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  color: #000;
  padding: 0 36px 0 30px;
  line-height: 50px;
  height: 50px;
  width: 100%;
  text-wrap: nowrap;
}
.tag-remove {
  cursor: pointer;
  font-weight: bold;
  width: 32px;
  height: 32px;
  text-align: center;
  position: absolute;
  left: 0;
  top: 8px;
  line-height: 32px;
}
.remove-tag-btn {
  cursor: pointer;
  font-weight: bold;
  width: 32px;
  height: 32px;
  text-align: center;
  position: absolute;
  left: 0px;
  top: 8px;
  line-height: 32px;
}
.tag-input {
  border: none;
  outline: none;
  flex-grow: 1;
  min-width: 120px;
}
.card {
  border: none;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #f7f7f7;
}
.card .card-divider {
  background: none;
  color: #000;
}
.card > * {
  color: #000;
}
.menu.vertical .is-active a {
  background: none;
  color: #c32b41;
}
table {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #FFFFFF;
}
thead,
tbody,
tfoot {
  border: none;
}
table.unstriped tbody {
  background-color: #FFFFFF;
}
table.unstriped tbody tr {
  background-color: transparent;
  border-bottom: none;
  border-top: 1px solid #FFFFFF;
}
table.unstriped tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.callout {
  border-radius: 8px;
  margin-bottom: 32px;
  border-color: #E5E5E5;
}
.callout.primary {
  background: #f7f7f7;
  color: #000;
}
.callout.secondary {
  background: #f7f7f7;
  color: #000;
}
.callout.warning {
  background-color: #FFFFFF;
  color: #000;
}
.wishlist {
  margin-top: 16px;
}
.wishlist .wishlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
#product-exists-warning {
  margin-top: 16px;
}
.dropzone.dz-clickable {
  border-radius: 8px;
  border: 2px dashed #05667d;
}
.ql-container {
  height: auto;
}
.badge {
  background-color: #AC7A40;
  color: #FFFFFF;
  border-radius: 0;
}
/* Anpassungen für das Akkordeon */
.custom-accordion {
  list-style-type: none;
  margin-left: 0;
}
.custom-accordion .accordion-item {
  border: 1px solid #e6e6e6;
  border-radius: 3px;
}
.custom-accordion .accordion-item + .accordion-item {
  margin-top: 8px;
}
.custom-accordion .accordion-title {
  padding: 0.75rem 1rem;
  display: block;
  font-weight: bold;
  color: #0a0a0a;
  background-color: #f8f8f8;
  border-bottom: 1px solid transparent;
}
.custom-accordion .accordion-title:hover {
  background-color: #f1f1f1;
}
.custom-accordion .is-active .accordion-title {
  background-color: #e6e6e6;
  border-bottom-color: #cacaca;
}
.custom-accordion .accordion-content {
  padding: 1rem;
  background-color: #fefefe;
  border-top: 1px solid #e6e6e6;
}
.custom-accordion .category-count.has-articles small {
  color: #05667d;
}
.custom-accordion .category-count.has-pieces small {
  color: #4f964f;
}
.categories-container {
  margin-top: 1rem;
}
.add-form-btn {
  margin: 1rem 0;
}
.last-saved-info {
  color: #666;
  font-style: italic;
}
.quality-forms-sort-container {
  margin-bottom: 1.5rem;
}
.search-product-container {
  margin-bottom: 16px;
}
.search-product-container .tag {
  width: auto;
  position: relative;
}
/* Tag-basierte Produktsuche */
.search-product-container .search-product-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}
.search-product-container .search-product-tag-input {
  flex: 1;
  min-width: 180px;
  border: none;
  outline: none;
}
.search-product-results ul {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f9f9f9;
}
.search-product-results li {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}
.search-product-results li:last-child {
  border-bottom: none;
}
.search-product-results li.loading,
.search-product-results li.no-results {
  color: #666;
  font-style: italic;
}
.search-product-results a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.search-product-results .product-result-image {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-product-results .product-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-product-results .product-result-image .no-image {
  font-size: 11px;
  color: #999;
}
.search-product-results .product-result-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
}
.search-product-results .product-result-info small {
  color: #666;
  display: block;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.4;
}
.quality-form.synced {
  position: relative;
}
.quality-form.synced:after {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #97ce59;
  right: 10px;
  top: 25px;
}
.quality-form .outbox {
  margin-bottom: 0.5rem;
}
.quality-box {
  position: relative;
}
.quality-box:before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: #E5E5E5;
}
.quality-row {
  align-items: center;
}
.quality-row + .quality-row {
  margin-top: 0.5rem;
}
.quality-row .quality-quantity {
  position: relative;
}
.quality-row .quality-quantity .quality-label {
  position: absolute;
  top: 6px;
  left: 12px;
}
.quality-row .quality-quantity .quality-input {
  padding-left: 30px;
}
.quality-row .button-group {
  margin: 0;
  gap: 0;
  flex-wrap: nowrap;
}
.quality-row .button-group .button {
  margin: 0;
  border-radius: 0;
  border: none;
  padding: 29px;
  flex: 1;
}
.quality-row .button-group .button:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.quality-row .button-group .button:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.quality-form {
  padding: 0 0 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed #05667d;
}
.quality-label {
  font-weight: bold;
  padding-top: 0.5rem;
}
.button-group .button.active {
  background-color: #1779ba;
  color: white;
}
.save-quality-btn {
  margin-top: 1rem;
}
.quality-input {
  margin-bottom: 0;
}
.forms-container {
  margin-bottom: 1rem;
}
.add-form-btn {
  margin: 1rem 0;
}
/* auswertung styles */
.product-list-container {
  padding: 1rem;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
}
.product-list-container .product-list {
  margin-bottom: 1rem;
}
.product-list-container .product-header {
  margin-bottom: 1rem;
}
.product-list-container .product-row {
  padding: 1rem 0;
  border-bottom: 1px solid #E5E5E5;
}
.product-list-container .product-row:nth-child(even) {
  background-color: #f7f7f7;
}
.product-list-container .product-row:nth-child(odd) {
  background-color: #FFFFFF;
}
.product-list-container .product-row .properties {
  margin-top: 8px;
  display: flex;
  flex-flow: row wrap;
  row-gap: 2px;
  column-gap: 8px;
}
.product-list-container .product-row .properties .property {
  flex: 0 1 auto;
  width: auto;
  background-color: #e5e5e5;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 0.9rem;
}
/* Bildergalerie Styles */
.quality-images-grid img {
  height: 287px;
  max-width: none;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}
.images-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 5px;
  margin-bottom: 5px;
}
.gallery-image-item {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.gallery-image-item:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.gallery-image {
  width: 100%;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
}
.delete-single-image-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  border: none;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.delete-single-image-btn:hover {
  background: #ff0000;
}
.image-quality-info {
  font-size: 10px;
  color: #666;
  text-align: center;
  margin-bottom: 5px;
  font-weight: bold;
}
.image-gallery-container {
  width: 140px;
  margin-bottom: 10px;
}
/* Qualitäts-Selector Styles */
.quality-selector {
  margin-bottom: 5px;
  text-align: center;
  padding: 5px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}
.quality-switch-btn {
  margin: 0 2px;
  padding: 2px 6px;
  font-size: 10px;
  border: 1px solid #ccc;
  background: white;
  color: #333;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quality-switch-btn:hover {
  background: #e9ecef;
}
.quality-switch-btn.active {
  background: #1779ba !important;
  color: white !important;
  border-color: #1779ba;
}
.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.property-tags .property-tag {
  padding: 8px 16px;
  background-color: #f0f0f0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.property-tags .property-tag:hover {
  background-color: #e0e0e0;
}
.property-tags .property-tag.selected {
  background-color: #2979ff;
  color: white;
}
.mandatory-properties {
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
}
.mandatory-properties .item {
  flex: 0 1 auto;
  width: auto;
}
.mandatory-properties .item .property {
  position: relative;
}
.mandatory-properties .item .property .tag-container {
  margin-bottom: 0;
}
.mandatory-properties .item .property .property-input {
  margin-bottom: 0;
  padding-right: 25px;
}
.mandatory-properties .item .property .property-input.field-error-input {
  border: 1px solid #c32b41;
}
.mandatory-properties .item .property .property-input.field-error-input + .label::after {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #c32b41;
  font-size: 24px;
  position: absolute;
  top: 41px;
  left: 14px;
}
.mandatory-properties .item .property .property-input.field-error-select {
  border: 1px solid #c32b41;
}
.mandatory-properties .item .property .property-input.field-error-select + .label::after {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #c32b41;
  font-size: 24px;
  position: absolute;
  top: 41px;
  right: 14px;
}
.mandatory-properties .item .property .tag {
  padding-left: 30px;
}
.mandatory-properties .item .property .tag-remove {
  right: auto;
  left: 0px;
  top: 8px;
}
.mandatory-properties .item .property .property-input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}
.mandatory-properties .item .property .property-input[type="checkbox"] + .property-label {
  position: relative;
  height: 75px;
}
.mandatory-properties .item .property .property-input[type="checkbox"] + .property-label:before {
  content: "";
  height: 30px;
  width: 30px;
  background-color: transparent;
  border: 2px solid #E5E5E5;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 47px;
  transform: translateY(-50%);
}
.mandatory-properties .item .property .property-input[type="checkbox"] + .property-label:after {
  content: "";
  height: 8px;
  width: 4px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  position: absolute;
  left: 14px;
  top: 47px;
  transform: translateY(-60%) rotate(45deg);
  opacity: 0;
}
.mandatory-properties .item .property .property-input[type="checkbox"]:checked + .property-label:before {
  background-color: #05667d;
  border-color: #05667d;
}
.mandatory-properties .item .property .property-input[type="checkbox"]:checked + .property-label:after {
  opacity: 1;
}
.added-properties {
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
}
.added-properties .item {
  flex: 0 1 auto;
  width: auto;
}
.added-properties .item .property {
  position: relative;
}
.added-properties .item .property .tag-container {
  margin-bottom: 0;
}
.added-properties .item .property .property-input {
  margin-bottom: 0;
  padding-right: 25px;
}
.added-properties .item .property .tag {
  padding-left: 30px;
}
.added-properties .item .property .tag-remove {
  right: auto;
  left: 0px;
  top: 8px;
}
.added-properties .item .property .remove-property-btn {
  border-radius: 4px;
  position: absolute;
  right: 0;
  top: 25px;
  height: 50px;
  transform: none;
  font-size: 16px;
}
.added-properties .item .property .property-input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}
.added-properties .item .property .property-input[type="checkbox"] + .property-label {
  position: relative;
  height: 75px;
}
.added-properties .item .property .property-input[type="checkbox"] + .property-label:before {
  content: "";
  height: 30px;
  width: 30px;
  background-color: transparent;
  border: 2px solid #E5E5E5;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 47px;
  transform: translateY(-50%);
}
.added-properties .item .property .property-input[type="checkbox"] + .property-label:after {
  content: "";
  height: 8px;
  width: 4px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  position: absolute;
  left: 14px;
  top: 47px;
  transform: translateY(-60%) rotate(45deg);
  opacity: 0;
}
.added-properties .item .property .property-input[type="checkbox"]:checked + .property-label:before {
  background-color: #05667d;
  border-color: #05667d;
}
.added-properties .item .property .property-input[type="checkbox"]:checked + .property-label:after {
  opacity: 1;
}
.properties {
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
}
.properties .property {
  flex: 0 1 auto;
  width: auto;
}
.property-input {
  width: 100%;
}
.add-building-section {
  margin-bottom: 24px;
}
.accordion-title::before {
  font-size: 32px;
  font-weight: normal;
  margin-top: 0;
  transform: translateY(-50%);
}
.accordion-title {
  display: flex;
  flex-flow: row nowrap;
  gap: 10px;
}
.accordion-title h3 {
  margin-bottom: 0;
  width: auto;
}
.accordion-title .image-container {
  width: 100px;
}
.accordion-title .image-container .image-item img,
.accordion-title .image-container .image-item picture {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
}
.refine-accordion h3 span {
  display: block;
  font-size: 1.2rem;
  font-weight: normal;
  margin-top: 5px;
}
.room-item h3 i {
  font-size: 20px;
  position: relative;
  top: -3px;
}
.room-item p {
  margin-bottom: 0;
}
.sort-select-container {
  display: flex;
  flex-flow: row nowrap;
  gap: 0px;
  align-items: center;
  justify-content: flex-end;
}
.building-header {
  padding-bottom: 8px;
}
.building-header h4 {
  margin-bottom: 0;
}
/* ===== STICKY ACCORDION STYLES ===== */
.accordion-title.sticky-active {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #1779ba;
}
/* Spacing für den fixierten Header */
.accordion-item.has-sticky-header {
  padding-top: 60px;
}
.fancybox__content {
  max-width: 1024px;
}
/* Stammdaten-Baum: Filter oben */
.stammdaten-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 8px;
}
.stammdaten-filter-bar-label {
  font-weight: 600;
  margin: 0;
}
/* Stammdaten-Baum: Prüf-Toggle + Bearbeiten */
.stammdaten-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.stammdaten-product-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.stammdaten-in-master-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}
.stammdaten-in-master-text {
  font-weight: 600;
}
.stammdaten-in-master-feedback {
  font-size: 0.875rem;
  font-weight: normal;
  color: #2e8540;
  min-width: 0;
}
.stammdaten-in-master-feedback.is-error {
  color: #cc4b37;
}
/* Stammdaten-Baum: Produktzeile je nach Prüfstatus (Klassen per Twig + Ajax) */
.cell.stammdaten-in-master-checked {
  border-left: 3px solid #2e8540;
  padding-left: 0.5rem;
}
.cell.stammdaten-in-master-unchecked {
  border-left: 3px solid #cacaca;
  padding-left: 0.5rem;
}
.product-level-* {
  padding-left: 20px;
}
