@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/roboto-v50-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../font/roboto-v50-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/roboto-v50-latin-700.woff2') format('woff2');
}

/* roboto-slab-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: url('../font/roboto-slab-v36-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-slab-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 500;
  src: url('../font/roboto-slab-v36-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-slab-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  src: url('../font/roboto-slab-v36-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

h1, h2, h3, h4 {
  font-weight: normal;
  margin-top: 0.3em;
  margin-bottom: 0.5em;
  font-family: 'Roboto Slab';
}

h2 {
  font-family: "Roboto Slab",serif;
  font-weight: 500;
  color: #000;
  text-align: center;
  font-size: 48px;
}

body,
th,
td,
input,
textarea {
  font-size: 15px;
  font-family: 'Roboto', sans-serif !important;
  font-weight: 500;
}

body {
	width: 100%;
	/*background: #42b455;*/
	background: #d8d8d8;
}

th a {
  color: black;
}

div.index {
  padding: 10px 15px;
}

nav.top-nav-onzuma {
	width: 95%;
	margin: auto;
}

main.main {
	width: 95%;
	margin: auto;
	background: none;
}

div.index-header {
  height: 70px;
}

#filteroptions1 input, 
#filteroptions2 input {
  display: grid;
  max-width: 80%;
  padding: 3px 8px;
}

div.container {
	width: 90%;
	/*margin: auto;*/
	margin: 20px 0px;
	padding: 30px;
	border-radius: 12px;
  	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
}

div.form {
	width: 85%;
	margin: auto;
}

table.applicationslist {
	table-layout: fixed;
	max-width: 100%;
}

table.applicationslist select {
  border: none;
}
table.applicationslist select option {
  border-radius: 14px;
  padding: 4px 15px;
  margin: 5px;
}

table.applicationlist select option:checked {
  background: #d8d8d8;
}

table.applicationslist select,
table.applicationslist input {
	width: 90%;
	overflow: hidden;
	text-overflow: ellipsis;
}
table.applicationslist td,
table.applicationslist th {
	overflow: hidden;
	text-overflow: ellipsis;
}

td.all-application,
.applications.tag.all {
	background-color: #B1CC89;
}
td.pre-application,
.applications.tag.pre {
	background-color: #d8d8d8;
}

td.application,
.applications.tag.app {
	background-color: #f9d76b;
}

td.post-application,
.applications.post {
	background-color: #41b558;
}

.legende td {
  background-color: transparent;
}

.button-grid {
  display: flow-root;
  padding: 5px;
  padding-bottom: 10px;
}

.button-grid .grid-item {
  width: 175px;
  padding: 5px;
  float: left;
}

.applicationslist .tag,
.legende .tag,
.applications.tag {
  border-radius: 6px;
  width: 90%;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: black;
}

.legende {
  font-weight: bold;
}

.legende td .tag {
  width: 80px;
  height: 30px;
}

.tag a {
  text-decoration: none;
  color: black;
}

.applicationslist .preApplication .tag,
.legende .pre-application .tag {
  background-color: #d8d8d8;
}

.applicationslist .application .tag,
.legende .application .tag {
  background-color: #f9d76b;
}

.applicationslist .postApplication .tag,
.legende .post-application .tag {
  background-color: #41b558;
}

table tr td {
  border-bottom: 2px solid #d8d8d8;
}

table.applicationslist tr:nth-child(2n) {
  background-color: white;
}


table.legende td{
	border-bottom: none;
}

.input.radio label:first-of-type {
	margin: 0;
}

div.input.textarea textarea {
	height: 220px;
}

fieldset.reciept {
	min-width: auto;
}

td.app-id,
th.app-id {
	width: 5%;
}
td.app-bearer-number,
th.app-bearer-number {
	width: 5%;
}

td.app-name,
th.app-name {
	width: 21%;
}

td.app-modified,
th.app-modified,
td.app-start-date,
th.app-start-date {
	width: 6%;
}

td.app-list-actions,
th.app-list-actions {
	width: 8%;
}

td.app-submitted,
th.app-submitted {
	width: 7%;
}

td.app-workflow,
th.app-workflow {
	width:10%;
}

