/* Das sind wir - Übersicht Mitglieder */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f4f6f8;
    padding:20px;
    color:#222;
}

h1{
    margin-top: 30px;
    margin-bottom: 30px;
}

.grid{
    display:grid;
    /* gap:10px; orig */
	row-gap:30px;   /* Abstand unter card (nur vertikal) */
    column-gap:10px; /* Abstand unter card (horizontal bleibt klein) */
    grid-template-columns:repeat(2,1fr);
}

/* Smartphone quer */
@media (orientation: landscape) and (max-width:900px){
    .grid{
        grid-template-columns:repeat(4,1fr);
    }
}

/* Tablet */
@media (min-width:768px){
    .grid{
        grid-template-columns:repeat(4,1fr);
    }
}

/* Desktop */
@media (min-width:1200px){
    .grid{
        grid-template-columns:repeat(5,1fr);
    }
}

.card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    display:flex;
    flex-direction:column;
}

.card img{
    width:100%;
    aspect-ratio:3 / 4;
    object-fit:cover;
    display:block;
}

.content{
    padding:10px;
    display:flex;
    flex-direction:column;
    flex-grow:1;
    gap:6px;
}

.content h3{
    font-size:16px;
}

.content p{
    font-size:15px;
    color:#555;
    min-height:18px;
}

.spacer{
    flex-grow:1;
}

.info-link{
    margin-top:10px;
    font-size:16px;
    color:#c40000;
    text-decoration:none;
    font-weight:bold;
    line-height:1.4;
}

.info-link:hover{
    text-decoration:underline;
}

/* Button nach oben */
.scroll-top{
    display:block;
    width:fit-content;
    margin:60px 20px 20px auto;
    color:red;
    text-decoration:none;
    font-size:18px;
    font-weight:bold;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.3s ease;
}

.scroll-top.show{
    opacity:1;
    visibility:visible;
}

/* Nur Smartphone & Tablet */
@media (min-width:1025px){
    .scroll-top{
        display:none;
    }
}
