/**
 * Mitmach-Box Styles
 *
 * Theme-unabhängig, damit die Mitmach-Box auch auf Sites ohne ff-kids
 * (z. B. der App-Instanz) korrekt aussieht, siehe mitmachbox-multisite.php.
 * Ursprünglich aus ff-kids.css extrahiert.
 */
@font-face {
  font-family: 'MBEmoji';
  src: url("../fonts/mitmachbox-emoji.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+2600-27BF, U+2B50, U+FE0F, U+1F300-1FAFF;
}
.mitmach-box-text {
  margin: 0 0 1em;
}
.mitmach-box-preview-list {
  max-width: 600px;
  max-height: 420px;
  margin: 1rem auto 1.5em;
  padding: 0 0.5rem 0 0.75rem;
  overflow-y: auto;
}
.mitmach-box-preview-list__item + .mitmach-box-preview-list__item {
  margin-top: 0.75em;
}
.mitmach-box-preview-list .mitmachbox-post {
  background-color: #cfe9fb;
  border-color: #cfe9fb;
}
.mitmach-box-preview-list .mitmachbox-post .mitmachbox-post__title-wrapper:after {
  border-bottom-color: #cfe9fb;
}
body.page-mitmach-box .card-block > * {
  max-width: 700px;
  margin-left: 0;
  margin-right: auto;
}
body.page-mitmach-box .card-block > .mitmachbox-feed {
  max-width: none;
}
body.page-mitmach-box .card-block > .mitmachbox-feed-footer {
  max-width: 100%;
}
body.page-mitmach-box .card-block > .mitmachbox-form-card {
  max-width: none;
}
body.page-mitmach-box .card-block > .mitmachbox-form-toggle {
  max-width: none;
}
body.page-mitmach-box .card-block > .mitmachbox-banner {
  max-width: none;
}
body.page-mitmach-box .card-block > .mitmachbox-page-title {
  max-width: none;
}
body.page-mitmach-box .card-block > .mitmachbox-page-title-row {
  max-width: none;
}
body.page-mitmach-box .card-block > .mitmachbox-gallery {
  max-width: none;
}
body.page-mitmach-box .mitmachbox-banner {
  position: relative;
  z-index: 0;
  margin: 0 -2rem 3rem -1.9rem;
  padding: 2.5em 3.3em;
  background-color: #e9eda0;
  display: flex;
  align-items: center;
  gap: 1.5em;
}
body.page-mitmach-box .mitmachbox-banner:before,
body.page-mitmach-box .mitmachbox-banner:after {
  content: "";
  display: block;
  position: absolute;
  bottom: -0.75em;
  border-bottom: 0.75em solid transparent;
  z-index: -1;
}
body.page-mitmach-box .mitmachbox-banner:before {
  left: 0;
  border-right: 0.75em solid #5d5f40;
}
body.page-mitmach-box .mitmachbox-banner:after {
  right: 0;
  border-left: 0.75em solid #5d5f40;
}
body.page-mitmach-box .mitmachbox-finn {
  display: none;
  position: absolute;
  top: 175px;
  left: -220px;
  z-index: 1;
}
@media (min-width: 1280px) {
  body.page-mitmach-box .mitmachbox-finn {
      display: block;
    }
}
body.page-mitmach-box .mitmachbox-banner-text {
  flex: 1 1 auto;
  min-width: 0;
}
body.page-mitmach-box .mitmachbox-banner-image {
  flex: 0 1 240px;
  min-width: 0;
}
body.page-mitmach-box .mitmachbox-banner-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
body.page-mitmach-box .mitmachbox-banner-counter {
  position: absolute;
  left: 2.5em;
  bottom: 0.75em;
  font-size: 1.25em;
  font-weight: 700;
  color: #0064aa;
}
@media (max-width: 575px) {
  body.page-mitmach-box .mitmachbox-banner {
      flex-direction: column;
    }
  body.page-mitmach-box .mitmachbox-banner-image {
      width: 100%;
    }
}
.mitmachbox-page-title {
  font-size: 2.25rem;
  margin-top: 27px;
  margin-bottom: 54px;
  padding-top: 27px;
  text-align: center;
}
.mitmachbox-page-title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 27px;
  margin-bottom: 54px;
  padding-top: 27px;
}
.mitmachbox-page-title-row .mitmachbox-page-title {
  grid-column: 2;
  margin: 0;
  padding: 0;
}
.mitmachbox-page-title-row .mitmachbox-back-link {
  grid-column: 1;
  justify-self: start;
}
body.page-abstimmung .mitmachbox-back-link,
body.page-abstimmung .mitmachbox-back-link:hover,
body.page-abstimmung .mitmachbox-back-link:focus {
  color: #0064aa;
}
@media (max-width: 575px) {
  .mitmachbox-page-title-row {
      grid-template-columns: 1fr;
      justify-items: center;
    }
  .mitmachbox-page-title-row .mitmachbox-page-title {
      grid-column: 1;
    }
  .mitmachbox-page-title-row .mitmachbox-back-link {
      grid-column: 1;
      justify-self: center;
    }
}
.mitmachbox-form-title {
  margin-top: 0;
  margin-bottom: 0.75em;
}
body.page-mitmach-box .card-block h1,
body.page-mitmach-box .card-block h2,
body.page-mitmach-box .card-block h3,
body.page-mitmach-box .card-block h4 {
  color: #0064aa;
}
body.page-abstimmung .card-block .mitmachbox-page-title {
  color: #0064aa;
}
body.page-mitmach-box .mitmachbox-banner h1,
body.page-mitmach-box .mitmachbox-banner h2,
body.page-mitmach-box .mitmachbox-banner h3,
body.page-mitmach-box .mitmachbox-banner h4,
body.page-mitmach-box .mitmachbox-banner p {
  color: #0064aa;
}
body.page-mitmach-box .card-block .mitmachbox-form-card h1,
body.page-mitmach-box .card-block .mitmachbox-form-card h2,
body.page-mitmach-box .card-block .mitmachbox-form-card h3,
body.page-mitmach-box .card-block .mitmachbox-form-card h4,
body.page-mitmach-box .card-block .mitmachbox-post h1,
body.page-mitmach-box .card-block .mitmachbox-post h2,
body.page-mitmach-box .card-block .mitmachbox-post h3,
body.page-mitmach-box .card-block .mitmachbox-post h4 {
  color: inherit;
}
body.page-mitmach-box .mitmachbox-page-layout {
  position: relative;
  display: flex;
  flex-direction: column;
}
body.page-mitmach-box .mitmachbox-side-column {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 1.5em;
}
body.page-mitmach-box .mitmachbox-sidebar-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}
body.page-mitmach-box .mitmachbox-sidebar-buttons .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
  padding: 1.5em 1.25em;
  color: #00375e;
}
body.page-mitmach-box .mitmachbox-sidebar-buttons .btn:hover,
body.page-mitmach-box .mitmachbox-sidebar-buttons .btn:focus {
  color: #00375e;
}
body.page-mitmach-box .mitmachbox-sidebar-buttons .btn-success {
  background-color: #41a523;
  border-color: #41a523;
  box-shadow: 0 2px 0 0 #245b13;
}
body.page-mitmach-box .mitmachbox-sidebar-buttons .btn-success:hover,
body.page-mitmach-box .mitmachbox-sidebar-buttons .btn-success:focus {
  background-color: #5cc93a;
  border-color: #5cc93a;
}
body.page-mitmach-box .mitmachbox-sidebar-buttons .btn-warning {
  background-color: #f65832;
  border-color: #f65832;
  box-shadow: 0 2px 0 0 #87301c;
}
body.page-mitmach-box .mitmachbox-sidebar-buttons .btn-warning:hover,
body.page-mitmach-box .mitmachbox-sidebar-buttons .btn-warning:focus {
  background-color: #ff7d54;
  border-color: #ff7d54;
}
body.page-mitmach-box .mitmachbox-sidebar-buttons .btn-yellow {
  background-color: #ffd60a;
  border-color: #ffd60a;
  box-shadow: 0 2px 0 0 #8c7606;
}
body.page-mitmach-box .mitmachbox-sidebar-buttons .btn-yellow:hover,
body.page-mitmach-box .mitmachbox-sidebar-buttons .btn-yellow:focus {
  background-color: #ffc300;
  border-color: #ffc300;
}
body.page-mitmach-box .mitmachbox-page-layout > .card {
  background-color: #8ed1fc;
}
body.page-abstimmung .mitmachbox-page-layout > .card {
  background-color: #baca25;
}
@media (min-width: 992px) {
  body.page-mitmach-box .mitmachbox-page-layout {
      flex-direction: row;
      align-items: flex-start;
      gap: 2em;
    }
  body.page-mitmach-box .mitmachbox-page-layout > .card {
      flex: 0 0 80%;
      max-width: 80%;
    }
  body.page-mitmach-box .mitmachbox-side-column {
      order: 0;
      flex: 0 0 220px;
      width: 220px;
      margin-bottom: 0;
    }
  body.page-abstimmung .mitmachbox-page-layout > .card {
      flex-basis: 100%;
      max-width: 100%;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  body.page-mitmach-box .mitmachbox-sidebar-buttons {
      flex-direction: row;
    }
  body.page-mitmach-box .mitmachbox-sidebar-buttons .btn {
      width: auto;
      flex: 1 1 0;
      min-width: 0;
      padding: 0.6em 1em;
      font-size: 0.75em;
    }
}
.mitmachbox-char-counter {
  font-size: 0.85em;
  color: #666;
}
.mitmachbox-form-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  margin: 0 0 1em;
  padding: 0.75em 1em;
  background-color: #fcf8e3;
  border: 1px solid #faf2cc;
  border-radius: 0.3rem;
  color: #8a6d3b;
  font-size: 0.95em;
  font-weight: 700;
}
.mitmachbox-form-notice::before {
  content: "⚠️";
  flex-shrink: 0;
  font-size: 1.2em;
  line-height: 1.3;
}
.mitmachbox-post__image {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.mitmachbox-post__image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5em;
}
.mitmachbox-popup-image {
  position: relative;
  display: inline-flex;
  cursor: zoom-in;
}
.mitmachbox-popup-image__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.mitmachbox-popup-image__icon svg {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
}
.mitmachbox-popup-image:hover .mitmachbox-popup-image__icon,
.mitmachbox-popup-image:focus .mitmachbox-popup-image__icon,
.mitmachbox-popup-image:focus-visible .mitmachbox-popup-image__icon {
  opacity: 1;
}
.mitmachbox-form-card {
  margin: 1.5em auto 1.5em 0;
  background-color: #fff;
}
#mitmachbox-form-card {
  border: 2px solid #0064aa;
  border-radius: 0.15rem;
}
.mitmachbox-form-card,
.mitmachbox-form-card * {
  box-sizing: border-box;
}
.mitmachbox-form-toggle {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 1.5em 0 0;
  padding: 0.75em 1em;
  background-color: #fff;
  color: #0064aa;
  border: 2px solid #0064aa;
  border-radius: 0.15rem;
  font-weight: 700;
  font-size: 1.1em;
  text-align: left;
  cursor: pointer;
}
.mitmachbox-form-toggle:hover,
.mitmachbox-form-toggle:focus {
  background-color: #eef6fb;
}
.mitmachbox-form-toggle--open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}
.mitmachbox-form-toggle::after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  margin-left: 0.75em;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transform-origin: center;
  transition: transform 0.15s ease;
}
.mitmachbox-form-toggle--open::after {
  transform: rotate(180deg);
}
.mitmachbox-form-toggle + .mitmachbox-main-form-card {
  margin-top: 0;
}
.mitmachbox-form-toggle--open + #mitmachbox-form-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}
.mitmachbox-main-form-card {
  display: none;
}
.mitmachbox-main-form-card.mitmachbox-main-form-card--open {
  display: block;
}
.mitmachbox-form-hp {
  position: absolute;
  left: -9999px;
}
.mitmachbox-form-field {
  margin-bottom: 1em;
}
.mitmachbox-form-row {
  display: flex;
  flex-direction: column;
}
@media (min-width: 576px) {
  .mitmachbox-form-row {
      flex-direction: row;
      align-items: flex-start;
      gap: 1.5em;
    }
  .mitmachbox-form-row .mitmachbox-form-field--nickname {
      flex: 1 1 auto;
      min-width: 0;
    }
  .mitmachbox-form-row .mitmachbox-avatar-field {
      flex: 0 0 auto;
    }
}
.mitmachbox-form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25em;
}
label.mitmachbox-account-toggle {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.5em;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
}
.mitmachbox-account-toggle-input {
  margin: 0;
  flex-shrink: 0;
}
#mitmachbox-form-card .mitmachbox-account-field {
  display: none;
  margin-top: 0.15em;
  margin-left: 1.5em;
}
#mitmachbox-form-card .mitmachbox-account-field.mitmachbox-account-field--visible {
  display: block;
}
.mitmachbox-wettbewerb-email-field {
  display: none;
  margin-top: 0.15em;
  margin-left: 1.5em;
}
.mitmachbox-wettbewerb-email-field.mitmachbox-wettbewerb-email-field--visible {
  display: block;
}
.mitmachbox-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
label.mitmachbox-file-trigger {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 999px;
  cursor: pointer;
}
.mitmachbox-file-trigger:hover,
.mitmachbox-file-trigger:focus {
  border-color: #0064aa;
}
.mitmachbox-file-input:focus-visible + .mitmachbox-file-trigger {
  outline: 2px solid #0064aa;
  outline-offset: 2px;
}
.mitmachbox-image-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.15em 0.5em;
  margin: 0 0 0.75em;
  padding: 0;
  list-style: none;
}
.mitmachbox-image-list__item {
  box-sizing: border-box;
  display: block;
  padding: 0;
}
.mitmachbox-image-list__thumb-wrap {
  position: relative;
  display: block;
  width: 6rem;
  height: 6rem;
}
.mitmachbox-image-list__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #fff;
  border: 2px solid #ddd;
}
.mitmachbox-image-list__remove {
  position: absolute;
  top: -0.5em;
  right: -0.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.6em;
  height: 1.6em;
  padding: 0;
  background-color: #fff;
  border: 2px solid #c52431;
  border-radius: 50%;
  color: #c52431;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.mitmachbox-image-list__remove:hover,
.mitmachbox-image-list__remove:focus-visible {
  background-color: #fbe6e6;
}
.mitmachbox-image-max-hint {
  display: block;
  margin-top: 0.4em;
}
.mitmachbox-avatar-field {
  margin-bottom: 1em;
}
.mitmachbox-avatar-field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25em;
}
.mitmachbox-avatar-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  line-height: 1.25;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}
.mitmachbox-avatar-trigger:hover,
.mitmachbox-avatar-trigger:focus {
  border-color: #0064aa;
}
.mitmachbox-avatar-gallery__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.mitmachbox-avatar-dialog {
  max-width: 640px;
  width: calc(100vw - 2rem);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 1.75em 1.5em 1.5em;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
@media (min-width: 992px) {
  .mitmachbox-avatar-dialog {
      max-width: 960px;
    }
}
.mitmachbox-avatar-dialog::backdrop {
  background-color: rgba(0, 20, 60, 0.45);
}
.mitmachbox-avatar-dialog__close {
  position: absolute;
  top: 0.6em;
  right: 0.6em;
  width: 2em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  line-height: 1;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #666;
}
.mitmachbox-avatar-dialog__close:hover,
.mitmachbox-avatar-dialog__close:focus {
  background-color: #eef6fb;
  color: #0064aa;
}
.mitmachbox-avatar-dialog__preview {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25em;
}
.mitmachbox-avatar-dialog__preview .mitmachbox-post__avatar {
  width: 7rem;
  height: 7rem;
  font-size: 5.25rem;
  border: 2px solid #ddd;
}
.mitmachbox-avatar-dialog__step-indicator {
  margin: 0 0 0.25em;
  font-size: 0.8em;
  font-weight: 700;
  color: #0064aa;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mitmachbox-avatar-dialog__heading {
  margin: 0 0 0.25em;
  font-size: 1.15em;
}
.mitmachbox-avatar-dialog__hint {
  margin: 0 0 1em;
  font-size: 0.9em;
  color: #666;
}
.mitmachbox-avatar-dialog__nav {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 1.5em;
}
.mitmachbox-avatar-dialog__next,
.mitmachbox-avatar-dialog__done {
  margin-left: auto;
}
.mitmachbox-avatar-option {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
}
.mitmachbox-avatar-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mitmachbox-avatar-option__emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4rem;
  padding: 0.4rem;
  font-size: 2.4rem;
  line-height: 1;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.mitmachbox-avatar-option__emoji .mitmachbox-post__avatar-img {
  width: 100%;
  height: 100%;
}
.mitmachbox-avatar-option input:checked + .mitmachbox-avatar-option__emoji {
  border-color: #0064aa;
  transform: scale(1.1);
}
.mitmachbox-avatar-option input:focus-visible + .mitmachbox-avatar-option__emoji {
  outline: 2px solid #0064aa;
  outline-offset: 2px;
}
.mitmachbox-avatar-color-option {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
}
.mitmachbox-avatar-color-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mitmachbox-avatar-color-option__swatch {
  display: block;
  width: 1.8em;
  height: 1.8em;
  border: 2px solid #ddd;
  border-radius: 50%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.mitmachbox-avatar-color-option input:checked + .mitmachbox-avatar-color-option__swatch {
  border-color: #0064aa;
  transform: scale(1.1);
}
.mitmachbox-avatar-color-option input:focus-visible + .mitmachbox-avatar-color-option__swatch {
  outline: 2px solid #0064aa;
  outline-offset: 2px;
}
.mitmachbox-avatar-item-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.5em 0.8em;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4em;
  transition: border-color 0.15s ease;
}
.mitmachbox-avatar-item-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mitmachbox-avatar-item-option:has(input:checked) {
  border-color: #0064aa;
  background-color: #eef6fb;
}
.mitmachbox-avatar-item-option:has(input:focus-visible) {
  outline: 2px solid #0064aa;
  outline-offset: 2px;
}
.mitmachbox-avatar-item-option__icon {
  display: flex;
  width: 1.8em;
  height: 1.6em;
  align-items: center;
  justify-content: center;
}
.mitmachbox-avatar-item-option__icon svg {
  max-width: 100%;
  max-height: 100%;
}
.mitmachbox-avatar-item-option__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mitmachbox-form-hint {
  display: block;
  font-size: 0.8em;
  color: #666;
  margin-top: 0.25em;
}
.mitmachbox-image-hint {
  font-size: 16px;
}
.mitmachbox-char-counter {
  display: block;
  margin-top: 0.25em;
}
.mitmachbox-char-counter--over,
.mitmachbox-form-error {
  color: #c52431;
  font-weight: 700;
}
.mitmachbox-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-bottom: 0.4em;
}
.mitmachbox-editor-toolbar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  padding: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.mitmachbox-editor-toolbar__button::-webkit-details-marker {
  display: none;
}
.mitmachbox-editor-toolbar__button:hover,
.mitmachbox-editor-toolbar__button:focus {
  border-color: #0064aa;
}
.mitmachbox-editor-content {
  min-height: 6em;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.mitmachbox-editor-content:focus {
  outline: 2px solid #0064aa;
  outline-offset: 1px;
}
.mitmachbox-editor-content:empty:before {
  content: attr(data-placeholder);
  color: #767676;
}
.mitmachbox-emoji-picker {
  position: relative;
}
.mitmachbox-emoji-gallery {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5em;
  padding: 0.5em;
  width: 220px;
  max-width: calc(100vw - 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.mitmachbox-emoji-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  font-size: 1.1em;
  background: none;
  border: 0;
  border-radius: 0.3rem;
  cursor: pointer;
}
.mitmachbox-emoji-option:hover,
.mitmachbox-emoji-option:focus {
  background-color: #eef6fb;
}
.mitmachbox-form-error {
  min-height: 2.75em;
  margin: 1.5em 0 0;
  visibility: hidden;
}
.mitmachbox-form-error.mitmachbox-form-error--visible {
  visibility: visible;
}
.mitmachbox-success-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  max-width: 420px;
  width: calc(100vw - 2rem);
  padding: 1.75em 1.5em 1.5em;
  border: 0;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.mitmachbox-success-dialog::backdrop {
  background-color: rgba(0, 20, 60, 0.45);
}
.mitmachbox-success-dialog__text {
  margin: 0 0 1.25em;
}
.mitmachbox-feed {
  margin: 2em auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.mitmachbox-post {
  position: relative;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 0.15rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 1.25em;
  margin-bottom: 0;
}
.mitmachbox-post--pinned {
  border: 2px solid #f15a24;
}
.mitmachbox-post__pin {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.3em;
  z-index: 2;
}
.mitmachbox-post__title-wrapper {
  position: relative;
  display: inline-block;
  margin: 0 0 0.75em -1.7em;
  max-width: calc(100% + 1.7em);
}
.mitmachbox-post__title-wrapper:before,
.mitmachbox-post__title-wrapper:after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.mitmachbox-post__title-wrapper:before {
  border-top: 10px solid rgba(0, 0, 0, 0.4);
  border-right: 10px solid transparent;
}
.mitmachbox-post__title-wrapper:after {
  border-left: 10px solid transparent;
  border-bottom: 10px solid #fff;
}
.mitmachbox-post--comment .mitmachbox-post__title-wrapper:after {
  border-bottom-color: #cfe9fb;
}
.mitmachbox-post__title-wrapper .mitmachbox-post__title {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.6em 0.5em 1em;
  color: #fff;
  background-color: #0064aa;
}
.mitmachbox-post__avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2em;
  height: 2em;
  font-size: 1.5em;
  background-color: #fff;
  border-radius: 50%;
  overflow: visible;
}
.mitmachbox-post__avatar-emoji {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 1;
}
.mitmachbox-post__avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mitmachbox-post__avatar-item {
  position: absolute;
  display: block;
  line-height: 0;
  pointer-events: none;
}
.mitmachbox-post__avatar-item svg {
  display: block;
  width: 100%;
  height: auto;
}
.mitmachbox-post__avatar-item--hut {
  top: 0.05em;
  left: 50%;
  width: 0.9em;
  transform: translateX(-50%);
}
.mitmachbox-post__avatar-item--sonnenbrille {
  top: 52%;
  left: 50%;
  width: 0.65em;
  transform: translate(-50%, -50%);
}
.mitmachbox-post__avatar-item--schleife {
  bottom: 0.35em;
  left: 50%;
  width: 0.75em;
  transform: translateX(-50%);
}
.mitmachbox-post__avatar-item--blume {
  top: 0.05em;
  right: 0.05em;
  width: 0.75em;
}
.mitmachbox-post__avatar-item--cap {
  top: 0.05em;
  left: 50%;
  width: 0.9em;
  transform: translateX(-50%);
}
.mitmachbox-post__avatar-item--krone {
  top: -0.03em;
  left: 50%;
  width: 0.95em;
  transform: translateX(-50%);
}
.mitmachbox-post__avatar-item--brille {
  top: 55%;
  left: 50%;
  width: 0.65em;
  transform: translate(-50%, -50%);
}
.mitmachbox-post__avatar-item--bart {
  top: 62%;
  left: 50%;
  width: 0.85em;
  transform: translate(-50%, -50%);
}
.mitmachbox-post__avatar-item--stern {
  top: 0.05em;
  left: 0.05em;
  width: 0.6em;
}
.mitmachbox-avatar-trigger .mitmachbox-post__avatar {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.mitmachbox-post__title-text {
  display: flex;
  flex-direction: column;
}
.mitmachbox-post__title-wrapper .mitmachbox-post__title:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -0.4em;
  border-right: 0.4em solid #002844;
  border-bottom: 0.4em solid transparent;
  z-index: -1;
}
.mitmachbox-post--comment .mitmachbox-post__title-wrapper {
  margin: 0 0 0.75em -1.4em;
}
.mitmachbox-post--moderator .mitmachbox-post__title-wrapper .mitmachbox-post__title {
  background-color: #41a523;
}
.mitmachbox-post--moderator .mitmachbox-post__title-wrapper .mitmachbox-post__title:before {
  border-right-color: #205111;
}
.mitmachbox-post__date {
  display: block;
  font-size: 0.75em;
  color: #fff;
  margin-bottom: 0.1em;
}
.mitmachbox-post__nickname-line {
  display: block;
  color: #fff;
}
.mitmachbox-post__nickname {
  font-weight: 700;
}
.mitmachbox-post__text {
  margin: 0.5em 0;
}
.mitmachbox-reactions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 0.5em;
}
.mitmachbox-comments-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
}
.mitmachbox-comments-bar > .mitmachbox-comment-reply {
  margin: 0;
}
.mitmachbox-post__footer {
  clear: both;
  margin-top: 0.5em;
}
.mitmachbox-reactions__button {
  display: flex;
  align-items: center;
  gap: 0.25em;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.15em 0.6em;
  cursor: pointer;
}
.mitmachbox-reactions__button:hover {
  background-color: #eef6fb;
}
.mitmachbox-reactions__button:focus-visible {
  outline: 2px solid #0064aa;
  outline-offset: 2px;
}
.mitmachbox-reactions__button--active {
  background-color: rgba(92, 184, 92, 0.35);
  border: 2px solid #449d44;
  padding: calc(0.15em - 1px) calc(0.6em - 1px);
  font-weight: 700;
}
.mitmachbox-reactions__button--active:hover {
  background-color: rgba(92, 184, 92, 0.35);
}
.mitmachbox-reactions__emoji {
  font-size: 1.1em;
}
.mitmachbox-emoji-picker__trigger,
.mitmachbox-emoji-option,
.mitmachbox-editor-content,
.mitmachbox-post__text,
.mitmachbox-post__pin,
.mitmachbox-post__avatar-emoji,
.mitmachbox-avatar-option__emoji,
.mitmachbox-reactions__emoji {
  font-family: 'MBEmoji', "ABeZeh", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
}
.mitmachbox-comments-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-weight: 700;
  color: inherit;
  user-select: none;
}
.mitmachbox-comments-toggle::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 6l8 6-8 6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 6l8 6-8 6z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transform: rotate(90deg);
  transform-origin: center;
  transition: transform 0.15s ease;
}
.mitmachbox-comments-toggle--collapsed::before {
  transform: rotate(0deg);
}
.mitmachbox-comments-toggle:hover .mitmachbox-comments-toggle-text,
.mitmachbox-comments-toggle:focus .mitmachbox-comments-toggle-text {
  text-decoration: underline;
}
.mitmachbox-comments--collapsed {
  display: none;
}
.mitmachbox-comments__list {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  margin: 0.75em 0;
  padding: 0;
}
.mitmachbox-comments__list--limited > :nth-child(n+3) {
  display: none;
}
.mitmachbox-comments__list--limited ~ .mitmachbox-comment-reply {
  display: none;
}
.mitmachbox-comments__show-more {
  display: inline-block;
  margin: 0 0 0.5em 1.5em;
  padding: 0;
  border: 0;
  background: none;
  color: #0064aa;
  font-weight: 700;
  cursor: pointer;
}
.mitmachbox-comments__show-more:hover,
.mitmachbox-comments__show-more:focus {
  text-decoration: underline;
}
.mitmachbox-post--comment {
  margin-left: 1.5em;
  padding: 0.85em 1em;
  background-color: #cfe9fb;
  border: 1px solid #cfe9fb;
  box-shadow: none;
}
.mitmachbox-comment-reply {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin: 1.25em 0 0 1.5em;
  padding: 0.4em 1rem;
  background-color: #fff;
  border: 2px solid #0064aa;
  border-radius: 999px;
  color: #0064aa;
  font-weight: 700;
  cursor: pointer;
}
.mitmachbox-comment-reply:hover,
.mitmachbox-comment-reply:focus {
  background-color: #eef6fb;
}
.mitmachbox-comment-reply--open {
  background-color: #0064aa;
  color: #fff;
}
.mitmachbox-comment-reply--open:hover,
.mitmachbox-comment-reply--open:focus {
  background-color: #004677;
}
.mitmachbox-comment-form-card {
  display: none;
  width: calc(100% - 1.5em);
  margin-top: 0.5em;
  margin-left: 1.5em;
  background-color: #cfe9fb;
}
.mitmachbox-comment-form-card.mitmachbox-comment-form-card--open {
  display: block;
}
.mitmachbox-feed-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1em;
  margin-top: 1.5em;
}
.mitmachbox-feed-loadmore-wrapper {
  grid-column: 2;
  margin-top: 0;
  text-align: center;
}
.mitmachbox-feed-logo {
  grid-column: 3;
  justify-self: end;
  height: 120px;
  width: auto;
}
@media (max-width: 575px) {
  .mitmachbox-feed-footer {
      grid-template-columns: 1fr;
      justify-items: center;
    }
  .mitmachbox-feed-loadmore-wrapper {
      grid-column: 1;
    }
  .mitmachbox-feed-logo {
      grid-column: 1;
      grid-row: 2;
      justify-self: center;
    }
}
.mitmachbox-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
  margin: 1.5em 0;
}
@media (min-width: 600px) {
  .mitmachbox-gallery {
      grid-template-columns: repeat(2, 1fr);
    }
}
.mitmachbox-vote__button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4em;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.4em 1em;
  color: #00375e;
  font-weight: 700;
  cursor: pointer;
}
.mitmachbox-vote__button:hover {
  background-color: #eef6fb;
}
.mitmachbox-vote__button:focus-visible {
  outline: 2px solid #0064aa;
  outline-offset: 2px;
}
.mitmachbox-vote__button--voted {
  background-color: rgba(92, 184, 92, 0.35);
  border: 2px solid #449d44;
  padding: calc(0.4em - 1px) calc(1em - 1px);
}
.mitmachbox-vote__button--voted:hover {
  background-color: rgba(92, 184, 92, 0.35);
}
.mitmachbox-vote__icon {
  font-size: 1.1em;
}
body.page-mitmach-box .mitmachbox-stoerer {
  display: none;
}
body.page-mitmach-box .mitmachbox-stoerer-fallback {
  display: block;
  width: 100%;
  white-space: normal;
  text-align: center;
  padding: 1.5em 1.25em;
  color: #00375e;
  background-color: #5bc0de;
  border-color: #5bc0de;
}
body.page-mitmach-box .mitmachbox-stoerer-fallback:hover,
body.page-mitmach-box .mitmachbox-stoerer-fallback:focus {
  color: #00375e;
  background-color: #31b0d5;
  border-color: #2aabd2;
}
@media (min-width: 768px) and (max-width: 991.98px) {
  body.page-mitmach-box .mitmachbox-side-column {
      flex-direction: row;
    }
  body.page-mitmach-box .mitmachbox-sidebar-buttons {
      flex: 2 2 0;
      min-width: 0;
    }
  body.page-mitmach-box .mitmachbox-stoerer-fallback {
      flex: 1 1 0;
      width: auto;
      min-width: 0;
      padding: 0.9em 1em;
      font-size: 1.1em;
    }
}
@media (min-width: 992px) {
  body.page-mitmach-box .mitmachbox-stoerer-fallback {
      display: none;
    }
  body.page-mitmach-box .mitmachbox-stoerer {
      display: block;
      position: relative;
      width: 370px;
      height: 208px;
      margin-top: 1em;
      margin-left: -1.2em;
      z-index: 20;
    }
  body.page-mitmach-box .mitmachbox-stoerer::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: url(../img/mitmachbox-stoerer.png);
      background-repeat: no-repeat;
      background-size: 100% 100%;
    }
}
body.page-mitmach-box .mitmachbox-stoerer-link {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: all;
}
body.page-mitmach-box .mitmachbox-stoerer-text {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 205px;
  height: 64px;
  top: 60px;
  left: 135px;
  color: #0064aa;
  font-size: 0.9em;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.2;
  pointer-events: none;
}
@media (max-width: 575px) {
  body.page-mitmach-box .mitmachbox-banner {
      gap: 0.5em;
    }
  .mitmachbox-form-submit {
      text-align: center;
    }
  .mitmachbox-avatar-trigger {
      padding: 0.5rem 1rem;
    }
  .mitmachbox-post__image {
      justify-content: center;
    }
  .mitmachbox-post--comment .mitmachbox-reactions {
      display: grid;
      grid-template-columns: repeat(2, max-content);
    }
  .mitmachbox-post--comment {
      margin-left: 0;
    }
  .mitmachbox-comment-reply {
      margin-left: 0;
    }
  .mitmachbox-comment-form-card {
      width: 100%;
      margin-left: 0;
    }
  .mitmachbox-form-notice {
      font-size: 0.8em;
    }
  .mitmachbox-form-notice::before {
      display: none;
    }
  .mitmachbox-comment-form .form-submit {
      text-align: center;
    }
}
