/* lii-relocation.com: site stylesheet (PLAN.md phase 4).
 *
 * Hand-written, no framework. Reproduces the look of the old Trix/Elementor
 * site from its computed styles (values measured on the frozen mirror, see
 * docs/design.md for the token table, the evidence and the deliberate
 * deviations). Sections:
 *
 *   1. Fonts (self-hosted, OFL) + metric-matched fallbacks
 *   2. Tokens (custom properties)
 *   3. Reset and base
 *   4. Content typography (Markdown output, .prose)
 *   5. Layout primitives: .container, .section, .grid, .stack, .split
 *   6. Components: .button, .card, .section-heading, .page-hero, .breadcrumb
 *   7. Header: bar, brand, nav (desktop + drawer), actions, locale switcher
 *   8. Footer
 *   9. Utilities, accessibility, reduced motion
 *
 * Breakpoints (custom properties cannot be used in media queries, so they are
 * literal; keep them in sync with docs/design.md):
 *   --bp-sm 768px  (Bootstrap sm: container 750)
 *   --bp-md 992px  (Bootstrap md: container 970)
 *   --bp-lg 1200px (Bootstrap lg: container 1170; desktop nav from here)
 *   Elementor columns stack at max-width 767px.
 */

/* ------------------------------------------------------------------------ */
/* 1. Fonts                                                                 */
/* ------------------------------------------------------------------------ */
/* What the old site really renders (CDP getPlatformFontsForNode on the
 * mirror): Open Sans 400 (body, nav, buttons), Jost 500 (headings; 600/700
 * were faux-bold), Roboto 400/500 (contact form only). The old site also
 * loads an Adobe Fonts kit (futura-pt, le-monde-livre-std) that no CSS rule
 * uses; it is not carried over (owner, 2026-11-16). Files: @fontsource 5.3.0, SIL OFL 1.1 (site/fonts/LICENSE-*).
 * latin-ext is only downloaded when a glyph from its unicode-range appears. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/open-sans-latin-400-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/open-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/open-sans-latin-600-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/open-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jost-latin-500-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jost-latin-ext-500-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/jost-latin-700-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/jost-latin-ext-700-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
/* Roboto: only the contact form (labels, submit) used it on the old site.
 * Declared here so the form layout can use var(--font-form); the files are
 * fetched only on pages that actually render Roboto text. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/roboto-latin-400-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/roboto-latin-ext-400-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/roboto-latin-500-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/roboto-latin-ext-500-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* Metric-matched local fallbacks, used while the web fonts load (swap) so the
 * text keeps its size and line breaks (no layout shift). Values: capsize
 * metrics (xWidthAvg, ascent, descent, unitsPerEm) relative to Arial, then
 * checked in Chromium against the real fonts (docs/design.md). Arial-metric
 * clones (Liberation Sans, Arimo) cover Linux/ChromeOS. */
