/** CSS-Datei für eigene Gestaltungsregeln (Layout/Darstellung)  */

.hidden-on-small-devices {
  display: block;
}
.shown-on-small-devices {
  display: none;
}
/* xs = Extra small devices (small smartphones up to 575px) */
/* sm = Small devices (smartphones, 576px and up) */
/* md = Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
  .hidden-on-small-devices {
	display: none;
  }
  .shown-on-small-devices {
	display: block;
  }
}

/* xs = Extra small devices (small smartphones up to 575px) */
/* sm = Small devices (smartphones, 576px and up) */
/* md = Medium devices (tablets, 768px and up) */
@media (max-width: 575px) { 
  div.card div.row div.border-start-hidden-xs {
    border-left: none !important;
  }
}

/* Wir nutzen nur in der erweiterten Suche für "Teilwort" diese eine spezielle Border */
/* Code von https://stackoverflow.com/questions/46412541/applying-borders-on-elements-depending-on-device-size-with-bootstrap */
@media (min-width: 768px) {
  .border-md-top {
    border-top: 1px solid #ced4da !important;
  }
  .border-md-left-0 {
    border-left: 0 !important;
  }
}

/* BAM-Logo (kleinere Variante ohne Text auf kleinen Bildschirmen) */
.bam-logo-small {
	content:url(./img/bam/logo120.png);
}
.bam-logo {
	content:url(./img/bam/logo120.png);
    padding-left: 3px;
}
.bam-logo-svg {
	content:url(./img/bam/logo.svg);
}
@media (min-width: 768px) { /* md = Medium devices (tablets, 768px and up) */
  .bam-logo {
	content:url(./img/bam/logo.svg);
    padding-left: 3px;
  }
}

/* Schriftgröße auf kleineren Bildschirmen vergrößern, Bild mit img-fluid verkleinern */
@media (max-width: 768px) { /* md = Medium devices (tablets, 768px and up) */
  /* Nachfolgende Zeilen zum Testen auskommentiert, vielleicht reicht doch die 100%-Schriftgröße auf Mobilgeräten */
  /*html {
  	 font-size: 110%; 
  }
  table {
  	font-size: 100%;
  }*/ 
  .img-small-md {
    max-width: 70%;
  }
}

/* Einstellungen für den Druck */
@media print {
  .hidden-on-small-devices { /* Trefferliste immer als Tabelle drucken */
	display: block;
  }
  .shown-on-small-devices {
	display: none; /* Trefferliste NICHT als Cards drucken */
  }
  html {
  	font-size: 80%; /* Kleinere Schrift im Druck */
  }
  img {
    max-height: 80px !important;
    max-width: 80px !important;
  }
  .col-md-6 {
    width: 50%;  /* zweispaltiges Layout auch im Druck */
  }
  .table>:not(caption)>*>* {
    padding: 0.2rem 0.2rem; /* geringere Abstände in Tabellen */
  }
  div.toggle-icon::before {
    display: none !important;
  }
}

.fs-unset {
	font-size: unset;
}

/* SVG-Icons von Font Awesome für Aufzählungen (andere mögliche Zeichen wären: circle, circle-dot, square) */
.icon-list {
    padding-left: 0;
    list-style: none;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.icon-list-circle-right-solid li::before {
    display: block;
    flex-shrink: 0;
    width: 1.5em;
    height: 1.5em;
    margin-right: 0.5rem;
    content: "";
    background: url(./font-awesome/svg/circle-right-solid.svg) no-repeat center center / 100% auto;
}

.icon-list-circle-right-regular li::before {
    display: block;
    flex-shrink: 0;
    width: 1.5em;
    height: 1.5em;
    margin-right: 0.5rem;
    content: "";
    background: url(./font-awesome/svg/circle-right-regular.svg) no-repeat center center / 100% auto;
}

/* Mit der Klasse block-link können wir Links in einer Tabelle sich über die ganze Zelle erstecken lassen */
a.block-link { 
    display: block; 
}

/* Pfeil (FontAwesome-Icon) vor dem Link hinzufügen */
a.icon-link:before {
	display: inline-block;
    padding-right: 0.3125em;
    font-size: 0.9375em;
    vertical-align: middle;
    position: relative;
    font-family: "FontAwesome";
    content: "\f178";
}

/* Pfeil nach rechts oben (FontAwesome-Icon) vor dem Link hinzufügen */
a.icon-external-link:before {
    display: inline-block;
    padding-right: 0.3125em;
    font-size: 0.9375em;
    vertical-align: middle;
    position: relative;
    font-family: "FontAwesome";
    content: "\f08e";
}

/* Blitz (FontAwesome-Icon) für Kurzinfo vor dem Link hinzufügen */
a.icon-shortinfo-link:before {
    display: inline-block;
    padding-right: 0.3125em;
    font-size: 0.9375em;
    vertical-align: middle;
    position: relative;
    font-family: "FontAwesome";
    content: "\f15c";
}

a {
	text-decoration: none;	
}

a:not(.btn):hover {
	text-decoration: underline;	
}

.anchor-link {
    padding: 0 0.175rem;
    font-weight: 400;
    color: #0d6efd80;
    text-decoration: none !important;
    opacity: 0;
}

.anchor-link:after {
    content: "#";
}

.anchor-link:focus, .anchor-link:hover, :hover>.anchor-link, :target>.anchor-link {
    color: #0d6efd;
    text-decoration: none !important;
    opacity: 1
}

.text-decoration-dashed {
    text-decoration:underline;
	text-decoration-style: dashed;
	text-decoration-thickness: from-font;
}

.text-decoration-dotted {
    text-decoration:underline;
    text-decoration-style: dotted;
    text-decoration-thickness: from-font;
}

/* Bis zu 5 Fußnoten (id=footnote-1 bis footnote-5) nach Anklicken einer Sprungmarke farbig hervorheben */
#footnote-1:target, #footnote-2:target, #footnote-3:target, #footnote-4:target, #footnote-5:target {
  background: #fcf8e3; /* gleiche Farbe wie von <mark> */
  transition: all 1.2s;
}

