/* ==========================================================================
   archive.datachron.ch – shared styles for all language versions
   CI: datachron.ch (black / white, accent yellow, warm grey, Montserrat)
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL – see assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* brand constants (identical in both modes) */
  --c-black: #000000;
  --c-white: #ffffff;
  --c-accent: #f9b200;
  --c-accent-2: #ff914d;

  /* role tokens (overridden for dark mode below) */
  --c-bg: #ffffff;
  --c-surface: #ffffff;
  --c-band: #e3e2df;
  --c-band-light: #f4f3f1;
  --c-heading: #000000;
  --c-text: #060000;
  --c-muted: #4a4746;
  --c-line: #e3e2df;
  --c-line-band: #cdcbc7; /* --c-line equals --c-band, so lines on grey bands need a darker tone */
  --c-shadow: rgba(0, 0, 0, 0.08);

  /* always-dark bands: hero, contact, footer */
  --c-dark-bg: #000000;
  --c-dark-text: #e9e8e6;
  --c-dark-muted: #d6d4d1;
  --c-dark-line: #333333;
  --c-dark-line-strong: #555555;

  --font: "Montserrat", "Segoe UI", Arial, sans-serif;

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 5rem;

  --maxw: 1140px;
  --gutter: 1.25rem;
  --header-h: 9.25rem;
  --radius: 4px;
}

/* ---------- Dark mode (follows the OS setting) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #141312;
    --c-surface: #1e1d1b;
    --c-band: #1a1918;
    --c-band-light: #171615;
    --c-heading: #ffffff;
    --c-text: #e9e8e6;
    --c-muted: #b3b0ac;
    --c-line: #33312f;
    --c-line-band: #33312f;
    --c-shadow: transparent;
  }
  .figure img { filter: brightness(0.92); }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0 0 var(--s-2); color: var(--c-heading); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 600; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 var(--s-2); }

a { color: inherit; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--c-heading); text-decoration-color: var(--c-heading); }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: var(--s-1) var(--s-2); background: var(--c-accent); color: var(--c-black);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}

.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding-top: var(--s-2); padding-bottom: var(--s-1);
}

.site-header__logo img { height: 76px; width: auto; }

.lang-switch { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; font-weight: 600; }
.lang-switch a {
  display: block; padding: 0.2rem 0.6rem; border: 1px solid var(--c-line); border-radius: var(--radius);
  text-decoration: none; color: var(--c-muted);
}
.lang-switch a:hover { border-color: var(--c-heading); color: var(--c-heading); }
.lang-switch a[aria-current="page"] { background: var(--c-heading); border-color: var(--c-heading); color: var(--c-bg); }

/* In-page anchor menu: a row on wide screens; below 940px the "Menü" button opens the same list
   as a native popover (assets/js/nav.js only closes it after a link was chosen) */
.anchor-nav ul {
  display: flex; gap: var(--s-3); margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: thin; white-space: nowrap;
}
.anchor-nav a {
  display: block; padding: 0.6rem 0;
  border-bottom: 3px solid transparent;
  font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--c-text);
}
.anchor-nav a:hover, .anchor-nav a:focus-visible { border-bottom-color: var(--c-accent); }
/* below 940px (where the 9 section links no longer fit in FR/IT) the language switch and the section menu become native popovers (dropdowns) */
.nav-toggle, .lang-toggle, .lang-switch__name { display: none; }
@media (min-width: 940px) {
  /* always shown inline: undo the browser's popover styles */
  #nav-menu[popover], #lang-menu[popover] { display: flex; position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; }
}
@media (max-width: 939px) {
  :root { --header-h: 6.4rem; }
  .nav-toggle, .lang-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.6rem;
    border: 1px solid var(--c-line); border-radius: var(--radius); background: none; color: var(--c-heading);
    font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
  }
  .lang-toggle { margin-left: auto; }
  .nav-toggle:hover, .lang-toggle:hover { border-color: var(--c-heading); }
  .nav-toggle .icon, .lang-toggle .icon { width: 1.1em; height: 1.1em; }
  body:has(#nav-menu:popover-open) .nav-toggle,
  body:has(#lang-menu:popover-open) .lang-toggle { background: var(--c-heading); border-color: var(--c-heading); color: var(--c-bg); }
  /* our display: flex would otherwise beat the browser's display: none for a closed popover */
  #nav-menu:not(:popover-open), #lang-menu:not(:popover-open) { display: none; }
  #nav-menu:popover-open, #lang-menu:popover-open {
    display: flex; position: fixed; inset: var(--header-h) var(--gutter) auto auto; margin: 0;
    flex-direction: column; gap: 0; min-width: 14rem; max-height: calc(100dvh - var(--header-h) - 1rem); overflow-y: auto;
    padding: 0.25rem 1.25rem; border: 1px solid var(--c-line); border-radius: var(--radius);
    background: var(--c-bg); color: var(--c-text); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); white-space: normal;
  }
  #nav-menu li + li { border-top: 1px solid var(--c-line); }
  #nav-menu a { padding: 0.7rem 0; font-size: 1rem; }
  #lang-menu:popover-open { gap: 0.25rem; min-width: 11rem; padding: 0.4rem; }
  #lang-menu a { display: flex; gap: 0.6rem; padding: 0.6rem 0.75rem; border: 0; font-size: 1rem; }
  .lang-switch__name { display: inline; font-weight: 400; }
}
/* browsers without popover support keep the inline buttons and the scrolling row */
@supports not selector(:popover-open) { .nav-toggle, .lang-toggle { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--c-dark-bg); color: var(--c-white); padding: var(--s-6) 0; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr; gap: var(--s-4); align-items: center; }
.hero h1 { color: var(--c-white); }
.hero__kicker {
  display: inline-block; margin-bottom: var(--s-2);
  color: var(--c-accent); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
}
.hero__lead { max-width: 40rem; font-size: 1.15rem; color: var(--c-dark-text); margin-bottom: var(--s-4); }
.hero .hero__signet { display: none; }

