/* Prior Art Research Log — landing. Identity "Prüfraster": ink desk, linen paper, claret / ochre / olive
   as the three ratings of the feature matrix. Spectral (titles), Work Sans (text), DM Mono (codes). */

@font-face { font-family: "Spectral"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/spectral-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/spectral-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/spectral-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/spectral-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/work-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/work-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/work-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/work-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/work-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/work-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/dm-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/dm-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1f1a17;
  --ink-2: #2b2420;
  --ivory: #f6f1e6;
  --paper: #ece7da;
  --card: #faf8f2;
  --sunk: #e1dbcb;
  --line: #d3cbb6;
  --soft: #564f46;
  --claret: #7a2335;
  --claret-dark: #5e1a28;
  --ochre: #b5761a;
  --ochre-bright: #e0a526;
  --olive: #56662a;
  --danger: #a8321e;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--claret); text-underline-offset: 3px; }
a:hover { color: var(--claret-dark); }
:focus-visible { outline: 3px solid var(--ochre-bright); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; overflow-wrap: anywhere; hyphens: auto; hyphenate-limit-chars: 12 5 5; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ochre-bright); color: var(--ink); padding: .6rem 1rem; z-index: 10; font-weight: 600; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow { max-width: 820px; }
.kicker { font-family: var(--mono); font-weight: 500; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ochre-bright); margin: 0 0 1rem; }
.kicker.dark { color: var(--claret); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; }
.small-lead { font-size: 1.1rem; }
.small { font-size: .9rem; color: var(--soft); }
.text-link { font-weight: 600; color: var(--ivory); }
.text-link:hover { color: var(--ochre-bright); }

/* Raster: the app's header motif */
.raster { display: flex; align-items: center; gap: 5px; margin: .25rem 0 2rem; }
.raster i { width: 13px; height: 13px; border: 2px solid; flex: none; }
.raster .sq-full { background: var(--claret); border-color: var(--claret); }
.raster .sq-half { border-color: var(--ochre); background: linear-gradient(90deg, var(--ochre) 50%, transparent 50%); }
.raster .sq-open { border-color: var(--olive); }
.raster b { flex: 1; height: 2px; background: var(--ink); margin-left: 6px; }

/* Header */
.top { background: var(--ink); color: var(--ivory); border-bottom: 1px solid #3a322c; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; padding-top: .4rem; padding-bottom: .4rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ivory); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; min-width: 0; }
.brand span { overflow-wrap: anywhere; }
.brand:hover { color: var(--ivory); }
.nav { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; color: var(--ivory); text-decoration: none; font-weight: 500; border-top: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-top-color: var(--ochre-bright); color: #fff; }

/* Hero: the ink desk with a sheet and the lens */
.hero { background-color: var(--ink); color: var(--ivory); padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem);
  background-image: linear-gradient(rgba(246,241,230,.06) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(246,241,230,.06) 1.5px, transparent 1.5px);
  background-size: 48px 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--ochre-bright); }
