@media screen and (min-width: 1025px) {

#divmitte {
width: 1010px;
margin: auto;
}

#tabellerechts {
width: 400px;
height: 400px;
float: left;
}

#dias {
	max-width: 400px;
	margin-top: 86px;
	margin-bottom: 87px;
	
}

}



@media screen and (max-width: 1024px) {

#divmitte {
width: 440px;
margin-top: 50px;
margin: auto;
}

#dias {
	max-width: 400px;
	margin-top: 40px;
	margin-bottom: 0px;
}

}

@media screen and (max-width: 451px) {

#divmitte {
width: 330px;
margin-top: 50px;
margin: auto;
}

#tabellerechts {
width: 98%;
max-width: 400px;
margin: auto;
}

}



		@media screen and (min-width: 541px) {

			.ortex {
			max-width: 600px;
			margin: 0 auto;
			line-height: 25px;
			font-size: 16px;
			}

			#autocomplete {
			width: 330px;
			height: 30px;
			padding: 3px;
			margin-bottom: 25px;
			}

			}


				@media screen and (max-width: 540px) {

				.ortex {
				width: 97%;
				margin: 0 auto;
				font-size: 15px;
				line-height: 22px;
				}

				#autocomplete {
				height: 30px;
				width: 330px;
				margin-top: 10px;
				margin-bottom: 20px;
				font-size: 18px;
				}

						}

.links {
	margin: auto;
	margin-top: 20px;
	margin-bottom: 50px;
	text-align: center;
	font-size: 16px;
  	line-height: 2.5em;
}

.zentriert {
text-align: center;
}


	input::first-letter {
	font-weight: normal;
	}

select:hover {
  box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
}

option {
  padding: 0.3em 0.2em 0.3em 0.5em;
}


.hyphens {
   hyphens: auto;
}






/* Dark mode */

@media (prefers-color-scheme: dark) {
 
.container {
	color: #e2e2e2;
	}

.overlay {
    background-color: rgba(33,33,33,0.9);
}
	
	.overlay a {
    color: DodgerBlue;
}

}


/* Bildwechsler – einfache & zuverlässige Version */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 1200 / 800;
    margin: 20px auto;
    overflow: hidden;
    background: transparent;
    border-radius: 15px;
    box-shadow: 0px 0px 0px rgba(0,0,0,0.3);
}

.mySlides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;                    /* alle unsichtbar */
}

.mySlides.active {
    display: block;                   /* nur das aktive sichtbar */
    z-index: 2;
}

.mySlides img,
.mySlides picture img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}


.ort, 
input.datum, 
.zeit {
  height: 42px !important;
  border: none;
  border-radius: 10px;
  background-color: white !important;
  color: #333;
  font-size: 15px;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.1);
}

.ort {
  width: 100% !important;
  padding: 0 15px;
  margin-bottom: 25px !important; /* Großer Abstand für die Lockerheit */
  background-image: none !important;
}

.form-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 25px !important; /* Abstand nach der Zeile */
}

input.datum {
  width: 66% !important;
  padding: 0 10px;
  background-image: url("https://dachbox.expert/pics/kalender30.png") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 20px !important;
}


.awesomplete { width: 100% !important; display: block !important; }
.awesomplete > ul { z-index: 999; }








#divmitte {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap; 
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  width: 100%;
  max-width: 1100px;
  margin: 20px auto !important;
}

.tabellelinks {
  width: 100%;
  max-width: 425px;
  /* Falls die Box wieder blau sein soll: */
  background-color: #53A5E7 !important; 
  border-radius: 20px;
  padding: 30px 25px;
  box-sizing: border-box;
}

#tabellerechts {
  width: 100%;
  max-width: 400px;
  margin-top: 5px !important;
}

