@charset "UTF-8";
/* CSS Document */

:root {
    --active-brightness: 0.85;
    --border-radius: 5px;
    --box-shadow: 2px 2px 10px;
    --color-accent: #118bee15;
    --color-bg: #f8f8f8;
    --color-bg-secondary: #e9e9e9;
    --color-link: #118bee;
    --color-secondary: #920de9;
    --color-secondary-accent: #920de90b;
    --color-shadow: #f4f4f4;
    --color-table: #118bee;
    --color-text: #000;
    --color-text-secondary: #999;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --hover-brightness: 1.2;
    --justify-important: center;
    --justify-normal: left;
    --line-height: 1.5;
    --width-card: 285px;
    --width-card-medium: 460px;
    --width-card-wide: 800px;
    --width-content: 1080px;
}

@media (prefers-color-scheme: dark) {
    :root[color-mode="user"] {
        --color-accent: #0097fc4f;
        --color-bg: #333;
        --color-bg-secondary: #555;
        --color-link: #0097fc;
        --color-secondary: #e20de9;
        --color-secondary-accent: #e20de94f;
        --color-shadow: #bbbbbb20;
        --color-table: #0097fc;
        --color-text: #f7f7f7;
        --color-text-secondary: #aaa;
    }
}


/* ===== Language switch (CSS-only, checkbox hack) ===== */

/* Hide the actual checkbox offscreen */
.lang-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Language switch container - fixed top right, unobtrusive */
.lang-switch {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
}

.lang-label {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #555;
    background: rgba(248, 248, 248, 0.85);
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background 0.2s, color 0.2s;
}

.lang-label:hover {
    background: rgba(240, 240, 240, 0.95);
    color: #222;
}

/* Default state (unchecked = German): show DE content, hide EN content */
/* Show "EN" label (click to switch to English) */
.lang-en-label {
    display: none;
}

.lang-de-label {
    display: inline;
}

/* Default: German visible, English hidden */
.lang-en {
    display: none;
}

.lang-de {
    display: block;
}

/* Inline variants (for spans inside headings etc.) */
span.lang-de,
strong.lang-de,
small.lang-de,
b.lang-de {
    display: inline;
}

span.lang-en,
strong.lang-en,
small.lang-en,
b.lang-en {
    display: none;
}

/* Checked state (English): hide DE, show EN */
.lang-checkbox:checked ~ * .lang-de,
.lang-checkbox:checked ~ header .lang-de,
.lang-checkbox:checked ~ footer .lang-de,
.lang-checkbox:checked ~ section .lang-de {
    display: none;
}

.lang-checkbox:checked ~ * .lang-en,
.lang-checkbox:checked ~ header .lang-en,
.lang-checkbox:checked ~ footer .lang-en,
.lang-checkbox:checked ~ section .lang-en {
    display: block;
}

/* Inline variants when checked */
.lang-checkbox:checked ~ * span.lang-en,
.lang-checkbox:checked ~ * strong.lang-en,
.lang-checkbox:checked ~ * small.lang-en,
.lang-checkbox:checked ~ * b.lang-en,
.lang-checkbox:checked ~ header span.lang-en,
.lang-checkbox:checked ~ header strong.lang-en,
.lang-checkbox:checked ~ header b.lang-en,
.lang-checkbox:checked ~ footer small.lang-en,
.lang-checkbox:checked ~ section span.lang-en {
    display: inline;
}

.lang-checkbox:checked ~ * span.lang-de,
.lang-checkbox:checked ~ * strong.lang-de,
.lang-checkbox:checked ~ * small.lang-de,
.lang-checkbox:checked ~ * b.lang-de,
.lang-checkbox:checked ~ header span.lang-de,
.lang-checkbox:checked ~ header strong.lang-de,
.lang-checkbox:checked ~ header b.lang-de,
.lang-checkbox:checked ~ footer small.lang-de,
.lang-checkbox:checked ~ section span.lang-de {
    display: none;
}

/* Toggle label text: show DE label when checked, hide EN label */
.lang-checkbox:checked ~ .lang-switch .lang-de-label {
    display: none;
}

.lang-checkbox:checked ~ .lang-switch .lang-en-label {
    display: inline;
}

/* Focus style for keyboard accessibility */
.lang-checkbox:focus-visible ~ .lang-switch .lang-label {
    outline: 2px solid #118bee;
    outline-offset: 2px;
}

/* ===== End language switch ===== */


html {
    scroll-behavior: smooth;
    height: 100%;
    min-height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 105%;
    }
}

@media screen and (max-width: 640px) {
    html {
        font-size: 100%;
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 90%;
        text-align: left;
    }
}


body {
    height: 100%;
    min-height: 100%;
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 300;
    font-size: 110%;
    background-color: #f8f8f8;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: var(--line-height);
    margin: 5%;
    overflow-x: hidden;
    padding: 0;
    /* alt background-image: url("p14.webp"); */
    background-image: url("bg-dh-kl.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
}

@media screen and (max-width: 991px) {
    body {
        background-image: url("bg-dh-double.webp");
        background-size: contain;
        background-repeat: repeat;
        background-position: center top;
    }
}


footer,
header,
main {
    margin: 0 auto;
    max-width: var(--width-content);
    padding: 1rem 1rem;
    background-color: #f8f8f8;
    background: var(--color-bg);
    text-align: center;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

main {
    background: rgba(248, 248, 248, 0.9);
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(3px);
}

article {
    text-align: justify;
}

@media screen and (max-width: 640px) {
    article {
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    article {
        text-align: left;
    }
}

h1 {
    font-size: 300%;
    font-weight: 300;
    text-align: center;
}

@media screen and (max-width: 640px) {
    h1 {
        font-size: 250%;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 180%;
    }
}

h2 {
    font-size: 200%;
    font-weight: 200;
    text-align: center;
}

@media screen and (max-width: 640px) {
    h2 {
        font-size: 180%;
    }
}

@media screen and (max-width: 480px) {
    h2 {
        font-size: 160%;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: var(--line-height);
}

hr {
    background-color: var(--color-bg-secondary);
    border: none;
    height: 1px;
    margin: 1rem 0;
    width: 100%;
}

li {
    line-height: 1.0;
    margin-bottom: 0.3em;
}

ul, ol {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Small gap between intro text and its following list */
.list-intro {
    margin-bottom: 0.4em;
}

.list-intro + ul {
    margin-top: 0;
}

address {
    font-size: 130%;
    text-align: center;
}

a:link {
    color: black;
}

a:visited {
    color: black;
}

a:hover {
    color: black;
}

a.dl:link {
    color: black;
    text-decoration: none;
}

a.dl:hover {
    color: black;
    text-decoration: none;
}

a.dl:visited {
    color: black;
    text-decoration: none;
}

small {
    color: var(--color-text);
}

figure {
    margin: 0;
    padding: 0;
}

figure img {
    max-width: 60%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 640px) {
    figure img {
        max-width: 80%;
    }
}

@media screen and (max-width: 480px) {
    figure img {
        max-width: 90%;
    }
}

figure figcaption {
    color: var(--color-text-secondary);
}

#port {
    float: right;
    width: 40%;
    text-align: center;
    font-style: italic;
    font-size: smaller;
    text-indent: 0;
    margin: 0.5em;
    padding: 0.5em;
}

details {
    margin: 1.3rem 0;
}

details summary {
    cursor: pointer;
}

.reveal {
    position: relative;
    transform: translateY(120px);
    opacity: 0;
    transition: 2s all ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

.centered {
    text-align: center;
}

#footer {
    text-align: center;
    color: #f8f8f8;
    font-size: 11px;
    font-style: italic;
}