td.app-status,
th.app-status {
	width: 15%;
}
.app-workflow select {
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

td.app-funding-program,
th.app-funding-program {
	width: 20%;
}

main.main div.container div.fundingPrograms.form{
	width: 80%;
	margin-left: auto;
	margin-right:auto;
}

@media (min-width: 1280px) {
  main.main div.container div.fundingPrograms.form fieldset {
    max-width: 100%;
	margin-left: auto;
	margin-right:auto;
  }
}

div.funding-program-formula,
div.funding-program-formula textarea {
	width: 100%;
	height: 500px !important;
}







/* =========================
   ONZUMA Modern Nav
   ========================= */

.onzuma-nav, .onzuma-nav * { box-sizing: border-box; }

.onzuma-nav{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.onzuma-nav__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 12px 16px;
  /*max-width: 1200px;*/
  max-width: 80%;
  margin: 0 auto;
}

/* Brand */
.onzuma-nav__brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  flex-wrap: wrap;
}

.onzuma-nav__logo{
  height: 36px;
  width: auto;
  display: block;
}

.onzuma-nav__title{
  font-weight: 650;
  letter-spacing: .2px;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 100%;
}

/* Toggle button (mobile) */
.onzuma-nav__toggle{
  display: none;
  appearance: none;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.onzuma-nav__toggle:focus-visible{
  outline: 3px solid rgba(17,17,17,.25);
  outline-offset: 3px;
}

.burger{
  display: inline-block;
  width: 18px;
  height: 2px;
  background: #111;
  position: relative;
}
.burger::before,
.burger::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
}
.burger::before{ top: -6px; }
.burger::after{ top: 6px; }

/* Menu */
.onzuma-nav__menu{ display: block; }

.onzuma-nav__links{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  gap: 10px;
}

/* Links & Buttons */
.onzuma-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: 999px;

  text-decoration: none;
  border: 0;
  background: transparent;
  color: #111;
  font-weight: 600;
  cursor: pointer;

  transition: background-color .15s ease, transform .08s ease;
}

.onzuma-link:hover{ background: rgba(0,0,0,.06); }
.onzuma-link:active{ transform: translateY(1px); }

.onzuma-btn {
  all: unset;
  box-sizing: border-box;
  font: inherit;
  cursor: pointer;
  
  font-family: 'Roboto Slab';
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 16px;
  line-height: 1.2;
  font-size: 15px;
  min-height: 44px;
  border-radius: 999px;

  text-decoration: none;
  font-weight: 650;
  border: 1px solid rgba(0,0,0,.12);

  background: rgba(0,0,0,.03);
  color: #111;

  transition: background-color .15s ease, transform .08s ease, box-shadow .15s ease;
}

form div.submit,
div.submit,
.submit button {
  all: unset;
  float: right;
}

.onzuma-btn:hover{ background: rgba(0,0,0,.06); }
.onzuma-btn:active{ transform: translateY(1px); }

.onzuma-btn--primary{
  background: #41b558;
  border-color: #41b558;
  color: #fff;

  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.25;

  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.onzuma-btn--primary:hover{ 
  background: #329144;
  border-color: #329144;
  color: white;
}

/* Icon button */
.onzuma-iconbtn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.10);
  text-decoration: none;
}
.onzuma-iconbtn:hover{ background: rgba(0,0,0,.08); }
.onzuma-iconbtn img{ display: block; }

/* Dropdown */
.has-dropdown{ position: relative; }

.onzuma-link--dropdown .chev{
  font-size: 12px;
  opacity: .75;
}

