/* VARIABLES */
:root {
  --color-hertha-white: #fff;
  --color-hertha-heather: #b7c2cc;
  --color-hertha-geyser: #dbe1e6;
  --color-hertha-steel: #6c8399;
  --color-hertha-blue: #0d59a0;
  --color-hertha-digitalblue: #0d59a1;
  --color-hertha-darkblue: #003974;
  --color-hertha-midnight: #02080d;
  --color-hertha-cyan: #73e8ff;
  --color-hertha-red: #e50245;

  --base-font-size: 16px;
  --font-default: "Hertha", sans-serif;
  --font-headline: "Hertha-Black", sans-serif;

  --default-hertha-tilt: -15deg;

  --default-transition-time: 0.3s;

  --pf-global--BoxShadow--lg: 0 0 4px 0 rgba(0,0,0,.4);
}

/* GENERIC */
html {
  font-family: var(--font-default);
  font-size: var(--base-font-size);
}

body {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url("./../img/bg-img@2x.png");
  /* image-set for FF, only png gets downloaded for not supporting browsers */
  background-image: -webkit-image-set(url("./../img/bg-img@2x.webp") 1x);
  background-color: var(--color-hertha-digitalblue);
  font-size: 1rem;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
}

div.hertha-logoWrapper {
  background-image: url(../img/hertha-logo.png);
  background-size: 130px 130px;
  background-position: center center;
  background-repeat: no-repeat;
  height: 130px;
  width: 130px;
  margin: 0 auto;
  margin-top: 10vh;
  position: relative;
  z-index: 2000;
}

div.hertha-logoWrapper-subcribe {
  background-image: url(../img/hertha-logo.png);
  background-size: 130px 130px;
  background-position: center center;
  background-repeat: no-repeat;
  height: 130px;
  width: 130px;
  margin: 0 auto;
  position: relative;
  z-index: 2000;
  margin-top: 10vh;
}

.hertha-newsletter-form {
  background-color: var(--color-hertha-white);
  margin: 5% auto 0;
  max-width: 500px;
  padding: 2rem;
  height: auto;
  box-sizing: border-box;
}

.hertha-newsletter-form form {
    margin-bottom: 16px;
}

.hertha-newsletter-form:not(.success-page) {
  margin-bottom: 20%;
}

.hertha-newsletter-form ~ .hertha-footer {
  position: absolute;
  bottom: initial;
}

.hertha-newsletter-form.success-page {
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
  position: relative;
  height: 70vh;
  margin-top: 0;
}

.hertha-gradient {
  position: absolute;
  height: 100vh;
  opacity: 0.5;
  background-image: linear-gradient(
      to bottom,
      var(--color-hertha-digitalblue) 33%,
      var(--color-hertha-white)
    ),
    linear-gradient(
      to bottom,
      var(--color-hertha-digitalblue),
      var(--color-hertha-white)
    );
}

.hertha-newsletter-form.success-page .button {
  min-width: 8rem;
}

.hertha-newsletter-form .formGroup:nth-of-type(2) {
  margin-bottom: 3.5rem;
}

.hertha-newsletter-form .formGroup:nth-of-type(3),
.hertha-newsletter-form .formGroup:nth-of-type(4) {
  margin-bottom: 10px;
}

.hertha-newsletter-form .formGroup:nth-of-type(4) {
  margin-bottom: 25px;
}

.hertha-newsletter-title {
  color: var(--color-hertha-digitalblue);
  font-family: "Hertha", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.17;
  text-align: left;
  margin-bottom: 25px;
}

.formGroup {
  margin-bottom: 3rem;
}

/* SUCCESS CONFIRMATION */
.hertha-newsletter-success-message {
  color: var(--color-hertha-white);
  font-family: var(--font-headline);
  font-size: 6rem;
  font-weight: 900;
  font-stretch: normal;
  font-style: italic;
  line-height: 0.8;
  letter-spacing: normal;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 0;
}

