/* Don't delete this */

/* ── Monteur role: hide all write-action UI ─────────────────────────────── */
body.role-monteur .save-button,
body.role-monteur [class*="btn-edit-"],
body.role-monteur [class*="btn-delete-"],
body.role-monteur [class*="btn-remove-"],
body.role-monteur [class*="btn-add-"],
body.role-monteur [class*="btn-toggle-"],
body.role-monteur .btn-edit-header,
body.role-monteur #btn-add-project,
body.role-monteur .btn-add-project,
body.role-monteur #btn-produkt-hinzufuegen,
body.role-monteur #btn-projekt-produkt-aus-template,
body.role-monteur #btn-projekt-produkt-aus-angebot,
body.role-monteur .btn-delete-offer,
body.role-monteur .btn-delete-invoice,
body.role-monteur .btn-foto-edit,
body.role-monteur .btn-foto-delete,
body.role-monteur .btn-dokument-edit,
body.role-monteur .btn-dokument-delete {
    display: none !important;
}
/* ── end Monteur role ───────────────────────────────────────────────────── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/* Remove list styling from module download lists */
.moduleDownloadHolder {
  list-style: none;
  padding: 0;
  margin: 0;
}

body {
  background-color: #fff;
  font-size: var(--genFontSize);
  font-family: 'Martian Mono', monospace;
}

html,
body {
  margin: 0;
  padding: 0;
  /* height: 100%; */
}

h1 {
  font-family: 'Inter', sans-serif;
  font-size: 68px;
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 1rem;
}



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

a:hover {
  text-decoration: underline;
}


.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


#container {
  background-color: lightgrey;
  min-height: calc(100vh - var(--headerHeight) - var(--footerHeight));
}


.genPadding {
  padding: var(--genPadding);
}

