:root {
  --c-primary: #cc0000;
  --c-darkest: #260101;
  --c-dark: #757272;
  --c-medium: #969393;
  --c-light: #c4c0c0;
  --c-lighter: #e6e3e3;
  --c-lightest: #f2f0f0;
  --c-white: #fff;
  --c-error: #d0021b;
  --c-warning: #ff4401;
  --c-success: #31bf49;
  --c-error-light: #fde7e7; 
  --c-warning-light: #fef7f0;
  --c-success-light: #caedd1;
  --logo-path: url("./so-logo-text.svg");
  --logo-height: 36px;
  --logo-margin-left: 0px;
}

@font-face {
  font-family : Roboto;
  font-style  : normal;
  font-weight : 300;
  src         : local("Roboto Light"),
                local("Roboto-Light"),
                url(./fonts/roboto-v18-latin-300.woff2) format("woff2"),
                url(./fonts/roboto-v18-latin-300.woff) format("woff");
}

@font-face {
  font-family : Roboto;
  font-style  : normal;
  font-weight : 400;
  src         : local("Roboto"),
                local("Roboto-Regular"),
                url(./fonts/roboto-v18-latin-regular.woff2) format("woff2"),
                url(./fonts/roboto-v18-latin-regular.woff) format("woff");
}

@font-face {
  font-family : Roboto;
  font-style  : normal;
  font-weight : 500;
  src         : local("Roboto Medium"),
                local("Roboto-Medium"),
                url(./fonts/roboto-v18-latin-500.woff2) format("woff2"),
                url(./fonts/roboto-v18-latin-500.woff) format("woff");
}

@font-face {
  font-family : Roboto;
  font-style  : normal;
  font-weight : 700;
  src         : local("Roboto Bold"),
                local("Roboto-Bold"),
                url(./fonts/roboto-v18-latin-700.woff2) format("woff2"),
                url(./fonts/roboto-v18-latin-700.woff) format("woff");
}

@font-face {
  font-family : Roboto;
  font-style  : normal;
  font-weight : 900;
  src         : local("Roboto Bold"),
                local("Roboto-Bold"),
                url(./fonts/roboto-v18-latin-700.woff2) format("woff2"),
                url(./fonts/roboto-v18-latin-700.woff) format("woff");
}

h1, h2, h3, h4, h5, h6, body, p, figure {
  margin: 0;
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

body {
  border-top: 4px solid var(--c-primary);
  box-sizing: border-box;
  /* min-height: calc(100vh - 4px); */
  font-size: 1rem;
  font-family: Roboto,sans-serif;
  color: var(--c-darkest);
}

header, main, footer {
  max-width: 480px;
  margin: 0 24px 0 24px;
}

footer {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: .625em;
  color: var(--c-dark);
}

/* Grid Layout */

.grid-container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
}

.grid-header {
  grid-row-start: 1;
  grid-row-end: 2;
  -ms-grid-row: 1;
}

.grid-content {
  grid-row-start: 2;
  grid-row-end: 3;
  -ms-grid-row: 2;
}

.grid-footer {
  grid-row-start: 3;
  grid-row-end: 4;
  -ms-grid-row: 3;
}

a, a:visited {
  color: var(--c-darkest);
}

.logo {
  /* margin-top: 52px; */
  margin-left: var(--logo-margin-left);
  height: var(--logo-height);
  background-image: var(--logo-path);
  background-size: contain;
  background-repeat: no-repeat;
}

/* Text sizes */

.t-small {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.42857;
}

.t-medium {
  font-weight: 500;
}

.t-bold {
  font-weight: 900;
}

.t-title {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 2rem;
}

.t-subtitle {
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.36364;
}

.t-subtitle2 {
  font-weight: 300;
  font-size: 1.375rem;
  line-height: 1.36364;
}

.t-paragraph {
    margin: 0;
    font-size: 1rem;
    font-family: Roboto,sans-serif;
    line-height: 1.5;
    font-weight: 400;
}

:focus {
  outline: 2px solid var(--c-darkest);
}

