@font-face {
    /* fonts.floriankarsten.com/space-grotesk */
    font-family: 'Space Grotesk Variable';
    src: url("/assets/fonts/SpaceGrotesk[wght].woff2") format("woff2-variations");
    font-weight: 100 700;
    font-style: normal;
    /* SS01 (alt a) SS02 (alt g) SS03 (alt y) SS04 (no serifs) */
    font-feature-settings: "ss02" 1, "ss03" 1, "ss04" 1;
}

:root {
    color-scheme: light dark;

    --clr-palette: 210, 10%;

    --clr-def-08: hsl(var(--clr-palette), 8%);
    --clr-str-14: var(--clr-palette), 14%;
    --clr-def-14: hsl(var(--clr-str-14));
    /* page, header, footer */
    --clr-def-16: hsl(var(--clr-palette), 16%);
    /* box: dark-theme */
    --clr-str-18: var(--clr-palette), 18%;
    --clr-def-18: hsl(var(--clr-str-18));
    /* row: dark-theme */
    --clr-def-30: hsl(var(--clr-palette), 30%);
    /* box: light-theme */
    --clr-def-40: hsl(var(--clr-palette), 40%);
    --clr-def-67: hsl(var(--clr-palette), 67%);
    --clr-def-80: hsl(var(--clr-palette), 80%);
    --clr-def-95: hsl(var(--clr-palette), 95%);
    --clr-def-98: hsl(var(--clr-palette), 98%);
    /* row: light-theme */

    --clr-primary-200: rgb(212, 212, 212);
    /* text: dark-theme == hsl(0, 0%, 83%); */
    --clr-primary-400: hsl(101, 29%, 57%);
    /* a: grün dark-theme */
    --clr-primary-500: hsl(101, 29%, 38%);
    /* a: grün light-theme */
    --clr-primary-511: hsl(62, 29%, 38%);
    /* a: gelblich-grün */
    --clr-primary-513: hsl(342, 29%, 38%);
    /* a: Magenta-Rot */
    --clr-primary-700: var(--clr-def-14);
    /* text: light-theme */

    --clr-body-100: light-dark(var(--clr-primary-700), var(--clr-primary-200));
    --clr-link-100: light-dark(var(--clr-primary-500), var(--clr-primary-400));

    --clr-bg-100: light-dark(var(--clr-def-98), var(--clr-def-18));
    --clr-bg-200: var(--clr-primary-200);
    --clr-bg-700: light-dark(var(--clr-def-30), var(--clr-def-14));
    --clr-bg-800: var(--clr-def-14);

    --clr-head: light-dark(var(--clr-def-30), var(--clr-def-95));
    --clr-muted: light-dark(var(--clr-head), var(--clr-def-80));
    --clr-nav: light-dark(var(--clr-def-40), var(--clr-def-80));

    --clr-ico-100: var(--clr-link-100);
    --clr-ico-200: light-dark(var(--clr-primary-200), var(--clr-def-30));
    --clr-ico-300: var(--clr-def-67);

    --fs-200: 0.9rem;
    --fs-300: 1rem;
    --fs-400: 1.125rem;
    --fs-500: 1.25rem;

    --ff-def: Space Grotesk Variable, system-ui, sans-serif;
    --ff-var: Consolas, Fira Mono, DejaVu Sans Mono, Menlo, Liberation Mono, Monaco, Lucida Console, monospace;

    --pic-width: 350px;
    --pic-height: 262px;
}

*,
:after,
:before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

h1,
h2,
h3,
h4,
h5,
h6,
blockquote {
    text-wrap: balance;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--ff-def);
    color: var(--clr-body-100);
    background-color: var(--clr-bg-800);
    margin: 0px auto;
    line-height: 1.5;
    font-size: var(--fs-400);
}

h1,
.h1 {
    font-weight: normal;
    color: var(--clr-head);
    fill: var(--clr-head);
    padding-bottom: 15px;
}

h2,
h3 {
    font-style: normal;
    font-weight: 600;
    color: var(--clr-head);
}

h1,
h2 {
    font-family: var(--ff-var);
}

section {
    padding-bottom: 3rem;
}

img {
    max-width: 100%;
    display: block;
}

a,
.a-eml {
    text-decoration: none;
    color: var(--clr-link-100);
}

a:hover,
.a-eml:hover {
    text-decoration: var(--clr-def-67) underline solid 1px;
    text-underline-offset: 0.25em;
}

/* a[rel]:is([rel=nofollow]), */
a:is([rel~="nofollow"], [rel~="noopener"], [rel~="noreferrer"]) {
    color: inherit;
}

.a-eml {
    cursor: pointer;
}

h1 a,
h2 a,
h3 a {
    color: var(--clr-head);
    display: inline-block;
}

/*.row a:not([rel="nofollow"]) {
    letter-spacing: 0.05em;
}*/

footer {
    font-size: 0.8em;
    line-height: 2em;
    background-color: var(--clr-bg-800);
    color: var(--clr-primary-200);
}

footer #end {
    text-align: center;
    padding: 10px;
}

