@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-size-base: 1rem;
  --font-size-h1: calc(var(--font-size-base) * 1.6);
  --font-size-h2: calc(var(--font-size-base) * 1.4);
  --font-size-h3: calc(var(--font-size-base) * 1.2);
  --font-size-h4: var(--font-size-base);
  --font-size-small: calc(var(--font-size-base) * 0.85);
  --contrast-bg: #ffffff;
  --contrast-text: #3b3b3b;
  --primary-color: #548AB0;
  --primary-hover: #000000;
  --input-border: #9b9b9b;
  --modal-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* * {
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}*/

body {
  font-size: var(--font-size-base);
  background-color: var(--contrast-bg);
  color: var(--contrast-text);
  font-family: 'Poppins', sans-serif;
}

img {
  width: 100%;
}

body.dark-mode {
  --contrast-bg: #1e1e1e;
  --contrast-text: #f5f5f5;
}

.dark-mode-brightness {
  transition: filter 0s ease-in-out;
}

body.dark-mode .dark-mode-brightness {
  filter: brightness(0.6) contrast(1.1);
}

body.contrast-mode {
  --contrast-bg: #000000;
  --contrast-text: #FFD700;
}

h1, h2, h3, h4, h5, h6, a,
footer, footer a {
  color: var(--contrast-text);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

.accessibility-toolbar {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--contrast-bg);
  color: var(--contrast-text);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

body.dark-mode .accessibility-toolbar {
  background: rgba(30, 30, 30, 0.9);
}

body.dark-mode .alert-warning {
  background: rgba(30, 30, 30, 0.9);
  color: var(--contrast-text);
  border-color: var(--input-border);
}

body.contrast-mode .accessibility-toolbar {
  background: #000;
  color: #FFD700;
}

body.contrast-mode .accessibility-toolbar button {
  color: #FFD700;
}

body.contrast-mode .alert.alert-warning {
	background-color: #000000 !important;
	color: #FFD700 !important;
	border-color: #FFD700 !important;
}

body.contrast-mode .alert.alert-warning a {
	color: #FFD700 !important;
	text-decoration: underline;
}



.accessibility-toolbar button {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: inherit;
  padding: 5px;
  margin-bottom: 0px;
}

.accessibility-toolbar button:hover {
  background: #000;
}

.toolbar-buttons.hidden {
  display: none;
}

button,
.button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  padding: 10px;
  font-size: var(--font-size-base);
  transition: background 0.2s;
}

button:hover,
.button:hover {
  background: var(--primary-hover);
  color: #fff;
}

:focus-visible {
  outline: 2px dashed currentColor !important;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
label:focus-visible,
[tabindex]:focus-visible,
.focus-visible-only:focus-visible {
  outline: 2px dashed currentColor !important;
  outline-offset: 2px !important;
}

.using-mouse :focus {
  outline: none !important;
}

form {
  display: flex;
  flex-direction: column;
}

input, textarea, select, button {
  margin-bottom: 15px;
  padding: 10px;
  font-size: var(--font-size-base);
  border-radius: .25rem;
  border: 1px solid var(--input-border);
  background: var(--contrast-bg);
  color: var(--contrast-text);
}

input::placeholder,
textarea::placeholder {
  color: #888;
}

.checkbox-group {
  line-height: 2.5;
}

@media (max-width: 575px) {
  .checkbox-group {
    line-height: 2;
  }
}

.checkbox-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 35px;
  font-size: var(--font-size-base);
  margin-bottom: 20px;
  line-height: 1.5;
}

.checkbox-wrapper input[type="checkbox"],
.checkbox-wrapper input[type="radio"] {
  position: absolute;
  left: 0;
  top: 4px;
  transform: scale(2);
  margin: 0 10px 0 8px;
  padding: 10px;
}

.checkbox-wrapper input[type="radio"] {
  top: 4px;
}

.checkbox-wrapper::after {
  content: attr(data-label);
  margin-left: 5px;
  line-height: 1.5;
  font-size: inherit;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 820px) {
  .checkbox-wrapper input[type="checkbox"] {
    transform: scale(2);
    top: 5px;
  }
}

@media (max-width: 768px) {
  .checkbox-wrapper input[type="checkbox"] {
    transform: scale(1.5);
    top: 5px;
  }
}

@media (max-width: 690px) {
  .checkbox-wrapper input[type="checkbox"] {
    transform: scale(1.5);
    top: 5px;
  }
}

@media (max-width: 575px) {
  .checkbox-wrapper input[type="checkbox"] {
    transform: scale(1.1);
    top: 0px;
  }

  .checkbox-wrapper input[type="radio"] {
    transform: scale(1.1);
    top: 0px;
  }
}

.progressbar-title {
  font-size: calc(var(--font-size-base) * 0.9375);
  font-weight: 700;
  color: #414141;
  margin-top: 0;
  text-transform: uppercase;
}

.progress {
  height: 20px;
  background: #E8ECEF;
  margin-bottom: 8px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.progress .progress-bar {
  position: relative;
  animation: fadeIn 1.5s;
}

.progress-bar {
  background: #BDBEC0;
}

.progress .progress-value {
  font-size: var(--font-size-small);
  font-weight: 700;
  color: #232323;
  position: absolute;
  right: 28px;
  z-index: 1;
  margin-top: 2px;
}

.progress .progress-icon {
  background: #E8ECEF;
  border-bottom: 35px solid;
  border-right: 30px solid transparent;
  position: absolute;
  right: 0;
  top: 0;
}

.progress-icon {
  border-bottom-color: #BDBEC0 !important;
}

.pb-pl {
  padding-left: 70px;
}

@media (max-width: 768px) {
  .pb-pl {
    padding-left: 70px;
  }
}

@media (max-width: 575px) {
  .pb-pl {
    padding-left: 80px;
  }
}

.drag-handle {
  cursor: move;
  font-size: 20px;
  position: absolute;
  top: 10px;
  right: 10px;
  user-select: none;
}

.dragging {
  opacity: 0.5;
  background-color: #e3e3e3;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.modal-overlay.active {
  display: flex;
}

.modalcontent {
  background: var(--contrast-bg);
  color: var(--contrast-text);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  box-shadow: var(--modal-shadow);
  animation: fadeInModal 0.3s ease;
}

.modalcontent .close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--contrast-text);
}

.fc-ci {
  color: var(--contrast-text);
}

.hidden {
  display: none !important;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-webkit-keyframes animate-positive {
  0% { width: 0%; }
}

@keyframes animate-positive {
  0% { width: 0%; }
}

/* Fehlermeldung stilisiert */
#error-message.error {
  color: red;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Animation beim Einblenden */
.animated-shake {
  animation: shake 0.3s ease-in-out;
}

/* Shake-Effekt */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}