/****************
*** DEFAULTS
*****************/
* { 
	margin: 0px; 
	box-sizing: border-box;
	font-family: Courier,Tahoma,Verdana,sans-serif;
}
html { height: 100%; }
body {
  /* background-color: white; */
  /* position: relative; */
  background-color: white;
  margin: 0;
  /* padding-bottom: 6rem; */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* HEADINGS DEFAULT */
h1, h2, h3, h4, h5, h6, a, span, p{ color: black; font-family: Courier,Tahoma,Verdana,sans-serif;margin:0; }
a { text-decoration: none; }
ul, ol { margin-left: 40px; }
hr { margin: 10px 0px; opacity: .25; }
.cursor {
  cursor: pointer;
}
/* FORM DEFAULTS */

form input, form textarea{
	padding: 10px 10px;
	font-size: 1em;
	margin: 5px auto 10px;
	border-radius: 3px;
	box-sizing : border-box;
	border: 1px solid black;
	font-family: Courier,Tahoma,Verdana,sans-serif;
}
form input:focus, form textarea:focus{
	outline: none;
}

.mydropzone{

	padding: 10px 10px;
	font-size: 1em;
	margin: 5px auto 10px;
	border-radius: 3px;
	box-sizing : border-box;
	background: white;
	border: 1px solid #3E606F;
	
}
/* BUTTON DEFAULT */
.btn {
	color: white;
	background: #4E6166;
	text-align: center;
	border: none;
	border-radius: 5px;
	display: block;
	margin: 10px 0px;
	padding: 10px 25px;
	text-decoration: none;
	cursor: pointer;
	font-weight: bolder;
	letter-spacing: 0.1em;
	width: 150px;
}
.btn:hover{
	cursor: pointer;	
}
.container {
	/* position: relative; */
	width: 80%;
	max-width: 1300px;
	margin: auto;
	padding-top: 80px;
	padding-bottom: 10px;
	/* height: 100%; */
}
.container .textbox{
	padding:40px 0 40px 0;
	font-size:large;	
}
/* NAVBAR */
.navbar {
	margin: auto;
    overflow: hidden;
	background-color: white;
	color: black;
    border-radius: 0px 0px 6px 6px;
	height: 50px;
	position:fixed;
	top:0;
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	width: 80%;
	max-width: 1300px;
	z-index: 9999; 
	text-align:center;
	letter-spacing: 0.1em;
	padding-top:10px; 
	white-space: nowrap;
	box-shadow: none;
	transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}
/*.navbar:hover,.navbar h1:hover, .navbar a:hover, .navbar:hover h1,  */
.navbar:hover{
	color: white;
	background-color: black;
}
.navbar:hover a,
.navbar:hover .customlink{
	color: white;
}

/* Links in Navbar sanft einfärben (vor/zurück) */
.navbar a,
.navbar .customlink{
	color: inherit;
	transition: color 0.5s ease;
}

/* FOOTER */
.footer {
  position: static;
  background-color: white;
  text-align: left;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 6px 10px;
  border-radius: 0;
  z-index: 9999;
  margin-top: auto; /* Sticky Footer im Flex-Layout: ans Seitenende schieben */
}
.footer p{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
}
.footer .footer-left{
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: center;
}
.footer .footer-right{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-white{
  background-color: white;
}
.footer a{
  color: inherit;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0 2px;
  border-radius: 2px;
}
.footer a:hover{
  background-color: black;
  color: white;
}

/* Login-Link im Footer: kein Hover-Effekt */
.footer a.no-hover:hover{
  background-color: transparent;
  color: inherit;
}

/* Footer Sichtbarkeit deaktiviert (Footer bleibt am Seitenende) */


.logged_in_user{
	color:green;
	font-style:italic;
}
.contribute {
	margin: 5px 0px 0px 5px;
	min-height: 600px;
	color: white;
	border-radius: 5px;
	/* background-image: url('../images/banner.jpg'); */
	background-color: #3E606F;
	/* background-size: 100% 100%; */
	flex:1;
}
.map{
	width: 100%;
	/* Prozent-Höhen kollabieren seit body auf flex/min-height umgestellt wurde.
	   Nutze viewport-basierte Höhe für verlässliche Sichtbarkeit. */
	height: 60vh;
	min-height: 320px;
	border-radius: 5px;
	margin-top:60px;
}

/* CONTENT */
.content {
	margin: 5px 0;
	border-radius: 5px;
	min-height: 400px;
	clear:both;
	display:flex;
	gap: 25px 25px;
	flex-wrap: wrap;
	
}
.content:after {
	display: block;
	clear: both;
}
.content .add_post {
	min-width:300px;
	max-height:300px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color:#f8f06f;
	cursor: pointer;
}
.content .add_post a img{
	transition: transform 0.5s ease;
	transform-origin: center center;
	will-change: transform;
}
.content .add_post:hover a img{
	animation: addpost-pulse 2.4s ease-in-out infinite;
}
@keyframes addpost-pulse{
	0% { transform: scale(1); }
	50% { transform: scale(1.32); }
	100% { transform: scale(1); }
}
.content .post .post_image {
	height: 300px;
	width: 300px;
	object-fit: cover;
	background-size: 100%;
}
.content .post{
	transition: transform 0.2s ease;
}
.content .post:hover{
	transform: translateY(-2px);

}
.create_post{
	display:flex;
	gap:10px;
}
.create_post .map{
	flex:2;
	margin-top:0px;
	height:400px
}
.create_post .create_post_text{
	flex:1;
	padding: 0 10px 0 10px;
	text-align:justify;
}
.post_single{
	flex:2;
}
.post_single_image{
	height:auto;
	max-width: 100%;
	max-height:650px;
	width:auto;
	margin:auto;
	border-radius: 0.3rem;
	cursor: zoom-in;
}
.post_outer{
	justify-content: flex-start;
	align-items: stretch;
	width:100%;
	max-width:1300px; 
	margin-top:30px;
	margin-bottom: 60px;
	display: flex;
}
.post_slides {
	display: none;
}
.post_single_slide{
	width: 100%;
	height:auto;
	max-height:650px;
}
.post_slide_navigation{
	justify-content: space-between;
	display:flex;
}
.post_desc{
	display: inline-block;
	padding-left:20px;
	flex:1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	/* max-height:600px	 */
}
.post_desc .post_meta{
	flex:auto;
}
.post_meta_1{
	justify-content: space-between; 
	display:flex; 
	flex-wrap: wrap;
	font-size:1.0rem;
	padding:10px 10px 10px 0;	
}
.post_desc .post_meta .post_meta_2{
	justify-content: space-between;
	display:flex;
	max-height: 250px;	
	flex:content;
	overflow:auto;
	scrollbar-width: thin;
}
.add_comment{
	text-align:center;
	flex:auto;
	padding: 10px 0 10px 0;
}
.post_comments{
	flex:content;
	overflow:auto;
	scrollbar-width: thin;
	max-height: 250px;	
}
.post_comments_border {
	margin-top: 25px;
	border-radius: 2px;
	border-top: 1px solid #e4e1e1;
}
#comment_form{
	display:none;
	padding-right:20px;
	padding-bottom:20px
}
/*
#dropzone-form label{
	float: left;
	margin: 5px auto 5px;
} */
#dropzone-form{
	display:flex;
	flex-direction:column;
	padding-top:40px
}

