@charset "UTF-8";
/**
 * main.scss — Zentraler Einstiegspunkt (7-1-Pattern)
 *
 * Neue Partials: hier per @use einbinden, in der bestehenden Reihenfolge
 * (abstracts → base → layout → components → pages).
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@font-face {
  font-family: "SamsungOne";
  src: url("../fonts/SamsungOne-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SamsungOne";
  src: url("../fonts/SamsungOne-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Samsung Sharp Sans";
  src: url("../fonts/SamsungSharpSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
body {
  font-family: "SamsungOne", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #1c2635;
  background-color: #f4f5f7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Samsung Sharp Sans", "SamsungOne", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-layout__content {
  margin-left: 260px;
  flex: 1;
  min-width: 0;
  padding: 32px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 260px;
  height: 100vh;
  padding: 24px 16px;
  background-color: #101a30;
  color: #c7ccd6;
}

.sidebar__branding {
  padding: 0 8px;
  margin-bottom: 32px;
}

.sidebar__logo {
  display: block;
}

.sidebar__logo-image {
  width: 100%;
  max-width: 178px;
  height: auto;
}

.sidebar__nav {
  flex: 1;
}

.sidebar__nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
}

.sidebar__nav-list li a {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  -moz-column-gap: 8px;
       column-gap: 8px;
  padding: 10px 8px;
  border-radius: 6px;
  color: #c7ccd6;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar__nav-icon {
  width: auto;
  height: 20px;
  max-width: 100%;
  justify-self: center;
}

.sidebar__nav-list li a:hover {
  background-color: #1f2c48;
  color: #fff;
}

.sidebar__nav-list .current-menu-item > a {
  background-color: #1f2c48;
  color: #fff;
}

.sidebar__user {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar__user-avatar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #1f2c48;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.sidebar__user-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.sidebar__user-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.sidebar__user-role {
  font-size: 0.8rem;
  color: #8892a6;
}

.sidebar__user-menu {
  position: relative;
  flex-shrink: 0;
}

.sidebar__user-toggle {
  color: #8892a6;
  line-height: 0;
  transition: color 0.15s ease;
}

.sidebar__user-toggle:hover,
.sidebar__user-menu.is-open .sidebar__user-toggle {
  color: #fff;
}

.sidebar__user-toggle-icon {
  width: 20px;
  height: 20px;
}

.sidebar__user-dropdown {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  min-width: 160px;
  padding: 4px;
  background-color: #1f2c48;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.sidebar__user-dropdown[hidden] {
  display: none;
}

.sidebar__user-dropdown-item {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #c7ccd6;
  font-size: 0.85rem;
}

.sidebar__user-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar__legal {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 12px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar__legal-link {
  color: #8892a6;
  font-size: 0.7rem;
}

.sidebar__legal-link:hover {
  color: #fff;
}

.page-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -32px -32px 32px;
  padding: 24px 32px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 26, 48, 0.06);
}

.page-header__headline {
  font-size: 1.5rem;
  color: #1c2635;
}

.page-header__title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.page-header__edit-title {
  display: inline-flex;
  padding: 4px;
  opacity: 0.5;
  border-radius: 6px;
}

.page-header__edit-title:hover,
.page-header__edit-title:focus-visible {
  opacity: 1;
  background-color: #f4f5f7;
}

.page-header__edit-title-icon {
  width: 16px;
  height: 16px;
}

.page-header__subline {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.page-header__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 24px;
  align-items: start;
}

.project-detail__main,
.project-detail__side {
  min-width: 0;
}

@media (max-width: 960px) {
  .project-detail {
    grid-template-columns: 1fr;
  }
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.button[hidden] {
  display: none;
}

.button--primary {
  background-color: #1c2635;
  color: #fff;
}

.button--primary:hover {
  background-color: rgb(13.8962962963, 18.8592592593, 26.3037037037);
}

.button--secondary {
  background-color: #f4f5f7;
  color: #1c2635;
}

.button--secondary:hover {
  background-color: #e5e7eb;
}

.button--danger {
  background-color: #dc2626;
  color: #fff;
}

.button--danger:hover {
  background-color: rgb(187.0333333333, 30.1666666667, 30.1666666667);
}

.button--send {
  background-color: #c3cede;
  color: #fff;
}

.button--send .button__icon {
  width: auto;
  height: 16px;
}

.button--open {
  background-color: #365881;
  color: #fff;
}

.button--open:hover {
  background-color: rgb(44.9704918033, 73.2852459016, 107.4295081967);
}

.button--open .button__icon {
  width: auto;
  height: 18px;
}

.button--block {
  width: 100%;
  justify-content: center;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button--send:disabled {
  opacity: 1;
}

.button__icon {
  width: 16px;
  height: 16px;
}

.button--loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.button--loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mtf-button-spin 0.6s linear infinite;
}

.button--secondary.button--loading::after {
  border-color: rgba(28, 38, 53, 0.25);
  border-top-color: #1c2635;
}

@keyframes mtf-button-spin {
  to {
    transform: rotate(360deg);
  }
}
.stats-cards {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.stats-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex: 1;
  padding: 16px;
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.stats-card__icon {
  width: 54px;
  height: 48px;
  flex-shrink: 0;
}

.stats-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.stats-card__value {
  font-family: "Samsung Sharp Sans", "SamsungOne", "Segoe UI", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c2635;
}

.stats-card__label {
  font-size: 0.8rem;
  color: #6b7280;
}

.projects-filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.projects-filter__button {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #ffffff;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.85rem;
}

.projects-filter__button.is-active {
  background-color: #1c2635;
  border-color: #1c2635;
  color: #fff;
}

.projects-filter__search-input {
  margin-left: auto;
  width: 220px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font: inherit;
  font-size: 0.85rem;
  color: #1c2635;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

.projects-table thead {
  background-color: #101a30;
}

.projects-table th {
  padding: 12px 16px;
  color: #c7ccd6;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
}

.projects-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
  vertical-align: middle;
}

.projects-table tbody tr:last-child td {
  border-bottom: none;
}

.projects-table__title {
  display: block;
  font-weight: 600;
  color: #1c2635;
}

.projects-table__subline {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge[hidden] {
  display: none;
}

.status-badge--planning {
  background-color: rgba(47, 111, 237, 0.12);
  color: #2f6fed;
}

.status-badge--active {
  background-color: rgba(31, 157, 85, 0.12);
  color: #1f9d55;
}

.status-badge--due {
  background-color: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.status-badge--overdue {
  background-color: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.status-badge--neutral {
  background-color: rgba(47, 111, 237, 0.12);
  color: #2f6fed;
}

.projects-table__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.projects-table__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
}

.projects-table__action:hover {
  background-color: #f4f5f7;
}

.projects-table__action-icon {
  width: 18px;
  height: 18px;
}

.doc-pill {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.doc-pill--disabled {
  background-color: #f4f5f7;
  color: #6b7280;
}

.doc-pill--done {
  background-color: rgba(31, 157, 85, 0.12);
  color: #1f9d55;
}

.next-maintenance--soon {
  color: #d97706;
  font-weight: 600;
}

.next-maintenance--overdue {
  color: #dc2626;
  font-weight: 600;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(16, 26, 48, 0.5);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin: 10vh auto 0;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 10px;
}

.modal__dialog--small {
  max-width: 440px;
}

#schema-offer-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

#schema-offer-modal .modal__dialog {
  margin: 0;
}

#maintenance-protocol-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

#maintenance-protocol-modal .modal__dialog {
  margin: 0;
}

.modal__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 16px;
}

.modal__text {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}

.modal__title {
  font-size: 1.2rem;
}

.modal__close {
  font-size: 1.5rem;
  line-height: 1;
  color: #6b7280;
}

.modal__form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
}

.modal__footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.modal__footer .button {
  flex: 1 1 0;
  justify-content: center;
}

.form-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.form-field[hidden] {
  display: none;
}

.form-field + .form-field {
  margin-top: 8px;
}

.form-field label {
  flex-shrink: 0;
  width: 220px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #6b7280;
}

.form-field--inline {
  justify-content: space-between;
}

.form-field--inline label {
  width: auto;
}

.form-field--inline .form-field__control {
  flex: 0 0 auto;
}

.form-field--inline input {
  width: auto;
}

.form-field__control {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font: inherit;
  color: #1c2635;
}

.form-field input[type=date]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.warranty-serial-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.warranty-serial-info[hidden] {
  display: none;
}

.warranty-indoor-unit {
  margin-top: 8px;
}

#warranty-cascade-controller-field {
  margin-top: 8px;
}

.warranty-row-hint {
  margin-top: 2px;
  margin-left: 220px;
}

.warranty-cascade-pair {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.warranty-cascade-pair .warranty-remove-row {
  display: block;
  margin-top: 4px;
  margin-left: auto;
}

.warranty-remove-row {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: none;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
}

.warranty-remove-row:hover {
  color: #1c2635;
  border-color: #6b7280;
}

#project-sharing-modal .modal__text {
  margin-bottom: 16px;
}

.sharing-row__control {
  align-items: stretch;
}

.sharing-row__control input {
  flex: 1 1 auto;
  min-width: 0;
}

.sharing-row__control .sharing-row__level {
  flex: 0 0 auto;
  width: auto;
  min-width: 170px;
}

.sharing-row__control .warranty-remove-row {
  height: auto;
}

.js-warranty-add-indoor {
  margin-top: 8px;
  margin-bottom: 8px;
}

.card {
  position: relative;
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.card + .card {
  margin-top: 24px;
}

.card__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #1c2635;
}

.card__edit-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 4px;
  background-color: rgba(16, 26, 48, 0.12);
  border-radius: 6px;
}

.card__edit-button--absolute {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.card__edit-button:hover,
.card__edit-button:focus-visible {
  background-color: rgba(16, 26, 48, 0.22);
}

.card__edit-button-icon {
  width: 16px;
  height: 16px;
}

.card__link {
  font-size: 0.8rem;
  color: #2f6fed;
  text-decoration: underline;
  color: #1c2635;
}

.card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

.card__actions-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

.card__actions-row .button--block {
  flex: 1;
}

.card__actions-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin-top: 16px;
}

.card__photos {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.card__photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.card__photo {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__photo-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.card__photo-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  line-height: 1;
  border-radius: 50%;
  border: none;
  background-color: rgba(16, 26, 48, 0.65);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}

.card__photo-delete:hover {
  background-color: #dc2626;
}

.card__photo-delete--loading {
  color: transparent;
  pointer-events: none;
}

.card__photo-delete--loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mtf-button-spin 0.6s linear infinite;
}

.card__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 56px 0;
  text-align: center;
}

.card__empty-text {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.card__hint {
  margin: 12px 0;
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.5;
}

.card__hint--success {
  color: #1f9d55;
}

.card__hint--warning {
  color: #d97706;
}

.card__hint--error {
  color: #dc2626;
}

.card__cta {
  padding: 24px 0;
  text-align: center;
}

.card__cta .card__hint {
  margin: 0 0 16px;
}

.card__note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.card__note a {
  color: #1c2635;
  text-decoration: underline;
}

.data-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
}

.data-list__row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
}

.data-list__label {
  flex-shrink: 0;
  width: 140px;
  color: #6b7280;
  font-size: 0.85rem;
}

.data-list__value {
  margin: 0;
  color: #1c2635;
  font-size: 0.9rem;
}

.data-list__value--success {
  color: #1f9d55;
  font-weight: 600;
}

.data-list__value--danger {
  color: #dc2626;
  font-weight: 600;
}

.data-list__value.next-maintenance--soon {
  color: #d97706;
  font-weight: 600;
}

.data-list__value.next-maintenance--overdue {
  color: #dc2626;
  font-weight: 600;
}

.requirement-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

.requirement-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.requirement-item--fulfilled {
  background-color: rgba(31, 157, 85, 0.08);
  border-color: rgba(31, 157, 85, 0.3);
}

.requirement-item--missing {
  background-color: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
}

.requirement-item__icon {
  flex-shrink: 0;
  width: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.requirement-item--fulfilled .requirement-item__icon {
  color: #1f9d55;
}

.requirement-item--missing .requirement-item__icon {
  color: #dc2626;
}

.requirement-item__text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
}

.requirement-item__title {
  font-weight: 600;
  font-size: 0.95rem;
}

.requirement-item--fulfilled .requirement-item__title {
  color: #1f9d55;
}

.requirement-item--missing .requirement-item__title {
  color: #dc2626;
}

.requirement-item__description {
  color: #6b7280;
  font-size: 0.85rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  margin: 0;
}

.timeline__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
}

.timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: -16px;
  width: 2px;
  transform: translateX(-50%);
  background-color: #8892a6;
  opacity: 0.2;
}

.timeline__icon {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 1;
}

.timeline__icon--done {
  background-color: rgba(31, 157, 85, 0.15);
  color: #1f9d55;
}

.timeline__icon--next {
  background-color: #e2e2e2;
  color: #6b7280;
}

.timeline__icon-img {
  width: 12px;
  height: auto;
}

.timeline__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-height: 28px;
}

.timeline__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1c2635;
}

.timeline__date {
  font-size: 0.75rem;
  color: #6b7280;
}

.configurator {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
}

#passende-geraete-card,
#schema-card {
  scroll-margin-top: 104px;
}

.config-section-title {
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1c2635;
}

.config-anlage__select {
  width: 340px;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #ffffff;
  font: inherit;
  color: #1c2635;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.config-grid__col {
  min-width: 0;
}

.config-subhead {
  margin: 16px 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c2635;
}

.config-grid__col > .config-subhead:first-child {
  margin-top: 0;
}

.config-or {
  margin: 8px 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.config-submit {
  margin-top: 12px;
}

.config-submit:not(:disabled),
.config-create-schema:not(:disabled),
#schema-save-button:not(:disabled),
#schema-offer-button:not(:disabled),
#economics-button:not(:disabled),
.js-request-offer:not(:disabled) {
  background-color: #101a30;
  color: #fff;
}

.config-submit:not(:disabled):hover,
.config-create-schema:not(:disabled):hover,
#schema-save-button:not(:disabled):hover,
#schema-offer-button:not(:disabled):hover,
#economics-button:not(:disabled):hover,
.js-request-offer:not(:disabled):hover {
  background-color: rgb(8.35, 13.56875, 25.05);
}

.config-create-schema {
  margin-top: 24px;
}

.config-submit-message {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.config-submit-message--error {
  color: #dc2626;
}

.config-submit-message--success {
  color: #1f9d55;
}

#schema-save-note a {
  color: #1f9d55;
  text-decoration: underline;
}

.config-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.config-field__label {
  flex: 0 0 auto;
  width: 160px;
  color: #6b7280;
  font-size: 0.85rem;
}

.config-field__control {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.config-field__control input,
.config-field__control select {
  flex: 1;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #ffffff;
  font: inherit;
  color: #1c2635;
}

.config-field__unit {
  flex: 0 0 auto;
  width: 40px;
  color: #6b7280;
  font-size: 0.85rem;
}

.config-devices-hint {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 0.85rem;
}

.config-devices-hint[hidden] {
  display: none;
}

.config-devices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.config-devices[hidden] {
  display: none;
}

.config-devices__col {
  min-width: 0;
}

.config-devices__col + .config-devices__col {
  padding-left: 32px;
  border-left: 1px solid #e5e7eb;
}

.config-devices__title {
  margin-bottom: 12px;
  padding-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1c2635;
  border-bottom: 1px solid #e5e7eb;
}

.device-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
}

.device-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 12px 8px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.device-card:hover {
  border-color: #cbd2dc;
}

.device-card[hidden] {
  display: none;
}

.device-card__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.device-card:has(.device-card__radio:checked) {
  border-color: #2f6fed;
  background-color: rgba(47, 111, 237, 0.06);
  box-shadow: 0 0 0 1px #2f6fed;
}

.device-card__radio:focus-visible ~ .device-card__thumb {
  outline: 2px solid #2f6fed;
  outline-offset: 2px;
}

.device-card::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background-color: #2f6fed;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.device-card:has(.device-card__radio:checked)::after {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}

.device-card__thumb {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  height: 72px;
}

.device-card__image {
  max-width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.device-card__name {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: #1c2635;
}

.config-placeholder {
  padding: 56px 0;
  text-align: center;
}

.config-placeholder__text {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
}

.schema-result {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.schema-result[hidden] {
  display: none;
}

.schema-result__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: max-content;
  transform-origin: top left;
}

.schema-result__image {
  height: 260px;
  width: auto;
  max-width: none;
}

.components-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.components-table[hidden] {
  display: none;
}

.components-table th,
.components-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.components-table th {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.8rem;
}

.components-table td {
  color: #1c2635;
}

.components-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 960px) {
  .config-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .config-devices {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .config-devices__col + .config-devices__col {
    padding-left: 0;
    border-left: none;
  }
}
.economics-rows {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.economics-rows__header,
.economics-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.economics-rows__header span {
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 600;
}

.economics-row__label {
  color: #1c2635;
  font-size: 0.9rem;
}

.economics-row__control {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.economics-row__control input {
  flex: 1;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #ffffff;
  font: inherit;
  color: #1c2635;
}

.economics-row__unit {
  flex: 0 0 auto;
  width: 52px;
  color: #6b7280;
  font-size: 0.8rem;
}

.economics-calculate {
  margin-bottom: 16px;
}

.economics-totals-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1c2635;
}

.economics-totals {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: 12px;
}

.economics-total-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background-color: #f4f5f7;
  border-radius: 6px;
  font-size: 0.9rem;
}

.economics-total-row span {
  color: #6b7280;
}

.economics-total-row strong {
  color: #1c2635;
}

.anlagenbuch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.anlagenbuch__main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  min-width: 0;
}

.schema-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-align: center;
}

.schema-upload[hidden] {
  display: none;
}

.schema-upload__title {
  font-weight: 600;
  color: #1c2635;
}

.schema-upload__hint {
  color: #6b7280;
  font-size: 0.85rem;
}

.content-assembler__header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.content-assembler__count {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.content-assembler__tools {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.content-assembler__search,
.content-assembler__filter {
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #ffffff;
  font: inherit;
  color: #1c2635;
}

.content-assembler__search {
  min-width: 240px;
}

.content-assembler__empty {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.content-assembler__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
}

.doc-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.doc-card:hover {
  border-color: #cbd2dc;
}

.doc-card[hidden] {
  display: none;
}

.doc-card__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.doc-card__name {
  font-weight: 600;
  color: #1c2635;
}

.doc-card__subtitle {
  margin: 0 0 2px;
  color: #1c2635;
  font-size: 0.9rem;
}

.doc-card__description {
  margin: 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.doc-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.doc-badge--innen {
  background-color: rgba(47, 111, 237, 0.12);
  color: #2f6fed;
}

.doc-badge--aussen {
  background-color: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.doc-badge--zubehoer {
  background-color: rgba(31, 157, 85, 0.12);
  color: #1f9d55;
}

.toggle {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.toggle__track {
  position: absolute;
  inset: 0;
  background-color: #cbd2dc;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.toggle__track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.toggle__input:checked + .toggle__track {
  background-color: #2f6fed;
}

.toggle__input:checked + .toggle__track::before {
  transform: translateX(20px);
}

.toggle__input:focus-visible + .toggle__track {
  outline: 2px solid #2f6fed;
  outline-offset: 2px;
}

.anlagenbuch__preview {
  position: sticky;
  top: 32px;
}

.preview-panel__header {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.preview-panel__pages {
  color: #6b7280;
  font-size: 0.85rem;
}

.preview-panel__image {
  width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 16px;
}

.preview-panel__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 24px;
}

.preview-panel__list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #1c2635;
}

.preview-panel__num {
  color: #6b7280;
}

.preview-panel__create .button__icon {
  width: auto;
  height: 18px;
}

.preview-panel__note {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.preview-panel__note a {
  color: #1c2635;
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .anlagenbuch {
    grid-template-columns: 1fr;
  }
  .anlagenbuch__preview {
    position: static;
  }
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background-color: #ffffff;
}

.login__panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 48px 56px;
}

.login__logo {
  width: auto;
  height: 48px;
}

.login__content {
  margin: auto 0;
  width: 100%;
  max-width: 440px;
}

.login__headline {
  margin: 0 0 8px;
  font-size: 1.8rem;
  color: #1c2635;
}

.login__intro {
  margin: 0 0 24px;
  color: #6b7280;
  line-height: 1.6;
}

.login__error {
  margin-bottom: 16px;
  padding: 8px 12px;
  background-color: rgba(220, 38, 38, 0.1);
  border-radius: 6px;
  color: #dc2626;
  font-size: 0.85rem;
  line-height: 1.5;
}

.login__field {
  margin-bottom: 16px;
}

.login__field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: #6b7280;
}

.login__field input {
  width: 100%;
  padding: 10px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font: inherit;
  color: #1c2635;
}

.login__remember {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: #6b7280;
  cursor: pointer;
}

.login__submit {
  width: 100%;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background-color: #365881;
  color: #fff;
  font-size: 1rem;
}

.login__submit:hover {
  background-color: rgb(44.9704918033, 73.2852459016, 107.4295081967);
}

.login__footer {
  color: #6b7280;
  font-size: 0.8rem;
}

.login__media {
  padding: 24px;
}

.login__image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login__media {
    display: none;
  }
}
.user-settings {
  max-width: 680px;
}

.user-settings .config-field__label {
  width: 160px;
}

.settings-message {
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.settings-message--success {
  background-color: rgba(31, 157, 85, 0.1);
  color: #1f9d55;
}

.settings-message--error {
  background-color: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.settings-field-readonly {
  color: #6b7280;
  font-size: 0.9rem;
}

.settings-form__footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.photo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.photo-lightbox.is-open {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.photo-lightbox__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(16, 26, 48, 0.9);
}

.photo-lightbox__image {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.photo-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.photo-lightbox__close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.photo-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.photo-lightbox__nav[hidden] {
  display: none;
}

.photo-lightbox__nav:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.photo-lightbox__nav--prev {
  left: 16px;
}

.photo-lightbox__nav--next {
  right: 16px;
}