/*----------------------------------------------------------------------
Description: Main stylesheet of www.BitRotation.de
Author: Marco Lammert

Copyright © 2017-2020 by Marco Lammert
----------------------------------------------------------------------*/

/*
  Color reference
  
  #6787b7 - BitRotation-Hellblau
  #878787 - BitRotation-Grau
  
  #ff9900 - Orange
*/

/*----------------------------------------
  Resets and overrides
----------------------------------------*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*----------------------------------------
  General Styles
----------------------------------------*/

:root {
  color-scheme: light dark;

  --debug-border-color: #000;

  --bitrotation-light-blue: #6787b7;
  --bitrotation-light-green: #67b787;
  --bitrotation-grey: #878787;

  --internal-link-color: #0096ff;
  --internal-link-hover-color: #3affd7;
  --external-link-color: #b76777;
  --external-link-hover-color: #d65021;

  --primary-text-color: #000;
  --card-background-color: #fff;
  --card-subheading-text-color: #919191;
  --hover-color: #fff;
  --indicator-color: #bbb;
  --attention-color: #ffbb33;
  --legal-statement-color: #ccc;
  --flex-footer-text-color: #797979;
}

/* Web font: "Noto Sans" */

@font-face {
  font-family: "Noto Sans";
  src: url(../../resources/web-fonts/Noto_Sans/NotoSans-Regular.ttf);
}

@font-face {
  font-family: "Noto Sans";
  src: url(../../resources/web-fonts/Noto_Sans/NotoSans-Bold.ttf);
  font-weight: bold;
}

@font-face {
  font-family: "Noto Sans";
  src: url(../../resources/web-fonts/Noto_Sans/NotoSans-Italic.ttf);
  font-style: italic;
}

@font-face {
  font-family: "Noto Sans";
  src: url(../../resources/web-fonts/Noto_Sans/NotoSans-BoldItalic.ttf);
  font-weight: bold;
  font-style: italic;
}

/* Web font: "Open Sans" */

/*@font-face {
  font-family: "Open Sans";
  src: url(../../resources/web-fonts/Open_Sanss/OpenSans-Regular.ttf);
  font-weight: normal;
}

@font-face {
  font-family: "Open Sans";
  src: url(../../resources/web-fonts/Open_Sans/OpenSans-Italic.ttf);
  font-style: italic;
}

@font-face {
  font-family: "Open Sans";
  src: url(../../resources/web-fonts/Open_Sans/OpenSans-Bold.ttf);
  font-weight: bold;
}

@font-face {
  font-family: "Open Sans";
  src: url(../../resources/web-fonts/Open_Sans/OpenSans-BoldItalic.ttf);
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "Open Sans";
  src: url(../../resources/web-fonts/Open_Sans/OpenSans-Light.ttf);
  font-weight: lighter;
}

@font-face {
  font-family: "Open Sans";
  src: url(../../resources/web-fonts/Open_Sans/OpenSans-LightItalic.ttf);
  font-weight: lighter;
  font-style: italic;
}*/

/* Web font: "Exo 2" */

/*@font-face {
  font-family: "Exo 2";
  src: url(../../resources/web-fonts/Exo_2/Exo2-VariableFont_wght.ttf);
}

@font-face {
  font-family: "Exo 2";
  src: url(../../resources/web-fonts/Exo_2/Exo2-Italic-VariableFont_wght.ttf);
  font-style: italic;
}*/

html {
  font-size: 100%;
}

body {
  font-family: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;*/

  font-size: medium;
  line-height: 1.5em;

  margin: 0;
}

/*
h1:first-child { margin-top: 0em; }
*/

h1 {
  font-size: 1.4em;
  font-weight: 600;

  margin-top: 2em;
  margin-bottom: 0.5em;
}

/*
h2:first-child { margin-top: 0em; }
*/

