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

@font-face {
  font-family: 'BlickVariable';
  src: url('https://utils.blick.ch/static/fonts/Blick/BlickVariable.woff2') format('woff2');
  font-display: swap;
  font-weight: 1 999; 
}
@font-face {
  font-family: 'InterVariable';
  src: url('https://utils.blick.ch/static/fonts/Inter/InterVariable.woff2') format('woff2');
  font-display: swap;
  font-weight: 1 999; 
  font-style: normal;
}
@font-face {
  font-family: 'InterVariable';
  src: url('https://utils.blick.ch/static/fonts/Inter/InterVariable-Italic.woff2') format('woff2');
  font-display: swap;
  font-weight: 1 999; 
  font-style: italic;
}

:root {
  /* Primitives */
  --color-red-100: #FCE5E5;
  --color-red-400: #FF0000;
  --color-red-500: #E20000;
  --color-red-900: #A70000;

  --color-green-100: #EFF5E8;
  --color-green-500: #62A01A;
  --color-green-700: #508216;
  --color-green-900: #385912;
  --color-green-950: #181B11;

  --color-yellow-500: #FFCE00;

  --color-white: #FFFFFF;

  --color-grey-100: #F5F5F5;
  --color-grey-200: #E1E0E0;
  --color-grey-300: #C8C6C6;
  --color-grey-400: #A5A1A1;
  --color-grey-500: #837C7C;
  --color-grey-600: #6A6262;
  --color-grey-700: #504949;
  --color-grey-800: #3B3535;
  --color-grey-900: #292424;
  --color-grey-950: #1E1A1A;

  --color-black: #121010;

  --color-success: #29CC49;

  --color-alpha-black-0: rgba(18, 16, 16, 0);
  --color-alpha-black-10: rgba(18, 16, 16, 0.1);
  --color-alpha-black-20: rgba(18, 16, 16, 0.2);
  --color-alpha-black-30: rgba(18, 16, 16, 0.3);
  --color-alpha-black-40: rgba(18, 16, 16, 0.4);
  --color-alpha-black-50: rgba(18, 16, 16, 0.5);
  --color-alpha-black-60: rgba(18, 16, 16, 0.6);
  --color-alpha-black-70: rgba(18, 16, 16, 0.7);
  --color-alpha-black-80: rgba(18, 16, 16, 0.8);
  --color-alpha-black-90: rgba(18, 16, 16, 0.9);

  /* Semantic Colors */

  --color-text-default: var(--is-light-theme, var(--color-black)) var(--is-dark-theme, var(--color-grey-100));
  --color-text-default_hover: var(--is-light-theme, var(--color-grey-900)) var(--is-dark-theme, var(--color-grey-200));
  --color-text-default_disabled: var(--is-light-theme, var(--color-grey-400)) var(--is-dark-theme, var(--color-grey-700));
  --color-text-weak: var(--is-light-theme, var(--color-grey-600)) var(--is-dark-theme, var(--color-grey-400));
  --color-text-inverse: var(--is-light-theme, var(--color-white)) var(--is-dark-theme, var(--color-black));
  --color-text-brand: var(--is-light-theme, var(--color-red-500)) var(--is-dark-theme, var(--color-red-400));
  --color-text-brand_hover: var(--is-light-theme, var(--color-red-900)) var(--is-dark-theme, var(--color-red-900));
  --color-text-sport: var(--is-light-theme, var(--color-green-700)) var(--is-dark-theme, var(--color-green-500));
  --color-text-sport_hover: var(--is-light-theme, var(--color-green-900)) var(--is-dark-theme, var(--color-green-900));

  --color-stroke-default: var(--is-light-theme, var(--color-grey-600)) var(--is-dark-theme, var(--color-grey-400));
  --color-stroke-default_disabled: var(--is-light-theme, var(--color-grey-300)) var(--is-dark-theme, var(--color-grey-800));
  --color-stroke-weak: var(--is-light-theme, var(--color-grey-300)) var(--is-dark-theme, var(--color-grey-800));
  --color-stroke-strong: var(--is-light-theme, var(--color-black)) var(--is-dark-theme, var(--color-white));
  --color-stroke-strong_hover: var(--is-light-theme, var(--color-grey-900)) var(--is-dark-theme, var(--color-grey-200));
  --color-stroke-inverse: var(--is-light-theme, var(--color-white)) var(--is-dark-theme, var(--color-black));
  --color-stroke-brand: var(--is-light-theme, var(--color-red-500)) var(--is-dark-theme, var(--color-red-400));
  --color-stroke-brand_hover: var(--is-light-theme, var(--color-red-900)) var(--is-dark-theme, var(--color-red-900));
  --color-stroke-sport: var(--is-light-theme, var(--color-green-500)) var(--is-dark-theme, var(--color-green-500));
  --color-stroke-sport_hover: var(--is-light-theme, var(--color-green-900)) var(--is-dark-theme, var(--color-green-900));

  --color-fill-default: var(--is-light-theme, var(--color-white)) var(--is-dark-theme, var(--color-black));
  --color-fill-default_disabled: var(--is-light-theme, var(--color-grey-200)) var(--is-dark-theme, var(--color-grey-900));
  --color-fill-weak: var(--is-light-theme, var(--color-grey-100)) var(--is-dark-theme, var(--color-grey-950));
  --color-fill-strong: var(--is-light-theme, var(--color-grey-200)) var(--is-dark-theme, var(--color-grey-800));
  --color-fill-strongest: var(--is-light-theme, var(--color-grey-600)) var(--is-dark-theme, var(--color-grey-400));
  --color-fill-brand: var(--is-light-theme, var(--color-red-500)) var(--is-dark-theme, var(--color-red-400));
  --color-fill-brand_hover: var(--is-light-theme, var(--color-red-900)) var(--is-dark-theme, var(--color-red-900));
  --color-fill-sport: var(--is-light-theme, var(--color-green-500)) var(--is-dark-theme, var(--color-green-500));
  --color-fill-sport_hover: var(--is-light-theme, var(--color-green-900)) var(--is-dark-theme, var(--color-green-900));
  --color-fill-sport-weak: var(--is-light-theme, var(--color-green-100)) var(--is-dark-theme, var(--color-green-950));
  --color-fill-inverse: var(--is-light-theme, var(--color-black)) var(--is-dark-theme, var(--color-white));
  --color-fill-inverse_hover: var(--is-light-theme, var(--color-grey-900)) var(--is-dark-theme, var(--color-grey-200));
  --color-fill-video: var(--is-light-theme, var(--color-black)) var(--is-dark-theme, var(--color-grey-900));

  --color-static-white: var(--color-white);
  --color-static-neutral-100: var(--color-grey-100);
  --color-static-neutral-200: var(--color-grey-200);
  --color-static-neutral-300: var(--color-grey-300);
  --color-static-neutral-400: var(--color-grey-400);
  --color-static-neutral-700: var(--color-grey-700);
  --color-static-neutral-800: var(--color-grey-800);
  --color-static-neutral-900: var(--color-grey-900);
  --color-static-neutral-950: var(--color-grey-950);
  --color-static-black: var(--color-black);
  --color-static-green-500: var(--color-green-500);
  --color-static-green-700: var(--color-green-700);
  --color-static-green-900: var(--color-green-900);
  --color-static-red-400: var(--color-red-400);
  --color-static-red-500: var(--color-red-500);
  --color-static-red-900: var(--color-red-900);
  --color-static-yellow-500: var(--color-yellow-500);

  --color-overlay-default: var(--is-light-theme, var(--color-alpha-black-70)) var(--is-dark-theme, var(--color-alpha-black-70));
  
  --color-icon-brand: var(--is-light-theme, var(--color-red-500)) var(--is-dark-theme, var(--color-red-400));
  --color-icon-brand_hover: var(--is-light-theme, var(--color-red-900)) var(--is-dark-theme, var(--color-red-900));
  --color-icon-default: var(--is-light-theme, var(--color-black)) var(--is-dark-theme, var(--color-grey-100));
  --color-icon-default_disabled: var(--is-light-theme, var(--color-grey-400)) var(--is-dark-theme, var(--color-grey-700));
  --color-icon-inverse: var(--is-light-theme, var(--color-white)) var(--is-dark-theme, var(--color-black));
  --color-icon-sport: var(--is-light-theme, var(--color-green-700)) var(--is-dark-theme, var(--color-green-500));
  --color-icon-sport_hover: var(--is-light-theme, var(--color-green-900)) var(--is-dark-theme, var(--color-green-900));
  --color-icon-weak: var(--is-light-theme, var(--color-grey-600)) var(--is-dark-theme, var(--color-grey-400));

  --gap-size: 24px;

  --color-theme-main: var(--color-text-brand);
  --color-success: #29CC49;
}