@font-face {
  font-family: "Open Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  size-adjust: 104.68%;
  ascent-override: 102.1%;
  descent-override: 27.99%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Jost Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  size-adjust: 99.07%;
  ascent-override: 108%;
  descent-override: 37.85%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Roboto Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  size-adjust: 98.94%;
  ascent-override: 93.77%;
  descent-override: 24.68%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------------ */
/* 2. Tokens                                                                */
/* ------------------------------------------------------------------------ */
:root {
  /* Japanese: no web font; the old site rendered Hiragino on Apple devices
     and the platform's CJK font elsewhere. Latin glyphs in Japanese text
     still come from Open Sans / Jost (they come first in the stack). */
  --font-cjk:
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP",
    "Noto Sans CJK JP";
  --font-body: "Open Sans", "Open Sans Fallback", var(--font-cjk), sans-serif;
  --font-heading: "Jost", "Jost Fallback", var(--font-cjk), sans-serif;
  --font-form: "Roboto", "Roboto Fallback", var(--font-cjk), sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, "DejaVu Sans Mono", monospace;

  /* Colours. Source value in the comment where we deviate (contrast,
     PLAN.md §6b, docs/design.md "Deviations"). */
  --color-brand: #e20020; /* logo red; CTA background (source button #ff0000) */
  --color-brand-hover: #c4001c;
  --color-ink: #060221; /* headings */
  --color-ink-2: #181b31; /* section headings, card titles, links */
  --color-ink-nav: #030712; /* nav on the white (sticky) header */
  --color-text: #6c6c6c; /* body copy (source #828282, 3.8:1; #707070 until Proposal F: 4.5:1 on the #f3f4f6 inquiry band) */
  --color-text-lead: #6c6d74; /* section intro text (source value, 5.0:1) */
  --color-text-strong: #000; /* hero lead line */
  --color-footer-link: #757575; /* footer links (source #a0a1a2, 2.6:1) */
  --color-on-dark: #fff;
  --color-surface: #fff;
  --color-surface-muted: #f7f9fb; /* alternating section background */
  --color-surface-banner: #efefef; /* page-hero placeholder behind the image */
  --color-drawer: #191919; /* mobile menu panel */
  --color-drawer-line: rgba(106, 124, 146, 0.1);
  --color-drawer-icon: #6a7c92;
  --color-overlay: rgba(0, 0, 0, 0.65); /* behind the mobile menu */
  --color-hero-scrim: rgba(0, 0, 0, 0.45); /* over page-hero images */
  --color-rule: #e5e7eb;
  --color-focus: #0b57d0;

  /* Type scale (rem, 1rem = 16px; source px in comments). */
  --fs-body: 0.9375rem; /* 15px */
  --lh-body: 1.8667; /* 28px */
  --fs-small: 0.875rem; /* 14px */
  --fs-lead: 1.1875rem; /* 19px, hero lead */
  --fs-h1: 2.5rem; /* 40/48 */
  --fs-h2: 2.25rem; /* 36/44 */
  --fs-h3: 2rem; /* 32/40 */
  --fs-h4: 1.875rem; /* 30/35 */
  --fs-h5: 1.125rem; /* 18/26 */
  --fs-h6: 0.9375rem; /* 15/26 */
  --fs-display: 3.125rem; /* 50/58, home hero title */
  --fs-section: 2.5rem; /* 40/50, section headings (weight 500) */
  --fs-banner: 2.8125rem; /* 45/65, page-hero title */
  --fs-card-title: 1.25rem; /* 20/30 */
  --fs-footer-title: 1.875rem; /* 30/30 */

  /* Spacing */
  --gutter: 15px; /* container side padding (Bootstrap) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem; /* 20px: paragraph margin */
  --space-6: 1.875rem; /* 30px: grid gap, card padding */
  --space-7: 2.5rem; /* 40px */
  --space-8: 3.75rem; /* 60px */
  --space-section: 100px; /* section padding-block, desktop */
  --space-section-sm: 60px; /* section padding-block, < 768px */

  /* Containers (outer width incl. gutters, Bootstrap 3 steps) */
  --container-sm: 750px;
  --container-md: 970px;
  --container-lg: 1170px; /* content 1140 */
  --container-narrow: 760px; /* single-column reading width (posts) */

  /* Radii: the source is square everywhere except round flag/icon badges. */
  --radius: 0;
  --radius-round: 50%;

  /* Shadows */
  --shadow-card: 0 0 20px rgba(0, 0, 0, 0.1);
  --shadow-image: 0 5px 30px rgba(0, 0, 0, 0.1);
  --shadow-header: 0 0 20px rgba(0, 0, 0, 0.075);
  --shadow-badge: -4px 6px 20px rgba(0, 0, 0, 0.2), inset -2px 3px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-popover: 0 8px 30px rgba(0, 0, 0, 0.15);

  /* Header */
  --header-h: 85px;
  --header-h-stuck: 55px;
  --logo-w: 200px;
  --logo-h: 34px;

  --ease: ease-in-out;
  --dur: 0.3s;
}

/* ------------------------------------------------------------------------ */
/* 3. Reset and base                                                        */
/* ------------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Anchor targets land below the sticky header. */
  scroll-padding-top: calc(var(--header-h-stuck) + 20px);
  /* While the consent notice is open (site.js sets the variable), focused
     elements scroll clear of it; body padding lets the page end scroll
     above it too (WCAG 2.4.11). */
  scroll-padding-bottom: var(--consent-notice-h, 0px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  padding-bottom: var(--consent-notice-h, 0px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
}

main {
  flex: 1 0 auto;
  display: block;
}

main:focus {
  outline: none;
}

:lang(ja) {
  line-break: strict;
}

img,
picture,
svg,
video {
  max-width: 100%;
  height: auto;
}

img {
  vertical-align: middle;
  border-style: none;
}

picture {
  display: contents;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------------ */
/* 4. Content typography                                                    */
/* ------------------------------------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 15px;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 500;
  overflow-wrap: break-word;
  hyphens: manual;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.2;
  font-weight: 700;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.2222;
  font-weight: 700;
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  font-weight: 700;
}
h4 {
  font-size: var(--fs-h4);
  line-height: 1.1667;
}
h5 {
  font-size: var(--fs-h5);
  line-height: 1.4444;
}
h6 {
  font-size: var(--fs-h6);
  line-height: 1.7333;
}

/* Long German compounds must not overflow at 375px. */
@media (max-width: 767px) {
  h1,
  h2,
  h3,
  h4 {
    hyphens: auto;
  }
}

p {
  margin: 0 0 var(--space-5);
}

a {
  color: var(--color-ink-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--color-brand);
}

/* Links inside running text are underlined: colour alone (#181b31 vs body
   #707070) is not enough to tell them apart (WCAG 1.4.1). The context is
   wrapped in :where() so the rule stays at (0,1,1) and any component rule
   for its own links (.breadcrumb a, later in this file) wins on source order. */
.prose a:not([class]),
:where(main p, main li, main td) a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--fs-small);
}

ul,
ol {
  margin: 0 0 var(--space-5);
  padding-left: 30px;
}

li {
  margin-bottom: 10px;
}

li > ul,
li > ol {
  margin-top: 10px;
  margin-bottom: 0;
}

blockquote {
  margin: 0 0 var(--space-5);
  padding: 0 0 0 var(--space-5);
  border-left: 3px solid var(--color-brand);
  color: var(--color-ink-2);
}

blockquote p:last-child {
  margin-bottom: 0;
}

figure {
  margin: 0 0 var(--space-5);
}

figcaption {
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  line-height: 1.6;
}

hr {
  height: 0;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--color-rule);
}

