:root {
  color-scheme: light;
  --footer-bar-height: 34px;
  --footer-clearance: 190px;
  --ink: #2A2623;
  --ink-soft: #5B564F;
  --paper: #FFFFFF;
  --paper-2: #F6F5F2;
  --paper-3: #EDEBE6;
  --grey-1: #8C8680;
  --grey-2: #C9C4BE;
  --grey-3: #DEDAD4;
  --grey-4: #F1EFEB;
  --node: clamp(24px, 2.6vw, 34px);
  --fs-body: clamp(14px, 1.15vw, 16px);
}

@font-face {
    font-family: Figtree;
    src: url(../static/fonts/Figtree-VariableFont_wght.ttf);
    font-display: swap;
}

body {
    font-family: Figtree;
    font-size: 18px !important;
    color: #043A5D;
    background: #ffffff;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}
.header {
    display: none;
}
.center-content {
    margin-top: 10px;
    margin-bottom: 120px;
    background: #ffffff;
    border-radius: 30px;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}
.content {
    max-width: 700px !important;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}
p, ol, ul, li {
    font-size: 18px !important;
    line-height: 24px;
    font-weight: 400;
    color: #043A5D;
}

/* ---------------- Formulartitel ausblenden ----------------
   Das Backend schreibt den internen Formularnamen
   (z. B. "LIVE Formular 1") in .main-title. */
.main-title {
  display: none !important;
}

/* ---------------- Startseite: Reset-Button ausblenden ---------------- */
#inputfieldform:has(input[name="path"][value=".1"]) div.round-icon.reset-icon {
  display: none !important;
}

h1 {
    font-family: Figtree;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    color: #043A5D;
}
h2 {
    font-family: Figtree;
    font-size: 26px;
    font-weight: 500 !important;
    line-height: 34px;
    color: #043A5D;
}
h3 {
    font-family: Figtree;
    font-size: 22px;
    font-weight: 500 !important;
    line-height: 30px;
    color: #043A5D;
}
label {
    font-size: 18px !important;
    line-height: 24px;
    color: #043A5D;
    font-weight: 500;
}
textarea, select, input[type='text'], input[type='date'], input[type='time'],  input[type='email'], input[type='number'], input[type='password'] {
    border-radius: 6px;
    border: 1px solid #B4C4CE;
    background-color: #F2F5F7;
    color: #043A5D;
    height: 60px;
    width: 100% !important;

    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    font-family: Figtree;
    padding: 18px 10px;
}
textarea:focus, select:focus, input[type='text']:focus, input[type='date']:focus, input[type='time']:focus, input[type='email']:focus, input[type='number']:focus, input[type='password']:focus {
    outline: none;
    color: #043A5D;
}
select {
    appearance: none;
    background: url(../static/datainput-formular/projects/user-rights/arrow-down.svg) no-repeat #F6F4F7;
    background-position: right 10px bottom 50%;
}
textarea {
    height: 180px;
}

/* HR styling */
hr {
  border: none;
  border-top: 1px solid rgba(4, 58, 93, 0.25);
  margin: 24px 0;
}

table {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid #C8E8DF;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(4, 58, 93, 0.12);
  font-family: Figtree, sans-serif;
  font-size: 16px;
  color: #043A5D;
  overflow: hidden;
  height: auto;
}

/* Report branching box */
table.report-branching {
  background: #F6FBF9 !important;
  border: 1px solid #C8E8DF !important;
  border-left: 5px solid #2AAF8A !important;
  box-shadow: none !important;
}

table.report-branching td {
  padding: 16px 20px !important;
}

/* Table cell styling */
table td,
table th {
  padding: 16px 20px;
  border: none;
  border-bottom: 1px solid #E0F2EC;
  text-align: left;
  vertical-align: top;
}

/* Header styling — navy background, white text, teal accent */
table th {
  font-weight: 600;
  color: #ffffff;
  background-color: #043A5D;
  border-bottom: 1px solid #2AAF8A;
}