/* Wirtschaftsbriefing Settings */
#nl-wirtschaftsbriefing, #nl-wirtschaftsbriefing-small { 
  --color-theme-main: var(--is-light-theme, #4E4785) var(--is-dark-theme, #7d6df0);
}

/* Gewinnspiele Settings */
#nl-blickgewinnspiele, #nl-blickgewinnspiele-small  { 
  --color-theme-main: var(--is-light-theme, #CD6100) var(--is-dark-theme, #ff8f2d);
}

body {
  font-family: 'InterVariable', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-text-default);
  background-color: var(--color-fill-default);
}

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

.wrapper {
  margin: 0 auto;
  max-width: 954px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.wrapper.narrow {
  max-width: 620px;
}

.sectionHeader {
  font-size: 22px;
  line-height: 1;
  width: 100%;
  font-family: "BlickVariable", Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 0 0 16px;
  border: solid var(--color-stroke-brand);
  border-width: 4px 0 0 4px;
}

.tabs {
  position: relative;
  display: flex;
  gap: 24px;
  justify-content: center;
}
.tabs:before {
  position: absolute;
  content: "";
  background-color: var(--color-stroke-weak);
  bottom: 0;
  height: 2px;
  width: 100%;
  z-index: -1;
}

.tab {
  font-size: 16px;
  color: var(--color-text-weak);
  font-weight: 500;
  line-height: 1;
  font-weight: normal;
  padding: 12px 0;
  margin: 0;
  white-space: nowrap;
  cursor: pointer;
}

.tab.selected {
  font-weight: 700;
  color: var(--color-text-default);
  border-bottom: var(--color-stroke-brand) 4px solid;
  cursor: auto;
}

main {
  display: grid;
  gap: var(--gap-size);
}

.introtext {
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  max-width: 620px;
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0 auto 0 auto;
}

.introtext p {
  margin-bottom: 16px;
  text-align: start;
}
.introtext p:last-child {
  margin-bottom: 0;
}

.primary-button {
  display: inline-block;
  background-color: var(--color-fill-brand);
  font-family: "InterVariable", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-inverse);
  padding: 12px 24px;
  border-radius: 24px;
  border: none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-button:hover {
  background-color: var(--color-fill-brand-hover);
}
.primary-button.inactive {
  background-color: var(--color-fill-default_disabled);
  color: var(--color-text-default_disabled);
  cursor: initial;
}

.introtext .primary-button {
  margin-bottom: 16px;
}

.nl-category-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(296px, 1fr));
  grid-auto-flow: row dense;
  grid-column: 1 / -1;
  gap: var(--gap-size);
}

