/* =================================================
   Bilderwolke Website
   Zentrales Stylesheet fuer Startseite, Bildwolke
   und statische Textseiten.
   =================================================


1  Grundlayout
2  Bildlegende
3  Timeline
4  Tag Sidebar
5  Site Title
6  Meta Links
7  Story Overlay
8  Navigation / Back Link
9  Static Pages
10 Bildsystem
11 Animation
12 Mobile / Media Queries
13 Links

*/

/* ----------------------------- */
/* 01 Grundlayout */
/* ----------------------------- */

body {
    margin: 0;
    background: #181412;
    font-family: Arial, sans-serif;
    overflow-x: hidden;

}

@keyframes softAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:root {
    --cloud-image-width: 130px;
    --tag-image-width: 170px;
    --caption-width: 170px;
    --page-side-space: 40px;
}

#universe {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    perspective: 1200px;
    background: #1c1c1c;
}

/* ----------------------------- */
/* 02 Bildlegende */
/* ----------------------------- */

#caption {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    max-width: 700px;
    width: min(700px, calc(100vw - 48px));
    text-align: center;
    font-size: 19px;
    line-height: 1.7;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.98);
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: auto;
    white-space: normal;

    z-index: 500;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

#caption.active {
    text-shadow:
        0 4px 22px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.6);
}
#caption a {
    display: inline-block;
    margin-top: 0;

    color: rgba(120, 170, 220, 0.95);
    text-decoration: none;

    padding: 6px 14px;
    border-radius: 20px;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition: all 0.3s ease;
}

#caption a:hover {
    background: rgba(0, 0, 0, 0.5);
    color: rgba(200, 230, 255, 1);
}

#caption a:visited {
    color: rgba(120, 170, 220, 0.95);
}

/* ----------------------------- */
/* 03 Timeline links */
/* ----------------------------- */

#timeline {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 180px);
    overflow: hidden;
    z-index: 200;
}

.timeline-year {
    font-size: 16px;
    color: rgba(220, 230, 255, 0.35);
    cursor: pointer;
    transition: all 0.4s ease;
}

.timeline-year:hover {
    color: rgba(255, 255, 255, 0.85);
}

.timeline-year:focus-visible,
.tag-item:focus-visible,
.photo:focus-visible,
#current-focus:focus-visible,
#hamburger:focus-visible,
#meta-links a:focus-visible,
#meta-links button:focus-visible,
#mobile-menu a:focus-visible,
#mobile-menu button:focus-visible,
#tablet-actions a:focus-visible,
#tablet-actions button:focus-visible,
#tablet-filter-choices button:focus-visible,
#share-menu a:focus-visible,
#share-menu button:focus-visible,
.language-context-trigger:focus-visible,
.read-aloud-controls button:focus-visible,
.works-search-toggle:focus-visible,
.works-filter:focus-visible,
.works-back-to-top:focus-visible,
.work-card-link:focus-visible {
    outline: 2px solid rgba(235, 245, 255, 0.95);
    outline-offset: 4px;
}

/* ----------------------------- */
/* 04 Tag-Leiste rechts */
/* ----------------------------- */

#tag-sidebar {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: none;
    z-index: 200;
}

#tag-sidebar::-webkit-scrollbar {
    display: none;
}

#tablet-actions,
#tablet-filter-choices {
    display: none;
}

.tag-item {
    font-size: 16px;
    color: rgba(220, 230, 255, 0.35);
    cursor: pointer;
    transition: all 0.4s ease;
}

.tag-item:hover {
    color: rgba(255, 255, 255, 0.85);
}

.tag-item-random,
.tag-item-random.active {
    font-weight: 700;
}

/* Aktiver Zustand (Timeline & Tags gemeinsam) */

.timeline-year.active,
.tag-item.active {
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 1px;
    transform: translateX(4px);
}

/* ----------------------------- */
/* 05 Website-Titel oben rechts */
/* ----------------------------- */

#site-header {
    position: fixed;
    top: 30px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 400;
    animation: softAppear 1s ease 0.7s both;
}

body > #site-title {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 100;
    animation: softAppear 1s ease 0.7s both;
}

#site-title {
    margin: 0;
    font-size: 30px;
    letter-spacing: 0.05em;
    color: rgba(230, 240, 255, 0.82);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.site-author {
    margin: -2px 0 0;
    color: rgba(230, 240, 255, 0.58);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

/* ----------------------------- */
/* 06 Meta-Links unten rechts */
/* ----------------------------- */

#meta-links {
    position: fixed;
    right: 40px;
    bottom: 40px;
    display: flex;
    gap: 20px;
    font-size: 14px;
    letter-spacing: 0.5px;
    z-index: 300;
    animation: softAppear 0.95s ease 1.3s both;
}

#meta-links a,
#meta-links button {
    color: rgba(220, 230, 255, 0.45);
    text-decoration: none;
    transition: color 0.3s ease;
}

#meta-links .external-link {
    margin-left: 4px;
    padding-left: 18px;
    border-left: 1px solid rgba(220, 230, 255, 0.22);
}

#meta-links button {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    font: inherit;
    letter-spacing: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.share-trigger[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    padding: 4px 8px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(4, 18, 31, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.03em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.share-trigger[data-tooltip]:hover::after,
.share-trigger[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.share-icon {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    color: currentColor;
}

.share-icon::before,
.share-icon::after {
    content: "";
    position: absolute;
    left: 4px;
    width: 10px;
    height: 1px;
    background: currentColor;
    opacity: 0.78;
    transform-origin: left center;
}

.share-icon::before {
    top: 4px;
    transform: rotate(-27deg);
}

.share-icon::after {
    bottom: 4px;
    transform: rotate(27deg);
}

.share-icon {
    pointer-events: none;
    background-image:
        radial-gradient(circle, currentColor 0 2px, transparent 2.2px),
        radial-gradient(circle, currentColor 0 2px, transparent 2.2px),
        radial-gradient(circle, currentColor 0 2px, transparent 2.2px);
    background-position: 1px 7px, 14px 1px, 14px 13px;
    background-repeat: no-repeat;
    background-size: 4px 4px;
}

#meta-links a:hover,
#meta-links button:hover,
#meta-links button[aria-expanded="true"] {
    color: rgba(255, 255, 255, 0.85);
}

#share-menu {
    position: fixed;
    right: 34px;
    bottom: 72px;
    display: none;
    flex-direction: column;
    min-width: 142px;
    padding: 9px 0;
    background: rgba(4, 18, 31, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
}

#share-menu.open {
    display: flex;
}

#share-menu a,
#share-menu button {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 14px;
    color: rgba(235, 242, 250, 0.82);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

#share-menu a:hover,
#share-menu button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

#share-menu [hidden] {
    display: none;
}

.language-context-trigger {
    min-width: 34px;
    height: 30px;
    padding: 0 9px;
    appearance: none;
    -webkit-appearance: none;
    color: rgba(235, 242, 250, 0.82);
    background: rgba(4, 18, 31, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    line-height: 28px;
    letter-spacing: 0.08em;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.language-context-trigger:hover {
    color: #ffffff;
    background: rgba(4, 18, 31, 0.54);
    border-color: rgba(255, 255, 255, 0.28);
}

/* -------------------------------- */
/* 07 Story Overlay (Text-Ebene) */
/* -------------------------------- */

#story-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9000;
}

#story-content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;


    color: rgba(255,255,255,0.95);
    font-size: 20px;
    line-height: 1.8;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
    letter-spacing: 0.3px;

    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: 8px;
    position: relative;
}