/* datachron symbol cropped from the transparent archive logo (846×476; crop x 166, y 0, 515×243) */
.signet {
  display: block; aspect-ratio: 515 / 243;
  background: url("../img/datachron-archive-logo-dark.png") 50.15% 0 / 164.27% auto no-repeat;
}

@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 3fr 2fr; }
  .hero .hero__signet { display: block; justify-self: end; width: 100%; max-width: 340px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border: 2px solid var(--c-accent); border-radius: var(--radius);
  background: var(--c-accent); color: var(--c-black);
  font-weight: 600; text-decoration: none; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--c-accent-2); border-color: var(--c-accent-2); color: var(--c-black); }
.btn--ghost { background: transparent; border-color: var(--c-white); color: var(--c-white); }
.btn--ghost:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-black); }
.btn--large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- Icons (CSS masks – defined once for all languages) ---------- */
.icon {
  display: inline-block; flex: none; width: 1.75rem; height: 1.75rem;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}
.icon--shield  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.icon--swiss   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M5 2h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3zm5 4.5v4H6v3h4v4h4v-4h4v-3h-4v-4z'/%3E%3C/svg%3E"); }
.icon--law     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M15 3v4h4'/%3E%3Cpath d='M9 14l2 2 4-4.5'/%3E%3C/svg%3E"); }
.icon--key     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4.5'/%3E%3Cpath d='M11.2 11.8L20 3M16 7l3 3M14 9l2 2'/%3E%3C/svg%3E"); }
.icon--lock    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4M12 15v2'/%3E%3C/svg%3E"); }
.icon--search  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E"); }
.icon--cloud   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 19h10.5a4 4 0 0 0 .4-8 6 6 0 0 0-11.6-1.3A4.7 4.7 0 0 0 7 19z'/%3E%3Cpath d='M9.5 14.5l2 2 3.5-4'/%3E%3C/svg%3E"); }
.icon--people  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M17 14c2.8 0 4.5 2 4.5 5'/%3E%3C/svg%3E"); }
.icon--chat    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H10l-6 4z'/%3E%3Cpath d='M8 9.5h8M8 12.5h5'/%3E%3C/svg%3E"); }
.icon--migrate { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h15l-4-4M20 16H5l4 4'/%3E%3C/svg%3E"); }
.icon--log     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E"); }
.icon--verify  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 0 1-14.3 4.9M4 12a8 8 0 0 1 14.3-4.9'/%3E%3Cpath d='M18.5 3v4.2h-4.2M5.5 21v-4.2h4.2'/%3E%3Cpath d='M9 12.2l2 2 4-4.2'/%3E%3C/svg%3E"); }
.icon--export  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v6H4V6h6'/%3E%3C/svg%3E"); }
/* used inside the app preview (#einblick) */
.icon--globe     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3c2.5 2.6 3.7 5.6 3.7 9s-1.2 6.4-3.7 9c-2.5-2.6-3.7-5.6-3.7-9s1.2-6.4 3.7-9z'/%3E%3C/svg%3E"); }
.icon--menu      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.icon--user      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Ccircle cx='12' cy='10' r='3.2'/%3E%3Cpath d='M6.2 18.6c1.2-2.3 3.3-3.6 5.8-3.6s4.6 1.3 5.8 3.6'/%3E%3C/svg%3E"); }
.icon--logout    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H5v16h5'/%3E%3Cpath d='M14 8l4 4-4 4M18 12H9'/%3E%3C/svg%3E"); }
.icon--house     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 9.5V20h14V9.5'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
.icon--back      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M13.5 8.5L10 12l3.5 3.5'/%3E%3C/svg%3E"); }
.icon--forward   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10.5 8.5L14 12l-3.5 3.5'/%3E%3C/svg%3E"); }
.icon--chevron   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.icon--expand    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l6 6-6 6M12 6l6 6-6 6'/%3E%3C/svg%3E"); }
.icon--inbox     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13l3-8h12l3 8v6H3z'/%3E%3Cpath d='M3 13h5l1.5 2.5h5L16 13h5'/%3E%3C/svg%3E"); }
.icon--box       { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5L12 3l9 4.5v9L12 21l-9-4.5z'/%3E%3Cpath d='M3 7.5L12 12l9-4.5M12 12v9'/%3E%3C/svg%3E"); }
.icon--sliders   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1'/%3E%3Ccircle cx='15' cy='6' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E"); }
.icon--backspace { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h11v14H9l-6-7z'/%3E%3Cpath d='M12 9.5l5 5M17 9.5l-5 5'/%3E%3C/svg%3E"); }
.icon--info      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E"); }
.icon--download  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v9M8.5 12.5L12 16l3.5-3.5'/%3E%3C/svg%3E"); }
.icon--upload    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 19h10.5a4 4 0 0 0 .4-8 6 6 0 0 0-11.6-1.3A4.7 4.7 0 0 0 7 19z'/%3E%3Cpath d='M12 16.5v-6M9.5 13L12 10.5l2.5 2.5'/%3E%3C/svg%3E"); }
.icon--trash     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E"); }
.icon--ok        { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 9.5'/%3E%3C/svg%3E"); }

/* ---------- Hero trust badges ---------- */
.badges {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  margin: var(--s-5) 0 0; padding: var(--s-3) 0 0; list-style: none;
  border-top: 1px solid var(--c-dark-line);
}
.badge {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 500; color: var(--c-white); text-decoration: none;
  transition: color 0.15s;
}
.badge:hover, .badge:focus-visible {
  color: var(--c-accent);
  text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.badge .icon { color: var(--c-accent); }

/* ---------- Sections ---------- */
.section { padding: var(--s-6) 0; }
/* backgrounds: white is the baseline, light grey for plain tinted sections, grey only behind card grids
   (white cards need the contrast); neighbouring sections never share a background */
.section--grey { --c-line: var(--c-line-band); background: var(--c-band); }
.section--light { background: var(--c-band-light); }
.section--dark { background: var(--c-dark-bg); color: var(--c-dark-text); border-top: 1px solid var(--c-dark-line); }
.section--dark h2, .section--dark h3 { color: var(--c-white); }
.section--dark a { color: var(--c-white); }
.section--dark a:hover { color: var(--c-accent); text-decoration-color: var(--c-accent); }
.section--dark .btn, .section--dark .btn:hover, .section--dark .btn--ghost:hover { color: var(--c-black); }
.section--dark .btn--ghost { color: var(--c-white); }

.section__title { position: relative; padding-bottom: var(--s-2); margin-bottom: var(--s-4); }
.section__title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 3.5rem; height: 4px; background: var(--c-accent);
}
.section__intro { max-width: 52rem; font-size: 1.125rem; }
.section__sub { margin-top: var(--s-5); }

/* ---------- Cards ---------- */
.cards {
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin: var(--s-4) 0 0;
}
.card {
  padding: var(--s-4) var(--s-3);
  background: var(--c-surface);
  border-top: 4px solid var(--c-accent);
  box-shadow: 0 1px 3px var(--c-shadow);
}
.cards--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 1080px) {
  .cards--5 { grid-template-columns: repeat(5, 1fr); gap: var(--s-2); }
  .cards--5 .card { padding: var(--s-3) var(--s-2); }
  .cards--5 h3 { font-size: 1.1rem; }
}
.section--grey .card, .section--light .card { box-shadow: none; }
.card > .icon { width: 2.5rem; height: 2.5rem; margin-bottom: var(--s-2); color: var(--c-heading); }
.card p:last-child { margin-bottom: 0; }

/* Feature rows (icon left, text right) */
.features { display: grid; gap: var(--s-4); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .features { grid-template-columns: 1fr 1fr; column-gap: var(--s-5); } }
.feature { display: flex; gap: var(--s-2); }
.feature > .icon { width: 2.75rem; height: 2.75rem; color: var(--c-heading); }
.feature h3 { margin-bottom: 0.25rem; }
.feature p { margin: 0; }

/* Partner strip */
.partners { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: var(--s-3); }
.partner { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); background: var(--c-surface); }
/* white plate keeps partner logos readable in both modes */
.partner img { width: 120px; height: auto; flex: none; padding: 0.4rem 0.5rem; border-radius: var(--radius); background: #fff; }
.partner p { margin: 0; font-size: 0.95rem; }

/* ---------- App preview (#einblick) ----------
   Skeleton mock-ups of the archive application as it looks live (normal-user screens only;
   Einstellungen and Administration are deliberately hidden). Labels mirror the AIS client;
   grey bars (.sk) stand in for content – never real data, IDs or customer branding.
   Numbered markers (.mock__mark) match the legend next to each window; they never sit on an amber strip. */
.shots { display: grid; gap: var(--s-6); margin-top: var(--s-5); }
/* the window's font size follows the available width (cqw), so the em-based mock-up scales like an image */
.shot { container-type: inline-size; display: grid; gap: var(--s-3); grid-template-areas: "title" "mock" "legend"; }
.shot__title { grid-area: title; margin: 0; }
.shot .mock { grid-area: mock; }
.shot .legend { grid-area: legend; }
@media (min-width: 1000px) {
  /* zig-zag: window and text side by side, text vertically centred, sides alternate */
  .shot {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "mock ." "mock title" "mock legend" "mock .";
    column-gap: var(--s-5); row-gap: var(--s-2);
  }
  .shot--rev {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-areas: ". mock" "title mock" "legend mock" ". mock";
  }
  /* never stretch the window when the text column is taller – centre it instead */
  .shot .mock { align-self: center; }
}

.legend { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; counter-reset: legend; }
.legend li { position: relative; padding-left: 2.5rem; counter-increment: legend; }
.legend li::before, .mock__mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: 50%; background: var(--c-accent); color: var(--c-black); font-weight: 700; line-height: 1;
}
/* extra paragraph inside a legend item (e.g. support offer under «Übertragen»), aligned with the item text */
.legend__note { margin: var(--s-1) 0 0; }
.legend li::before { content: counter(legend); position: absolute; left: 0; top: 0.1rem; width: 1.75rem; height: 1.75rem; font-size: 0.9rem; }

/* colours of the live application (light / dark)
   Everything inside .mock is sized in em (only 1–2px lines in px), so the window scales as a whole. */
.mock {
  --m-side: #eef3f6;
  --m-thead: #d4e1e9;
  --m-info: #3a5c72;
  --m-selected: #cbd5e1;
  --m-btn: #f9fafb;
  --m-btn-line: #9ca3af;
  --m-ok: #3a9a5b;
  --m-drop: #f9fafb;
  --m-drop-line: #dee2e6;
  --m-blue: #3b82f6;
  --m-track: #e9ecef;
  --m-bar-1: #eff6ff;
  --m-bar-2: #dbeafe;
  --m-bar-line: #bfdbfe;
  --m-chip: #2563eb;
  --m-picked: #f0fdf4;
  container: mock / inline-size;
  overflow: hidden;
  border: 1px solid var(--c-line); border-radius: 1.042em;
  background: var(--c-surface); color: var(--c-text);
  box-shadow: 0 1.042em 2.778em var(--c-shadow);
  font-size: min(0.72rem, 1.8cqw); line-height: 1.4;
}
@media (prefers-color-scheme: dark) {
  .mock {
    --m-side: #23272a;
    --m-thead: #2c353b;
    --m-info: #9dbbd0;
    --m-selected: #3a4048;
    --m-btn: #26282a;
    --m-btn-line: #55595e;
    --m-ok: #4caf6e;
    --m-drop: #232527;
    --m-drop-line: #3a3d40;
    --m-blue: #60a5fa;
    --m-track: #3a3d40;
    --m-bar-1: #1c2433;
    --m-bar-2: #1e2a3d;
    --m-bar-line: #2c3d5a;
    --m-chip: #7aa7ff;
    --m-picked: #173024;
  }
}
.mock .icon { width: 1.2em; height: 1.2em; }
.mock .icon--ok { color: var(--m-ok); }
.mock__mark { width: 1.7em; height: 1.7em; margin: -0.2em 0.3em; font-size: 0.95em; box-shadow: 0 0 0 2px var(--c-surface); }

/* skeleton bar = where customer data would be */
.sk { display: inline-block; flex: 0 1 auto; width: var(--w, 100%); min-width: 2.083em; height: 0.6em; border-radius: 8.594em; background: var(--c-line); }

/* top bar, breadcrumbs, footer */
.mock__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.111em; padding: 0.625em 1.111em; border-bottom: 1px solid var(--c-line); }
.mock__logo img { width: auto; height: 3em; }
.mock__account { display: flex; align-items: center; gap: 1.389em; color: var(--c-muted); }
.mock__account > .icon { width: 1.9em; height: 1.9em; }
.mock__logout { display: inline-flex; align-items: center; gap: 0.417em; color: var(--c-text); font-weight: 600; white-space: nowrap; }
.mock__crumbs {
  display: flex; align-items: center; gap: 0.556em; overflow: hidden;
  padding: 0.556em 1.111em; color: var(--c-muted); white-space: nowrap;
}
.mock__crumbs > .icon { width: 1.35em; height: 1.35em; }
.mock .mock__sep { width: 0.8em; height: 0.8em; }
.mock__foot { padding: 0.417em 1.111em; border-top: 1px solid var(--c-line); background: var(--c-band-light); color: var(--c-muted); font-size: 0.85em; text-align: right; }

/* sidebar: rounded panel, only the current area's group is open */
.mock__body { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.mock__side {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.972em; width: 13.889em; margin: 0 0 0.972em 0.972em;
  padding: 2.4em 0.833em 0.833em; border: 1px solid var(--c-line); border-radius: 1.215em; background: var(--m-side);
}
/* sidebar toggle: amber bookmark hanging from the top edge, as live – but with the whole arrow visible */
.mock__tgl {
  position: absolute; top: -1px; right: 0.85em;
  display: inline-flex; align-items: flex-end; justify-content: center;
  /* sizes in the tab's own (larger) em: ≈ 1.6 × 2.1 of the surrounding text */
  width: 1.15em; height: 1.5em; padding-bottom: 0.18em; border-radius: 0 0 0.6em 0.6em;
  background: var(--c-accent); color: #fff; font-size: 1.4em; font-weight: 700; line-height: 1;
}
.mock__group { display: flex; flex-direction: column; gap: 0.417em; }
.mock__gtitle { display: flex; align-items: center; gap: 0.625em; color: var(--c-heading); font-weight: 700; }
.mock__gtitle > .icon:first-child { width: 1.6em; height: 1.6em; }
.mock .mock__gchev { width: 0.85em; height: 0.85em; margin-left: auto; color: var(--c-muted); }
.mock__group.is-open .mock__gchev { transform: rotate(90deg); }
.mock__link { padding-left: 2.05em; font-weight: 600; }
.mock__link.is-active { color: var(--c-accent); text-decoration: underline 2px; text-underline-offset: 0.26em; }
.mock__select { margin-left: 2.05em; padding: 0.139em 0.556em; color: var(--c-muted); }
/* collapsed sidebar (icon rail), as in the real app */
.mock__side--rail { width: auto; align-items: center; padding: 2.4em 0.625em 0.833em; }
.mock__side--rail .mock__tgl { right: auto; left: 50%; transform: translateX(-50%); }
.mock__side--rail .mock__label, .mock__side--rail .mock__gchev,
.mock__side--rail .mock__link, .mock__side--rail .mock__select { display: none; }

/* main area and panels (amber header strip with white text, as live) */
.mock__main { min-width: 0; padding: 0 0.972em 0.972em; }
.mock__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.972em; align-items: start; }
.mock__split--list { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.mock__split--40 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.mock__split--inner { gap: 0; border-top: 1px solid var(--c-line); }
.mock__panel { container: pane / inline-size; min-width: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: 0.868em; }
.mock__panel--round { border-radius: 1.562em; }
.mock__panel--nested { margin: 0.833em; }
.mock__head { display: flex; align-items: center; gap: 0.556em; padding: 0.556em 0.972em; background: var(--c-accent); color: #fff; font-weight: 700; }
.mock__panel--round > .mock__head { padding-left: 1.25em; }
.mock .mock__head-icon { margin-left: auto; }
.mock__pad { padding: 0.833em; }
.mock__pad:not(.mock__fields) > .mock__field + .mock__field { margin-top: 0.694em; }
.mock__tools { display: flex; justify-content: flex-end; padding: 0.417em 0.833em 0; color: var(--m-info); }

/* inputs, buttons, tabs */
.mock__input, .mock__select {
  display: flex; align-items: center; min-width: 0; min-height: 1.8em;
  border: 1px solid var(--c-line-band); border-radius: var(--radius); background: var(--c-surface);
}
.mock__input { padding: 0.278em 0.625em; }
.mock__input--area { align-items: flex-start; min-height: 3.6em; padding-top: 0.694em; }
.mock__placeholder { display: block; overflow: hidden; color: var(--c-muted); font-style: italic; white-space: nowrap; text-overflow: ellipsis; }
.mock__select, .mock__input--select, .mock__field--select .mock__input { position: relative; padding-right: 1.6em; }
.mock__select::after, .mock__input--select::after, .mock__field--select .mock__input::after {
  content: "▾"; position: absolute; right: 0.45em; top: 50%; transform: translateY(-50%); color: var(--c-muted); font-style: normal;
}
.mock__inline { display: flex; align-items: center; gap: 0.556em; }
.mock__inline .mock__input { flex: 1; }
.mock__check { display: inline-flex; align-items: center; gap: 0.417em; color: var(--c-muted); white-space: nowrap; }
.mock__check::before { content: ""; width: 0.9em; height: 0.9em; border: 1px solid var(--m-btn-line); border-radius: 2px; }
.mock__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.486em; margin-top: 0.833em; }
.mock__btns--end { justify-content: flex-end; }
.mock__btn {
  display: inline-flex; padding: 0.208em 0.764em; border: 1px solid var(--m-btn-line); border-radius: 0.694em;
  background: var(--m-btn); color: var(--c-text); font-weight: 500; white-space: nowrap;
}
.mock__btn--push { margin-left: auto; }
.mock__btns--end { flex-wrap: nowrap; }
.mock__btns--end .mock__btn { white-space: normal; text-align: right; }
.mock__ibtns { display: inline-flex; gap: 0.347em; }
.mock__ibtn { display: inline-flex; align-items: center; justify-content: center; width: 2em; height: 1.8em; border-radius: var(--radius); background: var(--c-accent); color: #fff; }
.mock__tabs { display: flex; gap: 1.25em; margin-top: 0.278em; border-bottom: 1px solid var(--c-line); }
.mock__tabs span { margin-bottom: -1px; padding: 0.278em 0; border-bottom: 2px solid transparent; color: var(--c-muted); font-weight: 600; }
.mock__tabs .is-active { border-bottom-color: var(--c-accent); color: var(--c-accent); }
.mock__textbtn { color: var(--c-text); text-decoration: underline; }

/* inbox cards (status per delivery, expandable) */
.mock__cards { display: grid; gap: 0.556em; padding: 0.694em 0.833em 0.833em; }
.mock__cards--picked { min-height: 6.25em; margin-top: 0.833em; padding: 0.694em; border: 1px dashed var(--c-line-band); border-radius: 0.694em; }
.mock__card { display: grid; gap: 0.417em; padding: 0.625em 0.764em; border: 1px solid var(--c-line); border-radius: 0.694em; background: var(--c-surface); }
.mock__card.is-selected { background: var(--m-selected); }
.mock__card-top, .mock__card-foot { display: flex; align-items: center; gap: 0.556em; }
.mock__card-top .icon, .mock__card-foot .sk { margin-left: auto; }
.mock__kv { display: flex; align-items: center; gap: 0.486em; color: var(--c-muted); white-space: nowrap; }

/* form fields */
.mock__fields { display: grid; gap: 0.694em 0.833em; }
.mock__field { display: grid; gap: 0.208em; min-width: 0; }
.mock__field--wide { grid-column: 1 / -1; }
.mock__flabel { display: flex; align-items: center; color: var(--c-muted); font-weight: 600; }
@container pane (min-width: 24.306em) { .mock__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* search row and result table */
.mock__search { position: relative; display: flex; align-items: center; gap: 0.486em; padding: 1.25em 0.833em 0; }
.mock__search > * { flex: none; white-space: nowrap; }
.mock__search > .mock__mark { position: absolute; z-index: 1; top: 0.139em; left: 0.347em; margin: 0; }
.mock__search > .mock__placeholder { flex: 1 1 0; min-width: 3.472em; }
.mock__table { display: grid; gap: 0.208em; padding: 0.417em 0.556em 0.694em; }
.mock__row {
  display: grid; align-items: center; gap: 0.694em; padding: 0.556em 0.694em; border-radius: 0.521em;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 1.1fr) auto;
}
.mock__row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__row--head { background: var(--m-thead); color: var(--c-heading); }
/* clip long labels sideways only, so the numbered markers keep their full height */
.mock__row--head > span { overflow: visible; overflow-x: clip; padding-left: 2px; }
.mock__row.is-selected { background: var(--m-selected); }
.mock__icons { display: inline-flex; gap: 0.486em; color: var(--m-info); }
.mock__period { display: flex; align-items: center; gap: 0.347em; color: var(--c-muted); }
@container pane (max-width: 36.458em) {
  .mock__opt { display: none; }
  .mock__row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
}

/* SIP uploader: drop zone and file list (step 1) */
.mock__drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3em;
  min-height: 7em; border: 1px solid var(--m-drop-line); border-radius: 0.694em; background: var(--m-drop); text-align: center;
}
.mock__drop > .icon { width: 2.2em; height: 2.2em; color: var(--c-muted); }
.mock__drop > .mock__mark { position: absolute; z-index: 1; top: -0.6em; left: -0.4em; margin: 0; }
.mock__btn--upload { background: #ffaa00; border-color: #ced4da; color: #000; }
.mock__table--files .mock__row { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.6fr) minmax(0, 1.1fr); }
.mock__table--files .mock__row--head > span, .mock__table--dl .mock__row--head > span { white-space: normal; }
.mock__status { display: flex; align-items: center; gap: 0.35em; color: var(--c-muted); }
.mock__progress {
  flex: 1 1 auto; min-width: 2em; height: 0.5em; border-radius: 99px;
  background: linear-gradient(var(--m-blue), var(--m-blue)) 0 0 / var(--p, 50%) 100% no-repeat, var(--m-track);
}

/* SIP uploader: download area (step 5) */
.mock__actionbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em 0.5em; margin: 0.55em 0.55em 0; padding: 0.5em 0.6em;
  border: 1px solid var(--m-bar-line); border-radius: 0.5em; background: linear-gradient(90deg, var(--m-bar-1), var(--m-bar-2));
}
.mock__note { display: inline-flex; align-items: center; gap: 0.3em; color: var(--c-muted); white-space: nowrap; }
.mock__note .sk { width: 3em; }
.mock__quick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3em; white-space: nowrap; }
.mock__chip { padding: 0.05em 0.5em; border: 2px solid var(--m-chip); border-radius: 99px; background: var(--c-surface); color: var(--m-chip); font-weight: 600; }
.mock__btn--green { background: #16a34a; border-color: #16a34a; color: #fff; }
.mock__btn--small { padding: 0.05em 0.4em; font-size: 0.9em; }
.mock__cb { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.1em; height: 1.1em; border: 1px solid var(--m-btn-line); border-radius: 0.2em; background: var(--c-surface); }
.mock__cb.is-checked { border-color: #16a34a; background: #16a34a; }
.mock__cb.is-checked::after { content: "✓"; color: #fff; font-size: 0.8em; font-weight: 700; line-height: 1; }
.mock__table--dl .mock__row { grid-template-columns: auto minmax(0, 0.65fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto; }
.mock__row.is-picked { box-shadow: inset 0.25em 0 0 #16a34a; background: var(--m-picked); }
/* the size column only fits when the download list is wide */
@container pane (max-width: 45em) {
  .mock__table--dl .mock__opt { display: none; }
  .mock__table--dl .mock__row { grid-template-columns: auto minmax(0, 0.65fr) minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto; }
}

/* SIP package: fixity checks (shown in #technik, below the Store text) */
.shot--tech { margin: var(--s-4) 0; }
.shot--tech .shot__title { color: var(--c-heading); font-weight: 700; }
.shot--tech .mock__tabs span { white-space: nowrap; }
.mock__head-btns { display: inline-flex; gap: 0.486em; margin-left: auto; font-weight: 500; }
.mock__head-btns .mock__btn { align-items: center; gap: 0.3em; }
.mock__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em 1em; padding: 0.278em 0.833em 0.417em; color: var(--m-ok); font-weight: 700; }
.mock__badge { display: inline-flex; align-items: center; gap: 0.35em; white-space: nowrap; }
.mock__hash { color: var(--c-muted); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; }
.mock__table--fixity .mock__row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 2.2fr) auto; }
.mock__table--fixity .mock__row > .icon { justify-self: end; }
@container pane (max-width: 36.458em) {
  .mock__table--fixity .mock__row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) auto; }
}

