.header-search {
  margin-left: 20px;
  flex: 1;
  max-width: 300px;
}

#search-form {
  width: 100%;
}

#search-input {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

#search-input:focus {
  border-color: #666;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.suggestions-list {
  position: absolute;
  margin-top: 5px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.suggestions-list li {
  padding: 8px 12px;
  cursor: pointer;
}

.suggestions-list li:hover {
  background: #f0f0f0;
}

.hidden {
  display: none;
}
.spinner {
  border: 5px solid #f3f3f3; /* Bakc color */
  border-top: 5px solid #db3434;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.product-button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #c33;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;

  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-button:hover {
  background-color: #a00;
}

.product-buttonGray {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #707174;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;

  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-buttonGray:hover {
  background-color: #444444;
}

.product-button .icon-trash {
  width: 16px;
  height: 16px;
  display: inline-block;
  background: url("icons/trash.svg") no-repeat center;
  background-size: contain;
  filter: brightness(0) invert(1);
}

#cart-link {
  position: relative;
}
#cart-link {
  text-decoration: none;
  color: #c22e2e;
  font-weight: bold;
  margin-left: 2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
}
#cart-link svg {
  display: none;
}
#cart-link::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background: url("../../img/carticon.png") center/contain no-repeat;
}
#cart-link span {
  position: absolute;
  top: -10px;
  right: -14px;
  background: #c22e2e;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
}
#cart-link span {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #c22e2e;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
}

/* Override cart icon to use PNG asset */
#cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-left: 0.35rem;
  margin-top: -2px;
  text-decoration: none;
  color: #c22e2e;
  position: relative;
}
#cart-link .icon,
#cart-link svg {
  display: none !important;
}
#cart-link::before {
  content: "";
  width: 50px;
  height: 50px;
  display: block;
  background: url("../../img/carticon.png") center/contain no-repeat;
}
#cart-link span {
  top: 8px;
  right: 20px;
  background: transparent;
  color: #b02b2b;
  font-size: 12px;
  font-weight: 600;
  border-radius: 0;
  padding: 0;
}
#editor {
  width: 100%;
  height: 108mm;
  background: white;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
  overflow-y: auto;
}
#editor {
  width: 210mm;
  height: 297mm;
  padding: 25mm 15mm 20mm 15mm;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}
#editor {
  width: 100%;
  height: 128mm;
  background: white;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
  overflow-y: auto;
}
#editor-container {
  width: 216mm;
  height: auto;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  margin-top: 20px;
}
#editor-container {
  width: 210mm;
  height: 297mm;
  margin: 20px auto;
  background-color: white;
  padding: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
#editor-container {
  width: 241mm;
  height: auto;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  margin-top: 20px;
}
#editor2 {
  width: 210mm;
  height: 297mm;
  padding: 25mm 15mm 20mm 15mm;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}
#headline {
  font-weight: bold;
}
#innenseite-layout {
  margin-top: 150px;
  align-self: flex-start;
  z-index: 100;
}
#layout-options {
  background: #eef3f5;
  padding: 15px;
  width: 250px;
  font-family: Arial;
  font-size: 14px;
  margin-top: 150px;
  align-self: flex-start;
}
#layout-options h4 {
  margin-top: 0;
}
#logo-qr {
  display: flex;
  justify-content: space-between;
  transition: opacity 0.3s ease;
}
#logo-qr .box {
  width: 48%;
  border: 1px solid #ccc;
  padding: 5px;
}
#photo {
  height: auto;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.3s ease;

  img {
    /*check se è giusto così*/
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
  }
}
#popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#popup.show {
  display: block;
  opacity: 1;
}
#save-pdf {
  margin-left: 30px;
}
#seiten-layout {
  background: #eef3f5;
  padding: 15px;
  width: 200px;
  font-size: 14px;
  border: 1px solid #ccc;
  height: fit-content;
  margin-top: -1140px;
  margin-left: 1500px;
}
#toolbar {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  border-bottom: 1px solid #ccc;
  height: 50px;
}
#toolbar {
  display: flex;
  gap: 5px;
  padding: 5px;
  border-bottom: 1px solid #ccc;
  background: white;
  flex-wrap: wrap;
}
#toolbar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
#toolbar {
  display: flex;
  justify-content: flex-start;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}
