body {
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    margin: 0;
    background-color: #fdfbf8;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    text-align: center;
}

header {
    background-color: #fff9f3c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 10rem;
    width: 10rem;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 2rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #3d3d3d;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

nav a:hover,
nav a.active {
    background-color: #d4e3c9;
    color: #1d1d1d;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo img {
        height: 8rem; 
        width: 8rem;
    }

    nav ul {
        flex-direction: row; 
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
        margin-top: 0;
    }

    nav a {
        display: inline-block;
        padding: 8px 12px;
    }

    text {
        width: 100%;
    }

    .angebot-detail {
        justify-items: center;
    }
}

.hero {
    background: url("Bilder/Hero.png") center/cover no-repeat;
    color: white;
    text-align: center;
    height: 30vh;                 
    display: flex;                 
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;          
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: auto;
}

.hero-text h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.angebote {
    padding: 50px 5%;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.03);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    color: #4a6b46;
    margin-top: 15px;
}

.card p {
    padding: 0 15px 15px;
}

.button {
    display: inline-block;
    background-color: #cfe3b4;
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #bcd6a2;
}

.about {
    background-color: #f9f6f3;
    padding: 50px 5%;
    text-align: center;
}

.about img {
    height: 15rem;
}

footer {
    background-color: #f3ebe2;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #555;
}

footer a {
  color: #555;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

.page-header {
    text-align: center;
}

.angebot-detail {
    text-align: center;
    justify-items: center;
    
}

.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 100%;
    padding: 0 5%;
    
    justify-items: center;
}

.galerie img {
    display: block;
    width: 16rem;
    height: 16rem;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.text {
    width: 70%;
}

.page-header p {
    width: 70%;
}

.page-header {
    justify-items: center;
}