/* content tree (coloured squares = entity colours of the AIS client) */
.mock__tree { display: grid; align-content: start; gap: 0.208em; padding: 0.694em 0.556em; border-right: 1px solid var(--c-line); }
.mock__node { display: flex; align-items: center; gap: 0.486em; padding: 0.347em 0.417em 0.347em calc(0.417em + var(--lvl) * 1.528em); }
.mock .mock__nchev { flex: none; width: 0.85em; height: 0.85em; color: var(--c-muted); }
.mock__node.is-open > .mock__nchev { transform: rotate(90deg); }
/* selected node: the live tree underlines it – a darker bar reads the same in a sketch */
.mock__node.is-selected .sk { background: var(--c-muted); }
.mock__sq { flex: none; width: 0.8em; height: 0.8em; border-radius: 2px; }
.mock__sq--dossier { background: #f7a82a; }
.mock__sq--mappe { background: #228b22; }
.mock__sq--dokument { background: #1c86ee; }
@container pane (max-width: 32.986em) {
  .mock__split--inner { grid-template-columns: minmax(0, 1fr); }
  .mock__tree { border-right: 0; border-bottom: 1px solid var(--c-line); }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--s-4); margin: var(--s-4) 0 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding-left: 4rem; counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--c-accent); color: var(--c-black); font-size: 1.25rem; font-weight: 700;
}
.step h3 { margin-bottom: 0.25rem; }
.step p { margin: 0; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
  .step { padding-left: 0; padding-top: 4.25rem; }
  .step::after {
    content: ""; position: absolute; top: 1.5rem; left: 3.75rem; right: -0.75rem;
    height: 2px; background: var(--c-line);
  }
  .step:last-child::after { content: none; }
}

/* ---------- FAQ (native details/summary) ---------- */
.faq { max-width: 52rem; border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
/* the same +/– toggle is used for the price rules in #kosten */
.faq summary, .pricing__rules > summary {
  position: relative; padding: var(--s-3) 3rem var(--s-3) 0;
  cursor: pointer; list-style: none;
  font-size: 1.1rem; font-weight: 600; color: var(--c-heading);
}
.faq summary::-webkit-details-marker, .pricing__rules > summary::-webkit-details-marker { display: none; }
/* +/– drawn as bars (not glyphs) so the sign sits exactly in the centre of the circle */
.faq summary::after, .pricing__rules > summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; border-radius: 50%;
  background:
    linear-gradient(var(--c-heading), var(--c-heading)) center / 0.85rem 2px no-repeat,
    linear-gradient(var(--c-heading), var(--c-heading)) center / 2px 0.85rem no-repeat,
    var(--c-line);
}
.faq details[open] > summary::after, .pricing__rules[open] > summary::after {
  background:
    linear-gradient(var(--c-black), var(--c-black)) center / 0.85rem 2px no-repeat,
    var(--c-accent);
}
.faq summary:hover, .pricing__rules > summary:hover { color: var(--c-muted); }
.faq__answer { padding: 0 0 var(--s-3); }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Technical details (collapsed) ---------- */
.tech > summary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.6rem; border: 2px solid var(--c-heading); border-radius: var(--radius);
  cursor: pointer; list-style: none; font-weight: 600;
}
.tech > summary::-webkit-details-marker { display: none; }
.tech > summary::after { content: "▾"; transition: transform 0.15s; }
.tech[open] > summary::after { transform: rotate(180deg); }
.tech > summary:hover { background: var(--c-heading); color: var(--c-bg); }
.tech__body { margin-top: var(--s-4); }
.tech__body h3 { margin-top: var(--s-4); }
/* sub-point inside a subsystem (e.g. «Sicherheitszonen» under Workflow-System) */
.tech__body h4 { margin: var(--s-4) 0 var(--s-1); color: var(--c-heading); font-size: 1rem; font-weight: 700; }
.tech__body ul { padding-left: 1.25rem; }
.tech__body li::marker { color: var(--c-accent); }