#toolbar {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #dcdcdc;
  background: #f9f9f9;
}
#toolbar {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #dcdcdc;
  background: #f9f9f9;
  overflow-x: auto;
  white-space: nowrap;
}
#toolbar button {
  padding: 11px;
  background: red;
  color: white;
  border: none;
  cursor: pointer;
}
#toolbar button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  color: black;
  padding: 0;
}
#toolbar button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}
#toolbar button {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 13px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
#toolbar button img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
#toolbar button img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}
#toolbar button,
#toolbar select {
  padding: 10px;
  background-color: #ff0000;
  color: white;
  border: none;
  cursor: pointer;
  margin-right: 5px;
}
#toolbar button.active {
  border: 2px solid red;
  background: #fff0f0;
}
#toolbar button.clicked {
  animation: flash-red 0.3s ease;
}
#toolbar button:active {
  background: #d32f2f;
  border-color: #b71c1c;
  transform: scale(0.95);
  transition: all 0.1s ease;
}
#toolbar button:active {
  background: #e5e7eb;
}
#toolbar button:hover {
  background: #f5f5f5;
}
#toolbar button:hover {
  background: #f0f0f0;
  border-color: #999;
  transform: scale(1.05);
  transition: all 0.15s ease;
}
#toolbar button:hover {
  background-color: #fc6d6d;
}
#toolbar button:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}
#toolbar button:last-of-type {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #dc2626;
  font-weight: 600;
}
#toolbar button:last-of-type:active {
  background: #991b1b;
}
#toolbar button:last-of-type:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}
* {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.about-section h1 {
  color: #c22e2e;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.about-section p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}
.body-santo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}
.btn:hover {
  background-color: #c22e2e;
  color: white;
}
.checkboxes {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.checkboxes {
  margin-top: 20px;
}
.checkboxes {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.checkboxes input[type="checkbox"] {
  margin: 0 8px 0 0;
  position: relative;
  top: 0;
}
.checkboxes label {
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkboxes label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.container-desc {
  width: calc(50% - var(--margin-size));
  height: 100%;

  #headline,
  .desc {
    height: calc(50% - calc(var(--margin-size) * 4));
    padding: 0;
    margin: var(--margin-size);
    margin-bottom: calc(var(--margin-size) * 4);
    box-sizing: border-box;
  }

  .desc.last {
    height: calc(50% - var(--margin-size));
    margin-bottom: 0;
  }

  #logo-qr {
    height: calc(50% - var(--margin-size));
    padding: 0;
    margin: 0 var(--margin-size);
    box-sizing: border-box;

    .box {
      margin: var(--margin-size);
    }
  }
}
.container-textonly {
  display: flex;
  flex-direction: column;
  height: 100%;

  .section {
    margin: 0;
  }
}
.container-title {
  display: flex;
  width: 100%;
  height: 100%;

  #photo,
  .photo-box {
    margin: 0;
    width: calc(50% - var(--margin-size));
    margin: var(--margin-size);
    margin-bottom: 0;
  }
}
.delete-icon {
  width: 16px;
  height: 16px;
  background: red;
  color: white;
  font-weight: bold;
  text-align: center;
  line-height: 16px;
  border-radius: 50%;
  position: absolute;
  cursor: pointer;
  z-index: 30;
  font-size: 12px;
}
.delete-icon {
  top: 0;
  right: 0;
}
.draggable {
  position: absolute;
  cursor: move;
}
.editable-area {
  width: 100%;
  min-height: 50px;
  font-size: 14px;
  border: none;
  border-bottom: 1px solid #444;
  background: transparent;
  padding: 5px 0;
  box-sizing: border-box;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.editable-area[contenteditable="true"]:empty:before {
  content: attr(placeholder);
  color: #999;
  pointer-events: none;
  display: block;
}
.editable-field {
  width: 100%;
  height: 28px;
  font-size: 14px;
  border: none;
  border-bottom: 1px solid #444;
  background: transparent;
  outline: none;
  margin-bottom: 6px;
}
.editor-relative-container {
  position: relative;
}
.footer {
  background-color: #333;
  color: #e5e5e5;
  padding: 8rem 0; /* altezza più importante */
  font-family: Arial, Helvetica, sans-serif;
}
.footer-content p {
  font-size: 14px;
  margin: 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr; /* logo + 3 colonne */
  gap: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr; /* logo + 3 colonne */
  gap: 2rem;
  align-items: flex-start;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 300;
}
.footer-logo .mb {
  font-weight: bold;
  font-size: 1.3rem;
}
.footer-logo img {
  max-height: 28px; /* regola qui la grandezza del logo */
}
.footer-logo img {
  max-height: 34px;
}
.footer-menu a {
  color: inherit;
  text-decoration: none;
}
.footer-menu a:hover {
  text-decoration: underline;
}
.footer-menu li {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
}
.footer-menu li:first-child {
  font-weight: 500; /* titolo colonna più marcato */
}
.footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-icons {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: 2rem;
}
.header-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 2rem;
}
.hero {
  position: relative;
}
.hero img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.hero-button {
  position: absolute;
  bottom: 20px;
  right: 294px;
  width: 210px;
  height: 35px;
  top: 491px;
  background-color: #000000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
.hero-button:hover {
  background-color: #a00;
}
.icon {
  width: 22px;
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
}
.icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.layout-choice {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.layout-choice {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.layout-choice .preview {
  width: 120px;
  /* orizzontale */
  height: 80px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  transition: all 0.25s ease;
}
.layout-choice .preview {
  width: 120px;
  height: 80px;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}
.layout-choice .preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.layout-choice .preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
.layout-choice .preview svg {
  display: block;
  width: 100%;
  height: 100%;
}
.layout-choice .preview,
.rucktitel-mode .preview {
  width: 60px;
  height: 90px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 2px;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.layout-choice label {
  cursor: pointer;
}
.layout-choice label,
.rucktitel-mode label {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.layout-choice,
.rucktitel-mode {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  min-width: 250px;
  justify-content: center;
}
.layout-panel {
  background: #eef3f5;
  padding: 15px;
  width: 250px;
  font-size: 14px;
  display: none;
}
.letter-section {
  margin-bottom: 20px;
}
.letter-section.subject {
  margin-top: 8mm;
}
.letter-section:last-of-type input.editable-field {
  margin-top: 40px;
}
.letterhead {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 10px;
  min-height: 120px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  margin-top: 0mm;
}
.letterhead .logo {
  max-width: 30%;
}
.letterhead .logo img {
  max-width: 120px;
  height: auto;
}
.letterhead .sender {
  max-width: 70%;
}
.logo img {
  height: 40px;
}

header .logo {
  display: inline-flex;
  align-items: center;
  gap: calc(16px + 1cm);
}

header .logo-main img {
  height: 34px;
  width: auto;
}

header .logo-secondary {
  height: 26px;
  width: auto;
  display: block;
}
.logo,
.signature {
  position: relative;
}
.menu-toggle {
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  display: block;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1000;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 1000;
}
.overlay.active {
  display: block;
}
.product-description {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  font-size: 14px;
  margin-top: 0.5rem;
  color: #555;
}
.product-item {
  text-align: center;
  margin: 1rem;
  flex: 1 1 30%;
}
.product-item img {
  max-width: 100%;
  height: auto;
}
.product-item:hover .product-description {
  opacity: 1;
  max-height: 100px;
}
.product-title {
  margin-top: 1rem;
  font-weight: bold;
  color: #c22e2e;
}
.products {
  display: flex;
  justify-content: space-around;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.resizable-handle {
  width: 10px;
  height: 10px;
  background: #007bff;
  position: absolute;
  z-index: 20;
}
.resizable-handle.ne {
  cursor: nesw-resize;
}
.resizable-handle.nw {
  cursor: nwse-resize;
}
.resizable-handle.se {
  cursor: nwse-resize;
}
.resizable-handle.sw {
  cursor: nesw-resize;
}
.rucktitel-mode {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.rucktitel-mode {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.rucktitel-mode .preview {
  width: 120px;
  height: 80px;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}
.rucktitel-mode .preview {
  width: 140px;
  height: 100px;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}
.rucktitel-mode .preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rucktitel-mode label {
  cursor: pointer;
}
.rucktitel-mode label {
  cursor: pointer;
  width: 140px;
}
.rucktitel-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.rucktitel-options .preview {
  width: 140px;
  height: 100px;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}
.rucktitel-options .preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rucktitel-options label {
  cursor: pointer;
  width: 140px;
}
.section {
  margin: 10px 0;
  padding: 10px;
  border: 1px dashed #ffffff;
  min-height: 20mm;
  text-align: center;
}
.seiten-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.seiten-grid {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.seiten-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.seiten-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.seiten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.seiten-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.seiten-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px;
  margin-top: 10px;
  justify-items: center;
}
.seiten-grid .seite {
  background: white;
  border: 1px solid #ccc;
  height: 50px;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  user-select: none;
  padding: 5px;
}
.seiten-grid .seite {
  background: #e0e0e0;
  border: 1px solid #ccc;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
}
.seiten-grid .seite {
  width: 60px;
  height: 120px;
  background: white;
  border: 1px solid #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.seiten-grid .seite {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  padding: 4px;
  hyphens: auto;
  word-break: break-word;
}
.seiten-grid .seite {
  width: 60px;
  height: 120px;
  background: white;
  border: 1px solid #aaa;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}
.seiten-grid .seite.active {
  background: red;
  color: white;
}
.seiten-grid .seite.active {
  background: #d32f2f;
  color: white;
}
.seiten-grid .seite.active {
  background: #b71c1c;
  color: white;
  border-color: #b71c1c;
}
.seiten-grid .seite.active {
  background: #d32f2f;
  color: white;
  border-color: #d32f2f;
}
.seiten-grid .seite:hover {
  background: #f3f3f3;
}
.sender input.editable-field {
  width: 158%;
}
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #f7f7f7;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  transition: left 0.3s ease;
  z-index: 1001;
}
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #f7f7f7;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  transition: left 0.3s ease;
  z-index: 2000;
}
.sidebar .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}
.sidebar ul {
  list-style: none;
}
.sidebar ul li {
  margin-bottom: 1rem;
}
.sidebar ul li a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
}
.sidebar.active {
  left: 0;
}
.signature {
  text-align: center;
}
.spaced-input {
  margin-top: 0mm;
  display: block;
}
.toast-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ff4d4d;
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  animation: fadeInOut 3.5s ease-in-out forwards;
}

.checkboxes label {
  display: flex;
  align-items: center;
  justify-content: center;
}
.seiten-grid .seite {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  padding: 4px;
  hyphens: auto;
  word-break: break-word;
}

#toolbar button:active {
  background: #d32f2f;
  border-color: #b71c1c;
  transform: scale(0.95);
  transition: all 0.1s ease;
}

#save-pdf {
  margin-left: 30px;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 2rem;
}
#seiten-layout {
  background: #eef3f5;
  padding: 15px;
  width: 250px;
  font-size: 14px;
}
:root {
  --margin-size: 5px;
}
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #000;
}
body {
  padding-top: 80px;
}
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
}
header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding: 1rem 2rem;

  position: relative;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  text-align: center;
}
nav {
  margin-left: auto;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav ul li a {
  text-decoration: none;
  color: #c22e2e;
  font-weight: bold;
}
nav ul li a,
.sidebar ul li a {
  color: #1b1b1b !important;
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 15px;
  line-height: 1.4;
}
nav ul li a.active,
.sidebar ul li a.active {
  color: #b32b2b !important;
  font-weight: 600;
}
nav ul li a:hover,
.sidebar ul li a:hover {
  color: #b32b2b !important;
}
