/* ==========================================================================
   Ergänzungen zur gespiegelten Seite

   Divi erzeugt Teile seines Stylesheets erst zur Laufzeit im Server; beim
   statischen Abzug fehlen dadurch die Regeln für die Untermenüs und für das
   Kontaktformular. Diese Datei stellt beides eigenständig her — optisch am
   Original orientiert, aber unabhängig von Divis Erzeugungslogik.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hauptmenü mit Untermenüs
   -------------------------------------------------------------------------- */

#top-menu,
#top-menu.nav {
	list-style: none;
}

#top-menu li {
	position: relative;
}

/* Untermenü im Ruhezustand */
#top-menu li > ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 9999;
	min-width: 240px;
	margin: 0;
	padding: 12px 0;
	list-style: none;
	background: #ffffff;
	box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
	border-top: 3px solid var(--ea-akzent, #1c539c);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	pointer-events: none;
	text-align: left;
}

/* Sichtbar bei Mauskontakt und bei Tastaturfokus */
#top-menu li:hover > ul.sub-menu,
#top-menu li:focus-within > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

#top-menu ul.sub-menu li {
	width: 100%;
	margin: 0;
	padding: 0;
	float: none;
}

#top-menu ul.sub-menu li a {
	display: block;
	width: auto;
	padding: 9px 22px;
	color: #333333;
	font-size: 15px;
	line-height: 1.45;
	text-decoration: none;
	white-space: normal;
	opacity: 1;
}

#top-menu ul.sub-menu li a:hover,
#top-menu ul.sub-menu li a:focus-visible {
	background: #f2f5f9;
	color: var(--ea-akzent, #1c539c);
}

/* Untermenüs zweiter Ebene klappen zur Seite auf */
#top-menu ul.sub-menu li > ul.sub-menu {
	top: 0;
	left: 100%;
}

/* Rechts außen liegende Punkte klappen nach links auf, damit sie
   nicht über den Bildschirmrand hinauslaufen. */
#top-menu > li:nth-last-child(-n+2) > ul.sub-menu {
	left: auto;
	right: 0;
}

/* Mobile Ansicht: Untermenüs eingerückt untereinander */
@media (max-width: 980px) {
	#top-menu li > ul.sub-menu,
	#top-menu li:hover > ul.sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
		box-shadow: none;
		border-top: 0;
		padding: 0 0 0 18px;
		min-width: 0;
		background: transparent;
	}
}

/* --------------------------------------------------------------------------
   Kontaktformular
   -------------------------------------------------------------------------- */

.et_pb_contact_form {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	max-width: 720px;
}

.et_pb_contact_form p,
.et_pb_contact_form .et_pb_contact_field {
	flex: 1 1 100%;
	margin: 0;
	padding: 0;
	min-height: 0;
}

/* Name und E-Mail nebeneinander, ab Tabletbreite */
@media (min-width: 620px) {
	.et_pb_contact_form .et_pb_contact_field_0,
	.et_pb_contact_form .et_pb_contact_field_1 { flex: 1 1 calc(50% - 8px); }
}

.et_pb_contact_form input[type="text"],
.et_pb_contact_form input[type="email"],
.et_pb_contact_form textarea,
.et_pb_contact_form .et_pb_contact_field .input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: #222;
	background: #ffffff;
	border: 1px solid #ccd3dd;
	border-radius: 3px;
	appearance: none;
}

.et_pb_contact_form textarea,
.et_pb_contact_form .et_pb_contact_message {
	min-height: 170px;
	resize: vertical;
}

.et_pb_contact_form input::placeholder,
.et_pb_contact_form textarea::placeholder {
	color: #7b8494;
	opacity: 1;
}

.et_pb_contact_form input:focus,
.et_pb_contact_form textarea:focus {
	outline: none;
	border-color: var(--ea-akzent, #1c539c);
	box-shadow: 0 0 0 3px rgba(11, 59, 115, .14);
}

/* Zeile mit Rechenaufgabe und Absendeknopf */
.et_contact_bottom_container {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
	float: none;
}

.et_pb_contact_right {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: #444;
	margin: 0;
	padding: 0;
}
.et_pb_contact_right input {
	width: 78px;
	padding: 10px 12px;
	text-align: center;
}

.et_pb_contact_submit,
.et_pb_contact_form button[type="submit"] {
	display: inline-block;
	padding: 14px 32px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .03em;
	color: #ffffff;
	background: var(--ea-akzent, #1c539c);
	border: 1px solid var(--ea-akzent, #1c539c);
	border-radius: 3px;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.et_pb_contact_submit:hover,
.et_pb_contact_form button[type="submit"]:hover {
	background: #ffffff;
	color: var(--ea-akzent, #1c539c);
}

/* Rückmeldung nach dem Absenden */
.formular-meldung {
	flex: 1 1 100%;
	margin: 4px 0 0;
	padding: 13px 16px;
	border-radius: 3px;
	font-size: 15px;
	line-height: 1.5;
}
.formular-meldung.ist-erfolg { background: #e8f4ec; border: 1px solid #b6d9c4; color: #1d5637; }
.formular-meldung.ist-fehler { background: #fdeaea; border: 1px solid #eec0c0; color: #8f2626; }

/* Honigtopf gegen automatische Einsendungen */
.formular-falle {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ---------------------------------------------------------------
   Fußzeile
   Das Divi-Hauptstylesheet fehlt im Spiegel. Ohne diese Regeln
   stand hellgraue Schrift (#bbb) auf weißem Grund. Die Werte sind
   aus dem Divi-Zwischenspeicher der Originalseite übernommen.
   --------------------------------------------------------------- */

#main-footer {
  background-color: #222222;
  color: #bbb;
}

#et-footer-nav {
  background-color: rgba(255, 255, 255, .05);
}

#et-footer-nav .container {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}

ul.bottom-nav {
  list-style: none;
  margin: 0;
  padding: 15px 0;
  text-align: center;
}

ul.bottom-nav li {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 0 11px;
}

ul.bottom-nav li a {
  color: #bbb;
  text-decoration: none;
  transition: opacity .3s ease-in-out;
}

ul.bottom-nav li a:hover { opacity: .7; }

/* Die Seite, auf der man gerade ist, in der Markenfarbe */
ul.bottom-nav li.current-menu-item > a { color: #4d8fe0; }

#footer-bottom {
  background-color: rgba(0, 0, 0, .32);
  padding: 15px 0 5px;
}

@media (max-width: 980px) {
  ul.bottom-nav li { display: block; padding: 6px 0; }
}

/* Kein Pfeil an den IHK-Auszeichnungsknöpfen (Kundenwunsch) */
.et_pb_button_0::after,
.et_pb_button_1::after,
.et_pb_button_2::after { display: none !important; content: none !important; }
.et_pb_button_0, .et_pb_button_1, .et_pb_button_2 { padding-right: 1em !important; }

/* IHK-Auszeichnung 2025: noch kein Urkunden-PDF vorhanden, deshalb ein
   Schriftzug statt eines Verweises. Sieht aus wie die anderen beiden.
   Sobald das PDF da ist: <span> gegen <a href="…"> tauschen, Klasse
   "ohne-verweis" entfernen — sonst nichts. */
.et_pb_button.ohne-verweis {
  cursor: default;
  text-decoration: none;
}