/* First and last header cell rounding */
table th:first-child {
  border-radius: 16px 0 0 0;
  overflow: hidden;
  transform: translateZ(0);
}

table th:last-child {
  border-radius: 0 16px 0 0;
  overflow: hidden;
  transform: translateZ(0);
}

/* Last row — no bottom border */
table tr:last-child td {
  border-bottom: none;
}

/* Last row corner rounding */
table tr:last-child td:first-child {
  border-radius: 0 0 0 16px;
  overflow: hidden;
  transform: translateZ(0);
}

table tr:last-child td:last-child {
  border-radius: 0 0 16px 0;
  overflow: hidden;
  transform: translateZ(0);
}

/* Hover effect */
table tr:hover td {
  background-color: #EEF8F4;
  transition: background-color 0.2s ease-in-out;
}

/* Hover — preserve corner rounding on first and last rows */
table tr:last-child td:first-child:hover {
  border-radius: 0 0 0 16px;
}

table tr:last-child td:last-child:hover {
  border-radius: 0 0 16px 0;
}

.cancel-button, .clear-button, .info-button {
    min-width: 120px;
    height: 46px !important;
    background: #ffffff !important;
    border-radius: 25px !important;
    color: #043A5D !important;
    border: 1px solid #0AF !important;
    font-weight: 700;
    font-size: 18px !important;
    line-height: 24px;
}
.cancel-button:hover, .clear-button:hover, .info-button:hover {
    height: 46px !important;
    background: #ffffff !important;
    border-radius: 25px !important;
    color: #0AF !important;
    border: 1px solid #66CCFF !important;
    font-weight: 700;
    font-size: 18px !important;
    line-height: 24px;
}

/* GEÄNDERT: .submit, .cancel-submit und .reset-icon ausgenommen,
   sie werden weiter unten als Rauten-Buttons definiert */
button:not(.tox-mbtn):not(.cancel-button):not(.submit):not(.cancel-submit):not(.reset-icon) {
    height: 46px !important;
    min-width: 120px;
    border-radius: 25px !important;
    background: #043A5D !important;
    border: 1px solid #0AF !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0px 32px !important;
    color: #ffffff;
    cursor: pointer;
    border-style: none;
    font-weight: 700;
    font-size: 18px !important;
    line-height: 24px;
    font-family: Figtree;
}

/* GEÄNDERT: greift nicht mehr auf .submit / .cancel-submit,
   falls diese zusätzlich .save-button tragen */
button.save-button:hover:not(.submit):not(.cancel-submit) {
    background: #043A5D !important;
    border: 1px solid #66CCFF !important;
}

/* GEÄNDERT: zusammen mit --btn-side am Button ergibt das 64px zwischen
   den Rauten-Buttons, genug Luft für die Drehung */
.buttonarea {
    display: flex;
    align-items: flex-start;
    gap: 24px !important;
    margin-top: 100px !important;
    flex-wrap: nowrap !important;
}

/* Basis-Stylesheet setzt .buttonarea-right auf width:100%, wodurch
   der Reset-Button bei aktivem Flex-Wrap in eine eigene Zeile
   umbricht. Auf auto/flex setzen, damit alle drei Icons in einer
   Zeile bleiben — auch mobil. */
.buttonarea-right {
    width: auto !important;
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
}

/* ============================================================
   Submit / Cancel / Reset als Rauten-Buttons
   Weiter  – dunkle Raute, kippt 45° im Uhrzeigersinn
   Zurück  – helle Raute, kippt 45° gegen den Uhrzeigersinn
   Reset   – kein Platten-Hintergrund mehr, nur der Pfeil,
             gleiche Größe/Ausrichtung wie Weiter/Zurück
   Text bleibt via font-size:0 im Accessibility-Baum
   ============================================================ */