footer .links {
    display: inline-block;
    padding-right: 50px;
    vertical-align: top;
    font-size: 1rem;
}

footer .links .title {
    font-variant: all-small-caps;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    letter-spacing: 0.2rem;
}

footer .links .title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--clr-primary-400);
}

footer .links a {
    color: var(--clr-primary-200);
}

footer .info {
    color: var(--clr-def-30);
    padding-left: 1rem;
}

footer .logo a .green {
    color: var(--clr-primary-400);
}

.col {
    max-width: 1050px;
    margin: auto;
}

.row {
    width: 100%;
    background-color: var(--clr-bg-100);
}

.row.dark {
    color-scheme: dark;
}

.row .col {
    padding-block: 2em;
    display: flex;
    flex-direction: column;
}

.row .col.navCloud {
    flex-direction: column-reverse;
}

.row .content sup,
.green {
    color: var(--clr-primary-400);
}

.content {
    margin: 0px;
    padding: 15px 15px 30px 15px;
    width: 100%;
}

.content ul {
    list-style-type: disclosure-closed;
}

.content ul li p {
    margin-top: 5px;
}

.content ul li .filetype,
.updatedate {
    font-variant: all-small-caps;
    font-weight: 600;
    letter-spacing: 0.1rem;
    padding-inline: 0.35rem;
    color: var(--clr-head);
}

.w750 {
    max-width: 780px;
}

.w36ch {
    max-inline-size: 36ch;
    margin-inline: auto;
}

.w66ch {
    max-inline-size: 66ch;
    margin-inline: auto;
}

.w66ch.left {
    margin-left: 0px;
}

.w80ch {
    max-inline-size: 80ch;
    margin-inline: auto;
}

.smallpage {
    min-height: 600px;
}

/* .wrapper404 {
    color-scheme: dark;
    color: var(--clr-def-95);
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    font-family: var(--ff-var);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9998;
    width: 100%;
}

.wrapper404 div {
    text-align: center
}

.wrapper404 div h1 {
    font-weight: 700;
    font-size: 4em;
    margin: 0;
    padding: 0;
    letter-spacing: -0.075em;
    text-shadow: 0px 0px 16px rgb(0, 0, 0);
    font-family: Cascadia Code, Segoe UI Mono, SF Mono, Roboto Mono, Ubuntu Mono, monospace;
}

.wrapper404 div p {
    margin: 0;
    text-transform: lowercase;
} */

/**
  * Logo
  */
header.site {
    margin: 0px;
    background-image: url('/assets/images/patrick-seiler.de.webp');
    background-size: cover;
    background-position: center center;
}

header.site .pattern {
    background: url('/assets/images/raster50.png');
}

header.site .h1,
footer .logo {
    font-weight: 600;
    margin: 0px;
    font-family: var(--ff-var);
    text-transform: lowercase;
    text-wrap: nowrap;
}

header.site .h1 {
    font-size: 1.8em;
    padding: 30px 15px;
}

footer .logo {
    font-size: 2em;
    padding-top: 15px;
    padding-bottom: 30px;
}

header.site .h1 a {
    /*background-color: hsla(var(--clr-str-18), .33);*/
    padding-inline: 0.25rem;
    border-radius: 0.25rem;
    backdrop-filter: blur(4px);
    text-shadow: 1px 1px 3px hsla(var(--clr-str-18), .5);
}

header.site .h1 a,
footer .logo a {
    color: var(--clr-primary-200);
    text-decoration: none;
    display: inline-flex;
}

.sp3px {
    padding: 3px;
}


/**
 * Fotos
 */
.fotos {
    padding-bottom: 1em;
}

.fotos.flex {
    display: flex;
    gap: 3rem 3rem;
    flex-wrap: wrap;
}

.fotos.grid {
    display: grid;
    gap: 3rem 3rem;
    grid-template-columns: repeat(auto-fit, var(--pic-width));
}

.fotos.center {
    max-width: var(--pic-width);
    margin: auto;
}

.fotos .image {
    background-color: var(--clr-bg-700);
    border-radius: 8px;
    overflow: hidden;
}

.fotos .image a {
    text-decoration: none;
}

.fotos .image a img {
    border-radius: 8px 8px 0px 0px;
    object-fit: cover;
    height: var(--pic-height);
    width: var(--pic-width);
}

.fotos .image a:hover img {
    transform: scale(1.2);
    transition: all .5s;
}

.fotos .image a>div {
    position: relative;
    overflow: hidden;
}


.fotos .image a>div>div {
    position: absolute;
    bottom: -1px;
    right: -1px;
    text-align: right;
    color: var(--clr-primary-200);
    background-color: var(--clr-bg-700);
    padding: .15em 1em;
    border-radius: .75em 0 0 0;
    font-size: .9em;
}

.fotos .image a>span {
    padding: 1em;
    margin: 0px;
    display: flex;
    flex-direction: column;
}

.fotos .image a>span * {
    color: var(--clr-primary-200);
}

.fotos .image a>span sup {
    line-height: 1em;
}

.fotos .image a>span>span:nth-child(1) {
    font-weight: 700;
}