.wordwrap {  
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* formelements */

body, button, input, textarea, select, table {
    font-size: 1rem;
    font-family: Roboto,sans-serif;
    line-height: 1.5;
    font-weight: 400;
}

.button {
  vertical-align: middle;
  padding            : 4px 6px;
  color              : inherit;
  opacity            : 1;
  border             : none;
  border-radius      : 2px;
  background-color   : transparent;
  vertical-align     : middle;
  -webkit-transition : opacity .2s,
                       -webkit-box-shadow .2s;
  transition         : box-shadow .2s,
                       opacity .2s,
                       -webkit-box-shadow .2s;
  transition         : opacity .2s,
                       -webkit-box-shadow .2s;
  transition         : box-shadow .2s,
                       opacity .2s;
  cursor             : pointer;
}

.button {
  display : -webkit-inline-box;
  display : -ms-inline-flexbox;
  display : inline-flex;
}

.button:focus {
  outline : 0;
}

.button:not(:active):not(:hover):focus {
  -webkit-box-shadow : 0 0 0 1px var(--c-darkest)
 inset,
                       0 0 0 2px hsla(0,0%,100%,.6) inset,
                       0 0 0 1px var(--c-darkest)
;
  box-shadow         : inset 0 0 0 1px var(--c-darkest)
,
                       inset 0 0 0 2px hsla(0,0%,100%,.6),
                       0 0 0 1px var(--c-darkest)
;
}

.button:active>* {
  -webkit-transform : translateY(.8px);
  transform         : translateY(.8px);
}

.button:hover .text-underline {
  border-color                : var(--c-darkest)
;
  -webkit-transition-duration : .2s;
  transition-duration         : .2s;
}

.main-button {
  padding : 11px 20px;
  border  : 1px solid var(--c-darkest)
;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--c-white);
  background-color: var(--c-darkest)
;
}

.main-button svg:first-child {
  margin-left : -6px;
}

.main-button:hover {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-box-shadow: 0 0 24px -5px rgba(38, 1, 6, 0.18);
    box-shadow: 0 0 24px -5px rgba(38, 1, 6, 0.18);
    opacity: 0.9;
}

.input {
  width: 100%;
  height: 48px;
  color: currentColor;
  font-size: inherit;
  border: 1px solid var(--c-light);
  border-radius: 2px;
  background: var(--c-white);
  line-height: normal;
  padding: 0 0 0 12px;
  margin-top: 4px;
}

.error > * > .input {
  padding-right: 32px;
  outline: 2px solid var(--c-error);
}

.l-pos-r {
  position: relative;
  display: flex;
}

.inside-children {
  display: none;
}

.error > * > .inside-children {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  color: var(--c-error);
}

.l-mr-xx-small {
  margin-right: 8px !important;
}

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  fill: currentColor;
  vertical-align: middle;
  font-style: normal;
}

.icon-small {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
}

.errorMessage {
  color: var(--c-error);
  padding: 4px;
}

.errorbox {
  display: flex;
  flex-direction: row;
  background-color: var(--c-error-light);
  color: var(--c-darkest);
  margin: 16px 0;
  padding: 16px;
  border-radius: 4px;
}

.errorIcon {
  color: var(--c-error);
  margin-right: 16px;
}

.hide {
  display: none;
}

/* spacings */

.l-m-025 {
  margin: 8px;
}

.l-m-05 {
  margin: 16px;
}

.l-m-1 {
  margin: 24px;
}

.l-m-2 {
  margin: 32px;
}

.l-m-3 {
  margin: 48px;
}

.l-m-4 {
  margin: 64px;
}

.l-mt-025 {
  margin-top: 8px;
}

.l-mt-05 {
  margin-top: 16px;
}

.l-mt-1 {
  margin-top: 24px;
}

.l-mt-2 {
  margin-top: 32px;
}

.l-mt-3 {
  margin-top: 48px;
}

.l-mt-4 {
  margin-top: 64px;
}

.l-mr-025 {
  margin-right: 8px;
}

.l-mr-05 {
  margin-right: 16px;
}

.l-mr-1 {
  margin-right: 24px;
}

.l-mr-2 {
  margin-right: 32px;
}

.l-mr-3 {
  margin-right: 48px;
}

.l-mr-4 {
  margin-right: 64px;
}

.l-mb-025 {
  margin-bottom: 8px;
}

.l-mb-05 {
  margin-bottom: 16px;
}

.l-mb-1 {
  margin-bottom: 24px;
}

.l-mb-2 {
  margin-bottom: 32px;
}

.l-mb-3 {
  margin-bottom: 48px;
}

.l-mb-4 {
  margin-bottom: 64px;
}

.l-ml-025 {
  margin-left: 8px;
}

.l-ml-05 {
  margin-left: 16px;
}

.l-ml-1 {
  margin-left: 24px;
}

.l-ml-2 {
  margin-left: 32px;
}

.l-ml-3 {
  margin-left: 48px;
}

.l-ml-4 {
  margin-left: 64px;
}

@media (min-width: 480px) {
  header, main, footer {
    margin-left: auto;
    margin-right: auto;
    min-width: 480px;
  }
}