/* fonts */

/* eb-garamond-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/eb-garamond-v27-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* eb-garamond-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/eb-garamond-v27-latin-italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* eb-garamond-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/eb-garamond-v27-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-family: "kmr2018_blk";
  font-style: normal;
  font-weight: bold;
  src: url("../fonts/kmr2018_blk.eot");
  src: url("../fonts/kmr2018_blk.eot?#iefix") format("embedded-opentype"), url("../fonts/kmr2018_blk.woff2") format("woff2"), url("../fonts/kmr2018_blk.woff") format("woff"), url("../fonts/kmr2018_blk.ttf") format("truetype");
}

@font-face {
  font-family: "kmr2018_reg";
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/kmr2018_reg.eot");
  src: url("../fonts/kmr2018_reg.eot?#iefix") format("embedded-opentype"), url("../fonts/kmr2018_reg.woff2") format("woff2"), url("../fonts/kmr2018_reg.woff") format("woff"), url("../fonts/kmr2018_reg.ttf") format("truetype");
}

:root {
  --sans-serif: "kmr2018_reg", sans-serif;
  --sand-serif-bold: "kmr2018_blk", sans-serif;
  --serif: "EB Garamond", serif;
}

/* basics */

body {
  background-color: black;
  color: white;
  font-family: var(--serif);
  font-size: 18px;
  min-height: 100vh;
}

.letter-border {
  background-color: #fff;
  border: 3px double #000;
  color: #000;
  padding: 5%;
}

a {
  color: #000;
  text-decoration: none;
}
em {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  font-style: italic;
  color: #000;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid #000;
  font-family: var(--serif);
  font-size: 18px;
}

textarea {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid #000;
  font-family: var(--serif);
  font-size: 18px;
}

input[type="radio"]:focus {
  outline: none;
  background-color: red;
  color: white; /* Damit der Text gut lesbar bleibt */
}

label {
  display: block;
  font-family: var(--sans-serif);
}

.label {
  font-family: var(--sans-serif);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.sublabel {
  font-family: var(--sans-serif);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-top: 15px;
  padding-bottom: 15px;
}

.checkbox-caption {
  display: inline-block;
  font-family: var(--serif);
  font-size: 16px;
}

.examples {
  font-family: var(--sans-serif);
  font-size: 12px;
}
.notes {
  font-family: var(--sans-serif);
  font-size: 12px;
  margin-top: -4px;
  margin-bottom: 10px;
  color: #999;
}

.given-image {
  text-align: center;
  border: 1px solid white;
  /* position: relative;
  max-width: 200px; */
  /* aspect-ratio: 1/1;
  overflow: hidden; */
}

.given-image img {
  /* position: absolute;
  width: 100%;
  height: 100%; */
}

/* Wenn das Input-Feld fokussiert ist, ändert sich die Border zu rot */
.given-image:has(input:focus) {
  border-color: red;
}

.fancy-button {
  position: relative;
  padding: 15px 40px 13px 40px;
  border: 1px solid #000;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 1px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #8b0000, #ff5e00);
  overflow: hidden;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); */
  transition: all 0.5s ease;
  font-family: var(--sans-serif);
  background-size: 300px 300px;
}

.fancy-button:hover {
  background-position: -140px -140px;
  transition: all 0.5s ease;
}

.fancy-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-size: 150%;
  opacity: 1;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.fancy-button span {
  position: relative;
  z-index: 2;
}

/* popup */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.87);
  color: #fff;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  padding: 2rem;
  box-sizing: border-box;
}
.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.popup-content {
  max-width: 800px;
  margin: 5rem auto 2rem;
  line-height: 1.6;
}

.popup-content p,
.popup-content h1,
.popup-content h2,
.popup-content h3 {
  color: #fff;
}

.close-link {
  display: inline-block;
  border: 1px solid #fff;
  padding: 0.5rem 1rem;
  margin-top: 2rem;
  text-align: left;
  color: #fff;
  cursor: pointer;
  text-decoration: underline;
}

.popup-link {
  color: #000;
  text-decoration: none;
  font-family: var(--sans-serif);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.success-box {
  color: #00aa00;
}
