/* rypox theme v4 "Messraster" (2026-11), file version 5: technical-drawing look
   with a fine grid and rounded corners matching the app icons. Light and dark
   follow the system setting (prefers-color-scheme) unless the visitor picks one
   with the toggle in the nav: assets/theme.v1.js then sets
   <html data-theme="light|dark">. Without the script everything still works,
   it just follows the system.

   Same selectors as styles.v3.css, so pages only swap the <link>. Page-specific
   files (hilfe.css, langs.v1.css, songtexte.v1.css, ...) still carry dark-only
   literals; the "Page-specific overrides" block at the end neutralises them with
   higher specificity instead of shipping new versions of each file.

   Fonts are self-hosted (assets/fonts, SIL OFL 1.1, licence texts next to the
   files). Never load them from Google: that sends visitors' IP addresses there.

   nginx serves this file immutable for 30 days: changes go into styles.v6.css. */

/* ---------- Fonts ---------- */
@font-face{ font-family:"Chakra Petch"; font-style:normal; font-weight:600; font-display:swap;
  src:url("assets/fonts/chakra-petch-600-latin-v1.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:"Chakra Petch"; font-style:normal; font-weight:600; font-display:swap;
  src:url("assets/fonts/chakra-petch-600-latin-ext-v1.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family:"Chakra Petch"; font-style:normal; font-weight:700; font-display:swap;
  src:url("assets/fonts/chakra-petch-700-latin-v1.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:"Chakra Petch"; font-style:normal; font-weight:700; font-display:swap;
  src:url("assets/fonts/chakra-petch-700-latin-ext-v1.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family:"IBM Plex Sans"; font-style:normal; font-weight:400 600; font-display:swap;
  src:url("assets/fonts/ibm-plex-sans-var-latin-v1.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:"IBM Plex Sans"; font-style:normal; font-weight:400 600; font-display:swap;
  src:url("assets/fonts/ibm-plex-sans-var-latin-ext-v1.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap;
  src:url("assets/fonts/ibm-plex-mono-400-latin-v1.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:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap;
  src:url("assets/fonts/ibm-plex-mono-400-latin-ext-v1.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap;
  src:url("assets/fonts/ibm-plex-mono-500-latin-v1.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:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap;
  src:url("assets/fonts/ibm-plex-mono-500-latin-ext-v1.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }

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

  --bg: #f1f3f8;            /* paper */
  --surface: #ffffff;
  --surface2: #e8ebf4;      /* chips, secondary buttons, code */
  --text: #0f1631;          /* ink */
  --muted: #4d5774;
  --border: #c8cee0;
  --border-strong: #8a93b0;
  --grid: rgba(67,56,202,0.05);
  --grid2: rgba(67,56,202,0.10);
  --accent: #4338ca;        /* indigo from the logo */
  --accent-ink: #ffffff;
  --accent-soft: rgba(67,56,202,0.10);
  --signal: #c2410c;        /* orange, markers only */

  --f-display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Corner radii follow the app icons: icons 22 % of their size (R 14 on
     64), everything else concentric and smaller. */
  --r-icon: 22%;
  --r-card: 14px;
  --r-btn: 10px;
  --r-sm: 8px;
  --radius: var(--r-card);

  /* aliases still used by page-specific stylesheets */
  --card: var(--surface);
  --card2: var(--surface2);
  --brand: var(--signal);
  --brand2: var(--accent);
  --danger: #c81e1e;
  --shadow: none;
}

/* ---------- Tokens: dark ----------
   Same list twice: once for the system setting (unless the visitor chose
   light), once for an explicit dark choice. Keep both in sync. */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg: #080c19;
    --surface: #0e1326;
    --surface2: #171d36;
    --text: #e3e7f7;
    --muted: #9aa3c0;
    --border: #28314e;
    --border-strong: #4a5480;
    --grid: rgba(129,140,248,0.045);
    --grid2: rgba(129,140,248,0.10);
    --accent: #818cf8;
    --accent-ink: #080c19;
    --accent-soft: rgba(129,140,248,0.14);
    --signal: #ff8a4c;
    --danger: #ff5c5c;
  }
}
:root[data-theme="dark"]{
  --bg: #080c19;
  --surface: #0e1326;
  --surface2: #171d36;
  --text: #e3e7f7;
  --muted: #9aa3c0;
  --border: #28314e;
  --border-strong: #4a5480;
  --grid: rgba(129,140,248,0.045);
  --grid2: rgba(129,140,248,0.10);
  --accent: #818cf8;
  --accent-ink: #080c19;
  --accent-soft: rgba(129,140,248,0.14);
  --signal: #ff8a4c;
  --danger: #ff5c5c;
  color-scheme: dark;
}
:root[data-theme="light"]{ color-scheme: light; }

/* ---------- Base ---------- */
*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid2) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 8px 8px, 8px 8px;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

.cardLink{ display:block; text-decoration: none; }
.cardLink:hover{ text-decoration: none; }
.cardLink:focus-visible{ outline: 2px solid var(--accent); outline-offset: 10px; }

.container{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Top bar ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}

.topbar__inner{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 14px 0;
}

.brand{
  display:flex;
  gap:10px;
  align-items: center;
}
.brand::before{
  content: "";
  width: 24px;
  height: 24px;
  flex: none;
  background: url("assets/rypox-favicon.svg") center / contain no-repeat;
}
.brand:hover{ text-decoration: none; }

.brand__mark{
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand__sub{
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  line-height: 1;
}

/* Wraps instead of overflowing on narrow phones: the nav moves below the
   brand, and its entries wrap between each other, never inside one. */
.nav{
  display:flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 14px;
}
.nav a{ white-space: nowrap; padding-bottom: 3px; }
.nav a:hover{ color: var(--text); text-decoration: none; box-shadow: 0 2px 0 var(--accent); }

/* ---------- Hero ---------- */
.hero{ padding: 56px 0 34px; }

.hero__inner{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.badge{
  display:inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--muted);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge::before{
  content: "";
  width: 26px;
  height: 1px;
  background: var(--signal);
}

h1, h2, h3{ font-family: var(--f-display); text-wrap: balance; }

h1{
  margin: 14px 0 14px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero__titleRow{
  display:flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero__titleRow h1{ margin: 0; }

.lead{
  margin: 0 0 24px;
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}
.lead strong{ color: var(--text); font-weight: 600; }
.lead span{ color: var(--muted); }

.hero__appLogo{
  width: 52px;
  height: 52px;
  display:block;
  border-radius: var(--r-icon);
}

.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  background: var(--surface2);
  color: var(--text);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border-radius: var(--r-btn);
  transition: background-color 120ms ease, color 120ms ease;
}
.btn:hover{ text-decoration: none; background: var(--accent-soft); color: var(--accent); }

.btn--primary{ background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover{ background: color-mix(in srgb, var(--accent) 82%, var(--text)); color: var(--accent-ink); }

.btn--secondary{ background: var(--surface2); }

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

/* Store badges are official artwork: no reshaping, no recolouring. */
.playBadge{
  display:inline-flex;
  align-items:center;
  justify-content: center;
  transition: opacity 0.2s;
}
.playBadge__text{ font-weight: 600; font-size: 14px; }
.playBadge:hover{ text-decoration: none; opacity: 0.85; }
.playBadge:focus-visible{ outline: 2px solid var(--accent); outline-offset: 4px; }
.playBadge__img{ height: 48px; width: auto; display:block; }

.card__iconContainer{
  background: var(--surface2);
  padding: 10px;
  border-radius: var(--r-btn);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hint for a not yet published version, deliberately without store artwork. */
.soonChip{
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 9px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--signal) 13%, transparent);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
}
.soonChip__dot{ flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
@media (max-width: 420px){ .soonChip{ white-space: normal; } }

.hint{
  margin: 0;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- Hero media ---------- */
.hero__media{
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
}

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

.hero__logoWrap{
  position:absolute;
  left: 18px;
  bottom: 18px;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  border-radius: var(--r-btn);
}

.hero__logo{
  width: 42px;
  height: 42px;
  border-radius: var(--r-icon);
}

/* ---------- Sections ---------- */
.section{ padding: 36px 0; }
.section--compact{ padding: 18px 0 44px; }

h2{
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.section__intro{
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 80ch;
}

.appGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- Cards: rounded; linked cards show crop marks on hover ---------- */
.card{
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  transition: border-color 140ms ease;
}
.card::before{
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  --t: var(--border-strong);
  background:
    linear-gradient(var(--t), var(--t)) left top / 12px 1px no-repeat,
    linear-gradient(var(--t), var(--t)) left top / 1px 12px no-repeat,
    linear-gradient(var(--t), var(--t)) right top / 12px 1px no-repeat,
    linear-gradient(var(--t), var(--t)) right top / 1px 12px no-repeat,
    linear-gradient(var(--t), var(--t)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--t), var(--t)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--t), var(--t)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--t), var(--t)) right bottom / 1px 12px no-repeat;
  opacity: 0;
  transition: inset 140ms ease, opacity 140ms ease;
}

.cardLink:hover .card,
.cardLink:focus-visible .card{ border-color: var(--accent); }
.cardLink:hover .card::before,
.cardLink:focus-visible .card::before{ --t: var(--accent); inset: -9px; opacity: 1; }

.card__header{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 18px 20px 14px;
  border-bottom: 1px dashed var(--border);
}

.card__icon{
  width: 48px;
  height: 48px;
  border-radius: var(--r-icon);
}

.card__title{
  margin: 0;
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
}

.card__subtitle{
  margin: 4px 0 0;
  color: var(--signal);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card__body{ padding: 16px 20px 20px; }
.card__list{ margin-top: 14px; }
.card__listTitle{ font-family: var(--f-display); font-weight: 600; margin-bottom: 8px; }

ul{ margin: 0; padding-left: 18px; color: var(--muted); }
li{ margin: 6px 0; }

.card__footer{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px dashed var(--border);
}

.card--placeholder{ background: var(--surface2); }

.placeholderIcon{
  width: 48px;
  height: 48px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-icon);
}

/* ---------- Fine print and footer ---------- */
.fineprint{
  display:flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}

.fineprint__title{
  margin-bottom: 6px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted{ color: var(--muted); }
.mono{ font-family: var(--f-mono); }

.footer{
  border-top: 1px solid var(--border);
  padding: 18px 0 26px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  font-family: var(--f-mono);
  font-size: 13px;
}

.footer__inner{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- FAQ ---------- */
.faq{
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}

.faq__item{
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}
.faq__item:first-child{ border-top: 0; }

.faq__q{
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
}

.faq__a{ margin-top: 8px; }

@media (max-width: 860px){
  .hero__inner{ grid-template-columns: 1fr; }
  .appGrid{ grid-template-columns: 1fr; }
}

/* ---------- Start page: dimensioned logo and app grid ---------- */
/* The rypox mark as a construction drawing. Values are the real ones from
   assets/rypox-favicon.svg: 64 x 64 units, stroke 4.5, lines at 48.8 deg. */
.heroMark{ width: 100%; max-width: 400px; justify-self: center; overflow: visible; }
.heroMark .hm-logo line{
  stroke: var(--accent);
  stroke-width: 13.5;
  stroke-dasharray: 160;
  animation: hm-draw 1.4s cubic-bezier(.6,0,.2,1) both;
}
.heroMark .hm-logo line:nth-child(2){ animation-delay: .12s; }
.heroMark .hm-logo line:nth-child(3){ animation-delay: .24s; }
.heroMark .hm-logo line:nth-child(4){ animation-delay: .36s; }
.heroMark .hm-c{ fill: none; stroke: var(--border-strong); stroke-width: 1; }
.heroMark .hm-d{ stroke-dasharray: 4 4; }
.heroMark .hm-t{ fill: var(--muted); font-family: var(--f-mono); font-size: 12px; }
.heroMark .hm-st{ fill: var(--signal); }
.heroMark .hm-s{ fill: var(--signal); }
@keyframes hm-draw{ from{ stroke-dashoffset: 160; } to{ stroke-dashoffset: 0; } }

/* Five apps: TopCalendar spans two columns so no card sits alone in a row. */
.appGrid--apps{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.appGrid--apps > :first-child{ grid-column: span 2; }
.cardLink > .card{ height: 100%; }

@media (max-width: 1000px){
  .appGrid--apps{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px){
  .heroMark{ max-width: 300px; }
  .appGrid--apps{ grid-template-columns: 1fr; }
  .appGrid--apps > :first-child{ grid-column: auto; }
}

/* ---------- Theme toggle (inserted into .nav by assets/theme.v1.js) ---------- */
.themeToggle{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 0 3px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.themeToggle:hover{ color: var(--text); box-shadow: 0 2px 0 var(--accent); }
.themeToggle:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.themeToggle svg{ width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.themeToggle svg .fill{ fill: currentColor; stroke: none; }

/* ======================================================================
   Page-specific overrides. These files predate v4 and hard-code colours
   or radii for the old dark theme; "body" lifts the specificity above theirs.
   ====================================================================== */

/* topcal/hilfe.css, davsky/hilfe.v1.css */
body .note,
body .guide .note{ border-radius: 0 var(--r-btn) var(--r-btn) 0; }
body table.compare thead th{ border-bottom-color: var(--border-strong); font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; }

/* davsky/hilfe.v1.css, lobotune/songtexte.v1.css */
body .guide code{ font-family: var(--f-mono); border-radius: 4px; background: var(--surface2); }
body .guide pre{ border-radius: var(--r-btn); background: var(--surface2); }
body .guide pre code{ background: none; }

/* topcal/langs.v1.css */
body .langs__item{ border-radius: var(--r-btn); background: var(--surface); }
body .langs__flag{ border-radius: 4px; box-shadow: 0 0 0 1px var(--border); }

/* Diagrams in kalender-verstehen.html / understanding-calendars.html are drawn
   with white-on-dark literals. CSS beats SVG presentation attributes, so the
   literals are mapped onto theme tokens here. */
.diagram [fill="rgba(255,255,255,0.92)"]{ fill: var(--text); }
.diagram [fill="rgba(255,255,255,0.70)"],
.diagram [fill="rgba(255,255,255,0.62)"],
.diagram [fill="rgba(255,255,255,0.55)"]{ fill: var(--muted); }
.diagram [fill="rgba(255,255,255,0.20)"]{ fill: var(--border-strong); }
.diagram [fill="rgba(255,255,255,0.06)"],
.diagram [fill="rgba(255,255,255,0.035)"]{ fill: var(--surface2); }
.diagram [fill="rgba(255,255,255,0.025)"]{ fill: color-mix(in srgb, var(--surface2) 55%, transparent); }
.diagram [fill="#0d121b"],
.diagram [fill="#121722"]{ fill: var(--surface); }
.diagram [stroke="rgba(255,255,255,0.10)"]{ stroke: var(--border); }
.diagram [stroke="rgba(255,255,255,0.22)"]{ stroke: var(--border-strong); }
.diagram [stroke="rgba(255,255,255,0.42)"],
.diagram [stroke="rgba(255,255,255,0.55)"],
.diagram [stroke="rgba(255,255,255,0.62)"],
.diagram [stroke="rgba(255,255,255,0.70)"]{ stroke: var(--muted); }
.diagram [fill="#ffb15a"]{ fill: var(--signal); }
.diagram [stroke="#ffb15a"]{ stroke: var(--signal); }
.diagram [stroke="rgba(255,140,0,0.35)"],
.diagram [stroke="rgba(255,140,0,0.45)"],
.diagram [stroke="rgba(255,140,0,0.50)"]{ stroke: color-mix(in srgb, var(--signal) 55%, transparent); }
.diagram [fill="rgba(255,140,0,0.10)"]{ fill: color-mix(in srgb, var(--signal) 12%, transparent); }

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}
