[138] Website: Startseite nach Design-Paket (Scroll-Hero, Schnittmarken, Schnitt setzen), gemeinsamer Look für die Doku, Links auf GitHub

This commit is contained in:
Claude committed 2026-11-05 12:15:20 +00:00
1 parent 6dfef2a51f
commit 8544231819
22 files changed
+1218 -322

No files matched your search

+285
View File
@@ -0,0 +1,285 @@
/* Startseite. Grundlage (Tokens, Schriften, Kopf/Fuss) in site.css.
Ohne .scrub (Telefone, reduzierte Bewegung, ohne JS) gilt die ruhige Startseite mit dem Schlussbild;
.scrub setzt home.js nur, wenn keine der fünf Bedingungen zutrifft (gleiche Abfragen unten im CSS). */
:root {
--tshadow: 0 0 1px rgba(var(--scrim), .95), 0 1px 10px rgba(var(--scrim), .85), 0 0 36px rgba(var(--scrim), .75);
}
.home-page .top { position: absolute; left: 0; right: 0; top: 0; max-width: none; padding-inline: max(16px, 5vw); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.vh-only { display: none; }
/* ---- Hero: ruhige Grundform ------------------------------------------- */
.hero { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 6.5rem 16px 1rem; }
.stage { position: relative; }
.poster, .hero-video, .scrim, .ring, .cue { display: none; }
.band { display: none; position: relative; --k: 1; }
.band.b5 { display: block; }
.static-sheet { margin: 2.5rem 0 0; }
.static-sheet img { display: block; width: 100%; border: 1px solid var(--hatch); background: var(--panel); }
.only-scrub { display: none !important; }
.say { margin: 0; font: 800 clamp(2rem, 3.3vw, 3.4rem)/1.04 var(--display); letter-spacing: -.028em; text-wrap: balance; }
.title { margin: 0; font: 800 clamp(2.75rem, 4.4vw, 4.6rem)/1 var(--display); letter-spacing: -.038em; overflow-wrap: anywhere; }
.kicker { margin: 1rem 0 0; font: 400 clamp(.875rem, 1vw, 1rem)/1.4 var(--mono); letter-spacing: .03em; color: var(--text-secondary); }
.sub { margin: 1.25rem 0 0; max-width: 34ch; font-size: 1.1875rem; line-height: 1.5; }
.cta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 1.75rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.5rem; border-radius: 2px;
background: var(--accent); color: var(--on-accent); font: 500 1.0625rem/1 var(--sans); text-decoration: none; text-shadow: none;
transition: background-color .25s var(--ease-out), transform .25s var(--ease-out), color .25s var(--ease-out); }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--text-primary); }
.btn.ghost:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.link { font: 500 1.0625rem var(--sans); text-shadow: none; }
/* ---- Hero: Scroll-Video ------------------------------------------------ */
.scrub .hero { height: 1000vh; max-width: none; padding: 0; margin: 0; }
.scrub .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scrub .poster, .scrub .hero-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.scrub .poster { background: var(--canvas) 70% 50% / cover no-repeat; }
.scrub .hero-video { object-fit: cover; object-position: 70% 50%; opacity: 0; transform: translateZ(0); will-change: transform; transition: opacity .7s var(--ease-out); }
.scrub .stage.video-ready .hero-video { opacity: 1; }
.scrub .stage.video-failed .hero-video { display: none; }
/* Lichtpause: das Planblatt im dunklen Schema invertiert, Farbtöne bleiben */
:root[data-theme="dark"] .poster, :root[data-theme="dark"] .hero-video, :root[data-theme="dark"] .static-sheet img { filter: invert(.92) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .poster, :root:not([data-theme="light"]) .hero-video, :root:not([data-theme="light"]) .static-sheet img { filter: invert(.92) hue-rotate(180deg); }
}
/* Lesbarkeit: 1 Grundschleier (Papier) über der Textspur links */
.scrub .scrim { display: block; position: absolute; inset: 0; pointer-events: none;
background: linear-gradient(90deg, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .7) 30%, rgba(var(--scrim), 0) 47%); }
/* 2 Schleier je Abschnitt, 3 Textschatten */
.scrub .band { display: flex; flex-direction: column; justify-content: center; position: absolute; top: 0; bottom: 0; left: 0;
width: min(46vw, 46rem); padding: 4.5rem 0 3rem max(16px, 5vw); opacity: 0; pointer-events: none; isolation: isolate; text-shadow: var(--tshadow); }
.scrub .band::before { content: ""; position: absolute; inset: 8% -8% 8% 0; z-index: -1; pointer-events: none;
opacity: calc(.25 + .75 * var(--k, 1));
background: radial-gradient(ellipse 72% 56% at 40% 50%, rgba(var(--scrim), .82) 0%, rgba(var(--scrim), .55) 48%, rgba(var(--scrim), 0) 76%); }
.scrub .band.on .cta { pointer-events: auto; }
.scrub .band:not(.on) .cta { visibility: hidden; }
.scrub .static-sheet, .scrub .only-static { display: none; }
.scrub .only-scrub { display: inline-flex !important; }
.scrub .b1 .say { font-size: clamp(2.6rem, 4.6vw, 4.75rem); }
.scrub .b2 .say { max-width: 17ch; }
/* Ladering, danach ein ehrlicher Scroll-Hinweis */
.scrub .ring, .scrub .cue { display: block; position: absolute; left: max(16px, 5vw); bottom: 2rem; width: 2rem; height: 2rem; color: var(--text-secondary); transition: opacity .5s var(--ease-out); }
.ring circle { stroke-dashoffset: var(--ld, 126); transform: rotate(-90deg); transform-origin: 50% 50%; }
.scrub .cue { opacity: 0; }
.scrub .stage.video-ready .ring, .scrub .stage.video-failed .ring { opacity: 0; }
.scrub .stage.video-ready .cue, .scrub .stage.video-failed .cue { opacity: 1; }
.scrub .stage.moved .cue { opacity: 0; }
.cue svg { width: 100%; height: 100%; }
.scrub .stage.video-ready .cue svg, .scrub .stage.video-failed .cue svg { animation: cue-bob 2.4s var(--ease-io) infinite; animation-delay: -.6s; }
@keyframes cue-bob { 50% { transform: translateY(5px); } }
@media (max-height: 560px) { .scrub .cue, .scrub .ring { display: none; } }
/* Zerlegter Text: unsichtbare Kopie für Vorleser, sichtbare aus Wörtern/Zeichen */
.w, .c { display: inline-block; }
.ln, .half { display: block; }
/* 1 Zeichne eine Wand: Zeichen rasten von links ein, darunter zieht sich die Wand */
.b1 .c { --kc: clamp(0, (var(--k, 1) - var(--th, 0)) * 5, 1); opacity: var(--kc); transform: translateX(calc((1 - var(--kc)) * -28px)); }
@supports (width: round(nearest, 10px, 4px)) {
.b1 .c { transform: translateX(round(nearest, calc((1 - var(--kc)) * -28px), 7px)); }
}
.b1 .say::after { content: ""; display: block; width: 5.2em; height: .2em; margin-top: .3em; border-block: 2px solid currentColor;
transform: scaleX(var(--k, 1)); transform-origin: left; }
/* 2 Wörter rasten ein wie Fangpunkte, kurzes Überschwingen; Öffnungen in Rot */
.b2 .w { --kc: clamp(0, (var(--k, 1) - var(--th, 0)) * 3, 1); --ks: clamp(0, (var(--k, 1) - var(--th, 0) - var(--sd, .1)) * var(--ss, 3.2), 1);
opacity: var(--kc); transform-origin: 50% 80%; transform: scale(calc(.6 + (.4 + var(--ov, .12)) * var(--kc) - var(--ov, .12) * var(--ks))); }
.b2 .w.em { --ov: .24; --sd: .16; --ss: 2.6; color: var(--accent); }
/* 3 Zeilen fallen ein, wie Masslinien gesetzt werden */
.b3 .w { --kc: clamp(0, (var(--k, 1) - var(--th, 0)) * 2.8, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * -.55em)); }
.b3 .ln::after { content: ""; display: block; height: 1px; width: 100%; max-width: 12em; margin: .12em 0 .25em; background: var(--text-secondary);
transform: scaleX(clamp(0, (var(--k, 1) - var(--lt, 0)) * 2.4, 1)); transform-origin: left; }
/* 4 Hälften öffnen sich von der Mitte aus, wie der Schnitt */
.b4 .say { position: relative; }
.b4 .half { --kc: clamp(0, (var(--k, 1) - .12) * 1.5, 1); opacity: var(--kc); }
.b4 .half:first-child { transform: translateY(calc((1 - var(--kc)) * .6em)); }
.b4 .half:last-child { transform: translateY(calc((1 - var(--kc)) * -.6em)); }
.b4 .say::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 24px, var(--accent) 24px 27px, transparent 27px 33px);
transform: scaleX(clamp(0, var(--k, 1) * 5, 1)); transform-origin: left; opacity: calc(1 - clamp(0, (var(--k, 1) - .35) * 1.8, 1)); }
/* 5 Wort für Wort aufsteigen, dann Unterzeile, dann Knöpfe */
.b5 .w { --kc: clamp(0, (var(--k, 1) - var(--th, 0)) * 3, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * .5em)); }
.b5 .kicker { --ks: clamp(0, (var(--k, 1) - .62) * 4, 1); opacity: var(--ks); transform: translateY(calc((1 - var(--ks)) * 10px)); }
.b5 .cta { --kb: clamp(0, (var(--k, 1) - .76) * 5, 1); opacity: var(--kb); transform: translateY(calc((1 - var(--kb)) * 12px)); }
/* ---- Erkennungselement: Schnittmarken als Abschnittswechsel ------------ */
.cutmark { max-width: var(--wrap); margin: 0 auto; padding: 5rem 16px 3.5rem; display: flex; align-items: flex-start; gap: .6rem; color: var(--text-primary); }
.cm-end { display: flex; flex-direction: column; align-items: center; gap: .15rem; flex: none; width: 1.75rem; }
.cm-end svg { width: 1.25rem; height: 1.75rem; overflow: visible; }
.cm-end b { font: 800 1.25rem/1 var(--display); }
.cm-line { flex: 1; display: flex; align-items: center; gap: 6px; height: 2px; margin-top: 1px; overflow: hidden; }
.cm-line i { flex: none; width: 22px; height: 2px; background: currentColor; opacity: 0; transform: scaleX(0);
transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); transition-delay: var(--dl, 0s); }
.cm-line i.dot { width: 3px; }
.cm-end svg, .cm-end b { opacity: 0; transform: translateY(-8px); transition: opacity .5s var(--ease-out) .55s, transform .5s var(--ease-out) .55s; }
.cutmark.in .cm-line i, .cutmark.in .cm-end svg, .cutmark.in .cm-end b { opacity: 1; transform: none; }
/* Masslinie mit Kote */
.dimline { display: flex; align-items: center; gap: .6rem; margin: 1.5rem 0 2.5rem; color: var(--text-secondary); font: .875rem var(--mono); }
.dimline i { flex: 1; height: 1px; background: currentColor; position: relative; transform: scaleX(0); transition: transform 1s var(--ease-io); }
.dimline i:first-child { transform-origin: right; }
.dimline i:last-child { transform-origin: left; }
.dimline i:first-child::before, .dimline i:last-child::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: currentColor; transform: rotate(45deg); }
.dimline i:first-child::before { left: 0; }
.dimline i:last-child::after { right: 0; }
.dimline.in i { transform: none; }
/* Fangpunkt: das leise lebendige Element je Abschnitt */
.sec-title { display: flex; align-items: baseline; gap: .65rem; margin: 0; font: 800 clamp(2rem, 3.4vw, 3rem)/1.05 var(--display); letter-spacing: -.028em; }
.sec-title.small { font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -.015em; }
.sec-title.big { font-size: clamp(2.6rem, 5.4vw, 4.75rem); letter-spacing: -.035em; }
.snap { position: relative; flex: none; width: .36em; height: .36em; border: 2px solid currentColor; transform: translateY(-.06em); }
.snap::after { content: ""; position: absolute; inset: -.3em; border: 1.5px solid var(--accent); opacity: 0; }
.live .snap::after { animation: snap-pulse 5s var(--ease-io) infinite; animation-delay: -1.3s; }
@keyframes snap-pulse { 0%, 55%, 100% { opacity: 0; transform: scale(.55); } 25% { opacity: .8; transform: scale(1); } }
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }
.sec p { max-width: 62ch; }
/* ---- 1 So arbeitet Dossier --------------------------------------------- */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.step figure { margin: 0 0 1.1rem; aspect-ratio: 16 / 10; border: 1px solid var(--hatch); background: var(--panel); overflow: hidden; }
.step img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.step .num { margin: 0; font: .875rem var(--mono); color: var(--text-secondary); }
.step h3 { margin: .2rem 0 .4rem; font: 600 1.625rem/1.15 var(--display); letter-spacing: -.015em; }
.step p:last-child { margin: 0; }
.step-list .step { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.step-list.in .step { opacity: 1; transform: none; }
.step-list.in .step:nth-child(2) { transition-delay: .13s; }
.step-list.in .step:nth-child(3) { transition-delay: .26s; }
.step-list.in.done .step:nth-child(n) { transition-delay: 0s; }
/* ---- 2 Was alles drin ist ---------------------------------------------- */
.feat-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 3.5rem; align-items: start; }
.feat-list { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--hatch); }
.feat-list li { border-bottom: 1px solid var(--hatch); }
.feat-list button { display: block; width: 100%; padding: .85rem 0 .85rem 1.75rem; position: relative; background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
font: 400 1.0625rem/1.4 var(--sans); transition: color .25s var(--ease-out), transform .3s var(--ease-out); }
.feat-list button::before { content: ""; position: absolute; left: .2rem; top: 1.2rem; width: .55rem; height: .55rem; border: 1.5px solid var(--text-secondary);
transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), transform .3s var(--ease-out); }
.feat-list button:hover { transform: translateX(3px); }
.feat-list button:hover::before { border-color: var(--accent); }
.feat-list button[aria-pressed="true"] { font-weight: 500; }
.feat-list button[aria-pressed="true"]::before { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.feat-list li { opacity: 0; transform: translateX(-14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.feat-list.in li { opacity: 1; transform: none; }
.feat-list.in li:nth-child(2) { transition-delay: .06s; } .feat-list.in li:nth-child(3) { transition-delay: .12s; }
.feat-list.in li:nth-child(4) { transition-delay: .18s; } .feat-list.in li:nth-child(5) { transition-delay: .24s; }
.feat-list.in li:nth-child(6) { transition-delay: .3s; } .feat-list.in li:nth-child(7) { transition-delay: .36s; }
.feat-list.in li:nth-child(8) { transition-delay: .42s; }
.feat-list.in.done li:nth-child(n) { transition-delay: 0s; }
.shots { position: sticky; top: 2rem; aspect-ratio: 16 / 10; margin: 0; border: 1px solid var(--hatch); background: var(--panel); }
.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s var(--ease-out); }
.shots img.on { opacity: 1; }
/* ---- 3 Schweizer Praxis ------------------------------------------------ */
.statement { margin: 1.5rem 0 0; max-width: 28ch !important; font: 600 clamp(1.75rem, 3.3vw, 2.9rem)/1.16 var(--display); letter-spacing: -.02em;
opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.statement.in { opacity: 1; transform: none; }
.kotes { display: flex; flex-wrap: wrap; gap: .75rem 3rem; margin: 2.25rem 0 0; font: .9375rem var(--mono); color: var(--text-secondary); }
.kotes span { position: relative; padding-left: 1.2rem; }
.kotes span::before { content: ""; position: absolute; left: 0; top: .35em; border: .32rem solid transparent; border-top: .5rem solid currentColor; border-bottom: 0; }
/* ---- 4 Schnitt setzen -------------------------------------------------- */
.cut-panel { background: var(--panel); border: 1px solid var(--hatch); padding: clamp(1rem, 3vw, 2.5rem); }
.cut-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.lede { margin: 0; font: 500 1.25rem/1.4 var(--sans); }
.cut-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5rem 2.5rem; align-items: center; margin-top: 1.75rem; }
.cut-plan, .cut-view { margin: 0; position: relative; }
.cut-plan { touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.cut-plan img { display: block; width: 100%; pointer-events: none; }
.cut-line { position: absolute; top: 3%; bottom: 3%; left: 0; width: 0; will-change: transform; }
.cut-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
background: repeating-linear-gradient(180deg, var(--accent) 0 16px, transparent 16px 21px, var(--accent) 21px 24px, transparent 24px 29px); }
.cut-line::after { content: ""; position: absolute; top: 50%; left: -.8rem; width: 1.6rem; height: 1.6rem; margin-top: -.8rem; border-radius: 50%;
border: 2px solid var(--accent); background: var(--panel); }
.cut-line b { position: absolute; left: .35rem; font: 800 1.1rem/1 var(--display); color: var(--accent); }
.cut-line b:first-child { top: -.2rem; }
.cut-line b:last-child { bottom: -.2rem; }
.live .cut-line::after { animation: handle 4.6s var(--ease-io) infinite; animation-delay: -2s; }
@keyframes handle { 50% { transform: scale(1.18); } }
.cut-view { aspect-ratio: 1200 / 799; }
.cut-view img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .28s var(--ease-out); }
.cut-view img.on { opacity: 1; }
.cut-ctrl { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.cut-ctrl input { flex: 1; accent-color: var(--accent); min-height: 44px; }
.cut-ctrl .kote { font: .9375rem var(--mono); color: var(--text-secondary); min-width: 9ch; text-align: right; }
:root[data-theme="dark"] .plan-img, :root[data-theme="dark"] .cut-plan img, :root[data-theme="dark"] .cut-view img { filter: invert(.9) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .plan-img, :root:not([data-theme="light"]) .cut-plan img, :root:not([data-theme="light"]) .cut-view img { filter: invert(.9) hue-rotate(180deg); }
}
/* ---- 5–8 --------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 3.5rem; align-items: start; }
.free .split > p { margin: .4rem 0 0; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.45; }
.narrow { max-width: 46rem; }
.state p.reveal { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.45; margin: 1.25rem 0 1.75rem; }
.reveal:not(.step-list):not(.feat-list):not(.statement) { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in:not(.step-list):not(.feat-list):not(.statement) { opacity: 1; transform: none; }
.faq-list { border-top: 1px solid var(--hatch); }
.faq-list details { border-bottom: 1px solid var(--hatch); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.05rem 2.5rem 1.05rem 0; position: relative; font: 500 1.1875rem/1.35 var(--sans); transition: color .2s var(--ease-out); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: .8rem; height: .8rem; margin-top: -.4rem;
background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
transition: transform .3s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 1.25rem; color: var(--text-secondary); }
.faq-list details[open] p { animation: faq-in .45s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.end { text-align: center; }
.end .wall { display: block; width: min(420px, 70%); height: 24px; margin: 0 auto; color: var(--text-primary); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-io); }
.end .wall.in { transform: none; }
.end-title { margin: 1.75rem 0 0; font: 800 clamp(2.75rem, 6.4vw, 5.75rem)/1 var(--display); letter-spacing: -.04em; }
.end .cta { justify-content: center; margin-top: 2.25rem; }
/* ---- Breiten ----------------------------------------------------------- */
@media (max-width: 900px) {
.step-list, .feat-grid, .split, .cut-body { grid-template-columns: minmax(0, 1fr); }
.shots { position: relative; top: 0; }
.cutmark { padding: 3.5rem 16px 2.5rem; }
}
@media (pointer: coarse) {
.btn, .link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.feat-list button { min-height: 44px; }
}
/* ---- Die fünf Bedingungen für die ruhige Startseite (wörtlich gleich in home.js) ---- */
@media (max-width: 720px), (orientation: portrait) and (max-width: 1024px), (orientation: portrait) and (pointer: coarse), (orientation: landscape) and (pointer: coarse) and (max-height: 560px), (prefers-reduced-motion: reduce) {
.scrub .hero { height: auto; max-width: var(--wrap); margin: 0 auto; padding: 6.5rem 16px 1rem; }
.scrub .stage { position: relative; height: auto; overflow: visible; }
.scrub .poster, .scrub .hero-video, .scrub .scrim, .scrub .ring, .scrub .cue { display: none; }
.scrub .band { display: none; }
.scrub .band.b5 { display: block; position: relative; width: auto; padding: 0; opacity: 1 !important; --k: 1 !important; text-shadow: none; }
.scrub .band.b5::before { display: none; }
.scrub .band .cta { visibility: visible; pointer-events: auto; }
.scrub .static-sheet { display: block; }
.scrub .only-static { display: block; }
.scrub .only-scrub { display: none !important; }
}
/* Reduzierte Bewegung: alles im Endzustand, nichts läuft */
@media (prefers-reduced-motion: reduce) {
.cm-line i, .cm-end svg, .cm-end b, .dimline i, .step-list .step, .feat-list li, .statement, .reveal, .end .wall { opacity: 1 !important; transform: none !important; }
}
+123 -168
View File
@@ -1,195 +1,150 @@
/* DOSSIER-Website. Bewusst schlicht: Papier, Tinte, Haarlinien wie auf einem
Plan. Farben aus dem App-Hell-Theme (src/styles.css), kein Akzent. */
/* Dossier-Website: gemeinsame Grundlage für Startseite und Doku.
Farben und Schriften aus dem Design-Paket (website/_design/DESIGN-PAKET.md): Planpapier, Tusche,
Schraffurgrau und das Öffnungsrot aus den Dossier-Plänen. Schriften liegen in /fonts (OFL). */
@font-face {
font-family: "archivo";
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("/fonts/archivo.woff2") format("woff2");
}
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/schibsted-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/schibsted-grotesk-800.woff2") format("woff2"); }
/* IBM Plex Sans/Mono, beschnitten und darum umbenannt (reservierter Name, s. NOTICE) */
@font-face { font-family: "Dossier Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Dossier Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Dossier Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
:root {
--paper: #f5f2ec;
--ink: #1a1a18;
--dim: #5f5b55;
--hair: #cfc9c0;
--code: #ebe6de;
--sans: "archivo", system-ui, sans-serif;
--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
--canvas: #f2f0e9;
--panel: #fbfaf5;
--accent: #b3362b;
--accent-hover: #952b22;
--accent-muted: rgba(179, 54, 43, .14);
--on-accent: #fbfaf5;
--text-secondary: #5a5f66;
--text-primary: #1c1f23;
--hatch: #c9c6bd;
--line: #8d9096; /* Ränder von Bedienelementen (≥ 3:1 auf Papier) */
--code: #e8e5dc;
--scrim: 242, 240, 233; /* Papier als RGB für Schleier über dem Hero */
--display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
--sans: "Dossier Text", "Helvetica Neue", Arial, sans-serif;
--mono: "Dossier Mono", ui-monospace, Menlo, Consolas, monospace;
--ease-out: cubic-bezier(.2, .7, .2, 1);
--ease-io: cubic-bezier(.6, 0, .3, 1);
--wrap: 72rem;
color-scheme: light;
}
/* Dunkel: Lichtpause */
@media (prefers-color-scheme: dark) {
:root {
--paper: #141413;
--ink: #e6e3dd;
--dim: #9a968f;
--hair: #3a3935;
--code: #1f1f1d;
:root:not([data-theme="light"]) {
--canvas: #15181c; --panel: #1d2126; --accent: #e0675b; --accent-hover: #ee8277;
--accent-muted: rgba(224, 103, 91, .16); --on-accent: #15181c; --text-secondary: #a3a8ae; --text-primary: #ecebe6;
--hatch: #3a3f46; --line: #747a82; --code: #23282e; --scrim: 21, 24, 28; color-scheme: dark;
}
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0;
padding: 0 16px;
background: var(--paper);
color: var(--ink);
font: 16px/1.55 var(--sans);
:root[data-theme="dark"] {
--canvas: #15181c; --panel: #1d2126; --accent: #e0675b; --accent-hover: #ee8277;
--accent-muted: rgba(224, 103, 91, .16); --on-accent: #15181c; --text-secondary: #a3a8ae; --text-primary: #ecebe6;
--hatch: #3a3f46; --line: #747a82; --code: #23282e; --scrim: 21, 24, 28; color-scheme: dark;
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
margin: 0;
background: var(--canvas);
color: var(--text-primary);
font: 400 1.0625rem/1.6 var(--sans);
overflow-x: hidden; overflow-x: clip;
animation: page-in .6s var(--ease-out) both;
}
@keyframes page-in { from { opacity: 0; } }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .2s var(--ease-out), text-decoration-color .2s var(--ease-out); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
code, pre, kbd { font-family: var(--mono); font-size: .875em; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--panel); color: var(--text-primary); padding: .6rem 1rem; border: 1px solid var(--line); transition: top .2s var(--ease-out); }
.skip:focus { top: 1rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* Planraster: eine feste Ebene hinter allem, sehr langsame Drift */
.plangrid { position: fixed; inset: -96px; z-index: -1; pointer-events: none;
background-image:
linear-gradient(to right, color-mix(in srgb, var(--hatch) 70%, transparent) 1px, transparent 1px),
linear-gradient(to bottom, color-mix(in srgb, var(--hatch) 70%, transparent) 1px, transparent 1px),
linear-gradient(to right, color-mix(in srgb, var(--hatch) 32%, transparent) 1px, transparent 1px),
linear-gradient(to bottom, color-mix(in srgb, var(--hatch) 32%, transparent) 1px, transparent 1px);
background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
animation: grid-drift 90s linear infinite alternate; animation-delay: -30s; will-change: transform; }
@keyframes grid-drift { to { transform: translate3d(48px, 24px, 0); } }
/* ---- Kopf und Fuss -------------------------------------------------- */
.top, .foot, .home, .docs { max-width: 64rem; margin-inline: auto; }
.top {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: .5rem 1.5rem;
padding: 1.25rem 0 1rem;
border-bottom: 1px solid var(--ink);
}
.mark {
font-weight: 800;
font-size: 1.15rem;
letter-spacing: -.01em;
text-decoration: none;
}
.top nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font: .875rem var(--mono); }
.top { position: relative; z-index: 20; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap;
max-width: var(--wrap); margin: 0 auto; padding: 1.25rem 16px 1rem; }
.mark { font: 800 1.3rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.mark span { color: var(--accent); }
.top nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; font: .875rem var(--mono); }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; }
.theme-toggle { font: inherit; color: inherit; background: none; border: 1px solid var(--line); border-radius: 999px; width: 2rem; height: 2rem; display: inline-grid; place-items: center; cursor: pointer; padding: 0; align-self: center; transition: border-color .2s var(--ease-out), color .2s var(--ease-out); }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 1rem; height: 1rem; }
.docs-page .top { border-bottom: 1px solid var(--text-primary); }
.foot {
display: flex;
flex-wrap: wrap;
gap: .25rem 1.5rem;
margin-top: 4rem;
padding: 1rem 0 2rem;
border-top: 1px solid var(--ink);
font: .8rem var(--mono);
color: var(--dim);
.foot { max-width: var(--wrap); margin: 5rem auto 0; padding: 1.25rem 16px 2.5rem; border-top: 1px solid var(--text-primary);
display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.75rem; font: .8125rem/1.5 var(--mono); color: var(--text-secondary); }
.foot a { color: var(--text-primary); }
.foot a:hover { color: var(--accent); }
.foot .mark { font-size: 1rem; color: var(--text-primary); }
@media (pointer: coarse) {
.top nav a, .foot a { min-height: 44px; display: inline-flex; align-items: center; }
.theme-toggle { width: 44px; height: 44px; }
}
/* ---- Startseite ----------------------------------------------------- */
.home { padding-top: 2.5rem; }
.home > * { max-width: 44rem; }
/* Plankopf: Felder mit kleiner Beschriftung oben, Wert darunter. Die
Haarlinien entstehen aus einem 1px-Gap über dem Tintenhintergrund. */
.titleblock {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1px;
margin: 0 0 2.5rem;
background: var(--ink);
border: 1.5px solid var(--ink);
}
.titleblock > div { background: var(--paper); padding: .4rem .6rem .5rem; min-width: 0; }
.titleblock .tb-wide { grid-column: span 2; }
.titleblock dt {
font: .65rem var(--mono);
text-transform: uppercase;
letter-spacing: .08em;
color: var(--dim);
}
.titleblock dd { margin: .1rem 0 0; font-size: .95rem; }
.titleblock .tb-name { font-weight: 800; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.01em; }
@media (max-width: 560px) {
.titleblock { grid-template-columns: 1fr 1fr; }
}
/* ---- Fliesstext ----------------------------------------------------- */
.prose { min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; margin: 0 0 1.5rem; }
.prose h2 {
margin: 3rem 0 1rem;
padding-top: .5rem;
border-top: 1px solid var(--ink);
font: 600 .8rem var(--mono);
text-transform: uppercase;
letter-spacing: .08em;
}
.prose h3 { font-size: 1rem; margin: 2rem 0 .5rem; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .25rem; }
.prose :not(pre) > code { background: var(--code); padding: .05em .3em; }
.prose pre {
background: var(--code);
padding: .75rem 1rem;
overflow-x: auto;
line-height: 1.45;
}
.prose pre code { font-size: .8rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .35rem .75rem .35rem 0; border-bottom: 1px solid var(--hair); }
.prose th { font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; border-bottom-color: var(--ink); }
.prose blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 2px solid var(--ink); color: var(--dim); }
.prose hr { border: 0; border-top: 1px dashed var(--hair); margin: 2rem 0; }
/* Commit-Log */
.log { list-style: none; padding: 0; font: .8rem/1.5 var(--mono); }
.log li { display: grid; grid-template-columns: auto auto 1fr; gap: 0 .75rem; padding: .3rem 0; border-bottom: 1px solid var(--hair); margin: 0; }
.log time { color: var(--dim); }
.log a { text-decoration: none; }
.log a:hover { text-decoration: underline; }
.log code { font-size: 1em; background: none; padding: 0; }
@media (max-width: 560px) {
.log li { grid-template-columns: auto 1fr; }
.log span { grid-column: 1 / -1; }
}
/* Inhaltsverzeichnisse in der Doku (ehemals Hextra-Cards) */
.index { list-style: none; padding: 0 !important; border-top: 1px solid var(--hair); }
.index li { margin: 0; padding: .45rem 0; border-bottom: 1px solid var(--hair); }
.index a { font-weight: 600; }
.index span { display: block; color: var(--dim); font-size: .9rem; }
/* ---- Doku ----------------------------------------------------------- */
.docs { padding-top: 2.5rem; display: grid; gap: 2rem; }
.docs { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 16px 0; display: grid; gap: 2rem; }
@media (min-width: 860px) {
.docs { grid-template-columns: 13rem minmax(0, 44rem); gap: 3rem; }
.docnav { position: sticky; top: 1.5rem; align-self: start; }
.docs { grid-template-columns: 14rem minmax(0, 46rem); gap: 3.5rem; }
.docnav { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow-y: auto; }
}
.docnav { font-size: .9rem; }
.docnav { font-size: .9375rem; }
.docnav a { text-decoration: none; }
.docnav a:hover, .docnav a[aria-current] { text-decoration: underline; }
.docnav a[aria-current] { font-weight: 700; }
.docnav p {
margin: 1.25rem 0 .35rem;
font: 600 .7rem var(--mono);
text-transform: uppercase;
letter-spacing: .08em;
}
.docnav a:hover { text-decoration: underline; }
.docnav a[aria-current] { font-weight: 500; color: var(--accent); }
.docnav p { margin: 1.4rem 0 .4rem; font: .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); }
.docnav ul { list-style: none; margin: 0; padding: 0; }
.docnav li { margin: 0 0 .2rem; }
.docnav li { margin: 0 0 .25rem; }
@media (max-width: 859px) {
.docnav { border-bottom: 1px solid var(--hair); padding-bottom: 1rem; }
.docnav { border-bottom: 1px solid var(--hatch); padding-bottom: 1rem; }
.docnav ul { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
}
.prose { min-width: 0; background: color-mix(in srgb, var(--canvas) 86%, transparent); }
.prose > :first-child { margin-top: 0; }
.prose h1 { font: 800 clamp(2rem, 4vw, 2.75rem)/1.08 var(--display); letter-spacing: -.025em; margin: 0 0 1.75rem; }
.prose h2 { margin: 3rem 0 1rem; font: 600 1.5rem/1.2 var(--display); letter-spacing: -.01em; }
.prose h2::before { content: ""; display: block; height: 1px; margin-bottom: 1rem; background: var(--text-primary); }
.prose h3 { font: 600 1.125rem/1.3 var(--display); margin: 2rem 0 .5rem; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .3rem; }
.prose :not(pre) > code { background: var(--code); padding: .05em .3em; border-radius: 2px; }
.prose pre { background: var(--code); padding: .75rem 1rem; overflow-x: auto; line-height: 1.45; }
.prose pre code { font-size: .8125rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .4rem .75rem .4rem 0; border-bottom: 1px solid var(--hatch); }
.prose th { font: .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; border-bottom-color: var(--text-primary); }
.prose blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 2px solid var(--accent); color: var(--text-secondary); }
.prose hr { border: 0; border-top: 1px dashed var(--hatch); margin: 2rem 0; }
.prose img { display: block; margin: 1.5rem 0; border: 1px solid var(--hatch); background: var(--panel); }
:root[data-theme="dark"] .prose img { filter: brightness(.9); }
.index { list-style: none; padding: 0 !important; border-top: 1px solid var(--hatch); }
.index li { margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--hatch); }
.index a { font-weight: 500; }
.index span { display: block; color: var(--text-secondary); font-size: .9375rem; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; transition-delay: 0s !important; }
}
+20
View File
@@ -0,0 +1,20 @@
// Gemeinsam für Startseite und Doku: Farbschema-Schalter, Animationen in verborgenen Tabs anhalten.
export function initCommon() {
const root = document.documentElement;
const dark = () => root.dataset.theme === "dark" || (root.dataset.theme !== "light" && matchMedia("(prefers-color-scheme: dark)").matches);
for (const b of document.querySelectorAll(".theme-toggle")) {
const sync = () => b.setAttribute("aria-pressed", String(dark()));
sync();
b.addEventListener("click", () => {
const next = dark() ? "light" : "dark";
root.dataset.theme = next;
try {
localStorage.setItem("dossier-theme", next);
} catch {
/* ohne Speicher gilt die Wahl nur für diese Seite */
}
sync();
});
}
document.addEventListener("visibilitychange", () => document.body.classList.toggle("paused", document.hidden));
}
+496
View File
@@ -0,0 +1,496 @@
// Startseite: Scroll-Video (Blob, geglättete Zeit, gegatete Seeks), Textabschnitte, Schnittmarken,
// „Schnitt setzen". Standard s. website/_design/DESIGN-PAKET.md (Technik) und TODO.md [138].
import { initCommon } from "./common.js";
initCommon();
const VIDEO_URL = "/hero/hero-scrub.mp4";
const POSTER_URL = "/hero/hero-poster.jpg";
// Die fünf Bedingungen für die ruhige Startseite, Zeichen für Zeichen wie in home.css
const GATES = [
"(max-width: 720px)",
"(orientation: portrait) and (max-width: 1024px)",
"(orientation: portrait) and (pointer: coarse)",
"(orientation: landscape) and (pointer: coarse) and (max-height: 560px)",
"(prefers-reduced-motion: reduce)",
];
const RM = matchMedia("(prefers-reduced-motion: reduce)");
const root = document.documentElement;
const hero = document.querySelector(".hero");
const stage = hero.querySelector(".stage");
const video = hero.querySelector(".hero-video");
const poster = hero.querySelector(".poster");
const ring = hero.querySelector(".ring");
const clamp = (v, lo, hi) => Math.min(hi, Math.max(lo, v));
const smoothstep = (p, e0, e1) => {
const t = clamp((p - e0) / (e1 - e0), 0, 1);
return t * t * (3 - 2 * t);
};
function rng(seed) {
let s = seed >>> 0;
return () => (s = (s * 1664525 + 1013904223) >>> 0) / 4294967296;
}
// ---- Text zerlegen (einmal): unsichtbarer Satz für Vorleser, sichtbare Kopie aus Wörtern/Zeichen ----
const OPENING_WORDS = new Set(["Fenstern,", "Türen."]);
function split(el, mode, seed) {
const text = el.textContent.replace(/\s+/g, " ").trim();
const r = rng(seed);
const sr = document.createElement("span");
sr.className = "vh";
sr.textContent = text;
const vis = document.createElement("span");
vis.setAttribute("aria-hidden", "true");
const word = (w, th) => {
const s = document.createElement("span");
s.className = "w";
s.textContent = w;
s.style.setProperty("--th", th.toFixed(3));
return s;
};
if (mode === "chars") {
// Zeichen in Wort-Hüllen, damit nie mitten im Wort umbrochen wird
const n = text.length;
let i = 0;
text.split(" ").forEach((w, wi, all) => {
const ws = document.createElement("span");
ws.className = "w";
for (const ch of w) {
const c = document.createElement("span");
c.className = "c";
c.textContent = ch;
c.style.setProperty("--th", ((i / n) * 0.6 + r() * 0.05).toFixed(3));
ws.append(c);
i++;
}
vis.append(ws);
if (wi < all.length - 1) {
vis.append(" ");
i++;
}
});
} else if (mode === "words" || mode === "rise") {
const words = mode === "rise" ? text.split(/(?<=-)/) : text.split(" ");
words.forEach((w, i) => {
const s = word(w, mode === "rise" ? i * 0.14 : (i / words.length) * 0.55 + r() * 0.06);
if (OPENING_WORDS.has(w)) s.classList.add("em");
vis.append(s);
if (mode === "words" && i < words.length - 1) vis.append(" ");
});
} else {
// Zeilen bzw. Hälften: Kinder-<span> der Vorlage
const parts = [...el.querySelectorAll(":scope > span")].map((s) => s.textContent.trim());
parts.forEach((p, li) => {
const line = document.createElement("span");
line.className = mode === "lines" ? "ln" : "half";
if (mode === "lines") {
line.style.setProperty("--lt", (li * 0.32).toFixed(3));
const ws = p.split(" ");
ws.forEach((w, i) => {
line.append(word(w, li * 0.32 + i * 0.05 + r() * 0.03));
if (i < ws.length - 1) line.append(" ");
});
} else line.textContent = p;
vis.append(line);
});
}
el.replaceChildren(sr, vis);
}
document.querySelectorAll("[data-split]").forEach((el, i) => split(el, el.dataset.split, 17 + i * 31));
// ---- Abschnitte im Hero (Scroll-Distanz) ----
const bands = [...hero.querySelectorAll(".band")].map((el, i, all) => ({
el,
a: +el.dataset.a,
b: +el.dataset.b,
ramp: el.dataset.ramp ? +el.dataset.ramp : 0,
first: i === 0,
last: i === all.length - 1,
op: -1,
k: -1,
on: null,
}));
let loadK = 0;
function updateCaptions(p) {
for (const B of bands) {
const f = Math.min(0.02, (B.b - B.a) / 3);
let op = (B.first ? 1 : smoothstep(p, B.a, B.a + f)) * (B.last ? 1 : 1 - smoothstep(p, B.b - f, B.b));
let k = clamp((p - B.a) / (B.ramp || Math.min(0.025, (B.b - B.a) * 0.35)), 0, 1);
if (B.first) k = Math.max(k, loadK);
if (p < B.a - 0.001 || p > B.b + 0.001) op = B.first && p <= B.b ? op : 0;
op = Math.round(op * 1000) / 1000;
if (op !== B.op) {
B.op = op;
B.el.style.opacity = String(op);
}
if (Math.abs(k - B.k) > 0.008 || (k !== B.k && (k === 0 || k === 1))) {
B.k = k;
B.el.style.setProperty("--k", k.toFixed(3));
}
const on = op > 0.5;
if (on !== B.on) {
B.on = on;
B.el.classList.toggle("on", on);
}
}
}
function clearCaptions() {
for (const B of bands) {
B.el.style.removeProperty("opacity");
B.el.style.removeProperty("--k");
B.el.classList.remove("on");
B.op = B.k = -1;
B.on = null;
}
}
// ---- Scroll → Zeit, geglättet, ruht bei Gleichstand ----
function heroProgress() {
const r = hero.getBoundingClientRect();
const range = hero.offsetHeight - innerHeight;
return range > 0 ? clamp(-r.top / range, 0, 1) : 0;
}
let target = 0;
let shown = 0;
let rafId = null;
let lastTick = 0;
let heroOnScreen = true;
let moved = false;
function tick(now) {
const dt = Math.min(100, now - (lastTick || now));
lastTick = now;
shown += (target - shown) * (1 - Math.pow(1 - 0.16, dt / 16.667));
if (Math.abs(target - shown) < 0.0005) {
shown = target;
rafId = null;
lastTick = 0;
} else rafId = requestAnimationFrame(tick);
requestSeek(shown * (video.duration || 0));
updateCaptions(shown);
const m = shown > 0.015;
if (m !== moved) {
moved = m;
stage.classList.toggle("moved", m);
}
}
function onScroll() {
target = heroProgress();
if (rafId === null && heroOnScreen) rafId = requestAnimationFrame(tick);
}
new IntersectionObserver((es) => {
heroOnScreen = es[0].isIntersecting;
if (heroOnScreen && scrubOn) onScroll();
}).observe(hero);
// ---- Gegatete Seeks (nie zwei gleichzeitig, nur der neueste zählt) ----
let seekBusy = false;
let pendingTime = null;
function requestSeek(t) {
if (!video.duration || !videoReady) return;
if (Math.abs(video.currentTime - t) < 0.001) return;
if (seekBusy) {
pendingTime = t;
return;
}
seekBusy = true;
video.currentTime = t;
}
video.addEventListener("seeked", () => {
seekBusy = false;
if (pendingTime !== null) {
const t = pendingTime;
pendingTime = null;
requestSeek(t);
}
});
video.addEventListener("error", () => {
seekBusy = false;
pendingTime = null;
failVideo();
});
// ---- Video als Blob (Range-unabhängig), Poster zuerst, Wachhund ----
let videoReady = false;
let heroInit = false;
function failVideo() {
stage.classList.add("video-failed");
}
async function loadHeroBlob() {
const ctrl = new AbortController();
let watchdog = setTimeout(() => ctrl.abort(), 20000);
const res = await fetch(VIDEO_URL, { priority: "low", signal: ctrl.signal });
if (!res.ok || !res.body) throw new Error(String(res.status));
const total = Number(res.headers.get("Content-Length")) || 3019980;
const reader = res.body.getReader();
const chunks = [];
let got = 0;
let lastRing = 0;
for (;;) {
const { done, value } = await reader.read();
if (done) break;
clearTimeout(watchdog);
watchdog = setTimeout(() => ctrl.abort(), 20000);
chunks.push(value);
got += value.length;
const frac = Math.min(1, got / total);
const now = performance.now();
if (now - lastRing > 100 || frac === 1) {
lastRing = now;
ring.style.setProperty("--ld", String(Math.round(126 * (1 - frac))));
}
}
clearTimeout(watchdog);
ring.style.setProperty("--ld", "0");
video.src = URL.createObjectURL(new Blob(chunks, { type: "video/mp4" }));
video.load();
video.addEventListener(
"canplay",
() => {
videoReady = true;
requestSeek(heroProgress() * video.duration);
stage.classList.add("video-ready");
},
{ once: true },
);
}
function initHeroOnce() {
if (heroInit) return;
heroInit = true;
poster.style.backgroundImage = `url("${POSTER_URL}")`;
let started = false;
const start = () => {
if (started) return;
started = true;
loadHeroBlob().catch(failVideo);
};
const img = new Image();
img.onload = start;
img.onerror = start;
img.src = POSTER_URL;
setTimeout(start, 4000);
}
// ---- Die fünf Bedingungen, live ----
let scrubOn = false;
function enableScrub() {
if (scrubOn) return;
scrubOn = true;
root.classList.add("scrub");
initHeroOnce();
addEventListener("scroll", onScroll, { passive: true });
addEventListener("resize", onScroll, { passive: true });
bands.forEach((B) => {
B.op = -1;
B.k = -1;
});
unpinFinalStates();
shown = target = heroProgress();
updateCaptions(shown);
onScroll();
}
function disableScrub() {
if (!scrubOn) return;
scrubOn = false;
removeEventListener("scroll", onScroll);
removeEventListener("resize", onScroll);
if (rafId !== null) {
cancelAnimationFrame(rafId);
rafId = null;
}
root.classList.remove("scrub");
clearCaptions();
}
function applyHeroMode() {
if (GATES.some((q) => matchMedia(q).matches)) disableScrub();
else enableScrub();
}
const MQLS = GATES.map((q) => matchMedia(q));
MQLS.forEach((m) => m.addEventListener("change", applyHeroMode));
// Abschnitt 1 setzt sich beim Laden einmal zusammen (danach übernimmt der Scroll)
const loadStart = performance.now();
function loadRamp(now) {
loadK = smoothstep(now - loadStart, 150, 1400);
if (scrubOn) updateCaptions(shown);
if (loadK < 1) requestAnimationFrame(loadRamp);
}
// ---- Schnittmarken, Masslinien, Auftritte ----
const reveals = [...document.querySelectorAll(".cutmark, .dimline, .reveal, .end .wall")];
const ARROW = '<svg viewBox="0 0 20 28" aria-hidden="true"><path d="M10 1V26M4 20l6 6 6-6" fill="none" stroke="currentColor" stroke-width="2"/></svg>';
function buildCutmark(el) {
const L = el.dataset.letter;
if (!el.firstChild) {
el.innerHTML = `<span class="cm-end">${ARROW}<b>${L}</b></span><span class="cm-line"></span><span class="cm-end">${ARROW}<b>${L}</b></span>`;
}
const line = el.querySelector(".cm-line");
const w = line.getBoundingClientRect().width;
// Strich-Punkt wie die Schnittlinie im Plan: 22 lang, 6 Lücke, 3 Punkt, 6 Lücke
const n = Math.max(2, Math.floor(w / 37));
if (line.childElementCount === n * 2) return;
const frag = document.createDocumentFragment();
for (let i = 0; i < n; i++) {
const d = Math.abs((i + 0.5) / n - 0.5) * 2;
for (const cls of ["", "dot"]) {
const s = document.createElement("i");
if (cls) s.className = cls;
s.style.setProperty("--dl", `${(d * 0.55).toFixed(3)}s`);
frag.append(s);
}
}
line.replaceChildren(frag);
}
const cutmarks = [...document.querySelectorAll(".cutmark")];
cutmarks.forEach(buildCutmark);
let rsz = 0;
addEventListener("resize", () => {
clearTimeout(rsz);
rsz = setTimeout(() => cutmarks.forEach(buildCutmark), 200);
});
const revealIO = new IntersectionObserver(
(es) => {
for (const e of es) {
if (!e.isIntersecting) continue;
e.target.classList.add("in");
if (e.target.matches(".step-list, .feat-list")) setTimeout(() => e.target.classList.add("done"), 1400);
}
},
{ rootMargin: "0px 0px -12% 0px" },
);
reveals.forEach((el) => revealIO.observe(el));
// Lebendige Elemente nur auf dem Bildschirm
const liveIO = new IntersectionObserver((es) => es.forEach((e) => e.target.classList.toggle("live", e.isIntersecting)));
document.querySelectorAll(".sec").forEach((s) => liveIO.observe(s));
// ---- Was alles drin ist: Bild beim Darüberfahren ----
const featBtns = [...document.querySelectorAll(".feat-list button")];
const shots = [...document.querySelectorAll(".shots img")];
function showShot(i) {
featBtns.forEach((b, j) => b.setAttribute("aria-pressed", String(i === j)));
shots.forEach((s, j) => s.classList.toggle("on", i === j));
}
featBtns.forEach((b, i) => {
b.addEventListener("click", () => showShot(i));
b.addEventListener("pointerenter", (e) => {
if (e.pointerType === "mouse") showShot(i);
});
b.addEventListener("focus", () => showShot(i));
});
// ---- Schnitt setzen: Linie über den Grundriss ziehen, Schnitt folgt (12 vorgerechnete Schnitte) ----
// Lage der Schnittlinien im Modell (x in m) und Ausschnitt des Grundrissbilds (viewBox x, Breite)
const CUT_X = Array.from({ length: 12 }, (_, i) => 0.6 + (i * 16.6) / 11);
const PLAN_VB = [-7.2, 28.25406];
const cutPlan = document.querySelector(".cut-plan");
const cutLine = document.querySelector(".cut-line");
const cutImgs = [...document.querySelectorAll(".cut-view img")];
const cutRange = document.querySelector(".cut-ctrl input");
const cutOut = document.querySelector(".cut-ctrl .kote");
const f0 = (CUT_X[0] - PLAN_VB[0]) / PLAN_VB[1];
const f1 = (CUT_X[11] - PLAN_VB[0]) / PLAN_VB[1];
let cutIdx = -1;
let cutU = 0.5;
let lastCutPx = -1;
function setCut(u) {
cutU = clamp(u, 0, 1);
const px = Math.round((f0 + (f1 - f0) * cutU) * cutPlan.clientWidth * 10) / 10;
if (px !== lastCutPx) {
lastCutPx = px;
cutLine.style.transform = `translateX(${px}px)`;
}
const i = Math.round(cutU * 11);
if (i !== cutIdx) {
cutIdx = i;
cutImgs.forEach((im, j) => im.classList.toggle("on", j === i));
const x = CUT_X[i].toFixed(2);
cutOut.textContent = `A–A ${x}`;
cutRange.setAttribute("aria-valuetext", `${x} m von der Westfassade, Schnitt ${i + 1} von 12`);
}
const v = String(Math.round(cutU * 1000));
if (cutRange.value !== v) cutRange.value = v;
}
cutRange.addEventListener("input", () => setCut(+cutRange.value / 1000));
// Loslassen: weich auf den gezeigten Schnitt einrasten
let snapRaf = null;
function snapCut() {
if (RM.matches) return setCut(Math.round(cutU * 11) / 11);
const goal = Math.round(cutU * 11) / 11;
cancelAnimationFrame(snapRaf);
const step = () => {
const d = goal - cutU;
if (Math.abs(d) < 0.001) return setCut(goal);
setCut(cutU + d * 0.2);
snapRaf = requestAnimationFrame(step);
};
snapRaf = requestAnimationFrame(step);
}
cutRange.addEventListener("change", snapCut);
let dragging = false;
const fromPointer = (e) => {
const r = cutPlan.getBoundingClientRect();
return ((e.clientX - r.left) / r.width - f0) / (f1 - f0);
};
cutPlan.addEventListener("pointerdown", (e) => {
dragging = true;
cancelAnimationFrame(snapRaf);
cutPlan.setPointerCapture(e.pointerId);
setCut(fromPointer(e));
});
cutPlan.addEventListener("pointermove", (e) => {
if (dragging) setCut(fromPointer(e));
});
const endDrag = () => {
if (!dragging) return;
dragging = false;
snapCut();
};
cutPlan.addEventListener("pointerup", endDrag);
cutPlan.addEventListener("pointercancel", endDrag);
addEventListener("resize", () => {
lastCutPx = -1;
setCut(cutU);
});
// Ohne Bewegung direkt der mittlere Schnitt; sonst ein langsamer Hinweis-Schwenk beim ersten Erscheinen
setCut(5 / 11);
let cutHinted = false;
new IntersectionObserver(
(es) => {
if (!es[0].isIntersecting || cutHinted || RM.matches) return;
cutHinted = true;
const t0 = performance.now();
const from = cutU;
const hint = (now) => {
if (dragging || pinned) return;
const t = clamp((now - t0) / 2600, 0, 1);
setCut(from + Math.sin(t * Math.PI * 2) * 0.18 * (1 - t));
if (t < 1) requestAnimationFrame(hint);
else snapCut();
};
requestAnimationFrame(hint);
},
{ threshold: 0.6 },
).observe(cutPlan);
// ---- Reduzierte Bewegung live, in beide Richtungen ----
let pinned = [];
function pinToFinalStates() {
pinned = reveals.filter((el) => !el.classList.contains("in"));
pinned.forEach((el) => el.classList.add("in", "done"));
cancelAnimationFrame(snapRaf);
setCut(5 / 11);
}
function unpinFinalStates() {
for (const el of pinned) {
if (el.getBoundingClientRect().top > innerHeight) el.classList.remove("in", "done");
}
pinned = [];
}
RM.addEventListener("change", (e) => {
if (e.matches) pinToFinalStates();
else applyHeroMode();
});
applyHeroMode();
if (RM.matches) pinToFinalStates();
requestAnimationFrame(loadRamp);
+3
View File
@@ -0,0 +1,3 @@
import { initCommon } from "./common.js";
initCommon();
+7
View File
@@ -0,0 +1,7 @@
// Gewähltes Farbschema vor dem ersten Bild setzen (eigene Datei statt Inline-Skript, CSP-tauglich).
try {
const t = localStorage.getItem("dossier-theme");
if (t === "light" || t === "dark") document.documentElement.dataset.theme = t;
} catch {
/* ohne Speicher: Systemvorgabe */
}
+10
View File
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": [
"*"
]
}
}
}
+3 -79
View File
@@ -1,82 +1,6 @@
---
title: "DOSSIER"
description: "Dossier ist ein quelloffenes CAD für Architektur: ein Gebäudemodell aus Bauteilen, aus dem Grundriss, Schnitt, Ansicht, 3D und Planblätter berechnet werden. Für die Praxis in der Schweiz, AGPL-3.0."
title: "Dossier"
description: "Dossier ist ein freies CAD für Architektur. Du baust ein Gebäude aus Bauteilen, Grundriss, Schnitt und Ansicht werden daraus berechnet. Open-Source-CAAD unter AGPL-3.0."
---
Dossier ist ein CAD-Programm für Architektinnen und Architekten. Man modelliert
ein Gebäude aus Bauteilen – Wände, Decken, Dächer, Treppen, Fenster, Türen,
Räume – und erhält daraus Grundrisse, Deckenspiegel, Schnitte, Ansichten, ein
3D-Modell, Mengen und fertige Planblätter. Dazu kommt ein vollwertiges
2D-Zeichenprogramm mit Befehlszeile, wie man es von AutoCAD oder Rhino kennt.
![Dossier mit dem Musterhaus: Grundriss Erdgeschoss 1:100, links die Werkzeuge, rechts Objekt-Info und Ausschnitte](/img/app-grundriss.webp)
## Ein Modell, alle Pläne
Es gibt genau ein Modell. Alles andere wird daraus abgeleitet und nie von Hand
nachgeführt: Verschiebt man eine Wand, stimmen Grundriss, Schnitt, Ansicht, 3D,
Flächenbilanz, Fenster- und Türliste und IFC sofort wieder. Bemassungen, die
an Bauteilen gefangen wurden, wandern mit.
Der Grundriss wird nicht aus einem 3D-Netz geschnitten, sondern aus den
Bauteilen berechnet: Wandachse und Schichten ergeben Linien und Füllungen,
Öffnungen ergeben Lücke, Leibung und Symbol. Strichstärken, Schraffuren und
Detailgrad kommen erst beim Zeichnen dazu – das PDF ist derselbe Plan wie am
Bildschirm, mit echten Stiftstärken in Millimetern.
![Schnitt A-A aus dem Musterhaus, mit Schraffuren der Schichten und Gelände](/img/cli-schnitt-aa.webp)
## Für wen
- **Architekturbüros in der Schweiz:** Landeskoordinaten LV95, Daten von
swisstopo, Kataster als DWG/DXF, Flächen nach SIA 416, Kennzahlen nach IVHB,
Darstellung in Anlehnung an SIA 400 (Baustoffe, Schraffuren, Linientypen).
- **Wettbewerb bis Ausführung:** Baurecht und Lage prüfen, Massenmodelle und
Raumprogramm, Eingabepläne 1:100, Ausführungspläne 1:50, Plansätze als PDF,
DXF/DWG und IFC für die Fachplaner.
- **Wer offene Werkzeuge will:** Dossier ist freie Software unter der
AGPL-3.0. Das Dateiformat `.obp` ist offenes JSON, die Kommandozeile
`dossier-cli` erzeugt Pläne und Exporte ohne Fenster.
## Was es kann
- **Bauteile:** mehrschichtige Wände (auch gebogen) mit sauberen Anschlüssen,
Fenster und Türen mit Typen, Anschlag und Leibung, Decken mit Aussparungen,
Dächer über beliebigen Grundrissen mit Gauben und Dachfenstern, Treppen,
Stützen, Räume, Volumenkörper.
- **Pläne:** Grundriss je Geschoss, Deckenspiegel, Schnitte und Ansichten aus
Schnittlinien, Ansichtsbereich, Detailgrad, Ansichtsvorlagen, Skizzenstil.
- **Layout:** Blätter mit Ansichtsfenstern, Masterlayouts mit Plankopf,
Legenden, Tabellen, Publikationssätze mit Index, Vektor-PDF mit Ebenen.
- **Ort:** Georeferenz, Gelände aus Höhenlinien, Baugrube, Baulinien und
Grenzabstände, Sonnenstand und Schatten.
- **Austausch:** DXF/DWG, IFC4/IFC2x3, STEP, OBJ/STL/glTF, PDF, SVG, CSV.
Alle Funktionen, gegliedert und mit ehrlichem Stand: [Funktionen](/funktionen/).
![Ansicht Süd im Skizzenstil](/img/cli-ansicht-skizze.webp)
## Stand
Dossier ist in aktiver Entwicklung und noch vor der ersten öffentlichen Beta.
Es gibt keine fertigen Installer; man baut es aus dem Quellcode
([Download und Installation](/download/)). Hauptplattform ist macOS (Tauri,
Anzeige über Metal), Linux läuft über Electron. Was fertig ist und was nicht,
steht unter [Stand](/stand/).
## Weiter
- [Anleitung](/docs/anleitung/) – Bedienung, Schritt für Schritt
- [Für Entwickler](/docs/entwickler/) – Aufbau, Bauen, Testen, Mitarbeiten
- [Quellcode auf GitHub](https://github.com/expiredtanin/DOSSIER) – Issues,
Pull Requests, Arbeitsliste `TODO.md`
## Lizenz
© 2026 Karim Gabriele Varano, veröffentlicht unter der
[GNU Affero General Public License v3.0 oder später](https://github.com/expiredtanin/DOSSIER/blob/master/LICENSE).
Wer Dossier verändert und als Netzwerkdienst anbietet, muss den geänderten
Quellcode ebenfalls offenlegen. Fremdkomponenten behalten ihre Lizenzen
(siehe [`NOTICE`](https://github.com/expiredtanin/DOSSIER/blob/master/NOTICE)).
Dossier ist Teil von [openbureau](https://openbureau.ch) und entstand aus dem
gleichnamigen Rhino-Plugin.
<!-- Die Startseite steht vollständig in layouts/home.html (Texte aus website/_design/DESIGN-PAKET.md). -->
+5 -9
View File
@@ -1,5 +1,5 @@
baseURL = "https://dossier.openbureau.ch/"
title = "DOSSIER"
title = "Dossier"
languageCode = "de-CH"
defaultContentLanguage = "de"
enableRobotsTXT = true
@@ -12,13 +12,9 @@ disableKinds = ["taxonomy", "term", "rss"]
unsafe = true
[params]
description = "DOSSIER ist ein Open-Source-CAD für Architektur: 2D-Zeichnen und ein Gebäudemodell aus Bauteilen, aus dem Grundriss, Schnitt, Ansicht und PDF berechnet werden. AGPL-3.0."
description = "Dossier ist ein freies CAD für Architektur. Du baust ein Gebäude aus Bauteilen, Grundriss, Schnitt und Ansicht werden daraus berechnet. Open-Source-CAAD unter AGPL-3.0."
version = "0.1.0"
repo = "https://git.openbureau.ch/karim/DOSSIER-STANDALONE"
# Gitea-API für das Commit-Log auf der Startseite (wird beim Bauen geholt;
# ohne Netz fällt der Abschnitt auf einen Link zurück).
commitsApi = "https://git.openbureau.ch/api/v1/repos/karim/DOSSIER-STANDALONE/commits?limit=12&stat=false&verification=false&files=false"
plugin = "https://git.openbureau.ch/karim/dossier"
bureau = "https://openbureau.ch"
forum = "https://dossier.openbureau.ch/forum"
repo = "https://github.com/expiredtanin/DOSSIER"
releases = "https://github.com/expiredtanin/DOSSIER/releases"
bureau = "https://openbureau.ch"
-11
View File
@@ -1,11 +0,0 @@
{{- /* Letzte Commits aus der Gitea-API, beim Bauen geholt. Ohne Netz: leere
Liste, die Startseite zeigt dann nur den Link aufs Repo. */ -}}
{{- $commits := slice -}}
{{- with try (resources.GetRemote site.Params.commitsApi) -}}
{{- with .Err -}}
{{- warnf "Commit-Log nicht geladen: %s" . -}}
{{- else -}}
{{- with .Value -}}{{- $commits = .Content | transform.Unmarshal -}}{{- end -}}
{{- end -}}
{{- end -}}
{{- return $commits -}}
+11
View File
@@ -0,0 +1,11 @@
<footer class="foot">
<span class="mark">dossier<span>.</span></span>
<a href="{{ site.Params.repo }}/blob/master/LICENSE">Lizenz AGPL-3.0</a>
<a href="{{ site.Params.repo }}">Quellcode auf GitHub</a>
<a href="/docs/">Dokumentation</a>
<a href="/stand/">Stand</a>
<a href="{{ site.Params.bureau }}">Impressum und Kontakt: openbureau</a>
{{- if not .IsHome }}{{ with .File }}
<a href="{{ site.Params.repo }}/blob/master/website/content/{{ .Path }}">Diese Seite im Repo</a>
{{- end }}{{ end }}
</footer>
+20
View File
@@ -0,0 +1,20 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ if .IsHome }}Dossier · Open-Source-CAAD{{ else }}{{ .Title }} · Dossier{{ end }}</title>
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ site.Params.description }}{{ end }}">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#f2f0e9" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#15181c" media="(prefers-color-scheme: dark)">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="canonical" href="{{ .Permalink }}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ if .IsHome }}Dossier · Open-Source-CAAD{{ else }}{{ .Title }} · Dossier{{ end }}">
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ site.Params.description }}{{ end }}">
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:image" content="{{ "hero/hero-ending.jpg" | absURL }}">
<link rel="preload" href="/fonts/schibsted-grotesk-800.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/ibm-plex-sans-400.woff2" as="font" type="font/woff2" crossorigin>
{{- $theme := resources.Get "js/theme.js" | js.Build (dict "minify" true) | fingerprint }}
<script src="{{ $theme.RelPermalink }}" integrity="{{ $theme.Data.Integrity }}"></script>
{{- $css := resources.Get "css/site.css" | minify | fingerprint }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}">
+12
View File
@@ -0,0 +1,12 @@
<a class="skip" href="#main">Zum Inhalt</a>
<header class="top">
<a class="mark" href="/" aria-label="Dossier, Startseite">dossier<span>.</span></a>
<nav aria-label="Hauptnavigation">
<a href="/docs/"{{ if hasPrefix .RelPermalink "/docs/" }} aria-current="page"{{ end }}>doku</a>
<a href="/stand/"{{ if hasPrefix .RelPermalink "/stand/" }} aria-current="page"{{ end }}>stand</a>
<a href="{{ site.Params.repo }}">quellcode</a>
<button class="theme-toggle" type="button" aria-label="Hell oder dunkel">
<svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.25" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.75a6.25 6.25 0 0 1 0 12.5z" fill="currentColor"/></svg>
</button>
</nav>
</header>
-9
View File
@@ -1,9 +0,0 @@
{{- $commits := partialCached "commits.html" .Page -}}
{{- with $commits }}
<ol class="log">
{{- range . }}
<li><time datetime="{{ .commit.author.date }}">{{ time.Format "2006-01-02" .commit.author.date }}</time> <a href="{{ .html_url }}"><code>{{ substr .sha 0 7 }}</code></a> <span>{{ index (split .commit.message "\n") 0 }}</span></li>
{{- end }}
</ol>
{{- end }}
<p><a href="{{ site.Params.repo }}/commits/branch/master">Alle Commits</a></p>
+7 -26
View File
@@ -1,33 +1,14 @@
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ if .IsHome }}DOSSIER{{ else }}{{ .Title }} · DOSSIER{{ end }}</title>
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ site.Params.description }}{{ end }}">
<meta name="color-scheme" content="light dark">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
{{ $css := resources.Get "css/site.css" | minify | fingerprint }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}">
{{ partial "head.html" . }}
{{- $js := resources.Get "js/site.js" | js.Build (dict "minify" true) | fingerprint }}
<script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}" defer></script>
</head>
<body>
<header class="top">
<a class="mark" href="/">dossier<span>.</span></a>
<nav>
<a href="/docs/"{{ if hasPrefix .RelPermalink "/docs/" }} aria-current="page"{{ end }}>doku</a>
<a href="{{ site.Params.repo }}">quellcode</a>
<a href="{{ site.Params.repo }}/issues">issues</a>
<a href="{{ site.Params.forum }}">forum</a>
</nav>
</header>
<body class="docs-page">
<div class="plangrid" aria-hidden="true"></div>
{{ partial "header.html" . }}
{{ block "main" . }}{{ end }}
<footer class="foot">
<span>© 2026 Karim Gabriele Varano</span>
<span>AGPL-3.0-or-later</span>
<span>Teil von <a href="{{ site.Params.bureau }}">openbureau</a></span>
{{ with .File }}<a href="{{ site.Params.repo }}/src/branch/master/website/content/{{ .Path }}">Diese Seite im Repo</a>{{ end }}
</footer>
{{ partial "footer.html" . }}
</body>
</html>
+214 -18
View File
@@ -1,21 +1,217 @@
{{ define "main" }}
{{ $commits := partialCached "commits.html" . }}
<main class="home">
{{/* Plankopf statt Hero: nur Fakten. */}}
<dl class="titleblock">
<div class="tb-wide"><dt>Projekt</dt><dd class="tb-name">DOSSIER</dd></div>
<div class="tb-wide"><dt>Inhalt</dt><dd>Open-Source-CAD für Architektur</dd></div>
<div><dt>Version</dt><dd>{{ site.Params.version }}</dd></div>
<div><dt>Lizenz</dt><dd>AGPL-3.0</dd></div>
<div><dt>Plattform</dt><dd>macOS, Linux, Browser</dd></div>
<div><dt>Letzter Commit</dt><dd>
{{- with index $commits 0 }}<a href="{{ .html_url }}">{{ time.Format "02.01.2006" .commit.author.date }}</a>
{{- else }}{{ now.Format "02.01.2006" }}{{ end -}}
</dd></div>
</dl>
<!doctype html>
{{- /* Startseite: eigenes Dokument (nicht über baseof), Kopf/Fuss/Tokens wie die Doku.
Texte wörtlich aus website/_design/DESIGN-PAKET.md. Hero-Video aus echten Dossier-Plänen,
Erzeugung s. TODO.md [138]. */ -}}
<html lang="de">
<head>
{{ partial "head.html" . }}
{{- $home := resources.Get "css/home.css" | minify | fingerprint }}
<link rel="stylesheet" href="{{ $home.RelPermalink }}" integrity="{{ $home.Data.Integrity }}">
{{- $js := resources.Get "js/home.js" | js.Build (dict "minify" true) | fingerprint }}
<script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}" defer></script>
</head>
<body class="home-page">
<div class="plangrid" aria-hidden="true"></div>
{{ partial "header.html" . }}
<div class="prose">
{{ .Content }}
<main id="main" tabindex="-1">
<section class="hero" aria-label="Dossier">
<div class="stage">
<div class="poster" aria-hidden="true"></div>
<video class="hero-video" muted playsinline preload="none" disablepictureinpicture aria-hidden="true" tabindex="-1"></video>
<div class="scrim" aria-hidden="true"></div>
<svg class="ring" viewBox="0 0 48 48" aria-hidden="true"><circle cx="24" cy="24" r="20" fill="none" stroke="currentColor" stroke-width="2" stroke-dasharray="126"/></svg>
<div class="cue" aria-hidden="true"><svg viewBox="0 0 16 24"><path d="M8 2v18M3 15l5 5 5-5" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></div>
<div class="band b1" data-a="0" data-b="0.16" data-ramp="0.045">
<p class="say" data-split="chars">Zeichne eine Wand.</p>
</div>
<div class="band b2" data-a="0.18" data-b="0.36">
<p class="say" data-split="words">Dossier weiss, dass es eine Wand ist. Mit Schichten, Fenstern, Türen.</p>
</div>
<div class="band b3" data-a="0.38" data-b="0.56" data-ramp="0.035">
<p class="say" data-split="lines"><span>Der Grundriss rechnet sich selbst.</span> <span>Schraffur, Masse, Flächen.</span></p>
</div>
<div class="band b4" data-a="0.58" data-b="0.78" data-ramp="0.035">
<p class="say" data-split="halves"><span>Schnitt und Ansicht</span> <span>kommen aus demselben Modell.</span></p>
</div>
<div class="band b5" data-a="0.80" data-b="1" data-ramp="0.06">
<h1 class="title" data-split="rise">Open-Source-CAAD</h1>
<p class="kicker">Computer-Aided Architectural Design</p>
<p class="sub only-static">Dossier ist ein freies CAD für Architektur. Du baust ein Gebäude aus Bauteilen, Grundriss, Schnitt und Ansicht werden daraus berechnet.</p>
<div class="cta">
<a class="btn" href="{{ site.Params.releases }}">Dossier herunterladen</a>
<a class="link only-scrub" href="/docs/anleitung/">Anleitung lesen</a>
</div>
</div>
</div>
<figure class="static-sheet">
<img src="/hero/hero-sheet.webp" width="1110" height="596" loading="lazy" decoding="async"
alt="Blatt aus Dossier: Grundriss Erdgeschoss und Ansicht Süd des Musterhauses, 1:100">
</figure>
</section>
<div class="cutmark" data-letter="A" aria-hidden="true"></div>
<section class="sec steps" aria-labelledby="h-steps">
<div class="wrap">
<h2 id="h-steps" class="sec-title"><span class="snap" aria-hidden="true"></span>So arbeitet Dossier</h2>
<div class="dimline" aria-hidden="true"><i></i><span>17.39</span><i></i></div>
<ol class="step-list reveal">
<li class="step">
<figure><img src="/img/app-grundriss.webp" width="1600" height="1000" loading="lazy" decoding="async" alt="Dossier mit dem Grundriss Erdgeschoss, Werkzeuge links, Objekt-Info rechts"></figure>
<p class="num">01</p>
<h3>Zeichnen.</h3>
<p>Linien, Wände, Öffnungen, mit Fang und Befehlszeile.</p>
</li>
<li class="step">
<figure><img src="/img/app-schnitt.webp" width="1600" height="1000" loading="lazy" decoding="async" alt="Dossier mit einem Schnitt durch das Musterhaus, Decken und Dach geschnitten"></figure>
<p class="num">02</p>
<h3>Modellieren.</h3>
<p>Wandtypen mit Schichten, Decken, Dächer, Treppen, Gelände.</p>
</li>
<li class="step">
<figure><img src="/img/app-layout-blatt.webp" width="1600" height="1000" loading="lazy" decoding="async" alt="Dossier mit einem Planblatt: Ansichtsfenster, Plankopf und Massstab"></figure>
<p class="num">03</p>
<h3>Publizieren.</h3>
<p>Pläne auf Blätter legen, PDF mit Ebenen, DXF, IFC.</p>
</li>
</ol>
</div>
</section>
<div class="cutmark" data-letter="B" aria-hidden="true"></div>
<section class="sec features" aria-labelledby="h-features">
<div class="wrap feat-grid">
<div>
<h2 id="h-features" class="sec-title"><span class="snap" aria-hidden="true"></span>Was alles drin ist</h2>
<ul class="feat-list reveal">
<li><button type="button" data-shot="0" aria-pressed="true">Grundriss, Schnitt, Ansicht, Deckenspiegel</button></li>
<li><button type="button" data-shot="1" aria-pressed="false">Bemassung, auch automatisch</button></li>
<li><button type="button" data-shot="2" aria-pressed="false">Fenster- und Türliste</button></li>
<li><button type="button" data-shot="3" aria-pressed="false">Baurecht mit Grenzabständen und Gebäudeprofil</button></li>
<li><button type="button" data-shot="4" aria-pressed="false">Gelände aus Höhenlinien, Swisstopo</button></li>
<li><button type="button" data-shot="5" aria-pressed="false">Sonne und Schatten</button></li>
<li><button type="button" data-shot="6" aria-pressed="false">DXF, DWG, IFC, STEP, PDF</button></li>
<li><button type="button" data-shot="7" aria-pressed="false">Skizzenstil und Präsentationsplan</button></li>
</ul>
</div>
<div class="shots" aria-live="polite">
<img class="on plan-img" src="/img/cli-deckenspiegel-eg.webp" width="1400" height="908" loading="lazy" decoding="async" alt="Deckenspiegel Erdgeschoss aus Dossier, 1:100">
<img class="plan-img" src="/img/cli-grundriss-eg.webp" width="1500" height="1000" loading="lazy" decoding="async" alt="Grundriss Erdgeschoss mit Bemassung und Raumstempeln">
<img class="plan-img" src="/img/fenster.webp" width="1200" height="673" loading="lazy" decoding="async" alt="Fenster und Türen im Grundriss mit ihren Massen, aus denen die Liste entsteht">
<img src="/img/app-situation.webp" width="1600" height="1000" loading="lazy" decoding="async" alt="Situation in Dossier mit Parzelle, Grenzabständen und Baulinie">
<img class="plan-img" src="/img/gelaende.webp" width="1200" height="638" loading="lazy" decoding="async" alt="Schnitt durch das Musterhaus mit Gelände aus Höhenlinien">
<img class="plan-img" src="/img/lage.webp" width="1200" height="864" loading="lazy" decoding="async" alt="Lageplan mit Schatten am 21. Juni, Höhenlinien und Grenzabständen">
<img class="plan-img" src="/img/cli-schnitt-aa.webp" width="1600" height="851" loading="lazy" decoding="async" alt="Schnitt A-A als Vektorplan, wie er als PDF oder DXF hinausgeht">
<img class="plan-img" src="/img/cli-ansicht-skizze.webp" width="1600" height="768" loading="lazy" decoding="async" alt="Ansicht Süd im Skizzenstil">
</div>
</div>
</section>
<div class="cutmark" data-letter="C" aria-hidden="true"></div>
<section class="sec swiss" aria-labelledby="h-swiss">
<div class="wrap">
<h2 id="h-swiss" class="sec-title small"><span class="snap" aria-hidden="true"></span>Gemacht für die Schweizer Praxis</h2>
<p class="statement reveal">Schraffuren und Linientypen nach SIA-Konventionen, Koordinaten in LV95, Höhen ab ±0.00, Kataster und Höhenmodell von Swisstopo.</p>
<p class="kotes" aria-hidden="true"><span>LV95</span><span>±0.00</span><span>1:100</span></p>
</div>
</section>
<div class="cutmark" data-letter="D" aria-hidden="true"></div>
<section class="sec cut" aria-labelledby="h-cut">
<div class="wrap">
<div class="cut-panel">
<div class="cut-head">
<h2 id="h-cut" class="sec-title"><span class="snap" aria-hidden="true"></span>Schnitt setzen</h2>
<p class="lede">Zieh die Linie. Der Schnitt folgt.</p>
</div>
<div class="cut-body">
<figure class="cut-plan">
<img src="/img/schnitt/grundriss-eg.webp" width="1200" height="981" loading="lazy" decoding="async" alt="Grundriss Erdgeschoss des Musterhauses mit einer verschiebbaren Schnittlinie">
<div class="cut-line" aria-hidden="true"><b>A</b><b>A</b></div>
</figure>
<figure class="cut-view">
{{- range $i, $_ := seq 0 11 }}
<img src="/img/schnitt/schnitt-{{ printf "%02d" $i }}.webp" width="1200" height="799" loading="lazy" decoding="async" alt="Schnitt durch das Musterhaus an Stelle {{ add $i 1 }} von 12">
{{- end }}
</figure>
</div>
<div class="cut-ctrl">
<input type="range" min="0" max="1000" value="500" step="1" aria-label="Schnittlinie" aria-valuetext="">
<output class="kote" aria-hidden="true">A–A</output>
</div>
</div>
</div>
</section>
<div class="cutmark" data-letter="E" aria-hidden="true"></div>
<section class="sec free" aria-labelledby="h-free">
<div class="wrap split">
<h2 id="h-free" class="sec-title big"><span class="snap" aria-hidden="true"></span>Frei und offen</h2>
<p class="reveal">Dossier ist freie Software unter AGPL-3.0. Kein Konto, keine Cloud, kein Abo. Deine Projekte sind Dateien auf deinem Rechner, lesbar und versionierbar.</p>
</div>
</section>
<div class="cutmark" data-letter="F" aria-hidden="true"></div>
<section class="sec state" aria-labelledby="h-state">
<div class="wrap narrow">
<h2 id="h-state" class="sec-title"><span class="snap" aria-hidden="true"></span>Ehrlicher Stand</h2>
<p class="reveal">Dossier ist jung. Vieles ist fertig, einiges erst halb. Hier steht genau, was.</p>
<p><a class="btn ghost" href="/stand/">Zum Stand</a></p>
</div>
</section>
<div class="cutmark" data-letter="G" aria-hidden="true"></div>
<section class="sec faq" aria-labelledby="h-faq">
<div class="wrap split">
<h2 id="h-faq" class="sec-title big"><span class="snap" aria-hidden="true"></span>Fragen</h2>
<div class="faq-list">
<details>
<summary>Läuft Dossier auf meinem Rechner?</summary>
<p>macOS ist die Hauptplattform, mit Anzeige über Metal. Linux läuft über Electron. Windows ist bisher nicht geprüft. Fertige Installer gibt es noch nicht; bis dahin wird Dossier aus dem Quellcode gebaut, siehe <a href="/download/">Download und Installation</a>.</p>
</details>
<details>
<summary>Kann ich DWG und DXF öffnen?</summary>
<p>Ja, Import und Export. DXF ab R12 und DWG von R13 bis 2018 lassen sich öffnen, Grundriss, Schnitt und Ansicht gehen als DXF oder DWG hinaus, auf Wunsch mit Layouts. Wände und Öffnungen werden aus DXF und DWG nicht erkannt: Der Import bleibt Unterlage oder 2D-Plan.</p>
</details>
<details>
<summary>Kann ich mit anderen Programmen IFC austauschen?</summary>
<p>Ja, IFC4 und IFC2x3, mit Schichten, Öffnungen, Räumen und Georeferenz. Die Dateien werden mit IfcOpenShell gegen Schema und Regeln geprüft.</p>
</details>
<details>
<summary>Kostet das etwas?</summary>
<p>Nein. Freie Software, auch für Büros.</p>
</details>
<details>
<summary>Ist es fertig?</summary>
<p>Nein, aber brauchbar für Entwurf und Eingabe. Was fehlt, steht im <a href="/stand/">Stand</a>.</p>
</details>
</div>
</div>
</section>
<div class="cutmark" data-letter="H" aria-hidden="true"></div>
<section class="sec end" aria-labelledby="h-end">
<div class="wrap">
<svg class="wall" viewBox="0 0 400 24" aria-hidden="true" preserveAspectRatio="none"><path d="M2 6H398M2 18H398" fill="none" stroke="currentColor" stroke-width="2" pathLength="1"/></svg>
<h2 id="h-end" class="end-title">Fang mit einer Wand an.</h2>
<div class="cta">
<a class="btn" href="{{ site.Params.releases }}">Dossier herunterladen</a>
<a class="link" href="/docs/anleitung/">Anleitung lesen</a>
</div>
</div>
</section>
</main>
{{ end }}
{{ partial "footer.html" . }}
</body>
</html>
+1 -1
View File
@@ -1,7 +1,7 @@
{{ define "main" }}
<div class="docs">
{{ partial "docnav.html" . }}
<main class="prose">
<main class="prose" id="main" tabindex="-1">
<h1>{{ .Title }}</h1>
{{ .Content }}
</main>
+1 -1
View File
@@ -1,7 +1,7 @@
{{ define "main" }}
<div class="docs">
{{ partial "docnav.html" . }}
<main class="prose">
<main class="prose" id="main" tabindex="-1">
<h1>{{ .Title }}</h1>
{{ .Content }}
</main>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB