/**** Standards ****/
body.kontakt h1 { 
	margin: 0; 
	padding: 0 0 10px 0; 
	font-weight: normal;
	color: #666666;  
	font-size: 14px;   
}

body.kontakt h2 { 
	margin: 0;
	padding: 5px 0 5px 0;
	font-weight: normal;
	color: #666666;
	font-size: 13px;
}

body.kontakt form {
	margin-left:10px;
	align:center;
	
}

/* Container */

body.kontakt div.formcontainer p{
	margin-bottom:0;
}

body.kontakt p.buttoncontainer {
  width: 560px;
  text-align: right;
	padding-top: 10px;
	border-top: #888 1px solid;
}

/* Label- und Required-Text */
body.kontakt p label {
	text-align: left; 
	font-weight: normal; 
	font-size: 12px; 
	display:block; 
	float:left;
	width:147px;
	padding:1px 0 0 3px;
}

body.kontakt label.error {
    color: #FF0000;
}



body.kontakt p.required_text {
	margin-top:10px;
	color:#FF0000;
	font-size:11px;
}

/* Formularelemente */
/* Background und Rahmen */
body.kontakt label.error {
	background-image: url(../images/ausrufezeichen.png);
	background-repeat: no-repeat;
  background-position: left;
}

body.kontakt .input,
body.kontakt .select,
body.kontakt textarea {		
	background-color: #FFF;
	border: 1px solid #888;
	outline-color: #006600;
}

body.kontakt input.error,
body.kontakt select.error,
body.kontakt textarea.error {
	border-color: #FF0000;
	outline-color: #FF0000;
}

body.kontakt .button {	
	background-color: #106429;
	border: #888 0px solid;
}

/* Höhen */
body.kontakt .input {		
	height: 18px;
}

body.kontakt .select {		
	height: 22px;
}

body.kontakt textarea {	
	height: 100px;
}

body.kontakt .button {	
	height: 20px; 
}

/* Margin und Padding */
body.kontakt .select {	
	margin:0;
	padding:0;
}

body.kontakt .input {	
	margin:0;
	padding-left:5px;
}

body.kontakt textarea {	
	margin:0;
	padding:5px;
}

body.kontakt .select.anrede {
	margin:0 5px 0 0;
}

body.kontakt .button {	
	margin:0 0 0 10px;
	padding: 0;
}

body.kontakt .checkbox {	
	margin:0 10px 0 0;
	padding: 0;
}

/* Schriftart und Ausprägung */
body.kontakt .input,
body.kontakt .select,
body.kontakt textarea {
	color:#000000;	
  font-family: "Verdana", Helvetica, sans-serif;
  font-size: 12px;
  font-weight: normal;
}

body.kontakt .button {	
	color:#ffffff; 
}

/* Specials */
body.kontakt textarea {
	overflow: auto;
}
body.kontakt .button {	
  cursor: pointer;
}

/* Elementbreiten */

.w20 {
  width:20px;
}

.w60 {
  width:60px;
}

.w120 {
 width:120px;
}

.w315 {
  width:315px;
}

.w385 {
 width:385px;
}

.w450 {
 width:450px;
}