#story-content button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: rgba(255,255,255,0.9);
    background: none;
    border: none;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.english-context h2 {
    margin: 0 0 24px;
    font-size: 28px;
    line-height: 1.2;
}

.english-context p {
    margin: 0 0 20px;
}

.english-context .context-kicker {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.poem {
    text-align: center;
}

.readmore {
    margin-top: 6px;
}

/* ================================= */
/* 08 Navigation */
/* ================================= */

/* ----------------------------- */
/* Back-Link (nur statische Seiten) */
/* ----------------------------- */

.back-link {
    position: fixed;
    top: 30px;
    left: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;

    border: 1px solid rgba(245, 248, 252, 0.22);
    border-radius: 50%;
    background: rgba(10, 14, 18, 0.58);
    backdrop-filter: blur(12px);

    font-size: 24px;
    line-height: 1;
    letter-spacing: 0;

    color: rgba(245, 248, 252, 0.92);
    text-decoration: none;

    z-index: 2000;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.back-link:visited {
    color: rgba(245, 248, 252, 0.92);
}

.back-link:hover {
    color: #ffffff;
    background: rgba(10, 14, 18, 0.82);
    border-color: rgba(245, 248, 252, 0.44);
}

.work-detail-fixed-back {
    top: 50%;
    left: 28px;
    transform: translateY(-50%);
    width: auto;
    min-width: 94px;
    height: 46px;
    gap: 8px;
    padding: 0 15px 0 13px;
    border-radius: 999px;
    font-size: 15px;
}

.work-detail-fixed-back span:first-child {
    font-size: 22px;
    line-height: 1;
}

.image-viewer-fixed-back {
    top: 50%;
    left: 28px;
    transform: translateY(-50%);
    width: auto;
    min-width: 94px;
    height: 46px;
    gap: 8px;
    padding: 0 15px 0 13px;
    border-radius: 999px;
    font-size: 15px;
}

.image-viewer-fixed-back span:first-child {
    font-size: 22px;
    line-height: 1;
}

.no-hover-color,
.no-hover-color:link,
.no-hover-color:visited,
.no-hover-color:active,
.no-hover-color:hover {
    color: inherit !important;
}

.back-link.no-hover-color,
.back-link.no-hover-color:link,
.back-link.no-hover-color:visited,
.back-link.no-hover-color:active,
.back-link.no-hover-color:hover {
    color: #ffffff !important;
}

/* ----------------------------- */
/* Copyright */
/* ----------------------------- */

#copyright {
    position: fixed;
    bottom: 40px;
    left: 40px;      /* gleich wie #timeline */
    font-size: 11px;
    letter-spacing: 0.5px;
    color: rgba(220, 230, 255, 0.7);
    z-index: 10000;
    pointer-events: none;
}

/* ----------------------------- */
/* Hamburger (standardmaessig unsichtbar) */
/* ----------------------------- */

#hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 26px;
    line-height: 1;
    color: white;
    background: transparent;
    border: 0;
    padding: 0;
    z-index: 10000;
    cursor: pointer;
}

/* ----------------------------- */
/* Mobile Menu */
/* ----------------------------- */

#mobile-menu {
    display: none;
}

#mobile-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background: rgba(4,18,31,0.95);
    backdrop-filter: blur(6px);
    padding: 80px 30px;
    gap: 20px;
    z-index: 9999;
}

#mobile-menu.open,
#mobile-menu a,
#mobile-menu a:link,
#mobile-menu a:visited,
#mobile-menu a:active,
#mobile-menu button {
    color: rgba(255,255,255,0.95);
    font-size: 1.15rem;
    line-height: 1.35;
    letter-spacing: 0.05em;
    text-decoration: none;
}

#mobile-menu button {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

#mobile-menu .external-link {
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

#mobile-menu .share-trigger[data-tooltip]::after {
    left: calc(100% + 10px);
    bottom: 50%;
    transform: translate(0, 50%);
}

#mobile-menu .share-trigger[data-tooltip]:hover::after,
#mobile-menu .share-trigger[data-tooltip]:focus-visible::after {
    transform: translate(0, 50%);
}

#mobile-menu a:hover,
#mobile-menu button:hover,
#mobile-menu button[aria-expanded="true"] {
    color: white;
}

/* ================================= */
/* 09 Static Page Layout */
/* ================================= */

.static-page {
    max-width: min(1120px, calc(100vw - 48px));
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto 140px;
    padding: 0 var(--page-side-space);
    padding-top: clamp(150px, 17vh, 230px);
    font-size: 17px;
    line-height: 1.85;
    color: rgba(230, 240, 255, 0.85);
    overflow-wrap: break-word;
}

.static-page h1 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: 26px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.95);
}

.static-page h2 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: 22px;
    margin-top: 42px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.static-page p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
}

.process-entry-grid {
    max-width: 920px;
    margin: 34px auto 36px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.process-entry-card {
    min-width: 0;
    margin: 0;
}

.process-entry-card-wide {
    grid-column: span 2;
}

.process-entry-card a {
    color: inherit;
    text-decoration: none;
}

.process-entry-card img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
}

.process-entry-series {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    min-height: 260px;
}

.process-entry-series img {
    height: 260px;
}

.process-entry-card figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(230, 240, 255, 0.78);
}

.process-entry-card figcaption strong,
.process-entry-card figcaption span {
    display: block;
}

.process-entry-card figcaption strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .process-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .process-entry-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-entry-card-wide {
        grid-column: auto;
    }

    .process-entry-card img,
    .process-entry-series img {
        height: 230px;
    }

    .process-entry-series {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: auto;
    }
}

body.book-page-view {
    min-height: 100vh;
    overflow-x: hidden;
    background: #1c1c1c;
}

.book-shell {
    width: min(1380px, calc(100vw - 48px));
    min-height: 100vh;
    box-sizing: border-box;
    margin: 0 auto;
    padding: clamp(130px, 14vh, 190px) 0 120px;
    color: rgba(236, 242, 247, 0.9);
}

body.book-zoomed .book-shell {
    width: min(1740px, calc(100vw - 32px));
}

.book-heading {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 18px;
    margin-bottom: 26px;
}

.book-heading h1 {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0;
}

.book-heading p {
    margin: 0;
    color: rgba(220, 230, 236, 0.62);
    font-size: 15px;
}

.book-stage {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
}

.book-spread {
    --book-spine-crop: clamp(6px, 0.7vw, 10px);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    justify-self: center;
    width: min(100%, 1120px);
    min-height: min(74vh, 760px);
    padding: clamp(14px, 1.8vw, 24px);
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid rgba(226, 218, 202, 0.48);
    background: linear-gradient(90deg, rgba(28, 24, 20, 0.98), rgba(39, 34, 28, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(255, 250, 238, 0.18),
        0 24px 80px rgba(0, 0, 0, 0.34);
    perspective: 1400px;
    transform-origin: center;
}

body.book-zoomed .book-spread {
    width: min(100%, 1500px);
    min-height: min(88vh, 980px);
}

.book-spread::before {
    content: "";
    position: absolute;
    top: clamp(14px, 1.8vw, 24px);
    bottom: clamp(14px, 1.8vw, 24px);
    left: 50%;
    width: 8px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.28),
        rgba(255, 255, 255, 0.92),
        rgba(255, 255, 255, 0.28)
    );
    opacity: 0.94;
    pointer-events: none;
}

