.TeadraLogo {
    width: 140px;
    margin: 0;
}

.krstlogo {
    padding: 50px 0 0 5px;
    width: 40px;
    height: 40px;
    margin: 0;
}

.sliki {
    display: flex;
    flex-direction: row;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-image: url("../images/bg.png");
    backdrop-filter: brightness(55%);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    height: 60px;
    display: flex;
    position: fixed;
    top: 0;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    background: white;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 3px 10px rgba(0,0,0,0.53);
    z-index: 999;
}

.navbar a {
    text-decoration: none;
    color: #4B8CB7;
    padding-right: 15px;
}

.navbar a:hover {
    color: #034467;
}

.grid-container {
    flex: 1;
    margin: auto;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: 50px;
    grid-template-areas: "header header header";
    padding-top: 70px;
}

.header {
    grid-area: header;
    color: white;
    font-size: 24px;
    text-align: center;
}

.search {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.searchpole {
    width: 350px;
    border-radius: 15px;
    background: white;
    opacity: 70%;
    color: black;
    font-size: 14px;
}

.srchpol {
    padding: 5px;
}

.searchdugme {
    background: #ccc;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
    box-shadow: 0 0 10px #ccc;
    border-radius: 5px;
}

input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

input[type="text"]:focus {
    border-color: #4267B2;
    box-shadow: 0 0 5px #4267B2;
}

.searchpole::placeholder {
    font-size: 14px;
    color: rgb(40, 40, 40);
    font-weight: bold;
    opacity: 1;
}

.mapdiv {
    padding: 15px;
}

#map {
    margin: auto;
    height: 300px;
    width: 850px;
    resize: both;
    overflow: auto;
    box-shadow: 0 0 10px #2cf5f5;
    border-radius: 25px;
}

.maincontentKontakt {
    flex: 1;
    padding-top: 100px;
}

.kontentwrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.telemail {
    margin: 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 50px;
}

.telemail a {
    text-decoration: none;
    font-weight: bold;
    color: #144e6c;
    font-size: 18px;
}

.telemail p {
    margin: 0;
    font-size: 22px;
    color: rgb(27, 100, 40);
    font-weight: bold;
    text-align: center;
}

.tel,
.address,
.email {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 50px;
}

.address,
.email,
.tel {
    padding: 1% 2%;
}


.footer {
    margin-top: auto;
    background: white;
    color: #4B8CB7;
    text-align: center;
    padding: 1rem;
    font-weight: bold;
}

/* ======= PRODUCT GRID: fixed 5×5 of 150×150px cells ======= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 150px);
    grid-auto-rows: 150px;
    gap: 10px;
    justify-content: center;
    padding: 10px;
}

.product-tile {
    box-sizing: border-box;
    width: 150px;
    height: 150px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(182, 194, 197, 0.6);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-tile:hover{
    scale: 105%;
}

.product-tile .name {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-tile .price {
    font-size: 16px;
    font-weight: bold;
}

/* ======= PAGINATION fixed at bottom ======= */
.pagination {
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 12px 0;
    font-weight: bold;
}

.pagination button {
    margin: 0 4px;
    padding: 6px 10px;
    border: 1px solid rgb(255, 255, 255);
    background: rgba(1, 192, 192, 0.87);
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
}

.pagination button.active {
    background: rgba(1, 192, 192, 0.87);
    color: #ffffff;
    scale: 115%;
}
.pagination button:hover {
    background: rgba(1, 192, 192, 0.87);
    color: #ffffff;
    scale: 115%;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: default;

}
