@font-face {
  font-family: 'Spectral';
  src: local('Spectral'),
       url('fonts/Spectral/Spectral-Regular.ttf') format('ttf');
}

@font-face {
  font-family: 'trattatello';
  src: local('trattatello'),
       url('fonts/Trattatello/web/font/Trattatello.woff2') format('woff2');
}

body {
margin: 0;
width: 100%;
}

.linksrechts-container {
  position: fixed;
  top: calc(12vh + 1vh);
  left: 0;
  right: 0;
  bottom: 0;
  height: 87vh;

  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;

  z-index: 2000;
  padding: 0 6vw;
  box-sizing: border-box;
}

.plinks {
  flex: 0 0 22%;
  margin: 0;
  /* max-height: calc(100vh - 12vh - 1vh); */
  overflow: hidden;
  font-family: 'Spectral', serif;
  font-size: clamp(0.9rem, 0.95vw, 1.1rem);
  line-height: 1.5;
}

.rechts {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 780px;
  height: 100%;
  margin: 0;
  margin-top: 0.5rem;
  margin-bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: clamp(0.95rem, 1vw, 1.15rem);
font-family: 'Spectral', serif;
line-height: 1.5;
  /* max-height: calc(100vh - 12vh - 40px); */
}

.submit-form-container {
  position: relative;
  overflow: hidden;
}

form {
  max-width: 100%;
  padding-left: 0;
  border-radius: 12px;
  font-family: 'Spectral', serif;
  line-height: 1.5;
  margin-bottom: 6rem;
  font-size: clamp(0.95rem, 1vw, 1.1rem);
}

/* .linksrechts-container {
  position: fixed;
  top: calc(12vh + 20px);
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  flex-direction: row;
  align-items: flex-start;

  z-index: 2000;
}

.plinks {
  margin-left: 10%;
  margin-right: 4%;
  flex: 0 0 16%;
  max-height: 100vh;
  overflow: hidden;
  top: 0;
  font-family: 'spectral', serif;
  font-size: 0.9em;
}

.rechts {
  position: relative;
  height: 100%;  
  overflow-y: scroll;
  flex: 0 0 70%;
  overflow-y: auto;
  min-width: 50%;
  margin-top: 1rem;
  margin-bottom: 300px;
  max-height: 90vh;
  overflow-x: hidden;
}

.submit-form-container {
  position: relative;
  overflow-y: scroll;
}



form {
  max-width: 700px;
  padding-left: 3rem;
  border-radius: 12px;
  font-family: 'Spectral', serif;
  line-height: 1.5;
  margin-bottom: 5rem;
} */


.header {
background: linear-gradient(to bottom, #ffffff, rgba(0, 123, 255, 0));
}


form fieldset {
  border: none;
  padding: 2rem;
  margin-bottom: 1.5rem;
  
}

form legend {
  font-weight: normal;
  font-size: clamp(1rem, 1.05vw, 1.15rem);
  padding: 0 0 0.5rem 0;
  font-family: 'trattatello', sans-serif;
  letter-spacing: 0.06em;
}

form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  font-weight: 500;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form textarea,
form select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  box-sizing: border-box;
  font-family: 'Spectral', serif;
}

form textarea {
  min-height: 80px;
  resize: vertical;
  font-family: 'Spectral', serif;
}

form input[type="radio"],
form input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #ffffff;
  outline: 1px solid #000000;
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #ffffff;
  outline: 1px solid #000000;
   /* background-color: #000000; */
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.container .checkmark:after {
 	top: 9px;
	left: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}



form button {
  left: 50%;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  transform: translateX(-50%);
  font-weight: normal;
 font-size: clamp(0.9rem, 0.95vw, 1.05rem);
  padding: 0 0.5rem;
  margin-top: 1rem;
  margin-bottom: 30px;
  font-family: 'trattatello', sans-serif;
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background-color: #000000;
  border: 1px solid #000000;
  border-radius: 60%;
  cursor: pointer;
  transition: 0.2s background-color;
    margin-left: 5rem;
}

/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */

/* submit .button {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);

} */

form button:hover {
  color: #000000;
  border: 1px solid #000000;
  background-color: #f2f2f2;
  box-shadow: 0 0 10px #e1e1e1;
}

/* Erfolg / Fehler Meldungen */
form p {
  margin-bottom: 1rem;
  font-family: 'Spectral', serif;
}

form p[style*="color: green"] {
  background: #e6f4ea;
  color: #000000;
  padding: 0.5rem 1rem;
font-family: 'Spectral', serif;
}

form p[style*="color: red"] {
  background: #fdecea;
  color: #000000;
  border-radius: 4px;
  font-family: 'Spectral', serif;
}

/* Gruppen für Inputs */
.categories,
.personendaten,
.timelinedaten {
  margin-bottom: 1rem;
}

.categories label,
.personendaten label,
.timelinedaten label {
  font-weight: normal;
  font-family: 'Spectral', serif;
}

.input-area input {
  margin-top: 0.25rem;
  width: 100%;
  font-family: 'Spectral', serif;
}

.form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.form-overlay-box {
  border: #000000 solid 1px;
  padding: 0.6rem 1.2rem;
  border-radius: 60%;
  background: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  font-weight: normal;
  font-family: 'Spectral', serif;
}

.form-overlay-box h2 {
  margin-top: 0;
  font-weight: normal;
  font-size: clamp(1.5rem, 2vw, 2rem);
  padding: 0 0.5rem;
  font-family: 'trattatello', sans-serif;
}