table {
  width: 100%;
  margin: 0 0 var(--space-5);
  border-collapse: collapse;
}

th,
td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-rule);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--color-ink-2);
  font-weight: 600;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.8667em;
}

code {
  padding: 2px 4px;
  color: var(--color-ink-2);
  background: var(--color-surface-muted);
}

pre {
  overflow-x: auto;
  padding: var(--space-4);
  background: var(--color-surface-muted);
}

pre code {
  padding: 0;
  background: none;
}

address {
  font-style: normal;
}

/* Markdown pages: vertical rhythm for the rendered body. Headings get space
   above them, the first child none. Images fill the column. */
.prose > * + :is(h2, h3, h4, h5, h6) {
  margin-top: var(--space-7);
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose img {
  display: block;
  height: auto;
}

.prose :is(p, li) > img {
  display: inline-block;
}

/* ------------------------------------------------------------------------ */
/* 5. Layout primitives                                                     */
/* ------------------------------------------------------------------------ */
/* .container: Bootstrap 3 steps, as the old header, banner and footer. */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 992px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-lg);
  }
}

.container--narrow {
  max-width: var(--container-narrow) !important;
}

.container--fluid {
  max-width: none !important;
}

/* .section: a full-width band with the old sections' vertical padding. */
.section {
  padding-block: var(--space-section-sm);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-section);
  }
}

.section--muted {
  background: var(--color-surface-muted);
}

.section--dark {
  background: var(--color-ink-2);
  color: var(--color-on-dark);
}

.section--dark :is(h1, h2, h3, h4, h5, h6, a) {
  color: var(--color-on-dark);
}

.section--tight {
  padding-block: var(--space-7);
}

.section--flush-top {
  padding-top: 0;
}

/* .stack: consistent vertical spacing between children. */
.stack > * {
  margin-block: 0;
}

.stack > * + * {
  margin-top: var(--stack-gap, var(--space-5));
}

/* .grid: responsive columns. Set --grid-min (default 260px) for auto-fit,
   or use .grid--2/.grid--3/.grid--4 for fixed counts that stack below 768px
   (2 columns from 768px for --3/--4, full count from 992px). */
.grid {
  display: grid;
  gap: var(--grid-gap, var(--space-6));
  grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min, 260px), 100%), 1fr));
}

.grid--2,
.grid--3,
.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* .split: image beside text (Elementor "image | text" inner sections).
   Markup comes from the {% split %} shortcode (lib/content-shortcodes.mjs).
   The image comes first on narrow screens either way. */