#dropzone-form input,#dropzone-form textarea, .mydropzone, #comment_form input, #comment_form textarea{
	width:100%;
	/* font-weight: bold; */
}

.qrcode{
	width:100px;
}

/* NOTIFICATION MESSAGES */
.message {
	width: 100%; 
	margin: 15px auto 15px auto; 
	padding: 10px 0px; 
	color: #3c763d; 
	background: #dff0d8; 
	border: 1px solid #3c763d;
	border-radius: 0; 
	text-align: center;
}
.error {
	color: #a94442; 
	background: #f2dede; 
	border: 1px solid #a94442; 
	margin-bottom: 20px;
}
.validation_errors p {
	text-align: left;
	margin-left: 10px;
}
.logged_in_info {
	text-align: right; 
	padding: 10px;
}
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding: 24px 0; /* etwas mehr Rand oben/unten */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  min-height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-content {
  margin: 24px auto; /* mehr vertikaler Rand */
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 48px); /* mehr Rand links/rechts */
  max-height: calc(100vh - 96px); /* mehr Rand oben/unten */
  z-index: 99999;
  cursor: zoom-in;
}

/* Add Animation */
.modal {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}
.prevModal{
  position: absolute;
  color: white;
  top: 50%;
  left: 0; /* ganz am Rand */
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
  transform: translateY(-50%);
  z-index: 100000;
}
.nextModal{
  position: absolute;
  color: white;
  top: 50%;
  right: 0; /* ganz am Rand */
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
  transform: translateY(-50%);
  z-index: 100000;
}
@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}
@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}
/* The Close Button */
.close {
  position: absolute;
  top: 8px;
  right: 16px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 99999
}
.modal-content.zoomed{
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  cursor: zoom-out;
}
.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}


/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  /* position: absolute; */
  top: 10%;
  width: auto;
  padding: 0 20px;
  /* margin-top:  50%; */
  color: black;
  font-weight: bold;
  font-size: 20px;
  transition: 0.5s ease;
  border-radius: 5px;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next{
  right: 35%;
  border-radius: 3px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: black;
  color: white;
}

.to-top{
  font-size: 18px;
  color: black;
  background: transparent;
  padding: 0px 4px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  margin-left: 12px;
}
.to-top:hover{
  background: black;
  color: white;
  transition: 0.3s ease;
}

.embed-container { 
position: relative; 
padding-bottom: 56.25%; 
height: 0; 
overflow: hidden; 
max-width: 100%; 
} 
.embed-container iframe, .embed-container object, .embed-container embed { 
position: absolute; 
top: 0; 
left: 0; 
width: 100%; 
height: 100%; 
}
.my-leaflet-info{
	background: rgba(255, 255, 255, 0.7);
	padding: 0 5px 0 5px;
	margin: 0 !important;
}

