/* Synium Software – site styles. No framework; mobile first.
   Breakpoints: 576 (large phones), 768 (iPad portrait), 992 (iPad landscape),
   1200 (Mac), 1700 (large displays). */

/* Colors: light mode below, dark mode in the prefers-color-scheme block.
   Always use the variables for surfaces and text, never fixed colors –
   except for areas that are dark in both modes (navigation, banners). */
:root {
  color-scheme: light dark;
  --bg: #ffffff;          /* page */
  --bg-alt: #f5f5f7;      /* sections, footer, boxes on the page */
  --surface: #ffffff;     /* cards on --bg-alt */
  --surface-hover: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0071e3;
  --code-bg: #f5f5f7;
  --shadow: rgba(0, 0, 0, .06);
  --shadow-strong: rgba(0, 0, 0, .12);
  --subnav-bg: rgba(251, 251, 253, .9);
  --subnav-line: rgba(0, 0, 0, .08);
  --button-light: #e8e8ed;
  --button-buy: #1d1d1f;
  --missing-bg: #ffe3e3;
  --missing-text: #c00;
  --dark: #161617;
  --blue: #0071e3;
  --radius: 14px;
  --gutter: 20px;              /* left/right page padding; grows on wider screens */
  --content: calc(1000px + 2 * var(--gutter)); /* text column stays 1000px wide */
  --nav-h: 56px;
  --nav-glass: rgba(22, 22, 23, .92); /* top bar and Apps menu share this material */
  --nav-line: transparent;      /* hairline under the top bar; only visible in dark mode */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 64px; } }
@media (min-width: 1200px) { :root { --gutter: 96px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #161617;
    --surface: #1d1d1f;
    --surface-hover: #2c2c2e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #38383a;
    --link: #2997ff;
    --code-bg: #1d1d1f;
    --shadow: rgba(0, 0, 0, .5);
    --shadow-strong: rgba(0, 0, 0, .7);
    --subnav-bg: rgba(29, 29, 31, .88);
    --subnav-line: rgba(255, 255, 255, .1);
    --nav-line: rgba(255, 255, 255, .1);
    --button-light: #2c2c2e;
    --button-buy: #0071e3;
    --missing-bg: #4a1414;
    --missing-text: #ff8a80;
  }
}

/* theme: dark in product.md – product pages that are dark in both modes
   (Logoist, VectorAI, Vectorize, as on the old site). Same values as the
   dark-mode block above; keep both in sync. The link colour can be set per
   product with link_color: in product.md. */
