/* Reset and Base Styles */
:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --bg-elevated: #ffffff;
    --bg-muted: #fafafa;
    --bg-strong: #f3f3f3;
    --text: #333333;
    --text-strong: #000000;
    --text-muted: #888888;
    --line: #000000;
    --line-soft: #dddddd;
    --accent-strong: darkred;
    --footer-overlay: rgba(255, 255, 255, 0.9);
    --icon-filter: none;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111315;
        --bg-elevated: #111315;;
        --bg-muted: #1a1d21;
        --bg-strong: #20252a;
        --text: #e4e7eb;
        --text-strong: #f7f8fa;
        --text-muted: #a0a8b3;
        --line: #d7dce2;
        --line-soft: #3b434c;
        --accent-strong: darkred;
        --footer-overlay: rgba(17, 19, 21, 0.9);
        --icon-filter: invert(1) hue-rotate(180deg) brightness(1.1);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: "Red Hat Mono", monospace;
}

body {
    background: var(--bg);
}

.keyword {
    font-style: italic;
    white-space: nowrap;
    text-justify: none;
}

.insert {
    display: inline-flex;
    width: 0;
    height: 0;
    overflow: visible;
    justify-content: center;
    align-items: center;

    /* Positioning the "afterthought" */
    position: relative;
    bottom: 2.5em;
    left: 0.5em;

    transform: rotate(-3deg);

    /* Styling the text */
    font-size: 0.4em;
    white-space: nowrap;

    color: oklch(from currentcolor calc(l + 0.2) c h);
}

.layer-container {
    text-align: center;
    height: 3200vh;
    width: 100%;
    overflow-anchor: none;
}

.layerimg {
    top: 0;
    left: 0;
    width: 100%;
    height: 3200vh;
    z-index: 1;
}

#header-layer-container .layerimg {
    position: absolute;
}