.dropdown{
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  min-width: 280px;
  padding: 10px;

  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.dropdown a{
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  font-weight: 520;
  white-space: nowrap;
}
.dropdown a:hover{ background: rgba(0,0,0,.06); }

/* Desktop: Dropdown on hover */
@media (min-width: 901px){
  /*.has-dropdown:hover .dropdown{ display: block; }*/
}

/* Click-open state (mobile + optional desktop click) */
.has-dropdown.open .dropdown{ display: block; }

/* Screen-reader only */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Mobile layout */
@media (max-width: 900px){
  .onzuma-nav__toggle{ display: inline-flex; }

  .onzuma-nav__menu{
    display: none;
    width: 100%;
  }

  .onzuma-nav.is-open .onzuma-nav__menu{
    display: block;
  }

  .onzuma-nav__inner{
    flex-wrap: wrap;
    align-items: center;
  }

  .onzuma-nav__links{
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;

    margin-top: 10px;
    padding: 10px;

    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
  }

  .onzuma-link, .onzuma-btn{
    justify-content: flex-start;
    width: 100%;
  }

  .dropdown{
    position: static;
    box-shadow: none;
    border-radius: 12px;
    margin-top: 6px;
  }
}







.field{
  display: grid;
  height: 90%;
}

.field__label{
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.field__input,
.field__select,
.field__textarea{
  /*width: 90% !important;*/
  width: 70% !important;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.9);

  font: inherit;
  color: #111;

  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.field__textarea{
  min-height: 120px;
  resize: vertical;
}

/* Placeholder etwas ruhiger */
.field__input::placeholder,
.field__textarea::placeholder{
  color: rgba(0,0,0,.45);
}

/* Hover */
.field__input:hover,
.field__select:hover,
.field__textarea:hover{
  border-color: rgba(0,0,0,.20);
}

/* Focus: klarer Ring */
.field__input:focus,
.field__select:focus,
.field__textarea:focus{
  outline: none;
  border-color: rgba(17,17,17,.55);
  box-shadow: 0 0 0 4px rgba(17,17,17,.12);
  background: #fff;
}

/* Disabled */
.field__input:disabled,
.field__select:disabled,
.field__textarea:disabled{
  background: rgba(0,0,0,.03);
  color: rgba(0,0,0,.45);
  cursor: not-allowed;
}

/* Fehlerzustand (einfach Klasse am Wrapper setzen) */
.field.is-error .field__input,
.field.is-error .field__select,
.field.is-error .field__textarea{
  border-color: rgba(220,38,38,.65);
  box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}

.field__hint{
  margin: 0;
  font-size: 12px;
  color: rgba(0,0,0,.55);
}
.field.is-error .field__hint{
  color: rgba(220,38,38,.85);
}

/* Multi-Select erkennt man über [multiple] */
.field__select[multiple]{
  height: 60px;        /* statt 44px */
  padding: 10px;
  border-radius: 14px;

  /* wichtig: Listbox wirkt besser mit etwas mehr Innenabstand */
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.12);

  /* Text */
  line-height: 1.35;
}

.field__input.full-width {
  width: 288px !important;
  padding: 4px;
  padding-left: 8px;
}

/* Option styling (funktioniert in vielen Browsern; nicht überall 100% kontrollierbar) */
.field__select[multiple] option{
  padding: 1px 1px;
}

/* Hover/Fokus wie bei Inputs */
.field__select[multiple]:hover{
  border-color: rgba(0,0,0,.20);
}

tr#filteroptions1 th select.tooltipenabled,
select.tooltipenable {
  overflow-y: auto;
  scrollbar-gutter: stable;
  resize: vertical;
}


#filteroptions1 select.tooltipenabled{
  height: 65px;
}






















/*** Wizard Menü ***/
/* Container: eine Zeile + Scroll bei Bedarf */
#wizard {
  display: flex;
  flex-wrap: nowrap;               /* niemals umbrechen */
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Slash & <br> aus dem HTML visuell entfernen */
#wizard > span + span::before,
#wizard br {
  display: none;
}

/* Grundstil für alle Steps (grau) */
#wizard span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;            /* Pill */
  background: #d8d8d8;
  white-space: nowrap;             /* Text bleibt einzeilig */
}

/* Links */
#wizard span a {
  color: rgba(0, 0, 0, 0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* Hover nur wenn klickbar (nicht incomplete) */
#wizard span:not(.incomplete):hover {
  filter: brightness(0.96);
}

/* Aktiver Schritt: grün */
#wizard span.active {
  background: #41b558;
}
#wizard span.active a {
  color: #fff;
}

/* Incomplete: optional "disabled" wirken lassen */
#wizard span.incomplete {
  opacity: 0.65;
}
#wizard span.incomplete a {
  pointer-events: none;
  cursor: default;
}

/* Optional: Fokus-Stil für Accessibility */
#wizard span a:focus-visible {
  outline: 2px solid rgba(65, 181, 88, 0.55);
  outline-offset: 2px;
  border-radius: 8px;
}


#last_modified {
  margin: 0;
  padding: 0;
  float: right;
}

.inputHelp {
  position: absolute;
  top: calc(100% + 5px); /* Positioniert unter dem input */
  left: 0; /* Anpassung an das input */
  background-color: #f9d76b; /* Moderne Farbe für ein Informationsfeld */
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); /* Schatten für hervorragende Trennung */
  padding: 8px 16px; /* Größerer Padding für bessere Lesbarkeit */
  border: 1px solid #d9edf7; /* Moderne Border-Stil */
  margin: 0;
  display: none; /* Standardmäßig verborgen */
  z-index: 1000; /* Sicherstellt, dass es über anderen Elementen */
  width: 300px;
}