h2 {
  font-size: 1.1em;
  font-weight: 600;

  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1em;
  font-weight: 600;

  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

p {
  margin-top: 1em;
}

blockquote {
  margin: 1em 0 1em 0;
  padding: 0.5em 1em 0.5em 1em;
  border-left: 4px solid #d9d9d9;
}

/*----------------------------------------
  Menu
----------------------------------------*/

.menu-container {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */
  padding: 20px 0;

  display: flex;
  justify-content: center;
}

a.svg:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

a.svg {
  position: relative;
  display: inline-block;
}

.bitrotation-logo {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.bitrotation-logo-and-name {
  width: 200px;
  height: auto;
  margin-right: 10px;
}

.logo-and-nav-icon {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* For debugging */
/* Commented because... 'Do not use empty rulesets' */
/*#links {
  border: 1px solid var(--debug-border-color);
}*/

.menu-expanded {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  display: flex;
  align-items: center;
}

.menu-closed {
  display: none;
}

#menu-toggle {
  cursor: pointer;
}

.menu-toggle-on {
  display: initial;
}

.menu-toggle-off {
  display: none;
}

div.menu-icon {
  width: 2em;
  height: 0.3em;
  background-color: var(--bitrotation-grey);
  margin: 0.35em 0;
}

/*----------------------------------------
  (Menu) Button/Links
----------------------------------------*/

.button {
  margin: 0 10px;
  padding: 0.4em 1em;
  font-weight: bold;

  color: var(--bitrotation-grey);

  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

div.button:hover {
  color: var(--hover-color);
  background: var(--bitrotation-grey);

  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
}

#links a:link {
  text-decoration: none;
}

div.button.active {
  color: var(--bitrotation-grey);

  border-top: 2px solid transparent;
  border-bottom: 2px solid var(--bitrotation-grey);
}

div.button.active:hover {
  color: var(--hover-color);
  background: var(--bitrotation-grey);

  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
}

/*----------------------------------------
  Main content
----------------------------------------*/

.content-container {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  display: flex;
  justify-content: center;
}

.content {
  display: block;
}

.text-content {
  width: 100%;
}

/* Jumbotron */

/*.jumbotron {
  color: #fff;
  background: var(--bitrotation-light-blue);
  
  margin-bottom: 1em;
  padding: 1.2em;
  
  font-size: 1.4em;
  font-weight: 500;
  text-align: center;
  
  border-radius: 4px;
}*/

.jumbotron {
  color: var(--bitrotation-light-blue);
  background: #f0f0f0;

  margin-bottom: 1em;
  padding: 1em;

  font-size: 1.4em;
  /*font-weight: bold;*/
  font-weight: 500;
  text-align: center;

  /*border: 2px solid var(--bitrotation-light-blue);*/
  border-radius: 4px;
}

hr.jumbotron-space {
  margin: 0.5em 0;

  border: none;
  height: 2px;
  background-color: #d6d6d6;
}

.jumbotron-ocram-one {
  color: var(--bitrotation-light-blue);
  /*background: #f0f0f0;*/
  /*border: 2px solid #d6d6d6;*/
  /*box-shadow: 0px 0px 5px #888;*/

  margin: 2em 0 1em 0;
  padding: 1em;

  font-size: 1.1em;
  font-weight: 500;
  text-align: center;

  border-radius: 4px;
}

hr.jumbotron-ocram-one-space {
  margin: 0.8em 0;

  border: none;
  height: 2px;
  background-color: #d6d6d6;
}

.jumbotron-image {
  width: 100%;

  display: flex;
}

.text-xl {
  font-size: 1.1em;
  font-weight: 500;
}

/* #Lists */

.list-indent {
  padding-left: 1.7em;
}

.listelement {
  list-style: none;
  padding: 0;
  margin: 0;
}

.listelement li {
  padding-left: 0.7em;
  text-indent: -0.7em;
}

.listelement li:before {
  content: "•";
  padding-right: 0.5em;
}

/* #Project List */
.project-description-sections {
  display: flex;
  flex-direction: column;
}

.project-description-section-entries {
  margin-bottom: 0.35em;

  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.project-description-section-entries div:first-child {
  color: var(--bitrotation-grey);
}

.project-description-section-entries div:nth-child(2) {
  padding: 0 0 0 1em;
}

/* Term -> Description */
/*
      right | default (left aligned)
    --------+-----------------------  
    Telefon: +49 40 23686986
     E-Mail: Info(at)BitRotation.de
*/
.entity-term-description-entries {
  display: table !important;
}

.entity-term-description-entries-rows {
  display: table-row;
}

.entity-term-entries {
  text-align: right;

  display: table-cell;
}

.entity-description-entries {
  padding-left: 0.5em;

  display: table-cell;
}

/* Screenshots */
.screenshot {
  width: 100%;
  height: auto;
}

/* Caption text */
.screenshot-caption {
  font-size: 0.9em;
  margin: 1em 0;
  width: 100%;
  text-align: left;
}

/* The dots/bullets/indicators */
.indicator-panel {
  text-align: center;
}

.indicator {
  cursor: pointer;
  height: 1em;
  width: 1em;
  margin: 0 0.5em;
  border: solid 2px var(--indicator-color);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.indicator-active {
  background-color: var(--indicator-color);
}

/*----------------------------------------
  Slideshow
----------------------------------------*/

.slideshow-relative-wrapper {
  position: relative;

  margin: 0;
  padding: 0;
}

.slideshow-absolute-wrapper {
  position: absolute;
  left: 0;
  top: 0;
}

.slides {
  width: 100%;
  height: auto;

  transition: opacity 1s ease-in-out;
  opacity: 0;
  filter: alpha(opacity=0);
}

.slides h2:first-child {
  margin-top: 0;
}

.slides:first-child {
  margin-top: 1.5em;
}

.slideshow-relative-wrapper .opaque {
  opacity: 1;
  filter: alpha(opacity=1);
}

.slideshow-image {
  width: 100%;
}

/*----------------------------------------
  Card
----------------------------------------*/
.cards {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  /*margin: 3em 0;*/

  display: flex;
  flex-direction: column;
  align-content: space-around;
}

.card {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  background-color: var(--card-background-color);

  border-radius: 4px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.23);

  margin: 2em 2em;
  padding: 0 2em;

  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: 260px;
}

.card-app-icon {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  width: 80px;
  height: 80px;
  margin: 20px 0;
}

.card-app-text {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  margin-top: 1em;

  display: flex;
  flex-direction: column;

  text-align: center;
}

.card-heading {
  font-size: 1.4em;

  margin-top: 0;
  margin-bottom: 0.15em;
}

.card-subheading {
  font-size: 1em;
  font-weight: 300;

  margin-top: 0.15em;
  margin-bottom: 0.5em;

  color: var(--card-subheading-text-color);
}

.card a {
  margin-top: 0.75em;
  margin-bottom: 1.25em;
}

/*----------------------------------------
  Footer
----------------------------------------*/

footer {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  width: 100%;
  padding: 0 1em;

  display: flex;
  justify-content: center;
}

.footer-links a:link {
  text-decoration: none;
  color: var(--primary-text-color);
}

.footer-links a:hover {
  background-color: #797979;
  color: var(--hover-color);

  /*font-weight: bold;*/
}

.footer-links a:visited {
  color: var(--primary-text-color);
}

.footer-links a:visited:hover {
  color: var(--hover-color);
  background-color: #797979;
}

.flex-footer {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  margin-top: 3em;
  padding: 1em 2em 2em 2em;
  color: var(--flex-footer-text-color);
  font-size: 0.75em;
  border-top: 1px solid #797979;

  display: flex;
  flex-direction: column;

  width: 100%;
}

.mandatory-legal-statement-container {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  color: var(--legal-statement-color);
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mandatory-legal-statements {
  display: flex;
  justify-content: center;
}

.copyright {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */
  margin-top: 2em;

  display: flex;
  justify-content: center;
}

/*----------------------------------------
  Misc
----------------------------------------*/

/*.space-right-small {
  padding-right: 2em;
}*/

.correction-necessary {
  text-decoration: line-through;
}

.attention {
  /*color: var(--attention-color);*/
  border: 2px solid var(--attention-color);
  border-radius: 4px;

  margin: 1em 0em;
  padding: 1em;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.attention-sign {
  width: auto;
  height: 3em;
  margin: 0 1em 1em 0;
}

/*----------------------------------------
  Media Queries
----------------------------------------*/

@media (prefers-color-scheme: dark) {
  :root {
    --primary-text-color: #fff;
    --card-background-color: #222;
  }
}

/* ## Mobile Styles */
/*@media screen and (max-width: 400px) {*/
/* 960 / 16 = 60 */
@media screen and (max-width: 600px) {
  /* (max-width: 1024px) */

  .menu {
    width: 100%;

    flex-direction: column;
  }

  .menu-expanded {
    width: 100%;
    flex-direction: column;
  }

  .menu-closed {
    display: none;
  }

  .button {
    margin: 1em 0;
  }

  .home {
    text-align: center;
  }

  .projects {
    text-align: center;
  }

  .contact {
    text-align: center;
  }

  .imprint {
    text-align: center;
  }

  .text-content {
    padding: 0 1em;
  }
}

/* Tablet Styles */
/*@media screen and (min-width: 401px and max-width: 960px) {

}*/

/* Test */
@media only screen and (min-width: 601px) and (max-width: 700px) {
  .menu {
    width: 100%;

    flex-direction: column;
  }

  .menu-expanded {
    width: 100%;
    flex-direction: column;
  }

  .menu-closed {
    display: none;
  }

  .button {
    margin: 1em 0;
  }

  .text-content {
    max-width: 40em;
    padding: 0 1em;
  }
}

/* Test */
@media only screen and (min-width: 701px) and (max-width: 1024px) {
  .logo-and-nav-icon {
    width: auto;

    justify-content: flex-start;
  }

  .menu {
    width: 100%;

    flex-direction: row;
    align-items: center;
  }

  .menu-toggle-on {
    display: none;
  }

  .menu-closed,
  .menu-expanded {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .button {
    font-size: 0.9em;
    margin: 0 1.5em 0 0;
    padding: 0.25em 0.5em;
  }

  .text-content {
    max-width: 40em;
    padding: 0 1em;
  }

  .flex-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .mandatory-legal-statement-container {
    display: flex;
    flex-direction: row;

    justify-content: flex-start;
  }

  .mandatory-legal-statements:not(:last-child) {
    padding-right: 2em;
  }

  .copyright {
    margin-top: 0;
  }
}

/* iPad (portrait) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  .logo-and-nav-icon {
    width: auto;

    justify-content: flex-start;
  }

  .menu {
    width: 100%;

    flex-direction: row;
    align-items: center;
  }

  .menu-toggle-on {
    display: none;
  }

  .menu-closed,
  .menu-expanded {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .button {
    font-size: 0.9em;
    margin: 0 1.5em 0 0;
    padding: 0.25em 0.5em;
  }

  .text-content {
    width: 40em;
    padding: 0 1em;
  }

  .project-description-section-entries {
    margin-bottom: 0.25em;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .project-description-section-entries div:first-child {
    flex: 2 2 4em;
  }

  .project-description-section-entries div:nth-child(2) {
    flex: 2 2 70%;
  }

  .cards {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }

  .flex-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .mandatory-legal-statement-container {
    display: flex;
    flex-direction: row;

    justify-content: flex-start;
  }

  .mandatory-legal-statements:not(:last-child) {
    padding-right: 2em;
  }

  .copyright {
    margin-top: 0;
  }

  .attention {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }
}

/* iPads (landscape) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  .logo-and-nav-icon {
    padding-left: 0;
    width: auto;
  }

  .menu {
    width: 900px;

    flex-direction: row;
  }

  .menu-toggle-on {
    display: none;
  }

  .menu-closed,
  .menu-expanded {
    display: flex;
    flex-direction: row;
  }

  .button {
    font-size: 0.9em;
    margin: 0 0 0 1em;
    padding: 0.25em 0.5em;
  }

  .text-content {
    width: 40em;
    padding: 0 1em;
  }

  .project-description-section-entries {
    margin-bottom: 0.25em;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .project-description-section-entries div:first-child {
    flex: 2 2 4em;
  }

  .project-description-section-entries div:nth-child(2) {
    flex: 2 2 70%;
  }

  .cards {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }

  .flex-footer {
    width: 900px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .mandatory-legal-statement-container {
    display: flex;
    flex-direction: row;

    justify-content: flex-start;
  }

  .mandatory-legal-statements:not(:last-child) {
    padding-right: 2em;
  }

  .copyright {
    margin-top: 0;
  }

  .attention {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Desktop Styles */
@media screen and (min-width: 1025px) {
  .logo-and-nav-icon {
    padding-left: 0;
    width: auto;
  }

  .menu {
    width: 900px;

    flex-direction: row;
  }

  .menu-toggle-on {
    display: none;
  }

  .menu-closed,
  .menu-expanded {
    display: flex;
    flex-direction: row;
  }

  .button {
    font-size: 0.9em;
    margin: 1.5em 0 1.5em 1em;
    padding: 0.25em 0.5em;
  }

  .text-content {
    width: 40em;
    padding: 0 1em;
  }

  .project-description-section-entries {
    margin-bottom: 0.25em;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .project-description-section-entries div:first-child {
    flex: 2 2 4em;
  }

  .project-description-section-entries div:nth-child(2) {
    flex: 2 2 70%;
  }

  .cards {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }

  .flex-footer {
    width: 900px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .mandatory-legal-statement-container {
    display: flex;
    flex-direction: row;

    justify-content: flex-start;
  }

  .mandatory-legal-statements:not(:last-child) {
    padding-right: 2em;
  }

  .copyright {
    margin-top: 0;
  }

  /* Die Behandlung des hover-Zustandes führt auf dem iPhone und iPad zum Problem:
      der (per Touch-Auswahl manuell herbeigeführte) 'selektierte' Zustand bleibt dann
      bei dem ausgewählten Indikator/Punkt bestehen und es sind dann, sobald die Dia Show
      automatisch weitergeht, zwei Indikatoren/Punkte farbig markiert ...
      
      Durch diesen Media Query sollten iPhone und iPad ausgeschlossen sein ...
    */
  span.indicator:hover {
    background-color: var(--indicator-color);
  }

  .attention {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Textbox */

.text-box {
  border-width: 1px;
  border-style: solid;

  padding: 1.5em;
  margin: 4em 0 0 0;

  font-size: 0.9em;
}

/*----------------------------------------
  Trademarks
----------------------------------------*/

.text-box-markenzeichen {
  border-color: #797979;
}

.markenzeichen-heading {
  color: rgb(146, 147, 149);
  font-weight: bold;
  margin-bottom: 1em;
}

/* # Press Kit */
a.internal-download-link {
  color: var(--internal-link-color);
}

a.internal-download-link:hover {
  color: var(--internal-link-hover-color);
}

a.internal-link,
a.internal-link:visited {
  color: var(--bitrotation-light-blue);
}

a.internal-link:hover,
a.internal-link:visited:hover {
  color: var(--bitrotation-light-green);
}

a.external-link,
a.external-link:visited {
  color: var(--external-link-color);
}

a.external-link:hover,
.external-link:visited:hover {
  color: var(--external-link-hover-color);
}