.layerimg > rect { /* same as #full-layers for now */
    /* No keyframes needed! We map the variable directly to the style */
    fill: color-mix(in srgb, #555, #151616 calc(var(--scroll-p, 0) * 100%));
    transform: scaleY(clamp(0.3, 0.3 + var(--scroll-p, 0)*0.7, 1));

    transform-box: fill-box;
    transform-origin: center;
    /*transition: fill 0.01s linear, transform 0.01s linear;*/
}

@media (prefers-color-scheme: dark) {
    .layerimg > rect {
        fill: color-mix(in srgb, #eee, #aaa calc(var(--scroll-p, 0) * 100%));
    }
}

header svg {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.logobox {
    background: var(--bg-elevated);
    height: 2.5cm;
    max-height: 12.5vh;
    padding: 4pt;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    bottom: 0;
    z-index: 100;
    overflow: hidden;
    transition: height 0.4s ease, max-height 0.4s ease;
}

.logobox.logobox-stuck-bottom {
    height: 1cm;
    max-height: 1cm;
}

.logo { /*<img> of the logo SVG*/
    width: 8cm;
    max-width: 80vW;
    max-height: 80%;
    margin-top: 1cm;
    margin-bottom: 1cm;
}

.logobox .logo {
    width: 10cm;
    max-width: min(80vW, 10cm);
    max-height: 80%;
}

.logobox > * {
    margin: 0;
    padding: 0;
    width: fit-content;
    height: 100%;
}

.logobox.logobox-stuck-bottom .logo {
    margin: 0;
    width: auto;
}

body {
    line-height: 1.6;
    color: var(--text);
}

/* Content Blocks */
.content-block {
    margin: 0 0;
    padding: 24pt 8pt;
    text-align: center;
    border-top: 1.5pt solid var(--line);
    border-image: linear-gradient(to right, transparent calc(50% - 10cm), var(--line) calc(50% - 10cm), var(--line) calc(50% + 10cm), transparent calc(50% + 10cm)) 1;
}


.content-block-no-line-before {
    border-top: none;
    border-image: none;
}


.content-block > div {
    margin-left: auto;
    margin-right: auto;
    margin-top: 24pt;
    margin-bottom: 24pt;
}

.content-block .small-statement {
    font-size: 14pt;
    font-weight: 600;
}

.content-block .statement {
    font-size: 18pt;
    font-family: "Sixtyfour", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" 0;
}

.content-block h2 {
    font-size: 14pt;

    font-family: "Sixtyfour", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" -10;

    text-transform: uppercase;

}

.between-content-block {
    padding: 0 8pt;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}

.statement-block {
    font-size: 22pt;
    font-weight: 900;
    padding-top: 1em;
    padding-bottom: 1em;
    margin-left: auto;
    margin-right: auto;

    font-family: "Sixtyfour", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    font-variation-settings:
      "BLED" 0,
      "SCAN" -10;
}

.statement-block > p {
    max-width: 20cm;
    margin-left: auto;
    margin-right: auto;
    margin-top: 24pt;
    margin-bottom: 24pt;
}

.statement-block > p strong {
    color: var(--accent-strong);
}

.dominant-statement-block {
    margin-top: 16vh;
    margin-bottom: 16vh;
}

.enormous-text-block {
    font-size: 40pt;
    color: var(--accent-strong);
}

.enormous-text-block > p {
    max-width: 100%;
    width: 100%;
}

.narrow-statement{
    max-width: 14cm;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 620px) {
    .statement-block {
        font-size: 22pt;
    }

    .content-block {
        padding-top: 12pt;
        padding-bottom: 12pt;
    }

    .content-block .small-statement {
        font-size: 18pt
    }

    .content-block h2 {
        font-size: 22pt;
    }
}

.alt-bg {
    background-color: var(--bg-muted);
}

/* Column labeled content block layout */

.column-labeled-content-block {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 0 24pt;
}

.column-labeled-content-block h2,
.column-labeled-content-block > .section-description {
    grid-column: 1;
    align-self: start;
    text-align: left;
    margin: 8pt 0;
    justify-self: end;
    text-justify: inter-word;
    text-align: justify;
    text-align-last: right;
    align-self: start;
}

.column-labeled-content-block h2 {
    line-height: 1;
    text-align: right;
}

.column-labeled-content-block > * {
    max-width: 8cm;
}

.column-labeled-content-block > *:not(h2):not(.section-description) {
    grid-column: 2;
    grid-row: 1 / span 2;
    text-align: left;
    justify-self: start;
    align-self: center;
}

.column-labeled-content-block > div:not(.section-description) {
    margin-left: 0;
    margin-right: 0;
    margin-top: 6pt;
    margin-bottom: 0;
    text-align: left;
    align-self: start;
}

@media (max-width: 620px) {
    .column-labeled-content-block {
        grid-template-columns: 1fr;
    }

    .column-labeled-content-block h2,
    .column-labeled-content-block > .section-description {
        grid-column: 1;
        justify-self: center;
        text-align: center;
        text-align-last: center;
    }


    .column-labeled-content-block h2 {
        font-size: 14pt;
    }

    .column-labeled-content-block > *:not(h2):not(.section-description) {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
    }

    .column-labeled-content-block > div:not(.section-description) {
        text-align: center;
    }
}

/* Linkbutton layout */

.linkbutton {
    display: block;
    width: 100%;
    padding: 4pt;
    position: relative;
    text-decoration: none;
}

.linkbutton .animated-bars {
    position: absolute;
    top: 4pt;
    left: 4pt;
    color: var(--text-strong);
}

.linkbutton-title {
    display: block;
    margin-left: calc(4pt + 24px + 8pt); /* padding + icon width + margin */
    font-size: 12pt;
    font-weight: bold;
    color: var(--text-strong);
    text-align: left;
    text-decoration: none;
    line-height: 24px; /* match icon height */
}

.linkbutton-desc {
    display: block;
    margin-top: 0;
    margin-left: calc(4pt + 24px + 8pt); /* padding + icon width + margin */
    font-size: 12pt;
    font-weight: normal;
    text-align: left;
}

.linkbutton .contactlink {

    margin-left: calc(4pt + 24px + 8pt); /* padding + icon width + margin */
    font-size: 12pt;
    text-align: right;
}

.linkbutton:link .linkbutton-desc {
    color: royalblue; /* blue tinted dark gray */
    text-decoration: underline;
}

.linkbutton:visited .linkbutton-desc {
    color: rebeccapurple; /* purple tinted dark gray */
    text-decoration: underline;
}

.blog-overview-link {
    display: inline-block;
    margin-top: 10pt;
    font-size: 10pt;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    line-height: 1.4;
    transition: color 0.15s, border-color 0.15s;
}

.blog-overview-link:hover {
    color: #444;
    border-bottom-color: var(--text-muted);
}

.blog-overview-link:visited {
    color: color-mix(in srgb, var(--text-muted) 85%, var(--bg) 15%);
}

.theme-aware-link {
    cursor: pointer;
    color: var(--text-strong);
    text-decoration: none;
}


/* Peoplelist layout */

.peoplelist {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 10cm;
}

.peoplelist .personbox {
    padding: 4pt;
    text-align: left;
    position: relative;
}

.peoplelist .personbox:not(:last-child) {
    border-bottom: 1px double var(--line-soft);
}

.peoplelist .personbox h3 {
    font-size: 12pt;
    font-weight: bold;
    margin-bottom: 4pt;
}

.peoplelist .personbox p {
    font-size: 12pt;
    margin: 0;
}

.peoplelist .personbox a.iconlink {
    position: absolute;
    top: 6pt;
    right: 6pt;
}

a.iconlink {
    display: inline-block;
    filter: var(--icon-filter);
    width: 24px;
    height: 30px;
    overflow: hidden;
    text-indent: -9999px;
    white-space: nowrap;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    vertical-align: middle;

    padding-bottom: 6px;
    border-bottom: 1pt solid royalblue;
}

a.iconlink:visited {
    border-bottom: 1pt solid rebeccapurple;
}

a.iconlink[href*="linkedin.com"] {
    background-image: url('icons/LinkedIn_icon_BLACK.svg');
}

a.iconlink[href*="wikipedia.org"] {
    background-image: url('icons/Wikipedia_article_icon_BLACK.svg');
}

/* Footer */
.inline-footer {
    display: inline flex;
    text-align: center;
    padding: 10pt 0;
    padding-top: 30pt;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.inline-footer button {
    display: inline-block;
    background: var(--bg-muted);
    padding: 8pt;
    text-decoration: none;
    color: var(--text-strong);
    font-weight: normal;
    border: none;
    border-top: 1pt solid var(--line);
    border-bottom: 3pt double var(--line);
    cursor: pointer;
}

.inline-footer button:hover {
    border-bottom: 3pt solid var(--line);
}

.inline-footer button:active {
    background: color-mix(in srgb, var(--bg-muted) 70%, var(--text-strong) 30%);
}

.next-layers-to-reveal {
    display: none;
}


/* Imprint Section */
#imprint {
    text-align: center;
}

#imprint h2 {
    margin-bottom: 24pt;
}

#imprint p {
    margin-bottom: 16pt;
}

#imprint table {
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
    text-align: left;
}