.homeContainer {
  background-image: url('../img/c_bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  background-color: #F2F2F2; /* hellgrau wie die Kopfzeile (vorher var(--main-green)) */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid black;
  border-radius: 10px;
  padding: 2rem;
  width: 400px;
  gap: 2rem;
}

.login-container .loginLogo {
  height: auto !important;
  width: 100%;
}

.login-container .loginLogo img {
  display: block;
  width: 100%;
  height: auto;
}

.login-container h2 {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
}

.login-container a {
  font-family: 'Martian Mono', monospace;
  font-weight: 100;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.login-container form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.login-container input {
  border: 1px solid black;
  border-radius: 999px;
  padding: .5rem .8rem;
  font-family: 'Martian Mono', monospace;
  font-size: 1rem;
  font-weight: 100;
  background: transparent;
  width: 100%;
}

.login-btn {
  background-color: transparent;
  border: 1px solid black;
  border-radius: 999px;
  height: 35px;
  padding: .3rem;
  font-family: 'Martian Mono', monospace;
  font-size: 1rem;
  font-weight: 100;
  color: black;
  -webkit-appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-btn:hover {
  background-color: black;
  color: var(--main-green);
}

.smallContainerWidth {
  border: 1px solid black;
  /* background: white; */
  width: 100%;
  max-width: var(--detWidth);
  margin: auto;
  min-height: var(--minBodyHeight);
}

#main-content {
  margin: 2.5rem;
  min-height: calc(100vh - var(--headerHeight) - var(--footerHeight));
}

#main-content h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: left;
  gap: 1rem;
}


.filter-group {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.filter-label {
  font-family: 'Martian Mono', monospace;
  font-size: 1rem;
  font-weight: 100;
  text-transform: uppercase;
  margin-top: .5rem;
}

.filter-label-row {
  display: flex;
  align-items: end;
  gap: .5rem;
  margin-bottom: .2rem;
  margin-top: 1rem;
}

.filter-label-row .filter-label {
  margin-bottom: 0;
}

.filter-label-row .pill-btn {
  margin-left: auto;
  padding: .1rem .5rem;
  font-size: .8rem;
}

.filter-pills {
  display: flex;
  justify-content: start;
  gap: .2rem;
  flex-wrap: wrap;
}

.filter-verantwortliche {
  flex: 1;
  flex-shrink: 1;
}

.filter-status {
  flex: 3;
  flex-shrink: 2;
}

.circle-btn {
  display: flex;
  background-color: transparent;
  border: 1px solid black;
  border-radius: 999px;
  padding: .3rem;
  font-family: 'Martian Mono', monospace;
  font-size: .6rem;
  font-weight: 100;
  color: black;
  -webkit-appearance: none;
  cursor: pointer;
  height: 1.8rem;
  width: 1.8rem;
  justify-content: center;
  align-items: center;
}

.avatar-add-btn {
  background-color: transparent;
  border: none;
  width: 24px;
  height: 24px;
  transform: translateX(-30px);
}


.pill-btn {
  background-color: transparent;
  border: 1px solid black;
  border-radius: 999px;
  min-width: 160px;
  min-height: 1.7rem;
  padding: .3rem .6rem .3rem .6rem;
  font-family: 'Martian Mono', monospace;
  font-size: .9rem;
  font-weight: 100;
  color: black;
  -webkit-appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/*
 * Every button looks like a button: light fill + shadow. Excluded are the switches that are no
 * actions – filter chips and tabs (.filter-pills), toggles (.crm-toggle), Kürzel circles and the
 * main menu. :where() keeps the specificity at one class, so :hover and .active below still win.
 */
:is(.pill-btn, .save-button):not(:where(.crm-toggle, .circle-btn, .filter-pills *, .mainNavigation *)) {
  background-color: #F2F2F2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  font-weight: 400;
}

/* on the light grey header the fill would vanish, so white there */
.topHeader .pill-btn:not(:where(.mainNavigation *)) {
  background-color: #fff;
}

:is(.pill-btn, .save-button):not(:where(.crm-toggle, .circle-btn, .filter-pills *, .mainNavigation *)):active {
  box-shadow: none;
}

:is(.pill-btn, .save-button):disabled,
:is(.pill-btn, .save-button):disabled:hover {
  background-color: #F2F2F2;
  border-color: black;
  color: black;
  opacity: .45;
  box-shadow: none;
  cursor: not-allowed;
}

.pill-btn:active,
.circle-btn:active {
  background-color: var(--main-green);
  border-color: var(--main-green);
  color: #fff;
}

.pill-btn a {
  text-decoration: none;
  font-family: 'Martian Mono', monospace;
  font-size: 1rem;
  font-weight: 100;
}

.pill-btn a:hover {
  color: #fff;
}

.pill-btn.active,
.circle-btn.active,
.pill-btn:hover,
.circle-btn:hover {
  background-color: var(--main-green);
  border-color: var(--main-green);
  color: #fff;
}

.filter-right {
  display: flex;
  flex: 1;
  flex-direction: row;
  gap: .2rem;
  justify-content: start;
  align-items: end;
}

.dropdown-option {
  display: block;
  width: 100%;
  padding: 8px 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.dropdown-option:hover,
.dropdown-option.active {
  background-color: black;
  color: var(--main-green);
}

.substatus-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  background: white;
  border: 1px solid black;
  border-radius: 8px;
  padding: 4px 0;
  min-width: 180px;
  margin-top: 4px;
}

#substatus-toggle {
  background-color: var(--main-green);
  border: 1px solid black;
  color: black;
}

.accordion-chevron img {
  width: .8rem;
  height: .8rem;
  transition: transform 0.2s ease;
}

.accordion-chevron img.chevron-open {
  transform: rotate(180deg);
}

.accordion-header:hover .accordion-chevron img,
.accordion-item.inverted .accordion-chevron img,
.accordion-header:hover .accordion-meta a img,
.accordion-item.inverted .accordion-header .accordion-meta a img {
  filter: brightness(0) invert(1) sepia(1) hue-rotate(53deg) saturate(180%) brightness(93%);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.btn-add-project {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid black;
  padding: 2.5rem 1rem 2.5rem 1rem;
  border-radius: 10px;
  position: relative;
  margin-top: 2.5rem;
  cursor: pointer;
  font-family: 'Martian Mono', monospace;
  font-size: .9rem;
  font-weight: 100;
  color: black;
  -webkit-appearance: none;
  background-color: transparent;
}

.btn-add-project:hover {

  background-color: rgba(0, 0, 0, .05);
}

.btn-add-project img {
  width: 30px;
  height: 30px;
  margin: auto;
}

.client-autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid black;
  border-top: none;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}

.client-autocomplete-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: .4rem .6rem;
  font-family: 'Martian Mono', monospace;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.client-autocomplete-list button:hover {
  background: rgba(0, 0, 0, .8);
  color: var(--main-green);
}

.client-autocomplete-list button.ac-quick-create {
  font-size: .8rem;
  font-weight: 100;
}

.client-autocomplete-list button.ac-quick-create:hover {
  opacity: 1;
}

.new-client-badge {
  font-family: 'Martian Mono', monospace;
  font-size: .8rem;
  color: rgb(0, 0, 0);
  margin-top: .25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid black;
  padding: 4rem 1rem 1.5rem 1rem;
  border-radius: 10px;
  position: relative;
  margin-top: 2.5rem;
  cursor: pointer;
}

.card-img {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);

  border: 1px solid black;
  border-radius: 999px;
  width: 100px;
  height: 100px;
  background-color: white;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 999px;
}

.card-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: break-word;
}

