body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product {
    width: 220px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
}

.product img {
    width: 100%;
    height: auto;
}

.pagination a {
    margin: 5px;
    padding: 5px 10px;
    background: #eee;
    text-decoration: none;
    border-radius: 4px;
}
.pagination {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination {
    margin: 30px auto;
    max-width: 1600px;          /* begrenzt die Breite */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* zentriert */
    gap: 8px;                  /* Abstand zwischen Buttons */
}

.page-link {
    display: inline-block;
    width: 40px;               /* feste Breite */
    height: 40px;              /* feste Höhe */
    line-height: 40px;         /* Text vertikal zentriert */
    text-align: center;
    background: #e5e5e5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.page-link:hover {
    background: #d5d5d5;
}

.page-link.active {
    background: #333;
    color: #fff;
}


.page-link {
    padding: 8px 14px;
    background: #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.page-link:hover {
    background: #ddd;
}

.page-link.active {
    background: #333;
    color: #fff;
}
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product {
    width: 300px;
    min-height: 420px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product h3 {
    font-size: 16px;
    line-height: 1.3;
    margin: 5px 0;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
}

.product p {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.2em;
}

.product a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}

.product a:hover {
    background: #555;
}
