@font-face {
  font-family: "QuattrocentoSans";
  font-display: swap;
  font-weight: normal;
  src: url("/QuattrocentoSans-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "QuattrocentoSans";
  font-display: swap;
  font-weight: bold;
  src: url("/QuattrocentoSans-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "CostaRica";
  font-display: swap;
  src: url("/CostaRica.otf") format("opentype");
}

html {
--color-primary: #c07c40;
--color-dark-gray: #333333;
--color-white-gray: #f9f9f9;
--color-white-gray: #e2e1e0;

  font-size: 100%;
  font-family:
    "QuattrocentoSans",
    -apple-system, 
    BlinkMacSystemFont, 
    "Segoe UI", 
    Roboto, 
    "Helvetica Neue", 
    Arial, 
    "Noto Sans", 
    sans-serif;

  min-height: 100%;

  background-image: url('/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: rgba(247, 227, 207, 0.589);

  position: relative;

  scroll-padding-top: 2.5rem;
}

html::before {
  background-image: url('./noise.png');
  background-attachment: fixed;

  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  content: ' ';

  pointer-events: none;
  z-index: -1;

}

body {
  padding: 0;
  margin: 0;

  font-size: 1rem;
  line-height: 1.8rem;
  margin: auto;
  color: var(--color-dark-gray);

  text-align: justify;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.000em;
  font-family: 
    "QuattrocentoSans",
    -apple-system, 
    BlinkMacSystemFont, 
    "Segoe UI", 
    Roboto, 
    "Helvetica Neue", 
    Arial, 
    "Noto Sans", 
    sans-serif;
  font-weight: bold;
  margin-block: 1.500em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}


h1 {
  font-size: 1.750em;
}

h1:has(> picture) {
  text-align: center;
}


@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    h1:has(> picture) {
      animation: spin linear both;
      animation-timeline: view();
      animation-range: contain;
    }
  }
}

h2 {
  font-size: 1.500em;
}

h3 {
  font-size: 1.250em;
}

h4 {
  font-size: 1.125em;
}

h5 {
  font-size: 1.125em;
  font-weight: normal;
}

h6 {
  font-size: 1.000em;
  font-weight: normal;
}

nav ul {
  display: flex;
  padding: 0;
  gap: 0.5em; 
  max-width: 48rem;
  margin: auto;
}

nav ul li {
  display: inline;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  color: var(--color-primary);
  display: block;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  padding: 0.25rem 1.5rem;
  background: white;
  border-radius: 2px;

  font-family: "CostaRica";
  background: #ffffffd0;

  --corner-size: 0.35rem;

  /* clip-path: polygon(0 var(--corner-size),var(--corner-size) 0,calc(100% - var(--corner-size)) 0,100% var(--corner-size),100% calc(100% - var(--corner-size)),calc(100% - var(--corner-size)) 100%,var(--corner-size) 100%,0 calc(100% - var(--corner-size))); */
}

footer {
  background: rgb(0,0,0);
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
  padding-top: 3rem;
  margin-top: auto;
}

footer nav {
  max-width: 48rem;
  margin: auto;
  text-align: center;

}

footer nav ul {
  display: inline-block;
  max-width: 48rem;
  margin: auto;
}

footer nav ul li {
  display: inline-block;
}

footer nav ul li a {
  background: none;
  color: white;
  box-shadow:none;
}

article {
  max-width: 48rem;
  margin: auto;

  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  padding: 1rem 2rem;
  background: white;
  border-radius: 2px;

  background: #ffffffd0;

  backdrop-filter: blur(20px);
}

main {
  flex-grow: 1; /* Takes up available space */
}

p {
  margin-bottom: 1.500em;
}

p:has(+ p) {
  margin-bottom: 1.000em;
}

em {
  font-weight: bold;
  font-style: normal;
}

ul,
ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

ul {
  list-style-type: square;
}

li {
  margin-bottom: 0.5em;
}

img {
  height: auto;
  max-width: 100%;
  margin: auto;
}

@media screen and (max-width:440px) {
  body {
    padding: 0;
  }

  nav {
    padding: 0.5rem;
  }

  article {
    padding-inline: 1rem;
  }
}

body:has(:target:not(#info)) #info {
  display: none;
}

#spenden {
  display: none;
}

#spenden:target {
  display: initial;
}

#hilfe {
  display: none;
}

#hilfe:target {
  display: initial;
}