.nl-category {
  grid-column: 1 / -1;
  font-family: "BlickVariable", sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin-top: 1.5em;
  text-transform: uppercase;
  border-left: 2px solid var(--color-stroke-brand);
  padding-left: 8px;
}
.sport {
  --color-theme-main: var(--color-text-sport);
}

.nl-category.sport {
  border-color: var(--color-stroke-sport);
}

/* NL CARD DESIGN */

.nl-card {
  position: relative;
  background-color: transparent;
  align-items: stretch;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 16px;
  margin: 0 16px 16px 0;
  flex-direction: column;
  border-top: 4px solid var(--color-theme-main);
  border-left: 4px solid var(--color-theme-main);
  box-shadow: 16px 16px var(--color-theme-main);
}


.nl-title {
  color: var(--color-theme-main);
  font-size: 22px;
  width: calc(100% - 100px);
  font-family: 'BlickVariable', sans-serif;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
  min-height: 2em;
}

.nl-subtitle {
  display: none;
}

.nl-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 1em;
}

.nl-frequency {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-weak);
  background-color: var(--color-fill-default);
  border: 1px solid var(--color-stroke-weak);
  max-width: 100px;
  width: fit-content;
  text-align: center;
  padding: 0.3em 0.5em 0.3em;
}

.nl-sub-checkbox {
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  align-self: flex-end;
  justify-self: flex-end;

  width: 120px;
  height: 32px;

  background: var(--color-fill-inverse);
  padding: 0.6em 1em;
  border-radius: 16px;
  border: none;
  overflow: hidden;

  transition: all  0.2s;
  color: var(--color-text-inverse);
}

.nl-sub-checkbox:checked {
  background-color: var(--color-success);
  width: 140px;
  color: var(--color-black);
}

.nl-sub-checkbox:hover {
  background-color: var(--color-fill-inverse_hover);
}

.nl-sub-checkbox:checked:hover {
  background-color: var(--color-success);
}

.nl-sub-checkbox::before {
  position: absolute;
  top: 6px;
  left: 50%;
  translate: -50%;
  margin-top: 3px;
  display: block;
  width: 100%;
  content: "Abonnieren";
  font-family: "InterVariable", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1;
  color: inherit;
  text-align: center;

  transition: left 0.2s;
}

.nl-sub-checkbox:checked::before {
  left: calc(50% - 10px);
  content: "Ausgewählt";
}

.nl-sub-checkbox:after {
  content: "";
  background: url("https://utils.blick.ch/static/newsletter-de/v3/img/check-solid.svg");
  width: 23px;
  height: 22px;
  scale: 0%;
  position: absolute;
  right: 12px;
  top: 5px;
  transition: scale 0.2s;
}

.nl-sub-checkbox:checked:after {
  scale: 100%;
}

.heads {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  max-width: 200px;
}