.overlay-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 60%;
  background: black;
  color: white;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: normal;
  font-family: 'Spectral', serif;
  font-size: clamp(0.9rem, 0.95vw, 1.05rem);
}

.overlay-button.secondary {
  background: transparent;
  color: black;
  border: 1px solid black;
}

.form-button {
  display: inline-block;
  /* margin-left: 10%; */
  /* margin-top: 1rem; */
  padding: 0.7rem 1.5rem;
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 60%;
  color: rgb(0, 0, 0);
  text-decoration: none;
  cursor: pointer;
  font-family: 'trattatello', sans-serif;
  letter-spacing: 0.06em;
  font-size: clamp(0.9rem, 0.95vw, 1.05rem);
}


.ex1 {
  margin-bottom: 40px;
}

.ex1::after {
  content: "";
  display: block;
  height: 40px;
}

.invisible-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Scrollen bleibt möglich, Scrollbars unsichtbar */
.rechts,
.submit-form-container {
  overflow-y: auto; /* Scrollen möglich */
  overflow-x: hidden; /* horizontale Scroll ggf. deaktivieren */
  
  /* Firefox */
  scrollbar-width: none; 

  /* IE 10+ */
  -ms-overflow-style: none; 
}

/* Chrome, Safari, Opera */
.rechts::-webkit-scrollbar,
.submit-form-container::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {

    .submit-form-container {
    min-height: 100vh;
    width: 100%;
  }

  .submit-form-container .linksrechts-container {
    position: static;
    display: block;
    padding: 1rem;
  }
  .submit-form-container .linksrechts-container{
    margin-top: 12vh;
    padding: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
}

  .submit-form-container .plinks{
    margin: 0 0 1rem 0;
    max-height: none;
    overflow: visible;
    font-size: 1rem;
    width: 100%;
    margin-top: 14vh;
  }

  .submit-form-container .plinks{
    /* line-height: 1.6; */
    margin-bottom: 120px;
  }

   .submit-form-container .rechts {
    margin: 0;
    max-height: none;
    overflow: visible;
    width: 100%;
  }

  /* .submit-form-container .rechts {
      max-width: 90%;
    line-height: 1.6;
    margin-bottom: 120px;
} */

  form {
    padding-left: 0;
    max-width: 100%;
    /* outline: 1px solid blue; */
  }

  form fieldset {
    padding: 2rem 0;
    /* outline: 1px solid rgb(255, 145, 0); */
  }

  form input[type="text"],
  form input[type="email"],
  form input[type="number"],
  form textarea,
  form select {
    font-size: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-family: 'Spectral', serif;
    /* outline: 1px solid rgb(255, 0, 255); */
  }

  form button {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem 1.2rem;
    border-radius: 999px;
  }

  .ex1 {
  margin-bottom: 40px;
}

.ex1::after {
  content: "";
  display: block;
  height: 40px;
}

form button {
  /* left: 50%; */
  color: #ffffff;
  /* transform: translateX(-50%); */
  font-weight: normal;
  font-size: 1rem;
  /* padding: 0 0.5rem; */
  margin-top: 1rem;
  margin-bottom: 30px;
  font-family: 'trattatello', sans-serif;
  /* display: inline-block; */
  /* padding: 0.7rem 1.5rem; */
  background-color: #000000;
  border: 1px solid #000000;
  letter-spacing: 0.06em;
  border-radius: 60%;
  cursor: pointer;
  transition: 0.2s background-color;
  margin-left: 50%;
}

label{
  font-family: 'Spectral', serif;
  font-size: 1rem;
  padding-bottom: 0.5rem;
}

form legend {
  font-weight: normal;
  font-size: 1.1rem;
  font-family: 'trattatello', sans-serif;
  letter-spacing: 0.06em;
  /* outline: 1px solid red; */
}

.submit-form-container .form-button{
    position: fixed;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30000;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    background: white;
    border: 1px solid black;
    cursor: pointer;
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 60%;
  color: rgb(0, 0, 0);
  text-decoration: none;
  cursor: pointer;
  font-family: 'trattatello', sans-serif;
  letter-spacing: 0.06em;
  } 

  .submit-form-container.is-active .form-button{
    position: fixed;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30000;
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 60%;
    color: rgb(0, 0, 0);
    text-decoration: none;
    cursor: pointer;
    font-family: 'trattatello', sans-serif;
    letter-spacing: 0.06em;
  }

}

/* =========================
   TABLET / ZWISCHENGRÖSSE
========================= */
@media (max-width: 1400px) and (min-width: 769px) {

  .submit-form-container .back-arrow-wrap {
    display: block;
    position: fixed;
    top: calc(12vh - 0.5rem);
    left: 6vw;
    z-index: 30000;
    width: auto;
    margin: 0;
  }

  .submit-form-container .linksrechts-container {
    position: fixed;
    top: calc(12vh + 1vh);
    left: 0;
    right: 0;
    bottom: 0;
    height: 87vh;

    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;

    padding: 0 6vw;
    box-sizing: border-box;
  }

  .submit-form-container .plinks {
    flex: 0 0 23%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
  }

  .submit-form-container .rechts {
    flex: 1 1 auto;
    max-width: 780px;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
  }

  .submit-form-container .form-button {
    display: none;
  }

  .submit-form-container .plinks,
  .submit-form-container .rechts {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .submit-form-container .plinks::-webkit-scrollbar,
  .submit-form-container .rechts::-webkit-scrollbar {
    display: none;
  }
}