.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  margin-block: var(--space-7);
}

.split__media {
  margin: 0;
}

.split__media img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-image);
}

.split__body > :last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px;
  }

  .split--image-right .split__media {
    order: 2;
  }
}

/* ------------------------------------------------------------------------ */
/* 6. Components                                                            */
/* ------------------------------------------------------------------------ */
/* .button: the red CTA ("Jetzt anfragen"). 15px Open Sans, 12px 36px
   padding, 52px tall, square corners. Use on <a> or <button>. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 12px 36px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-brand);
  color: var(--color-on-dark);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 28px;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.button:hover,
.button:focus-visible {
  background: var(--color-brand-hover);
  color: var(--color-on-dark);
}

/* The old RadiantThemes custom button (home CTAs, Contract flow) and the
   blog's "Read more" lifted on hover: translateY(-5px) with a
   0 8px 25px rgba(0,0,0,.25) shadow, `all 0.3s ease-in-out`
   (radiantthemes-user-custom.css:2397-2404; radiantthemes-custom.css:
   12536-12546). Keyboard focus gets the same lift. Transform only. */
.button--lift {
  transition:
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out,
    transform 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

.button--lift:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(-5px);
}

.button--lift:focus-visible {
  box-shadow:
    0 0 0 4px var(--color-surface),
    0 8px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(-5px);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Secondary: outlined, for use next to a primary button. */
.button--outline {
  background: transparent;
  color: var(--color-ink-2);
  box-shadow: inset 0 0 0 1px currentColor;
}

.button--outline:hover,
.button--outline:focus-visible {
  background: var(--color-ink-2);
  color: var(--color-on-dark);
}

/* On dark backgrounds/images. */
.button--light {
  background: var(--color-on-dark);
  color: var(--color-ink-2);
}

.button--light:hover,
.button--light:focus-visible {
  background: var(--color-brand);
  color: var(--color-on-dark);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
}

.button-row--center {
  justify-content: center;
}

/* .card: white box with the soft shadow of the old service cards. */
.card {
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  color: var(--color-text);
}

.card__media {
  margin: -30px -20px 20px;
}

.card__media img {
  display: block;
  width: 100%;
  height: auto;
}

.card__icon {
  display: block;
  width: auto;
  height: 60px;
  margin-bottom: 20px;
}

.card__title {
  margin: 0 0 18px;
  color: var(--color-ink-2);
  font-family: var(--font-heading);
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: 1.5;
}

.card__title a {
  color: inherit;
}

.card__body > :last-child {
  margin-bottom: 0;
}

.card__footer {
  margin-top: auto;
  padding-top: var(--space-5);
}

/* Whole card clickable: put .card__link on the title's <a>. */
.card--link {
  position: relative;
  transition: box-shadow var(--dur) var(--ease);
}

.card--link:hover {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.16);
}

.card--link .card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* .section-heading: eyebrow (optional) + title + intro text. */
.section-heading {
  max-width: 845px;
  margin: 0 0 50px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading__eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-brand);
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: 500;
  line-height: 1.4444;
}

.section-heading__title {
  margin: 0 0 20px;
  color: var(--color-ink-2);
  font-family: var(--font-heading);
  font-size: var(--fs-section);
  font-weight: 500;
  line-height: 1.25;
}

.section-heading__text {
  color: var(--color-text-lead);
  line-height: 2;
}

.section-heading__text > :last-child {
  margin-bottom: 0;
}

.section--dark .section-heading__title,
.section--dark .section-heading__text {
  color: var(--color-on-dark);
}

/* .page-hero: the dark banner with title + breadcrumb at the top of every
   non-home page (Trix "inner banner"): 335px tall, title 45/65 Jost bold
   white, text starting 150px from the top (under the overlay header).
   Put the image as <img class="page-hero__image"> (gets AVIF/WebP via the
   image transform) or set --page-hero-image. */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  min-height: 335px;
  padding: 150px 0 40px;
  background: var(--color-ink-2) var(--page-hero-image, none) center / cover no-repeat;
  color: var(--color-on-dark);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-hero-scrim);
}

.page-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.page-hero > .container {
  width: 100%;
}