.book-spread.is-continuous::before {
    display: none;
}

.book-spread.is-single {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 620px);
}

body.book-zoomed .book-spread.is-single {
    width: min(100%, 860px);
}

.book-spread.is-single::before {
    display: none;
}

.book-leaf {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
    background: #f4f0e8;
    overflow: hidden;
}

.book-leaf[hidden] {
    display: none;
}

.book-leaf-left {
    border-radius: 5px 0 0 5px;
    box-shadow: none;
}

.book-leaf-right {
    border-radius: 0 5px 5px 0;
    box-shadow: none;
}

.book-spread.is-single .book-leaf-right {
    border-radius: 5px;
    box-shadow: none;
}

.book-leaf img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f4f0e8;
}

.book-leaf-left img {
    clip-path: inset(0 var(--book-spine-crop) 0 0);
}

.book-leaf-right img {
    clip-path: inset(0 0 0 var(--book-spine-crop));
}

.book-spread.is-continuous .book-leaf-left img,
.book-spread.is-continuous .book-leaf-right img {
    clip-path: none;
}

.book-spread.is-continuous .book-leaf-left {
    transform: translateX(1px);
}

.book-spread.is-continuous .book-leaf-right {
    transform: translateX(-1px);
}

.book-spread.is-single .book-leaf-right img {
    clip-path: none;
}

.book-turn,
.book-control {
    border: 1px solid rgba(225, 236, 244, 0.28);
    background: rgba(10, 12, 14, 0.34);
    color: rgba(246, 249, 252, 0.92);
    font: inherit;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.book-turn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
}

.book-control {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
}

.book-turn:hover,
.book-control:hover,
.book-turn:focus-visible,
.book-control:focus-visible {
    color: #ffffff;
    border-color: rgba(245, 248, 252, 0.58);
    background: rgba(255, 255, 255, 0.08);
}

.book-turn:disabled,
.book-control:disabled {
    cursor: default;
    opacity: 0.32;
}

.book-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.book-text-callout {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(980px, 100%);
    margin: 34px auto 0;
    padding: 16px 18px 16px 76px;
    box-sizing: border-box;
    border: 1px solid rgba(225, 236, 244, 0.42);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(168, 189, 202, 0.1));
    color: rgba(246, 249, 252, 0.92);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.book-text-callout::before {
    content: "DE / EN";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 44px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
    text-align: left;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.book-text-callout[hidden] {
    display: none;
}

.book-text-callout strong {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.book-text-callout span {
    display: block;
    color: rgba(220, 230, 236, 0.72);
    font-size: 13px;
    line-height: 1.35;
}

.book-text-toggle {
    min-width: 142px;
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.98);
    font-weight: 700;
}

.book-page-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(230, 238, 244, 0.76);
    font-size: 14px;
    white-space: nowrap;
}

.book-page-jump input {
    width: 72px;
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid rgba(225, 236, 244, 0.28);
    border-radius: 8px;
    background: rgba(10, 12, 14, 0.32);
    color: rgba(246, 249, 252, 0.94);
    font: inherit;
    text-align: center;
}

.book-zoom-control {
    width: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
}

.book-text-panel {
    width: min(980px, 100%);
    margin: 10px auto 0;
    box-sizing: border-box;
    border: 1px solid rgba(225, 236, 244, 0.18);
    border-radius: 8px;
    background: rgba(10, 12, 14, 0.54);
    color: rgba(246, 249, 252, 0.92);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
}

.book-text-panel[hidden] {
    display: none;
}

.book-text-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(18px, 3vw, 28px);
    border-bottom: 1px solid rgba(225, 236, 244, 0.14);
}

.book-text-panel-header h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

.book-text-panel-actions {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
}

.book-text-close {
    width: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}

.book-text-content {
    max-height: min(58vh, 640px);
    overflow: auto;
    padding: 22px clamp(18px, 3vw, 28px) 28px;
    font-size: clamp(16px, 1.35vw, 18px);
    line-height: 1.62;
}

.book-text-section + .book-text-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(225, 236, 244, 0.14);
}