button.submit,
button.cancel-submit,
div.round-icon.reset-icon {
  --btn: 52px;
  --sweep: 45deg;         /* Drehbetrag beim Hover */
  --rest-submit: 90deg;   /* Ruhelage Weiter */
  --rest-cancel: 0deg;    /* Ruhelage Zurück */
  --grow: 1.42;           /* Ausgleich, weil aus der Diagonale eine Seite wird */
  --ease: cubic-bezier(0.34, 0.9, 0.3, 1);
  --mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjEuMzIxIDEuMzIxIDMxLjM1OCAzMS4zNTgiPjxwYXRoIGQ9Ik0zMS43NDUgMTcuMDMxN0wxNi45NjgxIDIuMjU0NzJDMTUuNzIyOSAxLjAwOTQ3IDEzLjcwMzkgMS4wMDk0NyAxMi40NTg3IDIuMjU0NzJMMi4yNTQ3NyAxMi40NTg2QzEuMDA5NTMgMTMuNzAzOCAxLjAwOTUzIDE1LjcyMjggMi4yNTQ3NyAxNi45NjhMMTcuMDMxNyAzMS43NDVDMTguMjc3IDMyLjk5MDIgMjAuMjk1OSAzMi45OTAyIDIxLjU0MTIgMzEuNzQ1TDMxLjc0NSAyMS41NDExQzMyLjk5MDMgMjAuMjk1OSAzMi45OTAzIDE4LjI3NjkgMzEuNzQ1IDE3LjAzMTdaIiBmaWxsPSIjMDAwIi8+PC9zdmc+");

  --label-gap: 10px;
  --label-line: 16px;
  --label-color: #043A5D;
  --label-scale: 0.62;      /* Pfeilgröße im Ruhezustand */
  --ic-rot: 0deg;           /* Ruhedrehung des Icons */
  --btn-side: 20px;         /* Abstand links und rechts am Button selbst */
  /* Weg vom Ruheplatz unter der Raute in die Plattenmitte */
  --label-shift: calc(var(--btn) / 2 + var(--label-gap) + var(--label-line) / 2);

  position: relative !important;
  display: block !important;
  width: var(--btn) !important;
  min-width: var(--btn) !important;
  height: calc(var(--btn) + var(--label-gap) + var(--label-line)) !important;
  padding: 0 !important;
  margin: 0 var(--btn-side) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  cursor: pointer;

  /* Text bleibt im Accessibility-Baum, ist aber nicht sichtbar */
  font-family: Figtree;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  overflow: visible !important;
}

/* kein farbiger Rahmen mehr, auch nicht über andere Regeln */
button.submit:hover,
button.cancel-submit:hover,
div.round-icon.reset-icon:hover,
button.submit:active,
button.cancel-submit:active,
div.round-icon.reset-icon:active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
}

/* ---------------- Platte (nur Weiter/Zurück) ---------------- */
button.submit::before,
button.cancel-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--btn);
  height: var(--btn);
  transform-origin: 50% 50%;
  -webkit-mask-image: var(--mask);
          mask-image: var(--mask);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  transition: transform 0.42s var(--ease),
              background-color 0.28s var(--ease);
  pointer-events: none;
}

button.submit::before {
  background-color: #043A5D;
  transform: rotate(var(--rest-submit));
}

button.cancel-submit::before {
  background-color: #547990;
  transform: rotate(var(--rest-cancel));
}

/* ---------------- Pfeil: Beschriftung und Hover-Symbol in einem ---------------- */
button.submit::after,
button.cancel-submit::after,
div.round-icon.reset-icon::after {
  content: "" !important;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--btn);
  height: var(--btn);
  transform-origin: 50% 50%;
  background-color: var(--label-color);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: 64% 64%;
          mask-size: 64% 64%;
  transform: translateY(var(--label-shift)) scale(var(--label-scale)) rotate(var(--ic-rot));
  transition: transform 0.42s var(--ease),
              background-color 0.28s var(--ease);
  pointer-events: none;
}

button.submit::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30' fill='none'%3E%3Cpath d='M2.07 15h27.86M29.93 15L19.21 3.21M29.93 15L19.21 26.79' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30' fill='none'%3E%3Cpath d='M2.07 15h27.86M29.93 15L19.21 3.21M29.93 15L19.21 26.79' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

