/* Hintergrund */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url("bilder/background.jpg") no-repeat center center fixed;
    background-size: cover;
    color: white;
    text-align: center;
/* Abstand damit Footer nichts überdeckt */
	padding-bottom: 70px;}

/* dunkler Overlay für bessere Lesbarkeit */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    z-index: -1;
}

/* Titel */
h1 {
    margin: 30px;
}

/* Galerie Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
}

/* Bilder */
.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

/* aktiviert beim Anklicken */
.lightbox:target {
    display: flex;
}

/* Overlay */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
 /*   background: rgba(0,0,0,0.6);*/
     background: linear-gradient(
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.4)
    );
	top: 0;
    left: 0;
    z-index: -1;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);

	margin: 30px;
    padding: 20px;

}

h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* ===== FOOTER ===== */

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 15px;
    
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ===== ABOUT PAGE ===== */

.about {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

/* Container */
.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
}

/* Bild */
.about-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Text */
.about-text h2 {
    margin-top: 0;
}

.about-text p {
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Links */
.footer a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: 0.3s;
}

.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
	/*border: 3px solid red;*/
}

/* Karten */
.card {
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
	z-index: 1;
}

/* Hover Effekt */
.card:hover img {
    transform: scale(1.05);
}

/* Fade-In Animation */
.card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s forwards;
}

.card {
  text-align: center;
}

.card p {
  margin-top: 6px;
  font-size: 13px;
  color: #aaa;
  letter-spacing: 0.5px;
  z-index: 2;
	}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }
.card:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 10px;
}

/* Seiten für Impressum & Datenschutz */
.legal {
    max-width: 800px;
    margin: 60px auto;
    background: rgba(0,0,0,0.7);
    padding: 30px;
    border-radius: 12px;
    line-height: 1.6;
}

/* Überschriften */
.legal h1 {
    margin-top: 0;
    text-align: center;
}

.legal h2 {
    margin-top: 25px;
    font-size: 1.3rem;
}

/* Text */
.legal p {
    margin: 10px 0;
}

/* Zurück-Link */
.back {
    display: inline-block;
    margin-top: 30px;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.back:hover {
    background: white;
    color: black;
}
/*Ende  Seiten für Impressum & Datenschutz */

#close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    cursor: pointer;
}