html {
  margin-left: calc(100vw - 100%);
}

* {
  box-sizing: border-box;
}

body {
  background-color: #909090;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: black;
  margin: 0;
}

#wrapper {
  /* border: solid 2px black; */
  background-color: #c5e2ff;
  max-width: 850px;
  width: 100%;
  margin: auto;
  /* margin-top: 25px; */
  min-height: 500px;
  color: #FFFFFF;
  background-image: none;
  color: #000000;
  min-height: 100vh;
  box-shadow: 0 0 5px;
  position: relative;
}

header {
  font-family: Verdana, sans-serif;
  /* font-size: 44px; */
  text-align: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: bold;
  max-height: 150px;
  font-variant: small-caps;
  color: #FFE949;
}

header img {
  max-width: 100%;
  object-fit: scale-down;
  max-height: 150px;
}

a:active,
a:link,
a:visited {
  color: #165696;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  color: #6699CC;
}

nav {
  background-color: #6699CC;
  font-variant: small-caps;
  font-size: 20px;
  margin: 0;
}

nav ul {
  margin: 0 auto;
  padding: 0;
  display: flex;
  list-style-type: none;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: calc(300px + 2rem);
  justify-content: space-between;
  padding-inline-start: 0;
}

nav ul li {
  border-color: #000000;
  display: block;
  border-width: 1px;
  border-style: solid;
  text-align: center;
  background-color: #FFFFFF;
  font-weight: bold;
  /* max-width: 150px; */
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  flex: 1;
}

nav a:active,
nav a:link,
nav a:visited {
  color: #000000;
  text-decoration: none;
  display: block;
}

nav a:hover {
  text-decoration: none;
  color: #ffffff;
  background-color: #2b59c3;
}

main {
  display: block;
  padding: 1rem;
  text-align: justify;
}

h2 {
  letter-spacing: 0.025em;
  font-weight: bold;
  margin: 0.5rem 1rem 0.25rem;
  text-align: center;
}

h3 {
  font-variant: small-caps;
}

h4 {
  font-variant: small-caps;
  font-size: 14px;
}

p {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.5em;
}

.firmen {
  border: none;
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
  margin-top: 2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: minmax(120px, auto);
  gap: 0.5rem;
}

.firmen-item {
  text-align: center;
  background-color: #ffffffc7;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 0 4px -2px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
}

.firmen-item-head {
  border-color: #000000;
  border-width: 1px;
  text-align: center;
  display: flex;
  flex-direction: column;
  margin: 0;
  flex: 1;
  padding: 0.75rem 1rem;
}

.firmen-item-head h3 {
  border-color: #000000;
  border-width: 1px;
  text-align: center;
  font-weight: bold;
  margin: 0;
  font-variant: normal;
  font-size: 1.175rem;
}

.firmen-item-head em {
  margin-top: 0.25rem;
  color: #4a627e;
  font-style: normal;
  font-size: 0.725rem;
}

.firmen-item-body {
  margin: 0.25rem;
  flex: 1;
  background: #fbfbfb;
  box-shadow: 0 0 4px -3px black;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.firmen-item-body p {
  margin: 0.0rem;
  padding: 0 0.25rem;
}

.firmen a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
}

.firmen a:hover {
  background: cornflowerblue;
  color: white;
}

.firmen a:hover .firmen-item-head {
  color: white;
  background: #2d74d6;
}

.firmen a:hover .firmen-item-head em {
  color: black;
}

.firmen a:hover .firmen-item-body {
  background: #165696;
}

.defunct {
  background-color: #999 !important;
}

.defunct h3 {
  background-color: #0002 !important;
}

.defunct p {
  color: #4e4e4e;
}

footer {
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  padding: 0.25rem;
  font-size: 0.8rem;
  border-width: 1px;
  border-color: #000000;
  border-style: solid;
  /* margin: -2px */
  border-right: none;
  border-left: none;
  position: absolute;
  bottom: 0;
  width: 100%;
}

footer a:active,
footer a:link,
footer a:visited {
  color: #165696;
  text-decoration: none;
}

footer a:hover {
  text-decoration: none;
  color: #6699CC;
}
