@font-face {
  font-display: swap;
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  src: url("/plus-jakarta-sans-v12-latin-500.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  src: url("/plus-jakarta-sans-v12-latin-800.woff2") format("woff2");
}

:root {
  --primary-color: #684efd;
  --primary-color-hover: #7b63ff;
  --alternative-color: #f00ae7;
  --background-color: #fff;
  --text-color: #000;
  --text-color-light: #727272;
  --bg-light: #f9f8ff;
  --border-color: #d0cde5;
  --border-radius: 0.7rem;
}

::selection {
  background: var(--primary-color-hover);
  color: white;
}

* {
  box-sizing: border-box;
  line-height: 1.5;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
  overflow-x: hidden;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: calc(0.9rem + 0.2vw);
  background: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary-color);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

a:has(img) {
  display: inline-block;
}

h1,
h2,
h3 {
  margin: 2em 0 1rem 0;
}

h1,
.subline {
  text-align: center;
}

button,
.button {
  background: var(--primary-color);
  color: inherit;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.4rem 0.9rem;
  font-size: inherit;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  color: white;
  border: 1px solid #dbdbdb;
}

button.low-key,
.button.low-key {
  color: var(--text-color);
  background: var(--background-color);
}

.low-key:not(button):not(.button) {
  font-size: 0.9rem;
  color: var(--text-color-light);
}

.stick {
  white-space: nowrap;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.icon-text img,
.icon-text svg {
  height: 1.5em;
}

.bg-colored {
  background: url("/colored-bg.svg");
  padding: 10%;
  margin: -10%;
  background-size: 100% 100%;
}

*:has(.note) {
  position: relative;
}

.note {
  position: absolute;
  top: -0.5em;
  right: -1em;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.1em 0.5em;
  transform: rotate(10deg);
  user-select: none;
}

.editor-wrapper {
  transform: translateY(-5%);
}

.editor {
  border-radius: var(--border-radius);
  padding: 1em;
  display: block;
  overflow-x: auto;
  background: #1e1e1e;
  color: #dcdcdc;
  font-family: monospace;
  font-size: 0.9rem;
}

.editor .comment {
  color: #57a64a;
  font-style: italic;
}

.editor .section {
  color: #ffd700;
}

.editor .attr {
  color: #9cdcfe;
}

.editor .string {
  color: #d69d85;
}

.editor .number {
  color: #b8d7a3;
}

.underline {
  display: inline-block;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEwIiBoZWlnaHQ9IjE0IiB2aWV3Qm94PSIwIDAgMjEwIDE0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxwYXRoIGQ9Ik0gNSw5IEMgNSw5IDc0LDIgMjA1LDciIGZpbGw9Im5vbmUiIHN0b2tlPSIjZmZlNzdhIiB2ZWN0b3ItZWZmZWN0PSJub24tc2NhbGluZy1zdHJva2UiIHN0cm9rZT0iIzdiNjNmZiIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIC8+PC9zdmc+");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: bottom;
  white-space: nowrap;
  position: relative;
  padding-bottom: 0.3em;
  margin-bottom: -0.3em;
}

.marker {
  display: inline-block;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjc5IiBoZWlnaHQ9IjY4IiB2aWV3Qm94PSIwIDAgMjc5IDY4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxwYXRoIGQ9Ik0gMCwxMiBDIDIsLTEwIDIxMywzIDI0NiwxMiAyNjYsMTcgMjg1LDUwIDI3Nyw2MCAyNjgsNzAgNzUsNjggNDMsNjQgMjcsNjIgLTEsMzMgMCwxMiBaIiBmaWxsPSIjZmZlNzdhIiAvPjwvc3ZnPg==");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  white-space: nowrap;
  /* z-index: -1; */
  position: relative;
  padding: 0 0.3em;
  margin: 0 -0.3em;
  color: black;
}

.card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.card h2 {
  margin-top: 0.5rem;
}

details.card {
  padding: 0;
}

.card.highlight {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-light), var(--bg-light)) padding-box,
    linear-gradient(90deg, var(--alternative-color) 0%, var(--primary-color) 100%) border-box;
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-repeat: no-repeat;
}

code {
  display: inline-block;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  margin: 0 0.2em;
  padding: 0 0.2em;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.2em 0;
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 1em;
  height: 1em;
  transform: rotate(-3deg);
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNIDMsNyBMIDExLDciIGZpbGw9Im5vbmUiIHN0b2tlPSIjZmZlNzdhIiB2ZWN0b3ItZWZmZWN0PSJub24tc2NhbGluZy1zdHJva2UiIHN0cm9rZT0iIzdiNjNmZiIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiPjwvcGF0aD48L3N2Zz4=")
    center/contain no-repeat;
}

ul li:nth-child(even)::before {
  transform: rotate(1deg);
}

details {
  margin: 1rem 0;
}

summary {
  cursor: pointer;
  font-weight: bold;
  padding: 1rem;
}

details > div {
  padding: 0.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details > div * {
  margin: 0;
}

body > header {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  user-select: none;
  font-size: 0.9rem;
}

body > header .content-wrapper,
body > footer .content-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

body > main {
  flex-grow: 1;
}

body > footer .content-wrapper {
  flex-direction: row-reverse;
  gap: 3rem;
}

body > header *:has(.logo) {
  flex-grow: 1;
}

body > header .logo {
  height: 1.8rem;
}

body > footer .logo {
  height: 3rem;
}

body > header nav {
  display: flex;
  gap: 1rem;
}

body > footer nav {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-direction: column;
  margin: 1em 0;
}

body > footer {
  font-size: 0.9rem;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 1rem 0;
  margin-top: 3em;
}

body > footer .support {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 55em;
}

body > header nav a {
  color: inherit;
  text-decoration: none;
}

.content-wrapper {
  padding: 1rem 0.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

#made-in-germany {
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
}

@media screen and (max-width: 30rem) {
  #made-in-germany {
    display: none;
  }
}

#made-in-germany > span {
  text-transform: uppercase;
  height: 1em;
  line-height: 1;
  display: inline-block;
}

#made-in-germany > span::before {
  display: inline-block;
  content: "";
  width: 0.5em;
  height: 1em;
  margin-right: 0.5em;
  transform: translateY(0.13em);
}

#made-in-germany > span:nth-child(1)::before {
  background-color: #000000;
}

#made-in-germany > span:nth-child(2)::before {
  background-color: #e3000f;
}

#made-in-germany > span:nth-child(3)::before {
  background-color: #ffca00;
}

.text-wrapper {
  max-width: 50rem;
  margin: 0 auto;
}

footer .photo {
  height: 12em;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

footer h2 {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

table caption {
  text-align: center;
  font-weight: bold;
  margin: 1rem 0;
}

table tbody tr:nth-child(even),
table thead tr {
  background-color: var(--bg-light);
}

th {
  text-align: left;
}

td,
th {
  padding: 0.5rem;
}

td > *:first-child {
  margin-top: 0;
}

td > *:last-child {
  margin-bottom: 0;
}

td > p {
  margin: 0.5rem 0;
}

@media screen and (max-width: 50rem) {
  body > footer {
    text-align: center;
  }

  body > footer .content-wrapper {
    flex-direction: column;
  }

  body > footer .support {
    flex-direction: column;
  }

  body > footer nav {
    align-items: center;
  }
}

@media screen and (max-width: 40rem) {
  .mobile-hide {
    display: none;
  }
}
