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: #1169b1;
  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: "Arial Black", sans-serif;
  /* font-size: 44px; */
  text-align: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: bold;
  color: #FF7F30;
  line-height: 1;
}

header h1 {
  font-size: 6em;
  margin: 0;
  text-shadow: 2px 2px 0 black, -2px 2px 0 black, 2px -2px 0 black, -2px -2px 0 black, 2px 0 1px black, 0 2px 1px black, -2px 0 1px black, 0 -2px 1px black, 2px 5px 15px black;
}

header em {
  font-style: normal;
  display: block;
  font-size: 1.66em;
  text-shadow: 1px 0 1px black, 0 1px 1px black, -1px 0 1px black, 0 -1px 1px black, 1px 1px 1px black, -1px 1px 1px black, 1px -1px 1px black, -1px -1px 1px black, 2px 5px 15px black;
}

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

@media all and (max-width: 480px) {
  header {
    font-size: 0.8em;
  }
}

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

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

header a:active,
header a:link,
header a:visited {
  color: #FF7F30;
}

header a:hover {
  text-decoration: none;
  color: inherit;
}

nav {
  background-color: #FF7F30;
  margin: 0;
  padding: 0.25rem;
  font-size: 1.25em;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

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;
  border-radius: 5px;
  overflow: hidden;
}

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

nav a:hover {
  text-decoration: none;
  color: #ffffff;
  background-color: #1169b1;
}

main {
  display: block;
  padding: 1rem;
  text-align: justify;
  margin: 0 auto;
  max-width: 1440px;
}

@media all and (min-width: 600px) {
  main {
    padding: 2em;
  }
}

h2 {
  letter-spacing: 0.025em;
  font-weight: bold;
  margin: 0.5rem auto 0.25rem;
  padding: 0.25em;
  text-align: center;
  background: #0b518b;
  color: white;
  font-size: 1.75em;
  text-shadow: 1px 1px black;
  max-width: 840px;
}

@media all and (max-width: 480px) {
  h2 {
    font-size: 1.25em;
  }
}

h3 {
  font-variant: small-caps;
}

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

p {
  margin: 0.5rem auto 1.5rem;
  line-height: 1.5em;
  color: #d9d9d9;
  max-width: 840px;
}

.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;
}

@media all and (min-width: 600px) {
  .firmen {
    gap: 1rem;
  }
}

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

.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;
  color: #004681;
}

.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;
  color: #0c518b;
}

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

.firmen a:hover {
  background: #FF7F30;
  color: white;
}

.firmen a:hover .firmen-item-head {
  color: #1e4260;
  background: #FF7F30;
}

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

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

.firmen a:hover .firmen-item-body p {
  color: #4e1f01;
}

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

.defunct p {
  color: #6e6e6e;
}

.defunct .firmen-item-body {
  background-color: #a3a3a3;
}

.defunct .firmen-item-body p {
  color: #4e1f01;
}

.defunct a {
  color: #817e7e !important;
}

.defunct a:hover {
  background-color: #6e6e6e !important;
}

.defunct a:hover .firmen-item-head,
.defunct a:hover .firmen-item-head em {
  color: #817e7e !important;
  background-color: #6e6e6e !important;
}

.defunct a:hover .firmen-item-body {
  background-color: #817e7e;
}

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

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

footer a:hover {
  text-decoration: none;
  color: #229EFF;
}
