/* themes.css — the four alternative styles of the style switcher (THEMES.md, 2026-11-16).
   Loaded only once a visitor picks a style other than "Nacht", so a visitor who never switches pays nothing.
   Each style is one :root[data-theme="…"] block that redefines every token of THEMES.md § 3, its @font-face rules,
   and a handful of scoped rules for the typographic character that tokens alone cannot carry (marked "Character").
   Fonts: self-hosted woff2, latin + latin-ext, cut with fontTools from the google/fonts originals; OFL texts are
   next to them in assets/fonts/. Every colour pair is WCAG AA (4.5:1 text, 3:1 large text and UI).
   The hero glows (--accent-a14/-a16) are transparent in all four: on a light ground the radial glow ends in a
   visible edge under the header, and the ink scenes carry the hero instead. */

/* ======================================================================================================
   Kanzlei — Beratung, Recht, Steuer. A good newspaper: warm paper, ink, one oxblood accent, hairline rules,
   a text serif for headlines (Newsreader), a Franklin gothic for text and labels (Libre Franklin).
   Nearly square corners. 81 KB of fonts.
   ====================================================================================================== */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/newsreader-500.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/libre-franklin-400.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/libre-franklin-600.woff2") format("woff2"); }

:root[data-theme="kanzlei"] {
  --color-bg: #F7F3EC;
  --color-bg-elev: #EFE9DF;
  --color-surface: #FBF9F5;
  --color-surface-accent: #FBF9F5;
  --color-text: #1D1B18;
  --color-text-muted: #5A534A;
  --color-heading: #16130F;
  --color-border: rgba(29, 27, 24, 0.14);
  --color-border-accent: rgba(29, 27, 24, 0.28);
  --color-accent: #8C2F25;
  --color-accent-hover: #6E241C;
  --color-link: #8C2F25;
  --color-accent-light: #8C2F25;
  --color-accent-strong: #6E241C;
  --color-accent-deep: #8C2F25;
  --logo-bar: #1D1B18;
  --logo-cross: #8C2F25;
  --color-on-accent: #FFFFFF;
  --color-on-accent-muted: #F4DFDA;
  --color-surface-sticky: #F5EFEB;
  --accent-a05: rgba(140, 47, 37, 0.035);
  --accent-a06: rgba(140, 47, 37, 0.05);
  --accent-a14: rgba(140, 47, 37, 0);
  --accent-a16: rgba(140, 47, 37, 0);
  --accent-a50: rgba(29, 27, 24, 0.6);
  --kd-danger: #B42318;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --heading-transform: none;
  --heading-tracking: -0.005em;
  --heading-tracking-tight: -0.015em;
  --heading-weight: 500;
  --heading-weight-strong: 500;

  --radius-md: 2px;
  --radius-lg: 3px;
  --radius-pill: 2px;

  --hero-mode: ink;
  --hero-paper: #F7F3EC;
  --hero-ink: #2B3F5C;   /* fountain-pen blue, not the oxblood accent: Kurzcheck's and Heartbeat's danger red must stand apart (2026-11-18) */
  --hero-scrim-rgb: 247, 243, 236;

  font-synthesis: style;   /* one display weight is shipped: never fake a bold from it */
}
/* Character: the service cards are newspaper columns under a rule, not boxes; the footer hangs under a double rule. */
:root[data-theme="kanzlei"] .card { background: transparent; border-width: 2px 0 0; border-color: var(--color-heading); border-radius: 0; padding: 1.2rem 0 0; }
:root[data-theme="kanzlei"] .card:hover { border-color: var(--color-accent); }
:root[data-theme="kanzlei"] .price-cards .card:hover { border-color: var(--color-heading); }
:root[data-theme="kanzlei"] .site-footer { border-top: 3px double var(--color-border-accent); }
/* The serif is wider than the Nacht grotesk: on phones a long compound ("Datenschutzerklärung") hyphenates. */
@media (max-width: 480px) { :root[data-theme="kanzlei"] :is(h1, h2) { hyphens: auto; -webkit-hyphens: auto; } }

/* ======================================================================================================
   Atelier — Gesundheit, Therapie, Coaching. Soft and calm: sand, sage, terracotta as the warm second voice,
   one friendly sans throughout (Figtree), medium-weight headings, labels in sentence case instead of
   shouted capitals, sage-tinted cards without outlines, round corners. 21 KB of fonts.
   ====================================================================================================== */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/figtree-var.woff2") format("woff2"); }

:root[data-theme="atelier"] {
  --color-bg: #F4F1EA;
  --color-bg-elev: #EBE6DB;
  --color-surface: #FAF8F4;
  --color-surface-accent: #EEF1EA;
  --color-text: #2F3A33;
  --color-text-muted: #56615A;
  --color-heading: #26302A;
  --color-border: rgba(47, 58, 51, 0.12);
  --color-border-accent: rgba(79, 107, 87, 0.22);
  --color-accent: #4F6B57;
  --color-accent-hover: #3E5645;
  --color-link: #46614E;
  --color-accent-light: #4F6B57;
  --color-accent-strong: #3E5645;
  --color-accent-deep: #4F6B57;
  --logo-bar: #4F6B57;
  --logo-cross: #C4704F;
  --color-on-accent: #FFFFFF;
  --color-on-accent-muted: #E2EAE3;
  --color-surface-sticky: #EEEEE9;
  --accent-a05: rgba(79, 107, 87, 0.05);
  --accent-a06: rgba(79, 107, 87, 0.07);
  --accent-a14: rgba(196, 112, 79, 0);
  --accent-a16: rgba(196, 112, 79, 0);
  --accent-a50: rgba(79, 107, 87, 0.40);
  --kd-danger: #B3261E;
  --atelier-terracotta: #9C4F2E;   /* the second colour as text: #C4704F darkened to AA on every Atelier ground */

  --font-display: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --heading-transform: none;
  --heading-tracking: -0.01em;
  --heading-tracking-tight: -0.025em;
  --heading-weight: 500;
  --heading-weight-strong: 500;

  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --hero-mode: ink;
  --hero-paper: #F4F1EA;
  --hero-ink: #4F6B57;
  --hero-scrim-rgb: 244, 241, 234;
}
/* Character: quiet labels (sentence case, terracotta), cards as soft sage fields without an outline. */
:root[data-theme="atelier"] .eyebrow { text-transform: none; letter-spacing: 0.01em; font-size: 1rem; font-weight: 500; color: var(--atelier-terracotta); }
:root[data-theme="atelier"] .footer-services, :root[data-theme="atelier"] .tier-badge, :root[data-theme="atelier"] .tier-more,
:root[data-theme="atelier"] .tier-all { text-transform: none; letter-spacing: 0.01em; }
:root[data-theme="atelier"] .footer-services { font-size: 0.88rem; }
:root[data-theme="atelier"] .footer-services .footer-label { color: var(--atelier-terracotta); }
:root[data-theme="atelier"] .card { border-color: transparent; }
:root[data-theme="atelier"] .card:hover { border-color: var(--accent-a50); }

/* ======================================================================================================
   Werkstatt — Handwerk, Bau, Gastronomie. A Swiss poster: white, black, signal yellow as a fill only
   (buttons, labels, badges, the logo tile — always with black on it), extra-condensed capitals set big and
   tight (Archivo ExtraCondensed), Archivo for text, square corners, a black footer. 58 KB of fonts.
   ====================================================================================================== */
@font-face { font-family: "Archivo ExtraCondensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/archivo-extracondensed-800.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/archivo-600.woff2") format("woff2"); }

:root[data-theme="werkstatt"] {
  --color-bg: #FFFFFF;
  --color-bg-elev: #F3F3F0;
  --color-surface: #F5F5F2;
  --color-surface-accent: #FFFFFF;
  --color-text: #111111;
  --color-text-muted: #4A4A4A;
  --color-heading: #111111;
  --color-border: #D6D6D2;
  --color-border-accent: #111111;
  --color-accent: #111111;
  --color-accent-hover: #000000;
  --color-link: #111111;
  --color-accent-light: #111111;
  --color-accent-strong: #FFD940;
  --color-accent-deep: #FFCC00;
  --logo-bar: #111111;
  --logo-cross: #111111;
  --color-on-accent: #111111;
  --color-on-accent-muted: #3B3628;
  --color-surface-sticky: #F6F1DA;
  --accent-a05: rgba(255, 204, 0, 0.08);
  --accent-a06: rgba(255, 204, 0, 0.10);
  --accent-a14: rgba(255, 204, 0, 0);
  --accent-a16: rgba(255, 204, 0, 0);
  --accent-a50: #111111;
  --kd-danger: #D0021B;
  --werkstatt-yellow: #FFCC00;

  --font-display: "Archivo ExtraCondensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --heading-transform: uppercase;
  --heading-tracking: 0.005em;
  --heading-tracking-tight: 0;
  --heading-weight: 800;
  --heading-weight-strong: 800;
  /* Condensed capitals read about a third smaller than the Nacht grotesk at the same size: the scale grows. */
  --text-2xl: 1.9rem;
  --text-4xl: 3.3rem;
  --text-5xl: 5.2rem;

  --radius-md: 0;
  --radius-lg: 0;
  --radius-pill: 0;

  --hero-mode: ink;
  --hero-paper: #FFFFFF;
  --hero-ink: #111111;
  --hero-scrim-rgb: 255, 255, 255;

  font-synthesis: style;
}
/* Character: poster-tight capitals; yellow blocks for the label, the badge, the icons and the logo tile;
   heavier black frames; buttons as yellow plates with a black edge; the footer inverted to black. */