.book-text-section h3 {
    margin: 0 0 14px;
    color: rgba(220, 230, 236, 0.7);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.book-text-section p {
    margin: 0 0 16px;
    white-space: pre-line;
}

.book-text-section p:last-child {
    margin-bottom: 0;
}

.book-toc-link {
    position: absolute;
    left: 31%;
    width: 55%;
    height: 3.35%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.book-toc-link:hover,
.book-toc-link:focus-visible {
    outline: 1px solid rgba(40, 40, 40, 0.34);
    background: rgba(255, 255, 255, 0.22);
}

.book-text-link {
    position: absolute;
    right: clamp(12px, 2.2vw, 24px);
    bottom: calc(clamp(12px, 2.2vw, 24px) + (var(--book-text-link-index, 0) * 42px));
    z-index: 3;
    display: inline-flex;
    align-items: center;
    max-width: min(72%, 260px);
    min-height: 34px;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid rgba(70, 64, 54, 0.22);
    border-radius: 999px;
    background: rgba(249, 246, 237, 0.9);
    color: rgba(39, 35, 30, 0.86);
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(44, 35, 25, 0.14);
    backdrop-filter: blur(5px);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.book-text-link:hover,
.book-text-link:focus-visible {
    background: rgba(255, 255, 255, 0.96);
    color: rgba(20, 18, 16, 0.96);
    outline: 1px solid rgba(44, 38, 30, 0.28);
    transform: translateY(-1px);
}

.book-text-link[data-position="top"] {
    top: clamp(12px, 2.2vw, 24px);
    bottom: auto;
}

.book-text-link[data-position="above-middle"] {
    top: calc(50% - 8px);
    bottom: auto;
    transform: translateY(-100%);
}

.book-text-link[data-position="above-middle"]:hover,
.book-text-link[data-position="above-middle"]:focus-visible {
    transform: translateY(calc(-100% - 1px));
}

@media (max-width: 760px) {
    .book-shell {
        width: min(100vw - 28px, 620px);
        padding-top: 104px;
        padding-bottom: 82px;
    }

    .book-heading {
        margin-bottom: 18px;
    }

    .book-stage {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .book-spread {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 0;
        aspect-ratio: 0.68;
        padding: 12px;
    }

    body.book-zoomed .book-spread {
        width: min(100%, 760px);
        min-height: 0;
    }

    .book-turn {
        grid-row: 2;
        justify-self: center;
        width: 48px;
        height: 48px;
    }

    .book-turn-prev {
        grid-column: 1;
    }

    .book-turn-next {
        grid-column: 2;
    }

    .book-controls {
        margin-top: 26px;
    }

    .book-text-callout {
        align-items: stretch;
        flex-direction: column;
        margin-top: 26px;
        padding: 58px 16px 16px;
    }

    .book-text-callout::before {
        left: 16px;
        top: 16px;
        transform: none;
    }

    .book-text-toggle {
        width: 100%;
    }

    .book-text-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .book-text-panel-actions {
        width: 100%;
        justify-content: space-between;
    }

    .book-text-content {
        max-height: none;
    }

    .book-text-link {
        max-width: calc(100% - 24px);
        min-height: 32px;
        padding: 7px 10px;
        font-size: 12px;
    }
}

body.hub-page-view {
    min-height: 100vh;
    color: rgba(242, 246, 250, 0.9);
    background: linear-gradient(135deg, #171412 0%, #1d211f 47%, #111820 100%);
}

.hub-page {
    display: grid;
    align-content: center;
    width: min(1120px, calc(100vw - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 72px 0 54px;
    box-sizing: border-box;
    gap: 42px;
}

.hub-intro {
    max-width: 760px;
}

.hub-kicker,
.hub-link-label {
    margin: 0 0 12px;
    color: rgba(198, 218, 230, 0.66);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hub-intro h1 {
    margin: 0 0 20px;
    max-width: 820px;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(34px, 5.6vw, 72px);
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: 0;
}

.hub-intro p {
    margin: 0;
    max-width: 660px;
    color: rgba(232, 238, 244, 0.78);
    font-size: 18px;
    line-height: 1.68;
}

.hub-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hub-link {
    display: grid;
    grid-template-columns: minmax(118px, 36%) minmax(0, 1fr);
    min-height: 220px;
    color: rgba(242, 247, 252, 0.88);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.hub-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 255, 255, 0.2);
}

.hub-link-image {
    display: block;
    min-height: 100%;
    background: rgba(0, 0, 0, 0.28);
}

.hub-link-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-link-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    min-width: 0;
}

.hub-link-text strong {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.08;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.hub-link-text span:last-child {
    color: rgba(230, 238, 245, 0.76);
    font-size: 16px;
    line-height: 1.55;
}

.hub-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(225, 235, 245, 0.52);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.hub-footer a {
    color: rgba(225, 235, 245, 0.68);
    text-decoration: none;
}

.hub-footer a:hover {
    color: #ffffff;
}

@media (max-width: 860px) {
    .hub-page {
        width: min(680px, calc(100vw - 32px));
        min-height: auto;
        padding: 46px 0 34px;
        gap: 30px;
    }

    .hub-intro h1 {
        font-size: clamp(32px, 10vw, 52px);
    }

    .hub-intro p {
        font-size: 16px;
        line-height: 1.62;
    }

    .hub-links {
        grid-template-columns: 1fr;
    }

    .hub-link {
        grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
        min-height: 190px;
    }
}

@media (max-width: 540px) {
    .hub-page {
        width: calc(100vw - 28px);
        padding-top: 32px;
    }

    .hub-link {
        grid-template-columns: 1fr;
    }

    .hub-link-image {
        height: 172px;
        min-height: 0;
    }

    .hub-link-text {
        padding: 22px;
    }

    .hub-link-text strong {
        font-size: 28px;
    }
}

.video-page {
    max-width: min(1180px, calc(100vw - 48px));
}

.video-page h1 {
    max-width: 980px;
}

.video-frame {
    max-width: 980px;
    margin: 0 auto;
}

.video-frame video {
    display: block;
    width: 100%;
    max-height: min(68vh, 720px);
    background: rgba(0, 0, 0, 0.35);
}

.about-page {
    max-width: min(1120px, calc(100vw - 48px));
}

.about-page h2 {
    margin-top: 56px;
    margin-bottom: 26px;
}

.about-page h2:first-of-type {
    margin-top: 42px;
}

.award-recognition {
    max-width: 760px;
    margin: 64px auto 0;
    padding-top: 34px;
    border-top: 1px solid rgba(245, 248, 252, 0.16);
}

.award-recognition h2 {
    margin-top: 0;
}

.award-recognition p {
    margin-left: 0;
    margin-right: 0;
    color: rgba(230, 240, 255, 0.72);
}

.award-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 22px;
}

.award-badges a {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.82;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.award-badges a:hover,
.award-badges a:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
}

.award-badges img {
    display: block;
    width: 54px;
    height: 54px;
}

.award-badges img.award-badge-invert {
    filter: invert(1);
}

.year-list {
    display: grid;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    gap: 14px;
    margin-bottom: 34px;
}

.year-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.year-label {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.year-content {
    min-width: 0;
}

.year-description {
    display: block;
    margin-top: 4px;
    color: rgba(230, 240, 255, 0.7);
}

/* ----------------------------- */
/* Wortliste (für VSS-Seite) */
/* ----------------------------- */

.wortliste {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 760px;
    gap: 20px 80px;
    margin: 60px auto 0;
}

.wortliste a {
    display: block;
    color: rgba(230, 240, 255, 0.9);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.wortliste a:visited {
    color: rgba(230, 240, 255, 0.9);
}

.wortliste a:hover {
    opacity: 0.7;
}

.read-aloud-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 760px;
    gap: 8px;
    margin: 0 auto 28px;
}

.read-aloud-controls button,
.works-search-toggle,
.works-filter {
    padding: 7px 11px;
    color: rgba(245, 248, 252, 0.88);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
}

.read-aloud-controls button {
    color: rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.2);
}

.read-aloud-controls button:hover,
.works-search-toggle:hover,
.works-search-toggle[aria-expanded="true"],
.works-filter:hover,
.works-filter[aria-pressed="true"] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.read-aloud-controls .read-aloud-stop:not(:disabled) {
    background: rgba(180, 72, 60, 0.24);
    border-color: rgba(255, 190, 180, 0.42);
}

.read-aloud-controls .read-aloud-stop:not(:disabled):hover {
    background: rgba(205, 82, 68, 0.32);
    border-color: rgba(255, 215, 208, 0.58);
}

.read-aloud-controls button:disabled {
    cursor: default;
    opacity: 0.45;
}

.read-aloud-status {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    min-height: 1.2em;
    font-size: 0.82rem;
    color: rgba(235, 240, 246, 0.66);
}

.works-page {
    max-width: min(calc(760px + (var(--page-side-space) * 2)), calc(100vw - 48px));
}

.works-toolbar {
    margin: 34px 0 28px;
}

#works-count {
    margin: 0 0 14px;
    color: rgba(235, 240, 246, 0.72);
    font-size: 0.9rem;
}

.works-search-toggle {
    margin-bottom: 14px;
}

.works-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.works-filters[hidden] {
    display: none;
}

.works-grid {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.works-back-to-top {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 350;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    place-items: center;
    width: 42px;
    height: 104px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(4, 18, 31, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transform: translateX(-50%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.works-back-to-top:hover {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(4, 18, 31, 0.78);
    transform: translate(-50%, -2px);
}

.works-back-to-top.is-scrolling {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(4, 18, 31, 0.82);
}

.works-scroll-zone {
    display: grid;
    place-items: center;
    width: 34px;
    height: 32px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.works-scroll-zone:disabled {
    cursor: default;
    opacity: 0.24;
}

.works-scroll-zone:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: -1px;
}

.works-scroll-zone span {
    position: relative;
    width: 13px;
    height: 13px;
}

.works-scroll-stop span {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid currentColor;
    opacity: 0.74;
}

.works-back-to-top.is-scrolling .works-scroll-stop span {
    width: 13px;
    height: 13px;
    margin-left: 0;
    border-top: 0;
    border-bottom: 0;
    border-left: 4px solid currentColor;
    border-right: 4px solid currentColor;
}

.works-scroll-up span::before,
.works-scroll-down span::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 13px;
    height: 13px;
    border-top: 3px solid currentColor;
    border-left: 3px solid currentColor;
}

.works-scroll-up span::before {
    transform: rotate(45deg);
}

.works-scroll-down span::before {
    transform: rotate(225deg);
}

.works-year-heading {
    margin: 0 0 16px;
    color: rgba(235, 240, 246, 0.72);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1;
}

.works-year-grid {
    column-width: 180px;
    column-gap: 24px;
}

.work-card {
    display: block;
    min-width: 0;
    margin: 0 0 24px;
    break-inside: avoid;
}

.work-card-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.work-card-link:visited {
    color: inherit;
}

.work-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

img.image-rotate-left {
    transform: rotate(-90deg);
}

.work-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.work-card .work-tags {
    color: rgba(235, 240, 246, 0.56);
    font-size: 0.78rem;
}

.work-detail-page {
    max-width: min(1200px, calc(100vw - 48px));
}

.work-detail-tags {
    margin: 0 0 28px;
    color: rgba(235, 240, 246, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

.work-detail-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 78vh;
    margin: 34px auto 24px;
    border-radius: 6px;
}

.work-detail-open-link,
.work-detail-open-link:visited {
    color: rgba(245, 248, 252, 0.92);
    text-decoration: none;
}

.work-detail-open-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.image-viewer-view {
    overflow: hidden;
}

.image-viewer-page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    overflow: auto;
}

.image-viewer-image {
    display: block;
    width: auto;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    height: auto;
    cursor: zoom-in;
}

.image-viewer-view.image-viewer-original .image-viewer-page {
    display: block;
}

.image-viewer-view.image-viewer-original .image-viewer-image {
    max-width: none;
    max-height: none;
    margin: 0 auto;
    cursor: zoom-out;
}

.work-detail-back-link,
.work-detail-back-link:visited {
    color: rgba(245, 248, 252, 0.92);
    text-decoration: none;
}

.work-detail-back-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.vss-page {
    max-width: min(1120px, calc(100vw - 48px));
    margin: 0 auto 140px;
    padding-top: clamp(150px, 17vh, 230px);
}

.vss-intro {
    max-width: 760px;
    color: rgba(235, 242, 250, 0.88);
}

.vss-subtitle {
    margin-top: -18px;
    margin-bottom: 34px;
    color: rgba(235, 242, 250, 0.62);
    font-size: 18px;
    letter-spacing: 0.04em;
}

body.vss-text-view .static-page {
    min-height: 100svh;
    margin: 0 auto;
    padding-top: clamp(150px, 17vh, 230px);
    padding-bottom: clamp(90px, 12vh, 160px);
}

body.vss-text-view .read-aloud-controls {
    transform: translateY(-30px);
    margin-bottom: 38px;
}

.vss-page .read-aloud-controls {
    transform: translateY(-30px);
    margin-bottom: 38px;
}

/* ================================= */
/* 10 BILDSYSTEM */
/* ================================= */

/* Bilder im Universum */

.photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: filter 0.55s ease,
                opacity 2s ease;
    border-radius: 6px;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: fit-content;
}

.caption {
    margin-top: 8px;
    width: var(--caption-width);
    text-align: center;
    font-size: 7px;
    line-height: 1.35;
    color: #ddd;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

#current-focus {
    position: fixed;
    display: inline-block;
    top: 34px;
    left: 40px;
    max-width: min(220px, calc(100vw - 80px));
    padding: 5px 10px;
    color: rgba(242, 246, 250, 0.82);
    background: rgba(10, 14, 18, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    z-index: 101;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    animation: softAppear 0.95s ease 0.95s both;
}

#current-focus:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

#current-focus:visited,
#current-focus:active {
    color: rgba(242, 246, 250, 0.82);
}

#universe.zoom-active .photo.focused .caption {
    opacity: 1;
}

.image-stack {
    position: relative;
    width: var(--cloud-image-width);
    line-height: 0;
    order: 1;
}

.caption {
    order: 2;
}

.image-stack img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin-bottom: 8px;

    /* Rendering-Optimierung */
    image-rendering: auto;

    /* GPU-Stabilisierung und mehr Schärfe */
    transition: opacity 0.2s ease;
}

.image-stack img.image-rotate-left {
    transform: rotate(-90deg);
}

/* Grosses Bild (Full Version) liegt exakt ueber dem Cloud-Bild. */
.full-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.4s ease;
}

.background {
    filter: brightness(1.06);
    opacity: 1;
}

.photo.quiet-work.background {
    filter: brightness(0.92) saturate(0.88);
    opacity: 0.78;
}

.photo.quiet-work:not(.focused) .image-stack {
    width: calc(var(--cloud-image-width) * 0.72);
}

#universe.zoom-active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    z-index: 2;
}

/* Tiefengestaltung nur, wenn ein Tag aktiv ist. */

#universe.tag-active .photo.background {
    filter: brightness(0.7) saturate(0.82);
    opacity: 1;
}

#universe.tag-active .photo {
    transition: filter 0.45s ease,
                opacity 0.45s ease;
}

#universe.tag-active .photo.dimmed {
    filter: brightness(0.34) saturate(0.68);
    opacity: 1;
}

