/* ==========================================================================
   1. GLOBALE EINSTELLUNGEN & LAYOUT
   ========================================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
}

/* Der Container trennt das Hintergrundbild exakt unter die Top-Leiste */
.page-content-wrapper {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 20px;
    padding-top: 100px; /* Platzhalter für die obere Menüleiste */
    
    display: flex;
    flex-direction: column;
    align-items: center;

    background-image: url('bilder/hintergrund.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: cover;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
}

/* Allgemeine weiße Inhaltskarten (Milchglas-Optik) */
.card {
    background: rgba(255, 255, 255, 0.92);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 400px;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

/* ==========================================================================
   2. DIE OBERE NAVBAR
   ========================================================================== */
.navbar {
    width: 100%;
    background-color: #2c3e50;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-logo {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-desktop-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    margin-left: auto;
    margin-right: 40px;
}

.nav-desktop-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-desktop-links a:hover, 
.nav-desktop-links a.active {
    color: white;
}

/* ==========================================================================
   3. DAS BURGER ICON
   ========================================================================== */
.burger-menu {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2500;
    padding: 5px;
}

.burger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: white !important;
    transition: all 0.3s ease;
    display: block;
}

.burger-menu.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-menu.open .bar:nth-child(2) {
    opacity: 0;
}
.burger-menu.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   4. DAS SEITLICHE FLYOUT-MENÜ (NUR FÜR IMPRESSUM)
   ========================================================================== */
.nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 300px;
    background-color: #1a252f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: right 0.4s ease, visibility 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    z-index: 1500;
    visibility: hidden;
    pointer-events: none;
}

.nav-links.open {
    right: 0;
    visibility: visible;
    pointer-events: auto;
}

.nav-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

/* ==========================================================================
   5. DROPDOWN-MENÜ (MEHR VON MIR)
   ========================================================================== */
.dropdown {
    position: relative;
}

.dropdown .arrow {
    font-size: 0.8rem;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #2c3e50;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 200px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #bdc3c7 !important;
    font-size: 0.95rem !important;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #34495e;
    color: white !important;
}

/* ==========================================================================
   6. WEBPAGE-FLOW (ONE-PAGE & EXTRA-IMPRESSUM)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

.sections-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 80px;
    margin-top: 20px;
}

.web-section {
    width: 100%;
    display: flex;
    justify-content: center;
    scroll-margin-top: 120px;
}

.spec-card {
    width: 100%;
    max-width: 800px !important;
}

.content-page {
    display: none; 
    width: 100%;
    justify-content: center;
}

body:has(#impressum.active-page) .web-section {
    display: none;
}

.content-page.active-page {
    display: flex;
}

/* ==========================================================================
   7. BILDERGALERIE (HOME) MIT DEINEN KÄSTEN
   ========================================================================== */
.home-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    transition: grid-template-columns 0.5s ease-in-out;
    gap: 30px;
    width: 100%;
}

.image-gallery:has(.col-konzert:hover) {
    grid-template-columns: 0.75fr 1.25fr;
}

.image-gallery:has(.col-portrait:hover) {
    grid-template-columns: 1.25fr 0.75fr;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Deine angepassten Kästen für Portraits und Konzerte */
.col-portrait h3, .col-konzert h3 {
    padding: 8px 20px;
    border-radius: 6px;
    background-color: #e85600;
    display: inline-block;
    color: white;
    margin-top: 15px;
}

.image-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 2s linear, filter 0.5s ease-in-out; 
    opacity: 1;
    filter: grayscale(0%);
}

.image-box img.fade-out {
    opacity: 0;
}

.image-gallery:has(.col-konzert:hover) .col-portrait img {
    filter: grayscale(100%);
}

.image-gallery:has(.col-portrait:hover) .col-konzert img {
    filter: grayscale(100%);
}

/* ==========================================================================
   8. ÜBER MICH SEKTION (NEBENEEINANDER)
   ========================================================================== */
.about-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    max-width: 800px !important;
    width: 100%;
    text-align: left;
    padding: 40px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
}

.about-text p {
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.about-image-box {
    flex: 1;
    max-width: 300px;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.about-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   9. KONTAKTFORMULAR & IMPRESSUM STYLING
   ========================================================================== */
.contact-card {
    width: 100%;
    max-width: 500px;
    text-align: left;
}

.contact-card h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-card p {
    text-align: center;
    color: #666;
}

.custom-form {
    margin-top: 25px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.form-submit-btn:hover {
    background-color: #2980b9;
}

.impressum-card {
    width: 100%;
    max-width: 700px;
    text-align: left;
    padding: 40px;
}

.impressum-card h2 {
    text-align: center;
margin-bottom: 30px;
}

.impressum-card hr {
	border: 0;
	height: 1px;
	background: #e0e0e0;
	margin: 20px 0;
}
.legal-subtitle {
	font-weight: 600;
	color: #2c3e50;
	font-size: 1.1rem;
	margin-bottom: 10px;
}
.impressum-card p {
	line-height: 1.6;
	color: #4a5568;
	margin: 0 0 10px 0;
}
.impressum-card a {
	color: #3498db;
	text-decoration: none;
}
.impressum-card a:hover {
	text-decoration: underline;
}
/* ==========================================================================10. MEDIA QUERIES (RESPONSIVE MOBIL-OPTIMIERUNG)========================================================================== */
@media screen and (max-width: 768px) {
	.nav-desktop-links {
		display: none;
	}
	.image-gallery {
		grid-template-columns: 1fr !important;
		gap: 40px;
	}
	.image-gallery:has(.col-konzert:hover) .col-portrait img,
	.image-gallery:has(.col-portrait:hover) .col-konzert img {
		filter: grayscale(0%);
		}
	.about-card {
		flex-direction: column-reverse;
		text-align: center;
		gap: 25px;
		padding: 30px 20px;
	}
	.about-image-box {
		max-width: 250px;
	}
}
/* --------- GALERIE.php -------------------- */

/* ==========================================================
   GALERIE: Sortierung von links nach rechts
   ========================================================== */

.image-gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    box-sizing: border-box;
}

.gallery-masonry-item {
    width: 100%;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-masonry-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.gallery-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    cursor: pointer;
}

/* Tablet: zwei Bilder nebeneinander */
@media (max-width: 900px) {
    .image-gallery-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Smartphone: ein Bild pro Zeile */
@media (max-width: 600px) {
    .image-gallery-masonry {
        grid-template-columns: 1fr;
    }
	.lightbox-wrapper {
        width: 100vw;
        height: 94vh;
        padding: 50px 10px 15px;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: calc(94vh - 110px);
    }

    #lightbox-caption {
        font-size: 15px;
        margin-top: 10px;
        padding: 6px 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 18px;
        font-size: 38px;
    }
}

.gallery-page-wrapper {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  padding: 120px 20px 40px 20px; /* Platz wegen der fixed Navbar */

  /* Das Hintergrundbild einbinden */
  background-image: url('bilder/hintergrund.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed; /* Scrollt edel im Hintergrund mit */
  background-size: cover; /* Füllt den gesamten Bildschirm aus */
}


/* --- Lightbox / Popup Einzelansicht --- */
.lightbox-overlay {
  display: none; /* Standardmäßig unsichtbar */
  position: fixed;
  z-index: 3000; /* Liegt über der Navbar (z-index 1000) */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Sehr dunkler Hintergrund */
  justify-content: center;
  align-items: center;
}

/* Das vergrößerte Bild im Popup */
.lightbox-content {
  display: block;
    
  width:auto;
  height:auto;
  
  max-width: 85vw;
  max-height: 75vh;
  
  object-fit: contain;
  
  border-radius: 6px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.7);
  animation: lightboxZoom 0.3s ease; /* Schicker Zoom-Effekt */
}

/* Schließen-Button (Das 'X' oben rechts) */
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #ffffff;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.lightbox-close:hover {
  color: #bdc3c7;
}

/* Zeigt dem User, dass die Galeriebilder klickbar sind */
.gallery-masonry-item img {
  cursor: pointer;
}

/* Animation für das sanfte Aufpoppen */
@keyframes lightboxZoom {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


# -------------------------- Für einzelne Bilder die Caption --------------------------------
.lightbox-wrapper{
    display:flex;
    flex-direction:column;
    align-items:center;
	justify-content: center;
	
    width:100%;
	height: 100%;
}

#lightbox-caption {
    color: #fff;
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
}

# ---------------------------- FOOTER MIT COPYRIGHT --------------------------------------------------
/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: calc(100% + 40px);
    margin: 70px -20px -20px;
    padding: 24px 20px;

    box-sizing: border-box;
    flex-shrink: 0;

    text-align: center;
    color: #ffffff;
    background-color: rgba(20, 30, 40, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.25);

    position: relative;
    z-index: 10;
}

.site-footer p {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

.lightbox-copyright {
    margin-top: 8px;
    padding: 4px 10px;

    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.3px;

    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
}

.zwei-spalten {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Erstellt zwei gleich große Spalten */
    gap: 20px;                      /* Abstand zwischen den Spalten */
}

/* Macht die Anzeige auf Handys automatisch einspaltig */
@media (max-width: 600px) {
    .zwei-spalten {
        grid-template-columns: 1fr;
    }
}