/* Beginn Formulare */
/* Modernes Kontaktformular */
.formular-area {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  font-family: "Segoe UI", sans-serif;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: transparent;
  padding: 1rem;
}

/* Eingabefelder */
.input-text,
.contact-textarea textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 2em;
  background-color: #ddf1f5;
  font-size: 1rem;
  font-family: inherit;
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
}

.contact-textarea textarea {
  border-radius: 1.5em;
  min-height: 150px;
  resize: vertical;
}

.input-text:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 74, 97, 0.3);
}

/* Labels */
.contact-container label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.contact-checkbox label a {
    color: #0089af;
}

.contact-checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 1rem;
}

.contact-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: #ddf1f5;
}

/* Buttons */
.contact-button {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.input-button {
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 2em;
  background-color: #ddf1f5;
  color: #222;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-button:hover {
  background-color: #c6e5ed;
  box-shadow: 0 0 6px rgba(66, 74, 97, 0.3);
}

/* Fehlermeldungen */
.error {
  font-size: 0.85rem;
  color: #d32626;
  display: block;
  margin-top: 0.2rem;
}

.error-global {
  color: #d32626;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Responsiv */
@media (max-width: 600px) {
  .input-button {
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
  }

  .contact-textarea textarea {
    min-height: 120px;
  }

  .contact-button {
    flex-direction: column;
    align-items: stretch;
  }
}

.contact-element .input-text {
    -webkit-user-drag: none; /* verhindert, dass Safari Drag blockiert */
    touch-action: pan-y; 
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  padding: 3em 2em 4em 5em;
  background-color: #747d84;
  color: #fff;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 250px;
  min-width: 200px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li a{
font-size: 1.2rem;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
  margin: 2em 0 2em 0;
  font-size: 1rem;
}

.footer-column a:hover {
  text-decoration: underline;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.5em;
}

.teamviewer {
  margin-top: 1em;
  position: relative;
  width: 234px;
  height: 60px;
}

.teamviewer-text {
  position: absolute;
  top: 23px;
  left: 60px;
  display: block;
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  width: 169px;
  line-height: 1.2em;
  font-family: Arial, sans-serif;
}

address {
    font-style: normal;
    font-size: 1rem;
    line-height: 1.6em;
}

.doctextwrapper{
    display: flex;
    justify-content: center;

}

.doctext p, .doctext li {
    max-width: 900px;
    font-size: 1rem;
}

.doctext h1{
    font-size: 1.6rem;
    color: #0089af;
}

.doctext h2{
    font-size: 1.3rem;
    color: #0089af;
}

.doctext h3{
    font-size: 1.2rem;
    color: #0089af;
}

.doctext a{
    color: #717e86;
}


.mapid-wrapper {
    display:flex;
    justify-content: center;
}

#mapid{
    width: 60vw;
    height: 60vh;
    z-index: 1;
}



/* Responsive Anpassung */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
    padding: 2em;
  }

  .footer-column a {
    margin: 0.5em 0;
  }

  .footer-column {
    flex: 1 1 auto;
    width: 100%;
    margin-bottom: 1em;
  }

/* Block 2 zuerst */
  .footer-column:nth-child(2) {
    order: 1;
  }

  /* Block 3 danach */
  .footer-column:nth-child(3) {
    order: 2;
  }

  /* Block 1 ganz unten */
  .footer-column:nth-child(1) {
    order: 3;
  }

}

/* Responsive Anpassung */
@media (max-width: 600px) {
#mapid {
    width: 90vw;
    height: 45vh;
  }
}