button.cancel-submit::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30' fill='none'%3E%3Cpath d='M29.93 15H2.07M2.07 15L12.79 3.21M2.07 15L12.79 26.79' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30' fill='none'%3E%3Cpath d='M29.93 15H2.07M2.07 15L12.79 3.21M2.07 15L12.79 26.79' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------------- Hover und Fokus (Weiter/Zurück) ---------------- */
button.submit:hover::before,
button.submit:focus-visible::before {
  transform: rotate(calc(var(--rest-submit) + var(--sweep))) scale(var(--grow));
  background-color: #043A5D;
}

button.cancel-submit:hover::before,
button.cancel-submit:focus-visible::before {
  transform: rotate(calc(var(--rest-cancel) - var(--sweep))) scale(var(--grow));
  background-color: #547990;
}

button.submit:hover::after,
button.submit:focus-visible::after,
button.cancel-submit:hover::after,
button.cancel-submit:focus-visible::after {
  transform: translateY(0) scale(1) rotate(0deg);
  background-color: #ffffff;
}

/* ---------------- Reset ---------------- */
/* Achtung: der Reset ist im HTML ein <div> mit onclick, kein <button>.
   Er ist dadurch nicht per Tastatur erreichbar und :focus-visible
   feuert nie. Siehe Hinweis am Dateiende.
   Keine Platte/Raute mehr — nur der Pfeil, in gleicher Größe und
   Ausrichtung wie Weiter/Zurück. */
div.round-icon.reset-icon {
  --ic-rot: 0deg;
  /* --label-scale und height werden vom gemeinsamen Block oben
     übernommen, damit die Ruheposition exakt mit Weiter/Zurück
     übereinstimmt */
}

div.round-icon.reset-icon::before {
  content: none !important;
}

