img {
  width: 100%;
  height: auto;
}
h1 {
  margin-bottom: 0;
  margin-top: 0.5em;
}
h2 {
  margin-top: 0;
}
b {
  background-color: #ddf;
  border-radius: 0.2em;
  border: solid 1px #668;
  padding-left: 0.2em;
  padding-right: 0.2em;
}
ol {
  line-height: 160%;
}
.weak {
  opacity: 0.5;
}
.spacer {
  height: 10em;
}
hr {
  margin: 4em;
}
/* Ready for horizontal scrolling */
.scroll-container {
}
table#journis {
}

table {
  border-collapse: collapse;
  margin-bottom: 0.5em;
}
thead {
  z-index: 1;
  position: sticky;
  top: 0px;
  background-color: #ccc;
}
thead th {
  padding-top: 7em;
}
tfoot {
  background-color: #ddf;
}
tfoot th {
  text-align: center;
  font-weight: normal;
  padding-left: 0;
  padding-right: 0;
}
tfoot th:first-child {
  text-align: left;
}
tfoot th:first-child::before {
  padding-left: 0.8em;
  content: "Ausgewählt: ";
}
th,
td.role {
  text-align: left;
  padding: 0.5em;
}
th.rotate {
  position: relative;
  width: 2em;
  align-items: center;
}
th.rotate div.rotate {
  margin-left: 1em;
  position: absolute;
  transform-origin: 0% 50%;
  transform: rotate(-90deg);
  white-space: nowrap;
}
th .checkbox {
  display: flex;
  align-items: baseline;
  flex-direction: row;
}
th .checkbox > div {
  margin-left: 0.2em;
}
th .checkbox.rotate {
  padding-left: 0.3em;
}
.checkbox.light {
  color: #666;
}
tr.medium th {
  color: #00f;
}
tr.medium th .light {
  color: #66f;
}
tr.medium th label::after {
  content: " 📰";
}
td {
  text-align: center;
  padding: 0.5em;
}
td .bullet {
  font-size: 125%;
  margin: 0;
}
td .tooltip.bullet .tooltiptext {
  font-size: 80%;
}

tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.1);
}

tbody td:nth-child(even),
tfoot th:nth-child(odd),
thead th:nth-child(even) {
  background-color: rgba(0, 0, 255, 0.05);
}

span.note {
  color: #666;
}

body {
  padding-left: 0.5em;
  padding-right: 0.5em;
  max-width: 55em;
  margin: auto;
}

/* Tooltip based on https://www.w3schools.com/css/css_tooltip.asp */

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  font-weight: initial;

  visibility: hidden;
  min-width: 10em;
  max-width: 20em;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 0.5em;
  border-radius: 0.5em;

  position: absolute;
  z-index: 2;
  bottom: 120%;
  left: 50%;
  margin-left: -1em;
}
.tooltip .tooltiptext.bottom {
  top: 140%;
  bottom: auto;
}
.tooltip .tooltiptext.rotatebottom {
  bottom: auto;
  right: auto;
  top: 1em;
  left: 1.25em;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}
.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 100%;
  left: 1em;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}
.tooltip .tooltiptext.bottom::after,
.tooltip .tooltiptext.rotatebottom::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent #555 transparent;
}

button {
  font-size: 125%;
}