.card-status-row {
  padding: 1.5rem 0;
}

.card-status {
  font-family: 'Martian Mono', monospace;
  font-weight: 400;
  font-size: 1rem;
}


.card-client,
.card-substatus {
  font-family: 'Martian Mono', monospace;
  font-weight: 100;
  font-size: 1rem;
  overflow-wrap: break-word;
}

.card-nr {
  font-family: 'Martian Mono', monospace;
  font-weight: 100;
  font-size: .75rem;
  margin: .2rem 0 .4rem;
  overflow-wrap: break-word;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  margin-top: .6rem;
}

/* project search above the filter bar */
.project-search {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-search .input-rounded {
  max-width: 40rem;
}

.project-search-info {
  font-family: 'Martian Mono', monospace;
  font-size: .8rem;
  font-weight: 100;
  white-space: nowrap;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* long lists (clients after the import) scroll inside the dropdown */
.filter-right .substatus-dropdown {
  max-height: 60vh;
  overflow-y: auto;
}

.card-assignees {
  display: flex;
  gap: .2rem;
  justify-self: end;
  margin-top: auto;
}

.assignee-bubble {
  background-color: transparent;
  border: 1px solid black;
  border-radius: 999px;
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Martian Mono', monospace;
  font-size: .7rem;
  font-weight: 100;
}

.load-more {
  display: block;
  font-family: 'Martian Mono', monospace;
  font-weight: 100;
  font-size: 1rem;
  text-align: center;
  margin: 2rem auto;
  background: none;
  border: none;
  color: black;
  -webkit-appearance: none;
  cursor: pointer;
}

.load-more:hover {
  text-decoration: underline;
}


.todos-section {
  border: 1px solid black;
  border-radius: 10px;
  padding: 1.8rem 1rem 1.5rem 1rem;

}

.todos-section .filter-bar {
  flex-direction: row;
  justify-content: left;
}

 .todos-section .add-todo {
  margin-left: auto;
 }

.dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-btn .dot {
  margin-right: .5rem;
}

.dot.faellig {
  background-color: #c0392b;
}

.dot.offen {
  background-color: #ffcf10;
}

.dot.erledigt {
  background-color: #4a7c59;
}

.todo-table,
.product-table,
.crm-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  table-layout: fixed;
}

.todo-table tr,
.product-table tr,
.crm-table {
  border-bottom: 1px solid black;
}

.offer-final-badge {
  display: inline-block;
  font-family: 'Martian Mono', monospace;
  font-size: .6rem;
  font-weight: 400;
  background: black;
  color: white;
  border-radius: 3px;
  padding: 1px 3px;
  vertical-align: middle;
}

.product-table {
  font-size: .9rem;
  margin-top: .5rem;
  table-layout: fixed
}

.todo-table td,
.product-table td,
.crm-table td {
  font-family: 'Martian Mono', monospace;
  font-size: .9rem;
  font-weight: 100;
  padding: .3rem .4rem;
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: break-word;
}

.crm-table th {
    padding: .3rem .4rem;
    text-align: left;
}

.product-table td.wert {
  width: 45%;
}

.product-table td.hersteller {
  width: 25%;
}

.product-table td.ekPreis,
.product-table td.vkPreis,
.product-table td.actions {
  width: 10%;
}

.todo-table td a,
.product-table td a {
  font-family: 'Martian Mono', monospace;
  font-size: 1rem;
  font-weight: 100;
}

.todo-check-cell {
  width: 2rem;
}

.todo-dot-cell {
  width: 1.5rem;
}

.todo-type {
  width: 15rem;
}

.todo-detail {
  width: auto;
}

.todo-project {
  width: 10rem;
}

.todo-assignees {
  width: 8rem;
}

.todo-assignees-inner {
  display: flex;
  justify-content: flex-end;
  gap: .2rem;
}

.todo-date {
  width: 12rem;
  white-space: nowrap;
}

.todo-actions {
  width: 4rem;
  white-space: nowrap;
  text-align: right;
}

.todo-actions a {
  text-decoration: none;
}

.todo-check-cell,
.todo-dot-cell {
  text-align: center;
}

.todo-check {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 1px solid black;
  margin: auto;
}

.todo-check.erledigt {
  background-image: url('../img/c_check.svg');
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;

}

.todo-assignees .assignee-bubble {
  margin: 0;
}

.todo-actions img {
  width: .8rem;
  height: .8rem;
}

.todo-empty {
  text-align: center;
  padding: 2rem;
  color: grey;
}

/* ============== PROJECTS ============== */

.project-container {
  border: 1px solid black;
  border-radius: 10px;
}


.project-header-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 1.5rem;
}

