html {
  font-size: 20px; /* base font size for rem values */
}

body {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1;
  margin: 0;
}

.content-column {
  position: relative; /* for nested absolute positioned elements, e.g. #site-domain */
  padding: calc((1.1rem + 1.1vw + 0.5vh) * 0.5);
  max-width: 800px;
}
.content-column.topline {
  position: absolute;
  padding-top: 0;
  top: calc((1.1rem + 1.1vw + 0.5vh) * 0.7);
  color: #946815;
  font-weight: bold;
  font-size: calc((1.1rem + 1.1vw + 0.5vh) * 0.4);
  transform: scale(1,1.5);
}
.chart-page .content-column.topline {
  display: none;
}
.navbar-background .content-column {
  padding-bottom: calc((1.1rem + 1.1vw + 0.5vh) * 0.7);
}
.content-background .content-column {
  padding-top: calc((1.1rem + 1.1vw + 0.5vh) * 0.5);
  background-color: #fafafa;
}
.two-column-media-page .content-column {
  max-width: 1100px;
}

@media only screen and (max-width: 600px) {
  .content-column {
    padding: calc((1.1rem + 1.1vw + 0.5vh) * 0.3);
  }
}
@media only screen and (max-width: 800px) {
  .content-background .content-column {
    padding-top: 0 !important;
  }
  nav#menu {
    margin-top: calc((1.1rem + 1.1vw + 0.5vh) * 0.2);
  }
}

nav#navbar {
  position: relative;
  font-size: calc(1.1rem + 1.1vw + 0.5vh);
  color: #ddd;
}

.navbar-background {
  position: relative;
  box-sizing: border-box;
  width: 100%; /* important of position is fixed */
  z-index: 1; /* = above content-background (for shadow to be visible) */
  box-shadow: 0 -100px 10px 100px black; /* -100px and spread 100px are necessary
    for the shadow to spread far enough to left and right */
  background-color: #242f69;
  background: linear-gradient(to bottom,
    #d39e38 calc((1.1rem + 1.1vw + 0.5vh) * 0.8),
    #d8bd8b calc((1.1rem + 1.1vw + 0.5vh) * 0.8) calc((1.1rem + 1.1vw + 0.5vh) * 1.1),
    #4953a7 calc((1.1rem + 1.1vw + 0.5vh) * 1.1) calc((1.1rem + 1.1vw + 0.5vh) * 1.3),
    #242f69 calc((1.1rem + 1.1vw + 0.5vh) * 1.3),
    #4f5fb1);
  padding-left: calc(43% - 400px); /* padding clamps negative values to 0 */
  min-height: calc((1.1rem + 1.1vw + 0.5vh) * 3.8); /* make page switches less flickery TODO adjust to current situation */
  padding-top: calc((1.1rem + 1.1vw + 0.5vh) * 1.5);
}
.chart-page .navbar-background {
  background: linear-gradient(to bottom,
    #96c8ff calc((1.1rem + 1.1vw + 0.5vh) * 0.2),
    #ffedc2 calc((1.1rem + 1.1vw + 0.5vh) * 0.2) calc((1.1rem + 1.1vw + 0.5vh) * 0.4),
    #ffcf5d calc((1.1rem + 1.1vw + 0.5vh) * 0.4) calc((1.1rem + 1.1vw + 0.5vh) * 0.6),
    #ffb400 calc((1.1rem + 1.1vw + 0.5vh) * 0.6) calc((1.1rem + 1.1vw + 0.5vh) * 0.8),
    #d6ff51 calc((1.1rem + 1.1vw + 0.5vh) * 0.8) calc((1.1rem + 1.1vw + 0.5vh) * 1.0),
    #242f69 calc((1.1rem + 1.1vw + 0.5vh) * 1.0),
    #4f5fb1);
}
.content-background {
  padding-left: calc(43% - 400px); /* padding clamps negative values to 0 */
  min-height: 100vh; /* content min height to avoid background image flickering on navigation */
  background-color: #fafafa;
}
.left-content-background {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 800px;
  padding-left: calc(43% - 400px);
  padding-right: calc((1.1rem + 1.1vw + 0.5vh) * 1.0); /* = 2x content column padding */
  background-color: #fafafa;
  box-shadow: -100px 0 20px 100px lightgray;
}
.two-column-media-page .navbar-background {
  padding-left: calc(43% - 500px); /* padding clamps negative values to 0 */
}
.two-column-media-page .content-background {
  padding-left: calc(43% - 500px); /* padding clamps negative values to 0 */
}
.two-column-media-page .left-content-background {
  padding-left: calc(43% - 500px);
}
.coming-from-narrow-page .navbar-background,
.coming-from-narrow-page .content-background,
.coming-from-narrow-page .left-content-background {
  padding-left: calc(43% - 400px); /* padding clamps negative values to 0 */
}
.came-from-narrow-page .navbar-background,
.came-from-narrow-page .content-background,
.came-from-narrow-page .left-content-background {
  transition: padding-left 1s;
  padding-left: calc(43% - 500px); /* padding clamps negative values to 0 */
}
.coming-from-wide-page .navbar-background,
.coming-from-wide-page .content-background,
.coming-from-wide-page .left-content-background {
  padding-left: calc(43% - 500px); /* padding clamps negative values to 0 */
}
.came-from-wide-page .navbar-background,
.came-from-wide-page .content-background,
.came-from-wide-page .left-content-background {
  transition: padding-left 1s;
  padding-left: calc(43% - 400px); /* padding clamps negative values to 0 */
}


/*@media only screen and (min-width: 700px) {
  .content-background {
    background-image: url('background-image.gif');
    background-size: calc((1.5vw + 1vh) * 40) auto;
    background-repeat: no-repeat;
    background-position: top right;
  }
}*/

nav#navbar #title-line {
  position: relative; /* for absolute image positioning inside title line */
  text-indent: calc((1.1rem + 1.1vw + 0.5vh) * (-1.08));
  padding-top: calc((1.1rem + 1.1vw + 0.5vh) * 1.2);
  padding-left: calc((1.1rem + 1.1vw + 0.5vh) * 1.08);
}

nav#navbar.without-menu-icon #title-line {
  text-indent: unset;
  /* compensate for space before first letter due to font */
  padding-left: 0;
  margin-left: calc((1.1rem + 1.1vw + 0.5vh) * (-0.04));
}

