/* ========================================
   re|spic|ere — shared base: reset, fonts, palette
   Loaded by index.html AND the /angebot/ landing pages
   (before style.css / landing.css). Keep the hex and P3
   palette lists in sync.
   ======================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Visually hidden, available to assistive technology. */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Honeypot field — same visually-hidden trick, but bot-fillable */
.cf-honeypot {
  position: absolute;
  left: -9999px; top: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Skip link — visually hidden until keyboard-focused */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
}

@font-face {
  font-family: 'Whitney Book';
  src: url('../fonts/Whitney-Book-Bas.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Whitney Book';
  src: url('../fonts/Whitney-BookItal-Bas.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Whitney Book';
  src: url('../fonts/Whitney-Light-Bas.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Whitney Book';
  src: url('../fonts/Whitney-Medium-Bas.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Whitney Book';
  src: url('../fonts/Whitney-Semibold-Bas.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- Cormorant Garamond (self-hosted; previously loaded from Google Fonts).
   Self-hosting removes the third-party DNS lookup, eliminates a privacy
   leak to Google, and lets the browser prioritize these requests as
   same-origin. We provide only the latin + latin-ext subsets — the rest
   (cyrillic, vietnamese, etc.) aren't needed for German content.
   font-display: swap keeps the page interactive while the font loads;
   the fallback (Georgia, serif) is metrically similar enough to avoid
   major reflow. --- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  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: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-300-ext.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  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: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-300i.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
  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: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-300i-ext.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
  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: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-400-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-400i.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-400i-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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;
}
/* SemiBold (600) — the heading weight. Real cuts (downloaded from the
   Google Fonts OFL release), not browser-synthesized faux bold. */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-600-ext.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-600i.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  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: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-600i-ext.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Paper tone sampled from the design-reference photograph (Michael
     Kenna, Hokkaido — bare trees in snow): a slightly deeper, creamier
     warm white. Also mirrored in the theme-color meta (index.html) and
     favicon.svg. (A darker Canela-specimen greige #e6e2de was tried and
     reverted 2026-06-12.) */
  --bg: #edeae5;
  --bg-alt: #e6e2dc;  /* one step deeper than --bg (currently unused) */
  --ink: #1a1918;
  --ink-light: #3d3c3a;
  --body: #4d4b49;
  /* --mid darkened to match --body (was #5c5a58): all running text now
     reads in the same inkier gray — closer to the Kenna-print contrast
     of charcoal on paper white. */
  --mid: #4d4b49;
  --muted: #807e7b;
  --faint: #a8a6a3;
  --bg-dark: #c9c4bb;
  --line: #d5d3d0;
  --line-light: #e6e5e2;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Whitney Book', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --divider-w: 36px;
  /* Baseline rhythm grid.
     All text line-heights and vertical margins are multiples of --rhythm so
     that horizontal text lines align across all columns in the bookshelf
     layout, regardless of which heading/body element starts each column.
     1.6rem = 27.2px at the 17px root, matching the body line-height. */
  --rhythm: 1.6rem;
  /* --- Motion scale ---
     Single source of truth for the navigation choreography durations.
     The JS state machine is tuned to these: TRANSITION_TIME in main.js
     (800 ms) covers --t-panel + --t-reveal with headroom, and the 400 ms
     measure point in openSectionDirect assumes --t-panel = 0.6s. If you
     change these, change main.js to match. Secondary fades (opacity on
     dividers/hero-inner) keep literal durations slightly shorter than
     their primary motion — that offset is intentional. */
  --t-hero: 1.2s;        /* hero grow + hero-inner slide (idle pace) */
  --t-hero-exit: 1s;     /* hero collapse/slide-out when a section opens */
  --t-nav: 0.8s;         /* divider + logo-mark strip reveal */
  --t-nav-retract: 0.5s; /* divider strip retract (reverse stagger) */
  --t-panel: 0.6s;       /* section open flex-grow */
  --t-reveal: 0.4s;      /* panel content fade-in + cover fade-out */
}

/* Palette read in the Display-P3 colour space (chosen 2026-11-09 from a
   side-by-side swatch test in Safari). The same channel values as the hex
   palette above, but interpreted in P3: on wide-gamut screens (all recent
   Macs/iPhones) this renders the slightly warmer, richer paper tone the
   palette was tuned by eye in a non-colour-managed preview. The hex values
   remain the fallback for browsers without color() support. Keep both
   lists in sync when changing a colour. */
@supports (color: color(display-p3 0 0 0)) {
  :root {
    --bg: color(display-p3 0.9294 0.9176 0.8980);
    --bg-alt: color(display-p3 0.9020 0.8863 0.8627);
    --ink: color(display-p3 0.1020 0.0980 0.0941);
    --ink-light: color(display-p3 0.2392 0.2353 0.2275);
    --body: color(display-p3 0.3020 0.2941 0.2863);
    --mid: color(display-p3 0.3020 0.2941 0.2863);
    --muted: color(display-p3 0.5020 0.4941 0.4824);
    --faint: color(display-p3 0.6588 0.6510 0.6392);
    --bg-dark: color(display-p3 0.7882 0.7686 0.7333);
    --line: color(display-p3 0.8353 0.8275 0.8157);
    --line-light: color(display-p3 0.9020 0.8980 0.8863);
  }
}