.page-hero__title {
  margin: 0 0 15px;
  color: var(--color-on-dark);
  font-family: var(--font-heading);
  font-size: var(--fs-banner);
  font-weight: 700;
  line-height: 1.4444;
  letter-spacing: -1px;
}

@media (max-width: 767px) {
  .page-hero__title {
    font-size: 2.25rem;
    line-height: 1.25;
  }
}

/* .breadcrumb: "Home › Page" under the page-hero title. */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 10px;
  color: var(--color-on-dark);
}

.breadcrumb a,
.breadcrumb [aria-current] {
  color: var(--color-on-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------------ */
/* 7. Header                                                                */
/* ------------------------------------------------------------------------ */
/* Two modes (base layout, front matter `headerOverlay: true`):
 *   - solid (default): white bar, dark logo, in flow.
 *   - overlay: transparent over a dark hero, white logo and nav; the header
 *     takes no space, the hero slides under it.
 * In both modes the bar scrolls away with the page and comes back fixed,
 * white and 55px tall, as the old theme's "delayed sticky"
 * (radiantthemes-custom.js:222-246, radiantthemes-custom.css:4144-4172),
 * with classes set by site.js: past the bar's height + 75px .is-parked
 * (translateY(-100%), already out of view), past height + 150px .is-docked
 * (fixed, still above the viewport), past 500px (data-delay) .is-stuck,
 * which slides it in; scrolling back above 500px slides it out again, both
 * `transform 0.4s ease-in-out` (only while docked, so parking and
 * un-parking are instant, as on the old site). Transform only (no layout
 * shift). Keyboard focus in the parked bar and an open drawer (a transform
 * would make the fixed drawer relative to the bar) show it. */
.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-h);
}

.site-header--overlay {
  height: 0;
}

.site-header__bar {
  position: absolute;
  inset: 0 0 auto;
  background: var(--color-surface);
  transition:
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.site-header--overlay .site-header__bar {
  /* A faint top scrim (Proposal F): the white nav sat at 4.1-4.5:1 on the
     lighter parts of the photos; with it ≥ 5:1. Fades out within the bar. */
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  transition: height 0.4s var(--ease);
}

.site-header.is-parked .site-header__bar {
  transform: translateY(-100%);
}

.site-header.is-docked .site-header__bar {
  position: fixed;
  background: var(--color-surface);
  transition:
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.site-header.is-docked .site-header__inner {
  height: var(--header-h-stuck);
}

.site-header.is-stuck .site-header__bar {
  box-shadow: var(--shadow-header);
  transform: none;
}

.site-header.is-parked:focus-within .site-header__bar,
.has-open-drawer .site-header.is-parked .site-header__bar {
  transform: none;
}

/* Brand: two logo files (white for the overlay header, grey for the white
   bar), swapped by CSS so there is no flash. */
.site-header__brand {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  margin-right: auto;
  line-height: 0;
}

.site-header__logo {
  display: block;
  width: var(--logo-w);
  max-width: 100%;
  height: auto;
  aspect-ratio: 594 / 100;
}

.site-header__logo--light {
  display: none;
}

.site-header--overlay:not(.is-docked) .site-header__logo--light {
  display: block;
}

.site-header--overlay:not(.is-docked) .site-header__logo--dark {
  display: none;
}

/* Actions: Instagram, locale switcher, burger. */
.site-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 27px;
  margin: 0 0 0 1px;
  padding: 0;
  list-style: none;
}

.site-header__actions > li {
  margin: 0;
}

.site-header__instagram {
  display: block;
  width: 34px;
  height: 34px;
  line-height: 0;
  border-radius: 8px;
}

.site-header__instagram svg {
  display: block;
  width: 34px;
  height: 34px;
}

/* Burger (below 1200px). 30x28 hit box in the source; padded to 44px for
   touch, with negative margin so the visual position stays. */
.site-header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  /* icon box 25px at the source position, hit area 44px */
  margin: 0 -9.5px 0 -11.5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-ink-nav);
}

.site-header--overlay:not(.is-docked) .site-header__burger {
  color: var(--color-on-dark);
}

.site-header__burger svg {
  position: relative;
  top: 3px; /* source icon sits 3px below the bar's centre line */
  width: 25px;
  height: 25px;
}

.site-header.is-docked .site-header__burger svg {
  top: 0;
}

@media (min-width: 1200px) {
  .site-header__burger-item {
    display: none;
  }
}