nav#navbar.with-subtitle #title-line {
  padding-top: calc((1.1rem + 1.1vw + 0.5vh) * 0.7);
}

nav#navbar a#menu-icon {
  color: inherit;
  text-decoration: none;
  /* use burger icon image as mask */
  background-color: #eee;
  display: inline-block;
  mask-image: url(/burger.transparent.gif);
  mask-size: calc((1.1rem + 1.1vw + 0.5vh) * 0.8);
  mask-repeat: no-repeat;
  width: calc((1.1rem + 1.1vw + 0.5vh) * 0.8);
  height: calc((1.1rem + 1.1vw + 0.5vh) * 0.8);
  vertical-align: calc((1.1rem + 1.1vw + 0.5vh) * (-0.11));
}

nav#navbar #page-title > a {
  color: inherit;
  text-decoration: none;
}

nav#navbar a#close-icon {
  position: absolute; /* required due to slightly larger font size to not influence the line height */
  display: inline-block;
  bottom: calc((1.1rem + 1.1vw + 0.5vh) * -0.05);
  margin-left: calc((1.1rem + 1.1vw + 0.5vh) * 0.2);
  text-indent: initial; /* prevent unwanted horizontal displacement */
  font-size: calc((1.1rem + 1.1vw + 0.5vh) * (10.0/9.0));
  color: inherit;
  text-decoration: none;
}

nav#navbar img#me-image {
  position: absolute;
  display: inline-block;
  bottom: 0;
  margin-left: calc((1.1rem + 1.1vw + 0.5vh) * 0.2);
  width: calc((1.1rem + 1.1vw + 0.5vh) * 1.2);
  height: calc((1.1rem + 1.1vw + 0.5vh) * 1.2);
  box-shadow: 0 7px 4px -6px gray;
}

