* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.inhalt {
  margin: 1rem;
}
.seiteninhalt {
  margin: 1rem 10%;
}
.text {
display: none; 
}
.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-rows: 4px;
  gap: 1rem;
}
@media (min-width: 600px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1600px) { .grid { grid-template-columns: repeat(5, 1fr); } }

.box {
  display: block;
  background: #fff;
  overflow: hidden;
  border: solid #000 1px;
  cursor: pointer;
  align-self: start;
}
.box img {
  display: block;
  width: 100%;
  height: auto;
}
.box .no-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0ef;
}
.box .box-body {
  padding: 1rem 1.25rem;
}
.box h1 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}
.box p {
  margin: 0;
  font-size: 0.85rem;
  color: #777;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  padding: 2rem 1rem;
  overflow-y: auto;
  z-index: 100;
}
.modal-overlay.open {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.modal {
  background: #fff;
  border: solid #000 1px;
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: #f0f0ef;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.modal h1 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}
.modal .author {
  color: #777;
  margin: 0 0 1.25rem;
}
.modal-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.modal-gallery img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 4px;
}
.modal dl {
  margin: 0 0 0.75rem;
}
.modal dt {
  font-weight: 600;
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.6rem;
}
.modal dd {
  margin: 0.15rem 0 0;
}
.block-image { width: 100%; border-radius: 4px; margin: 0.5rem 0; }

.header h1 {
  text-align: center;
  text-decoration: none;
  color: #000;
}
.header {
  width: 100%;
  height: 80px;
  cursor: select;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0px;
}
.header:hover pro {
  transform: rotate(-5deg);
  display: inline-block;
}
pro {
  padding: 5px 12px;
  background-color: #fcd500;
  color: #000;
  transition: 0.3s;
}
.seiteninhalt a {
  padding: 5px 12px;
  background-color: #fcd500;
  color: #000;
  transition: 0.3s;
  font-size: 14pt;
  text-decoration: none;
  display: inline-block; /* oder block, je nach Bedarf */
  max-width: 100%; /* Begrenzt die Breite auf den Eltern-Container */
  white-space: normal; /* Erlaubt Zeilenumbrüche */
  word-break: break-word; /* Bricht lange Wörter um, falls nötig */
}
.seiteninhalt a:hover { 
  background-color: #f18626;
}
.banner img {
  width: 100%
}
.footer {
  width: 100%;
}
.footinhalt {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.dproz img {
  height: 120px;
  width: auto;
  margin-left: auto;
}
@media (max-width: 800px) {
  h1 {
    font-size: 14pt;
  }
  .seiteninhalt {
    margin: 1rem;
  }
}
@media (max-width: 500px) {
  .banner img {
    height: 130px;
    object-fit: cover;
  }
  .banner video {
    height: 130px;
    object-fit: cover;
  }
}