@font-face {
  font-family: "Inter";
  src: url('/fonts/inter.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/material-icons.woff2') format('woff2');
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: var(--background-secondary);
  color: var(--text-secondary);
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
}


select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: var(--background-primary);
    color: var(--text-primary);
}

.icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -moz-font-feature-settings: 'liga';
  -moz-osx-font-smoothing: grayscale;
}

button:not(.secondary):not(.tertiary), input[type="submit"]:not(.secondary):not(.tertiary), a.primary {
  background: var(--accent-color);
  border: none;
  border-radius: 50px;
  box-shadow: none;
  color: #fff;
  padding: 12px 24px;
  font-size: 17px;
  transition: background 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (hover: hover) {
  button:hover:not(:disabled):not(.secondary):not(.tertiary), input[type="submit"]:hover:not(:disabled):not(.secondary):not(.tertiary), a.primary:hover:not(:disabled) {
    background-color: #1F5Fff;
    box-shadow: 0px 1px 1px #9F9F9F;
  }
}

button:active:not(:disabled):not(.secondary):not(.tertiary), input[type="submit"]:active:not(:disabled):not(.secondary):not(.tertiary), a.primary:active:not(:disabled) {
  box-shadow: none;
  background-color: #0030e4;
}

button:disabled:not(.secondary):not(.tertiary), input[type="submit"]:disabled:not(.secondary):not(.tertiary), a.primary:disabled {
  background: rgba(122, 122, 122, 0.1);
  color: #AAAAAA;
  cursor: not-allowed;
}






button.secondary, input[type="submit"].secondary, a.secondary {
  background-color: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 50px;
  box-shadow: none;
  color: #444444;
  padding: 12px 24px;
  font-size: 17px;
  transition: background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (hover: hover) {
  button.secondary:hover:not(:disabled), input[type="submit"].secondary:hover:not(:disabled), a.secondary:hover:not(:disabled) {
    background-color: #FFFFFF;
    box-shadow: 0px 1px 1px #9F9F9F;
  }
}

button.secondary:active:not(:disabled), input[type="submit"].secondary:active:not(:disabled), a.secondary:active:not(:disabled) {
  box-shadow: none;
  background-color: #EEEEEE;
}

button.secondary:disabled, input[type="submit"].secondary:disabled, a.secondary:disabled {
  background: rgba(122, 122, 122, 0.1);
  color: #AAAAAA;
  cursor: not-allowed;
  border: none;
}




button.tertiary, input[type="submit"].tertiary, a.tertiary {
  background-color: rgba(0, 0, 0, 0);
  border: none;
  border-radius: 50px;
  box-shadow: none;
  color: #444444;
  padding: 12px 24px;
  font-size: 17px;
  transition: background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (hover: hover) {
  button.tertiary:hover:not(:disabled), input[type="submit"].tertiary:hover:not(:disabled), a.tertiary:hover:not(:disabled) {
    background-color: rgba(170, 170, 170, 0.3);
  }
}

button.tertiary:active:not(:disabled), input[type="submit"].tertiary:active:not(:disabled), a.tertiary:active:not(:disabled) {
  background-color: rgba(160, 160, 160, 0.6);
}

button.tertiary:disabled, input[type="submit"].tertiary:disabled, a.tertiary:disabled {
  display: none;
  background: rgba(122, 122, 122, 0.1);
  color: #AAAAAA;
  cursor: not-allowed;
  border: none;
}





@media (prefers-color-scheme: dark)
{

  button.secondary, input[type="submit"].secondary, a.secondary {
    background-color: #000;
    border: 1px solid #999;
    color: #EFEFEF;
  }

  @media (hover: hover) {
    button.secondary:hover:not(:disabled), input[type="submit"].secondary:hover:not(:disabled), a.secondary:hover:not(:disabled) {
      background-color: #111;
      box-shadow: 0px 1px 1px #9F9F9F;
    }
  }

  button.secondary:active:not(:disabled), input[type="submit"].secondary:active:not(:disabled), a.secondary:active:not(:disabled) {
    background-color: #333;
  }

  button.secondary:disabled, input[type="submit"].secondary:disabled, a.secondary:disabled {
    background: rgba(122, 122, 122, 0.1);
    color: #444;
  }

  button.tertiary, input[type="submit"].tertiary, a.tertiary {
    color: #DEDEDE;
  }
}






input[type="text"], input[type="password"], textarea
{
  
  border: 1px solid #d2d2d2;
  border-radius: 25px;
  background-color: #ffffff;
  padding: 10px 14px;
  font-size: 16px;
  color: #1d1d1d;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: "Inter", sans-serif;
	src: url('/fonts/inter.ttf') format('ttf');
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
}


input[type="text"]::placeholder, input[type="password"]::placeholder, textarea::placeholder
{
  color: #86868b;
  opacity: 1;
}


input[type="text"]:focus, input[type="password"]:focus, textarea:focus
{
  outline: none;
  /*border-color: #007AFF;*/
  /*box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);*/
  border-color: #B5B5B5;
  box-shadow: 0 1px 2px #AAAAAA;
}

textarea
{
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}



@media (prefers-color-scheme: dark)
{
  input[type="text"], input[type="password"], textarea {
    background-color: #151515;
    border: 1px solid #777;
    color: #FFFFFF;
  }

  input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    background-color: #202020;
    box-shadow: none;
  }
}






button.icon, input[type="submit"].icon, a.icon {
  padding: 8px !important;
  font-size: 24px;
}





.popup {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  z-index: 100000;
  justify-content: center; /* Horizontale Zentrierung */
  align-items: center; /* Vertikale Zentrierung */
}

@media (prefers-color-scheme: dark)
{
  .popup {
    background-color: rgba(255, 255, 255, 0.05);
  }
}

.popup > div {
  background-color: #FFFFFF;
  border-radius: 14px;
  padding: 18px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark)
{
  .popup > div {
    background-color: #000000;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 500px) {
  .popup > div {
    width: 100%;
    border-radius: 0;
  }
}

.popup {
  transition: backdrop-filter 0.3s ease;
}

.popup > div > div.header {
 margin: 0px;
  border-bottom: 1px solid #CCCCCC;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.popup > div > div.header > p{
  font-size: 22px;
}



.popup > div > div.content p:last-child {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.popup > div > div.content p:last-child > button:only-child, .popup > div > div.content p:last-child > input[type="submit"]:only-child {
  margin-left: auto;
  margin-right: 0;
}















.content-box {
  min-width: 901px;
  max-width: 901px;
  margin: 0 auto;
  background-color: var(--background-primary);
  border-radius: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}



.content-box-content{
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
}



.content-box-content.padding {
  padding: 15px 30px;
  box-sizing: border-box;
}


.content-box-footer {
  display: flex;
  justify-content: right;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
  flex-shrink: 0;
  align-items: center;
}

.content-box-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid #f0f0f0;
  margin-top: auto;
  flex-shrink: 0;
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  .content-box {
    box-shadow: 0 1px 5px rgba(255, 255, 255, 0.4);
  }
}

@media (max-width: 900px) {
  .content-box {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .content-box-footer {
    padding: 6px 12px;
    border-top: 1px solid #f0f0f0;
  }
  .content-box-header {
    padding: 6px 12px;
    border-bottom: 1px solid #f0f0f0;
  }
}



p.submit-button {
  display: flex;
  justify-content: right;
}






.content-box-header-left, .content-box-header-right {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}



.content-box-header h2 {
  font-size: 25px;
}


.content-box-content h3 {
  font-size: 22px;
}











section {
  background-color: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  section {
    background-color: #000;
    box-shadow: 0 1px 5px rgba(255, 255, 255, 0.4);
  }
}













/* Basis-Stil für alle Boxen */
.box {
  min-width: 768px;
  max-width: 768px;
  margin: 20px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Header-Stil */
.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  gap: 8px;
  border-bottom: 1px solid #f0f0f0;
}

/* Header-Inhalt (Titel + Back-Button) */
.box-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Back- und Close-Buttons (standardmäßig ausgeblendet) */
.box-back,
.box-close {
  display: none;
}

/* Zeige Back-Button, wenn Klasse .has-back vorhanden */
.has-back .box-back {
  display: block;
}

/* Zeige Close-Button, wenn Klasse .has-close vorhanden */
.has-close .box-close {
  display: block;
}

/* Content-Stil */
.box-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

/* Padding für Content, wenn Klasse .has-padding vorhanden */
.has-padding .box-content {
  padding: 15px 30px;
  box-sizing: border-box;
}

/* Footer-Stil */
.box-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 16px;
  gap: 8px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .box {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .box-header,
  .box-footer {
    padding: 6px 12px;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .box {
    background: #000;
    box-shadow: 0 1px 5px rgba(255, 255, 255, 0.4);
  }
}





.row-menu {
  display: flex; justify-content: center; gap: 10px; flex-align: row; margin: 5px 0px; flex-wrap: wrap; align-items: center;
}







/* Basis-Stil für Checkboxen */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 50px;
  height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  vertical-align: middle;
  background: transparent;
  border: none;
  outline: none;
  margin: 0;
}

/* Symbol für deaktivierten Zustand (check_box_outline_blank) */
input[type="checkbox"]::before {
  content: "check_box_outline_blank";
  font-family: 'Material Symbols Outlined';
  font-size: 30px;
  line-height: 1;
  color: #cccccc;
  position: absolute;
  transition: color 0.1s ease;
}

/* Symbol für aktivierten Zustand (check_box) */
input[type="checkbox"]:checked::before {
  content: "check_box";
  font-family: 'Material Symbols Outlined';
  font-size: 30px;
  line-height: 1;
  color: #0041ff;
}

/* Symbol für deaktivierten Zustand (toggle_off) */
input[type="checkbox"].toggle::before {
  content: "toggle_off";
  font-family: 'Material Symbols Outlined';
  font-size: 45px;
  line-height: 1;
  color: #cccccc;
  position: absolute;
  transition: color 0.1s ease;
}

/* Symbol für aktivierten Zustand (toggle_on) */
input[type="checkbox"].toggle:checked::before {
  content: "toggle_on";
  font-family: 'Material Symbols Outlined';
  font-size: 45px;
  line-height: 1;
  color: #0041ff;
}

/* Fokus-Stil für Barrierefreiheit */
input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(0, 65, 255, 0.3);
  border-radius: 4px;
}

/* Deaktivierter Zustand */
input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Dark Mode: Anpassung der Farben */
@media (prefers-color-scheme: dark) {
  input[type="checkbox"]::before {
    color: #555555;
  }

  input[type="checkbox"]:checked::before {
    color: #1F5Fff;
  }

  input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(31, 95, 255, 0.5);
  }
}


.hidden {
  display: none !important;
}