/* form */
.form-control { height: 45px; margin-bottom: 5px; }
.form-control:focus { box-shadow: 0 0 10px 0 rgba(255, 0, 0, 0.5); border-color: #ff0000; }

.form-group.has-error label { color: #ff0000; }
.form-group.has-error input, .form-group.has-error select { border: 1px solid #ff0000; }

.has-error .form-control {
    border-color: #ff0000;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
}

.has-error .form-control:focus {
    border-color: #ff0000;
    box-shadow: 0 0 10px 0 rgba(255, 0, 0, 0.5); border-color: #ff0000;
}

.help-block {
  color:#585858;
  font-size: 12px;
}

.has-error .help-block {
  color:#ff0000;
}

textarea.form-control { height: 150px; resize: none; }

#danke { display:none; }

/* =========================================================
   Kontaktformular – Bootstrap-kompatible Formularstyles
   ========================================================= */

body.kontakt .formcontainer {
  max-width: 680px;
  width: 100%;
  margin: 25px 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #555;
}

/* Formulargruppen */
body.kontakt .form-group {
  margin-bottom: 1rem;
}

/* Labels */
body.kontakt .form-group > label,
body.kontakt .form-label {
  display: block;
  float: none;
  width: auto;
  margin-bottom: 0.4rem;
  padding: 0;
  color: #444;
  font-size: 13px;
  font-weight: 600;
}

/* Eingabefelder */
body.kontakt .form-control,
body.kontakt .form-select,
body.kontakt input.input,
body.kontakt select.select,
body.kontakt textarea {
  display: block;
  width: 100%;
  min-height: 38px;
  box-sizing: border-box;
  padding: 20px 15px 10px 15px !important;
  margin: 0;
  color: #333;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.15s ease-in-out,
              box-shadow 0.15s ease-in-out;
}

/* Select-Felder */
body.kontakt .form-select,
body.kontakt select.select {
  width: 100% !important;
  min-width: 100%;
  height: 45px !important;
  min-height: 45px;
  box-sizing: border-box;
  padding: 20px 15px 10px 15px !important;
  line-height: 1.5;
  cursor: pointer;
}

/* Textareas */
body.kontakt textarea.form-control,
body.kontakt textarea {
  min-height: 130px;
  height: auto;
  resize: vertical;
}

/* Fokus */
body.kontakt .form-control:focus,
body.kontakt .form-select:focus,
body.kontakt input.input:focus,
body.kontakt select.select:focus,
body.kontakt textarea:focus {
  border-color: #106429;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(16, 100, 41, 0.15);
}

/* Checkboxen */
body.kontakt .form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 1rem 0;
}

body.kontakt .form-check-input,
body.kontakt input.checkbox {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: #106429;
}

body.kontakt .form-check-label {
  float: none;
  width: auto;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
}

/* Hilfetexte */
body.kontakt .form-text,
body.kontakt .help-block {
  display: block;
  margin-top: 0.3rem;
  color: #6c757d;
  font-size: 12px;
  line-height: 1.4;
}

/* Fehlermeldungen */
body.kontakt .has-error label,
body.kontakt label.error {
  color: #b02a37;
}

body.kontakt .has-error .form-control,
body.kontakt .has-error .form-select,
body.kontakt input.error,
body.kontakt select.error,
body.kontakt textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

body.kontakt .has-error .help-block {
  color: #dc3545;
}

/* Buttons */
body.kontakt .btn,
body.kontakt button.button,
body.kontakt input.button {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  margin: 0;
  color: #fff;
  background-color: #106429;
  border: 1px solid #106429;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out,
              border-color 0.15s ease-in-out;
}

body.kontakt .btn:hover,
body.kontakt button.button:hover,
body.kontakt input.button:hover {
  background-color: #0b4920;
  border-color: #0b4920;
}

body.kontakt .btn:focus,
body.kontakt button.button:focus,
body.kontakt input.button:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(16, 100, 41, 0.25);
}

/* Buttonbereich */
body.kontakt .buttoncontainer {
  width: 100%;
  box-sizing: border-box;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
  text-align: right;
}

/* Bootstrap-ähnliche Spalten */
body.kontakt .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -8px;
  margin-left: -8px;
}

body.kontakt .col-md-6 {
  width: 50%;
  box-sizing: border-box;
  padding: 0 8px;
}

/* Volle Breite mit Innenabstand links und rechts */
body.kontakt .col-12 {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 12px;
  padding-left: 12px;
}

/* Labels oberhalb der Felder – verhindert Überlappungen mit Selects */
body.kontakt p label {
  display: block;
  float: none;
  width: auto;
  margin-bottom: 6px;
  padding: 0;
}

body.kontakt p:has(select) label,
body.kontakt p:has(.form-select) label {
  float: none;
  width: auto;
}

.fm-form-floating > label {
	padding: 15px !important;
	height: auto !important;
	line-height: 1.25 !important;
	font-size: 14px;
}

/* Mobile Darstellung */
@media (max-width: 600px) {
  body.kontakt .formcontainer {
    width: 100%;
  }

  body.kontakt .col-md-6 {
    width: 100%;
  }

  body.kontakt .buttoncontainer {
    text-align: left;
  }

  body.kontakt .btn,
  body.kontakt button.button,
  body.kontakt input.button {
    width: 100%;
  }
}
