/*
 * Formulare (Contact Form 7 mit Honigtopf), Darstellung wie live.
 *
 * Live gestaltete das bisherige Theme die Formulare; nachgebildet nach Messwerten der Live-Seite (Rahmenvertragspartner,
 * Energiekosten senken, Whitepaper-Formulare), eigener Text. Die allgemeinen Eingabefelder (Breite, Rand, Abstand 20 px
 * unten, Knöpfe) stehen in saxonia.css, Abschnitt 11; hier nur, was zu Contact Form 7 gehört.
 *
 * Geladen wird die Datei nur, wenn auf der Seite ein Formular steht, und zwar im Fuß vor den Stilen von Contact Form 7
 * (siehe inc/einrichtung.php, saxonia_formular_css). Live stehen die Theme-Regeln ebenso vor styles.css von Contact Form 7;
 * bei gleicher Spezifität gewinnt deshalb wie live Contact Form 7 (z. B. Rand und Abstand der Antwortzeile).
 */

/* Formular umschließt schwebende Inhalte. */
.wpcf7::after {
	content: "";
	display: block;
	clear: both;
}

/*
 * Jedes Feld steht in einem Block über die volle Breite mit 3 px Abstand nach unten (live je Feld 71 statt 68 px).
 * Die Lage „relative“ ist mit !important gesetzt wie live: Sie schlägt auch das eingebettete position:absolute des
 * Honigtopfs. Dessen Hülle bleibt dadurch 1 × 1 px groß im Textfluss (inline-block, Rand −1 px, overflow hidden), und
 * sein Absatz ist wie live eine Zeile hoch (28 px plus 15 px Absatzabstand), obwohl man das Feld nicht sieht.
 */
span.wpcf7-form-control-wrap {
	display: inline-block;
	position: relative !important;
	width: 100%;
	margin-bottom: 3px;
}

/* Felder in der Hülle füllen die Breite und haben keinen eigenen Abstand nach unten (auch Auswahl, Datum, Zahl). */
span.wpcf7-form-control-wrap .wpcf7-text,
span.wpcf7-form-control-wrap .wpcf7-textarea,
span.wpcf7-form-control-wrap .wpcf7-quiz,
span.wpcf7-form-control-wrap .wpcf7-select,
span.wpcf7-form-control-wrap .wpcf7-date,
span.wpcf7-form-control-wrap .wpcf7-number {
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 0;
}

/* Ladeanzeige am Absendeknopf: im Ruhezustand und nach Fehlern gar nicht da (live display:none), sonst etwas tiefer. */
.wpcf7-form .wpcf7-spinner {
	top: 20px;
}
.wpcf7-form.init .wpcf7-spinner,
.wpcf7-form.invalid .wpcf7-spinner {
	display: none;
}

/* Antwortzeile (live gewinnt bei gleicher Spezifität die Regel von Contact Form 7, siehe oben). */
.wpcf7 form .wpcf7-response-output {
	clear: both;
	margin-top: 0;
	border: none;
}

/* Ältere Meldungsklassen von Contact Form 7. */
.wpcf7-mail-sent-ok,
.wpcf7-mail-sent-ng {
	float: left;
	box-sizing: border-box;
	width: 98%;
	margin: 0 1% !important;
	padding: 7px !important;
	border: none !important;
	color: #fff;
	text-align: center;
}
.wpcf7-mail-sent-ok { background: #7dcc68 !important; }
.wpcf7-mail-sent-ng { background: #fb5455 !important; }
.wpcf7-validation-errors { display: none !important; border: none !important; }
.wpcf7-captchar { margin-bottom: 0; }

/*
 * Hinweis an einem ungültigen Feld: rotes Quadrat links neben dem Feld mit Spitze zum Feld, Text nur für Vorleser.
 * Live mit einem Zeichen aus der Symbolschrift des alten Themes; hier ein eigenes Ausrufezeichen.
 */
.wpcf7-not-valid-tip {
	position: absolute !important;
	top: 50% !important;
	left: -50px !important;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	border: none !important;
	background-color: #ed3b2e;
	text-indent: -9999px !important;
	transform: translateY(-50%);
}
.wpcf7-not-valid-tip::before {
	content: "";
	position: absolute;
	top: 16px;
	right: -5px;
	width: 11px;
	height: 11px;
	background-color: #ed3b2e;
	transform: rotate(45deg);
}
.wpcf7-not-valid-tip::after {
	content: "!";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	font-size: 22px;
	font-weight: 700;
	line-height: 44px;
	color: #fff;
	text-align: center;
	text-indent: 0;
}
