/* grotesk.group/hausohnenetz/ — the exhibition page, in the look of its posters:
   a windows 98 desktop. The rest of the site is OS/2; this page belongs to the
   exhibition (decided by the user, 2026-10-28). */

:root {
    --face: #c0c0c0;
    --light: #ffffff;
    --light-2: #dfdfdf;
    --shadow: #808080;
    --dark: #000000;
    --title-1: #000080;
    --title-2: #1084d0;
    --desk: #008080;
    --link: #0000ee;
    --ui-font: Tahoma, "MS Sans Serif", "Segoe UI", Geneva, Verdana, sans-serif;
    --text-font: "Space Mono", "Courier New", monospace;
    --taskbar-h: 40px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
    -webkit-text-size-adjust: 100%;
}

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--desk);
    color: var(--dark);
    font: 14px/1.45 var(--ui-font);
    padding-bottom: calc(var(--taskbar-h) + env(safe-area-inset-bottom, 0px));
}

/* One language at a time (hausohnenetz.js sets <html lang>). */
html[lang="de"] body [lang="en"],
html[lang="en"] body [lang="de"] {
    display: none !important;
}

a {
    color: var(--link);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 20;
    background: var(--face);
    color: var(--dark);
    padding: 6px 10px;
    border: 2px solid var(--dark);
}

.skip:focus {
    top: 8px;
}

:focus-visible {
    outline: 1px dotted var(--dark);
    outline-offset: 2px;
}

/* --- Bevels ----------------------------------------------------------------- */

.win,
.btn,
.taskbar,
.start-menu,
.titlebar-buttons > span,
.lang-menu {
    box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--light-2), inset -2px -2px var(--shadow), inset 2px 2px var(--light);
}

.field,
.listview,
.notepad-text,
.family img,
.photo img,
.funding,
.statusbar-field,
.tray {
    box-shadow: inset 1px 1px var(--shadow), inset -1px -1px var(--light);
}

.field,
.listview,
.notepad-text {
    box-shadow: inset 1px 1px var(--shadow), inset -1px -1px var(--light), inset 2px 2px var(--dark), inset -2px -2px var(--light-2);
}

/* --- The desktop ------------------------------------------------------------- */

.desktop {
    display: grid;
    gap: 28px;
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 24px 16px 32px;
}

.desktop-icons {
    display: none;
}

@media (min-width: 1240px) {
    .desktop-icons {
        position: fixed;
        top: 20px;
        left: 16px;
        display: grid;
        gap: 18px;
        width: 92px;
    }
}

.desktop-icon {
    display: grid;
    justify-items: center;
    gap: 4px;
    color: var(--light);
    text-decoration: none;
    text-align: center;
    font-size: 12px;
}

.desktop-icon svg {
    width: 36px;
    height: 36px;
}

.desktop-icon span {
    padding: 0 3px;
}

.desktop-icon:hover span,
.desktop-icon:focus-visible span {
    background: var(--title-1);
    outline: 1px dotted var(--light);
}

/* --- The language switch above the poster ----------------------------------- */

.lang-bar {
    position: relative;
    z-index: 2;
    justify-self: end;
    margin-bottom: -16px;
}

.lang-bar-buttons {
    display: flex;
    gap: 4px;
}

.lang-bar-buttons .btn {
    min-width: 0;
    min-height: 28px;
    padding: 3px 12px;
}

/* The chosen language stays pressed in, like a toolbar toggle. */
.lang-bar-buttons .btn[aria-pressed="true"] {
    background: repeating-conic-gradient(var(--light) 0% 25%, var(--face) 0% 50%) 0 0 / 2px 2px;
    font-weight: bold;
    box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--light), inset 2px 2px var(--shadow), inset -2px -2px var(--light-2);
}

/* A windows tooltip, pointing up at the switch. Shown even while German text is
   hidden (it is German, for German browsers on the English page). */
html[lang="en"] body .lang-hint[lang="de"]:not([hidden]) {
    display: flex !important;
}

.lang-hint {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 5px 6px 5px 10px;
    border: 1px solid var(--dark);
    background: #ffffe1;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.lang-hint[hidden] {
    display: none;
}

.lang-hint::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 26px;
    border: 7px solid transparent;
    border-top: 0;
    border-bottom-color: var(--dark);
}

.lang-hint::after {
    content: "";
    position: absolute;
    top: -6px;
    right: 27px;
    border: 6px solid transparent;
    border-top: 0;
    border-bottom-color: #ffffe1;
}

.lang-hint-close {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: none;
    font: bold 14px/1 var(--ui-font);
    cursor: pointer;
}

/* --- Windows ----------------------------------------------------------------- */

.win {
    background: var(--face);
    padding: 3px;
    min-width: 0;
}

.titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 2px 3px 2px 5px;
    background: linear-gradient(90deg, var(--title-1), var(--title-2));
    color: var(--light);
}

.titlebar-icon {
    width: 16px;
    height: 16px;
    flex: none;
}

.titlebar-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.titlebar-buttons {
    display: flex;
    gap: 2px;
    flex: none;
}

.titlebar-buttons > span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 16px;
    background: var(--face);
    color: var(--dark);
    font: bold 11px/1 var(--ui-font);
}

.titlebar-buttons > span:last-child {
    margin-left: 2px;
}

.menubar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    padding: 3px 6px 4px;
    border-bottom: 1px solid var(--shadow);
    box-shadow: 0 1px var(--light);
    font-size: 13px;
    user-select: none;
}

.win-body {
    padding: 14px 12px 12px;
}

.statusbar {
    display: flex;
    gap: 3px;
    margin-top: 3px;
}

.statusbar-field {
    flex: 1;
    min-width: 0;
    padding: 2px 6px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.statusbar-computer {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.statusbar-computer svg {
    width: 16px;
    height: 16px;
}

/* --- The poster window ------------------------------------------------------ */

.hero {
    position: relative;
    margin-top: 2px;
    line-height: 0;
    background: #2a52aa;
}

.hero-poster {
    display: block;
    width: 100%;
    height: auto;
}

/* The poster arrives line by line, like a big picture over a modem
   (hausohnenetz.js adds .modem once it has loaded). */
.hero-poster.modem {
    animation: modem 2.6s steps(22, end) both;
}

@keyframes modem {
    from {
        clip-path: inset(0 0 100% 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-poster.modem {
        animation: none;
    }
}

.construction {
    display: block;
    justify-self: center;
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    margin: -10px 0;
}

/* The four folders printed on the poster (positions measured on the CLOUD poster). */
.hero-folder {
    position: absolute;
    left: calc(var(--x) - 7.5%);
    top: 80%;
    width: 15%;
    height: 11.5%;
}

.hero-folder:hover,
.hero-folder:focus-visible {
    background: rgba(0, 0, 128, 0.22);
    outline: 1px dotted var(--light);
    outline-offset: 0;
}

/* --- The "my computer" message box -------------------------------------------- */

.msgbox {
    width: min(360px, calc(100vw - 32px));
    max-width: none;
    margin: auto;
    border: 0;
    color: var(--dark);
    font: 14px/1.45 var(--ui-font);
}

.msgbox::backdrop {
    background: rgba(0, 0, 0, 0.12);
}

.msgbox .win-body {
    padding: 16px 14px 12px;
}

/* --- Buttons ---------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    min-width: 84px;
    padding: 5px 14px;
    border: 0;
    background: var(--face);
    color: var(--dark);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.btn-default {
    outline: 1px solid var(--dark);
}

.btn:active,
.start-button[aria-expanded="true"] {
    box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--light), inset 2px 2px var(--shadow), inset -2px -2px var(--light-2);
}

.btn:focus-visible span:not(.visually-hidden) {
    outline: 1px dotted var(--dark);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.button-row-end {
    justify-content: flex-end;
}

/* --- Dates ------------------------------------------------------------------- */

.facts {
    display: grid;
    gap: 4px;
    margin: 0 0 16px;
}

.facts > div {
    display: grid;
    grid-template-columns: 7.5em 1fr;
    gap: 10px;
}

.facts dt {
    color: #404040;
}

.facts dd {
    margin: 0;
    font-weight: bold;
}

.listview {
    display: grid;
    grid-template-columns: max-content max-content 1fr;
    background: var(--light);
    padding: 2px;
}

.listview-head,
.listview-row {
    display: contents;
}

.listview-head > span {
    padding: 3px 10px;
    background: var(--face);
    box-shadow: inset -1px -1px var(--shadow), inset 1px 1px var(--light);
    font-size: 13px;
}

.listview-row > span {
    padding: 5px 10px;
}

.listview-row:nth-child(odd) > span {
    background: #f0f0f0;
}

.note {
    margin: 14px 0 0;
}

.small {
    margin: 12px 0 0;
    font-size: 12px;
    color: #404040;
}

/* --- Notepad ------------------------------------------------------------------ */

.notepad-text {
    margin-top: 2px;
    padding: 14px 16px;
    background: var(--light);
    font: 14px/1.6 var(--text-font);
}

.notepad-text p {
    margin: 0 0 1em;
}

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

.caret {
    display: inline-block;
    width: 1px;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: var(--dark);
    animation: caret 1.06s steps(1) infinite;
}

@keyframes caret {
    50% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .caret {
        animation: none;
    }
}

/* --- The family -------------------------------------------------------------- */

.lead {
    margin: 0 0 14px;
}

.family {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.family li {
    display: grid;
    align-content: start;
    gap: 4px;
    font-size: 13px;
}

.family img,
.photo img {
    display: block;
    width: 100%;
    height: auto;
    padding: 2px;
    background: var(--light);
}

.family strong {
    margin-top: 4px;
    font-size: 14px;
}

.photo {
    margin: 20px 0 0;
}

.photo figcaption {
    margin-top: 6px;
    font-size: 13px;
}

/* --- Getting there, about ---------------------------------------------------- */

.field {
    display: block;
    padding: 10px 12px;
    background: var(--light);
    font-style: normal;
}

.about {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.link-buttons img {
    display: block;
}

.about-icon {
    width: 32px;
    height: 32px;
    flex: none;
}

.about p {
    margin: 0;
}

.funding {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    background: var(--light);
    font-size: 12px;
}

.funding-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.funding-logos img {
    display: block;
    height: 40px;
    width: auto;
}

/* --- Taskbar ------------------------------------------------------------------ */

.taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    height: calc(var(--taskbar-h) + env(safe-area-inset-bottom, 0px));
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    background: var(--face);
    box-shadow: inset 0 1px var(--light-2), inset 0 2px var(--light);
}

.start {
    position: relative;
    flex: none;
}

.start-button {
    min-width: 0;
    height: 30px;
    padding: 3px 8px;
    font-weight: bold;
}

.start-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    display: flex;
    min-width: 230px;
    background: var(--face);
    padding: 3px;
}

.start-menu[hidden] {
    display: none;
}

.start-banner {
    display: flex;
    align-items: flex-end;
    width: 26px;
    padding: 6px 0;
    background: linear-gradient(0deg, var(--title-1), var(--title-2));
    color: var(--light);
    font-size: 17px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 1px;
}

.start-banner b {
    color: #c0c0ff;
}

.start-menu ul {
    flex: 1;
    margin: 0;
    padding: 2px 0;
    list-style: none;
}

.start-menu a {
    display: block;
    padding: 7px 18px 7px 12px;
    color: var(--dark);
    text-decoration: none;
}

.start-menu a:hover,
.start-menu a:focus-visible {
    background: var(--title-1);
    color: var(--light);
    outline: none;
}

.start-menu .sep {
    height: 2px;
    margin: 3px 4px;
    border-top: 1px solid var(--shadow);
    border-bottom: 1px solid var(--light);
}

.tasks {
    display: flex;
    flex: 1;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.task {
    flex: 0 1 150px;
    min-width: 0;
    height: 30px;
    padding: 6px 8px;
    overflow: hidden;
    background: var(--face);
    color: var(--dark);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--light-2), inset -2px -2px var(--shadow), inset 2px 2px var(--light);
}

.tray {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    height: 30px;
    padding: 0 8px 0 4px;
}

/* The windows 98 language indicator: a small blue box, a menu above it. */
.lang {
    position: relative;
}

.lang-indicator {
    display: grid;
    place-items: center;
    width: 26px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.lang-indicator span,
.lang-mark {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 18px;
    padding: 0 2px;
    background: var(--title-1);
    color: var(--light);
    font: bold 11px/1 var(--ui-font);
}

.lang-indicator:hover span,
.lang-indicator[aria-expanded="true"] span {
    outline: 1px dotted var(--dark);
    outline-offset: 1px;
}

.lang-menu {
    position: absolute;
    right: -6px;
    bottom: calc(100% + 10px);
    min-width: 230px;
    white-space: nowrap;
    margin: 0;
    padding: 3px;
    list-style: none;
    background: var(--face);
}

.lang-menu[hidden] {
    display: none;
}

.lang-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 12px 6px 8px;
    border: 0;
    background: none;
    color: var(--dark);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.lang-menu button[aria-pressed="true"]::after {
    content: "✓";
    margin-left: auto;
    padding-left: 12px;
}

.lang-menu button:hover,
.lang-menu button:focus-visible {
    background: var(--title-1);
    color: var(--light);
    outline: none;
}

.clock {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* --- Phones ------------------------------------------------------------------- */

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .desktop {
        gap: 20px;
        padding: 16px 16px 24px;
    }

    .menubar {
        gap: 2px 10px;
    }

    .family {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facts > div {
        grid-template-columns: 6.5em 1fr;
    }

    .listview {
        grid-template-columns: max-content 1fr;
    }

    /* Day + time on one line, what underneath. */
    .listview-head > span:nth-child(3) {
        display: none;
    }

    .listview-row > span:nth-child(3) {
        grid-column: 1 / -1;
        padding-top: 0;
    }

    .notepad-text {
        padding: 12px;
        font-size: 13px;
    }

    .tasks {
        display: none;
    }

    .tray {
        margin-left: auto;
    }
}