/*.fotos .image a > span > span:nth-child(3) {
    padding-top: 1em;
    font-size: 0.9em;
    align-self: end;
}*/

.fotos .image a>span>span:nth-child(2) {
    min-height: 2lh;
}

.fotos-nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.fotos-nav>span {
    min-width: fit-content;
}

.fotos-nav span>span {
    padding-inline: .1rem;
}

.fotos-nav span a svg {
    height: 2rem;
}

.fotos-nav span a svg path {
    fill: var(--clr-ico-200);
}

.fotos-nav>span:hover a svg path {
    fill: var(--clr-ico-300);
}

.fotos-nav span a:hover svg path {
    fill: var(--clr-ico-100);
}

/* Hamburger-Icon */
@media only screen and (max-width: 600px) {

    .fotos.grid {
        grid-template-columns: minmax(min-content, var(--pic-width));
    }

}

/**
  * News
  */
.posts {
    display: grid;
    gap: 1.5rem 1.5rem;
    grid-template-columns: 1fr;
}

.posts .post h2,
.posts .post h3 {
    margin: 0px;
}

.posts .post .entry {
    margin-top: 1em;
}

.posts .post span.meta {
    text-align: left;
    font-size: var(--fs-200);
    font-style: italic;
    display: block;
    margin-block: .25em;
}

/*.posts .post span.meta a[rel]:is([rel=nofollow]) {
    color: var(--clr-link-050);
}*/

.posts .post>span.meta {
    font-family: var(--ff-var);
    font-style: normal;
}

/**
  * Clearfix
  */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}


/*
    form.w3-form
*/

form * {
    font-size: inherit;
}

input[type]:is([type=text], [type=password], [type=number], [type=email]),
textarea,
select {
    --clr-border-input: light-dark(var(--clr-primary-200), var(--clr-def-40));
    padding: .5rem;
    display: block;
    border: none;
    width: 100%;
    background-color: inherit;
    border-bottom: 2px solid var(--clr-border-input);
    transition: 0.5s;
    outline: none;
}

input[type]:is([type=text], [type=password], [type=number], [type=email]):focus,
textarea:focus,
select:focus {
    border-bottom: 2px solid var(--clr-primary-500);
}

input[inputmode]:is([inputmode=numeric]) {
    font-family: var(--ff-var);
    letter-spacing: .15rem;
}

form .section,
.w3-section {
    margin-block: 1em;
}

button,
input[type]:is([type=button], [type=reset], [type=submit]),
.row .content a.w3-button {
    border: none;
    display: inline-block;
    outline: none;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    color: var(--clr-primary-200);
    border-radius: 4px;
    background-color: var(--clr-primary-500);
    padding-block: .6em;
    padding-inline: 1.5em;
}

button:hover,
input[type]:is([type=button], [type=reset], [type=submit]):hover,
.row .content a.w3-button:hover {
    /*color: var(--clr-def-95);*/
    /*background-color: var(--clr-primary-300);*/
    color: var(--clr-def-98);
    opacity: .75;
    transition: background-color 0.5s;
    text-decoration: none;
}

button.w3-disabled,
input[type]:is([type=button], [type=reset], [type=submit]).w3-disabled {
    background-color: var(--clr-def-30);
}

.w3-input-required1 {
    display: inherit
}

.w3-input-required2 {
    display: inherit
}

.w3-input-required3 {
    display: none
}

.w3-maildom-1 {
    display: inline
}

.w3-maildom-2 {
    display: none
}

.w3-maildom-3 {
    display: none
}

.w3-maildom-4 {
    display: none
}

/*.w3-output-important{display:none;}
.w3-output-important-p{display:none;}*/

.center {
    text-align: center;
}


/**
  * (Index-) Counter
  */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    grid-gap: 2em;
    place-content: center;
    padding-block: 1em;
}

.counter-grid div {
    /*color: var(--clr-primary-100);*/
    color: var(--clr-def-95);
    background-color: var(--clr-bg-700);
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    /*border: 1px solid var(--clr-border-100);*/
}

.counter-grid div:hover {
    /*color: var(--clr-primary-300);*/
    color: var(--clr-primary-400);
    transform: scale(1.05) rotate(-1deg);
    transition: all 0.3s;
}

.counter-grid div:nth-child(2n+1):hover {
    transform: scale(1.05) rotate(1deg);
}

.counter-grid div span {
    font-size: 4em;
    font-weight: 700;
    margin-top: .2em;
    display: block;
    padding: 1rem;
}

.counter-grid div:hover span {
    transform: scale(1.2);
    transition: all 0.3s;
}

.counter-grid div p {
    padding: 0 1.5em;
    font-family: var(--ff-var);
}


.footnote {
    font-size: var(--fs-300);
}

.w3-output-important,
.w3-output-important-p,
.visually-hidden:not(:focus, :active) {
    block-size: 1px;
    clip-path: inset(50%);
    inline-size: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
}

@media only screen and (min-width: 600px) {
    .posts {
        grid-template-columns: 1fr 1fr;
    }

    header.site .h1 {
        font-size: 2.4em;
    }
}