@import url(https://fonts.googleapis.com/css?family=Ubuntu);

body {
  margin: 0;
  padding: 0;
  color: black;
  background: white;
  font-size: 1rem;
  font-family: "Ubuntu", Arial, Helvetica, sans-serif;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

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

h1,
ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
  padding: 0;
}

input {
  padding: 0;
  border: none;
}

.inner_wrapper {
  max-width: 800px;
  width: 80%;
  margin: 0 auto;
}

.Txt_Center {
  text-align: center;
}

.Txt_Left {
  text-align: left;
}

section {
  padding: 20px 0;

  /* Kasten */
  /*background: whitesmoke;
  margin: 30px 0;
  padding: 30px 24px;
  height: 100%;*/
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  width: 100%;
  height: 150px;
  background: #004277;
}

header img {
  max-width: 400px;
  height: auto;
}

h1 {
  background: #4c7ba0;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  padding: 14px 0;
}

nav {
  width: 100%;
  background: whitesmoke;
  padding: 10px 0;
}

nav ul {
  display: flex;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  width: 100%;
  text-align: center;
  flex-direction: row;
}

nav ul li {
  font-size: 22px;
  width: calc(100% / 4);
}

nav ul li:not(:last-child) {
  border-right: solid 1px #000;
}

nav li a {
  display: inline-block;
}

nav ul li a:hover {
  border-bottom: 1px black solid;
}

.intro {
  font-size: 22px;
  color: #004277;
  position: relative;
}

/*
Trennlinie
*/
.intro::before {
  content: "";
  display: inline-block;
  width: 100%;
  position: absolute;
  right: 0;
  left: -100%;
  top: 50%;
  transform: translate(0, -50%);
  background: #d4d6da;
  height: 2px;
}

.intro::after {
  content: "";
  display: inline-block;
  width: 100%;
  position: absolute;
  right: 0;
  left: 100%;
  top: 50%;
  transform: translate(0, -50%);
  background: #d4d6da;
  height: 2px;
} 

.grund_form {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
}

.option {
  width: 50%;
  margin-bottom: 8px;
}

.option input,
.option label {
  cursor: pointer;
}

:where(.textarea) {
  margin: 20px 0;
}

.textarea,
textarea {
  width: 100%;
}

textarea {
  margin: 10px 0 0 0;
  font-size: 16px;
}

.pausieren_form {
  width: 100%;
  height: 100%;
}

.date-select-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 20px;
}

.date-select-wrapper > div {
  width: 40%;
}

.date-select-wrapper input {
  border: solid 1px lightgray;
  padding: 10px 8px;
  width: max-content;
  display: block;
}

.deals-only {
  display: flex;
  align-items: start;
  width: 100%;
  justify-content: center;
  margin-bottom: 20px;
}

input[type="submit"] {
  font-size: 16px;
  color: white;
  width: max-content;
  border-radius: 30px;
  border: solid #004277 1px;
  background-color: #004277;
  padding: 8px 24px;
  cursor: pointer;
}

.message.hide {
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin: 0;
}

.message {
  opacity: 1;
  visibility: visible;
  font-size: 18px;
  color: #df0313;
  font-weight: 700;
  text-align: center;
  height: auto;
}

/*
Preference Kachel
*/
fieldset legend {
  display: none;
}

fieldset {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  justify-items: center;
  border: none;
  padding: 0;
  margin: 70px auto 20px auto;
  width: 74%;
}

#second-row-fieldset {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}

.item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  width: 180px;
  height: 180px;
  border: solid 1px lightgray;
  box-shadow: 0 4px 14px lightgray;
  transition: transform 0.3s ease;
}

.item input {
  width: 180px;
  height: 130px;
  position: relative;
  opacity: 0.01;
  z-index: 1;
  cursor: pointer;
}

.item.active {
  box-shadow: 0 10px 10px lightgray;
  transform: translateY(-10px);
}

.item label {
  font-size: 14px;
  font-weight: 700;
  padding: 14px 0 8px 0;
  position: relative;
  color: #004277;
  cursor: pointer;
}

.item.active:before {
  content: "✔";
  display: block;
  position: absolute;
  top: 4%;
  left: 4%;
  width: 24px;
  height: auto;
  text-align: center;
  color: black;
  background: white;
}

.item img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 130px;
  object-fit: cover;
}

#start-date,
#end-date {
  height: 40px;
  align-self: center;
  background-color: transparent;
  border: solid 1px lightgray;
  box-shadow: 0 4px 14px lightgray;
  margin-bottom: 20px;
  font-size: 14px;
  padding: 5px;
}

#start-date,
#end-date {
  width: 100%;
}

.sub_headline {
  color: #004277;
  font-size: 24px;
  font-weight: 700;
}

.btn_wrapper {
  display: flex;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.btn {
  padding: 4px 8px;
  cursor: pointer;
}

.save {
  background: #004277;
  color: white;
}

.cancel {
  background: white;
  border: solid black 1px;
}

.unsubscribe.item {
  flex-direction: row;
  justify-content: center;
  width: 100%;
  height: auto;
}

.unsubscribe input {
  width: 30px;
  height: 30px;
  background: #eaeef5;
  border: solid #eaeef5 1px;
  opacity: 1;
}

.unsubscribe label {
  color: black;
  font-size: 1rem;
  padding: 6px 0 0 10px;
}

.separate_line {
  background-color: #eaeef5;
  height: 28px;
  width: 80%;
  max-width: 1180px;
  margin: 100px auto 0;
}

.footer_inner {
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
}

.sns_wrapper {
  display: flex;
  justify-content: center;
  margin: 50px 0;
  gap: 30px;
}

.sns_wrapper img {
  width: 40px;
  height: 40px;
}

.copyright p {
  color: #4c7ba0;
  font-weight: 600;
  line-height: 1.4rem;
}

.copyright span {
  display: inline-block;
  padding: 20px 0 40px;
  text-decoration: underline #4c7ba0;
}

footer {
  padding: 30px 0;
}

@media screen and (max-width: 820px) {
  header img {
    max-width: 260px;
  }

  nav ul li {
    font-size: 16px;
    margin-right: 4%;
  }

  nav ul li:not(:last-child) {
    border-right: solid 1px #000;
    padding-right: 4%;
  }

  h1.Txt_Center {
    font-size: 1.4rem;
  }

  .inner_wrapper {
    width: 90%;
  }

  .intro {
    font-size: 18px;
  }

  .option {
    width: 100%;
  }

  .date-select-wrapper {
    display: block;
  }

  .date-select-wrapper div {
    margin: 10px 0;
  }

  .date-select-wrapper label {
    width: inherit;
    display: inline-block;
  }

  fieldset {
    grid-template-columns: repeat(2, 1fr);
    margin: 10px auto;
  }

  .item,
  .item input {
    width: 140px;
  }

  .item:nth-child(even) {
    margin-right: 4px;
  }

  .item:nth-child(odd) {
    margin-left: 4px;
  }

  .footer_inner {
    max-width: 400px;
  }
}
