/* =================================================
   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);
    }
}

@keyframes softAppearCentered {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

:root {
    --cloud-image-width: 130px;
    --tag-image-width: 170px;
    --caption-width: 170px;
    --page-side-space: 40px;
}

body.local-image-cloud {
    --cloud-image-width: 210px;
    --tag-image-width: 270px;
    --caption-width: 250px;
}

#universe {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    perspective: 1200px;
    background: #1c1c1c;
}

#cloud-empty {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 20;
    width: min(520px, calc(100vw - 48px));
    color: rgba(235, 242, 250, 0.86);
    text-align: center;
    transform: translate(-50%, -50%);
    animation: softAppear 1.1s ease 0.4s both;
}

#cloud-empty[hidden] {
    display: none;
}

#cloud-empty h2 {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 400;
    line-height: 1.2;
}

#cloud-empty p {
    margin: 0 auto;
    max-width: 34em;
    font-size: 16px;
    line-height: 1.7;
}

#cloud-empty .empty-kicker {
    margin-bottom: 14px;
    color: rgba(235, 242, 250, 0.58);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ----------------------------- */
/* 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,
#caption button {
    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 button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

#caption a:hover,
#caption button:hover {
    background: rgba(0, 0, 0, 0.5);
    color: rgba(200, 230, 255, 1);
}

#caption a:visited {
    color: rgba(120, 170, 220, 0.95);
}

#entry-note {
    position: fixed;
    left: 50%;
    bottom: 86px;
    width: fit-content;
    max-width: min(520px, calc(100vw - 80px));
    padding: 18px 20px 20px;
    box-sizing: border-box;
    color: rgba(245, 247, 250, 0.88);
    background: rgba(10, 14, 18, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    z-index: 350;
    transform: translateX(-50%);
    animation: softAppearCentered 0.9s ease 1.15s both;
}

#entry-note.hidden {
    display: none;
}

body.local-image-cloud #entry-note {
    bottom: 164px;
}

#entry-note-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.54);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 14px;
}

#entry-note h2 {
    margin: 0 0 10px;
    padding-right: 26px;
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 400;
    line-height: 1.16;
    color: rgba(255, 255, 255, 0.93);
}

#entry-note p {
    margin: 0 0 18px;
    max-width: 32em;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(232, 238, 246, 0.8);
}

.entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.entry-actions a,
.entry-actions button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 14px;
    box-sizing: border-box;
    color: rgba(245, 248, 252, 0.9);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.entry-actions a:hover,
.entry-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

#work-menu-wrap {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 520;
    display: grid;
    justify-items: center;
    gap: 8px;
    transform: translateX(-50%);
}

#work-menu-toggle,
#new-cloud-view {
    min-height: 50px;
    padding: 13px 24px;
    color: rgba(250, 252, 255, 0.94);
    background: rgba(10, 14, 18, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

#work-menu-toggle:hover,
#work-menu-toggle:focus-visible,
#work-menu-toggle[aria-expanded="true"],
#new-cloud-view:hover,
#new-cloud-view:focus-visible {
    background: rgba(10, 14, 18, 0.72);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

#new-cloud-view {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 15px;
}

#new-cloud-view:disabled {
    opacity: 0.48;
    cursor: default;
    transform: none;
}

#work-menu {
    display: none;
    gap: 10px;
    padding: 10px;
    background: rgba(10, 14, 18, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

#work-menu.is-open {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#work-menu a,
#work-menu button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    box-sizing: border-box;
    color: rgba(245, 248, 252, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

#work-menu a:hover,
#work-menu button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.entry-kicker {
    margin-bottom: 6px !important;
    font-size: 10px !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(195, 214, 233, 0.62);
}

#featured-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.featured-filter {
    padding: 5px 9px;
    color: rgba(245, 248, 252, 0.88);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    letter-spacing: 0.03em;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.featured-filter:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* ----------------------------- */
/* 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;
    padding-right: 10px;
    z-index: 200;
}

.timeline-year {
    display: block;
    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,
#entry-note-close:focus-visible,
.local-image-delete:focus-visible,
.entry-actions a:focus-visible,
.entry-actions button: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,
#share-menu a:focus-visible,
#share-menu button:focus-visible,
.language-context-trigger:focus-visible,
.featured-filter:focus-visible,
.read-aloud-controls button:focus-visible,
.works-filter: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;
}

.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);
}

/* 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;
}

/* ----------------------------- */
/* 06 Meta-Links unten rechts */
/* ----------------------------- */

#meta-links {
    position: fixed;
    right: 40px;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    letter-spacing: 0.5px;
    z-index: 300;
    animation: softAppear 0.95s ease 1.3s both;
}

.meta-link-group {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.meta-link-secondary {
    position: relative;
}

.meta-link-secondary::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    width: 1px;
    height: 1.35em;
    background: rgba(220, 230, 255, 0.28);
    transform: translateY(-50%);
}