div.round-icon.reset-icon::after {
  background-color: #043A5D;   /* dunkles Navy statt Grau — erfüllt Kontrastanforderung (≈12,6:1 auf Weiß) */
  transform: translateY(0) scale(1) rotate(0deg);   /* gleiche Position/Größe wie der aufgedeckte Pfeil bei Weiter/Zurück */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M27 16a11 11 0 1 1-3.2-7.8M27 5v6h-6' stroke='%23000' stroke-width='2.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M27 16a11 11 0 1 1-3.2-7.8M27 5v6h-6' stroke='%23000' stroke-width='2.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Hover/Fokus: dezent größer, bleibt auf derselben Linie */
div.round-icon.reset-icon:hover::after,
div.round-icon.reset-icon:focus-visible::after {
  transform: translateY(0) scale(1.15) rotate(0deg);
}

div.round-icon.reset-icon:active::after {
  transform: translateY(0) scale(1) rotate(0deg);
}

div.round-icon.reset-icon,
div.round-icon.reset-icon:hover,
div.round-icon.reset-icon:focus-visible,
div.round-icon.reset-icon:active {
  background-image: none !important;
  background: transparent !important;
}

button.submit:active::before {
  transform: rotate(calc(var(--rest-submit) + var(--sweep))) scale(calc(var(--grow) * 0.93));
}

button.cancel-submit:active::before {
  transform: rotate(calc(var(--rest-cancel) - var(--sweep))) scale(calc(var(--grow) * 0.93));
}

button.submit:focus-visible,
button.cancel-submit:focus-visible,
div.round-icon.reset-icon:focus-visible {
  outline: 2px solid #0AF !important;
  outline-offset: 6px !important;
}

@media (forced-colors: active) {
  button.submit::before,
  button.cancel-submit::before { background-color: ButtonText; }
  button.submit::after,
  button.cancel-submit::after,
  div.round-icon.reset-icon::after { background-color: ButtonText; }
  button.submit:hover::before,
  button.cancel-submit:hover::before { background-color: Highlight; }
  button.submit:hover::after,
  button.cancel-submit:hover::after,
  div.round-icon.reset-icon:hover::after { background-color: Highlight; }
}

@media (prefers-reduced-motion: reduce) {
  button.submit::before,
  button.cancel-submit::before,
  button.submit::after,
  button.cancel-submit::after,
  div.round-icon.reset-icon::after { transition: none; }
}

/* ============================================================
   Ende Rauten-Buttons
   ============================================================ */

.info-button img {
    height: 28px !important;
}
.tiny-div {
    background: none !important;
}
.reset-icon {
    height: 50px;
    width: 35px;
    border-radius: unset;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzUiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzNSAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0zMi45Mjg5IDE1SDUuMDcxNzVNNS4wNzE3NSAxNUwxNS43ODYgMy4yMTQyOU01LjA3MTc1IDE1TDE1Ljc4NiAyNi43ODU3IiBzdHJva2U9IiMwMEFBRkYiIHN0cm9rZS13aWR0aD0iMi40IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4NCjxwYXRoIGQ9Ik0xLjIgNC4yMDAwMVYyNS44IiBzdHJva2U9IiMwMEFBRkYiIHN0cm9rZS13aWR0aD0iMi40IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4NCjwvc3ZnPg0K');
    background-repeat: no-repeat !important;
    background-position:center;
}
.reset-icon:hover {
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzUiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzNSAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0zMi45Mjg5IDE1SDUuMDcxNzVNNS4wNzE3NSAxNUwxNS43ODYgMy4yMTQyOU01LjA3MTc1IDE1TDE1Ljc4NiAyNi43ODU3IiBzdHJva2U9IiM2NkNDRkYiIHN0cm9rZS13aWR0aD0iMi40IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4NCjxwYXRoIGQ9Ik0xLjIgNC4yMDAwMVYyNS44IiBzdHJva2U9IiM2NkNDRkYiIHN0cm9rZS13aWR0aD0iMi40IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4NCjwvc3ZnPg0K') !important;
    background-repeat: no-repeat !important;
    background-position:center !important;
}
.round-icon:hover {
    background: none;
}
.signature {
    height: 164px !important;
    width: 729px !important;
    border-radius: 8px !important;
    border: none !important;
    color: #043A5D;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    font-family: Figtree;
    background: #FFFFFF;
}
.signature canvas {
    color: #043A5D;
}

/* ========================================
   TOOLTIP — position (left/top) is set
   dynamically by showTooltip() in
   formular.js. Do NOT set left/transform
   here with !important, or it will
   override and block the JS positioning.
   ======================================== */
a.tooltip {
    position: relative !important;
    display: inline-block !important;
    vertical-align: middle !important;
    left: 0 !important;
    margin-left: 8px !important;
}
a.tooltip img {
    content: url(../static/datainput-formular/projects/user-rights/info-circle.svg) !important;
    width: 24px !important;
    vertical-align: text-top !important;
}
a.tooltip .tooltiptext {
    position: absolute !important;
    top: calc(100% + 8px) !important;   /* just below the icon */
    bottom: auto !important;
    right: auto !important;
    /* left is intentionally NOT set here — showTooltip() in
       formular.js sets it dynamically via inline style */

    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;

    width: max-content !important;
    max-width: min(280px, calc(100vw - 32px)) !important;
    min-width: 150px !important;

    padding: 10px 14px !important;
    font-size: 13px !important;
    line-height: 18px !important;
    background: #043A5D !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;

    z-index: 99999 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}
.tooltipcontainer:hover .tooltip,
.tooltipcontainer:active .tooltip,
.tooltipcontainer:focus .tooltip,
a.tooltip:hover .tooltiptext,
a.tooltip:active .tooltiptext,
a.tooltip:focus .tooltiptext {
    visibility: visible !important;
    opacity: 1 !important;
}
a.tooltip .tooltiptext::after {
    display: none !important;
}

[type="checkbox"], [type="radio"] {
  position: relative;
  left: 15px;
  top: -4px;
  z-index: 0;
  -webkit-appearance: none;
  visibility: hidden;
  margin-bottom: 60px !important;
}
[type="checkbox"] + label, [type="radio"] + label {
    position: relative;
    vertical-align: 45px;
}
[type="checkbox"] + label::before, [type="radio"] + label::before {
  width: 24px;
  height: 24px;
  border: 1px solid #C7BED1;
  background-color: #F6F4F7;
  display: block;
  content: "";
  float: left;
  z-index: 5;
  position: relative;
}
[type="checkbox"] + label::before {
  border-radius: 4px;
}
[type="radio"] + label::before {
  border-radius: 24px;
}
[type="checkbox"]:checked+label::before {
    background-color: #043A5D;
    background-image:  url(../static/datainput-formular/projects/user-rights/check.svg);
    background-repeat: no-repeat;
    background-position:center;
}
[type="radio"]:checked+label::before {
    width: 12px;
    height: 12px;
    border: 6px solid #043A5D;
    background-color: #ffffff;
}
.multiselect-area {
    border-spacing: 0 32px;
}
.multiselect-box {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: #F6F4F7;
    border: 1px solid #C7BED1;
    cursor: pointer;
    margin-right: 16px;
}
.multiselect-box[checked] {
    background-color: #043A5D;
    background-image:  url(../static/datainput-formular/projects/user-rights/check.svg);
    background-repeat: no-repeat;
    background-position:center;
}
.multiselect-label {
    vertical-align:top;
}
.multiselect-label label {
    cursor: pointer;
    font-size: 18px !important;
    line-height: 24px;
}
.dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    border: 1px solid #C7BED1;
    background: #F6F4F7;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    color: #A192B2;
}
.upload-image {
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
    background-image:  url(../static/datainput-formular/projects/user-rights/add-file.svg);
    background-repeat: no-repeat;
    background-position:center;
}
.upload-button {
    cursor: pointer;
    text-decoration: underline;
    color: #0AF;
}
.fileshow {
    visibility: hidden;
}
.fileadd {
    display: block !important;
    width: 56px;
    min-width: 56px;
    height: 56px;
    background-image: url(../static/datainput-formular/projects/user-rights/add.svg);
}
.fileselect {
    background-color: transparent !important;
    font-size: 18px !important;
    line-height: 24px !important;
    font-family: Figtree !important;
    font-weight: 500;
    color: #A192B2 !important;
    margin-bottom: 16px;
}
.requiredp {
  border-radius: 6px;
  border: 1px solid #EC6745 !important;
  background: #FEF7F6 !important;
  color: #EC6745 !important;
}
.filedownload {
    width: 29px;
    height: 29px;
    background-image: url(../static/datainput-formular/projects/user-rights/download.svg);
}
.finish-message {
    font-weight: 500 !important;
}