.project-container .filter-bar {
  padding: 1.5rem;
}

.project-header-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid black;
  background: white;
  flex-shrink: 0;
  overflow: hidden;
  object-fit: contain;
}

.project-header-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 999px;
}

.project-header-info {
  flex: 1;
}

.project-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: .2rem;
}

.project-client {
  font-family: 'Martian Mono', monospace;
  font-size: 1rem;
  font-weight: 100;
  margin-bottom: 1rem;
}

.project-client a {
  font-family: inherit;
}

.project-meta {
  display: flex;
  gap: 2rem;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.project-header-right {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: space-between;
  align-items: flex-end;
  margin-left: auto;
}

.project-header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-edit-header,
.btn-trash-header {
  height: 1rem;
  width: 1rem;
}

.project-header-assignees {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: .2rem;
}

.project-accordion {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.accordion-item {
  border-bottom: 1px solid black;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-item.inverted .accordion-header {
  background: rgba(0, 0, 0, .8);
  color: var(--main-green);
}

.pill-btn:hover img,
.pill-btn.active img,
.pill-btn:active img,
.circle-btn:hover img,
.circle-btn.active img,
.circle-btn:active img {
  filter: brightness(0) invert(1);
  text-decoration: none;
}

.dropdown-option:hover img,
.dropdown-option.active img {
  filter: brightness(0) invert(1) sepia(1) hue-rotate(53deg) saturate(180%) brightness(93%);
  text-decoration: none;
}

.accordion-icon img { display: block; }
.accordion-icon .icon-green { display: none; }
.accordion-item.inverted .accordion-header .icon-default,
.accordion-header:hover .icon-default,
.accordion-header.inverted .icon-default { display: none; }
.accordion-item.inverted .accordion-header .icon-green,
.accordion-header:hover .icon-green,
.accordion-header.inverted .icon-green { display: block; }

.accordion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  user-select: none;
}

.accordion-header:hover {
  background: rgba(0, 0, 0, .8) !important;
  color: var(--main-green) !important;
}

.accordion-header.inverted {
  background: rgba(0, 0, 0, .8) !important;
  color: var(--main-green) !important;
}

.accordion-icon {
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
  flex-shrink: 0;
}

.accordion-title {
  flex: 1;
  font-size: 1.2rem;
}

.accordion-meta {
  font-family: 'Martian Mono', monospace;
  font-size: .9rem;
  font-weight: 100;
  text-align: right;
}

.accordion-chevron {
  font-size: 1rem;
  margin-left: 1rem;
  flex-shrink: 0;
}

.accordion-body {
  font-weight: 100;
  border-top: 1px solid black;
  padding: 1.5rem;
}

.accordion-body.todos-section {
  border: none;
  border-radius: unset;

}

.produkte-buttons {
  display: flex;
    gap: .5rem;
}

.daten-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid black;
}

.daten-section:first-child {
  margin-top: .5rem;
  padding-top: 0;
  border-top: none;
}

.daten-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.daten-section-title {
  font-family: 'Martian Mono', monospace;
  font-size: 1.1rem;
  font-weight: 400;
}

.section-title-price {
  font-family: 'Martian Mono', monospace;
  font-size: 1rem;
  font-weight: 100;
  margin-left: .25rem;
}

.stammfragen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem 2rem;
}

