@font-face {
  font-family: "Rubik";
  src: url("https://hellmut-ruck.de/fonts/Rubik-Light.woff2") format("woff2"),
    url("https://hellmut-ruck.de/fonts/Rubik-Light.woff") format("woff"),
    url("https://hellmut-ruck.de/fonts/Rubik-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("https://hellmut-ruck.de/fonts/Rubik-Regular.woff2") format("woff2"),
    url("https://hellmut-ruck.de/fonts/Rubik-Regular.woff") format("woff"),
    url("https://hellmut-ruck.de/fonts/Rubik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("https://hellmut-ruck.de/fonts/Rubik-Medium.woff2") format("woff2"),
    url("https://hellmut-ruck.de/fonts/Rubik-Medium.woff") format("woff"),
    url("https://hellmut-ruck.de/fonts/Rubik-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --h1-font-size: 1.125rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --h4-font-size: 1rem;
  --h5-font-size: 0.875rem;
  --h6-font-size: 0.875rem;

  --font-size-sm: 0.75rem;
  --font-size-base: 0.875rem;
  --font-size-lg: 1rem;

  --font-size-input: 0.75rem;

  --btn-font-size: 0.85rem;

  --line-height-paragraph: 1.7;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  font-family: "Rubik", Arial, sans-serif;
  font-size: var(--font-size-base, 1.125rem);
  line-height: var(--line-height-paragraph);
  font-weight: 400;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-wrapper {
  flex-grow: 1;
}

.container {
  width: 90%;
  max-width: 1580px;
  margin: 60px auto 0;
}

.no-spacing {
  width: 100% !important;
  margin: 0 auto !important;
  max-width: unset !important;
}

.content-section {
  margin-top: 20px;
}

/* Header */

.header {
  border-top: 30px solid black;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  width: 90%;
  max-width: 1580px;
  margin: 30px auto 0;
}

.header-logo-left {
  width: 180px;
}

.header-logo-right {
}

/* Intro section */

/* .intro-section {
  margin-bottom: 50px;
} */

.intro-section-content {
  margin-bottom: 50px;
}

.intro-section h1 {
  font-size: var(--h2-font-size);
  margin-bottom: 40px;
}

.intro-section h2 {
  font-size: var(--h1-font-size);
  margin-bottom: 25px;
}

.intro-section-image {
  width: 100%;
  height: auto;
  border-radius: 30px;
  border-bottom-left-radius: 0;
}

/* Interests section */

.interests-section {
  position: relative;
  padding: 50px;
  background: url("https://image.communication.hellmut-ruck.de/lib/fe3111737364047c701d71/m/1/960d07b5-d262-43e0-9967-72e82ea74237.jpg")
    no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 30px;
  border-bottom-right-radius: 0;
}

.interests-image {
  width: 100%;
  height: auto;
}

.interests-badge {
  display: inline-block;
  padding: 25px;
  background: black;
  color: #ffffff;
  border-radius: 30px;
  border-bottom-right-radius: 0;
}

.interests-badge-head {
  font-size: var(--h1-font-size);
  line-height: var(--line-height-base);
}

.interests-badge-text {
  padding-top: 10px;
}

/* Footer */

.footer-img-container {
  display: flex;
  align-items: center;
}

.footer-logo {
  max-width: 190px;
}

.footer {
  padding: 15px 0;
  background: #000000;
  color: #ffffff;
}

.footer-inner {
  width: 90%;
  max-width: 1580px;
  margin: 0 auto;
}

.footer-nav-link {
  display: block;
  color: #ffffff;
  text-decoration: underline;
}

.footer-nav-link:hover,
.footer-nav-link:focus {
  outline: none;
  text-decoration: underline;
}

/* FONT */

.headline {
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: var(--h5-font-size, 1.5rem);
  line-height: 1.2;
  font-weight: 500;
  border-bottom: 1px solid #000000;
}

p {
  margin-bottom: 28px;
}

p:last-child {
  margin: 0;
}

/* GRID */

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.gap-80 {
  gap: 80px;
}

.grid-4-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}

.narrow {
  max-width: 1290px;
}

/* FORM */

.form {
  margin-top: 50px;
}

.form-section {
  margin-bottom: 30px;
}

.form-section:last-child {
  margin: 0;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-control {
  position: relative;
}

form .message {
  font-size: var(--font-size-sm);
  color: red;
}

.form-control.invalid input {
  border-color: red;
}

.form-control.invalid label::before,
[data-newsletter-select].invalid label::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" style="fill: red;" viewBox="0 0 48 50.4"><path d="M36.7 8.6H11.4a5.34 5.34 0 0 0-5.3 5.3v22.7a5.34 5.34 0 0 0 5.3 5.3h25.3a5.34 5.34 0 0 0 5.3-5.3V13.9c-.1-3-2.4-5.3-5.3-5.3zm3 28c0 1.7-1.3 3-3 3H11.4c-1.7 0-3-1.3-3-3V13.9c0-1.7 1.3-3 3-3h25.3c1.7 0 3 1.3 3 3v22.7z"/></svg>');
}

.form-control p {
  margin: 0 0 10px 0;
}

.form-control a {
  color: #000000;
  text-decoration: underline;
}

.form-control a:hover {
  color: #00a0cb;
}

.form-control label {
  display: inline-block;
}

.form-control label[for="email"],
.form-control label[for="salutation"],
.form-control label[for="firstname"],
.form-control label[for="lastname"] {
  font-weight: 500;
}

.form-control input,
.form-control select {
  width: 100%;
  height: 30px;
  padding: 0 0.75em;
  margin-top: 0.875em;
  border: 1px solid #000000;
  font-family: "Rubik", Arial, sans-serif;
  font-size: var(--font-size-input, 1.25rem);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-control input ::placeholder,
.form-control textarea ::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #c1c1c1;
  opacity: 1; /* Firefox */
}

.form-control input :-ms-input-placeholder,
.form-control textarea :-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #c1c1c1;
}

.form-control input ::-ms-input-placeholder,
.form-control textarea ::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #c1c1c1;
}

.form-control textarea {
  width: 100%;
  padding: 0.75em;
  margin-top: 0.875em;
  border: 1px solid #000000;
  font-family: "Rubik", Arial, sans-serif;
  font-size: var(--font-size-input, 1.25rem);
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
  border-color: #00a0cb;
  outline: 0;
}

.custom-select {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M441.9 167.3l-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17 0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7 4.7-12.3 0-17z"/></svg>');
  background-size: 0.75em;
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.custom-checkbox {
  margin-bottom: 5px;
}

.custom-checkbox:last-child {
  margin: 0;
}

.custom-checkbox label {
  display: block;
  position: relative;
}

.custom-checkbox input {
  display: none;
}

.custom-checkbox label span {
  padding-left: 30px;
}

.custom-checkbox label::before {
  content: "";
  display: block;
  position: absolute;
  top: -1px;
  width: 23px;
  height: 23px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 50.4"><path d="M36.7 8.6H11.4a5.34 5.34 0 0 0-5.3 5.3v22.7a5.34 5.34 0 0 0 5.3 5.3h25.3a5.34 5.34 0 0 0 5.3-5.3V13.9c-.1-3-2.4-5.3-5.3-5.3zm3 28c0 1.7-1.3 3-3 3H11.4c-1.7 0-3-1.3-3-3V13.9c0-1.7 1.3-3 3-3h25.3c1.7 0 3 1.3 3 3v22.7z"/></svg>');
  background-size: 100%;
  border-radius: 0;
  cursor: pointer;
}

.custom-checkbox input:checked ~ label::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 50.4"><path d="M36.7 8.6H11.4a5.34 5.34 0 0 0-5.3 5.3v22.7a5.34 5.34 0 0 0 5.3 5.3h25.3a5.34 5.34 0 0 0 5.3-5.3V13.9c-.1-3-2.4-5.3-5.3-5.3zm3 28c0 1.7-1.3 3-3 3H11.4c-1.7 0-3-1.3-3-3V13.9c0-1.7 1.3-3 3-3h25.3c1.7 0 3 1.3 3 3v22.7z"/><path d="M23.8 35.8c-.6 0-1.2-.2-1.6-.6l-8.5-8c-.5-.5-.6-1.4-.1-1.9s1.4-.6 1.9-.1l8.1 7.6 8.7-18.3c.3-.7 1.1-1 1.8-.6.7.3 1 1.1.7 1.8l-8.9 18.8c-.3.7-.9 1.2-1.7 1.3h-.4z"/></svg>');
}

/* Custom checkbox for preference center */

.prc-custom-checkbox input {
  display: none;
}

.prc-custom-checkbox input ~ label {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: var(--btn-font-size);
  background: white;
  color: black;
  border: 2px solid black;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out,
    border-color 0.3s ease-in-out;
}

.prc-custom-checkbox input ~ label:hover {
  background: black;
  color: #ffffff;
}

.prc-custom-checkbox input ~ label:after {
  content: "Abgewählt";
}

.prc-custom-checkbox input:checked ~ label {
  background: black;
  color: #ffffff;
}

.prc-custom-checkbox input:checked ~ label:hover {
  background: white;
  color: black;
  border-color: black;
}

.prc-custom-checkbox input:checked ~ label:after {
  content: "Abonniert";
}

.prc-custom-checkbox input ~ h3,
.prc-custom-checkbox input ~ p,
.prc-custom-checkbox input ~ ul,
.prc-custom-checkbox input ~ img {
  opacity: 0.5;
}

.prc-custom-checkbox input:checked ~ h3,
.prc-custom-checkbox input:checked ~ p,
.prc-custom-checkbox input:checked ~ ul,
.prc-custom-checkbox input:checked ~ img {
  opacity: 1;
}

/* BUTTON */

.btn {
  display: inline-block;
  padding: 0.5em 0.75em;
  border-radius: 0;
  font-family: "Rubik", Arial, sans-serif;
  font-size: var(--btn-font-size);
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.btn-primary {
  font-size: var(--btn-font-size);
  background: #00a0cb;
  border: 2px solid #00a0cb;
  color: white;
}

.btn.btn-primary:hover {
  background: #ffffff;
  color: #00a0cb;
}

.btn-secondary {
  border: 2px solid #348e99;
  color: black;
  background: transparent;
}

.btn-secondary:hover {
  color: #ffffff;
  background-color: black;
}

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75em;
  font-size: var(--h5-font-size, 1.5rem);
  line-height: inherit;
  background: #00a0cb;
  color: #ffffff;
  border: 1px solid #00a0cb;
  border-radius: 0.75rem 0.75rem 0rem 0.75rem;
}

.btn-cta:hover {
  background: white;
  color: #00a0cb;
}

.btn-icon svg {
  display: inline-block;
  position: relative;
  top: 2px;
  height: 23px;
  margin-right: 5px;
  fill: #ffffff;
  transition: fill 0.3s ease-in-out;
}

.btn-cta:hover .btn-icon svg {
  fill: #00a0cb;
}

/* TOPIC */

.topic-item-inner {
  position: relative;
  padding-bottom: 35px;
}

.topic-img {
  width: 100%;
  height: auto;
  border-radius: 50px;
  border-bottom-left-radius: 0;
}

.topic-head {
  padding: 0 0 15px 0;
  margin-top: 35px;
  font-size: var(--h6-font-size);
  font-weight: 500;
}

.topic-item p {
  margin: 0 0 20px 0;
  line-height: var(--line-height-paragraph);
}

.topic-item ul {
  margin: 20px 0 0 0;
  padding-bottom: 20px;
  line-height: var(--line-height-paragraph);
}

.topic-item ul li {
  list-style: none;
}

.topic-item ul li::before {
  content: ">";
  display: inline-block;
  padding-right: 5px;
}

.topic-img.reverse-order {
  order: 1;
}

.topic-content.reverse-order {
  order: 2;
}

/* ALERTS */

.alert {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 13px;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #000000;
}

.alert-icon {
  padding: 11px 13px;
}

.alert-icon img {
  display: block;
  margin-right: 20px;
  width: auto;
  height: 28px;
}

.alert-info {
  background: #348e99;
}

.alert-warning {
  background: #ffd800;
}

.alert-danger {
  background: #e64e4e;
}

.alert-success {
  background: #d6eab2;
}

@media screen and (min-width: 48rem) {
  :root {
    --h1-font-size: 1.75rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.75rem;
    --h4-font-size: 1.5rem;
    --h5-font-size: 1.25rem;
    --h6-font-size: 1.2rem;

    --font-size-sm: 0.8rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;

    --font-size-input: 0.9rem;

    --btn-font-size: 1rem;
  }

  .grid-2-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-img.reverse-order {
    order: 2;
  }
  .topic-content.reverse-order {
    order: 1;
  }

  /* Header */
  .header-logo-left {
    width: 14rem;
  }

  /* Footer */

  .footer-nav-link {
    display: inline-block;
    margin-right: 5px;
  }

  .footer-nav-link:after {
    content: "|";
    margin-left: 10px;
  }

  .footer-nav-link:last-child::after {
    display: none;
  }

  /* FONT */

  .headline {
    border-width: 2px;
  }

  /* FORM */

  .form-control input,
  .form-control select {
    height: 35px;
    border-width: 2px;
  }

  .form-control textarea {
    border-width: 2px;
  }

  /* BUTTONS */

  .btn-primary {
    padding: 0.6em 0.9em;
  }

  .btn-cta {
    width: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 1.25rem 1.25rem 0rem 1.25rem;
    border-width: 2px;
  }

  .btn-icon svg {
    height: 23px;
    margin-right: 10px;
  }

  /* TOPIC */

  .topic-item-inner {
    padding-bottom: 55px;
  }
}

@media screen and (min-width: 64rem) {
  .grid-4-col {
    grid-template-columns: repeat(3, 1fr);
  }

  .container {
    margin: 100px auto 0;
  }

  /* Header */
  .header-logo-left {
    width: 16rem;
  }

  /* Intro section */

  .intro-section-content {
    margin: 0;
  }

  .intro-section h1 {
    text-align: center;
    margin-bottom: 80px;
  }

  .intro-section-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }

  /* Footer */

  .footer-logo {
    max-width: 240px;
  }

  .interests-badge {
    padding: 65px 130px 55px 60px;
  }
}

@media screen and (min-width: 75rem) {
  :root {
    --font-size-sm: 0.875rem;
    --font-size-base: 1.125rem;
    --font-size-lg: 1.25rem;

    --line-height-base: 1.2;
    --line-height-paragraph: 1.7;

    --font-size-input: 1.1rem;

    --btn-font-size: 1.25rem;
  }

  /* Footer */

  .footer p {
    margin: 0;
  }

  .footer-inner {
    display: flex;
    justify-content: space-between;
  }
}

@media screen and (min-width: 87.5rem) {
  .grid-4-col {
    grid-template-columns: repeat(4, 1fr);
  }
}