#meta-links a,
#meta-links button {
    color: rgba(220, 230, 255, 0.45);
    text-decoration: none;
    transition: color 0.3s ease;
}

#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: 18px;
    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);
}

.language-floating-toggle {
    position: fixed;
    top: 22px;
    right: 24px;
    z-index: 10000;
}

/* -------------------------------- */
/* 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;
}

/* ----------------------------- */
/* 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;
    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 a,
#mobile-menu a:visited,
#mobile-menu a:active,
#mobile-menu button {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
}

.mobile-menu-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-secondary {
    margin-top: 6px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

#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 .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;
}

.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;
}

.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-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-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 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(1120px, calc(100vw - 48px));
}

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

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

.empty-state {
    max-width: 760px;
    color: rgba(235, 242, 250, 0.72);
}

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

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.work-card {
    min-width: 0;
}

.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;
}

.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;
}

/* 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;
}

#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 */
/* ================================= */

#loading-screen {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.08), transparent 34%),
        #181412;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.loading-inner {
    display: grid;
    justify-items: center;
    gap: 22px;
    width: min(720px, calc(100vw - 48px));
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

#loading-screen.is-visible .loading-inner {
    opacity: 1;
    transform: translateY(0);
}

.loading-text {
    color: rgba(248, 250, 252, 0.92);
    font-family: Georgia, serif;
    font-size: clamp(32px, 6vw, 76px);
    font-style: italic;
    line-height: 1.1;
    letter-spacing: 0;
    text-align: center;
}

.loading-line {
    width: min(360px, 64vw);
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
}

.loading-line::before {
    content: "";
    display: block;
    width: 42%;
    height: 100%;
    background: rgba(255, 255, 255, 0.82);
    animation: loadingLine 1.6s ease-in-out infinite;
}

@keyframes loadingLine {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(260%);
    }
}

@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;
    }

    .featured-filter:hover,
    .tag-item:hover,
    #current-focus:hover {
        transform: 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;
    }

    body.local-image-cloud {
        --cloud-image-width: 180px;
        --tag-image-width: 235px;
        --caption-width: 220px;
    }

    #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;
    }

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

@media (min-width: 1921px) {

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

    body.local-image-cloud {
        --cloud-image-width: 280px;
        --tag-image-width: 360px;
        --caption-width: 320px;
    }

    #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;
    }

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

@media (min-width: 2560px) {

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

    body.local-image-cloud {
        --cloud-image-width: 330px;
        --tag-image-width: 420px;
        --caption-width: 360px;
    }
}

@media (min-width: 3200px) {

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

    body.local-image-cloud {
        --cloud-image-width: 400px;
        --tag-image-width: 500px;
        --caption-width: 430px;
    }

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

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

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

    #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;
    }

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

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

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

    body.local-image-cloud {
        --cloud-image-width: 155px;
        --tag-image-width: 200px;
        --caption-width: 190px;
    }

    #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: 24px;
        font-size: 13px;
    }

    .meta-link-group {
        gap: 14px;
    }

    .meta-link-secondary::before {
        left: -13px;
    }

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

    #entry-note {
        left: 50%;
        bottom: 78px;
        width: min(500px, calc(100vw - 60px));
    }

    #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;
    }

    body.local-image-cloud {
        --cloud-image-width: 110px;
        --tag-image-width: 145px;
        --caption-width: 160px;
    }

    .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;
    }

    #entry-note {
        left: 50%;
        bottom: 24px;
        width: min(500px, calc(100vw - 48px));
    }

    #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);
    }

    #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;
    }

    #mobile-menu a {
        font-size: 1.4rem;
        letter-spacing: 0.05em;
    }

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

}

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

    #entry-note {
        display: none;
    }
}