/* Nav, desktop (>= 1200px): inline, right-aligned before the actions. */
.site-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li {
  margin: 0;
}

.site-nav__link {
  display: block;
  white-space: nowrap;
  color: var(--color-ink-nav);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 20px;
  text-decoration: none;
}

.site-nav__close {
  display: none;
}

@media (min-width: 1200px) {
  .site-nav {
    margin: 0 21px 0 auto;
  }

  .site-header__actions {
    gap: 22px;
    margin-right: 10px;
  }

  .site-nav__list {
    display: flex;
    gap: 16px;
  }

  .site-nav__link {
    padding: 0 0 5px;
    border-bottom: 2px solid transparent;
    margin-bottom: -7px;
  }

  .site-header--overlay:not(.is-docked) .site-nav__link {
    color: var(--color-on-dark);
  }

  .site-nav__link:hover,
  .site-nav__link.is-active {
    border-bottom-color: var(--color-brand);
    color: var(--color-ink-nav);
  }

  .site-header--overlay:not(.is-docked) .site-nav__link:hover {
    color: var(--color-on-dark);
  }
}

/* Nav, drawer (< 1200px): off-canvas panel from the right, 270px, dark.
   Without JS (html.no-js) it is a plain list under the header bar. Slide
   timing as the old sidr menu: 0.5 s cubic-bezier(0.25, 0.1, 0.82, 0.55)
   (trix radiantthemes-custom.css:1452, !important over sidr's 0.6 s ease). */
@media (max-width: 1199px) {
  .js .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1000;
    width: min(270px, 85vw);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-drawer);
    visibility: hidden;
    transform: translateX(100%);
    transition:
      transform 0.5s cubic-bezier(0.25, 0.1, 0.82, 0.55),
      visibility 0s linear 0.5s;
  }

  .js .site-nav.is-open {
    visibility: visible;
    transform: none;
    transition:
      transform 0.5s cubic-bezier(0.25, 0.1, 0.82, 0.55),
      visibility 0s;
  }

  .js .site-nav__close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 56px;
    padding: 20px 15px 8px;
    border: 0;
    background: none;
    color: var(--color-drawer-icon);
  }

  .site-nav__close svg {
    width: 20px;
    height: 20px;
  }

  .js .site-nav__link {
    padding: 10px 22px 10px 15px;
    border-bottom: 1px solid var(--color-drawer-line);
    color: var(--color-on-dark);
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0.5px;
  }

  .js .site-nav__link:hover,
  .js .site-nav__link.is-active {
    color: var(--color-on-dark);
    background: rgba(255, 255, 255, 0.06);
  }

  .site-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--color-overlay);
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* old body > .overlay */
  }

  .site-nav-backdrop.is-visible {
    opacity: 1;
  }

  /* No JS: the drawer can't open, so the menu is shown as a wrapped row. */
  .no-js .site-header {
    height: auto;
  }

  .no-js .site-header__bar {
    position: relative;
  }

  .no-js .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
  }

  .no-js .site-nav {
    order: 10;
    width: 100%;
    padding-bottom: var(--space-4);
  }

  .no-js .site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
  }

  .no-js .site-header__burger-item {
    display: none;
  }
}

@media (max-width: 1199px) and (prefers-reduced-motion: reduce) {
  /* Descendants too: the global reduced-motion rule below gives every
     element a 0.01ms transition of all properties, so the drawer's children
     would inherit visibility: visible one frame late and site.js could not
     move focus to the close button (Proposal F). */
  .js .site-nav,
  .js .site-nav.is-open,
  .js .site-nav *,
  .site-nav-backdrop {
    transition: none;
  }
}

body.has-open-drawer {
  overflow: hidden;
}

/* Locale switcher: a round flag badge (27px, white 3px ring, shadow) that
   opens a small list of the other languages. */
.locale-switcher {
  position: relative;
}

.locale-switcher__toggle {
  display: block;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-round);
  background: none;
}

.flag {
  display: block;
  width: 33px;
  height: 33px;
  overflow: hidden;
  border: 3px solid var(--color-surface);
  border-radius: var(--radius-round);
  background: var(--color-surface);
  box-shadow: var(--shadow-badge);
}

.flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.locale-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: -8px;
  z-index: 10;
  min-width: 170px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--color-surface);
  box-shadow: var(--shadow-popover);
}