.subtitle {
  font-weight: bold;
  font-size: calc((1.1rem + 1.1vw + 0.5vh) * 0.45);
  margin-top: calc((1.1rem + 1.1vw + 0.5vh) * 0.15);
}

.hidden {
  display: none !important;
}

#site-domain {
  font-size: calc((1.1rem + 1.1vw + 0.5vh) * 0.5);
  position: absolute;
  left: 0; /*calc((1.1rem + 1.1vw + 0.5vh) * (0.6));*/
  top: 0; /*calc((1.1rem + 1.1vw + 0.5vh) * (0.6));*/
}

#site-domain a {
  color: inherit;
  display: inline-block;
  transform: scale(1,1.2);
  text-decoration: underline;
  text-decoration-color: #4f5fb1;
  text-underline-offset: calc((1.1rem + 1.1vw + 0.5vh) * 0.1);
  text-decoration-thickness: 1px;
  letter-spacing: calc((1.1rem + 1.1vw + 0.5vh) * 0.02);
  text-transform: uppercase;
}
#site-domain a:hover {
  text-decoration-color: initial;
}

#language-switcher {
  font-size: calc((1.1rem + 1.1vw + 0.5vh) * 0.5);
  margin-bottom: calc((1.1rem + 1.1vw + 0.5vh) * (-0.1));
  text-align: right;
}

#language-switcher a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #4f5fb1;
  text-underline-offset: calc((1.1rem + 1.1vw + 0.5vh) * 0.1);
  text-decoration-thickness: 1px;
  display: inline-block;
}
#language-switcher a:hover {
  text-decoration-color: initial;
}

nav.menu {
  margin-top: 0.5rem;
  font-weight: bold;
  color: #555;
}

nav.menu a {
  display: block;
  font-size: calc((1.1rem + 1.1vw + 0.5vh) * 0.7);
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
  padding-top: 1vh;
  padding-bottom: 2vh;
}

nav.menu a img {
  width: calc((1.1rem + 1.1vw + 0.5vh) * 0.75);
  height: calc((1.1rem + 1.1vw + 0.5vh) * 0.75);
  vertical-align: calc((1.1rem + 1.1vw + 0.5vh) * (-0.1));
  padding-left: calc((1.1rem + 1.1vw + 0.5vh) * 0.1);
  padding-right: calc((1.1rem + 1.1vw + 0.5vh) * 0.1);
}
nav.menu a img.me-image {
  position: absolute;
  width: calc(1.1rem + 1.1vw + 0.5vh);
  height: calc(1.1rem + 1.1vw + 0.5vh);
  left: calc((1.1rem + 1.1vw + 0.5vh) * (-0.03));
  bottom: calc((1.1rem + 1.1vw + 0.5vh) * (-0.1));
  padding: 0;
}

nav.menu .menu-item-icon {
  display: inline-block;
  text-align: center;
  vertical-align: calc((1.1rem + 1.1vw + 0.5vh) * (-0.08));
  width: calc((1.1rem + 1.1vw + 0.5vh));
  height: calc((1.1rem + 1.1vw + 0.5vh) * 0.75);
  position: relative; /* for absolute icon positioning, e.g. of a high "me" icon */
}
polyline, path {
  fill: #555;
}
nav.menu .menu-item-text {
  display: inline-block;
  height: calc((1.1rem + 1.1vw + 0.5vh) * 0.75);
  text-decoration: underline;
  text-decoration-color: #eee;
  text-underline-offset: calc((1.1rem + 1.1vw + 0.5vh) * 0.2);
  text-decoration-thickness: 2px;
}
nav.menu a:hover .menu-item-text {
  text-decoration-color: initial;
}

