/* Studentenring Kontaktformular (Portal): Inline-iFrame und Modal */
.fnet-contactform-button {
	margin: 0 0 1.5em;
}

/* Button wie "Kontaktformular" im Kontakt-Layer von studentenring.de (.kontakt_layer .kontakt_aufnehmen_button) */
.fnet-cf-button,
.fnet-cf-button:visited {
	display: inline-block;
	box-sizing: border-box;
	padding: 10px 25px;
	background-color: #4e4d4d;
	color: #fff;
	font-family: "Open Sans", "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transition: background-color 0.5s ease, color 0.5s ease;
	cursor: pointer;
}

.fnet-cf-button:hover,
.fnet-cf-button:focus {
	background-color: #98321e;
	color: #fff;
	text-decoration: none;
}

.fnet-cf-button:focus-visible {
	outline: 2px solid #98321e;
	outline-offset: 2px;
}

.fnet-cf-button__icon {
	width: 0.83em;
	height: 1.1em;
	vertical-align: -0.15em;
	margin-right: 0.6em;
	fill: currentColor;
}

/* Inline: Starthöhe bis zur ersten Höhenmeldung des Portals, danach exakt die Inhaltshöhe (JS) */
.fnet-contactform-embed iframe.fnet-contactform-iframe {
	width: 100%;
	min-height: 600px;
	border: 0;
	display: block;
}

/* frame="1": gelbe Section mit den Abständen von /kontakt (section.light-green + .wrapped-content: 40px/75px,
   bis 992px 45px seitlich, bis 600px 32px/25px) für Seiten, die diese Section nicht selbst mitbringen */
.fnet-contactform-embed--framed {
	background: #fee97e;
	padding: 40px 75px;
	box-sizing: border-box;
}

@media (max-width: 992px) {
	.fnet-contactform-embed--framed {
		padding: 40px 45px;
	}
}

@media (max-width: 600px) {
	.fnet-contactform-embed--framed {
		padding: 32px 25px;
	}
}

/* Modal: gelber Rand wie die Formular-Section auf /kontakt (section.light-green #fee97e, 40px oben/unten);
   Höhe folgt dem Inhalt (JS setzt die iFrame-Höhe), maximal 92vh, darüber scrollt das Formular im iFrame */
.fnet-cf-dialog {
	width: min(1000px, 100vw);
	height: fit-content; /* sonst dehnt der Browser den geöffneten Dialog auf die volle Höhe (inset-block: 0) */
	max-height: 92vh;
	margin: auto; /* zentriert; ein Reset wie "* { margin: 0 }" im Theme hebt sonst die Browser-Vorgabe auf */
	padding: 40px 45px;
	border: 0;
	border-radius: 5px;
	overflow: hidden;
	background: #fee97e;
}

/* Hintergrund hinter dem Modal: dunkler abgedeckt und weichgezeichnet; ohne backdrop-filter-Unterstützung
   (ältere Browser) bleibt die dunkle Abdeckung allein wirksam.
   opacity: Das Cookie-Banner (CookieFirst) setzt per Inline-Style "dialog::backdrop { opacity: 0 }" und blendet damit
   jedes Dialog-Backdrop aus; !important stellt die Sichtbarkeit für diesen Dialog sicher */
.fnet-cf-dialog::backdrop {
	opacity: 1 !important;
	background: rgba(0, 0, 0, 0.8);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.fnet-cf-dialog__frame {
	width: 100%;
	height: 900px;
	max-height: calc(92vh - 80px);
	border: 0;
	display: block;
}

.fnet-cf-dialog__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	display: block;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 4px 8px;
	background: #fff;
	color: #1e1e1e;
	border: 1px solid #ccc;
	border-radius: 3px;
	font: 400 18px/1 Arial, Helvetica, sans-serif;
	text-transform: none;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: none;
}

.fnet-cf-dialog__close:hover,
.fnet-cf-dialog__close:focus-visible {
	background: #0a6141;
	color: #fff;
	border-color: #0a6141;
}

@media (max-width: 1040px) {
	.fnet-cf-dialog {
		width: 100vw;
		height: 100vh;
		max-width: 100vw;
		max-height: 100vh;
		padding: 32px 25px;
		border-radius: 0;
	}

	.fnet-cf-dialog__frame {
		max-height: calc(100vh - 64px);
	}
}