.hertha-newsletter-form.success-page p {
  color: var(--color-hertha-white);
}

.hertha-newsletter-form.success-page p:nth-of-type(1) {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
}

.hertha-newsletter-form.success-page p:nth-of-type(2) {
  margin-bottom: 2rem;
}

.hertha-newsletter-form.success-page .support-buttons {
  margin-left: 3rem;
}

.support-buttons {
  display: flex;
  justify-content: space-around;
}

/* FOOTER */
.hertha-footer {
  background-color: var(--color-hertha-digitalblue);
  color: var(--color-hertha-white);
  display: flex;
  flex-direction: row;
  height: 9rem;
  width: 100%;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  bottom: 0;
}

.hertha-social-media-bar,
.hertha-footer-links {
  color: var(--color-hertha-white);
  display: flex;
  flex-direction: row;
}

.hertha-footer-link-list {
  display: flex;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.hertha-footer-link-list-item {
  margin-right: 0.5rem;
}

.hertha-footer-logos {
  display: flex;
}

.input[type="checkbox"][aria-invalid="true"]:not(:checked) {
  outline: 3px solid var(--color-hertha-red);
}

.inputErrorMessageClass {
  color: var(--color-hertha-red);
  margin: 0.5rem 0;
  display: inline-block;
}

.inputErrorMessageClass:nth-of-type(3),
.inputErrorMessageClass:nth-of-type(4) {
  margin-left: 3rem;
  margin-right: 3rem;
}

.hertha-footer-copyright {
  margin-top: 12px;
}

.hertha-bundesliga {
  margin-right: 1rem;
}

.hertha-social-item {
    margin-bottom: 10px;
}

.hertha-social-item a {
  color: var(--color-hertha-cyan);
  height: 2.5rem;
  margin-right: 1rem;
  transition: color var(--default-transition-time) ease-out;
  width: 2.5rem;
}

.hertha-social-item a:hover {
  color: var(--color-hertha-white);
}

.hertha-social-item a svg {
  height: 2.5rem;
  width: 2.5rem;
}

.hertha-footer-link {
  color: var(--color-hertha-white);
  text-decoration: none;
  transition: color var(--default-transition-time) ease-out;
}

.hertha-footer-link:hover {
  color: var(--color-hertha-cyan);
}

.hahohe {
  color: var(--color-hertha-cyan);
  cursor: default;
  display: inline-flex;
  font-family: var(--font-headline);
  font-size: 3.5rem;
  font-style: italic;
  line-height: 0.7;
  margin: 0;
}

.hertha-bundesliga {
  color: var(--color-hertha-white);
  height: 3.5rem;
  width: 3.5rem;
  transition: color var(--default-transition-time) ease-out;
}

.hertha-bundesliga:hover {
  color: var(--color-hertha-cyan);
}

.formButtons {
  margin-bottom: 20px;
}

.modalWrapper {
  box-sizing: border-box;
}

.modalWrapper p {
  margin: 10px 0;
}

.modalWrapper .modalText {
    margin-bottom: 40px;
}

.modalWrapper div {
  display: flex;
  align-items: center;
}

#modal-info {
    background: #0050a5e0;
    position: absolute;
    bottom: 0;
    left: 0;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    z-index: 4000;
    padding: 40px;
}

#modal-info p {
    color: #fff;
}

.modal-info-btn {
    border: none;
    text-decoration: underline;
    background: none;
    cursor: pointer;
}

.modal-info-btn::after {
    content: url("../img/info.svg");
    content: -webkit-image-set(url("../img/info.svg") 1x);
    width: 20px;
    height: 20px;
    pointer-events: none;
  }

#modal-info .modal-close-btn {
    background: white;
    border-radius: 3px;
    padding: 5px;
}

#modal-info .modal-close-btn img{
    width: 15px;
}

#modal-info a{
    color: white;
    text-decoration: underline;
}