/* fine-tune horizontal positions of menu icon items */
nav.main-menu a:nth-of-type(1) .menu-item-icon:first-child {
  padding-left: 0;
  padding-right: 0.25rem;
}
nav.main-menu a:nth-of-type(2) .menu-item-icon:first-child {
  padding-left: 0;
  padding-right: 0.25rem;
}
nav.main-menu a:nth-of-type(3) .menu-item-icon:first-child {
  padding-left: 0.25rem;
  padding-right: 0;
}
nav.main-menu a:nth-of-type(4) .menu-item-icon:first-child {
  padding-left: 0.02rem;
  padding-right: 0.23rem;
}
nav.main-menu a:nth-of-type(5) .menu-item-icon:first-child {
  padding-left: 0.05rem;
  padding-right: 0.20rem;
}
nav.main-menu a:nth-of-type(6) .menu-item-icon:first-child {
  padding-left: 0.05rem;
  padding-right: 0.20rem;
}
nav.main-menu a:nth-of-type(7) .menu-item-icon:first-child {
  padding-left: 0.15rem;
  padding-right: 0;
}
nav.main-menu a:nth-of-type(8) .menu-item-icon:first-child {
  padding-left: 0.02rem;
  padding-right: 0.23rem;
}

.content {
  padding-top: 0.5rem; /* compensate for first child margin tops to prevent jumps by navbar scrolling logic */
}

h1 {
  display: inline; /* part of header bar */
  font-weight: bold;
  font-size: calc((1.1rem + 1.1vw + 0.5vh) * 0.9);
  color: #eee;
}

h2 {
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 1.15;
  padding-bottom: 0.2rem;
  margin-top: 1rem;
  margin-bottom: 0.7rem;
}
h2.before-hr {
  margin-bottom: 0.2rem;
  color: #666666;
}

h3 {
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-top: 0.7rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.3;
  margin-top: 0.5rem;
  margin-bottom: 0.7rem;
  color: #666666;
}

@media only screen and (orientation: landscape) {
  h1, h2, h3, h4 {
    /* in landscape mode, at least Safari on iOS increases the <p> text size
    compensate for that behavior by also increasing the <h*> text sizes */
    -webkit-text-size-adjust: 130%;
    text-size-adjust: 130%;
  }
}