.stammfrage-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.input-rounded {
  border: 1px solid black;
  border-radius: 999px;
  padding: .5rem .8rem;
  font-family: 'Martian Mono', monospace;
  font-size: .9rem;
  font-weight: 100;
  background: transparent;
  width: 100%;
}

.input-rounded:focus {
  outline: none;
}

button.input-rounded:disabled {
  cursor: default;
  opacity: 1;
  color: black;
}

button.input-rounded.active {
  background: black;
  color: white;
}

select.input-rounded {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23000'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: .5rem;
  /* same height as .pill-btn, so dropdowns line up with the buttons next to them */
  padding: .3rem 2rem .3rem .8rem;
  min-height: 1.7rem;
  cursor: pointer;
}

/* in forms a dropdown sits next to text inputs: keep the input height there */
.overlay-field select.input-rounded {
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.daten-empty {
  font-family: 'Martian Mono', monospace;
  font-size: .9rem;
  font-weight: 100;
  color: grey;
  padding: .5rem 0;
}

.daten-empty a {
  font-family: inherit;
}

.save-button {
  width: 200px;
}

.save-button.long {
  width: 360px;
}

.save-button img,
.pill-btn img {
  width: .9rem;
  height: .9rem;
  margin-right: .5rem;
}

#body-notizen .daten-section {
  border-top: none;
}

#notizen-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.notiz-item {
  border-top: 1px solid var(--border, black);
  padding-top: 1rem;
}

.notiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.notiz-date {
  font-size: 1rem;
}

.notiz-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.notiz-edit-btn,
.notiz-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 0;
}

.notiz-edit-btn img,
.notiz-delete-btn img {
  width: 1rem;
  height: 1rem;
}

.notiz-edit-textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  font-family: 'Martian Mono', monospace;
  font-weight: 100;
  font-size: 1rem;
  line-height: 1.6;
  padding: .5rem;
  border: 1px solid var(--border, black);
  border-radius: .25rem;
  background: transparent;
  color: inherit;
  box-sizing: border-box;
}

.notiz-edit-btnrow {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
}

.notiz-content,
.notiz-content p {
  font-family: 'Martian Mono', monospace;
  font-weight: 100;
  font-size: 1rem;
  line-height: 1.6;
}

#foto-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
}

.foto-edit-modal {
  background: #fff;
  border: 1px solid black;
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 640px;
}

.dokumente-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.dokument-card {
  border: 1px solid black;
  border-radius: 5px;
  padding: .8rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  position: relative;
  font-family: 'Martian Mono', monospace;
  font-size: 1rem;
  font-weight: 100;
}

.dokument-card-upload {
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 220px;
  border-style: 1 px solid black;
}

.dokument-card-upload:hover {
  background: rgba(0, 0, 0, .03);
}

.dokument-upload-icon img {
  width: 2.5rem;
  height: auto;
  margin-bottom: 2rem;
}

.dokument-upload-label {
  text-align: center;
  font-family: 'Martian Mono', monospace;
  font-size: .9rem;
}

.dokument-preview {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.dokument-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
}