/* ----------------------------- */
/* 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;
    }

    body.local-image-cloud {
        --cloud-image-width: 92px;
        --tag-image-width: 124px;
        --caption-width: min(220px, calc(100vw - 48px));
    }

    /* 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);
    }

    #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;
    }

    #entry-note {
        display: none;
    }

    #entry-note h2 {
        font-size: 15px;
    }

    .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;
    }

}

/* ----------------------------- */
/* 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);
    }

    #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;
    }

    #entry-note {
        display: none;
    }

    .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: 24px;
    }

    #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;
    }

    #mobile-menu a,
    #mobile-menu button {
        font-size: 1rem;
        line-height: 1.25;
    }

    #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;
}

#intro-gate {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    color: rgba(248, 250, 252, 0.94);
    background:
        radial-gradient(ellipse at 30% 20%, rgba(92, 118, 138, 0.12), transparent 42%),
        rgba(16, 14, 12, 0.24);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#name-editor {
    position: fixed;
    inset: 0;
    z-index: 12010;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(16, 14, 12, 0.2);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#name-editor.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.name-editor-panel {
    position: relative;
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    padding: clamp(22px, 4vw, 34px);
    box-sizing: border-box;
    color: rgba(248, 250, 252, 0.94);
    background: rgba(10, 13, 16, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.name-editor-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.1;
}

.name-editor-panel p {
    margin: 0 0 18px;
    color: rgba(236, 241, 246, 0.76);
    font-size: 15px;
    line-height: 1.6;
}

#name-editor-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.64);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 16px;
}

#name-editor-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.name-editor-item {
    position: relative;
    display: grid;
    gap: 7px;
}

.name-editor-item::before {
    content: attr(data-rating-label);
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 1;
    padding: 4px 7px;
    color: rgba(16, 18, 20, 0.92);
    background: rgba(244, 248, 240, 0.86);
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.name-editor-item[data-rating="maybe"]::before {
    color: rgba(255, 248, 232, 0.95);
    background: rgba(92, 66, 30, 0.88);
}

.name-editor-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.name-editor-item input,
.local-image-rating {
    width: 100%;
    min-width: 0;
    padding: 8px 9px;
    box-sizing: border-box;
    color: rgba(250, 252, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    font: inherit;
    font-size: 13px;
}

.local-image-rating {
    cursor: pointer;
}

.local-image-rating option {
    color: #1c1c1c;
    background: #f3f1ea;
}

.name-editor-item img.local-image-rating-usable,
#mappe img.local-image-rating-usable,
#mappeGrid img.local-image-rating-usable,
.mappe img.local-image-rating-usable,
.folder img.local-image-rating-usable {
    outline: 2px solid rgba(210, 238, 196, 0.72);
    outline-offset: 2px;
}

.name-editor-item img.local-image-rating-maybe,
#mappe img.local-image-rating-maybe,
#mappeGrid img.local-image-rating-maybe,
.mappe img.local-image-rating-maybe,
.folder img.local-image-rating-maybe {
    opacity: 0.68;
    outline: 2px dashed rgba(238, 202, 130, 0.78);
    outline-offset: 2px;
}

#name-editor-status {
    min-height: 1.5em;
    margin-top: 14px;
    color: rgba(220, 232, 242, 0.72);
    font-size: 13px;
}

#intro-gate.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-panel {
    width: min(720px, 100%);
    padding: clamp(24px, 5vw, 44px);
    box-sizing: border-box;
    background: rgba(10, 13, 16, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.intro-kicker {
    margin: 0 0 12px;
    color: rgba(190, 213, 232, 0.68);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.intro-panel h2 {
    margin: 0 0 16px;
    max-width: none;
    font-size: clamp(20px, 6vw, 52px);
    font-weight: 400;
    line-height: 1.08;
    white-space: nowrap;
}

.intro-panel p {
    margin: 0;
    max-width: 48em;
    color: rgba(236, 241, 246, 0.76);
    font-size: 16px;
    line-height: 1.7;
}

.intro-panel p + p {
    margin-top: 10px;
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 14px;
}

.intro-actions button {
    min-height: 42px;
    padding: 10px 16px;
    color: rgba(250, 252, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.intro-actions .intro-primary {
    background: rgba(248, 250, 252, 0.18);
    border-color: rgba(248, 250, 252, 0.32);
    color: #fff;
}

.intro-actions .intro-continue {
    color: rgba(14, 18, 22, 0.92);
    background: rgba(248, 250, 252, 0.72);
    border-color: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}

.intro-actions button:hover,
.intro-actions button:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.intro-actions .intro-continue:hover,
.intro-actions .intro-continue:focus-visible {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(255, 255, 255, 0.92);
}

.intro-actions button:disabled {
    opacity: 0.42;
    cursor: default;
    transform: none;
}

.intro-panel[role="button"] {
    cursor: pointer;
}

.intro-panel[role="button"] .intro-actions,
.intro-panel[role="button"] button,
.intro-panel[role="button"] input {
    cursor: auto;
}

.intro-panel[role="button"] button {
    cursor: pointer;
}

.intro-panel[role="button"] button:disabled {
    cursor: default;
}

#local-image-status {
    min-height: 1.5em;
    color: rgba(220, 232, 242, 0.72);
    font-size: 13px;
}

#local-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

#local-image-preview:empty {
    display: none;
}

.local-image-item {
    position: relative;
    display: grid;
    gap: 6px;
}

.local-image-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.local-image-item input {
    min-width: 0;
    width: 100%;
    padding: 7px 8px;
    box-sizing: border-box;
    color: rgba(250, 252, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    font: inherit;
    font-size: 12px;
}

.local-image-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    min-height: 28px;
    padding: 5px 8px;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(10, 13, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.local-image-delete:hover {
    background: rgba(120, 32, 32, 0.78);
    border-color: rgba(255, 255, 255, 0.32);
}

@media (max-width: 640px) {
    #intro-gate {
        align-items: end;
        padding: 16px;
    }

    .intro-panel {
        padding: 22px;
    }

    .intro-actions {
        display: grid;
    }

    .intro-actions button {
        width: 100%;
    }
}
/* ================================= */
/* 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;
    }
}