p {
  font-size: 1rem;
  line-height: 1.4;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

a {
  color: #946815;
  text-decoration-color: #d8bd8b;
}

button {
  all: unset;
  box-sizing: border-box;
  display: inline-block;
  cursor: pointer;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  min-height: 1rem;
  border: 2px solid #242f69;
  border-radius: 0.7rem;
  font-size: 0.7rem;
  color: #242f69;
  background-color: #dee3ff;
  box-shadow: 0 1px 2px 0 gray;
  margin-left: 1px;
  margin-top: 1px;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
button:hover {
  background-color: #f0f2ff;
  box-shadow: 0px 2px 4px 0 gray;
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 1px;
}

p button {
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  min-height: 2rem;
  border: 3px solid #242f69;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: bold;
  color: #242f69;
  background-color: #dee3ff;
  box-shadow: 0 1px 2px 0 gray;
  margin-left: 1px;
  margin-top: 1px;
}
p button:hover {
  background-color: #f0f2ff;
  box-shadow: 0px 2px 4px 0 gray;
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 1px;
}

code, samp {
  font-size: 0.9rem;
}

ul {
  list-style-type: "–  ";
  padding-left: 1.5rem;
}

ol {
  padding-left: 1.5rem;
}

ul > li, ol > li {
  font-size: 1rem;
  line-height: 1.4;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

@media only screen and (max-width: 600px) {
  .narrow-list {
    padding-left: 1.4rem;
    /*text-indent: -0.05rem;*/
  }
}
.narrow-list > li {
  font-size: 0.9rem;
}
.narrow-list .arrow-list {
  list-style-type: "→ ";
  margin-left: 0;
  padding-left: 1.2rem;
}
.narrow-list .arrow-list > li {
  font-size: 0.9rem;
}
@media only screen and (max-width: 600px) {
  .narrow-list .arrow-list {
    padding-left: 0.8rem;
  }
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid black;
  margin: 0;
  padding: 0;
}

.centered-text {
  text-align: center;
}

.justified-text {
  text-align: justify;
}

.small-text {
  font-size: 0.7rem;
}

.no-underline {
    text-decoration: none;
}
.underline {
    text-decoration: underline;
}

.collapsible {
  border-left: 1px solid #d3d3d3;
  border-bottom: 1px solid #d3d3d3;
  border-bottom-left-radius: 8px;
  padding-left: calc((1.1rem + 1.1vw + 0.5vh) * 0.4 - 1px); /* -1px for border */
  padding-bottom: calc((1.1rem + 1.1vw + 0.5vh) * 0.4 - 1px); /* -1px for border */
  margin-left: calc((1.1rem + 1.1vw + 0.5vh) * (-0.4));
  margin-top: 0.6rem;
  padding-top: 0.6rem;
}
.collapsible:not(.collapsed) {
  margin-bottom: 2rem;
}
.collapsible .collapse-button {
  display: block;
  float: right;
  font-size: initial;
  margin-right: -0.5rem;
  margin-top: 1.2rem;
  margin-bottom: -1.2rem;
  font-weight: bold;
  letter-spacing: 0.04rem;
  color: gray;
  border-color: gray;
  background-color: #d5d5d5;
}
.collapsible .collapse-button:hover {
  background-color: #ececec;
}
.collapsible > hr {
  border-top: 1px solid #d3d3d3;
  margin-left: calc((1.1rem + 1.1vw + 0.5vh) * (-0.4));
}
@media only screen and (max-width: 600px) {
  .collapsible {
    /* narrow screen => narrow padding */
    padding-left: calc((1.1rem + 1.1vw + 0.5vh) * 0.2 - 1px); /* -1px for border */
    padding-bottom: calc((1.1rem + 1.1vw + 0.5vh) * 0.2 - 1px); /* -1px for border */
    margin-left: calc((1.1rem + 1.1vw + 0.5vh) * (-0.2));
  }
  .collapsible .collapse-button {
    margin-right: 0;
    margin-top: 0.5rem;
    margin-bottom: -0.5rem;
  }
  .collapsible > hr {
    margin-left: calc((1.1rem + 1.1vw + 0.5vh) * (-0.2));
  }
}
.collapsible::after {
  /* clearfix for collapse button not to float outside */
  content: "";
  display: block;
  clear: both;
}
.collapsible.collapsed {
  border-left: unset;
  border-bottom: unset;
}
.collapsible > :first-child { /* first child is usually h2, h3, h4,... */
  margin-top: 0; /* vertical space is defined directly for .collapsible */
  cursor: pointer; /* for expand/collapse click */
}
.collapsible.collapsed > :first-child {
  color: gray;
  margin-top: 0;
  margin-bottom: 0;
  border-bottom: 1px solid #d0d0d0;
}
.collapsible.collapsed > :first-child:hover {
  border-bottom: 1px solid gray;
}
.collapsible > :last-child {
  margin-bottom: 0;
}
.collapsible.collapsed > :not(:first-child) {
  display: none;
}
.collapsible > .expand-explanation {
  display: none;
}
.collapsible.collapsed > .expand-explanation {
  display: block;
  color: gray;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  margin-left: 2.1rem;
  text-indent: -1.2rem; /* for multi-line to be right of hand symbol */
  padding-left: 1.2rem;
  cursor: pointer;
}
.collapsible.collapsed .expand-explanation-icon {
  display: inline-block;
  background-color: gray;
  width: 1.15rem;
  height: 1rem;
  vertical-align: -0.3rem;
  mask-image: url(/hand.png);
  mask-size: 1rem;
  mask-repeat: no-repeat;
  margin-left: 0.1rem;
  margin-right: 0.1rem;
}
.collapsible .expand-button-wrapper {
  display: none;
  text-indent: 0; /* remove text-indent inherited from parent */
  padding-right: 0.3rem;
}
.collapsible.collapsed .expand-button-wrapper {
  display: inline-block;
}
.collapsible .expand-button {
  display: inline-block;
  all: unset; /* remove button style */
}
.collapsible .expand-button img {
  width: 2rem;
  height: 2rem;
  color: transparent; /* hide alt text during image load */
}
.collapsible .expand-button .upper-line {
  font-size: 0.5rem;
}
.collapsible .expand-button .lower-line {
  font-size: 1rem;
}

dl.skill-profile > div {
  all: unset;
  margin-left: -8px;
  margin-right: -8px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  cursor: pointer;
}
dl.skill-profile dt {
  box-sizing: border-box;
  font-weight: bold;
  width: 100px;
  padding-bottom: 10px;
}
dl.skill-profile dd {
  box-sizing: border-box;
  margin-left: auto;
  width: calc(100% - 105px);
  padding-left: 5px;
  padding-bottom: 10px;
}

dl.cv {
  all: unset;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-left: -8px;
  margin-right: -8px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  /* prevent larger right-column text in landscape mode
  while the left-column text stays the same size as in
  portrait mode */
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
dl.cv dt {
  box-sizing: border-box;
  font-weight: bold;
  width: 240px;
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  text-align: right;
}
dl.cv dt.compact {
  margin-bottom: 0;
}
dl.cv dd.compact {
  padding-top: 0.35rem;
  margin-bottom: 0;
}
dl.cv dd.compact p {
  margin-top: 0;
  margin-bottom: 0;
}
dl.cv dt a {
  color: black;
  text-decoration: none;
}
dl.cv dd {
  box-sizing: border-box;
  margin-left: auto;
  width: calc(100% - 245px);
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  padding-left: 1rem;
  padding-bottom: 0;
}
dl.cv dd > :first-child {
  margin-top: 0; /* prevent elements like <p> from going down */
}
dl.cv dd .right-of-timespan { /* usually :first-child */
  margin-top: 0.35rem; /* move element down to middle of year-year */
}
dl.cv dd .right-of-company-name { /* usually :first-child */
  margin-top: -0.045rem; /* move element up to middle of company name */
}
dl.cv .address {
  margin-top: 2.4rem !important;
  margin-bottom: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}
dl.cv ul {
  list-style-type: "–  ";
  padding-left: 1.5rem;
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
}
dl.cv .compact p {
  font-size: 0.7rem;
}
dl.cv .timespan {
  display: inline-block;
  min-height: 2.4rem;
  color: gray;
  font-size: 1.4rem;
}
dl.cv .compact .timespan {
  min-height: unset;
  font-size: 1.2rem;
}
dl.cv h3 {
  font-size: 0.85rem;
  font-weight: bold;
  margin-top: 0.3rem;
  margin-bottom: 0.9rem;
}
dl.cv dd p, dl.cv dd li {
  font-size: 0.9rem;
}

@media only screen and (max-width: 800px) {
  dl.cv dt {
    width: 180px;
  }
  dl.cv dd {
    width: calc(100% - 185px);
  }
  dl.cv dd .right-of-timespan { /* usually :first-child */
    margin-top: 0.6rem; /* move element down to middle of year-year */
  }
  dl.cv dd .right-of-company-name { /* usually :first-child */
    margin-top: 0; /* reset element to middle of company name */
  }
  dl.cv, dl.cv h3, dl.cv p, dl.cv .address, dl.cv li {
    font-size: 0.7rem !important;
  }
}
@media only screen and (max-width: 600px) {
  dl.cv dt {
    width: 100%;
    margin-bottom: 0;
    text-align: left;
  }
  dl.cv dt .company-name, dl.cv dd .studies-name {
    letter-spacing: 0.08rem;
  }
  dl.cv dd {
    width: 100%;
    margin-top: 0;
    padding-left: 0;
  }
  dl.cv dd > :first-child {
    margin-top: 0.3rem;
  }
  dl.cv dd .right-of-timespan { /* usually :first-child */
    margin-top: 0; /* prevent element from going down in vertical stacking of dts and dds */
  }
  dl.cv dd .right-of-company-name { /* usually :first-child */
    margin-top: 0.3rem; /* push down element a bit from company name */
  }
  dl.cv .address {
    margin-top: 0.3rem !important; /* account for vertical stacking of dts and dds */
  }
  dl.cv h3 {
    margin-top: 0.8rem;
  }
}

.me-in-text {
  position: relative;
  display: block;
  float: right;
  margin-bottom: 0.5rem;
}
img.me-in-text {
  box-shadow: 0 14px 8px -12px black;
  width: 135px;
  height: 135px;
}
a.me-in-text {
  color: inherit;
  text-decoration: none;
}
a.me-in-text > img.me-in-text {
  float: unset;
  margin-top: 0;
  margin-bottom: 0;
}

.photo {
  display: block;
  object-fit: contain;
  width: 400px;
  height: auto;
}

input.tag-filter-input {
  box-sizing: border-box;
  width: 100%;
  border: 2px solid #4953a7;
  border-radius: 6px;
  padding: 10px;
  font-size: 1rem;
}
#tag-cloud-with-filter {
  padding: calc((1.1rem + 1.1vw + 0.5vh) * 0.2 - 1px); /* -1px for border */
  padding-top: calc((1.1rem + 1.1vw + 0.5vh) * 0.25 - 1px); /* -1px for border */
  margin-left: calc((1.1rem + 1.1vw + 0.5vh) * (-0.2));
  margin-right: calc((1.1rem + 1.1vw + 0.5vh) * (-0.2));
}
#tag-cloud-with-filter.filter-active {
  border: 1px solid #4953a7;
  border-radius: 5px;
  background-color: #fff6e5;
}

#tag-cloud {
  padding-top: 0.5rem;
  font-size: 1rem;
  line-height: 1;
}

#tag-cloud .tag-line {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

#tag-cloud .tag {
  cursor: pointer;
  display: inline-block;
  border: 1px solid black;
  border-radius: 5px;
  padding-left: 4px;
  padding-right: 4px;
  padding-top: 2px;
  padding-bottom: 2px;
}