:root[data-theme="werkstatt"] :is(h1, h2, h3) { line-height: 1.02; }
:root[data-theme="werkstatt"] .eyebrow { display: table; margin: 0 auto 1.4rem; padding: 0.4em 0.75em 0.35em; background: var(--werkstatt-yellow); color: #111111; font-weight: 600; letter-spacing: 0.14em; }
:root[data-theme="werkstatt"] .logo { background: var(--werkstatt-yellow); }
:root[data-theme="werkstatt"] .button { border: 2px solid #111111; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
:root[data-theme="werkstatt"] .card { border-width: 2px; }
:root[data-theme="werkstatt"] .tier-badge { background: var(--werkstatt-yellow); border-color: var(--werkstatt-yellow); color: #111111; font-weight: 600; }
:root[data-theme="werkstatt"] .feature-icon { background: var(--werkstatt-yellow); border-color: var(--werkstatt-yellow); }
:root[data-theme="werkstatt"] .tier-period { border-width: 2px; }
:root[data-theme="werkstatt"] .tier-name { text-transform: uppercase; }
:root[data-theme="werkstatt"] .tier-table thead th.recommended { background: var(--accent-a05); }
:root[data-theme="werkstatt"] .legal-content .dse-kurz { border-left: 6px solid var(--werkstatt-yellow); }
:root[data-theme="werkstatt"] .site-footer {
  --color-bg-elev: #111111; --color-text: #FFFFFF; --color-text-muted: #B3B3AD; --color-heading: #FFFFFF;
  --color-accent: #FFCC00; --color-link: #FFFFFF; --color-border: #111111; --color-accent-light: #FFCC00;
}
@media (max-width: 768px) {
  :root[data-theme="werkstatt"] .hero h1 { font-size: 3.1rem; }
  :root[data-theme="werkstatt"] .page-hero h1 { font-size: 2.7rem; }
  :root[data-theme="werkstatt"] h2.section-title { font-size: 2.6rem; }
}

/* ======================================================================================================
   Laden — Handel, Café, Events. Playful retail: butter, aubergine, tomato for what you press, teal for what
   you follow; a chunky grotesque with ink traps for headlines (Bricolage Grotesque ExtraBold), a friendly sans
   for text (DM Sans), the label as a price-tag pill, big radii, an aubergine footer. 54 KB of fonts.
   ====================================================================================================== */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-grotesque-800.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/dm-sans-var.woff2") format("woff2"); }

:root[data-theme="laden"] {
  --color-bg: #FFF1D0;
  --color-bg-elev: #FAE5B9;
  --color-surface: #FFF8E7;
  --color-surface-accent: #FFFBF2;
  --color-text: #2A1E3B;
  --color-text-muted: #594C66;
  --color-heading: #2A1E3B;
  --color-border: rgba(42, 30, 59, 0.14);
  --color-border-accent: rgba(42, 30, 59, 0.20);
  --color-accent: #B5321C;
  --color-accent-hover: #962916;
  --color-link: #1A6A5F;
  --color-accent-light: #B5321C;
  --color-accent-strong: #B5321C;
  --color-accent-deep: #D63A22;
  --logo-bar: #2A1E3B;
  --logo-cross: #D63A22;
  --color-on-accent: #FFFFFF;
  --color-on-accent-muted: #FFFFFF;
  --color-surface-sticky: #FCEBD9;
  --accent-a05: rgba(214, 58, 34, 0.05);
  --accent-a06: rgba(214, 58, 34, 0.07);
  --accent-a14: rgba(214, 58, 34, 0);
  --accent-a16: rgba(214, 58, 34, 0);
  --accent-a50: rgba(214, 58, 34, 0.55);
  --kd-danger: #A3123A;
  --laden-tag: #FFE2D2;

  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --heading-transform: none;
  --heading-tracking: -0.015em;
  --heading-tracking-tight: -0.03em;
  --heading-weight: 800;
  --heading-weight-strong: 800;

  --radius-md: 14px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --hero-mode: ink;
  --hero-paper: #FFF1D0;
  --hero-ink: #D63A22;
  --hero-scrim-rgb: 255, 241, 208;

  font-synthesis: style;
}
/* Character: the label as a price tag; the footer in aubergine with butter type. */
:root[data-theme="laden"] .eyebrow { display: table; margin: 0 auto 1.3rem; padding: 0.45em 1.1em; background: var(--laden-tag); border-radius: var(--radius-pill); font-weight: 600; letter-spacing: 0.12em; }
:root[data-theme="laden"] .site-footer {
  --color-bg-elev: #2A1E3B; --color-text: #FFF1D0; --color-text-muted: #D4C6DC; --color-heading: #FFF1D0;
  --color-accent: #FFB49F; --color-link: #8FD6C9; --color-border: #2A1E3B; --color-accent-light: #FFB49F;
}