.theme-dark {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #161617;
  --surface: #1d1d1f;
  --surface-hover: #2c2c2e;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: #38383a;
  --link: #2997ff;
  --code-bg: #1d1d1f;
  --shadow: rgba(0, 0, 0, .5);
  --shadow-strong: rgba(0, 0, 0, .7);
  --subnav-bg: rgba(29, 29, 31, .88);
  --subnav-line: rgba(255, 255, 255, .1);
  --nav-line: rgba(255, 255, 255, .1);
  --button-light: #2c2c2e;
  --button-buy: #0071e3;
  --missing-bg: #4a1414;
  --missing-text: #ff8a80;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 56px); }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
/* Sticky footer: on short pages the footer sits at the bottom of the window. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; margin: 1.6em 0 .5em; text-wrap: pretty; }
h1 { font-size: clamp(30px, 5vw, 48px); margin-top: .6em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
/* Section titles (h2 inside a `::: section` block), e.g. the product
   overview title ("MacFamilyTree 11 – …"): larger than normal h2s. */
.band-inner h2 { font-size: clamp(30px, 4.6vw, 46px); }
/* History pages (MacFamilyTree / MobileFamilyTree): the page title is an
   h1; the per-version section titles are smaller than normal band h2s. */
.history .band-inner h2 { font-size: clamp(22px, 2.8vw, 28px); margin-top: 0; }
h3 { font-size: 21px; }
p, ul, ol { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code-bg); padding: .1em .35em; border-radius: 5px; }
pre { background: var(--code-bg); padding: 16px; border-radius: var(--radius); overflow: auto; }
pre code { background: none; padding: 0; }
blockquote { margin: 1.5em 0; padding: .2em 1.2em; border-left: 3px solid var(--line); color: var(--muted); }
.muted { color: var(--muted); }
/* ::: muted block: a note that belongs to the line above it */
div.muted { margin-top: -1.35em; font-size: 15px; line-height: 1.35; }
/* "Mehr erfahren…" links at the end of a paragraph stay on one line */
.more-link { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--bg); color: var(--text); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.container { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- Header */

.site-header { position: sticky; top: 0; z-index: 100; }
/* The blur sits on a pseudo-element: backdrop-filter on .nav itself would make
   .nav the containing block of the fixed mobile menu and collapse it to 56px. */
.nav {
  position: relative; isolation: isolate;
  z-index: 2; /* above the product sub-navigation, whose backdrop-filter opens its own layer */
  height: var(--nav-h);
  display: flex; align-items: center; padding: 0 max(16px, env(safe-area-inset-left));
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--nav-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 var(--nav-line);
}
.nav-open { overflow: hidden; }
.nav-open .nav::before { background: var(--dark); box-shadow: none; }
.nav-logo { display: flex; align-items: center; height: 100%; margin-right: auto; }
.nav-logo img { height: 50px; width: auto; display: block; }
.nav a { color: #e8e8ed; }
.nav a:hover { color: #fff; text-decoration: none; }
/* WebKit's UA stylesheet gives buttons align-items: flex-start, which would
   shrink the width-less bars to 0px on iOS/Safari: stretch them explicitly. */
.nav-toggle { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; background: none; border: 0; border-radius: 0; padding: 12px 10px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: #e8e8ed; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
  position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; background: var(--dark);
  overflow-y: auto; padding: 8px 24px 40px; display: none;
}
.nav-open .nav-menu { display: block; }
.nav-items { list-style: none; margin: 0; padding: 0; }
.nav-items > li > a { display: block; padding: 12px 0; font-size: 22px; font-weight: 600; border-bottom: 1px solid #2d2d30; }
.nav-items a.active { color: #fff; }
/* Burger menu: one app per line on phones so names never wrap; two columns
   only where both columns have room for the longest name. */
.apps-menu { display: grid; grid-template-columns: 1fr; gap: 4px 12px; padding: 10px 0 14px; }
@media (min-width: 520px) { .apps-menu { grid-template-columns: 1fr 1fr; } }
.apps-menu a { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; min-width: 0; }
.apps-menu img { width: 32px; height: 32px; flex: none; }
.apps-menu-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.apps-menu-text > span, .apps-menu-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apps-menu-text > span { font-weight: 600; }
.apps-menu-text small { font-size: 10px; color: #a1a1a6; margin-top: 1px; }
.nav-lang { display: flex; gap: 8px; margin-top: 20px; }
.nav-lang a { text-transform: uppercase; font-size: 13px; padding: 4px 10px; border: 1px solid #424245; border-radius: 20px; }
.nav-lang a.active { background: #e8e8ed; color: var(--dark); }

@media (min-width: 768px) {
  .nav { justify-content: center; }
  .nav-toggle { display: none; }
  .nav-logo { position: absolute; left: max(20px, env(safe-area-inset-left)); }
  .nav-menu { position: static; display: flex !important; align-items: center; background: none; padding: 0; overflow: visible; }
  .nav-items { display: flex; gap: 6px; }
  .nav-items > li { position: relative; }
  .nav-items > li > a { padding: 0 14px; line-height: var(--nav-h); font-size: 14px; font-weight: 400; border: 0; opacity: .85; }
  .nav-items > li > a:hover, .nav-items > li > a.active { opacity: 1; }
  .nav-items > li > a.active { font-weight: 600; }
  .apps-menu {
    position: absolute; top: var(--nav-h); left: -12px; min-width: 250px; display: none; grid-template-columns: 1fr;
    /* Same material as the top bar: translucent dark glass with blur. */
    background: var(--nav-glass);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-radius: 0 0 var(--radius) var(--radius); padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18), 0 12px 32px rgba(0, 0, 0, .22);
  }
  .apps-menu a { color: #e8e8ed; padding: 6px 10px; border-radius: 9px; }
  .apps-menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .apps-menu-text small { color: #a1a1a6; }
  .nav-apps:hover .apps-menu, .nav-apps:focus-within .apps-menu { display: grid; }
  /* Animated opening: the panel unfolds downward from the nav bar and the
     entries fade in one after the other (--i is set per entry in the template). */
  @media (prefers-reduced-motion: no-preference) {
    .apps-menu {
      display: grid; visibility: hidden; opacity: 0; pointer-events: none;
      clip-path: inset(0 -60px 100% -60px);
      transition: clip-path .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, visibility 0s linear .28s;
    }
    .nav-apps:hover .apps-menu, .nav-apps:focus-within .apps-menu {
      visibility: visible; opacity: 1; pointer-events: auto;
      clip-path: inset(0 -60px -60px -60px);
      transition: clip-path .32s cubic-bezier(.2, .8, .2, 1), opacity .15s ease, visibility 0s;
    }
    .apps-menu a { opacity: 0; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease, background-color .15s; }
    .nav-apps:hover .apps-menu a, .nav-apps:focus-within .apps-menu a {
      opacity: 1; transform: none;
      transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1), background-color .15s;
      transition-delay: calc(60ms + var(--i, 0) * 30ms), calc(60ms + var(--i, 0) * 30ms), 0s;
    }
  }
  .nav-lang { position: absolute; right: max(20px, env(safe-area-inset-right)); margin: 0; }
  .nav-lang a { border: 0; padding: 4px 6px; opacity: .7; }
  .nav-lang a.active { background: none; color: #fff; opacity: 1; font-weight: 600; }
}

/* Product sub navigation */
.subnav { background: var(--subnav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--subnav-line); }
.subnav-inner { max-width: var(--content); margin: 0 auto; height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter); }
.subnav-product { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.subnav-product img { width: 28px; height: 28px; flex-shrink: 0; }
.subnav-product span { overflow: hidden; text-overflow: ellipsis; }
/* min-width: 0 lets the menu shrink and scroll instead of pushing into the title. */
.subnav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 18px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li a { font-size: 13px; color: var(--text); white-space: nowrap; opacity: .8; }
.subnav li a.active { opacity: 1; font-weight: 600; }
/* Hover: no underline; the link turns the product colour (color: in
   product.md). The colours are light pastels, so light mode darkens them
   for contrast; dark mode and theme: dark pages use them unchanged. */
.subnav li a:hover, .subnav-product:hover { text-decoration: none; opacity: 1; color: var(--app-hover, var(--text)); }
.subnav.app-color { --app-hover: color-mix(in srgb, var(--app) 55%, #000); }
.theme-dark .subnav.app-color { --app-hover: var(--app); }
@media (prefers-color-scheme: dark) { .subnav.app-color { --app-hover: var(--app); } }
.subnav-buy { background: var(--blue); color: #fff !important; border-radius: 20px; padding: 4px 13px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.subnav-buy:hover { text-decoration: none; background: color-mix(in srgb, var(--blue) 84%, #fff); }
/* Fade the edge(s) of the menu while more entries are hidden there (set by site.js). */
.subnav ul.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.subnav ul.more-left { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px); mask-image: linear-gradient(to right, transparent, #000 36px); }
.subnav ul.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
/* Two rows: title + buy button on top, the menu below. The menu itself wraps onto
   further lines instead of scrolling sideways. Used on phones, and as .wrapped
   (set by syniumLayout.subnav in _layout.html) whenever the menu does not fit
   next to the title (long titles, many pages). The two blocks must match. */
@media (max-width: 767px) {
  .subnav-inner { flex-wrap: wrap; height: auto; padding: 8px var(--gutter); row-gap: 6px; }
  .subnav-product { flex-shrink: 1; min-width: 0; }
  .subnav ul { order: 3; flex-basis: 100%; margin: 0; padding-bottom: 2px; flex-wrap: wrap; row-gap: 6px; column-gap: 16px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .subnav-buy { margin-left: auto; }
}
.subnav.wrapped .subnav-inner { flex-wrap: wrap; height: auto; padding: 8px var(--gutter); row-gap: 6px; }
.subnav.wrapped .subnav-product { flex-shrink: 1; min-width: 0; }
.subnav.wrapped ul { order: 3; flex-basis: 100%; margin: 0; padding-bottom: 2px; flex-wrap: wrap; row-gap: 6px; column-gap: 16px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.subnav.wrapped .subnav-buy { margin-left: auto; }

/* ---------------------------------------------------------------- Start page */

.hero { position: relative; overflow: hidden; background: #3c4fc6; color: #fff; }
.hero-bg img { display: block; width: 100%; object-fit: cover; }
.hero-text { position: relative; padding: 24px 20px 36px; text-align: center; }
.hero-badge { font-size: 22px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 12px; }
.hero-badge .apple { width: 22px; height: 26px; }
.hero-title img { width: 100%; max-width: 620px; height: auto; display: block; margin: 0 auto 10px; }
.hero-line1 { font-size: 21px; font-weight: 700; margin: 0 0 4px; }
.hero-line2 { margin: 0; opacity: .95; }
.hero-link { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 767px) {
  .hero-bg img { height: 64vw; object-position: 50% 30%; }
  .hero-text { margin-top: -6vw; }
}
@media (min-width: 768px) {
  .hero { height: clamp(320px, 30vw, 520px); }
  .hero-bg img { position: absolute; inset: 0; height: 100%; object-position: right center; }
  .hero-text { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: min(58%, 720px); padding: 0 4vw; }
}

.banner { position: relative; overflow: hidden; color: #fff; background: var(--dark); min-height: 420px; display: flex; align-items: center; }
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Hintergrund beim Überfahren leicht vergrößern (nur mit Maus, nicht bei „Bewegung reduzieren“) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .banner-bg { transition: transform .8s cubic-bezier(.2,.7,.2,1); will-change: transform; }
  .banner:hover .banner-bg, .banner:focus-within .banner-bg { transform: scale(1.06); }
  /* Titel (Logo) etwas dezenter mitvergrößern */
  .banner .banner-title { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .banner:hover .banner-title, .banner:focus-within .banner-title { transform: scale(1.04); }
}
.banner-graphic { display: none; }
.banner-text { position: relative; z-index: 1; width: 100%; max-width: 600px; margin: 0 auto; padding: 48px 24px; text-align: center; }
/* Banner title: the product's app icon (icons/<id>, with one shared shadow)
   next to its lettering (home/<id>-wordmark). The lettering images keep the
   full height of the former combined logos, so --title-h sizes both.
   The (square) icon gets an explicit width and height from --title-h, never
   its intrinsic size: Safari lays out a not yet loaded icon at its 160 px
   width/height attributes and keeps that stale size after it loads, until
   something else forces a relayout. */
.banner-title { position: relative; --title-h: clamp(64px, 9vw, 104px); display: flex; align-items: center; justify-content: center; gap: calc(var(--title-h) * .14); height: var(--title-h); max-width: 100%; margin: 0 auto 14px; }
.banner-icon { flex: none; --icon-h: calc(var(--title-h) * .7); width: var(--icon-h); height: var(--icon-h); min-width: 0; max-width: none; border-radius: 0; filter: drop-shadow(0 calc(var(--title-h) * .04) calc(var(--title-h) * .06) rgba(0,0,0,.35)); }
/* Phones: the front-page graphic is hidden, so the icon gets more room. */
@media (max-width: 767px) {
  .banner .banner-title { --title-h: clamp(64px, 20vw, 80px); }
  .banner .banner-icon { --icon-h: calc(var(--title-h) * .9); }
}
/* Light sweep over an app icon (added by site.js every few seconds). */
.icon-shine { position: absolute; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.3) 50%, transparent 62%) no-repeat; background-size: 250% 100%; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; mix-blend-mode: screen; }
/* The text block stays invisible until syniumLayout.fitTitles (_layout.html)
   has sized the title and added .fit. Safari pauses the parser before the
   first inline script of a not yet painted page and paints what it has, so
   without this the header would first show at its CSS size and then jump
   (layout shift). Becoming visible is not a layout shift. If an inline call
   is missing or fails, site.js adds .fit once the page is parsed; if site.js
   fails too, the head script removes .js after 4 s and the text shows anyway. */
.js .banner-text:not(.fit), .js .product-hero-text:not(.fit) { visibility: hidden; }
.banner-wordmark { display: block; height: var(--title-h); width: auto; min-width: 0; max-width: 100%; object-fit: contain; object-position: left center; }
.banner-tagline { font-size: 21px; font-weight: 700; margin: 0 0 8px; }
/* Product header: the price is halfway between the app colour and white. */
.banner-meta { color: color-mix(in srgb, var(--accent) 50%, #fff); font-size: 19px; font-weight: 700; margin: 0 0 14px; }
.banner-meta s { opacity: .7; font-weight: 400; }
.banner-meta .version-link, .banner-meta .version-link:hover { color: inherit; text-decoration: none; }
.banner-meta .version-link { position: relative; z-index: 1; transition: opacity .15s; }
.banner-meta .version-link:hover { opacity: .75; }
/* Platforms and version: a smaller line in the app colour below the price. It is
   its own block with the same gap above it as below the tagline, so tagline,
   price and platforms are evenly spaced. */
.banner-meta .hero-version { display: block; margin-top: 8px; font-size: .74em; font-weight: 600; color: var(--accent); }
.banner-meta br { display: none; }
.banner-meta .price-sep { opacity: .6; }
/* Tighter leading than body text (1.55), so tagline, price and version read as one block. */
.banner-tagline, .banner-meta { line-height: 1.3; }
.banner-desc { margin: 0 0 18px; }
/* Front page banners and product headers: a soft shadow keeps the text readable on bright backgrounds. */
.banner .banner-tagline, .banner .banner-meta, .banner .banner-desc,
.product-hero .banner-tagline, .product-hero .banner-meta { text-shadow: 0 1px 2px rgba(0,0,0,.25), 0 2px 10px rgba(0,0,0,.2); }
/* Whole banner is clickable: a cover link lies over the entire section,
   above background, graphic and text. It is also the keyboard and
   screen-reader target; focusing it outlines the whole banner. */
.banner-cover { position: absolute; inset: 0; z-index: 2; }
.banner-cover:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (min-width: 768px) {
  /* Height stops growing at about 1200 px window width (456 px), so wide windows
     don't blow the banner up; the graphic shrinks to fit and stays top right. */
  .banner { height: clamp(446px, 38vw, 460px); padding-left: 4vw; }
  /* The graphic is a flex item sized by the banner height (its width follows the
     image's proportions), flush in the top-right corner. The text takes the space
     left of it and is centred there: on wide windows it sits midway between the
     left edge and the graphic, on narrower ones it simply fills that space. */
  .banner-graphic { display: block; position: relative; flex: 0 0 auto; align-self: flex-start; height: 100%; width: auto; max-width: 55%; object-fit: contain; object-position: right top; z-index: 1; }
  .banner-text { order: -1; flex: 0 1 580px; min-width: 0; max-width: none; margin: 0 auto; }
  /* The banner height is fixed here, so the text scales with the window width
     to keep fitting at middle widths. Full size is kept down to about 1150 px. */
  .banner-text { padding-top: clamp(24px, 4.17vw, 48px); padding-bottom: clamp(24px, 4.17vw, 48px); }
  .banner-title { --title-h: clamp(52px, 9.04vw, 104px); margin-bottom: clamp(8px, 1.22vw, 14px); }
  .banner-tagline { font-size: clamp(17px, 1.83vw, 21px); margin-bottom: clamp(4px, .7vw, 8px); }
  .banner-meta { font-size: clamp(16px, 1.65vw, 19px); margin-bottom: clamp(8px, 1.22vw, 14px); }
  .banner-meta .hero-version { margin-top: clamp(4px, .7vw, 8px); }
  .banner-desc { font-size: clamp(14px, 1.48vw, 17px); line-height: 1.45; margin-bottom: clamp(10px, 1.57vw, 18px); }
}
@media (min-width: 768px) and (max-width: 991px) {
  .banner-graphic { max-width: 50%; }
}
/* Front-page graphics slide in from the right once their image has loaded and
   the banner is on screen (site.js adds .is-in). Only with JavaScript, only
   when the visitor allows motion; the banner's overflow:hidden clips the slide. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .js .banner .banner-graphic { opacity: 0; transform: translateX(12%); transition: opacity .8s ease-out, transform 1.1s cubic-bezier(.16, .84, .3, 1); will-change: transform, opacity; }
  .js .banner.is-in .banner-graphic { opacity: 1; transform: none; }
}

.home-news { padding: 56px 0; background: var(--bg-alt); }
.home-news h2 { margin-top: 0; }

.about { position: relative; overflow: hidden; color: #fff; background: #e47f40; }
.about-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-inner { position: relative; max-width: 1500px; margin: 0 auto; padding: 56px 24px; display: grid; gap: 32px; align-items: center; }
.about-graphic img { display: block; max-width: 360px; width: 80%; margin: 0 auto; }
.about-text { font-size: 18px; }
.about-text h2 { margin-top: 0; }
@media (min-width: 992px) {
  .about-inner { grid-template-columns: 1fr 2.4fr; padding: 72px 5vw; }
  .about-graphic img { width: 100%; max-width: 480px; }
}

/* ---------------------------------------------------------------- Product pages */

.product-hero { position: relative; overflow: hidden; color: #fff; background: var(--dark);
  /* Left edge of the page text (.content): its centred column plus the page gutter. */
  --edge: max(var(--gutter), calc((100% - var(--content)) / 2 + var(--gutter))); }
.product-hero-inner { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 40px 24px 24px; display: grid; gap: 16px; align-items: center; }
.product-hero-text { text-align: center; }
/* The graphic is only shown when it fits beside the text; narrower windows hide it. */
.product-hero-media { display: none; }
.product-hero .buttons { justify-content: center; align-items: center; }
@media (min-width: 900px) {
  .product-hero-media { display: block; }
  .product-hero-inner { grid-template-columns: 1fr 1fr; max-width: none; padding: 40px var(--edge); min-height: clamp(380px, 34vw, 460px); }
  .product-hero-text { text-align: left; }
  .product-hero .banner-title { justify-content: flex-start; margin-left: 0; }
  .product-hero .buttons { justify-content: flex-start; }
  /* Graphic sits flush in the top-right corner, scaled to fit without cropping. */
  .product-hero-inner { position: static; }
  .product-hero-text { position: relative; z-index: 2; }
  .product-hero-media { position: absolute; top: 0; right: 0; width: 50%; height: 100%; z-index: 1; }
  .product-hero-media img { width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: right top; }
}

/* ---------------------------------------------------------------- Content */

.content { --content-pb: 64px; max-width: var(--content); margin: 0 auto; padding: 24px var(--gutter) var(--content-pb); }
.content > :first-child { margin-top: .4em; }
.content img { border-radius: 10px; }
/* Older app icons with built-in padding (config/icons.conf): enlarged via an inline "scale"
   (composes with hover transforms); no rounded clip, so shadow and decorations may overhang. */
img.icon-inset { border-radius: 0; }
.content .image { margin: 1.6em 0; text-align: center; }
/* News posts: pictures that stand alone on their line (optionally linked) are centred. */
.news-article p:has(> img:only-child, > picture:only-child, > a:only-child > img:only-child, > a:only-child > picture:only-child) { text-align: center; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.button { display: inline-block; background: var(--blue); color: #fff; border-radius: 980px; padding: 10px 22px; font-size: 16px; font-weight: 500; }
.button:hover { text-decoration: none; background: #0077ed; }
.button-light { background: rgba(255,255,255,.92); color: #1d1d1f; }
.button-light:hover { background: #fff; }
.content .button-light { background: var(--button-light); color: var(--text); }
/* Buy buttons: one hover for all of them – the button's own colour mixed
   with a bit of white (blue gets brighter, black turns dark grey). */
.button-buy { background: var(--button-buy); }
.button-buy:hover { background: color-mix(in srgb, var(--button-buy) 84%, #fff); }
.product-hero .button-buy { --button-buy: var(--blue); }

/* full width bands inside content: ::: section */
.band { position: relative; overflow: hidden; margin: 48px calc(50% - 50vw); padding: 56px 0; background: var(--bg-alt); }
/* Phones: tighter spacing between and inside sections */
@media (max-width: 767px) { .band { margin-top: 24px; margin-bottom: 24px; padding: 36px 0; } }
.band-inner { position: relative; z-index: 1; max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.band-dark { background: var(--dark); color: #f5f5f7; }
.band-dark a:not(:where(.button)) { color: #2997ff; }
.band-white { background: var(--bg); }
/* ::: section color=<light color> – the color is used in light mode only */
.band-light { background: var(--band-color); }
.band-light.band-white { background: var(--band-color); }
@media (prefers-color-scheme: dark) {
  .band-light, .band-light.band-white { background: var(--bg-alt); }
}
.theme-dark .band-light, .theme-dark .band-light.band-white { background: var(--bg-alt); }
/* ::: section separator=… – colored line across the top edge */
.band-sep::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--sep-h, 6px); background: var(--sep); z-index: 2; }
.band > .band-inner > :first-child { margin-top: 0; }
.band > .band-inner > :last-child { margin-bottom: 0; }
/* A full-width section at the very end of a page sits directly on the footer.
   The negative margin swallows the content's bottom padding without relying on :has(). */
.content > .band:last-child { margin-bottom: calc(-1 * var(--content-pb)); }

.cols { display: grid; gap: 28px; margin: 1.5em 0; }
@media (min-width: 768px) {
  .cols { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}
.col > :first-child { margin-top: 0; }
.col { min-width: 0; }
.col img { display: block; margin-left: auto; margin-right: auto; }
/* A paragraph holding only an image (or its dark-mode <picture>) is centred
   in its column, so stacked images sit in the middle on phones. */
.col p:has(> img:only-child), .col p:has(> picture:only-child) { text-align: center; }
.col p > picture:only-child { display: block; }

.feature { display: grid; gap: 24px; align-items: center; margin: 56px 0; }
.feature-text > :first-child { margin-top: 0; }
.feature-media img { display: block; margin: 0 auto; }
@media (min-width: 768px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 48px; }
  .feature-left .feature-text { order: 2; }
}

/* Gallery tiles keep each image's own aspect ratio (the <img> carries
   width/height, so the browser reserves the right space before loading).
   Nothing is ever cropped; mixed formats line up at the top of each row. */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile, 280px)), 1fr)); gap: 16px; margin: 1.5em 0; align-items: start; }
.gallery figure { margin: 0; }
.gallery a { display: block; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 10px; }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
/* Set by site.js once it knows the column count (--cols): same tile widths
   as the grid, but an incomplete last row is centred. */
.gallery.gallery-flow { display: flex; flex-wrap: wrap; justify-content: center; }
.gallery-flow > figure { flex: 0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols)); min-width: 0; }
/* Hover: enlarge the thumbnail slightly above its neighbours, as on the old site. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery figure { position: relative; }
  .gallery figure:is(:hover, :focus-within) { z-index: 2; }
  .gallery a img { transition: transform .25s ease-in-out; }
  .gallery a:is(:hover, :focus-visible) img { transform: scale(1.05); }
}
/* Row mode (`::: gallery rows`): justified rows of equal height. Each figure
   gets an inline flex-basis of ratio × --row and a flex-grow proportional to
   its ratio, so stretched rows keep equal heights. The ::after spacer absorbs
   the free space in the last row so it isn't blown up. */
.gallery.gallery-rows { --row: var(--row-base, 200px); display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-rows figure { min-width: 0; max-width: 100%; }
.gallery-rows img { border-radius: 8px; }
.gallery-rows::after { content: ""; flex: 100000 1 0; }
/* Fit mode (`::: gallery fit`): each run of same-shaped images fills one
   full-width row; flex-grow = aspect ratio keeps the heights equal. */
/* align-items: stretch overrides the base .gallery rule's `start`: in a column
   flexbox that would size each row to its content, which depends on whether
   the images have loaded yet (random widths after a reload). */
.gallery.gallery-fit { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.gallery-fit .gallery-row { display: flex; gap: 12px; align-items: flex-start; }
.gallery-fit figure { min-width: 0; }
@media (max-width: 767px) {
  .gallery.gallery-fit, .gallery-fit .gallery-row { gap: 8px; }
  .gallery-fit .gallery-row[data-n="4"] { flex-wrap: wrap; }
  .gallery-fit .gallery-row[data-n="4"] figure { flex: 0 0 calc(50% - 4px) !important; }
  /* Rows of 5–8 wrap three per row, centred (5 → 3 + 2). */
  .gallery-fit .gallery-row:is([data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) { flex-wrap: wrap; justify-content: center; }
  .gallery-fit .gallery-row:is([data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) figure { flex: 0 0 calc((100% - 16px) / 3) !important; }
}
@media (max-width: 767px) { .gallery.gallery-rows { --row: min(var(--row-base, 200px), 100px); gap: 6px; } }
/* Framed (`::: gallery framed` or frame=<colour>): a thin frame with rounded
   corners and a faint diagonal gradient in the product colour (--accent on
   product pages). Much lighter than the old site's heavy borders; the
   transparent screenshots and their shadows sit directly on the tint. */
.gallery.gallery-framed {
  --frame-c: var(--frame, var(--accent, var(--line)));
  --frame-line-a: 45%; --frame-line-b: 18%;
  position: relative;
  padding: clamp(12px, 3vw, 28px);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--frame-c) 28%, transparent),
    color-mix(in srgb, var(--frame-c) 9%, transparent));
}
/* The 1px line is a masked pseudo-element so it can carry its own gradient
   (same direction as the fill) without bleeding through the translucent fill. */
.gallery.gallery-framed::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--frame-c) var(--frame-line-a), transparent),
    color-mix(in srgb, var(--frame-c) var(--frame-line-b), transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (prefers-color-scheme: dark) {
  .gallery.gallery-framed {
    --frame-line-a: 36%; --frame-line-b: 14%;
    background: linear-gradient(135deg,
      color-mix(in srgb, var(--frame-c) 22%, transparent),
      color-mix(in srgb, var(--frame-c) 7%, transparent));
  }
}

.video { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
/* color-scheme: light on the iframe: the page is "light dark", so in dark mode
   the iframe would otherwise inherit "dark". The YouTube document declares no
   color scheme (= light), and on such a mismatch browsers paint an opaque
   white backdrop behind the frame until the player has loaded – the white
   flash. With matching schemes the frame stays transparent and the .video
   background shows through while loading. That background is --bg-alt
   rather than black, so the placeholder fits the theme in both modes
   (black flashed in light mode). */
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; color-scheme: light; }

.versionhistory section { border-bottom: 1px solid var(--line); padding: 4px 0 12px; }
.versionhistory h3 { margin: 1em 0 .4em; font-size: 19px; }
.versionhistory small { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 8px; }
/* Empty entry in the release notes: spacing between groups of points. */
.versionhistory li.versionhistory-gap { list-style: none; height: .8em; margin: 0; }
/* First point of each group (only in versions with gaps): a small headline. */
.versionhistory li.versionhistory-head { list-style: none; font-weight: 600; }
/* In grouped lists the bullets are drawn here instead of by the browser, so
   their x position is known exactly and the headlines start right at the dots
   (the native marker's offset differs between browsers and fonts). */
.versionhistory ul:has(> .versionhistory-head) > li { list-style: none; position: relative; }
.versionhistory ul:has(> .versionhistory-head) > li:not(.versionhistory-head, .versionhistory-gap)::before { content: "•"; position: absolute; left: -1.1em; }
.versionhistory ul:has(> .versionhistory-head) > li.versionhistory-head { margin-left: -1.1em; }
.versionhistory li p { margin: .3em 0 .3em 15px; }

.downloads { display: grid; gap: 12px; margin: 1.5em 0; }
.download-item { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-alt); }
.download-icon { width: 56px; height: 56px; border-radius: 0 !important; }
.download-info { display: flex; flex-direction: column; margin-right: auto; font-size: 15px; }
.download-info strong { font-size: 17px; }

/* News overview: grey page so the white (light) / lighter grey (dark) cards stand out */
body.page-news { background: #f0f0f3; }
@media (prefers-color-scheme: dark) {
  body.page-news { background: #252527; --surface: #333336; --surface-hover: #404043; }
}
.page-news .content > h1 { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.news-rss { display: inline-flex; flex: none; margin-left: auto; margin-right: -6px; padding: 6px; border-radius: 8px; color: #f26522; opacity: .85; transition: opacity .2s, background-color .2s; }
.news-rss:hover, .news-rss:focus-visible { opacity: 1; background: rgba(242, 101, 34, .12); text-decoration: none; }
.news-rss svg { width: .55em; height: .55em; fill: currentColor; }
.news-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 1.5em 0; }
.news-card { display: flex; flex-direction: column; gap: 6px; padding: 0 0 18px; background: var(--surface); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: 0 2px 14px var(--shadow); }
.news-card:hover { text-decoration: none; box-shadow: 0 6px 24px var(--shadow-strong); }
/* Teaser picture: first image of the news, cropped to 16:9 */
.news-image { display: block; aspect-ratio: 16 / 9; margin-bottom: 8px; overflow: hidden; background: var(--bg-alt); }
.news-image:empty { aspect-ratio: auto; height: 6px; margin-bottom: 12px; background: linear-gradient(90deg, #2b7bd6, #6fc3ff); }
.news-image img, .news-image picture { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .news-card:hover .news-image img, .news-card:focus-visible .news-image img { transform: scale(1.04); }
}
.news-card > span:not(.news-image), .news-card > strong { padding: 0 18px; }
.news-card > :first-child:not(.news-image) { margin-top: 18px; }
.news-date { font-size: 13px; color: var(--muted); }
.news-summary { font-size: 15px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; }

.notfound { text-align: center; padding: clamp(56px, 9vw, 96px) 20px 80px; }
.notfound-icon { display: block; width: clamp(112px, 15vw, 150px); height: auto; margin: 0 auto 28px; }
.notfound .buttons { justify-content: center; }
.notfound-apps { max-width: 760px; margin: 48px auto 0; }
@media (prefers-reduced-motion: no-preference) {
  .notfound-icon { animation: confirm-in .6s cubic-bezier(.2, .8, .2, 1.15) both; }
}
.spacer { height: 40px; }
.missing-key { background: var(--missing-bg); color: var(--missing-text); border-radius: 4px; padding: 0 3px; font-family: ui-monospace, monospace; font-size: .85em; }

/* Lightbox: fades in/out (250 ms, see FADE in site.js), prev/next buttons */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 20px 76px; opacity: 0; transition: opacity .25s ease; -webkit-tap-highlight-color: transparent; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; transform: scale(.96); transition: transform .25s ease; }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); border-radius: 6px; transition: opacity .2s ease; }
.lightbox img.lb-loading { opacity: 0; }
/* macOS-style progress indicator: 12 bars, stepped fade. Shown after a short
   delay so cached images don't flash it. Bars are added in site.js. */
.lightbox .lb-spinner { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.lightbox.is-loading .lb-spinner { opacity: 1; transition-delay: .2s; }
.lightbox .lb-spinner i { position: absolute; left: 16.5px; top: 0; width: 3px; height: 10px; border-radius: 1.5px; background: #fff; transform-origin: 1.5px 18px; animation: lb-spin 1s steps(12, end) infinite paused; }
.lightbox.is-loading .lb-spinner i { animation-play-state: running; }
@keyframes lb-spin { from { opacity: 1; } to { opacity: .15; } }
.lightbox figcaption { display: flex; gap: 16px; align-items: baseline; justify-content: center; margin-top: 12px; color: #f5f5f7; font-size: 15px; text-align: center; transition: opacity .2s ease; }
.lightbox.is-loading figcaption { opacity: 0; }
.lightbox figcaption p { margin: 0; }
.lightbox .lb-count { color: rgba(255,255,255,.55); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox button { position: absolute; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,.3); }
.lightbox button[hidden] { display: none; }
.lightbox .lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; margin-top: -22px; }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }
.lightbox svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html.lightbox-open { overflow: hidden; }
@media (max-width: 767px) {
  .lightbox { padding: 56px 12px 76px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); margin-top: 0; }
  .lightbox .lb-prev { left: calc(50% - 56px); }
  .lightbox .lb-next { right: calc(50% - 56px); }
  .lightbox img { max-height: calc(100vh - 170px); }
}

/* ---------------------------------------------------------------- Footer */

.site-footer { background: var(--bg-alt); color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.footer-inner { max-width: calc(1060px + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) max(24px, env(safe-area-inset-bottom)); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.site-footer h2 { font-size: 13px; color: var(--text); margin: 0 0 8px; font-family: var(--font); letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-products a { display: inline-flex; align-items: center; gap: 7px; }
.footer-products img { width: 16px; height: 16px; flex: none; border-radius: 3px; }
/* Single-colour line icons (Synium / Support columns); follow --text, so black in light and white in dark mode. */
.footer-icons a { display: inline-flex; align-items: center; gap: 7px; }
.footer-icons .ficon { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.footer-lang { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px -8px; }
/* Hover box as in the manual menus; the footer already sits on --bg-alt, so the box is a slightly darker mix (as for .badge). The negative margin keeps the text aligned with the footer edges. */
.footer-lang a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; }
.footer-lang a:hover, .footer-lang a:focus-visible { text-decoration: none; background: color-mix(in srgb, var(--bg-alt), var(--text) 7%); }
.footer-lang img.flag { margin: 0; }
.footer-lang a.active { color: var(--text); font-weight: 600; }

.edit-fab { position: fixed; right: 16px; bottom: 16px; z-index: 300; background: #1d1d1f; color: #fff; padding: 10px 16px; border-radius: 22px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.12); }
.edit-fab:hover { text-decoration: none; background: #000; }

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

/* ---- Bausteine aus dem WordPress-Import ---- */
.center { text-align: center; }
.center .buttons, .confirm .buttons { justify-content: center; }
.float-right { float: right; margin: 0 0 16px 32px; max-width: 40%; }
.band-inner::after, .content::after { content: ""; display: table; clear: both; }
@media (max-width: 575px) { .float-right { float: none; display: block; margin: 0 auto 16px; max-width: 60%; } }
/* ::: awards – award badges stacked on the right of the text (teal laurels, black text; .dark.png in dark mode: laurels in the MacFamilyTree app colour #80ecff, text white). */
div.awards { float: right; width: 240px; max-width: 40%; margin: 0 0 16px 32px; }
div.awards p { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
div.awards picture { display: block; width: 100%; }
div.awards img { display: block; width: 100%; height: auto; border-radius: 0; }
@media (max-width: 575px) {
  div.awards { float: none; width: auto; max-width: none; margin: 0 0 24px; }
  div.awards p { flex-direction: row; justify-content: center; gap: 16px; }
  div.awards picture, div.awards img { width: min(170px, 44vw); }
}

/* "What's new" pages: underlined headings, screenshot floated right beside the list (as on the old site). */
.whatsnew h3 { clear: both; font-size: 32px; line-height: 1.2; margin: 64px 0 16px; padding-bottom: 8px; border-bottom: 1px solid #2a9d9a; }
.whatsnew ul { padding-left: 24px; }
/* MacFamilyTree buy page: "Buying Guide" headline closer to the cards above, more room below. */
.band.howtobuy-guide { margin-top: -40px; padding-top: 0; }
.howtobuy-guide .band-inner > .center:first-child h2 { margin-bottom: 48px; }
/* Company page: text right under the two award photos, not a full section gap. */
.band.company-text { margin-top: 0; padding-top: 8px; }
@media (max-width: 767px) {
  .band.howtobuy-guide { margin-top: -8px; }
  .howtobuy-guide .band-inner > .center:first-child h2 { margin-bottom: 32px; }
}
/* Feature list with small icons in two columns (e.g. Logoist "Core Features"). */
.icon-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin: 24px 0 40px; }
.icon-feature { display: flex; align-items: flex-start; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.icon-feature img { flex: 0 0 32px; width: 32px; height: 32px; max-width: none; margin-top: 2px; }
.icon-feature p { margin: 0; }
@media (max-width: 767px) {
  .icon-features { grid-template-columns: 1fr; }
}
.whatsnew li { margin-bottom: 6px; }
.whatsnew-image { float: right; clear: right; height: auto; max-width: min(450px, 45%); margin: 4px 0 40px 32px; }
/* Optional large picture below the list, full column width and centred. */
.whatsnew p:has(.whatsnew-large) { clear: both; margin: 32px 0 0; text-align: center; }
.whatsnew-large { display: block; clear: both; width: 100%; max-width: 900px; height: auto; margin: 0 auto; border-radius: 24px; }
/* Logoist: centred headings with the yellow-to-orange underline of the old site. */
.whatsnew-logoist h3 { text-align: center; border-bottom: 1px solid #ff9900; border-image: linear-gradient(90deg, #ffff1e, #ff6400) 1; margin-top: 88px; }
.whatsnew-ifinance h3 { border-bottom: 1px solid #e0408a; border-image: linear-gradient(90deg, #ff5fa2, #8a4dff) 1; }
@media (max-width: 575px) {
  .whatsnew h3 { font-size: 24px; margin-top: 48px; }
  .whatsnew-image { float: none; display: block; max-width: 100%; margin: 0 auto 20px; }
  .whatsnew-large { border-radius: 14px; }
  .whatsnew p:has(.whatsnew-large) { margin-top: 20px; }
}
img.flag { display: inline-block; vertical-align: middle; margin: 2px 4px; border-radius: 3px; }
.flags { margin: 0 0 1em; }
.flag-item { display: inline-flex; flex-direction: column; align-items: center; vertical-align: top; margin: 8px 6px 14px; }
.flag-item img.flag { margin: 0 0 4px; }
.flag-label { font-size: 0.85em; line-height: 1.2; white-space: nowrap; }
.image-legend .legend-wrap { position: relative; display: inline-block; max-width: 100%; }
.image-legend .legend { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.badge { text-align: center; margin: 34px 0 70px; }
.badge a { display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 12px; background: var(--bg-alt); border-radius: 20px; color: var(--text); transition: background-color .2s ease; }
.badge a:hover, .badge a:focus-visible { text-decoration: none; background: color-mix(in srgb, var(--bg-alt), var(--text) 7%); }
.badge img { width: 48px; height: 48px; border-radius: 11px; }
.reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 1.5em 0; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-size: 15px; }
.review::before { content: "★★★★★"; display: block; color: #f5a623; letter-spacing: 2px; margin-bottom: 8px; }
.review > :last-child { margin-bottom: 0; color: var(--muted); }

/* Support, FAQ, Handbücher */
.articles { margin: 2.5em 0; }
/* "All help articles about …": 14px below the last row's 14px padding, for both the FAQ and the article list */
.articles > .article-list:has(+ .more) { margin-bottom: 0; }
.articles > .more { margin: 14px 0 0; }
.faq { padding: 14px 0; }
.faq + .faq { border-top: 1px solid var(--line); } /* dividers only between questions, like .article-list */
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-left: 1.4em; } /* "+" hangs in the indent so wrapped lines align with the text */
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; position: absolute; left: 0; color: var(--link); }
.faq[open] summary::before { content: "–"; }
.faq-answer { padding: 10px 0 0 1.4em; }
.faq-products { display: block; margin: 2px 0 0; font-weight: 400; } /* app names under a question (newest FAQs) */
/* Article list: grouped rows in a rounded card, whole row clickable, chevron at the right */
.article-list { list-style: none; margin: 1em -12px; padding: 0; }
.article-list li { margin: 0; }
.article-list li + li > a::after { content: ""; position: absolute; top: 0; left: 12px; right: 12px; border-top: 1px solid var(--line); }
.article-list a { position: relative; display: flex; align-items: center; flex-wrap: wrap; column-gap: 10px; row-gap: 2px; padding: 14px 40px 14px 12px; color: var(--text); line-height: 1.35; border-radius: var(--radius); transition: background-color .15s; }
.article-list a::before { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--link); border-right: 2px solid var(--link); transform: translateY(-50%) rotate(45deg); transition: right .15s; }
.article-list a:hover { text-decoration: none; background: var(--bg-alt); }
.article-list li:hover > a::after, .article-list li:hover + li > a::after { border-color: transparent; }
.article-list a:hover::before { right: 12px; }
.article-list a:hover .article-title { color: var(--link); }
.article-list a:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; border-radius: var(--radius); }
.article-list .article-title { flex: 1 1 auto; min-width: 0; font-weight: 500; }
.article-list .muted { flex: 0 0 100%; order: 2; }
.manuals { display: grid; gap: 12px; margin: 1.5em 0; }
.manual { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-alt); border-radius: var(--radius); }
.manual-icon { width: 48px; height: 48px; }
/* Right side of a manual row: Web · PDF · More… (directives_support.go) */
.manual-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; }
.manual-online, .manual-pdf { font-size: 14px; font-weight: 500; padding: 5px 16px; border-radius: 980px; white-space: nowrap; border: 1px solid var(--blue); }
.manual-online { background: var(--blue); color: #fff; }
.manual-online:hover { text-decoration: none; background: #0077ed; border-color: #0077ed; }
.manual-pdf { color: var(--blue); }
.manual-pdf:hover { text-decoration: none; background: color-mix(in srgb, var(--blue) 10%, transparent); }
.manual-more { position: relative; }
.manual-more > summary { list-style: none; cursor: pointer; padding: 5px 6px; color: var(--muted); white-space: nowrap; user-select: none; }
.manual-more > summary::-webkit-details-marker { display: none; }
.manual-more > summary:hover, .manual-more[open] > summary { color: var(--link); }
.manual-more-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 2px; width: max-content; min-width: 130px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.14); }
.manual-more-list a { display: flex; align-items: center; padding: 5px 8px; border-radius: 8px; color: var(--text); white-space: nowrap; }
.manual-more-list a:hover { text-decoration: none; background: var(--surface-hover); }
.manual-more-list img.flag { margin: 0 8px 0 0; }

/* ---------------------------------------------------------------- Online manuals
   AsciiDoc manuals rendered by internal/adoc (manual.go, templates/site/manual.html).
   Same width as the product sub navigation, so the name lines up with it. */
.manual-layout { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
.manual-layout .manual-content { max-width: none; margin: 0; padding: 8px 0 64px; min-width: 0; }
.manual-side { padding-top: 16px; font-size: 14px; }
.manual-toc { background: var(--bg-alt); border-radius: var(--radius); padding: 10px 16px; }
.manual-toc > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.manual-toc ol { list-style: none; margin: 0; padding: 0; }
.manual-toc li { margin: 2px 0; }
.manual-toc a { display: block; padding: 4px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text); line-height: 1.35; }
.manual-toc a:hover { text-decoration: none; background: var(--surface-hover); }
.manual-toc li.active > a { color: var(--link); font-weight: 600; }
.manual-toc li ol { margin: 2px 0 6px 14px; font-size: 13px; }
.manual-toc li ol a { color: var(--muted); }
.manual-toc-title { margin: 8px 0 10px; font-weight: 600; }
.manual-toc-title a { color: var(--text); padding: 0; margin: 0; }
.manual-toc .sectnum, .manual-index-toc .sectnum { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .2em; }
.manual-pdfs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 12px 0 4px; color: var(--muted); font-size: 14px; }
.manual-pdfs a { display: inline-flex; align-items: center; margin: 0; padding: 0; }
.manual-pdfs img.flag { margin: 0 4px 0 0; }
@media (min-width: 992px) {
  .manual-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
  .manual-side { position: sticky; top: calc(var(--nav-h) + 60px); max-height: calc(100vh - var(--nav-h) - 76px); overflow-y: auto; padding: 24px 0; overscroll-behavior: contain; }
  .manual-toc { background: none; padding: 0; }
  .manual-toc > summary { display: none; }
  /* Thin divider between chapter list and text; on the content column so it runs the full page length. */
  .manual-layout .manual-content { border-left: 1px solid var(--line); padding-left: 40px; }
}
.manual-crumb { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.manual-crumb a { color: var(--muted); }
.manual-note { background: var(--bg-alt); border-radius: var(--radius); padding: 12px 16px; color: var(--muted); }
.manual-content [id] { scroll-margin-top: calc(var(--nav-h) + 72px); }
.manual-content h1 { font-size: clamp(28px, 4vw, 38px); margin: .5em 0 .6em; }
.manual-content h2 { font-size: clamp(23px, 3vw, 28px); margin: 2em 0 .6em; }
.manual-content h3 { font-size: 21px; margin: 1.8em 0 .5em; }
.manual-content h4 { font-size: 18px; margin: 1.6em 0 .4em; }
.manual-content h5, .manual-content h6 { font-size: 16px; margin: 1.4em 0 .3em; }
.manual-content h1 .sectnum, .manual-content h2 .sectnum, .manual-content h3 .sectnum { color: var(--muted); font-weight: 600; margin-right: .25em; }
.manual-content .imageblock { margin: 1.4em 0; text-align: center; }
.manual-content .imageblock.align-left { text-align: left; }
.manual-content .imageblock.align-right { text-align: right; }
.manual-content .imageblock img { border-radius: 8px; }
.manual-content img.inline-image { display: inline-block; vertical-align: middle; border-radius: 0; }
.manual-content .list-number { color: var(--link); font-size: 1.3em; line-height: 1; font-weight: 600; margin-right: .15em; vertical-align: -.08em; }
.manual-content li > p { margin: .3em 0; }
.manual-content li + li { margin-top: .35em; }
.manual-content .tableblock th { background: var(--bg-alt); }
.manual-content .tableblock td p, .manual-content .tableblock th p { margin: 0 0 .5em; }
.manual-content kbd { font: 13px/1.4 var(--font); padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }
.manual-content .footnotes { margin-top: 3em; font-size: 14px; color: var(--muted); }
.manual-content .footnotes hr { width: 120px; margin: 0 0 1em; border: 0; border-top: 1px solid var(--line); }
.admonition { --adm: #0071e3; display: flex; gap: 6px 16px; margin: 1.4em 0; padding: 14px 18px; border-radius: 12px; border-left: 4px solid var(--adm); background: color-mix(in srgb, var(--adm) 9%, var(--bg)); }
.admonition-tip { --adm: #1f9d48; }
.admonition-important, .admonition-warning { --adm: #d70015; }
.admonition-caution { --adm: #e07000; }
.admonition-label { flex: 0 0 auto; min-width: 72px; font-weight: 700; color: var(--adm); }
.admonition-body { min-width: 0; }
.admonition-body > :first-child { margin-top: 0; }
.admonition-body > :last-child { margin-bottom: 0; }
@media (prefers-color-scheme: dark) {
  .admonition { --adm: #2997ff; }
  .admonition-tip { --adm: #30d158; }
  .admonition-important, .admonition-warning { --adm: #ff453a; }
  .admonition-caution { --adm: #ff9f0a; }
}
.theme-dark .admonition { --adm: #2997ff; }
.theme-dark .admonition-tip { --adm: #30d158; }
.theme-dark .admonition-important, .theme-dark .admonition-warning { --adm: #ff453a; }
.theme-dark .admonition-caution { --adm: #ff9f0a; }
@media (max-width: 575px) { .admonition { flex-direction: column; } }
.manual-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4em; padding-top: 1.5em; border-top: 1px solid var(--line); }
.manual-pager a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; background: var(--bg-alt); color: var(--text); }
.manual-pager a:hover { text-decoration: none; background: var(--surface-hover); }
.manual-pager small { color: var(--muted); font-size: 13px; }
.manual-pager .manual-next { grid-column: 2; text-align: right; }
@media (max-width: 575px) { .manual-pager { grid-template-columns: 1fr; } .manual-pager .manual-next { grid-column: 1; } .manual-pager > span:empty { display: none; } }
.manual-head { display: flex; align-items: center; gap: 24px; margin: 24px 0 8px; }
.manual-head h1 { margin: 0; }
.manual-content img.manual-logo { width: 104px; height: auto; flex: 0 0 auto; border-radius: 0; }
.manual-name { margin: .3em 0 0; color: var(--muted); }
.manual-index-toc { list-style: none; padding: 0; margin: 1em 0 2em; columns: 2 300px; column-gap: 48px; }
.manual-index-toc > li { break-inside: avoid; margin: 0 0 20px; }
.manual-index-chapter { font-weight: 600; font-size: 17px; color: var(--text); }
.manual-index-toc ol { list-style: none; padding: 0; margin: 6px 0 0; font-size: 14px; }
.manual-index-toc ol li { margin: 3px 0; }
.manual-index-toc ol a { color: var(--muted); }
.manual-others { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.manual-others a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--bg-alt); color: var(--text); }
.manual-others a:hover { text-decoration: none; background: var(--surface-hover); }
.manual-content img.manual-other-icon { width: 32px; height: 32px; border-radius: 0; }
@media (max-width: 575px) { .manual-head { flex-direction: column; align-items: flex-start; gap: 12px; } .manual-content img.manual-logo { width: 72px; } }
.support-products { margin: 2em 0; text-align: center; }
.support-products > h2 { margin-bottom: 1.4em; }
.support-products > h1 { text-align: left; margin-bottom: 1em; }
.support-products + .support-products { margin-top: 5em; }
@media (max-width: 767px) { .support-products + .support-products { margin-top: 3.5em; } }
/* ::: supportproducts collapsed – Überschrift als Aufklapper */
.support-products-collapsed > summary { list-style: none; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: .45em; }
.support-products-collapsed > summary::-webkit-details-marker { display: none; }
.support-products-collapsed > summary h2 { margin: 0; }
.support-products-collapsed > summary::after { content: ""; width: .55em; height: .55em; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-25%) rotate(45deg); transition: transform .25s ease; flex: none; }
.support-products-collapsed[open] > summary::after { transform: translateY(25%) rotate(-135deg); }
.support-products-collapsed > summary:hover h2 { color: var(--link); }
.support-products-collapsed[open] > summary { margin-bottom: 1.4em; }
.support-products-collapsed { margin-bottom: 5em; }
@media (max-width: 767px) { .support-products-collapsed { margin-bottom: 3.5em; } }
@media (prefers-reduced-motion: reduce) { .support-products-collapsed > summary::after { transition: none; } }
.support-products > p.more { margin-top: 3em; }
@media (max-width: 767px) { .support-products > p.more { margin-top: 2em; } }
.support-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 8px; }
.support-icon { display: flex; flex-direction: column; align-items: center; min-width: 184px; padding: 14px 8px 12px; border-radius: 18px; color: var(--text); font-size: 15px; transition: background-color .2s ease; }
.support-icon img { display: block; width: 152px; height: 152px; margin-bottom: 8px; transition: transform .2s ease; }
/* Icons with a dark-mode variant come wrapped in <picture>; as an inline box it
   would add a line's descender gap below the image and push the name down. */
.support-icon picture { display: block; }
.support-icon:hover, .support-icon:focus-visible { text-decoration: none; background: var(--surface-hover); }
.support-icon:hover img, .support-icon:focus-visible img { transform: scale(1.04); }
.support-icon > span { text-align: center; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.support-icon small { font-size: 12px; line-height: 1.25; color: var(--muted); margin-top: 0; text-align: center; }
.support-icon-small { min-width: 116px; font-size: 13px; }
.support-icon-small small { font-size: 11px; }
.support-icon-small img { width: 84px; height: 84px; }
@media (max-width: 767px) {
  .support-icon { min-width: 150px; padding-inline: 6px; font-size: 14px; }
  .support-icon img { width: 120px; height: 120px; }
  .support-icon-small { min-width: 104px; font-size: 13px; }
  .support-icon-small img { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) { .support-icon, .support-icon img { transition: none; } }

/* Downloads, Pressekits, Produktübersicht */
.download-group { margin: 3em 0; }
.download-group h2 a { color: inherit; }
.download-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: .5em; }
.download-group-head h2 { margin: 0; }
.download-group-head .download-buy { margin: 0; white-space: nowrap; }
.download-version { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.download-version .download-info { display: flex; flex-direction: column; flex: 1 1 220px; font-size: 15px; }
.download-version .download-title { font-weight: 600; font-size: 17px; }
.download-version .download-icon { width: 64px; height: 64px; }
.download-notes { flex: 1 1 100%; font-size: 14px; color: var(--muted); }
.download-notes ul { margin: 4px 0 0; padding-left: 1.2em; }
.download-version .download-notes { order: 3; padding-left: 82px; }
@media (max-width: 600px) { .download-version .download-notes { padding-left: 0; } }
/* Danke-Seite (/startdownload) */
.startdownload { display: flex; flex-direction: column; align-items: center; margin: 3em auto 0; max-width: 640px; }
.startdownload-icon { width: 128px; height: 128px; }
.startdownload-title { display: flex; flex-direction: column; margin: 8px 0 0; font-size: 15px; }
.startdownload-title strong { font-size: 19px; }
.startdownload-steps { align-self: stretch; margin-top: 2em; padding: 28px 32px; background: var(--bg-alt); border-radius: var(--radius); font-size: 17px; line-height: 1.5; text-align: left; }
.startdownload-steps > strong { display: block; font-size: 21px; text-align: center; }
.startdownload-steps ol { margin: 14px 0 0; padding-left: 1.4em; }
.startdownload-steps li + li { margin-top: 8px; }
.startdownload .contactbanner.startdownload-contact { align-self: stretch; max-width: none; margin: 1.5em 0 0; padding: 24px 32px; background: var(--bg-alt); border: 0; color: var(--text); text-align: left; }
@media (max-width: 767px) { .startdownload .contactbanner.startdownload-contact { text-align: center; padding: 22px 20px; } }
.startdownload .download-notes { margin-top: 1em; padding: 12px 16px; background: var(--bg-alt); border-radius: var(--radius); text-align: left; }
/* Kauf-Abschnitt unten auf Produktseiten (::buy) */
.buysection { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px); margin: 2.5em auto; max-width: 900px; }
.buysection-icon { position: relative; display: block; flex: 0 0 auto; box-sizing: content-box; width: clamp(140px, 24vw, 240px); padding: 48px; margin: -48px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.18)); will-change: filter; transform: translateZ(0); }
/* Safari workaround: Safari keeps a stale, clipped drop-shadow after a lazily loaded image arrives (a hover fixes it).
   The padding (cancelled by the negative margin) gives the shadow room, will-change/translateZ put the icon on its own layer,
   and site.js re-applies the filter once the image has loaded. */
.buysection-icon img { display: block; width: 100%; height: auto; border-radius: 0; transition: transform .2s ease; }
.buysection-icon:hover img { transform: scale(1.03); }
.buysection-body { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.buysection-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.buysection-action { margin: 0; }
.buysection-button { font-size: 18px; padding: 13px 34px; }
/* Das Badge bringt seine eigenen runden Ecken mit; die allgemeine Rundung von .content img würde sie abschneiden. */
.buysection-badge img { display: block; height: 54px; width: auto; border-radius: 0; }
.buysection-price { margin: 1em 0 0; font-size: 18px; line-height: 1.5; color: var(--muted); }
.buysection-price s { opacity: .8; }
.buysection-price .price-sep { opacity: .6; }
.price-sale { color: #e30000; font-weight: 700; }
@media (prefers-color-scheme: dark) { .price-sale { color: #ff453a; } }
.theme-dark .price-sale { color: #ff453a; }
@media (max-width: 767px) {
  .buysection { flex-direction: column; gap: 20px; margin: 1.5em auto; }
  .buysection-price { font-size: 16px; }
}
/* Zweites Banner unter ::buy: Fragen? Kontakt. Farben aus currentColor, damit es auf hellen und dunklen Sections passt. */
.contactbanner { display: flex; align-items: center; gap: 18px 22px; max-width: 830px; margin: 4em auto 0; padding: 20px 26px; border-radius: var(--radius); background: color-mix(in srgb, currentColor 2.5%, transparent); border: 1px solid color-mix(in srgb, currentColor 9%, transparent); }
/* Im Dark Mode etwas kräftiger, sonst verschwindet die Karte. */
@media (prefers-color-scheme: dark) { .contactbanner { background: color-mix(in srgb, currentColor 5%, transparent); border-color: color-mix(in srgb, currentColor 12%, transparent); } }
.theme-dark .contactbanner { background: color-mix(in srgb, currentColor 5%, transparent); border-color: color-mix(in srgb, currentColor 12%, transparent); }
.contactbanner-icon { flex: 0 0 auto; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; opacity: .75; }
.contactbanner-body { flex: 1 1 auto; min-width: 0; }
.contactbanner-body p { margin: 0; }
.contactbanner-title { font-size: 19px; font-weight: 600; line-height: 1.3; }
.contactbanner-text { font-size: 15px; line-height: 1.4; opacity: .72; }
.contactbanner-button { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 767px) {
  .contactbanner { flex-direction: column; text-align: center; margin-top: 3em; padding: 22px 20px; }
}

/* Kaufseite (::buyoptions): direkt bei uns oder im App Store */
.buyoptions { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 2em 0; }
.buyoption { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 24px 8px; background: var(--bg-alt); border-radius: var(--radius); }
.buyoption h3 { margin: 12px 0 4px; font-size: 24px; }
.buyoption > p { margin: .4em 0; }
.buyoption .buttons { margin-top: auto; padding: 1em 0; justify-content: center; }
.buyoption-icon { width: 96px; height: 96px; }
.buyoption-apple { width: 72px; height: 96px; padding: 6px 0; color: var(--text); }
.buyoption-price { font-size: 17px; color: var(--muted); }
.buyoption-price strong { color: var(--text); font-size: 21px; }
.buyoption-price .price-upgrade { color: #e30000; }
@media (prefers-color-scheme: dark) { .buyoption-price .price-upgrade { color: #ff6961; } }
.theme-dark .buyoption-price .price-upgrade { color: #ff6961; }
.presskit { display: inline-flex; align-items: center; gap: 14px; margin: 10px; padding: 12px 18px; background: var(--surface); border-radius: var(--radius); color: var(--text); text-align: left; }
.presskit { transition: background-color .2s ease; }
.presskit img { width: 64px; height: 64px; transition: transform .2s ease; }
.presskit:hover, .presskit:focus-visible { text-decoration: none; background: var(--surface-hover); }
.presskit:hover img, .presskit:focus-visible img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .presskit, .presskit img { transition: none; } }
.presskit > span { display: flex; flex-direction: column; font-size: 14px; }
.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 2em 0; }
.product-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; background: var(--bg-alt); border-radius: var(--radius); color: var(--text); }
.product-card img { width: 128px; height: 128px; margin-bottom: 10px; }
.product-card span { font-size: 14px; color: var(--muted); }

/* Support-Formular */
.support-form { max-width: 680px; margin: 1.5em auto clamp(72px, 10vw, 120px); }
/* Headline above a centred form (contact page): centred over the form column. */
.form-head { padding: clamp(40px, 6vw, 72px) 0 0; text-align: center; }
.form-head h1 { max-width: 680px; margin: 0 auto; font-size: clamp(28px, 4.4vw, 42px); text-wrap: balance; }
.support-form-product { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 1.5em; background: var(--bg-alt); border-radius: var(--radius); }
.support-form-product > div { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.support-form-product .muted { font-size: 14px; }
.support-form-product strong { font-size: 19px; }
.support-form-icon { width: 64px; height: 64px; flex: none; }
.support-form-change { font-size: 14px; white-space: nowrap; }
.field { margin: 0 0 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 576px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-label { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.field-label label, .field-heading { font-weight: 600; font-size: 15px; }
.field-help { position: relative; font-size: 14px; }
.field-help summary { list-style: none; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 18px; text-align: center; }
.field-help summary::-webkit-details-marker { display: none; }
.field-help[open] summary { background: var(--link); border-color: var(--link); color: #fff; }
.field-help p { position: absolute; z-index: 5; left: -120px; top: 26px; width: min(320px, 80vw); margin: 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px var(--shadow-strong); color: var(--text); font-weight: 400; }
@media (min-width: 576px) { .field-help p { left: 0; } }
.support-form input[type=text], .support-form input[type=email], .support-form select, .support-form textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px: no zoom on iPhone */ color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
/* Safari on macOS ignores padding, radius and height on native popups;
   drop the native look and draw our own chevron so they match the text fields. */
.support-form select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat; }
.support-form select::-ms-expand { display: none; }
.field-invalid select { border-color: var(--missing-text); }
.support-form textarea { resize: vertical; min-height: 180px; }
.support-form input:focus, .support-form select:focus, .support-form textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 25%, transparent); }
/* Full width: Safari sizes file inputs intrinsically and truncates the
   "Keine Datei ausgewählt" label with an ellipsis otherwise. */
.support-form input[type=file] { font-size: 15px; width: 100%; max-width: 100%; }
.field-invalid input, .field-invalid textarea { border-color: var(--missing-text); }
.field-error, .form-error { color: var(--missing-text); font-size: 14px; margin: 6px 0 0; }
.form-error { background: var(--missing-bg); padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; font-size: 15px; }
.field-note { font-size: 13px; margin: 6px 0 0; }
.file-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--bg-alt); border-radius: 8px; margin-bottom: 4px; }
.file-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li small { color: var(--muted); }
.file-list button { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 4px; }
.form-submit { margin-top: 24px; }
.form-submit + .form-privacy { margin-top: -4px; }
.form-submit .button { border: 0; cursor: pointer; font: inherit; font-weight: 500; padding: 12px 28px; }
.form-submit .button[disabled] { opacity: .6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hilfe: Produktübersicht, Suche, Artikelseite */
.breadcrumb { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.6; padding: 0 7px; border-radius: 6px; background: var(--bg-alt); color: var(--muted); vertical-align: middle; }
.small { font-size: 14px; }
.notice { background: var(--bg-alt); border-radius: var(--radius); padding: 12px 16px; color: var(--muted); }
.article-search { display: flex; gap: 10px; margin: 1.5em 0; }
.article-search input[type=search] { flex: 1; min-width: 0; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 980px; padding: 10px 18px; -webkit-appearance: none; appearance: none; }
.article-search input[type=search]:focus { outline: 2px solid var(--link); outline-offset: 1px; border-color: transparent; }
.article-search .button { border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.help-head { display: flex; align-items: center; gap: 20px; }
.help-head h1 { margin: 0 0 4px; }
.help-head p { margin: 0; }
.help-icon { width: 96px; height: 96px; flex: none; }
@media (max-width: 575px) { .help-icon { width: 64px; height: 64px; } .help-head { gap: 14px; } }
.help-products { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin: 1.5em 0; }
.help-product { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-alt); border-radius: var(--radius); color: var(--text); }
.help-product:hover { text-decoration: none; background: var(--surface-hover); }
.help-product img { width: 48px; height: 48px; flex: none; }
.help-product > span { display: flex; flex-direction: column; line-height: 1.3; }
.help-product-old { opacity: .75; }
.faq-permalink { font-size: 14px; margin: .8em 0 0; }
.search-results { padding-left: 1.4em; }
.search-results li { margin: 0 0 1.2em; }
.search-results p { margin: .3em 0 0; color: var(--muted); font-size: 15px; }
.related { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--line); }
.related h2 { margin-top: .5em; font-size: 22px; }
.help-contact { margin: 2.5em 0 1em; }

/* Newsletter */
.newsletter-form { max-width: 760px; margin: 1.2em auto 2em; text-align: center; }
.newsletter-fields { display: grid; gap: 10px; }
@media (min-width: 768px) { .newsletter-fields { grid-template-columns: 1fr 1fr 1.6fr auto; } }
.newsletter-form input[type=text], .newsletter-form input[type=email] {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.newsletter-form input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 25%, transparent); }
.newsletter-form .button { border: 0; cursor: pointer; font: inherit; font-weight: 500; white-space: nowrap; }
.newsletter-form .field-note { margin-top: 12px; }
.newsletter-box { background: var(--bg-alt); padding: 48px 0 24px; text-align: center; }
.newsletter-box h2, .newsletter-section h2 { margin-top: 0; text-align: center; font-size: clamp(30px, 4.6vw, 46px); }
/* Monochrome Synium mark (arrows + S) before the heading; currentColor
   follows light/dark mode. The SVG is only used as a mask. */
.newsletter-box h2::before, .newsletter-section h2::before {
  content: ""; display: inline-block; width: .7em; height: 1em; margin-right: .3em; vertical-align: -.16em;
  background: currentColor;
  -webkit-mask: url(/static/img/synium-mark.svg) center / contain no-repeat;
          mask: url(/static/img/synium-mark.svg) center / contain no-repeat;
}
.newsletter-box p { max-width: 680px; margin-left: auto; margin-right: auto; }
.newsletter-unsubscribe { text-align: center; margin: 1em auto 3em; }
.confirm .newsletter-unsubscribe { margin: 1.6em auto 0; }

/* Confirmation pages (support message sent, newsletter registered/validated/
   unsubscribed …): ::: section white class="confirm confirm-check".
   Envelope graphic above a centred headline and text; the variant class
   picks the graphic (confirm-mail, confirm-check, confirm-alert). */
.confirm { padding: clamp(56px, 9vw, 112px) 0; text-align: center; }
.confirm .band-inner { max-width: 760px; }
.confirm .band-inner::before {
  content: ""; display: block; width: clamp(112px, 15vw, 150px); aspect-ratio: 160 / 140;
  margin: 0 auto 28px; background: var(--confirm-icon, url(/static/img/confirm-mail.svg)) center / contain no-repeat; }
.confirm-mail { --confirm-icon: url(/static/img/confirm-mail.svg); }
.confirm-check { --confirm-icon: url(/static/img/confirm-check.svg); }
.confirm-alert { --confirm-icon: url(/static/img/confirm-alert.svg); }
.confirm h1 { font-size: clamp(28px, 4.4vw, 42px); margin: 0 0 .5em; text-wrap: balance; }
.confirm p { max-width: 560px; margin-left: auto; margin-right: auto; color: var(--muted); font-size: 19px; text-wrap: pretty; }
.confirm .newsletter-unsubscribe-buttons { max-width: none; }
/* Support message could not be sent (::supportfailed) */
.confirm .support-failed-mailbox { font-size: clamp(20px, 3vw, 26px); font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.support-failed-copy { max-width: 640px; margin: 2em auto 0; text-align: left; }
.support-failed-copy label { display: block; font-weight: 600; margin-bottom: 6px; }
.support-failed-copy textarea { width: 100%; min-height: 180px; resize: vertical; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
@media (prefers-reduced-motion: no-preference) {
  .confirm .band-inner::before { animation: confirm-in .6s cubic-bezier(.2, .8, .2, 1.15) both; }
  @keyframes confirm-in { from { opacity: 0; transform: translateY(10px) scale(.9); } }
}
.newsletter-unsubscribe-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.newsletter-unsubscribe .button { border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.button-secondary { background: var(--bg-alt); color: var(--text); border: 1px solid var(--line) !important; }
.button-secondary:hover { background: var(--line); }
.field-check label { font-weight: 400; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.field-check input { width: 18px; height: 18px; margin: 0; }

/* ::banklist (iFinance "Banks" page) */
.banklist { margin: 1.5em 0 0; }
.banklist-fields { display: flex; flex-wrap: wrap; gap: 12px; }
.banklist-search, .banklist-country {
  font: inherit; font-size: 16px; /* 16px: no zoom on iPhone */ color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; -webkit-appearance: none; appearance: none; }
.banklist-search { flex: 1 1 320px; min-width: 0; }
.banklist-country {
  flex: 0 1 240px; cursor: pointer; padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat; }
.banklist-search:focus, .banklist-country:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 25%, transparent); }
.banklist-status { font-size: 14px; margin: 14px 0 8px; }
.banklist table { width: 100%; border-collapse: collapse; font-size: 15px; }
.banklist th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.banklist td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.banklist tbody tr:nth-child(even) { background: var(--bg-alt); }
.banklist .banklist-narrow { width: 1%; white-space: nowrap; }
.banklist-code { display: block; color: var(--muted); font-size: 13px; }
.banklist-more { display: block; margin: 20px auto 0; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
@media (max-width: 575px) {
  .banklist-country { flex: 1 1 100%; }
  .banklist table { font-size: 14px; }
  .banklist th, .banklist td { padding: 8px 6px; }
  .banklist .banklist-narrow { white-space: normal; }
}
