/* CSS Document */

/* tested with Opera (69.0.3686.95), Microsoft Edge (44.19041.1.0), Firefox (78.0.2), Chrome (84.0.4147.89) under Windows 10; not functional with IE11 */
/* Declarations: don't work with Microsoft Internet Explorer */
:root {--color-green: #319C00; --color-greenMedium: #6BAD4A; --color-greenLight: #8BC96F; --color-yellow: #FFEF29; --color-yellowLight: #FFF498; --color-yellowPale: #FFFFC8; --std_text_color: black;  --width-columnLeft: 160px;  --width-columnRight: 170px;}
@media (max-width: 991px) {
    :root {--width-columnLeft: 0px;--width-columnRight: 0px;}
}
@media (min-width: 1201px) {
    :root {--width-columnLeft: 200px;}
}

/* ---- Font parameters ---- */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    text-align: left;
}
@media (max-width: 991px) {
body {
	font-size: 1rem;}
}
a {
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    color: #008000;
    text-decoration: none;
}
a:hover {
    color: #008000;
}

.jcm {
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    font-weight: bold;
    font-size: 1.0em;
}
.new {
	float: right;
	margin-top: 0;
	margin-left: .7em;
    border: 1px solid grey;
	background-color: lightgray;
	padding: 0 .3em;
	font-family: Consolas, "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", Monaco, "Courier New", "monospace";
	font-size: 120%;
    color: red;
}

/* ---- Fluid typography for mobile devices ---- */
/* 1.4 - font scale ratio ( bootstrap == 1.42857 ) */
/* 100vw - current viewport width */
/* (48 - 20)  48 == 48rem == 768px, 20 == 20rem == 320px(minimal supported viewport) */
/* 0.65 - min scale variable, may vary */