@media screen and (max-width: 767.98px) {
    /* Fix content box-sizing */
    .content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 16px !important;
    }

    /* Prevent body overflow */
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        padding: 8px !important;
    }

    html {
        overflow-x: hidden !important;
        width: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Fix form width */
    form {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* CRITICAL: Override the 258px fixed width from HTML */
    textarea, select, input[type='text'], input[type='date'],
    input[type='time'], input[type='email'], input[type='number'],
    input[type='password'] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 18px 10px !important;
    }

    /* Fix tables */
    table, thead, tbody, th, td, tr {
        height: auto !important;
        display: table !important;
    }

    table {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 10px 0 !important;
        overflow: hidden !important;
        display: table !important;
        box-sizing: border-box !important;
        border-radius: 16px !important;
    }

    tbody {
        display: table-row-group !important;
    }

    tr {
        display: table-row !important;
    }

    td, th {
        display: table-cell !important;
        padding: 10px 12px !important;
    }

    /* Rauten-Buttons auch mobil kompakt halten — Reset in gleicher
       Größe wie Weiter/Zurück gehalten. nowrap verhindert, dass der
       Reset-Button in eine eigene Zeile umbricht. */
    .buttonarea {
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    button.submit,
    button.cancel-submit,
    div.round-icon.reset-icon {
        --btn: 48px;
        --btn-side: 14px;
    }

    /* Fix signature */
    .signature {
        width: 100% !important;
        max-width: 100% !important;
        height: 164px !important;
        box-sizing: border-box !important;
    }

    /* Fix file upload container */
    .file-upload-area {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fix file name and buttons container */
    .file-name-buttons {
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fix file select display */
    .fileselect {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* Fix file buttons container */
    .filebuttons {
        width: auto !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
    }

    /* Fix dropzone */
    .dropzone {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fix file upload progress elements */
    .uploadprogress {
        width: 90% !important;
        max-width: 280px !important;
        box-sizing: border-box !important;
    }

    .progressroot {
        width: 100% !important;
        max-width: 258px !important;
        box-sizing: border-box !important;
    }

    a.tooltip img {
        width: 20px !important;
        height: 20px !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    /* Ensure all input fields respect boundaries */
    .input-fields {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin: 10px 0 !important;
        padding: 0 !important;
    }

    /* Fix subcontent containers - NO side margins */
    .subcontent {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin: 16px 0 !important;
        padding: 0 !important;
    }
}

@media screen and (min-width: 768px) {
    .content {
        width: 700px !important;
        max-width: 700px !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Navigation override: remove diamonds and hover animation, keep alignment */
.buttonarea {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  flex-wrap: nowrap !important;
}

.buttonarea-right {
  width: auto !important;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

button.submit,
button.cancel-submit,
div.round-icon.reset-icon {
  --btn: 52px;
  position: relative !important;
  display: block !important;
  width: var(--btn) !important;
  min-width: var(--btn) !important;
  height: var(--btn) !important;
  padding: 0 !important;
  margin: 0 14px !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  overflow: visible !important;
}

button.submit::before,
button.cancel-submit::before,
div.round-icon.reset-icon::before {
  content: none !important;
  display: none !important;
}

button.submit::after,
button.cancel-submit::after,
div.round-icon.reset-icon::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: var(--btn) !important;
  height: var(--btn) !important;
  background-color: #043A5D !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: 64% 64% !important;
  mask-size: 64% 64% !important;
  transform: none !important;
  transition: none !important;
  pointer-events: none !important;
}

button.submit::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30' fill='none'%3E%3Cpath d='M2.07 15h27.86M29.93 15L19.21 3.21M29.93 15L19.21 26.79' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30' fill='none'%3E%3Cpath d='M2.07 15h27.86M29.93 15L19.21 3.21M29.93 15L19.21 26.79' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

button.cancel-submit::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30' fill='none'%3E%3Cpath d='M29.93 15H2.07M2.07 15L12.79 3.21M2.07 15L12.79 26.79' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30' fill='none'%3E%3Cpath d='M29.93 15H2.07M2.07 15L12.79 3.21M2.07 15L12.79 26.79' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

div.round-icon.reset-icon::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M27 16a11 11 0 1 1-3.2-7.8M27 5v6h-6' stroke='%23000' stroke-width='2.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M27 16a11 11 0 1 1-3.2-7.8M27 5v6h-6' stroke='%23000' stroke-width='2.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

button.submit:hover,
button.cancel-submit:hover,
div.round-icon.reset-icon:hover,
button.submit:active,
button.cancel-submit:active,
div.round-icon.reset-icon:active {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

button.submit:hover::after,
button.cancel-submit:hover::after,
div.round-icon.reset-icon:hover::after,
button.submit:active::after,
button.cancel-submit:active::after,
div.round-icon.reset-icon:active::after {
  transform: none !important;
  background-color: #043A5D !important;
}

button.submit:focus-visible,
button.cancel-submit:focus-visible,
div.round-icon.reset-icon:focus-visible {
  outline: 2px solid #0AF !important;
  outline-offset: 4px !important;
}

@media screen and (max-width: 767.98px) {
  button.submit,
  button.cancel-submit,
  div.round-icon.reset-icon {
    --btn: 48px;
    margin: 0 8px !important;
  }
}

/* Back arrow — lighter grey-blue */
button.cancel-submit::after,
button.cancel-submit:hover::after,
button.cancel-submit:active::after {
  background-color: #547990 !important;
}