@charset "utf-8";
/* CSS Document */
#openModal {
  width:0;
  height:0;
  overflow:hidden; 
}
.open:focus ~ #openModal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width:100%;
  height:100%;
  background: rgba(0, 0, 0, 0.8);
  pointer-events: auto;
}

#openModal > div {
  width: 400px;
  position: relative;
  margin: 10% auto;
  padding: 5px 20px 13px 20px;
  border-radius: 10px;
  background: #fff;
  background: -moz-linear-gradient(#fff, #999);
  background: -webkit-linear-gradient(#fff, #999);
  background: -o-linear-gradient(#fff, #999);
}

#box {
    border: 1px solid; /* je 2px links und rechts  */
    margin: 0 30px;    /* je 30px links und rechts */
    background-color:#6600CC;
 }

body {
	font-family: Arial, Helvetica, sans-serif;
	}
	
dialog {
  border-radius: 25px;
  border: none;
  border-radius: .5rem;
  box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .1);
  padding: 0;
  opacity: 0;
  transform: scale(.95);
  transition: all .3s ease allow-discrete;
  box-shadow: 10px 20px 15px silver;

}

dialog::backdrop {
  opacity: 0;
  transition: all .3s ease allow-discrete;
}

dialog form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

dialog[open] {
  opacity: 1;
  transform: scale(1);
}

dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  kontakt[open] {
    transform: scale(.9);
    opacity: 0;
  }

kontakt[open]::backdrop {
    opacity: 0;
  }
}
/* The Modal (background) */
#bereich {
    background-color: yellow;
    width: 400px;
    height: auto;
    padding: 10px;
    margin: 60px;
    border: 3px green solid;
	border-top-left-radius: 2%;
	border-top-right-radius: 2%;
	border-bottom-left-radius: 2%;
	border-bottom-right-radius: 2%;
}
/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Add padding and center-align text to the container */
.container {
  padding: 16px;
  text-align: center;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 200px;
  height: 100 px;
	border-top-left-radius: 2%;
	border-top-right-radius: 2%;
	border-bottom-left-radius: 2%;
	border-bottom-right-radius: 2%;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}