#universe.tag-focus-active .photo.tag-peer {
    filter: brightness(0.54) saturate(0.82);
    opacity: 0.86;
}

#universe.tag-focus-active .photo.tag-outside {
    filter: brightness(0.24) saturate(0.58);
    opacity: 0.72;
}

#universe.tag-active .photo.focused .image-stack {
    width: var(--tag-image-width);
}

#universe.zoom-active .photo.focused.full-ready .image-stack img:first-child {
    opacity: 0;
    transition-duration: 1.4s;
}

.photo.focused {
    filter: brightness(1);
    z-index: 5;
}

/* ================================= */
/* 11 Animation */
/* ================================= */

/* ----------------------------- */
/* Thought Text */
/* ----------------------------- */

/* Sanftes Ein- und Ausblenden fuer Gedankentexte. */
@keyframes thoughtFade {
    0%   { opacity: 0; }
    15%  { opacity: 1; }
    45%  { opacity: 1; }
    60%  { opacity: 0; }
    100% { opacity: 0; }
}

.thought-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    max-width: 620px;
    padding: 0 20px;

    font-size: 1.25rem;
    line-height: 1.9;
    letter-spacing: 0.02em;

    color: rgba(255, 255, 255, 0.96);
    text-align: left;

    z-index: 10;

    opacity: 0;
    transition: opacity 2s ease-in-out;

   text-shadow:
    0 3px 6px rgba(0,0,0,0.95),
    0 8px 22px rgba(0,0,0,0.7);
}

.thought-text.intro-thought {
    max-width: min(680px, calc(100vw - 64px));
    padding: 24px clamp(24px, 4vw, 44px);
    background: transparent;
    font-size: clamp(1.05rem, 1.45vw, 1.5rem);
    line-height: 1.85;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    text-shadow:
        0 3px 8px rgba(0, 0, 0, 1),
        0 12px 30px rgba(0, 0, 0, 0.96),
        0 0 22px rgba(0, 0, 0, 0.72);
}

.thought-text.intro-thought p {
    margin: 0 0 0.45em;
}

