/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: > 0.2%,last 2 versions
*/

/* General Page Settings Start */
@font-face {
  font-family: 'Zapf';
  src: url(/fonts/zapf.woff2) format('woff2'),
       url(/fonts/zapf.woff) format('woff');
  font-display: fallback;
}

@font-face {
  font-family: 'Comfortaa';
  font-weight: 300;
  src: url(/fonts/Comfortaa-Light.woff2) format('woff2'),
       url(/fonts/Comfortaa-Light.woff) format('woff');
  font-display: fallback;
}

@font-face {
  font-family: 'Comfortaa';
  font-weight: 400;
  src: url(/fonts/Comfortaa-Regular.woff2) format('woff2'),
       url(/fonts/Comfortaa-Regular.woff) format('woff');
  font-display: fallback;
}

*{
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: 'Zapf', sans-serif;
}

h1 {
  font-size: 71px;
}
h2 {
  font-size: 2.25em;
  color: #000;
}

/* General Page Settings End */

/* Nachricht Box Formular Start */
.nachricht-container {
	position: relative
	max-width: 500px;
	height: 600px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	padding: 20px;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	background-color: #333333;
	overflow: hidden;
	-o-transition: 0.5s ease-in-out;
	-webkit-transition: 0.5s ease-in-out;
	transition: 0.5s ease-in-out;
}

@media screen and (max-width: 700px) {
  form {
	  padding: 10px;
  }
}

textarea {
	height: 200px;
	margin-bottom: -35px;
	resize: vertical;
}

textarea::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	border-radius: 2px;
	background-color: #f5f5f5;
	cursor: default;
}

textarea::-webkit-scrollbar {
	width: 12px;
	background-color: #f5f5f5;
}

textarea::-webkit-scrollbar-thumb {
	border-radius: 2px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: #333333;
}

textarea::-webkit-scrollbar-thumb:hover {
	cursor: default;
	background-color: #5c5c5c;
}

.input-field {
    position: relative;
    margin-bottom: 25px;
}

#input_label {
    display: flex;
    flex-direction: row-reverse;
}

input[type="text"],
input[type="tel"],
input[type="email"],
.textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid transparent; /* Setze eine transparente Border */
    border-bottom-color: #cccccc; /* Färbe nur die untere Border */
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
    overflow-y: auto;
}

input[type="number"] {
	position: absolute;
	width: 70px;
    padding: 10px;
    border: 2px solid transparent; /* Setze eine transparente Border */
    border-bottom-color: #cccccc; /* Färbe nur die untere Border */
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
	left: 120px;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
.textarea:focus {
    border-bottom-color: #ffc300; /* Ändere nur die untere Border-Farbe */
    box-shadow: 0 0 10px 0 rgba(255, 195, 0, 1);
    outline: none;
}

input[type="text"]:hover,
input[type="radio"]:hover,
input[type="tel"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="checkbox"]:hover,
select:hover,
.textarea:hover {
	box-shadow: 0 0 10px 0 rgba(255, 195, 0, 1);
	outline: none;
	transition: all 0.2s ease;
}

.input-field label {
    position: absolute;
    top: 12px;
    left: 10px;
    color: #000000;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s ease;
	background-color: transparent; /* Hintergrundfarbe des Labels */
    padding: 0 4px; /* Abstand um den Text herum */
    z-index: 1; /* Sicherstellen, dass das Label über dem Input-Feld liegt */
}

#mathefrage {
	top: 11px;
	left: 0;
	color: #ffffff;
	font-size: 16px;
}

.input-field label.active {
    top: -18px;
    left: 0px;
    font-size: 14px;
    color: #ffffff;
    padding: 0 4px;
}

/* Custom styles for the checkbox */
.checkbox-container {
	display: flex;
	align-items: center;
	margin: 20px 0;
}

input[type="checkbox"] {
	border: 1px solid #cccccc;
	box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.5);
}