/* 1.2 - font scale ratio ( bootstrap == 1.42857 ) */
/* 100vw - current viewport width */
/* (62 - 48)  62 == 62 rem == 992px, 48 == 48rem == 768px, 20 == 20rem == 320px(minimal supported viewport) */
/* 0.65 - min scale variable, may vary */
@media (max-width: 991px) {
  .display-1 {
    font-size: 3.4rem;
    font-size: calc( 2.1374999999999997rem + (4.25 - 2.1374999999999997) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc( 1.4 * (2.1374999999999997rem + (4.25 - 2.1374999999999997) * ((100vw - 20rem) / (48 - 20))));
  }
  .display-2 {
    font-size: 2.4rem;
    font-size: calc( 1.7rem + (3 - 1.7) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc( 1.4 * (1.7rem + (3 - 1.7) * ((100vw - 20rem) / (48 - 20))));
  }
  .display-3 {
    font-size: 1.8rem;
    font-size: calc( 1.4rem + (2.1 - 1.4) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc( 1.4 * (1.175rem + (2.1 - 1.4) * ((100vw - 20rem) / (48 - 20))));
  }
  .display-4 {
    font-size: 1.2rem;
    font-size: calc( 1.175rem + (1.5 - 1.175) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc( 1.4 * (1.175rem + (1.5 - 1.175) * ((100vw - 20rem) / (48 - 20))));
  }
  .display-5 {
    font-size: 0.8rem;
    font-size: calc( 1rem + (1 - 1) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc( 1.4 * (1rem + (1 - 1) * ((100vw - 20rem) / (48 - 20))));
  }
}
h1, .h1 { font-size: 1.6em; font-weight: bold; line-height: 140%; }
h2, .h2 { font-size: 1.25em; font-weight: bold; line-height: 140%; }
h3, .h3 { font-size: 1.1em; font-weight: bold; line-height: 140%;} 
h4, .h4 { font-size: 0.9em; font-weight: bold; line-height: 140%; }
h5, .h5 { font-size: 0.8em; font-weight: bold;  line-height: 140%;}

/* -------- HEADER and MENU -------- */
/* define left yellow column */
.yellowcol {
    background-image: linear-gradient(90deg, var(--color-yellow) var(--width-columnLeft), #FFFFFC var(--width-columnLeft));
    background-position: 0;
    background-repeat: repeat-y;
}
.yellowcol section{
    /* make sections skip yellow column */
    margin-left: var(--width-columnLeft);
}
.fadeToYellow{
    background-image: linear-gradient(90deg, #FFFFFC, #FFEF29);
    max-height: 100%;
}
.JCMlogo{
    position: fixed;
    bottom:   0;
    background-color: var(--color-yellow);
    width:  var(--width-columnLeft);
}

/* make divs use column widths */
.leftCol{
    width: var(--width-columnLeft);
}
.rightCol{ width: 100%-var(--width-columnLeft); }
/* Korrektes CSS laut W3C wäre
.rightCol{ width: calc(100% - var(--width-columnLeft)); }
Aber Firefox setzt calc() nicht korrekt um, daher anders
*/
.mostRightCol{
    width: var(--width-columnRight);
    border-left: 1px solid black;
}
.middleCol{ width: 100%-var(--width-columnLeft)-var(--width-columnRight); }
.leftColGraph img{
	width: 100%;
}

/* skip fixed header vertically */
.spacerToTitle {
    margin-top: 216px;
}
@media (max-width: 991px) {
.spacerToTitle { margin-top: 120px;}
}

/* header graphics: ADwin / nanosecond / flags */
.adwinpos {
    position: relative;
    left: 3px;
}
@media (min-width: 1201px) {
.adwinpos {
    left: 43px;
}
}
#adw-nano {
    background-image: url("../de/nanosekundengenau.png");
    position:absolute;
    width:561px;
    height: 40px;
    top:0;
    right:0;
}
#adw-nano-us {
    background-image: url("../us/nanosekundengenau.png");
    position:absolute;
    width:561px;
    height: 40px;
    top:0;
    right:0;
}
/* flag position for smaller screens */
.adw-flag{
    position: absolute;        
    z-index: 1031;
    margin-top: 97px;
}
.adw-flag1{ margin-left: 41.6rem; }
@media (max-width: 767px) {.adw-flag1 {margin-left: 30.4rem;}}
@media (max-width: 575.98px) {.adw-flag1 {right: 0rem;}}
.adw-flag2{ margin-left: 39.2rem; }
@media (max-width: 767px) {.adw-flag2 {margin-left: 28rem;}}
@media (max-width: 575.98px) {.adw-flag2 {right: 2.4rem;}}
.adw-flag3{ margin-left: 36.8rem; }
@media (max-width: 767px) {.adw-flag3 {margin-left: 25.6rem;}}
@media (max-width: 575.98px) {.adw-flag3 {right: 4.8rem;}}

/* navigation menu */
/* header line */
.adw-header {
    color: var(--color-green);
    font-size: 30px;
    font-weight: bold;
    margin-left: 1.7rem;
    margin-top: 1rem;
	overflow: hidden;
}
@media (max-width: 991px) {.adw-header {
    position:absolute;
    z-index: 1031;
    margin-left: 1rem;
    margin-top: 99px;
    line-height: 1em;
    font-size: 1.4em;
	height: 1em;
    }}

.nav-title{
    background-color: var(--color-yellow);
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    height: 28px;
    font-size: 13px; 
}
.nav-item {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}
.nav-link{
    padding-top: 0;
    padding-bottom: 0;
}
@media (max-width: 991px) {
	.nav-title { font-size: 14px; }
	.nav-link{ padding: 0.5rem 1rem;  }
}
.navbar a {
    font-weight: normal;
    color: black;
    text-decoration: none;
}
/* .navbar a:hover{
    background-color: var(--color-yellowLight);
    color: black;
} */
.navbar-light .navbar-nav .nav-link {
    color: black;
}
.navbar-toggler {
    padding: 0 ;
    font-size: 0.9rem;
    margin-top: 1px;
    /* margin-top: -3px; */
    background-color: #F0F0F0;
}
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Burger-Menü wie .dropdownmenu */
@media (max-width: 991px) {
    #navbarSupportedContent ul{ 
        background-color:  var(--color-yellowLight);
        border: 1px solid black;
        padding: 0.5em;
    }
    .navbar a:hover{
    background-color: var(--color-yellow);
}}

.dropdown-menu{
    background-color: var(--color-yellowLight);
    border: 1px solid black;
    border-radius: 0;
    font-size: 13px; 
/*    font-size: small; */
}
/* Menü links: horizontale Positionierung relativ zur Hauptspalte */
#sm-Home{ 				left: -200px; }
#sm-Konzept{	 		left: -261px; }
#sm-Produkte{ 			left: -381px; }
#sm-Anwendungen{ 		left: -460px; }
#sm-Dienstleistungen{ 	left: -569px; }
#sm-Aktuelles{	 		left: -692px; }
#sm-Download{ 			left: -773px; }
#sm-Kontakt{ 			left: -856px; }

#sm-HomeE{ 				left: -200px; }
#sm-KonzeptE{	 		left: -261px; }
#sm-ProdukteE{ 			left: -381px; }
#sm-AnwendungenE{ 		left: -460px; }
#sm-DienstleistungenE{ 	left: -542px; }
#sm-AktuellesE{	 		left: -624px; }
#sm-DownloadE{ 			left: -683px; }
#sm-KontaktE{ 			left: -766px; }

@media (max-width: 1200px) {
#sm-Home{ 				left: -160px; }
#sm-Konzept{	 		left: -221px; }
#sm-Produkte{ 			left: -341px; }
#sm-Anwendungen{ 		left: -420px; }
#sm-Dienstleistungen{ 	left: -529px; }
#sm-Aktuelles{	 		left: -652px; }
#sm-Download{ 			left: -733px; }
#sm-Kontakt{ 			left: -816px; }

#sm-HomeE{ 				left: -160px; }
#sm-KonzeptE{	 		left: -221px; }
#sm-ProdukteE{ 			left: -341px; }
#sm-AnwendungenE{ 		left: -420px; }
#sm-DienstleistungenE{ 	left: -502px; }
#sm-AktuellesE{	 		left: -584px; }
#sm-DownloadE{ 			left: -643px; }
#sm-KontaktE{ 			left: -726px; }
}
.dropdown {
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
}
.dropdown-divider{
    margin: 0.1rem 0;
}
.navbar-expand-lg .navbar-nav .dropdown-menu{
    top:   125px;
    width: var(--width-columnLeft);
    border: none;
    background-color:  transparent;
}
.dropdown-item {
    border: 1px solid black;
	margin-top: -1px;
    background-color:  var(--color-greenMedium);
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    margin-left: 5%;
    width:      95%;
    white-space: normal;
}
.dropdown-item-menu {
	margin-top: 0.5rem !important;
	border-top: 1px solid black;
    margin-left: 0;
    width:      100%;
}
.active-menu {
    background-color:  var(--color-yellowLight);
}
.active-item {
    background-color:  var(--color-greenLight);
}
.navbar .dropdown-menu a:hover{
    background-color: var(--color-greenLight);
}
@media (max-width: 991px) {
    .dropdown-item { 
        border: none;
        background-color:  transparent;
        margin: 0;
        width:      100%;
	}
    .navbar-expand-lg .navbar-nav .dropdown-menu {
        background-color:  var(--color-yellow);
    	width: inherit;
        border: 1px solid black;
    }
    .navbar .dropdown-menu a:hover{
    background-color: var(--color-yellowLight);
	}
	.dropdown-menu{
    font-size: 14px; 
	}
}

/* rechte Spalte: Nachrichten */
.adw-news {
    display:    block;
    margin-top: 2rem;
    border-top: 1px solid black;
}
.adw-news div {
    border-top: 1px solid black;
    margin-top: 1rem;
    padding-top: 1rem;
}
@media (min-width: 768px) {
.adw-news {
    display:    flex;
    margin-top: 3rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.adw-news div {
    border-top: none;
    border-right: 1px solid black;
    margin-top: 2rem;
}}
@media (min-width: 992px) {
.adw-news {
    display:    block;
    border-top: none;
    border-left: 1px solid black;
    margin-top: 0rem;
    padding-top: 0rem;
}
.adw-news div {
    border-right: none;
    border-bottom: 1px solid black;
    margin-top: 0rem;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0rem;
}}

.adw-news-list {
    margin-bottom: 2rem;
    max-height: 660px;
    overflow: auto;
}
.adw-news-list div {
    border-top: 1px solid black;
    margin-top: 1rem;
    padding-top: 1rem;
}
.adw-news-list img {
    float: right;
    margin-left: 15px;
    margin-right: 5px;
    max-width: 100px;
}

/* Fußzeile */
footer{
    margin-top: 2em;
    border-top: 1px solid black;
    }
@media (min-width: 992px) {
footer{
    margin-left: 170px;
    }}
@media (min-width: 1201px) {
footer{
    margin-left: 210px;
    }}
footer p{
    font-size: 80%;
}
/* Navigationspfeile für Einfach mehr Echtzeit */
.green {
    color: var(--color-green);
}
.redbold {
    font-weight: bold;
    color: red;
}

/* Akkordeon (Pro II) */
.card-header {
    padding: 0;
    /* background-color: var(--color-yellowPale); */
}
.btn-link {
    color:   var(--color-green);
}
.btn-link:hover {
    color:   var(--color-green);
}

/* Eingabeformular */
.contform{
    background-color: var(--color-yellowPale);
    padding: 1rem;
}
.contfield {
    border: 1px solid black;
    padding: 1rem;
}
.contfield input {
    vertical-align: middle;
    line-height: 2rem;
}
.form-check-input {
    margin-top: 0.1rem;
}
.formtel {}
.formfax {
    display:none;
}
.col-form-label-sm{ font-size: inherit;}
.form-control-sm{ font-size: inherit;}
.form-group { margin-bottom: 0.5rem; }
@media (min-width: 992px) { .tooltip-hover {display: none;}}
.tooltip-div { color: #856404; background-color: #fff3cd;}
.tooltip-div:hover .tooltip-hover {display: block; }