#tag-cloud .tag.tag-nontouch:hover {
  box-shadow: 2px 2px 3px black;
  margin-left: -2px;
  margin-top: -2px;
  margin-right: 2px;
  margin-bottom: 2px;
}

#tag-cloud .tag.selected {
  font-weight: bold;
  /* -webkit-text-stroke: 0.06rem; */
  /* text-shadow: 0 0 0.1rem black; */
}

#tag-cloud .tag-web-link {
  font-size: 0.7rem;
}

#tag-cloud button.go-down-button {
  margin-left: 4px;
  vertical-align: 2px;
  border: none;
  color: white;
  background-color: #946815;
  font-weight: bold;
}

#skill-list h3 {
  margin-top: 1rem;
  margin-bottom: 0.1rem;
}

#skill-list p {
  font-size: 0.7rem;
  margin-top: 0.1rem;
  margin-bottom: 0;
}

#skill-list p em {
  /* bold instead of italic */
  font-style: normal;
  font-weight: bold;
}

#skill-list p.skill-web-link-paragraph {
  font-size: 0.7rem;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  /* since Safari does not do line breaks at /, we need an ellipsis: */
  overflow: hidden;
  text-overflow: ellipsis;
}

#skill-list button.remove-button {
  font-size: 0.6rem;
  margin-left: 4px;
  vertical-align: 4px;
  border: none;
  color: white;
  background-color: #242f69;
  font-weight: bold;
}