.thought-text.intro-thought p:last-child {
    margin-bottom: 0;
}

#loading-screen {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.loading-text {
    color: #181412;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    opacity: 0;
    transition: opacity 0.65s ease;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .tag-item:hover,
    #current-focus:hover {
        transform: none;
    }

    .thought-text {
        display: none;
    }
}

/* ================================= */
/* 12 RESPONSIVE / MEDIA QUERIES */
/* ================================= */


/* ----------------------------- */
/* Meta-Links behalten in allen Link-Zustaenden dieselbe Farbe. */
/* ----------------------------- */

#meta-links a,
#meta-links a:link,
#meta-links a:visited,
#meta-links a:active,
#meta-links button {
    color: #ffffff !important;
    text-decoration: none !important;
}

#meta-links a:hover,
#meta-links button:hover {
    color: #ffffff !important;
}

/* ----------------------------- */
/* Desktop- und Mobile-Anpassungen */
/* ----------------------------- */

@media (min-width: 1025px) and (max-width: 1920px) {

    :root {
        --cloud-image-width: 112px;
        --tag-image-width: 145px;
        --caption-width: 160px;
    }

    #timeline {
        left: 36px;
        gap: 12px;
    }

    #tag-sidebar {
        right: 36px;
        gap: 12px;
    }

    .timeline-year,
    .tag-item {
        font-size: 15px;
    }

    #site-header,
    body > #site-title {
        right: 36px;
    }

    #site-title {
        font-size: 26px;
    }

    .site-author {
        font-size: 12px;
    }

    #current-focus {
        top: 34px;
        left: 36px;
    }
}

@media (min-width: 1921px) {

    :root {
        --cloud-image-width: 150px;
        --tag-image-width: 200px;
        --caption-width: 190px;
    }

    #timeline {
        left: 44px;
        gap: 14px;
    }

    #tag-sidebar {
        right: 44px;
        gap: 14px;
    }

    .timeline-year,
    .tag-item {
        font-size: 16px;
    }

    #site-header,
    body > #site-title {
        right: 44px;
    }

    #site-title {
        font-size: 30px;
    }

    .site-author {
        font-size: 13px;
    }

    #current-focus {
        left: 44px;
    }
}

@media (min-width: 2560px) {

    :root {
        --cloud-image-width: 170px;
        --tag-image-width: 230px;
        --caption-width: 220px;
    }
}

@media (min-width: 3200px) {

    :root {
        --cloud-image-width: 190px;
        --tag-image-width: 260px;
        --caption-width: 250px;
    }

    #timeline,
    #tag-sidebar {
        gap: 16px;
    }

    .timeline-year,
    .tag-item {
        font-size: 21px;
    }

    #site-title {
        font-size: 34px;
    }

    .site-author {
        font-size: 15px;
    }

    #meta-links {
        font-size: 21px;
    }

    #current-focus {
        font-size: 13px;
    }

    .back-link {
        font-size: 21px;
    }

    .static-page {
        max-width: 900px;
        margin-top: 0;
        padding-top: clamp(170px, 16vh, 250px);
        font-size: 21px;
        line-height: 1.82;
    }

    .static-page h1 {
        font-size: 34px;
    }

    .static-page h2 {
        font-size: 28px;
    }

    .vss-page {
        max-width: 900px;
        padding-top: clamp(170px, 16vh, 250px);
    }

    .vss-intro {
        max-width: 900px;
    }

    .vss-subtitle {
        font-size: 22px;
    }

    .wortliste {
        gap: 24px 90px;
    }

    .thought-text {
        max-width: 820px;
        font-size: 1.55rem;
        line-height: 1.85;
    }

    .caption {
        font-size: 8px;
    }
}

@media (min-width: 1025px) and (max-width: 1500px) {

    :root {
        --cloud-image-width: 92px;
        --tag-image-width: 118px;
        --caption-width: 145px;
    }

    #timeline {
        left: 30px;
        gap: 10px;
        max-height: calc(100vh - 150px);
    }

    #tag-sidebar {
        right: 30px;
        gap: 10px;
        max-height: calc(100vh - 180px);
    }

    .timeline-year,
    .tag-item {
        font-size: 14px;
    }

    #site-header,
    body > #site-title {
        top: 26px;
        right: 30px;
    }

    #site-title {
        font-size: 22px;
    }

    #current-focus {
        top: 30px;
        left: 30px;
        font-size: 11px;
    }

    #meta-links {
        right: 30px;
        bottom: 30px;
        gap: 14px;
        font-size: 13px;
    }

    #share-menu {
        right: 24px;
        bottom: 62px;
    }

    #copyright {
        left: 30px;
        bottom: 30px;
    }
}

@media (max-width: 1024px) {

    :root {
        --cloud-image-width: 110px;
        --tag-image-width: 145px;
        --caption-width: 160px;
        --page-side-space: 34px;
    }

    .image-stack {
        width: var(--cloud-image-width);
    }

    #timeline {
        display: none;
    }

    #tag-sidebar {
        display: none;
    }

    #meta-links {
        display: none;
    }

    #share-menu {
        top: 250px;
        right: 28px;
        bottom: auto;
    }

    #hamburger {
        display: block;
    }

    #site-header,
    body > #site-title {
        top: 18px;
        right: 70px;
    }

    #site-header {
        gap: 6px;
    }

    #site-title {
        font-size: 18px;
        max-width: calc(100vw - 120px);
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: rgba(4, 18, 31, 0.40);
        padding: 6px 10px;
        border-radius: 6px;
        backdrop-filter: blur(4px);
    }

    .site-author {
        max-width: calc(100vw - 120px);
        font-size: 10px;
    }

    #current-focus {
        top: 64px;
        left: 24px;
        right: auto;
        padding: 6px 10px;
        font-size: 11px;
        max-width: calc(100vw - 110px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #copyright {
        display: none;
    }
}

/* ----------------------------- */
/* TABLET – 769px bis 1024px */
/* ----------------------------- */

@media (min-width: 769px) and (max-width: 1024px) {

    .static-page {
        max-width: 760px;
        margin: 0 auto 90px;
        padding-top: 136px;
        font-size: 18px;
        line-height: 1.85;
    }

    .static-page h1 {
        font-size: 28px;
    }

    .static-page h2 {
        font-size: 20px;
        margin-top: 38px;
        margin-bottom: 16px;
    }

    /* Wortliste Tablet */
    .wortliste {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 40px;
    }

    .wortliste a {
        font-size: 1.4rem;
        line-height: 1.8;
    }

    .vss-page {
        max-width: 760px;
        padding-top: 136px;
    }

    .year-row {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 20px;
    }

}

@media (min-width: 700px) and (max-width: 1024px) {

    #timeline,
    #tag-sidebar {
        display: flex;
        gap: 8px;
        max-height: calc(100vh - 180px);
    }

    #timeline {
        left: 22px;
    }

    #tag-sidebar {
        right: 22px;
    }

    .timeline-year,
    .tag-item {
        font-size: 12px;
    }

}

/* ----------------------------- */
/* MOBILE – bis 768px */
/* ----------------------------- */