.checkbox-container input[type="checkbox"] {
	appearance: none;
	background-color: #ffffff;
	margin: 0;
	font: inherit;
	color: #ffc300;
	width: 1.25em;
	height: 1.25em;
	border: 0.1em solid #999999;
	border-radius: 0.15em;
	display: grid;
	place-content: center;
}

@media screen and (max-width: 700px) {
  .checkbox-container input[type="checkbox"] {
	  width: 1.6em;
	  height: 1.5em;
  }
}

.checkbox-container input[type="checkbox"]::before {
	content: "";
	width: 0.65em;
	height: 0.65em;
	transform: scale(0);
	transition: 120ms transform ease-in-out;
	box-shadow: inset 1em 1em #ffc107;
	transform-origin: center;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

@media screen and (max-width: 700px) {
  .checkbox-container input[type="checkbox"]::before {
	  width: 1em;
	  height: 1em;
  }
}

.checkbox-container input[type="checkbox"]:checked::before {
	transform: scale(1);
}

.checkbox-container label {
	margin-left: 0.5em;
	font-size: 1em;
	color: #ffffff;
}

.checkbox-container a {
	text-decoration: none;
	color: #ffc300;
}

.input-field .helper-text {
    color: red;
    font-size: 12px;
    display: none;
}

select {
	width: 100%;
    padding: 10px;
	margin-top: 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
	box-sizing: border-box;
	font-size: 16px;
	box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.5);
	transition: border-color 0.3s;
}

select + label {
    top: -10px !important;
    left: 0 !important;
    font-size: 16px !important;
    color: #000000 !important;
}

#anrede_titel {
	display: flex;
	flex-direction: row;
	gap: 40px;
	margin-top: -10px;
}

@media screen and (max-width: 700px) {
  #anrede_titel {
	  gap: 20px;
  }
}

#anrede_titel .col {
	width: 100%;
}

.telefon-formular {
	display: none;
}

#titel_col {
	margin-top: 15px;
}

#vorname_nachname {
	display: flex;
	flex-direction: row;
	gap: 40px;
}

@media screen and (max-width: 700px) {
  #vorname_nachname {
	  gap: 20px;
  }
}

#vorname_nachname .col {
	width: 100%;
}

#mail_telefon {
	display: flex;
	flex-direction: row;
	gap: 40px;
	margin-bottom: 20px;
}

@media screen and (max-width: 700px) {
  #mail_telefon {
	  gap: 20px;
  }
}

#mail_telefon .col {
	width: 100%;
}

#nachricht {
	margin-bottom: 50px;
}

#aufgabe {
	margin-bottom: 80px;
}

/* Notwendige Eingabefelder */
.required {
    color: red;
    margin-left: 2px;
}

/* Button */
button.abutton {
	display: block;
    background-color: #ffc300;
    color: #000000;
    padding: 10px 30px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
	box-shadow: 0 0 14px 0 rgba(255, 255, 255, 0.5);
	margin-left: auto;
}

button:hover {
	box-shadow: unset;
	cursor: pointer;
}

button.abutton label {
	display: inline-flex;
	position: relative;
	top: -7px;
	margin-right: 10px;
	cursor: pointer;
}


@media screen and (max-width: 700px) {
  #abutton {
	  margin-bottom: 7px;
  }
}

.nachricht-box-initial,
.nachricht-box-neu {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-transition: opacity 1s;
	-o-transition: 0.5s ease-in-out;
	-webkit-transition: 0.5s ease-in-out;
	transition: 0.5s ease-in-out;
}

.nachricht-box-neu {
	opacity: 0;
	visibility: hidden;
	font-size: 20pt;
	color: #ffffff;
}

.anfrage-lottie {
	display: block;
	margin-top: -40px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 20px;
	width: 200px;
	height: 200px;
}

.nachricht-container.transition .nachricht-box-initial {
	opacity: 0;
	visibility: hidden;
}

.nachricht-container.transition .nachricht-box-neu {
	opacity: 1;
	visibility: visible;
}

.faded-text {
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.visible-text {
	opacity: 1;
}

@media screen and (max-width: 700px) {
  .visible-text {
	  font-size: 18pt;
  }
}
/* Nachricht Box Formular End */