
/* ==================== style/vars.css ==================== */


:root {
  --bgcolor-html:     white;
  --bgcolor-body:     rgb(246, 246, 246);
  --color-primary:    rgb(153, 51, 51);
  --color-primary-50: rgb(204,153,153);
  --color-secondary:  black;
  --color-text:       rgb(100, 100, 100);

  --page-padding:      24px; /* linker und rechter Seitenrand */
  --main-width:       744px; /* Breite des Satzspiegels */
  --margin-bottom:      1em; /* Standard-Durchschuss zwischen Absätzen */
}


@media screen and (prefers-color-scheme: dark) {
  :root {
    --bgcolor-html:     rgb(51,51,51);
    --bgcolor-body:     black;
    --color-primary:    rgb(204,153,153);
    --color-primary-50: rgb(204,153,153); /* vorher rgba(153, 51, 51, 0.8); */
    --color-secondary:  white;
    --color-text:       white;
  }
}

/* ==================== style/fonts.css ==================== */


@font-face {
  font-family: 'IBM Plex Mono';
  src: local(''), 
       url('Fonts/ibm-plex-mono-regular.woff2') format('woff2'), 
       url('Fonts/ibm-plex-mono-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: local(''), 
       url('Fonts/ibm-plex-mono-italic.woff2') format('woff2'), 
       url('Fonts/ibm-plex-mono-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: local(''), 
       url('Fonts/ibm-plex-mono-600.woff2') format('woff2'), 
       url('Fonts/ibm-plex-mono-600.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* ==================== style/normalize.css ==================== */


/* Auszüge aus: https://github.com/necolas/normalize.css/blob/master/normalize.css */

html {
  -webkit-text-size-adjust: none; /* nur iPhone */
  text-size-adjust: none;
  font-variant-ligatures: no-common-ligatures;
}

figure {
  margin: 0;
}

article,
aside,
details,
figcaption,
figure, /* Safari iPhone 3, MSIE 8 */
footer,
header,
main, /* wichtig für MSIE bis 11, Android bis 4.3, Opera 12 */
nav,
section {
  display: block;
}

summary {
  display: list-item;
}

a:active {
  outline: 0;
}

b, strong {
  font-weight: 600;
}

small {
  font-size: 82%;
}
small small {
  font-size: 1em;
}

sub,
sup {
  font-size: 82%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.34em;
}
sub {
  bottom: -0.25em;
}

img {
  border: 0;
}

button,
input,
optgroup,
select,
textarea {
  font-size: inherit;
  margin: 0; /* Firefox 4+, Safari, and Chrome */
}

button::-moz-focus-inner, /* Remove inner padding and border in Firefox 4+ */
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}


/* ==================== style/html-body.css ==================== */


html {
	font-size: 100%; /* damit man die Einheit "rem" verwenden kann */
}

body {
  font-family: 'IBM Plex Mono', monospace;
	font-size: 112.5%;
	line-height: 1.5;
  font-weight: normal;
	margin: 0;
}

@media screen {
	html {
		overflow-y: scroll;
    background-color: var(--bgcolor-html);
	}

	body {
		color: var(--color-text);
    background-color: var(--bgcolor-body);
    max-width: var(--main-width);
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
    margin: 0 auto;
	}
}



/* ==================== style/header.css ==================== */


header {
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary);
  padding-bottom: 1.6rem;
  border-bottom: 3px solid var(--color-primary);
  margin-bottom: 1.9rem;
}

@media screen {
  header {
    font-size: 190%;
    padding-top: 2.9rem;
  }
}

@media print {
  header {
    font-size: 170%;
  }
}

/* ==================== style/main/main.css ==================== */


main {
  padding-bottom: 2.2em;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  -moz-hyphenate-limit-chars: 6 3 3;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
  -ms-hyphenate-limit-chars: 6 3 3;
  hyphenate-limit-chars: 6 3 3;
}

main > * {
  margin-top: 0;
  margin-bottom: var(--margin-bottom);
}

main > *:last-child {
  margin-bottom: 0;
}


.nowrap {
  white-space: nowrap;
}

@media screen {
  .printonly {
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    line-height: 2 !important;
    position: absolute !important;
  }
}

@media print {
  .noprint {
    display: none !important;
  }
}

/* ==================== style/main/h1-h6.css ==================== */


h1 {
  color: rgb(128,128,128);
  font-size: 160%;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5em;
}

h1.fließtext {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
}

h1.fließtext + p {
  display: inline;
  margin: 0;
}


h2 {
  color: var(--color-secondary);
  font-size: 130%;
  font-weight: 600;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

h3 {
  color: var(--color-secondary);
  font-size: 100%;
  font-weight: 600;
  margin-top: 0.5em;
  margin-bottom: 0;
}

h4, h5, h6 {
  color: var(--color-secondary);
  font-size: 100%;
  font-weight: 600;
  margin-top: 0.5em;
  margin-bottom: 0;
}

/* ==================== style/main/a.css ==================== */


main a {
  color: var(--color-primary);
  text-decoration: none;
}

main a:visited {
  color: var(--color-primary);
}

@media (hover: hover) {
  main a:hover {
    color: inherit;
  }

  main a:active {
    color: var(--color-primary);
  }

  main a:focus {
    color: inherit;
  }
}


@media print {
  main a,
  main a:visited,
  main a:hover,
  main a:active {
    color: black;
    text-decoration: underline;
  }

  main a[href^="http"]:after { content: " <"attr(href)">"; }
  main .notprinturl a[href^="http"]:after,
  main a[href^="http"].notprinturl:after { content: ""; }
}


/* ==================== style/main/table.css ==================== */


main table {
  border-collapse: collapse;
  width: 100%;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 1em;
}

main table th,
main table td {
  vertical-align: top;
}

main table th {
  font-weight: 600;
  color: var(--color-secondary);
  width: 50%;
  padding: 10px 0;
  border-bottom: 2px solid var(--color-primary);
}

main table td {
  padding: 9px 0;
  border-bottom: 1px dashed var(--color-primary);
  text-align: center;
  white-space: nowrap;
}


/* ==================== style/main/ul-li.css ==================== */


main > ul {
  list-style-type: none;
  padding: 0;
}


main > ul:not([class]) > li {
  padding-left: 22px;
  position: relative;
}


main > ul:not([class]) > li:after {
	content: '';
	display: inline-block;
	width: 0;
	height: 10px;
  border-right: 10px solid var(--color-primary-50);
  position: absolute;
  top: 0.5em;
  left: 0;
}


/* ==================== style/main/hr.css ==================== */


main hr {
  height: 0;
  padding: 0;
  border: none;
  border-top: 1.5px solid var(--color-primary-50);
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}


/* ==================== style/footer.css ==================== */


footer {
  border-top: 3px solid var(--color-primary);
  padding-top: 1.7rem;
}

@media screen {
  footer {
    padding-bottom: 9rem;
  }
}


footer a {
  color: var(--color-primary);
  text-decoration: none;
}
footer a:visited {
  color: var(--color-primary);
}

@media (hover: hover) {
  footer a:hover {
    color: inherit;
  }
  footer a:active {
    color: var(--color-primary);
  }
  footer a:focus {
    color: inherit;
  }
}


/* ---------------------- Counter ------------------------ */

footer {
  background-image: url('../counter/count.php');
  background-repeat: no-repeat;
}