#imprint table td {
    padding: 8pt 12pt;
    vertical-align: top;
}

#imprint table td:first-child {
    font-weight: bold;
    text-align: right;
}

#imprint table tr:not(:last-child) td {
    border-bottom: 1px solid var(--line-soft);
}



/* Footer */
footer {
    position: relative;
    color: var(--text-strong);
    text-align: center;
    padding: 0 0;
    font-size: 10pt;
    background: url('square-logo-stylized-background.svg') no-repeat center center / 100% 100%;
}

@media (prefers-color-scheme: dark) {
    footer {
        filter: invert(1) hue-rotate(180deg);
    }
}

footer > * {
    background: var(--footer-overlay);
    padding: 8pt 16pt;
    display: inline-block;
}


/* Scroll Hint Overlay */
#scroll-hint-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10vh;

    /* Subtle bottom vignette to make the hint readable over any background */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 90%);

    opacity: 0;
    transition: opacity 0.8s ease;
}

#scroll-hint-overlay.visible {
    opacity: 1;
}

.scroll-hint-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4pt;
    color: rgba(255, 255, 255, 0.92);
    font-family: "Red Hat Mono", monospace;
    font-size: 10pt;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95);
}

.scroll-hint-arrow {
    font-size: 18pt;
    line-height: 1;
    animation: scroll-hint-bounce 1.4s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
    0%, 100% { transform: translateY(0);   opacity: 0.92; }
    50%       { transform: translateY(9px); opacity: 0.55; }
}