/* Opens and closes with the old flag list's fade, `all 0.2s linear` on
   opacity (radiantthemes-user-custom.css:2566-2581). Closed it stays
   display: none (out of the tab order, the accessibility tree and the
   header's box); the fade runs across the display change with
   transition-behavior: allow-discrete and @starting-style (browsers without
   them open and close at once). */
.locale-switcher__menu {
  display: none;
  opacity: 0;
  transition:
    opacity 0.2s linear,
    display 0.2s linear allow-discrete;
}

.js .locale-switcher.is-open .locale-switcher__menu,
.no-js .locale-switcher:is(:hover, :focus-within) .locale-switcher__menu {
  display: block;
  opacity: 1;
}

@starting-style {
  .js .locale-switcher.is-open .locale-switcher__menu,
  .no-js .locale-switcher:is(:hover, :focus-within) .locale-switcher__menu {
    opacity: 0;
  }
}

.locale-switcher__menu li {
  margin: 0;
}

.locale-switcher__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  color: var(--color-ink-2);
  font-size: var(--fs-small);
  line-height: 28px;
  white-space: nowrap;
  text-decoration: none;
}

.locale-switcher__link:hover,
.locale-switcher__link:focus-visible {
  background: var(--color-surface-muted);
  color: var(--color-ink-2);
}

.locale-switcher__link .flag {
  width: 27px;
  height: 27px;
  border-width: 2px;
  box-shadow: 0 0 0 1px var(--color-rule);
}

/* ------------------------------------------------------------------------ */
/* 8. Footer                                                                */
/* ------------------------------------------------------------------------ */
/* Three columns (Quick Links, Legal, Contact) on white, headings Jost
   30/30 500, links 15/35. Stacked below 768px. */
.site-footer {
  flex-shrink: 0;
  padding: 20px 0 30px;
  background: var(--color-surface);
  color: var(--color-text);
}

.site-footer__grid {
  display: grid;
  gap: 20px 0;
}

/* Columns carry Elementor's column padding: text starts 160px in at 1440
   and 20px in at 375. */
.site-footer__grid > * {
  padding-inline: 5px;
}

@media (min-width: 768px) {
  .site-footer__grid > * {
    padding-inline: 10px;
  }
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.site-footer__title {
  margin: 0 0 20px;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--fs-footer-title);
  font-weight: 500;
  line-height: 1;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li {
  margin: 0;
  line-height: 35px;
}

.site-footer__links a,
.site-footer__links .link-button {
  color: var(--color-footer-link);
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links .link-button:hover {
  color: var(--color-ink-2);
  text-decoration: underline;
}

.site-footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__contact li {
  margin: 0 0 var(--space-7);
}

.site-footer__contact address {
  margin-top: var(--space-7);
}

.site-footer__contact li:last-child {
  margin-bottom: 0;
}

.site-footer__contact a {
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: var(--color-ink-2);
  text-decoration: underline;
}

.site-footer__bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-rule);
  font-size: var(--fs-small);
}

.site-footer__bottom p {
  margin: 0;
}

/* Copyright left, "Teil von Lydia Ishikawa Immobilien" right; stacked on phones. */
@media (min-width: 768px) {
  .site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    justify-content: space-between;
  }
}

.site-footer__bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__bottom a:hover {
  color: var(--color-ink-2);
}

/* A <button> that looks like a link (footer "Cookie-Einstellungen"). */
.link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

/* In running text (privacy notice: "open cookie settings") the button looks
   like a text link, and inline-block gives it a full line box as its target
   (WCAG 2.5.8, at least 24 px). */
.prose .link-button {
  display: inline-block;
  min-height: 24px;
  color: var(--color-ink-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--dur) var(--ease);
}

.prose .link-button:hover {
  color: var(--color-brand);
}

/* ------------------------------------------------------------------------ */
/* 9. Utilities, accessibility                                              */
/* ------------------------------------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Contact form honeypot (partials/contact-form.njk): off-screen for people,
   still in the DOM for bots. Here, not in home.css, so the field stays hidden
   wherever the form is included. */
.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10001;
  padding: 10px 18px;
  background: var(--color-ink-2);
  color: var(--color-on-dark);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--color-on-dark);
}

/* Focus: a visible two-tone ring on every interactive element, keyboard only. */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-surface);
}