.figures { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-top: var(--s-4); }
.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: 1px solid var(--c-line); background: #fff; }
/* diagrams drawn edge to edge get inner white space so both figures look equally framed */
.figure--padded img { padding: 3%; }
/* single diagrams placed next to the text they illustrate: capped at reading width */
.tech__body > .figure { max-width: 52rem; margin: var(--s-4) 0; }
.figure figcaption { margin-top: var(--s-1); font-size: 0.9rem; color: var(--c-muted); }

/* ---------- Workflow animation (#technik, assets/js/flow.js) ----------
   Zones and colours follow the ARI presentation slide; the SVG markup shows the final state,
   the script plays the steps and highlights the matching list item. */
.flow {
  --flow-client: #dceaf7;
  --flow-ingest: #fdf1d6;
  --flow-core: #fbe2a3;
  --flow-backup: #f9dada;
  --flow-icon: #85817d;
  --flow-meta: #b9c6d8;
  display: grid; gap: var(--s-2) var(--s-5); margin: var(--s-3) 0 0;
  grid-template-areas: "svg" "ctrl" "steps" "cap";
}
@media (prefers-color-scheme: dark) {
  .flow {
    --flow-client: #1c2733;
    --flow-ingest: #2a2418;
    --flow-core: #3a2e12;
    --flow-backup: #382122;
    --flow-icon: #a29e99;
    --flow-meta: #4a5668;
  }
}
@media (min-width: 1000px) {
  /* the step list is taller than the diagram: the spare height goes below the caption */
  .flow { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto auto 1fr; grid-template-areas: "svg steps" "ctrl steps" "cap steps"; align-items: start; }
}
.flow__svg { grid-area: svg; display: block; width: 100%; height: auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.flow__zone--client { fill: var(--flow-client); }
.flow__zone--ingest { fill: var(--flow-ingest); }
.flow__zone--core { fill: var(--flow-core); }
.flow__zone--backup { fill: var(--flow-backup); }
.flow__icon { fill: var(--flow-icon); }
.flow__icon .acc { fill: var(--c-accent); }
.flow__icon .ln { fill: none; stroke: var(--c-surface); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flow__icon .ln.acc { fill: none; stroke: var(--c-accent); }
.flow__icon .lnk { fill: none; stroke: var(--flow-icon); stroke-width: 3; }
.flow__icon .front { fill: var(--c-surface); opacity: 0.35; }
.flow__lbl { fill: var(--c-heading); font: 600 17px var(--font); text-anchor: middle; }
.flow__lbl--short { display: none; }
/* on phones the whole diagram is small: bigger labels, short form for the long one */
@media (max-width: 600px) {
  .flow__lbl { font-size: 22px; }
  .flow__lbl--long { display: none; }
  .flow__lbl--short { display: inline; }
}
.flow__tok--dot circle { fill: var(--c-accent-2); stroke: var(--c-surface); stroke-width: 3; }
.flow__tok--pkg path { fill: var(--c-accent); }
.flow__tag rect { fill: var(--flow-meta); }
.flow__tag text { fill: var(--c-heading); font: 700 11px var(--font); text-anchor: middle; }

.flow__ctrl { grid-area: ctrl; display: none; align-items: center; gap: var(--s-1); }
.flow.is-ready .flow__ctrl { display: flex; }
.flow__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0;
  border: 1px solid var(--c-line-band); border-radius: var(--radius); background: var(--c-surface); color: var(--c-heading); cursor: pointer;
}
.flow__btn:hover:not(:disabled) { border-color: var(--c-heading); }
.flow__btn:disabled { opacity: 0.4; cursor: default; }
.flow__btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow__btn .i-play { fill: currentColor; }
.flow.is-playing .i-play, .flow:not(.is-playing) .i-pause { display: none; }
.flow__count { margin-left: var(--s-1); color: var(--c-muted); font-size: 0.9rem; }
.flow__steps { grid-area: steps; }
.flow__jump { display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.flow__jump:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.flow.is-ready .flow__steps li { color: var(--c-muted); transition: color 0.2s; }
.flow.is-ready .flow__steps li::before { background: var(--c-line-band); color: var(--c-heading); transition: background 0.2s; }
.flow.is-ready .flow__steps li.is-active { color: var(--c-text); }
.flow.is-ready .flow__steps li.is-active::before { background: var(--c-accent); color: var(--c-black); }
.flow__cap { grid-area: cap; font-size: 0.9rem; color: var(--c-muted); }

/* ---------- Costs (#kosten): calculator first, price rules collapsed below (assets/js/pricing.js) ---------- */
.pricing { display: grid; gap: var(--s-3); max-width: 46rem; margin-top: var(--s-4); }
.pricing__rules { border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.pricing__rules-body { padding: 0 0 var(--s-3); }
.pricing__rules-body h3 { margin: var(--s-3) 0 var(--s-1); font-size: 1.05rem; }
.pricing__rules-body h3:first-child { margin-top: 0; }
.pricing__vat { margin: var(--s-3) 0 0; font-size: 0.95rem; color: var(--c-muted); }
.pricing__more { margin: 0; }
/* optional extra (association): same surface as the calculator, without its accent bar */
.pricing__extra { padding: var(--s-3); background: var(--c-surface); }
.pricing__extra h3 { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 var(--s-2); font-size: 1.15rem; }
.pricing__extra h3 .icon { color: var(--c-heading); }
.pricing__extra p:last-child { margin-bottom: 0; }
.pricing__extra-link { font-weight: 600; }
.pricing__extra-link .icon { width: 0.9em; height: 0.9em; margin-left: 0.3em; vertical-align: -0.05em; }
.price-list { margin: 0; padding-left: 1.25rem; }
.price-list li::marker { color: var(--c-accent); }
.price-list li + li { margin-top: var(--s-1); }

.calc { padding: var(--s-4) var(--s-3); background: var(--c-surface); border-top: 4px solid var(--c-accent); }
.calc[hidden], .calc [hidden] { display: none; }
.calc fieldset { margin: 0 0 var(--s-3); padding: 0; border: 0; }
.calc legend { margin-bottom: var(--s-1); padding: 0; font-weight: 600; }
.calc__models { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.calc__models label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.9rem; border: 1px solid var(--c-line); border-radius: var(--radius);
  cursor: pointer; font-weight: 500;
}
.calc__models label:has(:checked) { border-color: var(--c-heading); box-shadow: inset 0 0 0 1px var(--c-heading); }
.calc input[type="radio"] { margin: 0; accent-color: var(--c-accent); }
.calc__field { display: grid; gap: 0.35rem; margin-bottom: var(--s-3); font-weight: 600; }
.calc input[type="number"], .calc select {
  width: 100%; padding: 0.55rem 0.75rem;
  border: 1px solid var(--c-muted); border-radius: var(--radius);
  background: var(--c-bg); color: var(--c-text); font: inherit; font-weight: 400;
}
.calc__volume { display: flex; gap: var(--s-1); }
.calc__volume input { flex: 1; min-width: 0; }
.calc__volume select { width: auto; }

.calc__result { padding-top: var(--s-3); border-top: 1px solid var(--c-line); }
/* stacked bar: segment widths proportional to the amounts (flex-grow set by pricing.js) */
.calc__bar { display: flex; gap: 2px; height: 1.25rem; margin: var(--s-2) 0; border-radius: var(--radius); overflow: hidden; background: var(--c-line); }
.calc__seg { flex: 0 0 0; min-width: 4px; }
.calc__seg--base, .calc__key--base { background: var(--c-accent); }
.calc__seg--volume, .calc__key--volume { background: var(--c-heading); }
.calc__lines { margin: 0; }
.calc__lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); padding: 0.35rem 0; }
.calc__lines dt { display: flex; align-items: center; gap: 0.5rem; }
.calc__lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__key { flex: none; width: 0.85rem; height: 0.85rem; border-radius: 2px; }
/* on narrow screens the amount wraps onto its own line, still right-aligned */
.calc__lines > .calc__total { flex-wrap: wrap; row-gap: 0; color: var(--c-heading); font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.calc__total dd { margin-left: auto; }
.calc__total dt { flex-wrap: wrap; column-gap: 0.5rem; row-gap: 0; }
.calc__total small { color: var(--c-muted); font-size: 0.85rem; font-weight: 400; }
.calc__onetime h4 { margin: var(--s-3) 0 var(--s-1); color: var(--c-heading); font-size: 1rem; }
.calc__hint { margin: var(--s-2) 0 0; color: var(--c-muted); font-size: 0.9rem; }
.calc__quote { padding-top: var(--s-3); border-top: 1px solid var(--c-line); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 860px) { .contact { grid-template-columns: 3fr 2fr; } }
.contact__card { padding: var(--s-4); border: 1px solid var(--c-dark-line); border-top: 4px solid var(--c-accent); }
.contact address { font-style: normal; font-size: 1.05rem; }
.contact address strong { display: block; font-weight: 700; color: var(--c-white); }
.contact__links { margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.contact .btn-row { margin-top: var(--s-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark-bg); color: var(--c-dark-muted); padding: var(--s-4) 0 var(--s-3); font-size: 0.95rem; border-top: 1px solid var(--c-dark-line); }
.site-footer a { color: var(--c-white); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); text-decoration: underline; text-decoration-color: var(--c-accent); }
.site-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.site-footer__logo { height: 64px; width: auto; }
/* links + fokus logo (light-on-dark variant: the footer is black in both modes) */
.site-footer__fokus { display: flex; align-items: center; gap: var(--s-3); }
.site-footer__fokus-logo { height: 56px; width: auto; padding-left: var(--s-3); border-left: 1px solid var(--c-dark-line-strong); box-sizing: content-box; }
.site-footer__links { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
@media (max-width: 600px) { .site-footer__links { align-items: flex-start; } }
.site-footer__legal { margin: var(--s-3) 0 0; padding-top: var(--s-2); border-top: 1px solid var(--c-dark-line); font-size: 0.85rem; }
.site-footer__legal a { color: inherit; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  :root { --header-h: 5.1rem; --gutter: 1rem; }
  .site-header__bar { gap: var(--s-1); }
  .site-header__logo img { height: 56px; }
  .anchor-nav ul { gap: var(--s-2); }
  .section, .hero { padding: var(--s-5) 0; }
  .partner { flex-direction: column; align-items: flex-start; }
}