@media (max-width: 768px) {

    :root {
        --cloud-image-width: 92px;
        --tag-image-width: 124px;
        --caption-width: min(220px, calc(100vw - 48px));
        --page-side-space: 24px;
    }

    /* Grundlayout */
    .image-stack {
        width: var(--cloud-image-width);
    }

    #timeline,
    #tag-sidebar {
        display: none;
    }

    #meta-links {
        display: none;
    }

    #copyright {
        display: none;
    }

    /* Hamburger sichtbar */
    #hamburger {
        display: block;
    }

    #site-header,
    body > #site-title {
        top: 18px;
        right: 70px;
    }

    #site-header {
        gap: 6px;
    }

    /* Titel Abstand */
    #site-title {
        font-size: 18px;
        max-width: calc(100vw - 120px);
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: rgba(4, 18, 31, 0.40);
        padding: 6px 10px;
        border-radius: 6px;
        backdrop-filter: blur(4px);
    }

    .site-author {
        max-width: calc(100vw - 120px);
        font-size: 10px;
    }

    #current-focus {
        top: 66px;
        left: 18px;
        right: auto;
        max-width: calc(100vw - 120px);
    }

    /* Kleine Caption */
    #caption {
        bottom: 24px;
        left: 50%;
        right: auto;
        width: calc(100vw - 40px);
        max-width: 420px;
        font-size: 13px;
        line-height: 1.5;
    }

    /* Story Overlay scrollen */
    #story-overlay {
        align-items: flex-start;
        padding-top: 72px;
        padding-bottom: 40px;
        padding-left: 18px;
        padding-right: 18px;
        overflow-y: auto;
        box-sizing: border-box;
    }

    #story-content {
        max-height: none;
        width: 100%;
        padding: 18px 0 40px;
        font-size: 15px;
        line-height: 1.6;
        overflow-y: visible;
    }

    .static-page {
        max-width: none;
        margin: 0 auto 72px;
        padding-top: 106px;
        font-size: 16px;
        line-height: 1.72;
    }

    .static-page h1 {
        font-size: 24px;
        margin-bottom: 26px;
    }

    .static-page h2 {
        font-size: 19px;
        margin-top: 34px;
        margin-bottom: 14px;
    }

    .back-link {
        top: 24px;
        left: 24px;
    }

    .vss-page,
    body.vss-text-view .static-page {
        min-height: auto;
        margin: 0 auto 76px;
        padding-top: 106px;
        padding-bottom: 72px;
        display: block;
    }

    body.vss-text-view .read-aloud-controls {
        transform: translateY(-16px);
        margin-bottom: 30px;
    }

    .vss-page .read-aloud-controls {
        transform: translateY(-16px);
        margin-bottom: 30px;
    }

    /* Wortliste Mobile */
    .wortliste {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }

    .wortliste a {
        font-size: 1.3rem;
        padding: 0;
        line-height: 1.6;
    }

    .year-list {
        gap: 12px;
    }

    .year-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .year-label {
        font-size: 0.9rem;
        letter-spacing: 0.06em;
    }

}

@media (min-width: 700px) and (max-width: 768px) {

    #timeline,
    #tag-sidebar {
        display: flex;
        gap: 8px;
        max-height: calc(100vh - 180px);
    }

    #timeline {
        left: 18px;
    }

    #tag-sidebar {
        right: 18px;
    }

    .timeline-year,
    .tag-item {
        font-size: 11px;
    }

}

@media (min-width: 700px) and (max-width: 1024px) and (orientation: portrait) {

    :root {
        --cloud-image-width: 110px;
        --tag-image-width: 145px;
        --caption-width: 160px;
    }

    #timeline,
    #tag-sidebar {
        display: flex;
        gap: 7px;
        max-height: calc(100vh - 190px);
    }

    #timeline {
        left: 14px;
    }

    #tag-sidebar {
        right: 14px;
    }

    .timeline-year,
    .tag-item {
        font-size: 10px;
        line-height: 1.2;
    }

}

@media (min-width: 900px) and (max-width: 1024px) and (max-height: 520px) {

    :root {
        --cloud-image-width: 76px;
        --tag-image-width: 102px;
        --caption-width: 145px;
    }

    #timeline,
    #tag-sidebar {
        display: flex;
        gap: 6px;
        max-height: calc(100vh - 120px);
    }

    #timeline {
        left: 16px;
    }

    #tag-sidebar {
        right: 16px;
    }

    .timeline-year,
    .tag-item {
        font-size: 10px;
        line-height: 1.15;
    }

}

/* ----------------------------- */
/* IPAD – klassische Wolke mit Filtern unten */
/* ----------------------------- */

html.tablet-controls-classic #tablet-actions {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 12px;
    z-index: 260;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(5, 14, 24, 0.68);
    backdrop-filter: blur(14px);
}

html.tablet-controls-classic #tablet-filter-choices {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 72px;
    z-index: 260;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(5, 14, 24, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

html.tablet-controls-classic #tablet-actions button,
html.tablet-controls-classic #tablet-actions a,
html.tablet-controls-classic #tablet-filter-choices button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(246, 248, 250, 0.86);
    font: inherit;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

html.tablet-controls-classic #tablet-actions button[aria-expanded="true"],
html.tablet-controls-classic #tablet-actions button:active,
html.tablet-controls-classic #tablet-actions a:active,
html.tablet-controls-classic #tablet-filter-choices button:active {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.96);
}

html.tablet-controls-classic.tablet-controls-filter-open #tablet-filter-choices {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

html.tablet-controls-classic #timeline,
html.tablet-controls-classic #tag-sidebar {
    left: 28px;
    right: 28px;
    top: auto;
    bottom: 72px;
    transform: translateY(10px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    max-height: none;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

@media (max-width: 1024px) {
    html:not(.tablet-controls-classic) #timeline,
    html:not(.tablet-controls-classic) #tag-sidebar {
        display: none;
    }
}

html.tablet-controls-classic #timeline::-webkit-scrollbar,
html.tablet-controls-classic #tag-sidebar::-webkit-scrollbar {
    display: none;
}

html.tablet-controls-classic.tablet-controls-years-open #timeline,
html.tablet-controls-classic.tablet-controls-themes-open #tag-sidebar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

html.tablet-controls-classic .timeline-year,
html.tablet-controls-classic .tag-item {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

html.tablet-controls-classic .timeline-year.active,
html.tablet-controls-classic .tag-item.active {
    transform: translateY(-2px);
}

html.tablet-controls-classic #caption {
    bottom: 84px;
}

@media (orientation: portrait) and (min-width: 540px) and (max-width: 1200px) {
    html.android-tablet-controls #caption {
        transform: translateX(-50%) translateY(-100%) translateZ(0);
    }
}

#caption.bottom-caption {
    width: min(640px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    padding: 11px 15px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(5, 12, 20, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    font-size: clamp(14px, 1.55vw, 16px);
    line-height: 1.45;
    letter-spacing: 0;
    text-shadow: none;
}

html.tablet-controls-classic #universe.zoom-active .photo.focused .caption {
    opacity: 0;
}

html.bottom-caption-active #timeline,
html.bottom-caption-active #tag-sidebar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 1024px) {
    #caption {
        bottom: 24px;
    }

    #universe.zoom-active .photo.focused .caption {
        opacity: 0;
    }
}