.site-header--overlay:not(.is-docked) :focus-visible,
.page-hero :focus-visible,
.section--dark :focus-visible,
.site-nav :focus-visible {
  outline-color: var(--color-on-dark);
  box-shadow: 0 0 0 4px var(--color-ink-2);
}

@media (min-width: 1200px) {
  .site-nav :focus-visible {
    outline-color: var(--color-focus);
    box-shadow: 0 0 0 4px var(--color-surface);
  }

  .site-header--overlay:not(.is-docked) .site-nav :focus-visible {
    outline-color: var(--color-on-dark);
    box-shadow: 0 0 0 4px var(--color-ink-2);
  }
}

.text-center {
  text-align: center;
}

/* Back to top (base.njk, site.js): the old theme's .scrollup
   (radiantthemes-custom.css:1105-1148, colours from the theme options):
   a 40 px white circle, #191919 arrow, 20 px from the bottom and 15 px from
   the right, `all 0.3s ease-in-out`; it slid in from the right edge
   (right -50px -> 15px) past 100 px of scroll, and on hover rose 7 px with
   a stronger shadow. Here the slide is a transform (no layout shift), it
   sits above the consent notice while that is open, and keyboard focus
   gets the hover look. Hidden: visibility hidden (not focusable). */
.back-to-top {
  position: fixed;
  right: 15px;
  bottom: calc(20px + var(--consent-notice-h, 0px));
  z-index: 99;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #191919;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  visibility: hidden;
  transform: translateX(65px);
  transition:
    transform 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}

.back-to-top.is-active {
  visibility: visible;
  transform: none;
}

.back-to-top.is-active:hover,
.back-to-top.is-active:focus-visible {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-7px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

.back-to-top[hidden] {
  display: none;
}

@media print {
  .back-to-top {
    display: none;
  }
}

/* Entrance animations (docs/deviations.md H13, P12). [data-reveal] elements are
   hidden from the first paint by .reveal-on on <html>, which the inline head
   script (base.njk) sets only with IntersectionObserver and without reduced
   motion, and removes again unless site.js has taken over by
   DOMContentLoaded. Screen only (print shows everything), and opacity rather
   than visibility so hidden content stays focusable and in the accessibility
   tree. Transform and opacity only: no layout shift. Keyframes, durations and
   easing are the old theme's (trix radiantthemes-custom.css, which overrode
   animate.css and Elementor): .animated 1 s (19123), fadeIn 0 -> 1 (19128),
   fadeInLeft from -4 % in 1.5 s (19141, 19157), fadeInRight from 0.9
   opacity and 20 px in 0.15 s (19165, 19176), fadeInUp from 0.5 opacity and
   15 px below in 0.2 s (19183, 19197), Elementor's "fast" duration
   (.animated-fast) 0.15 s (19236; data-reveal-speed="fast" here); no timing
   function anywhere, so the default ease, and fill-mode both (animate.css). */
@media screen and (prefers-reduced-motion: no-preference) {
  .reveal-on [data-reveal]:not(.is-revealed) {
    opacity: 0;
  }

  .reveal-on [data-reveal].is-revealing {
    animation: reveal-fade 1s ease both;
  }

  .reveal-on [data-reveal="fade-up"].is-revealing {
    animation-name: reveal-fade-up;
    animation-duration: 0.2s;
  }

  .reveal-on [data-reveal="fade-left"].is-revealing {
    animation-name: reveal-fade-left;
    animation-duration: 1.5s;
  }

  .reveal-on [data-reveal="fade-right"].is-revealing {
    animation-name: reveal-fade-right;
    animation-duration: 0.15s;
  }

  .reveal-on [data-reveal][data-reveal-speed="fast"].is-revealing {
    animation-duration: 0.15s;
  }
}

@keyframes reveal-fade {
  from {
    opacity: 0;
  }
}

@keyframes reveal-fade-up {
  from {
    opacity: 0.5;
    transform: translate3d(0, 15px, 0);
  }
}

@keyframes reveal-fade-left {
  from {
    transform: translate3d(-4%, 0, 0);
  }
}

@keyframes reveal-fade-right {
  from {
    opacity: 0.9;
    transform: translate3d(20px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Placeholder notice from the scaffold (removed once all content is imported). */
.placeholder-notice {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-muted);
  border-left: 3px solid var(--color-brand);
}