.toggleBtn {
  border: none;
  background: none;
  cursor: pointer;
  width: max-content;
  padding: 0;
  color: #0088ce;
  text-decoration: none;
  font-size: 16px;
  font-family: var(--font-default);
}

.hertha-login-button .btn-text {
    pointer-events: none;
}

.toggleBtn:hover {
    text-decoration: underline;
}

a {
    color: #0088ce;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.modalWrapper Button.pf-c-button.hertha-accept-button {
  margin-top: 10px;
  width: 50%;
}

#modal {
  display: none;
  position: absolute;
  top: 300px;
  left: 50%;
  right: 200px;
  transform: translateX(-50%);
  background: var(--color-hertha-white);
  border: 1px solid #004fa5;
  padding: 40px;
  z-index: 10000;
  box-shadow: var(--pf-global--BoxShadow--lg);
  width: 600px;
}

.modal-close-btn {
  border: none;
  width: auto;
  text-decoration: underline;
  background: none;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.modal-close-btn::after{
  content: url("../img/plus.svg");
  content: -webkit-image-set(url("../img/plus.svg") 1x);
}

@media (max-width: 640px) {
  .hertha-newsletter-form.success-page {
    text-align: center;
    height: 80vh;
  }

  .hertha-newsletter-form.success-page .support-buttons {
    flex-direction: column;
  }

  .hertha-newsletter-form.success-page .button {
    margin-bottom: 20px;
  }

  h1.hertha-newsletter-success-message {
    font-size: 3rem;
  }

  .hertha-newsletter-form.success-page .support-buttons {
    margin-left: 2rem;
  }
}

@media (max-width: 786px) {
  footer.hertha-footer {
    justify-content: initial;
    position: initial;
    height: 15rem;
  }

  .hertha-newsletter-form:not(.success-page) ~ footer.hertha-footer {
    margin-top: 0;
  }

  .hertha-newsletter-form:not(.success-page) ~ header {
    height: 4vh;
  }

  div.hertha-logoWrapper-subcribe {
    margin-top: 2vh;
  }

  .hertha-footer-right {
    padding: 10px 30px 20px;
    align-items: center;
    justify-content: center;
  }

  .hertha-footer-left {
    padding: 0 30px;
  }

  .hertha-newsletter-form:not(.success-page) {
    margin-top: 25%;
  }

  div.hertha-logoWrapper-subcribe,
  div.hertha-logoWrapper {
    background-size: 70px;
  }

  header {
    height: 8vh;
  }

  #modal {
    max-width: 75vw;
  }

  .modalWrapper Button.pf-c-button.hertha-accept-button {
    width: 100%;
  }
}

@media (max-width: 387px) {
  .hertha-footer-right,
  .hertha-footer-left {
    padding: 0 10px;
  }

  h3.hahohe {
    font-size: 2.5rem;
  }

  .hertha-social-media-bar li.hertha-footer-link-list-item {
    margin-right: 0;
  }

  #modal {
    padding: 25px;
  }
  .modalWrapper Button.pf-c-button.hertha-accept-button {
    width: 100%;
  }
}

@media (min-width: 776px) {
  .hertha-msg {
    width: max-content;
  }
}

@media (max-height: 750px) and (max-width: 600px) {
  div.hertha-logoWrapper {
    margin-top: 0;
  }
}

@media (min-width: 1000px) and (max-width: 1500px) {
  .hertha-newsletter-form:not(.success-page) {
    margin-top: 10%;
  }

  .div.hertha-logoWrapper {
    margin-top: 5vh;
  }
}

@media (max-width: 776px) and (max-height: 650px) {
  div.hertha-newsletter-form.success-page {
    margin-top: 10%;
    margin-bottom: 200px;
  }
}

@media (max-width: 1750px) and (min-width: 1450px) {
  div.hertha-logoWrapper-subcribe {
    margin-top: 2vh;
  }

  .hertha-newsletter-form:not(.success-page) {
    margin-top: 1vh;
  }
}
