*, *::before, *::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

body {
    color:#252525;
    font-family: "Figtree", sans-serif;
    font-weight: 400;
    font-size: 16px;
    margin: 0;
    background: #f3f4f6;
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

main {
    padding: 3rem 0;
}

footer {
    color: #666;
    font-size: 14px;
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: #666;
    text-decoration: none;
}

footer a:hover {
    color: #252525;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: block;
    max-width: 180px;
    margin: 0 auto 3rem;
    width: 100%;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.card .desc {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Mini-Swiper */
.wohnung-slider {
    position: relative;
    overflow: hidden;
}

.wohnung-slider .swiper-slide {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e5e7eb;
}

.wohnung-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    cursor: zoom-in;
}

/* Swiper Pfeile etwas sichtbar machen */
.swiper-button-prev,
.swiper-button-next {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

/* Modal */
#galleryModal[hidden] {
    display: none !important;
}

#galleryModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
}

#galleryBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    border: 0;
}

.modalBox {
    position: relative;
    width: min(1100px, 92vw);
}

.modalInner {
    position: relative;
    background: #111;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .5);
}

/* Wichtig: Lightbox-Swiper braucht eine Höhe */
.gallery-swiper {
    height: 78vh;
}

.gallery-swiper .swiper-slide {
    display: grid;
    place-items: center;
    background: #000;
}

.gallery-swiper img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
}

#galleryClose {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, .6);
    color: white;
    border: 0;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

@media screen and (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}