body {
    background-color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-image: url('background-image.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.header {
    background: linear-gradient(to bottom, lightgrey, white);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center; /* Vertically center the content */
    flex-wrap: wrap;
    position: relative;
    width: 100%;
    height: 100px; /* Set a fixed height for the header */
    z-index: 1;
}

.logo {
    position: absolute;
    top: 50%;
    left: 2em;
    transform: translateY(-50%); /* Vertically center the logo */
    max-width: 25%;
	min-width: 200px;
}

.menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.menu img {
    margin-right: 20px;
    width: 50px; /* Default width */
}

.menu a {
    text-decoration: none;
}

.menu button {
    margin: 5px; /* Reduce horizontal spacing */
    /* padding: 5px 5px; /* Set horizontal padding to 5px  */
	padding:10px 5px 10px 5px;
    border: none;
	border-radius: 5px;
    cursor: pointer;
    text-align: center;
    color: white; /* Change button text color to white */
    font-size: 14pt; /* Default font size */
	font-weight: bold;
    min-width: 150px; /* Default min-width */	
}

.button1 { background-color: #ff0000; }/* Red */
.button2 { background-color: #32cd32; }/* LimeGreen */
.button3 { background-color: #4682b4; }/* SteelBlue */
.button4 { background-color: #ff6347; }/* Tomato */

 .background {
    width: 100%;
    height: calc(100vh - 100px); /* Adjust height to fill the remaining space */
    background-image: url('../img/bg_pets1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
	text-align: center;
}

.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
	max-width: 100%;
	height: auto;
}

.content {
	/*   Index-Seite  und allgemein   */
	position: absolute;
	top:150px;
    width: 60%;
	height:auto;
	margin: 20px auto 0; 
	overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
	font-size: 16pt;
	color: white;
	/* text-align: center; */   /*  Text zentriert ausgerichtet! */   
}

    /*   Impressum / Datenschutz-Seite   */
.content-2 {
	position: absolute;
	top: 120px;
	width: 80%;
	max-height: calc(100vh - 110px); /* Adjust based on header height */
	overflow-y: auto;
	margin-top: 20px;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	background-color: rgba(255, 255, 255, 0.8); /* Slightly transparent background for readability */

}

.content_datal {
	/*   Kontakt-Seite   */	
	position: absolute;
	top: 120px;
	width: 60%;
	max-height: calc(100vh - 110px); /* Adjust based on header height */
	overflow-y: auto;
	margin-top: 20px;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	background-color: rgba(255, 255, 255, 0.8); /* Slightly transparent background for readability */
    border-radius: 10px;
	margin-top: 20px; /* Add margin to prevent overlap */
	font-size: 10pt;
	color: black;
	align-items: center;	
	}
	
.content_adrfeld {
	/*   Kontakt-Seite   */	
    width: 100%;
	left: 0px;
	margin: 20px auto;
    padding: 20px;
	text-align: left;
    background: white; /* Semi-transparent background */
	font-size: 14pt;
	color: black;
	}
	
.location-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
	max-width: 100%;
	height: auto;	
    }

.content-box {
	/*   Notdienst   */	
	position: absolute;
	top: 120px;
	width: 60%;
	margin: 25px auto;
	padding: 20px;
	font-size: 13pt;
	color: white;
	overflow-y: auto; /* Added to handle overflow */
	max-height: 80vh; /* Adjust height as needed */
	background: rgba(0, 0, 0, 0.5);
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
	/* align-items: center;  */
	text-align: center;
    }

.msgcontent {
	/*   Info-Seite   */
	position: absolute;
	top:200px;
    width: 60%;
	height:auto;
	margin: 20px auto 0; 
	overflow-y: auto;
    padding: 20px;
    background: white; 
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
	font-size: 18pt;
	font-weight: bold;
	color: red;
	/* text-align: center; */   /*  Text zentriert ausgerichtet! */   
}


.msgcontentX {
	/*   Info-Seite   */
	position: absolute;
	top:250px;
    width: 50%;
	height:auto;
	margin: 25px auto 0; 
	overflow-y: auto;
    padding: 20px;
    background: black; 
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border: 18px dashed rgba(2251,85,1,1);
    /*border-radius: 10px; */
	font-size: 18pt;
	font-weight: bold;
	color: white;
	/* text-align: center; */   /*  Text zentriert ausgerichtet! */   
}

/*													*/
.cookie-banner {
	z-index: 1;
	background-color: brown;
    color: white;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
	display: off;
	}

.cookie-banner button {
    background-color: white;
    color: black;
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
	margin-top: 1rem;
    cursor: pointer;
	}
	
.scrollable-iframe {
	width: 100%;
	height: 60vh;
	border: none;
	overflow: auto;
    }


.calendar-container {
	/*   Notdienst   */	
	position: absolute;
	top: 120px;
	margin: 20px 0;
	background: white;
	opacity: 0.75;
	color: black;
	padding: 8px;
	border-radius: 10px;
	width: 80%;
	max-height: 70vh;
	overflow-y: auto; 
	font-size: 12pt;
	line-heigh:90%;
	text-align: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);			
	}
	
	table {
		width: 100%;
		border-collapse: collapse;
		margin: 0 auto;
	}
	
	th, td {
		border: 1px solid #000;
		padding: 0.25em;
		text-align: center;
		font-size: 12pt;
		width: 10%;
	}
	
	th {
		background-color: orange;
	}
	
	.entry {
		background-color: #afafaf;
		opacity: 1;
	}
	
	.buttonscal {
		font-size: 13pt;
		margin-bottom: 20px;
	}	
	
	.month-name {
		margin: 0 15px;
		font-size: 24pt;
		font-weight: bold;
	}


.confirm-buttons button {
		padding: 5px 4px; 
		font-size: 14pt;
		color: white;
		background-color: red;
		border: none;
		border-radius: 4px;
		cursor: pointer;
	}
.button-green {
		background-color: #4CAF50;
	}
.button-green:hover {
		background-color: #45a049;
	}
.button-blue {
		background-color: #008CBA;
	}
.button-blue:hover {
		background-color: #007bb5;
	}
.button-red {
		background-color: #f44336;
	}
.button-red:hover {
		background-color: #da190b;
	}
.button-white {
		background-color: #ffffff;
	}
.button-white:hover {
		background-color: #9f9f9f;
	}






/* ===========================================================================================*/
/* Adjustments for different screen widths */
/*============================================================================================*/
@media (max-width: 1600px) {
    .menu button {
        font-size: 12pt;
        min-width: 130px; /* Adjust min-width for 12pt font size */
    }
    .menu img {
        width: 40px; /* Adjust width for 12pt font size */
    }
}

@media (max-width: 1200px) {
	.logo {
		margin-top: -20px;
	}
	
    .menu {
        flex-direction: column;
        align-items: center;
    }
    .menu img {
        margin-bottom: 20px;
    }
    .buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px; /* Ensure there's always space between buttons */
    }
    .buttons button {
        width: calc(50% - 10px); /* Ensure buttons have the same width on smaller screens */
        max-width: 120px; /* Optional: Set a max-width for the buttons */
    }
    .menu button {
        font-size: 11pt;
        min-width: 120px; /* Adjust min-width for 11pt font size */
    }
    .menu img {
        width: 35px; /* Adjust width for 11pt font size */
    }
}

@media (max-width: 1024px) {
	.logo {
		margin-top: -20px;
	}
	
	.content_datal {
		width: 80%;
	}	

	.content-box {
		width: 80%;
	}	
	
    .buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px; /* Ensure there's always space between buttons */
    }
	
    .menu button {
        font-size: 10pt;
        min-width: 110px; /* Adjust min-width for 10pt font size */
    }
    .menu img {
        width: 30px; /* Adjust width for 10pt font size */
    }
	
	.content {
		width: 90%;
		padding: 10px;
		font-size: 10pt;
	}
	 .month-name {
		margin: 0 10px;
		font-size: 16pt;
		font-weight: bold;
	}
	
	th, td {
		font-size: 12pt;
		width: 8%;
	}
	
}

@media (max-width: 768px) {
	.logo {
		margin-top: -20px;
	}

	.content_datal {
		width: 90%;
	}
	
	.content-box {
		width: 90%;
	}
	
    .buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px; /* Ensure there's always space between buttons */
		font-size: 10pt;
	}
	
    .menu button {
        font-size: 9pt;
        min-width: 100px; /* Adjust min-width for 9pt font size */
    }
    .menu img {
        width: 25px; /* Adjust width for 9pt font size */
    }
	
	.content {
		top: 150px;
		width: 90%;
		padding: 10px;
		font-size: 10pt;
	}

	.calendar-container {
		top: 150px;
		width:90%;
	}

	.month-name {
		margin: 0 10px;
		font-size: 16pt;
		font-weight: bold;
	}
	
	th, td {
		font-size: 10pt;
		width: 8%;
	}
	
	.buttons button {
        /* width: calc(50% - 10px); /* Ensure buttons have the same width on smaller screens */
        max-width: 90px; /* Optional: Set a max-width for the buttons */
    }
	
}

@media (max-width: 360px) {
	.logo {
		margin-top: -30px;
	}
	.menu {
		position: absolute;
		top: 90px;
	}
    .menu button {
		padding: 5px 5px 5px 5px;		
        font-size: 9pt;
        min-width: 80px; /* Adjust min-width for 9pt font size */
    }
    .menu img {
        width: 25px; /* Adjust width for 9pt font size */
    }
}


#screenSize {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 3px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    z-index: 1000; /* Ensure this element is on top */
}