#skill-list button.rating-remove-button {
  vertical-align: 7px;
}

#rating-explanation {
  display: none;
}
#rating-explanation.visible {
  display: block;
}

.rating-size {
  display: inline-block;
  max-height: 1.5rem; /* to limit influence of rating asterisks in rating skill list */
}

button.rating-star {
  all: unset;
  font-size: 4rem;
  vertical-align: -1.75rem;
  font-weight: normal;
  cursor: pointer;
  user-select: none;
}

button.rating-star.rating-star-active {
  font-weight: bold;
  color: yellow;
  text-shadow: 1px 1px 2px orange;
}

#match-score-text {
  display: none;
}
#match-score-text.visible {
  display: block;
}

.match-score-valuation {
  display: none;
}
.match-score-valuation.visible {
  display: inline;
}

#match-score-error-text {
  display: none;
}
#match-score-error-text.visible {
  display: block;
}

#match-score-chart-box {
  height: calc(10rem + 20vw);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#match-score-chart-value-text {
  position: absolute;
  font-size: calc((10rem + 20vw) * 0.14);
  margin-top: calc((10rem + 20vw) * 0.035);
  margin-left: calc((10rem + 20vw) * 0.05);
  font-weight: bold;
}

#bar-chart-explanation {
  display: none;
}
#bar-chart-explanation.visible {
  display: block;
}