@media (orientation: landscape) and (min-width: 850px) and (max-height: 760px) {
    #hamburger {
        display: block;
    }

    #site-header,
    body > #site-title {
        top: 18px;
        right: 70px;
    }

    #site-header {
        gap: 6px;
    }

    #site-title {
        font-size: 18px;
        max-width: calc(100vw - 120px);
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: rgba(4, 18, 31, 0.40);
        padding: 6px 10px;
        border-radius: 6px;
        backdrop-filter: blur(4px);
    }

    .site-author {
        max-width: calc(100vw - 120px);
        font-size: 10px;
    }

    #meta-links,
    #copyright {
        display: none;
    }

    html.tablet-controls-classic #tablet-actions {
        position: fixed;
        left: 18px;
        right: 18px;
        bottom: max(14px, env(safe-area-inset-bottom));
        z-index: 260;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        padding: 7px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 18px;
        background: rgba(5, 14, 24, 0.72);
        backdrop-filter: blur(14px);
    }

    html.tablet-controls-classic #tablet-actions button,
    html.tablet-controls-classic #tablet-actions a,
    html.tablet-controls-classic #tablet-filter-choices button {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.055);
        color: rgba(246, 248, 250, 0.86);
        font: inherit;
        font-size: 12px;
        line-height: 1;
        text-decoration: none;
        cursor: pointer;
    }

    #timeline,
    #tag-sidebar {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    #universe.zoom-active .photo.focused .caption {
        opacity: 0;
    }

    #caption.bottom-caption {
        bottom: 72px;
    }
}

html.tablet-controls-classic #hamburger {
    display: block;
}

html.tablet-controls-classic #meta-links,
html.tablet-controls-classic #copyright {
    display: none;
}

html.tablet-controls-classic #site-header,
html.tablet-controls-classic body > #site-title {
    top: 18px;
    right: 70px;
}

html.tablet-controls-classic #site-header {
    gap: 6px;
}

html.tablet-controls-classic #site-title {
    font-size: 18px;
    max-width: calc(100vw - 120px);
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(4, 18, 31, 0.40);
    padding: 6px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

html.tablet-controls-classic .site-author {
    max-width: calc(100vw - 120px);
    font-size: 10px;
}

html.tablet-controls-classic #current-focus {
    top: 64px;
    left: 24px;
    right: auto;
    padding: 6px 10px;
    font-size: 11px;
    max-width: calc(100vw - 110px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.tablet-controls-classic #share-menu {
    top: 250px;
    right: 28px;
    bottom: auto;
}

@media (orientation: portrait) and (min-width: 540px) and (max-width: 1200px) {
    html.tablet-controls-classic #tablet-actions {
        position: fixed;
        left: 18px;
        right: 18px;
        bottom: 12px;
        z-index: 260;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
        padding: 7px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 18px;
        background: rgba(5, 14, 24, 0.68);
        backdrop-filter: blur(14px);
    }

    html.tablet-controls-classic #tablet-actions button,
    html.tablet-controls-classic #tablet-actions a,
    html.tablet-controls-classic #tablet-filter-choices button {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.055);
        color: rgba(246, 248, 250, 0.86);
        font: inherit;
        font-size: 12px;
        line-height: 1;
        text-decoration: none;
        cursor: pointer;
    }
}

/* ----------------------------- */
/* MOBILE – 480px */
/* ----------------------------- */

@media (max-width: 480px) {

    :root {
        --cloud-image-width: 82px;
        --tag-image-width: 108px;
        --caption-width: min(210px, calc(100vw - 36px));
        --page-side-space: 20px;
    }

    #hamburger {
        top: 16px;
        right: 16px;
    }

    #site-header,
    body > #site-title {
        top: 16px;
        right: 58px;
    }

    #site-header {
        gap: 5px;
    }

    #site-title {
        font-size: 16px;
        max-width: calc(100vw - 108px);
    }

    .site-author {
        max-width: calc(100vw - 108px);
        font-size: 9px;
    }

    #current-focus {
        top: 60px;
        left: 14px;
        padding: 5px 9px;
        max-width: calc(100vw - 104px);
    }

    #mobile-menu.open {
        width: 100%;
        box-sizing: border-box;
        padding: 78px 28px 36px;
    }

    .static-page {
        margin-top: 0;
        padding-top: 96px;
        font-size: 15.5px;
        line-height: 1.68;
    }

    .vss-page,
    body.vss-text-view .static-page {
        margin-top: 0;
        padding-top: 96px;
    }

    .wortliste {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 8px;
    }

    .wortliste a {
        text-align: left;
        line-height: 1.8;
        margin: 0;
        padding: 0;
    }

    .static-page h1 {
        text-align: center;
        line-height: 1.2;
    }

}

@media (max-width: 1024px) and (max-height: 520px) {

    :root {
        --cloud-image-width: 70px;
        --tag-image-width: 88px;
        --caption-width: min(260px, calc(100vw - 48px));
    }

    #site-header,
    body > #site-title {
        top: 12px;
        right: 56px;
    }

    #site-header {
        gap: 4px;
    }

    #site-title {
        font-size: 15px;
        max-width: calc(100vw - 104px);
        padding: 5px 8px;
    }

    #current-focus {
        top: 50px;
        left: 14px;
        font-size: 10px;
        padding: 4px 8px;
        max-width: calc(100vw - 102px);
    }

    #hamburger {
        top: 10px;
        right: 14px;
        font-size: 26px;
    }

    #caption {
        bottom: 14px;
        width: calc(100vw - 42px);
        max-width: 520px;
        font-size: 12px;
        line-height: 1.35;
    }

    #mobile-menu.open {
        width: 100%;
        box-sizing: border-box;
        padding: 56px 28px 24px;
        gap: 12px;
        overflow-y: auto;
    }

    #share-menu {
        top: 222px;
        right: 28px;
    }
}

.archive-link {
    font-weight: normal;
    font-size: 0.9em;
    letter-spacing: 0.03em;
    color: rgba(230, 240, 255, 0.6);
    text-decoration: none;
}

.archive-link:hover {
    opacity: 0.8;
}
/* ================================= */
/* 13 Links */
/* ================================= */

/* ----------------------------- */
/* Mail-Links */
/* ----------------------------- */

.mail-link {
    color: #7ec8ff;
    text-decoration: none;
}

.mail-link:visited {
    color: #7ec8ff;
}

.mail-link:hover {
    color: #7ec8ff;
    text-decoration: underline;
}
/* ----------------------------- */
/* Essay-Links */
/* ----------------------------- */

.essay-link {
    color: #7ec8ff;
    text-decoration: none;
}

.essay-link:visited {
    color: #7ec8ff;
}

.essay-link:hover {
    color: #7ec8ff;
    text-decoration: underline;
}

body.work-detail-view .work-detail-fixed-back {
    top: 50%;
    left: 28px;
    transform: translateY(-50%);
    width: auto;
    min-width: 94px;
    height: 46px;
    gap: 8px;
    padding: 0 15px 0 13px;
    border-radius: 999px;
    font-size: 15px;
}

body.image-viewer-view .image-viewer-fixed-back {
    top: 50%;
    left: 28px;
    transform: translateY(-50%);
    width: auto;
    min-width: 94px;
    height: 46px;
    gap: 8px;
    padding: 0 15px 0 13px;
    border-radius: 999px;
    font-size: 15px;
}

@media (max-width: 720px) {
    body.work-detail-view .work-detail-fixed-back,
    body.image-viewer-view .image-viewer-fixed-back {
        left: 14px;
    }
}