@media screen and (max-width: 1024px) {

  #divmitte {
    flex-direction: column; 
    align-items: center;
    /* 1. Den Abstand zwischen den Boxen hier verringern */
    gap: 5px !important; 
  }

  .tabellelinks {
    width: 100%;
    max-width: 450px !important;
    /* 2. Sicherstellen, dass die Box nach unten keinen extra Platz wegnimmt */
    margin-bottom: 0 !important; 
  }
  
  #tabellerechts {
    width: 95%;
    max-width: 450px !important;
    /* 3. Alle alten Abstände nach oben für Mobile löschen */
    margin-top: 0 !important; 
    order: 2;
  }

}

  .form-row {
    justify-content: space-between;
  }


.tabellelinks {
  display: inline-block; /* Erlaubt zweites Element daneben */
  vertical-align: top;
  width: 100%;
  max-width: 425px;
  background-color: #53A5E7 !important; /* Das Blau deiner Felder */
  padding: 20px;
  box-sizing: border-box;
}

/* Texte (Übernahme / Rückgabe) */
.tabellelinks b, 
.tabellelinks label {
  display: block;
  font-size: 1.0em;
  margin-bottom: 15px;
}

/* Zeilen-Container für Datum + Zeit */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;

}

.ort, 
input.datum, 
.zeit {
  height: 42px !important;
  border: none;
  border-radius: 10px;
  background-color: white !important;
  color: #333;
  font-size: 15px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
  margin: 0 !important;
}

.ort {
  width: 100% !important;
  padding: 0 15px;
  margin-bottom: 15px !important;
  background-image: none !important;
  cursor: pointer;
}

input.datum {
  width: 66% !important;
  padding: 0 35px 0 10px;
  background-image: url("https://dachbox.expert/pics/kalender30.png") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 20px !important;
  cursor: pointer;
}

.zeit {
  width: 31% !important;
  padding-left: 5px;
  cursor: pointer;
  -webkit-appearance: auto;
  appearance: auto;
}

.btn {
  width: 100%;
  height: 45px !important;
  line-height: 45px;
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: middle;
  background-color: blue;
  color: white;
  border-radius: 15px;
  border: none;
  font-size: 1em;
  margin-top: -10px !important;
  cursor: pointer;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
  padding-bottom: 15px;
}

.btn {
  /* Deine bestehenden Styles */
  transition: all 0.3s ease; /* Macht den Übergang weich */
}

.btn:hover {
  background-color: #0000FF; /* Ein kräftigeres Blau */
  box-shadow: 8px 8px 20px rgba(0,0,0,0.4); /* Schatten wird stärker */
  transform: translateY(-2px); /* Button hebt sich minimal an */
  cursor: pointer;
}

.zentriert { text-align: center; }



/* 📱 Mobile Optimierung unter 460px */
@media screen and (max-width: 460px) {
  input.datum {
    font-size: 0.85em !important;
    padding: 0 30px 0 8px !important;
    background-size: 18px !important;
  }
  .zeit {
    font-size: 0.85em !important;
  }
}



		@media (prefers-color-scheme: light) {

		    /* Texte innerhalb der linken Box auf schwarz */
		    .tabellelinks b, 
		    .tabellelinks label, 
		    .tabellelinks a {
		      color: black !important;
		      text-decoration: none;
		    }
		}

		@media (prefers-color-scheme: dark) {

		    .tabellelinks {
		    background-color: #333333 !important;
		    }

		    /* Texte innerhalb der linken Box auf #FAD85B */
		    .tabellelinks b, 
		    .tabellelinks label, 
		    .tabellelinks a {
		      color: #FAD85B;
		      text-decoration: none;
		    }
		}


.container {
  display: flex;          /* Aktiviert das Flexbox-Layout */
  justify-content: center; /* Zentriert die Boxen horizontal */
  gap: 20px;              /* Erzeugt einen Abstand zwischen den Boxen */
  width: 100%;            /* Stellt sicher, dass der Container die Breite nutzt */
}

.box {
  flex: 1;
  max-width: 300px;       /* Verhindert, dass die Boxen zu breit werden */
  border: 1px solid black;
  padding: 10px;
}