/* PROMPT */

.prompt {
  box-sizing: border-box;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;;
  gap: 1rem;
  background-color: var(--color-fill-strong);
  color: var(--color-text-default);
  width: 100%;
  max-height: 0;
  padding: 0 1rem;
  transition: max-height 0.4s ease-out 0.02s, padding 0.4s ease-out 0.1s;
  overflow: hidden;
}

.prompt.show {
  max-height: 400px;
  padding: 1rem;
}

.prompt-title {
  font-family: "BlickVariable", Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;

  font-size: 22px;
}
#prompt-title-name {
  color: var(--color-text-brand);
}

.prompt-text {
  font-size: 18px;
  line-height: 1.5;
}


.name-email-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  align-items: center;
}

.input-group {
  display: flex;
  gap: 16px;
}
.input-group, #name, #email {
  width: 100%;
  max-width: 350px;
}

input[type='text'],
input[type='email'] {
  background: var(--color-fill-default);
  border: 1px solid var(--color-stroke-weak);
  border-radius: 22px;
  height: 44px;
  width: 100%;
  font-family: 'InterVariable', Arial, Helvetica, sans-serif;
  font-size: inherit;
  padding: 8px 24px;
}
::placeholder {
  color: var(--color-text-weak);
  opacity: 1;
}

.subscribe-btn {
  border: none;
  background: url("https://utils.blick.ch/static/newsletter-de/v3/img/paper-plane-top-solid.svg") no-repeat 65% 50% var(--color-fill-brand);
  background-size: 60%;
  color: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-indent: 9999px;
  transition: all 0.2s ease-out;
}

.subscribe-btn:hover,
.subscribe-btn:focus {
  background-color: var(--color-fill-brand-hover);
  background-size: 70%;
}

.gdpr {
  color: var(--color-text-weak);
  line-height: 1.5;
  text-align: center;
  font-size: 12px;
  padding: 0 1em;
}

.no-transition * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

.puffer {
  height: 0;
  transition: all 0.5s 0.1s;
}

.hidden {
  display: none !important;
}

.subscriptionIframe {
  border: 0;
}
.checkbox-card:not(.hidden) {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px
}

.checkbox-column {
  display: grid;
}

.checkbox {
  align-self: center;
  justify-self: center;
}

.sailthru-checkbox {
  display: none;
}

.checkbox-label {
  display: none;
}

.dummy-checkbox {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-stroke-default);
  border-radius: 0.15em;
  align-self: center;
  translate: 0 -8px
}

.dummy-checkbox:checked {
  border: 2px solid var(--color-stroke-strong);
  background-color: var(--color-success);
  box-shadow: inset 0 0 0 4px var(--color-fill-default);
}

.smallcards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.smallcards .card-header {
  padding: 16px;
  margin: 0 16px 16px 0;
  border-top: 4px solid var(--color-theme-main);
  border-left: 4px solid var(--color-theme-main);
  box-shadow: 16px 16px var(--color-theme-main);
  overflow: hidden;
  position: relative;
}

.smallcards .nl-title {
  position: relative;
  font-size: 22px;
  width: 100%;
  min-height: unset;
}

.smallcards .nl-subtitle {
  position: relative;
  display: block;
  margin-top: 4px;
  line-height: 1.25;
}

/* NEWSLETTER PREVIEW */

.nl-button-bar {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "example subscribe";
}
.nl-button-bar > .nl-sub-checkbox {
  grid-area: subscribe;
}

.nl-example-link {
  font-size: 14px;
  line-height: 1;
  align-self: center;
}

.nl-example-link::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: bottom;
  margin-right: 4px;
  background: url("https://utils.blick.ch/static/newsletter-de/v3/img/eye-solid.svg") no-repeat center;
  text-decoration: none;
  @media (prefers-color-scheme: dark) {
    filter: invert(1);
  }
}

dialog {
  margin: auto;
  border-radius: 10px;
  border: var(--color-stroke-weak) 1px solid;
  h3 {
    font-family: "BlickVariable", Arial, Helvetica, sans-serif;
    font-weight: 700;
    padding: 1rem;
  }
}

#nl-preview {
  width: min(90vw, 500px);
  height: min(90dvh, 800px);
}

#dialogClose {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 14px;
}

dialog::backdrop {
  background: rgba(from var(--color-grey-950) r g b / 0.6);
}

@media screen and (max-width: 320px) {

  .smallcards .nl-title {
    font-size: 1.4em;
  }
}

@media screen and (min-width: 769px) {
  .name-email-group {
    flex-direction: row;
    justify-content: center;
  }

  .input-group {
    max-width: unset;
    display: contents;
  }
}

@media screen and (max-width: 768px) { 
  .wrapper {
    width: calc(100vw - 24px);
    margin: auto;
  }
}