.emphasized-link:target {
  background: #fcf8e3; /* gleiche Farbe wie von <mark> */
  /*transition: all 1.2s;*/
}

/* Orangefarbene Tafel formatieren */
.orange-plate {
	padding-top: 2px;
	padding-bottom: 0;
	font-weight: bold;
    min-width: 60px;
    text-align: center;
    height: 20px;
    background-color: #ffa500;
    border-color: black;
    border-width: 3px;
}

.orange-plate-border {
	min-width: 60px; 
	border-color: black; 
	border-width: 3px;	
}

.fixed-footer {
	position: fixed;
	left: 0;
	bottom: 0;
}

#scrollTopButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border-radius: 50%;
  display: none;
}

/* Text hochkant schreiben (für den Kopf der Tabelle C (ADN)) */
/* rotiert den Text zweimal, dann stimmen aber Richtung und Layout */
.rotate {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

/* "Benennung und Beschreibung" in Tabelle C soll nach unten */
th.down {
	vertical-align: bottom;
}

.text-pre-wrap {
	white-space: pre-wrap;
}

.popover {
    white-space: pre-wrap;
}

.popover-md {
    max-width: 400px; /* Max Width of the popover (depending on the container!) */
}

.popover-lg {
    max-width: 600px; /* Max Width of the popover (depending on the container!) */
}

.popover-xl {
    max-width: 100%; /* Max Width of the popover (depending on the container!) */
}

/* Autocomplete */
#autocomplete-values {
    position: relative;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 1;
}

.autocomplete-items div {
    word-break: break-word;
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: DodgerBlue;
    color: #ffffff;
}

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}

.autocomplete-active > mark, .autocomplete-items div:hover > mark {
    /*when navigating through the items using the arrow keys:*/
    background-color: #0073e6;
    color: inherit;
}

/* Styling der Art der Suchbegriffe im Autocompletze */
.autocomplete-type {
	background-color: #E5E9EA; /* BAM-Grau: gray-100: #E5E9EA */
	color: black;
}

a.anchor {
    display: block;
    position: relative;
    top: -170px;
    visibility: hidden;
}

div.toggle-icon {
  cursor: pointer;
}

div.toggle-icon::before {
    display: inline-block;
    flex-shrink: 0;
    width: 0.6em;
    height: 0.6em;
    margin-right: 0.3rem;
    content: "";
    background: url(./font-awesome/svg/caret-down-solid.svg) no-repeat center center / 100% auto;
}

div.toggle-icon.collapsed::before {
    display: inline-block;
    flex-shrink: 0;
    width: 0.5em;
    height: 0.6em;
    margin-right: 0.4rem;
    content: "";
    background: url(./font-awesome/svg/caret-right-solid.svg) no-repeat center center / 100% auto;
}

div.toggle-icon.collapsed .text-collapsed {
    display: inline;
}

div.toggle-icon .text-collapsed {
    display: none;
}

button.accordion-button.collapsed .text-collapsed {
    display: inline;
}

button.accordion-button .text-collapsed {
    display: none;
}

.accordion-button {
    font-size: 1.1rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.accordion-button:after {
    order: -1;
    margin-left: 0; 
    margin-right: 0.5em;
}

.accordion-button {
    color: var(--bs-accordion-active-color);
}

.mw-50 {
    min-width: 50px;
}

.callout-left-primary {
    border-left-width: .35rem !important;
    border-left-color: #0d6efd !important;
}

.callout-top-primary {
    border-top-width: .35rem !important;
    border-top-color: #0d6efd !important;
}

.callout-left-info {
    border-left-width: .35rem !important;
    border-left-color: #5bc0de !important;
}

.callout-top-info {
    border-top-width: .35rem !important;
    border-top-color: #5bc0de !important;
}

.callout {
    padding: 0.25rem;
    padding-left: 0.5rem;
    margin-top: 1.25rem;
    margin-bottom: 0.25rem;
    border: 1px solid #e9ecef;
    border-radius: .25rem;
}

.ff-courier {
  font-family: Consolas, Courier;
}
