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

body {
    padding-top: 80px;
    line-height: 1.6;
}

/* Feste Kopfzeile */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f2d446;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Logo-Stil (links) */
.logo-link {
    order: 1;
    display: inline-block;
}

.logo {
    height: 50px;
    display: block;
}
.logo:hover {
    transform: scale(1.05);
}

/*Linkfarbe*/
a:link {
 color: #be9b53;
}
a:visited {
 color: #be9b53;
}

/* Navigationsmenü - Desktop */
nav {
    order: 2;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: #be9b53;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #555;
}

/* Hamburger-Menü Button */
.hamburger {
    display: none;
    cursor: pointer;
    order: 3;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hauptinhalt */
main {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #FDF5DF;
    border-radius: 5px;
    scroll-margin-top: 90px;
}

h1  {
    margin-bottom: 20px;
    color: #be9b53;
	font-size: 2.5rem;
}
h2 {
    margin-bottom: 10px;
    color: #be9b53;
	font-size: 2rem;
}
h3 {
    margin-bottom: 8px;
    color: #be9b53;
	font-size: 1.5rem;
}

/* Galerie-Stile */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

/* Kontaktbereich */
address {
    font-style: normal;
    line-height: 1.8;
}

/* Einfache Fußzeile */
footer {
    background-color: #f2d446;
    color: #be9b53;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/*Responsive Images*/
.responsive {
  width: 100%;
  height: auto;
}
/* Responsive Anpassungen */
@media (max-width: 768px) {
	h1 { font-size: 2rem; }
	h2 { font-size: 1.7rem; }
	h3 { font-size: 1.3rem; }
	
    .hamburger {
        display: block;
        order: 1;
    }
    
    .logo {
        order: 2;
        margin: 0 auto;
    }
    
    nav {
        order: 3;
        width: 100%;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #333;
        flex-direction: column;
        padding: 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        text-align: center;
        border-top: 1px solid #555;
    }
    
    nav ul li a {
        padding: 15px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    section {
        scroll-margin-top: 120px;
        padding: 20px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
	
	h1 { font-size: 1.8rem; }
	h2 { font-size: 1.5rem; }
	h3 { font-size: 1.2rem; }
  
    .logo {
        height: 40px;
    }
    
    section {
        padding: 15px;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
}
