/* ibm-plex-sans-condensed-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/ibm-plex-sans-condensed-v15-latin-regular.woff2') format('woff2');
}

/* ibm-plex-sans-condensed-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/ibm-plex-sans-condensed-v15-latin-600.woff2') format('woff2');
}

/* ibm-plex-sans-condensed-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/ibm-plex-sans-condensed-v15-latin-700.woff2') format('woff2');
}

/* Reset und Basis-Stile */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #14151f;
}

/* Layout & Mix */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  text-align: center;
  padding: 0.75rem;
  box-sizing: border-box;
  background-color: #a31933;
  border-top: 4px solid #fff;
  color:#fff;
}

a.footer-link {
  color: #f7f7f7;
}

a.close-link {
  color: #114985;
  font-weight: 600;
}

strong {
  font-weight: 600;
  color: #114985;
}

hr {
  border: 0;
  border-top: 1px solid #ccc;
}

.d-none {
  display: none;
}

.grafik-quadrate {
  text-align: center;
}

.grafik-quadrate svg {
  width: 2.5rem;
  height: 3.35rem;
}

/*
=================================
Muuri Grid
=================================
*/

.grid {
  position: relative;
  background-color: #fff;
  border: 2px solid #fff;
  margin-bottom: 40px;
}
.item {
  display: block;
  position: absolute;
  width: calc(8.333333% - 4px);
  height: calc((100vh - 60px) / 16 - 4px);
  height: calc((100dvh - 60px) / 16 - 4px);
  color: transparent;
  font-size: 0.5rem;
  text-align: center;
  padding: 0;
  margin: 2px;
  z-index: 1;
}
.item.muuri-item-dragging {
  z-index: 3;
}
.item.muuri-item-releasing {
  z-index: 2;
}
.item.muuri-item-hidden {
  z-index: 0;
}
.item-content {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: move;
}
.item.muuri-item-dragging .item-content {
  background: rgba(255, 255, 255, 0.2);
}
.item.muuri-item-releasing .item-content {
  background: rgba(255, 255, 255, 0.1);
}

/* Modal-Stil */
.modal {
  display: block;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 1rem !important;
}

.modal-content {
  background-color: #f7f7f7;
  margin: 10% auto;
  padding: 5px 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: modalopen 0.3s;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
}

.modal-header h1 {
  font-size: 2rem;
  color:#114985;
}

.close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* Etwas mehr Platz für Klicks */
  height: 40px;
  transition: opacity 0.2s;
}

.close:hover {
  opacity: 0.7;
}

.close svg {
  display: block;
}

.modal-body p {
  margin: 10px 0;
}

@keyframes modalopen {
  from {opacity: 0; transform: translateY(-50px);}
  to {opacity: 1; transform: translateY(0);}
}

@media (min-width: 768px) {
  .grid {
    border: 3px solid #fff;
  }
  .item {
    width: calc(8.333333% - 6px);
    height: calc((100vh - 60px) / 16 - 6px);
    height: calc((100dvh - 60px) / 16 - 6px);
    margin: 3px;
  }
  .footer {
    border-top: 6px solid #fff;
  }
  .modal-header {
    padding-bottom: 10px;
  }
  .modal-content {
    padding: 30px;
  }
}