/* Project Risk Register — landing. Identity «Lagebericht»: sage planning sheet, slate ink, petrol,
   the four heat steps only where they mean risk level. Fonts are served from this site (SIL OFL). */

@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("/assets/fonts/space-grotesk-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-grotesk-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-3-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-sans-3-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Red Hat Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/red-hat-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Red Hat Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/red-hat-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --sage: #eef1ee;
  --paper: #ffffff;
  --sunk: #e1e7e3;
  --ink: #14282d;
  --soft: #455659;
  --line: #cbd5d1;
  --petrol: #0f5257;
  --petrol-dark: #0a3b3f;
  --petrol-tint: #d5e7e4;
  --moss: #4f7a3d;
  --saffron: #e3b341;
  --persimmon: #e07b34;
  --carmine: #b8323f;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, Consolas, monospace;
  --edge: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sage);
  background-image: linear-gradient(rgba(203, 213, 209, 0.45) 1px, transparent 1px), linear-gradient(90deg, rgba(203, 213, 209, 0.45) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  padding-left: var(--edge);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--petrol-dark); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 0.5em; overflow-wrap: anywhere; hyphens: manual; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem); font-weight: 600; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 16px; }

.heat-edge { position: fixed; left: 0; top: 0; bottom: 0; width: var(--edge); display: flex; flex-direction: column; z-index: 5; }
.heat-edge i { flex: 1; }
.heat-edge i:nth-child(1) { background: var(--carmine); flex: 1.6; }
.heat-edge i:nth-child(2) { background: var(--persimmon); }
.heat-edge i:nth-child(3) { background: var(--saffron); }
.heat-edge i:nth-child(4) { background: var(--moss); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow { max-width: 760px; }
.kicker { font-family: var(--mono); font-weight: 500; font-size: 0.85rem; color: var(--petrol); margin: 0 0 0.8em; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 34px; height: 4px; background: var(--petrol); flex: none; }
.section-title { margin-bottom: 1em; }
.small { font-size: 0.9rem; color: var(--soft); }

/* Header */
.top { background: rgba(238, 241, 238, 0.94); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; min-height: 44px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 8px; }
.nav a:hover { background: var(--sunk); }
.nav a.here { box-shadow: inset 0 -3px 0 var(--petrol); border-radius: 0; }

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--soft); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 1.6em 0 1.4em; }
.textlink { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.facts li { font-family: var(--mono); font-size: 0.82rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.hero-shot { margin: 0; justify-self: center; width: 100%; max-width: 380px; }
.hero-shot figcaption { font-size: 0.85rem; color: var(--soft); margin-top: 22px; padding-left: 4px; }

/* The real screen as a panel with a petrol block behind it — same treatment as the store graphics */
.panel { position: relative; border-radius: 26px 26px 18px 18px; border: 3px solid var(--ink); background: var(--ink); overflow: visible; }
.panel img { border-radius: 23px 23px 15px 15px; position: relative; z-index: 1; }
.panel::before { content: ""; position: absolute; inset: 0; transform: translate(18px, 18px); background: var(--petrol); border-radius: inherit; z-index: 0; }
.panel.small { border-radius: 18px; }
.panel.small img { border-radius: 15px; }
.panel.small::before { transform: translate(10px, 10px); }

/* Play button (neutral until the store URL exists) */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 14px; background: var(--ink); color: #fff; border-radius: 12px; text-decoration: none; }
.play:hover { background: var(--petrol-dark); color: #fff; }
.play-soon { background: var(--paper); color: var(--ink); border: 2px dashed var(--soft); cursor: default; }
.play-grid { display: grid; grid-template-columns: repeat(2, 12px); gap: 3px; }
.play-grid i { width: 12px; height: 12px; border-radius: 3px; }
.play-grid i:nth-child(1) { background: var(--saffron); }
.play-grid i:nth-child(2) { background: var(--carmine); }
.play-grid i:nth-child(3) { background: var(--moss); }
.play-grid i:nth-child(4) { background: var(--persimmon); }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.78rem; }
.play-big { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }

/* Steps */
.steps { padding: clamp(40px, 6vw, 72px) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.step { padding: 6px 22px 6px 0; margin-right: 22px; border-top: 6px solid var(--moss); padding-top: 18px; }
.step-1 { border-top-color: var(--saffron); }
.step-2 { border-top-color: var(--persimmon); }
.step-3 { border-top-color: var(--carmine); }
.step-no { font-family: var(--mono); font-weight: 500; color: var(--soft); font-size: 0.9rem; }
.step h3 { margin-top: 4px; }
.step p { color: var(--soft); margin: 0; }

/* Stories */
.stories { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr); gap: clamp(28px, 6vw, 80px); align-items: center; margin-bottom: clamp(56px, 8vw, 104px); }
.story-flip .story-text { order: 2; }
.story-shot { justify-self: center; width: 100%; max-width: 340px; }
/* Feature stories show the upper part of the screen, where the described function is. */
.story-shot img { aspect-ratio: 800 / 1150; object-fit: cover; object-position: top; }
.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 3px; background: var(--petrol); }

/* Method */
.method { padding: clamp(48px, 7vw, 88px) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.bands { border-collapse: collapse; margin: 1.2em 0; min-width: 240px; }
.bands th, .bands td { text-align: left; padding: 8px 18px 8px 0; border-bottom: 1px solid var(--line); }
.bands thead th { font-family: var(--mono); font-weight: 500; font-size: 0.82rem; color: var(--soft); }
.bands td { font-family: var(--mono); }
.chip { display: inline-block; padding: 2px 10px; border-radius: 6px; font-weight: 600; }
.chip-niedrig { background: #e1ecda; color: #3a5c2c; }
.chip-mittel { background: #faefcf; color: #6e5208; }
.chip-hoch { background: #fbe3d2; color: #8a430f; }
.chip-kritisch { background: #f6dadd; color: #9a2633; }
.note { font-size: 0.95rem; color: var(--soft); }
.matrix-wrap { justify-self: center; width: 100%; max-width: 440px; }
.matrix { display: grid; grid-template-columns: 34px repeat(5, minmax(0, 1fr)); gap: 6px; align-items: center; }
.matrix .axis { font-family: var(--mono); font-size: 0.8rem; color: var(--soft); text-align: center; }
.matrix .cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-family: var(--display); font-weight: 700; font-size: clamp(0.9rem, 0.7rem + 0.8vw, 1.3rem); }
.cell-niedrig { background: var(--moss); color: #fff; }
.cell-mittel { background: var(--saffron); color: #2b2208; }
.cell-hoch { background: var(--persimmon); color: #2a1406; }
.cell-kritisch { background: var(--carmine); color: #fff; }
.matrix-legend { font-size: 0.85rem; color: var(--soft); text-align: center; margin-top: 12px; }

/* Gallery strip */
.gallery { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.gallery-hint { color: var(--soft); margin-top: -0.6em; }
.strip { --pad: max(16px, calc((100% - 1120px) / 2 + 40px)); list-style: none; margin: 18px 0 0; padding: 8px var(--pad) 28px; scroll-padding-inline: var(--pad); display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.strip li { flex: 0 0 auto; width: 220px; scroll-snap-align: start; }
.strip figure { margin: 0; }
.strip figcaption { font-family: var(--mono); font-size: 0.85rem; margin-top: 18px; color: var(--soft); }

/* More */
.more { padding: clamp(40px, 6vw, 72px) 0; }
.more-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0 0 40px; }
.more-list div { padding: 16px 0; border-top: 1px solid var(--line); }
.more-list dt { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.more-list dd { margin: 0; color: var(--soft); }
.limits { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--saffron); border-radius: 10px; padding: 20px 24px; }
.limits h3 { font-size: 1.15rem; }
.limits ul { margin: 0; padding-left: 1.2em; color: var(--soft); }

/* Privacy + download */
.privacy-band { background: var(--petrol); color: #eaf3f1; padding: clamp(40px, 6vw, 72px) 0; }
.privacy-band h2 { color: #fff; }
.privacy-band a { color: #fff; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: center; }
.download { background: var(--sage); color: var(--ink); border-radius: 14px; padding: 24px; }
.download a { color: var(--petrol); }
.download-title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }

/* Footer */
.foot { background: var(--ink); color: #d4dedc; padding: 32px 0; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-name { font-family: var(--display); font-weight: 700; color: #fff; margin: 0; }
.foot-small { font-size: 0.88rem; margin: 0; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.foot-links a { color: #fff; display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }

/* Text pages */
.page { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.page article { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 48px); }
.page h2 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); margin-top: 1.6em; }
.numbered { padding-left: 1.4em; display: grid; gap: 8px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; padding: 6px 0; }
.faq details p { color: var(--soft); }
.legal p { overflow-wrap: anywhere; hyphens: auto; }

@media (max-width: 960px) {
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .story, .method-grid, .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .story-flip .story-text { order: 0; }
  .hero-shot { max-width: 320px; margin-right: 18px; }
  .story-shot { max-width: 290px; margin-right: 18px; }
}
@media (max-width: 560px) {
  :root { --edge: 5px; }
  /* Long German compounds in headings break with a hyphen on narrow screens only. */
  h1, h2, h3 { hyphens: auto; }
  body { font-size: 1rem; }
  .step-list, .more-list { grid-template-columns: minmax(0, 1fr); }
  .step { margin-right: 0; padding-right: 0; }
  .nav a { padding: 0 8px; }
  .strip li { width: 180px; }
  .bands { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
