.digins-bg { --gap: 14px; }
html {
  scroll-behavior: smooth;
}

/* ========================================================
   FORM – 100% BREITE / 2 SPALTEN
======================================================== */
.digins-bg__form {
  width: 100%;
  margin: 0 0 32px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ========================================================
   LABELS
======================================================== */
.digins-bg__field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
}

/* ========================================================
   INPUT + SELECT – EXAKT GLEICHER LOOK
======================================================== */
.digins-bg__field input,
.digins-bg__field select {
  width: 100%;
  height: 52px;                 /* ✅ gleiche Höhe */
  padding: 0 18px;              /* vertikal über height gelöst */
  font-size: 16px;
  line-height: 52px;            /* saubere Vertikal-Zentrierung */

  border: 1px solid #d1d5db!Important;    /* ✅ gleiche Stärke */
  border-radius: 0!Important;         /* ✅ kein Radius */
  background-color: #ffffff;
  color: #111827;

  box-sizing: border-box;
  transition: border-color .15s ease;
}

/* Fokus */
.digins-bg__field input:focus,
.digins-bg__field select:focus {
  outline: none;
  border-color: #111827;
}

/* Placeholder */
.digins-bg__field input::placeholder {
  color: #9ca3af;
}

/* ========================================================
   SELECT – PFEIL SAUBER PLATZIERT
======================================================== */
.digins-bg__field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 52px; /* ✅ Platz für Pfeil */

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center; /* ✅ sauberer Abstand */
  background-size: 16px;
}

/* ========================================================
   RESPONSIVE – erst sehr klein untereinander
======================================================== */
@media (max-width: 520px) {
  .digins-bg__form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}
 
.digins-bg__list { display: grid; gap: 18px; }
.digins-bg__item { display: grid; grid-template-columns: 420px 1fr; gap: 20px;  border-radius: 0px; padding: 20px; background: #ffffff; align-items: start; }
.digins-bg__preview { display:flex; justify-content:center; align-items:flex-start; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 10px; overflow: hidden; }
.digins-bg__canvas { max-width: 100%; height: auto; display:block; border-radius: 8px; }
.digins-bg__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; margin-top: 20px; }
.digins-bg__size { color:#6b7280; margin-bottom: 12px; }
.digins-bg__actions { display:flex; gap: 10px; flex-wrap: wrap; }
.digins-bg__btn { border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.digins-bg__btn[disabled] { opacity: .5; cursor: not-allowed; }
.digins-bg__btn--download { background: #111827; color: #fff; }
.digins-bg__btn--share { background: #e5e7eb; color: #111827; }
.digins-bg__hint { margin-top: 10px; color: #6b7280; font-size: 13px; }


@media (max-width: 900px) {
  .digins-bg__form { grid-template-columns: 1fr; }
  .digins-bg__item { grid-template-columns: 1fr; }
  .digins-bg__actions { flex-direction: column; }
  .digins-bg__btn { width: 100%; }
}



/* ========================================================
   BANNERGRÖSSEN NAVIGATION
======================================================== */
.digins-bg__sizes {
  margin: 0 0 32px;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.digins-bg__sizes-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

.digins-bg__sizes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.digins-bg__size-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  transition: background-color .15s ease, border-color .15s ease;
}

.digins-bg__size-link:hover {
  background: #ffffff;
  border-color: #111827;
}

/* ========================================================
   LIGHTBOX – FULLSCREEN VIEWER
======================================================== */
.digins-bg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.digins-bg-lightbox[hidden] {
  display: none;
}

.digins-bg-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

/* Container füllt Viewport */
.digins-bg-lightbox__content {
  position: relative;
  width: 100vw;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none; /* Klicks nur auf Canvas / Close */
}

/* Canvas selbst */
.digins-bg-lightbox__canvas {
  max-width: 95vw;
  max-height: 95vh;

  width: auto;
  height: auto;

  background: transparent;
  display: block;
  pointer-events: auto;
}

/* Close Button */
.digins-bg-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;

  background: rgba(0, 0, 0, 0.6);
  border: 0;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  padding: 6px 14px;
  cursor: pointer;

  pointer-events: auto;
}




/* ========================================================
   BANNER PREVIEW – KLICKBARER HINWEIS
======================================================== */
.digins-bg__preview,
.digins-bg__canvas {
  cursor: zoom-in;
}