/*
 * -----------------------------------------------------------------------------
 * Lucom Interaction Platform
 * (C) Lucom GmbH, Erkrath. All rights reserved.
 *
 * $$
 * -----------------------------------------------------------------------------
 */

/* Ladewelle importieren */
@import "./ladewelle.css";
@import "./fibi-notice.css";

@font-face {
	font-family: 'BundesSans Office';
	src: url('../fonts/BundesSansOffice-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'BundesSans Office';
	src: url('../fonts/BundesSansOffice-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'BundesSerif Office';
	src: url('../fonts/BundesSerifOffice-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

 :root {
     font-family: 'BundesSans Office';
     --primaryColor: #156570;
     --secondaryColor: #333333;
     --primaryButtonColor: #333333;
     hyphens: auto;
 }


/*
 * ----------------------------------------------------------------------
 * ------------ Anpassungen die den Standard nicht gefährden ------------
 * ----------------------------------------------------------------------
 */

 .text-container.custom-text {
    font-size: 18px;
    line-height: 22px;
 } 

/* eigene Link-Klasse */
.matFormLink {
	text-decoration: underline;
	color: #156570;
	line-height: 1.5;
	background: url(../images/svg/arrow-top-right.svg) no-repeat;
	background-size: 18px 18px;
	background-position: -1px 0px;
	padding-left: 18px;
}

/* eigene Link-Klasse für Mantelbogen-Adresse */
.mantelbogen-adresse {
	display: block;
	margin-left: 15px;
}

#lip_segment-instances\:body .matFormLink:hover, 
#lip_segment-instances\:body .matFormLink:focus {
	text-decoration: none;
	background-size: 18px 18px;
	background-position: -1px 0px;
	color: #000;
	line-height: 1.5;
	background: url(../images/svg/arrow-top-right-black.svg) no-repeat;
}

/* Absatzabstand statt doppelter <br>-Umbrüche (Screenreader lesen sonst "leer" vor) */
#LB_CB_ERKL_TATSACHEN2,
#LB_CB_ERKL_TATSACHEN,
#LB_ERKL_TATSACHEN {
    display: block;
}

#LB_CB_ERKL_TATSACHEN2 p,
#LB_CB_ERKL_TATSACHEN p,
#LB_ERKL_TATSACHEN p {
    margin: 0 0 16px !important;
}

#LB_CB_ERKL_TATSACHEN2 p:last-child,
#LB_CB_ERKL_TATSACHEN p:last-child,
#LB_ERKL_TATSACHEN p:last-child {
    margin-bottom: 0 !important;
}


/* eigener Style für Trenner-Segmente im Formular: Anzeige Trennlinie */
div[id*='_trennerSegment']:after {
	content: '';
	display: block;
	box-sizing: border-box;
	width: calc(100% - 64px);
	height: 1px;
	margin: 0 auto;
	border-top: 1px solid rgb(169, 173, 176);
	margin-top: 32px;
	margin-bottom: 16px;
}