.dokument-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: end;
  padding: .4rem .5rem;
  gap: .3rem;
  opacity: 0;
  transition: opacity .1s;
  background-color: rgba(224, 237, 222, 0.7);
  border-radius: 4px 4px 0 0;
}

.dokument-card:hover .dokument-actions {
  opacity: 1;
}

.dokument-actions img {
  width: 1rem;
  height: 1rem;
}

.dokument-name,
.dokument-notes,
.dokument-date,
.dokument-notes * {
  font-family: 'Martian Mono', monospace;
  font-weight: 100;
  font-size: .8rem;
  line-height: 1.4;
}

.dokument-notes strong,
.dokument-notes b {
  font-weight: 500;
}

.dokument-notes ul,
.dokument-notes ol {
  padding-left: 1.7rem;
}

.dokument-name {
  margin-top: .5rem;
  font-weight: 500;
}


#dokument-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
}


.profile-body {
  font-weight: 100;
  border-top: 1px solid black;
  padding: 1.5rem;
}

.userTitleName:hover,
.userTitleJob:hover {
  text-decoration: none;
}

.project-avatar-wrap img {
  object-fit: cover;
}

.overlay-field.profile-position {
  flex: 0 0 calc(50% - 0.5rem);
}

.overlay-field.profile-mitarbeiter-seit {
  flex: 1;
}

.overlay-field.profile-kuerzel {
  flex: 0 0 6rem;
}

.overlay-field-row.rechte {
  flex-direction: column;
}

#btn-client-show-projects:hover {
text-decoration: none;
}

/* CKeditor */

/* Remove CKEditor gradients & shadows everywhere */
.cke * {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Editor container */
.cke {
  border-radius: 6px !important;
  border: 1px solid black !important;
  box-shadow: none !important;
}

/* Toolbar */
.cke_top {
  background: var(--main-green) !important;
  border: none !important;
  border-bottom: 1px solid black !important;
  padding: 6px !important;
}

.cke_inner {
  background: var(--main-green) !important;
  border: none !important;
}

.cke_inner {
  background: var(--main-green) !important;
  border: none !important;
}

/* Content area */
.cke_contents {
  background: var(--main-green) !important;
}

.cke_wysiwyg_frame,
.cke_wysiwyg_frame html,
.cke_wysiwyg_frame body {
  background: var(--main-green) !important;
}

.cke_editable {
  background: var(--main-green) !important;
  color: black !important;
  font-size: 14px;
  line-height: 1.6;
  padding: 12px;
}

/* Buttons */
.cke_button {
  background: var(--main-green) !important;
  border: none !important;
  outline: none !important;
  border-radius: 2px !important;
  padding: 4px !important;
}

.cke_button_icon {
  filter: contrast(10) !important;
  mix-blend-mode: multiply !important;
}

.cke_button_label {
  text-shadow: none !important;
}

/* Hover */
.cke_button:hover {
  background: black !important;
}

.cke_button:hover .cke_button_icon {
  filter: contrast(10) invert(1) brightness(2) !important;
  mix-blend-mode: screen !important;
}

/* Active / clicked */
.cke_button_on {
  background: black !important;
}

.cke_button_on .cke_button_icon {
  filter: contrast(10) invert(1) brightness(2) !important;
  mix-blend-mode: screen !important;
}

/* Focus (keyboard nav) */
.cke_button:focus {
  outline: none !important;
  background: black !important;
}

.cke_button:focus .cke_button_icon {
  filter: contrast(10) invert(1) brightness(2) !important;
  mix-blend-mode: screen !important;
}

/* Button groups */
.cke_toolgroup {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Dropdowns */
.cke_combo_button {
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
}

/* Hover */
.cke_combo_button:hover {
  background: black !important;
}

/* Open state */
.cke_combo_on .cke_combo_button {
  background: black !important;
}

.cke_reset {
  font-family: inherit !important;
}

/* .cke_editable {
  font-size: 15px;
  line-height: 1.6;
  padding: 12px;
} */

.cke_bottom {
  display: none !important;
}

#body-fotos .crm-actions, #body-dokumente .crm-actions {
  flex-direction: column;
  align-items: start;
}

.dokumente-kategorie {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: .5rem;
  gap: .2rem;
}