.hero .lead { color: #e9e2d6; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 2rem 0 1.25rem; }
.hero-note { font-family: var(--mono); font-size: .85rem; color: #b9b0a2; margin: 0; }
.desk { position: relative; margin: 0; justify-self: center; width: min(100%, 380px); }
.sheet { background: var(--ivory); padding: 6px; box-shadow: 0 24px 50px rgba(0,0,0,.45); transform: rotate(-1.5deg); }
.sheet img { width: 100%; }
.lens { position: absolute; right: -14%; top: 19%; width: 58%; aspect-ratio: 1; pointer-events: none; }
.lens-glass { position: absolute; inset: 0; border-radius: 50%; border: 14px solid var(--claret); box-shadow: 0 0 0 3px var(--ivory), 0 18px 34px rgba(0,0,0,.5);
  background: url("/assets/app/lens-matrix.webp") center / cover no-repeat, var(--card); }
.lens-handle { position: absolute; width: 22%; height: 13%; left: 84%; top: 84%; background: var(--claret-dark); border: 3px solid var(--ivory); border-radius: 999px; transform: rotate(45deg); transform-origin: 0 50%; }
.desk figcaption { font-size: .85rem; color: #b9b0a2; margin-top: 1.4rem; text-align: center; }

/* Google Play badge (own drawing, no store artwork) */
.play { display: inline-flex; align-items: center; gap: .8rem; min-height: 56px; padding: .45rem 1.2rem .45rem .7rem; background: var(--ivory); color: var(--ink); text-decoration: none; border: 2px solid var(--ivory); border-radius: 6px; }
a.play:hover { background: #fff; color: var(--ink); }
.play-mark { display: grid; grid-template-columns: repeat(2, 12px); gap: 3px; }
.play-mark i { width: 12px; height: 12px; display: block; }
.play-mark i:nth-child(1) { background: var(--claret); }
.play-mark i:nth-child(2) { background: linear-gradient(90deg, var(--ochre) 50%, transparent 50%); border: 2px solid var(--ochre); }
.play-mark i:nth-child(3) { border: 2px solid var(--olive); }
.play-mark i:nth-child(4) { background: var(--claret); }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: .78rem; font-family: var(--mono); }
.play-big { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.play-soon { opacity: .9; cursor: default; }

/* Bands */
.band { padding: clamp(3rem, 7vw, 6rem) 0; }
.band.tight { padding-top: 0; }
.paper { background: var(--paper); }
.ink { background: var(--ink); color: var(--ivory); }
.ink .lead { color: #e9e2d6; }

/* Workflow as matrix rows */
.matrix-rows { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ink); background: var(--card); border-radius: 8px; overflow: hidden; }
.mrow { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 200px; gap: 1.5rem; align-items: center; padding: 1.4rem 1.5rem 1.4rem 0; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow:nth-child(even) { background: #f3f0e7; }
.mcode { align-self: stretch; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--ivory); font-family: var(--mono); font-weight: 500; font-size: 1.15rem; margin: -1.4rem 0; }
.mtext h3 { margin-bottom: .35rem; }
.mtext p { margin: 0; color: var(--soft); }
.mcells { display: flex; gap: 6px; }
.mcells i { width: 22px; height: 22px; border: 2.5px solid; display: block; }
.c-full { background: var(--claret); border-color: var(--claret); }
.c-half { border-color: var(--ochre); background: linear-gradient(90deg, var(--ochre) 50%, transparent 50%); }
.c-open { border-color: var(--line); border-style: dashed; }
.mshot { border: 1px solid var(--line); background: var(--ivory); padding: 4px; max-height: 190px; overflow: hidden; }

/* Legend */
.legend-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; }
.legend-grid > div:first-child { grid-column: 1 / -1; max-width: 46rem; }
.legend { margin: 0; display: grid; gap: 1rem; }
.legend-item { border-left: 2px solid #4a413a; padding-left: 1rem; }
.legend dt { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.legend dd { margin: .2rem 0 0 2.2rem; color: #d8d0c3; }
.glyph { width: 24px; height: 24px; border: 2.5px solid; flex: none; display: inline-block; }
.g-offenbart { background: var(--claret); border-color: #c4566c; }
.g-teilweise { border-color: var(--ochre-bright); background: linear-gradient(90deg, var(--ochre-bright) 50%, transparent 50%); }
.g-nicht { border-color: #8fa14b; background: linear-gradient(#8fa14b, #8fa14b) center / 50% 3px no-repeat; }
.g-unklar { border-color: #b9b0a2; position: relative; }
.g-unklar::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: .9rem; color: #b9b0a2; line-height: 1; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; align-content: start; }
.cats li { display: flex; gap: 1rem; align-items: flex-start; }
.stamp { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; border-radius: 3px; }
.stamp-X { background: var(--claret); color: #fff; }
.stamp-Y { background: var(--ochre-bright); color: var(--ink); }
.stamp-A { background: var(--olive); color: #fff; }
.stamp-late { background: #f5ddd6; color: var(--danger); font-family: var(--mono); }

/* Gallery: horizontal strip */
.gallery { list-style: none; margin: 0; padding: .5rem clamp(16px, 4vw, 40px) 1.5rem max(clamp(16px, 4vw, 40px), calc((100% - 1160px) / 2 + 40px)); display: flex; gap: 1.5rem; overflow-x: auto; max-width: 100%; }
.gallery:focus-visible { outline-offset: -3px; }
.gallery li { flex: 0 0 auto; width: 240px; }
.gallery figure { margin: 0; }
.g-sheet { background: var(--ivory); border: 1px solid var(--line); padding: 5px; box-shadow: 0 10px 22px rgba(31,26,23,.14); }
.gallery figcaption { margin-top: .8rem; font-weight: 500; line-height: 1.35; }
.g-no { font-family: var(--mono); color: var(--claret); margin-right: .3rem; }

/* More */
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.more-item { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.more-item h3 { display: flex; gap: .6rem; align-items: center; }
.more-item h3::before { content: ""; width: 10px; height: 10px; background: var(--claret); flex: none; }
.more-item p { margin: 0; color: var(--soft); }

/* Limits */
.limits-band { background: var(--sunk); }
.limits { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.limits li { padding-left: 2.2rem; position: relative; }
.limits li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border: 2.5px solid var(--olive); background: linear-gradient(var(--olive), var(--olive)) center / 55% 2.5px no-repeat; }

/* Download */
.download-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.download-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.contact-line { margin: 0; color: #d8d0c3; overflow-wrap: anywhere; }
.contact-line a, .ink a:not(.play) { color: var(--ochre-bright); }

/* Text pages */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.legal h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); margin-top: 2.2rem; }
.legal p, .legal li { max-width: 46em; overflow-wrap: anywhere; }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: .6rem; }
.steps li::marker { font-family: var(--mono); color: var(--claret); }
.faq details { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--claret); border-radius: 6px; margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: .9rem 1rem; font-weight: 600; min-height: 44px; }
.faq details p { padding: 0 1rem 1rem; margin: 0; color: var(--soft); }

/* Footer */
.foot { background: var(--ink); color: var(--ivory); padding: 2.5rem 0; }
.foot-inner { display: flex; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; gap: .9rem; align-items: center; min-width: 0; }
.foot-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin: 0; }
.foot-small { margin: 0; font-size: .85rem; color: #b9b0a2; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.foot-links a { color: var(--ivory); display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--ochre-bright); }

@media (max-width: 960px) {
  .mrow { grid-template-columns: 64px minmax(0, 1fr) 150px; }
  .mcells { display: none; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero-grid, .legend-grid, .download-inner { grid-template-columns: minmax(0, 1fr); }
  .desk { width: min(78%, 340px); margin-top: 1rem; }
  .lens { right: -18%; }
  .mrow { grid-template-columns: 56px minmax(0, 1fr); padding-right: 1rem; }
  .mshot { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .more { grid-template-columns: minmax(0, 1fr); }
  .more-item { padding-right: 0; }
  .mrow { gap: 1rem; }
  .mcode { font-size: 1rem; }
  .gallery li { width: 210px; }
  .nav a { padding: 0 .55rem; }
  .brand { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet { transform: none; }
}