/** Styling View.Question **

/* Allgemeine ViewQuestion Anpassungen. Nachricht und Icon werden in allen modalen View.Questions zentriert. */
.viewEmbedding.question.modal {
	box-shadow: inset 30px 0 0 #156570;
	grid-template-rows: auto minmax(min-content, 1fr) auto;
	min-height: min(100px, calc(100vh - 30px));
}
.viewEmbedding.question.modal .icon {
	grid-row: 2;
	border-left: 0;
}
.viewEmbedding.question.modal .body {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Eigene Klasse "fibiViewQuestion" für View.Question bei Klick auf Formular-Button "Abbrechen" oder "Speichern". */
/* Color-Style für ersten Button in View.Question */
.fibiViewQuestion .buttons button:first-of-type {
  background-color: #156570;
  color: white;
}
.fibiViewQuestion .buttons button:first-of-type svg {
  fill: currentColor;
}
/* Fokus-/Hover-Verhalten für ersten Button */
.fibiViewQuestion .buttons button:first-of-type:focus,
.fibiViewQuestion .buttons button:first-of-type:hover {
  /* background-color: #21A0B3; */
  background-color: #0D464F;
  color: white;
}

/* Color-Style für zweiten Button in View.Question */
.fibiViewQuestion .buttons button:nth-of-type(2) {   
  background-color: #E8F2F3;
  color: #156570;
}
.fibiViewQuestion .buttons button:nth-of-type(2) svg {
  fill: currentColor;
}

/* Color-Style für dritten Button in View.Question */
.fibiViewQuestion .buttons button:nth-of-type(3) {   
  background-color: #E8F2F3;
  color: #156570;
}
.fibiViewQuestion .buttons button:nth-of-type(3) svg {   
  fill: currentColor;
}

/* Eigene Klasse "fibiViewQuestionRemoveSeg" für View.Question bei Klick auf Formular-Button ".. entfernen" (Segmentzeile löschen). */
/* Color-Style für ersten Button in View.Question */
.fibiViewQuestionRemoveSeg .buttons button:first-of-type { 
  background-color: #156570;
  color: white;
}
.fibiViewQuestionRemoveSeg .buttons button:first-of-type svg {
  fill: currentColor;
}

/* Color-Style für zweiten Button in View.Question */
.fibiViewQuestionRemoveSeg .buttons button:nth-of-type(2) {
 	background-color: #E8F2F3;
  	color: #156570;
}
.fibiViewQuestionRemoveSeg .buttons button:nth-of-type(2) svg {
  fill: currentColor;
}


.fibiViewQuestionRemoveSeg .buttons button:first-of-type:focus,
.fibiViewQuestionRemoveSeg .buttons button:first-of-type:hover {
  background-color: #0D464F;
  color: white;
}


/* Für die Button der FiBi View.Qustion wird ein Flexbox-Layout verwendet, um Inhalte horizontal und vertikal zu zentrieren, ein Abstand zwischen Inhaltselementen, abgerundete Ecken, eine minimale Breite und eine feste Höhe definiert. */
.fibiViewQuestion .buttons button,
.fibiViewQuestionRemoveSeg .buttons button {
	border: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
	border-radius: 5px;	
  min-width: 250px;
  height: 40px;
}

/* Die SVGs bei den FiBi View.Question-Button vergrößern. */
.fibiViewQuestion .buttons button svg,
.fibiViewQuestionRemoveSeg .buttons button svg {
    width: 1.7em;
    height: 1.7em;
}

/** Styling View.Question ENDE **/

/* Button Icon vergrößern */
.form .lip_icon.ControlIcon svg,
.form .lip_icon.ControlIconWhite svg {
	height: 1.5em;
	width: 1.5em;
}

/*
* ----------------------------------------------------------------------
* ------------------ Anpassungen am LIP Standard -----------------------
* ----------------------------------------------------------------------
*/ 

/*
* ----------------------------------------------------------
* ------------------ Formularcenter ------------------------
* ----------------------------------------------------------
*/

/* FAQ, Anmelden und Registrieren nur in Formularansichten ausblenden. */
body:has(#lip-main.formBody) :is(
  [data-item="fibi-faqs"],
  [data-item="fibi-login-action"],
  [data-item="fibi-selfreg-action"]
) {
  display: none;
}

/* SelfReg Nutzungsbedingungen */
#lbl_tos p {
	margin: 0 0 0.75em;
	font-weight: 400;
}

#lbl_tos h1,
#lbl_tos h2 {
	margin: 0.75em 0 0.35em;
}

#lbl_tos h1:first-child,
#lbl_tos h2:first-child {
	margin-top: 0;
}

/* WSV-Welle unterhalb des Headers */
#lip-header-main {
	position: relative;
	margin-bottom: 3.75vw;
	border-bottom: 0;
}

#lip-header-main::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 3.75vw;
	background-image: url('../images/svg/bg-img-head.svg');
	background-size: 100% 100%;
}

#lip-footer {
  margin-top: 78px;
  position: relative;
  border-top: 0;
}

#lip-footer::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 78px;
  background-image: url('../images/svg/fibi_welle.svg');
  /* Ganze Welle zeigen, statt sie wie bei cover zu beschneiden. */
  background-size: 100% 100%;
}

/* Im Formular den Hintergrund oberhalb der Welle fortführen. */
#lip-main.formBody ~ #lip-footer::before {
  background-color: #F8F8F8;
}

