body {

font-family: Arial, sans-serif;

background-image: linear-gradient(to bottom, #ffffff 0%, #ffccdd 100%);
background-size: cover;
background-position: left top;
background-attachment: fixed;

}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Header */

header{

display:flex;
justify-content:space-between;
align-items:center;

background: linear-gradient(to right, #ffccdd, #ffffff);

padding:10px 30px 10px 260px;

}

.logoTitel{

display:flex;
align-items:center;

}

.logo{

height:60px;
margin-right:15px;

}


.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center; /* horizontal zentriert */
    margin-bottom: 8px;
}

.container{
display:flex;
min-height: 100%;
}

.menu-toggle {
	display: none;
}

.sideMenu{
	position: relative;
	width:220px;
	background: linear-gradient(to right, #ffccdd, #ffffff);
	padding:20px;
	display: flex;
	flex-direction: column;
}

.sideMenu::before {
	content: "";
	position: absolute;
	inset: 0;
	box-sizing: border-box;
	background-size: cover;
	background: url('bilder/Hintergrund.jpg') no-repeat top right;
	pointer-events: none;
	opacity: 0.2;
	z-index: 0;
}

.sideMenu a{
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 95px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
	font-size: 20px;
    margin-bottom: 25px;   /* Abstand zwischen Links */
    padding: 8px 0;        /* Innenabstand */
	padding-left: 12px;
}

.zurueckLink{
    color: black;
	margin-top: 30px;
	margin-bottom: 30px;
}

main{
	flex:1;
	background: rgba(255,255,255,0.9);
	padding:30px;
	margin:20px;
	border-radius:10px;
}


/* Seiten */

.seite{
display:none;
}

#start{
display:block;
}

.album {
    margin-bottom: 15px;
}

.albumThumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
}

/* Startseite */

.startLayout{
display:flex;
gap:30px;
align-items:center;
}

.startBild{
width:350px;
border-radius:8px;
}
.querFormatBild{
	width: 100%;
}

.text-block {
	max-width: 800px;
	width: 90%;
	padding: 20px;
	tet-align: left;
}

.titleStyle {
	font-size: 24px;
	font-weight: bold;
}

.subTitleStyle {
	font-size: 20px;
}
.subTitleStyleTable {
    font-weight: bold;
    font-size: 1.2em;
    padding-top: 8px;
    padding-bottom: 4px;
}

.no-border-table {
    border-collapse: collapse;
    border: none;
    width: 100%;
	max-width: 800px;
}

.no-border-table td {
    border: none;
    vertical-align: middle;
}

.team-table {
    border-collapse: collapse;
    border: none;
    width: 100%;
	min-width: 600px;
	max-width: 800px;
}

.team-table td {
    border: none;
    vertical-align: middle;
	padding: 20px;
	white-space: nowrap;
}

.program-table {
    border-collapse: collapse;
    border: none;
    width: 100%;
	min-width: 600px;
	max-width: 800px;
}

.program-table td {
    border: none;
    vertical-align: middle;
	padding: 10px;
}

.table-img {
    max-width: 150px;
    height: auto;
	border-radius:8px;
}

.galerieGrid{

display:grid;
grid-template-columns: repeat(auto-fill, 200px);
gap:15px;

}

.galerieGrid img{

    width:200px;
    height:200px;
    object-fit:cover;
    border-radius:6px;
    box-shadow:0 2px 6px rgba(0,0,0,0.2);

}

.galerieGrid img:hover{
transform:scale(1.05);
}

.footer {
    text-align: center;
    padding: 15px;
    background-color: #f2f2f2;
    margin-top: 20px;
    font-size: 0.9em;
    color: #555;
}


#overlay {
    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;
	z-index: 9999;
}

#overlay img {
    max-width: 80%;
    max-height: 80%;
}

.close, .prev, .next {
    position: absolute;
    color: white;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
	font-weight: 300;
}

.close {
    top: 20px;
    right: 40px;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


@media (max-width: 768px) {

    header {
        flex-direction: column;
        align-items: flex-start;
		padding:10px 30px;
    }

    .menu-toggle {
        display: block; /* sichtbar auf mobilen Geräten */
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        margin-left: 10px;
    }
	
    .sideMenu {
		overflow: hidden;
		max-height: 0; /* standardmäßig versteckt */
		transition: max-height 0.3s ease;
        width: 100%;
        flex-direction: column; /* Optional: kann auch column bleiben */
        padding: 10px;
        overflow-x: auto;
    }

	.sideMenu.active {
		max-height: 500px; /* genug, um alle Links zu zeigen */
	}
	
    .sideMenu a {
        margin-bottom: 0;   /* Abstand zwischen Links entfernen */
        margin-right: 15px; /* Abstand horizontal */
        padding-left: 0;
    }

    /* Hauptinhalt unter dem Menü */
    .container {
        flex-direction: column;
    }

    main {
        margin: 0 0 0 0;  /* Abstand oben reduzieren */
        width: 100%;
		padding:10px;
		box-sizing: border-box;
		border-radius:0;
    }
	
	.table-wrapper {
		width: 100%;
		overflow-x: auto;
	}

    .startBild {
        width: 100%;
        max-width: 100px;
		height: auto;
		border-radius: 8px;
    }

    .querFormatBild {
        width: 95%;
		height: auto;
    }

    .text-block {
        width: 100%;
        padding: 10px;
    }
	
    .topMenu {
        display: none;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: center;
        margin-bottom: 10px;
        font-size: 0.9em;
    }

    .footer-links a {
        text-decoration: none;
        color: #333;
        font-weight: bold;
    }
	
	.program-table td {
		border: none;
		vertical-align: middle;
		padding: 5px;
	}
	
	.close, .prev, .next {
		font-size: 20px;
		font-weight: 200;
	}
}