.inputHelp h1 {
  font-size: 1.2em; /* Größerer Titel für bessere Lesbarkeit */
  margin: 0 0 8px; /* Abstand unter dem Titel */
  padding: 3px;
  background: #fdeaa3;
  color: #444;
  border: 1px solid #f9d76b;
  border-radius: 4px;
  display: none;
}

.inputHelp.show {
  display: block; /* Anzeigen, wenn das input überfahren wird */
}

.infoIcon{
  vertical-align: top;
}

fieldset {
  border: none;
  margin-bottom: 24px;
  padding: 5px 20px 10px;  
  width: 90%;

  background: #ffffff;
  border-radius: 12px;

  /* dezente Tiefe */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.08);

  position: relative;
}

/* Legend wird zu einem Header */
fieldset legend {
  padding: 0 0 6px 0;
  margin-bottom: 6px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #111827;

  border-bottom: 1px solid #e5e7eb;
  width: 100%;
}

/* Base message style */
.message {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding: 12px 14px;
  margin: 12px 0;

  border-radius: 12px;
  font-weight: 500;
  line-height: 1.35;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  text-shadow: none;
  font-size: 100%;
}

/* Error message */
.message.error,
.message-error,
.message--error {
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #7f1d1d;
}

/* Icon bubble */
.message.error::before,
.message-error::before,
.message--error::before {
  content: "!";
  flex: 0 0 auto;

  width: 22px;
  height: 22px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.30);
  color: #b91c1c;

  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  margin-top: 1px;
}

/* Links inside messages */
.message a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Optional: subtle animation */
@media (prefers-reduced-motion: no-preference) {
  .message {
    animation: message-pop 140ms ease-out;
  }

  @keyframes message-pop {
    from { transform: translateY(-4px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
}

.message.success {
  background: rgba(22, 163, 74, 0.10);
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: #14532d;
}

.message.warning {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.30);
  color: #713f12;
}

.message.info {
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #1e3a8a;
}

.message.warning::before {
  content: "!";
  flex: 0 0 auto;

  width: 22px;
  height: 22px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(234, 179, 8, 0.20);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #854d0e;

  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  margin-top: 1px;
}

.message.success::before {
  content: "✓";
  flex: 0 0 auto;

  width: 22px;
  height: 22px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(22, 163, 74, 0.30);
  color: #166534;

  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  margin-top: 1px;
}

/* Applications Index Comments */

textarea#ApplicationComment{
  height: 185px;
}

/* Applications Index Comments End*/

/* Flatpickr */
input.flatpickr-date{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  cursor: pointer;
  padding-right: 2.5rem;
  width: 120px;
}


.description {
  font-size: 12px;
}

.input.checkbox.targetGroup {
  font-size: larger;
  color: #41b558;
  padding-left: 0px;
}

fieldset.notice,
.notice {
  background: #f9d76b;
  border-color: #f9d76b;
  border-radius: 12px;
  width: 100%;
  padding: 5px 20px 10px;
}

fieldset.notice legend,
.notice legend,
.notice h3 {
  font-size: 120%;
  border: none;
  color: #111827;
  font-weight: bold;
}

div.container div.form fieldset,
div.centered {
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}


div.centered button {
  float: right;
  box-shadow: none;
}


.input.checkbox.subjects label{
  display: block;
  padding-left: 2.0em;
  /*text-indent: -2.0em;*/
}

.input.checkbox.subjects input[type="checkbox"]{
  margin-right: .4em;
}

.input.checkbox.subjects .label-text,
.input.checkbox.subjects .description{
  display: inline;
}

.input.checkbox.subjects .description{
  margin-left: .25em;
}


div.RecieptExplanationDatesDiv {
  width: 40%;
  max-width: 315px;
}

div.RecieptExplanationDiv {
  width:55%;
}

.RecieptExplanation {
  width: 100%;
  max-width: 1104px;
}

fieldset fieldset legend {
  color: red;
}

tr#filteroptions1 input {
  margin-top: 5px;
}

button.saveSubmit{
  margin: 0 5px;
}


td.app-submitted img {
  display: block;
  margin: auto;
}

.login-form {
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
}

.forgot-password-link{
  float: left;
}