@media only screen and (max-width: 600px) {
    .button-block button {
        width: calc(100% - 2px); /* -2px to account for margins */
    }
}
#sharing p button .button-content {
  display: inline-block;
}
#sharing p button .button-icons {
  display: inline-block;
  text-indent: 0;
  padding-right: 0.2rem;
}
#sharing p button .button-icon {
  display: inline-block;
  background-color: #242f69;
  width: 1rem;
  height: 1rem;
  vertical-align: -0.1rem;
  mask-image: url(/burger.transparent.gif);
  mask-size: 1rem;
  mask-repeat: no-repeat;
  margin-left: 0.1rem;
  margin-right: 0.1rem;
}
#sharing p button .button-text {
  display: inline;
  text-indent: 0;
}
#sharing p .copied-message {
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  white-space: nowrap;
}

.photo-box {
  box-sizing: border-box;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.photo-box video, .photo-box img {
  display: block;
  width: calc(100% - 4px); /* -4px = remove 2x padding */
  box-shadow: 0 0 20px black;
  padding: 2px;
  background-color: white;
  color: transparent; /* hide alt text during image load */
}
.photo-box.frameless img {
  box-shadow: none;
  background-color: transparent;
}
.photo-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.photo-block > .photo-cell {
  box-sizing: border-box;
  width: 49.9%;
  height: fit-content;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.photo-block > .text-cell {
  box-sizing: border-box;
  width: 49.9%;
  margin-left: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.photo-block > .text-cell:first-child {
  padding-left: 0;
}

.photo-block > .text-cell:last-child {
  padding-right: 0;
}

.photo-block > .text-cell > p:first-child, .photo-block > .text-cell > ul:first-child {
  margin-top: 0;
}

.photo-block > .text-cell > p:last-child, .photo-block > .text-cell > ul:last-child {
  margin-bottom: 0;
}

.photo-block > .photo-cell video, .photo-block > .photo-cell img {
  display: block;
  width: calc(100% - 4px); /* -4px = remove 2x padding */
  box-shadow: 0 0 20px black;
  padding: 2px;
  background-color: white;
  color: transparent; /* hide alt text during image load */
}
.photo-block > .photo-cell:first-child img {
  margin-left: auto; /* for less wide images to float into the middle of the block */
}
.photo-block.reverse-cell-order {
  flex-direction: row-reverse;
}
.photo-block.reverse-cell-order > .photo-cell:first-child img {
  margin-left: 0; /* for less wide images to float into the middle of the block */
}
.photo-block.reverse-cell-order > .photo-cell:last-child img {
  margin-left: auto; /* for less wide images to float into the middle of the block */
}
.photo-block > .photo-cell video {
  cursor: pointer;
}

.photo-box img.lowres, .photo-cell img.lowres {
  filter: blur(2px);
}
.photo-box img.loading, .photo-cell img.loading {
  height: 0;
  padding: 0;
}
.photo-cell video.loading {
  filter: blur(2px);
}

@media only screen and (max-width: 800px) {
  .photo-block.early-vertical > .photo-cell {
    width: 100%;
    padding-left: 20%;
    padding-right: 30%;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }
  .photo-block.early-vertical > .text-cell {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .photo-block.early-vertical > .photo-cell img {
    margin: auto !important; /* for less wide images to float into the middle of the cell */
  }
}

@media only screen and (max-width: 600px) {
  .photo-block > .photo-cell {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }
  .photo-block > .text-cell {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .photo-block > .photo-cell img {
    margin: auto !important; /* for less wide images to float into the middle of the cell */
  }
}

.photo-block img.landscape {
  aspect-ratio: 3/2;
}

.photo-block img.square {
  aspect-ratio: 1/1;
  width: calc(75% - 4px);
}

.photo-block img.mirrored {
  transform: scale(-1, 1);
}

#freeride-video {
  aspect-ratio: 16/9;
}

#michael-video {
  aspect-ratio: 16/9;
}

#motion-spectrum-over-time-video {
  aspect-ratio: 10/6;
}