/* Header der Notice-Boxen */
.dialog .header h2 {
	margin: 0;
	font-family: 'BundesSerif Web';
	font-size: 2rem;
}

/* Header Bild */
#lip-header-main .logo {
	padding: 5px 0px
}

/* Schriftart Databrowser und Modale Views */
#browse-data-sort-row .caption button span,
#lip_modalViewEmbeddings .viewEmbedding .buttons button {
	font-family: 'BundesSans Office';
}

/* Modale Dialoge Text vertikal */
#lip_modalViewEmbeddings.viewEmbeddings .body span p {
  margin: 1em 0;
}

 /* Sortierzeile Datenbrowser: Hintegrundfarbe anpassen */
 #browse-data-sort-row {
    background-color: #156571;
 }

/* Spaltennamen in Sortierzeile Datenbrowser: Farbe anpassen */
.browseDataWizard #browse-data-sort-row th.caption span.columnHeaderText {
    color: #ffffff;
}

/* Filter-Button */
.browseDataWizard #bdw_applyFilter:focus,
.browseDataWizard #bdw_applyFilter:hover,
.browseDataWizard #bdw_applyFilter:active {
	text-decoration: underline;
    color: #FFFFFF;
    background-color: #54777C;
}

/* Datenbrowser Spalten-Header */
.browseDataWizard #browse-data-sort-row button[id^="bdw_sortButton_"]:focus,
.browseDataWizard #browse-data-sort-row button[id^="bdw_sortButton_"]:focus-visible,
.browseDataWizard #browse-data-sort-row button[id^="bdw_sortButton_"]:hover {
  box-shadow: 0 0 0 2px #ffffff;
}


/* Einrückung Header Fromulartitel */
.ffw_fullWidthSegments.header > div > .flex-container {
  max-width: 847px;
  margin-left: auto;
  margin-right: auto;
}

/* Textstil und Farbe bei Hover und Focus für Footer-Navigation anpassen (Impressum, Datenschutz, Barrierefreiheit) */
#lip-footer .links .item:hover, 
#lip-footer .links .item:focus{
	text-decoration: underline;
	color: white;
	outline-color: white;
}

/* Filter Button Font */
.browseDataWizard .filter button {
	font-family: 'BundesSans Office';
}

/* USER DATA FORMULAR */

.form.NUTZERKONTO #lbl_data_title {
	font-weight: bold;
	color: rgb(0, 0, 0);
	text-align: left;
	letter-spacing: 0px;
	/* font-family: "BundesSerif Web"; */
	font-size: 26px;
	line-height: 50px;
}

/*
* ----------------------------------------------------------
* ------------------ Formularbereich -----------------------
* ----------------------------------------------------------
*/
/* Header-Buttons (Abmelden)	 */
#lip-header .button-primary:hover,
#lip-header .button-primary:focus {
    text-decoration: underline;
    color: #FFFFFF;
    background-color: #54777C;
}

/* Formularhilfe */
.formBody .form-main .sidebar {
  width: 650px;
}

/* Verhindert abgeschnittene Beschriftungen und horizontalen Überlauf in schreibgeschuetzten Fieldsets. */
.formBody fieldset .flex-container > .flex-container.flex-labelGroup:not(.flex-vertical) > div.formControl.formControlLabel {
	flex-shrink: 1;
}

/* Selectize-Optionen mit langem Text umbrechen */
.selectize-dropdown .selectize-dropdown-content [data-selectable] {
	height: auto;
	overflow: visible;
	overflow-wrap: anywhere;
	text-overflow: clip;
	white-space: normal;
}

/*
* -------------------------------------------------------------
* ------------------------- media only ------------------------
* -------------------------------------------------------------
*/ 

@media (max-width: 320px) {
	/* Button Mantelbogen Download: Breite anpassen */
	button[id$="BTN_DOWNLOAD_MANTELBOGEN"] {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		height: auto;
		min-height: 40px;
		line-height: 1.4;
		white-space: normal;
	}
	
	/* Attachment-Dialog: Tabelle statt abzuschneiden horizontal scrollbar machen */
	.fileAttachment .dialog .content {
		overflow-x: auto !important;
	}

	.fileAttachment .dialog div.content table.list {
		min-width: 500px !important;
	}
}