@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces[SOFT,WONK,opsz,wght].woff2') format('woff2-variations');
  font-weight: 100 900; /* Deckt den gesamten Gewichtsbereich ab */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces-Italic[SOFT,WONK,opsz,wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}


@font-face {
  font-family: 'Geom';
  src: url('/fonts/Geom[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geom';
  src: url('/fonts/Geom-Italic[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
    color-scheme: light dark;
    --darkmode: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --darkmode: 1;
  }
}

text {
	color: light-dark(#39332b, #e0dcd7);
}

a:not(:has(*)) {
    position: relative;
    color: light-dark(#657285, #919daf);
    text-decoration: none;
    z-index: 0;
}
a:not(:has(*))::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background-color: light-dark(#657285, #919daf);
    z-index: -1;
    transition: height 0.3s ease;
}
a:not(:has(*)):hover::before {
    height: 100%;
}
a:not(:has(*)):hover {
    color: light-dark(#e0dcd7, #39332b);
}

header, h1, h2, h3, h4 {
  font-family: "Geom", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

:root {
    --font-max-scale-factor: 3px;
    --font-mid-scale-factor: 0.275vw;
    --h1-minimum-size: 20;
    --h2-minimum-size: 14;
    --h3-minimum-size: 12;
    --h4-minimum-size: 8;
    --text-minimum-size: 8;
}

h1 {
    font-size: clamp(calc(var(--h1-minimum-size) * 1px), calc(var(--h1-minimum-size) * var(--font-mid-scale-factor)), calc(var(--h1-minimum-size) * var(--font-max-scale-factor)));
    white-space: nowrap;
}

h2 {
    font-size: clamp(calc(var(--h2-minimum-size) * 2px), calc(var(--h2-minimum-size) * var(--font-mid-scale-factor)), calc(var(--h2-minimum-size) * var(--font-max-scale-factor)));
}

h3 {
    font-size: clamp(calc(var(--h3-minimum-size) * 2px), calc(var(--h3-minimum-size) * var(--font-mid-scale-factor)), calc(var(--h3-minimum-size) * var(--font-max-scale-factor)));
}

h4 {
    font-size: clamp(calc(var(--h4-minimum-size) * 2px), calc(var(--h4-minimum-size) * var(--font-mid-scale-factor)), calc(var(--h4-minimum-size) * var(--font-max-scale-factor)));
}

body {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: regular;
  font-style: normal;
  font-variation-settings:
    "SOFT" 0,
    "WONK" 1;
  font-size: clamp(calc(var(--text-minimum-size) * 2px), calc(var(--text-minimum-size) * var(--font-mid-scale-factor)), calc(var(--text-minimum-size) * var(--font-max-scale-factor)));
  background-color: light-dark(#e0dcd7, #39332b);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0px;
  margin-left: 0px;
  margin-right: 0px;
}

body::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: url("everytexture.com-stock-paper-texture-00081.avif");
    filter: grayscale(1) brightness(0.65) contrast(calc((1 - var(--darkmode)) * 2 + 2));
    mix-blend-mode: overlay;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: cover;
}

::selection {
  background: #77869C;
  text-decoration-color: #2b3139;
}

a::selection {
    color: #2b3139;
}


img {
	max-width: 100% ;
}

header, h1 {
	text-align: center;
}


/* For TAGLIST.HTML */
.taglist {
	text-align: center ;
	clear: both ;
}

/* For NEXTPREV.HTML */
#nextprev {
	/* The container for both the previous and next articles. */
}
#prevart {
	float: left ;
	text-align: left ;
}
#nextart {
	float: right ;
	text-align: right ;
}
#nextart,#prevart {
	max-width: 33% ;
}
#altesbuch {
    width: 75%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4em;
}

dt {
    text-decoration: underline;
    font-weight: bold;
}

#footer-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5em;
}

#footer-icons img {
    height: 1.5em;
    width: 1.5em;
    display: block;
}

#footer-links a {
    padding: 10 0px;
}

#footer-links {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 0px;
}

#footer-right-side {
    display: flex;
    flex-direction: column;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
	background-color: light-dark(#c6cdd6, #39404b);
}

#footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

main, #footer-content {
    max-width: 800px;
    width: 80%;
}