@media screen and (max-width: 755px) {
.container{
	width: 100%;
	padding-top: 0;
	padding-bottom: 10px;
}
 h1{font-size: 20px;}
.navbar {
	height: 40px;
	left:0;
	right:0;
	transform: none;
	width: 100%;
	max-width: 100%;
}
.footer{
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}
.to-top{
  bottom: 70px;
}
.map{
	height: 50% !important;	
	margin-top:40px;
} 
.content{
	justify-content: center;
	gap: 10px 10px;
}
.content .add_post {
	min-height:50px;

} 
.container .textbox{
	padding: 10px;
	justify-content: center;
	font-size: small;
}
.post_single{
	flex:auto;
}
.post_outer{
	justify-content: center;
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	margin-top: 10px;
	margin-bottom: 0;
}
.post_desc{
	padding: 10px;
}
.post_slide_navigation{
	padding-top:10px;
}
.post_desc .post_meta {
	padding-top: 10px;
}
.create_post{
	/* justify-content: center; */
	align-items: flex-start;
	flex-direction: column;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.create_post .map{
  	flex: auto;
	height: 200px !important;
	margin-top:40px;
}
.create_post .create_post_text {
  font-size: 10px;
}
#dropzone-form{
	padding: 10px
}
.leaflet-container .leaflet-control-attribution{
	font-size: 4px !important;
	width: 50% !important;
}
.leaflet-control-layers{
	transform: scale(0.6) !important;
	margin: 0 !important;
}

.my-leaflet-info{
	background: rgba(255, 255, 255, 0.7);
	font-size: 5px;
}
.modal-content {
    width: auto;
    height: auto;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 48px);
}
}

.vert-align-objects::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* * * * * * * * * *
* ADMIN PAGES
* * * * * * * * * */

/* Table div (Displaying records from DB) */
table { border-collapse: collapse; width: 70%; margin: 20px auto; }
th, td { padding: 8px; text-align: left; border: 1px solid #ddd; }
th { text-align: center;}

/* Admin-Tabellen: Icon-Spalten mittig ausrichten */
/* admin/posts.php: View/Publish/Edit/Delete sind Spalten 5-8 */
.table th:nth-child(5),
.table th:nth-child(6),
.table th:nth-child(7),
.table th:nth-child(8),
.table td:nth-child(5),
.table td:nth-child(6),
.table td:nth-child(7),
.table td:nth-child(8) { text-align: center; }
/* adminview.php: View/Publish/Edit/Delete sind Spalten 7-10 */
.table th:nth-child(7),
.table th:nth-child(8),
.table th:nth-child(9),
.table th:nth-child(10),
.table td:nth-child(7),
.table td:nth-child(8),
.table td:nth-child(9),
.table td:nth-child(10) { text-align: center; }

/* .table-div { float: left; width: 47%; } */
.table-div .message { width: 90%; margin-top: 20px; }
.table-div table { width: 100%; height:100%}
.table-div td { height:100%}
.table-div a.fa { color: white; padding: 3px; }
.table-div button.fa { color: white; padding: 3px; }
.table-div .view { background: blue; }
.table-div .edit { background: #004220; }
.table-div .delete { background: #F70E1A; }
.table-div .publish { background: red; }
.table-div .unpublish { background: green; }

.btnadmin{
	width: 50px;
		color: white;
	background: #4E6166;
	text-align: center;
	border: none;
	border-radius: 5px;
	display: block;
	margin: 10px 0px;
	padding: 10px 25px;
	text-decoration: none;
	cursor: pointer;
	font-weight: bolder;
	letter-spacing: 0.1em;
}
.edit_input{
	height:100%;
	width:100%;
}







/* sorttable */
/* line 2, ../sass/_sortable.sass */
table[data-sortable] {
  border-collapse: collapse;
  border-spacing: 0;
}
/* line 6, ../sass/_sortable.sass */
table[data-sortable] th {
  vertical-align: bottom;
  font-weight: bold;
}
/* line 10, ../sass/_sortable.sass */
table[data-sortable] th, table[data-sortable] td {
  text-align: left;
  padding: 10px;
}
/* line 14, ../sass/_sortable.sass */
table[data-sortable] th:not([data-sortable="false"]) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  cursor: pointer;
}
/* line 26, ../sass/_sortable.sass */
table[data-sortable] th:after {
  content: "";
  visibility: hidden;

  vertical-align: inherit;
  height: 0;
  width: 0;

  border-style: solid;
  border-color: transparent;


}
/* line 40, ../sass/_sortable.sass */
table[data-sortable] th[data-sorted="true"]:after {
  visibility: visible;
}
/* line 43, ../sass/_sortable.sass */
table[data-sortable] th[data-sorted-direction="descending"]:after {
  border-top-color: red;
  margin-top: 8px;
}
/* line 47, ../sass/_sortable.sass */
table[data-sortable] th[data-sorted-direction="ascending"]:after {
  border-bottom-color: red;
  margin-top: 3px;
}
