/* =====================================================
   RECHTSANWALT KILIAN BRUMMER – BASIS-CSS (theme-neutral)
   5 Design-Varianten überschreiben dies in themes.css
   ===================================================== */

:root {
  /* Default-Tokens (werden je Design in themes.css überschrieben) */
  --c-bg:           #f7f5f0;
  --c-bg-alt:       #ffffff;
  --c-surface:      #ffffff;
  --c-text:         #1a1d22;
  --c-text-muted:   #5a5f68;
  --c-text-inverse: #f5f5f0;
  --c-primary:      #1a2533;
  --c-primary-2:    #243246;
  --c-accent:       #b08642;
  --c-accent-2:     #d4a857;
  --c-border:        rgba(26,29,34,0.08);
  --c-border-strong: rgba(26,29,34,0.20);
  --c-shadow:        rgba(15,20,30,0.10);

  /* Typo defaults */
  --font-serif:   'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --font-body:    var(--font-sans);
  --font-heading: var(--font-serif);

  /* Type-Scale */
  --fs-xs:    0.8125rem;
  --fs-sm:    0.9375rem;
  --fs-base:  1rem;
  --fs-lg:    1.125rem;
  --fs-xl:    clamp(1.25rem, 1.1vw + 1rem, 1.5rem);
  --fs-2xl:   clamp(1.5rem,  1.5vw + 1rem, 2rem);
  --fs-3xl:   clamp(1.75rem, 2vw + 1rem, 2.5rem);
  --fs-4xl:   clamp(2.25rem, 2.8vw + 1rem, 3.5rem);
  --fs-display: clamp(2.5rem, 4.5vw + 1rem, 5.5rem);

  --lh-tight: 1.05;
  --lh-snug:  1.2;
  --lh-base:  1.65;
  --tracking-tight: -0.025em;
  --tracking-snug:  -0.01em;
  --tracking-wide:  0.04em;
  --tracking-mega:  0.18em;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;
  --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --s-10:128px; --s-11:160px;

  --container:        1200px;
  --container-narrow: 760px;
  --container-wide:   1360px;

  --r-sm: 4px; --r: 8px; --r-lg: 14px; --r-xl: 24px; --r-full: 9999px;

  --shadow-1: 0 1px 2px var(--c-shadow);
  --shadow-2: 0 8px 24px -8px var(--c-shadow);
  --shadow-3: 0 16px 40px -12px var(--c-shadow);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur:      320ms;
  --dur-slow: 640ms;
}

/* ───────────── Reset + Layout-Robustheit ───────────── */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

/* Deutsche Komposita brechen sauber + Wörter respektieren Container */
/* ── Robuste Text-/Layout-Regeln ────────────────────────────
   1. Fließtext (p, li): hyphens AUTO mit großzügigen Limits
   2. Display-Headlines (h1-h3, Hero-, Section-Titles): hyphens MANUAL
      + text-wrap: balance, max-width in ch
   3. Cards/Legal-Content: overflow-wrap anywhere als Sicherheitsnetz
   ───────────────────────────────────────────────────────── */
body, p, li, td, label, button, .lead {
  overflow-wrap: break-word;
  word-break: normal;
}
/* Fließtext darf Silben trennen, aber konservativ */
[lang="de"] p, [lang="de"] li, [lang="de"] address, [lang="de"] .lead, [lang="de"] .legal-content {
  -webkit-hyphens: auto; hyphens: auto;
  hyphenate-limit-chars: 10 5 5;        /* min total / vor / nach */
}

/* Headlines: KEIN auto-hyphens, dafür balance + max-width in ch.
   Soft-hyphens (&shy;) werden trotzdem respektiert. */
h1, h2, h3, h4, h5, h6,
.hero__title, .section__title,
.leistung-card__title, .page-title {
  hyphens: manual;
  -webkit-hyphens: manual;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Sicherheitsnetz: lange Wörter in Cards/Legal sollen nie ausbrechen */
.leistung-card, .kontakt-card, .kontakt-form, .legal-content {
  overflow-wrap: anywhere;
}
img, svg, video, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover, a:focus-visible { color: var(--c-accent-2); }
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
::selection { background: var(--c-accent); color: #fff; }

/* Skip-Link */
.skip-link { position: absolute; top: -200px; left: 0; background: var(--c-primary); color: #fff; padding: 12px 16px; z-index: 1000; }
.skip-link:focus { top: 0; }

/* Typo */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  line-height: var(--lh-snug);
  color: var(--c-text);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-family: var(--font-body); font-weight: 600; }
p  { margin: 0 0 1em; max-width: 65ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-mega);
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 var(--s-4);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; display: inline-block; }
.eyebrow--light { color: var(--c-accent-2); }

.lead { font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 60ch; }

/* Layout */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }
.text-center { text-align: center; }

.section { padding-block: clamp(64px, 9vw, 144px); position: relative; }
.section--page { padding-top: clamp(96px, 10vw, 160px); }
.section__header { max-width: 720px; margin: 0 auto var(--s-7); }
.section__title  { margin-bottom: var(--s-4); }
.section__title--light { color: var(--c-text-inverse); }
.section__lead   { font-size: var(--fs-lg); color: var(--c-text-muted); margin: 0 auto; max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 14px 26px; min-height: 48px;
  border-radius: var(--r);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: var(--tracking-snug); line-height: 1;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-fast), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-accent); color: #fff; box-shadow: var(--shadow-2); }
.btn-primary:hover { background: var(--c-accent-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-text); border-color: var(--c-border-strong); }
.btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn-ghost--light { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost--light:hover { background: rgba(255,255,255,0.08); border-color: var(--c-accent-2); color: var(--c-accent-2); }
.btn-light { background: #fff; color: var(--c-primary); }
.btn-light:hover { background: var(--c-bg); color: var(--c-primary); }

/* ───────────── HEADER (Default) ───────────── */
.rakb-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--dur), border-color var(--dur);
}
.rakb-header__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 12px clamp(16px, 4vw, 32px);
  display: flex; align-items: center; gap: var(--s-5);
}
.rakb-brand { display: flex; align-items: center; gap: var(--s-3); color: var(--c-text); text-decoration: none; margin-right: auto; }
.rakb-brand__monogram {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary); color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.03em; border-radius: 2px;
  border: 1px solid var(--c-accent);
}
.rakb-brand__monogram--lg { width: 64px; height: 64px; font-size: 1.5rem; }
.rakb-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.rakb-brand__name { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; }
.rakb-brand__sub  { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--c-text-muted); letter-spacing: var(--tracking-wide); text-transform: uppercase; }

.rakb-nav__list { display: flex; gap: clamp(6px, 1.5vw, 22px); list-style: none; margin: 0; padding: 0; }
.rakb-nav__list a { display: block; padding: 10px 4px; color: var(--c-text); font-size: var(--fs-sm); font-weight: 500; letter-spacing: var(--tracking-snug); position: relative; }
.rakb-nav__list a::after {
  content: ''; position: absolute; left: 4px; right: 4px; bottom: 4px;
  height: 1px; background: var(--c-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.rakb-nav__list a:hover, .rakb-nav__list .current-menu-item > a, .rakb-nav__list .current_page_item > a { color: var(--c-accent); }
.rakb-nav__list a:hover::after, .rakb-nav__list .current-menu-item > a::after, .rakb-nav__list .current_page_item > a::after { transform: scaleX(1); }

.rakb-burger { display: none; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); cursor: pointer; flex-direction: column; justify-content: space-between; }
.rakb-burger span { display: block; width: 100%; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform var(--dur), opacity var(--dur); }
.rakb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.rakb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rakb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.rakb-mobile-menu { position: fixed; inset: 64px 0 0 0; z-index: 99; background: var(--c-bg); overflow-y: auto; border-top: 1px solid var(--c-border); }
.rakb-mobile-menu[hidden] { display: none; }
.rakb-mobile-menu__inner { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: var(--s-4); }
.rakb-mobile-menu__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.rakb-mobile-menu__list a { display: block; padding: 14px 0; font-family: var(--font-heading); font-size: 1.4rem; color: var(--c-text); border-bottom: 1px solid var(--c-border); }

/* ───────────── HERO DEFAULT (Photo) ───────────── */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(540px, 78vh, 760px); display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,20,30,0.55) 0%, rgba(15,20,30,0.78) 60%, rgba(15,20,30,0.90) 100%);
}
.hero__inner { width: 100%; padding-block: clamp(80px, 12vw, 140px); position: relative; z-index: 1; color: #fff; }
.hero__copy { max-width: 740px; }
.hero__title { color: #fff; font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); margin: 0 0 var(--s-4); max-width: 20ch; }
.hero__sub { font-size: clamp(1.05rem, 0.5vw + 1rem, 1.35rem); color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 0 var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ───────────── LEISTUNGEN-Grid (Default) ───────────── */
.section--leistungen { background: var(--c-bg-alt); }
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.leistung-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  min-height: 220px;
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: transform var(--dur), border-color var(--dur), box-shadow var(--dur);
}
.leistung-card:hover { transform: translateY(-4px); border-color: var(--c-accent); box-shadow: var(--shadow-3); }
.leistung-card__icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(176,134,66,0.08); color: var(--c-accent);
  border-radius: var(--r); margin-bottom: var(--s-3);
  flex-shrink: 0;
}
.leistung-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 600;
  margin: 0; color: var(--c-text);
  line-height: 1.3;
}
.leistung-card__arrow {
  position: absolute; bottom: var(--s-5); right: var(--s-5);
  font-size: 1.5rem; color: var(--c-accent);
  transition: transform var(--dur-fast);
}
.leistung-card:hover .leistung-card__arrow { transform: translateX(4px); }
.leistung-card__link { position: absolute; inset: 0; }

/* ───────────── Über-Mich-Teaser (Default) ───────────── */
.section--about-teaser { background: var(--c-bg); }
.about-teaser-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 768px) { .about-teaser-grid { grid-template-columns: 360px 1fr; gap: var(--s-8); } }
.about-teaser__figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/4; background: var(--c-bg-alt); box-shadow: var(--shadow-3); }
.about-teaser__figure img { width: 100%; height: 100%; object-fit: cover; }

/* ───────────── Kontakt-CTA (Default) ───────────── */
.section--kontakt-cta { background: var(--c-primary); color: #fff; }
.kontakt-cta { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 980px) { .kontakt-cta { grid-template-columns: 1fr 1.4fr auto; } }
.kontakt-cta__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-3); }
.kontakt-cta__card { padding: var(--s-4); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; color: #fff; text-decoration: none; }
.kontakt-cta__card:hover { background: rgba(255,255,255,0.10); border-color: var(--c-accent); color: #fff; }
.kontakt-cta__label { font-size: var(--fs-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--c-accent-2); }
.kontakt-cta__value { font-size: var(--fs-base); }

/* ───────────── Pages / Legal ───────────── */
.page-header { margin-bottom: clamp(32px, 5vw, 56px); }
.page-content > * + * { margin-top: 0.75em; }
.page-content h2 { margin-top: 1.5em; }
.page-content h3 { margin-top: 1.3em; }
.page-content ul, .page-content ol { padding-left: 1.25em; max-width: 65ch; }
.page-content li { margin-bottom: 0.3em; }
.page-content a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.page-content p, .page-content li { max-width: 70ch; }

.legal-content { font-size: var(--fs-base); line-height: 1.7; }
.legal-content h1, .legal-content h2, .legal-content h3, .legal-content h4 { font-family: var(--font-body); }
.legal-content h2 { font-size: var(--fs-xl); margin-top: 2em; }
.legal-content h3 { font-size: var(--fs-lg); margin-top: 1.5em; }
.legal-content h4 { font-size: var(--fs-base); margin-top: 1.2em; font-weight: 700; }
.legal-content p, .legal-content li { max-width: 70ch; overflow-wrap: anywhere; }

/* Kontaktseite */
.kontakt-grid { display: grid; gap: var(--s-7); margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .kontakt-grid { grid-template-columns: 1fr 1.5fr; } }
.kontakt-info { display: flex; flex-direction: column; gap: var(--s-4); }
.kontakt-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); align-items: center; }
.kontakt-card__icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); background: rgba(176,134,66,0.10); color: var(--c-accent); }
.kontakt-card__label { font-size: var(--fs-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--c-text-muted); margin: 0; }
.kontakt-card__value { display: block; font-family: var(--font-heading); font-size: 1.2rem; color: var(--c-text); margin-top: 4px; }
.kontakt-form { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); }
.kontakt-form__h { margin-top: 0; }
.kontakt-form__sub { color: var(--c-text-muted); margin-bottom: var(--s-5); }

/* CF7 */
.wpcf7-form { display: flex; flex-direction: column; gap: var(--s-4); }
.wpcf7-form p { margin: 0; }
.wpcf7-form label { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--c-text); margin-bottom: 6px; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form textarea {
  width: 100%; max-width: 100%; padding: 12px 14px;
  font-family: inherit; font-size: var(--fs-base);
  background: var(--c-bg); color: var(--c-text);
  border: 1px solid var(--c-border-strong); border-radius: var(--r);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(176,134,66,0.15); }
.wpcf7-form textarea { min-height: 160px; resize: vertical; }
.wpcf7-form input[type="submit"] { background: var(--c-accent); color: #fff; border: none; padding: 14px 28px; font: 600 var(--fs-sm) var(--font-body); border-radius: var(--r); cursor: pointer; align-self: flex-start; min-height: 48px; box-shadow: var(--shadow-2); }
.wpcf7-form input[type="submit"]:hover { background: var(--c-accent-2); transform: translateY(-1px); }
.wpcf7-acceptance label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--c-text-muted); }
.wpcf7-acceptance input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-accent); }

.rakb-honeypot { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.wpcf7-form .req { color: var(--c-accent); font-weight: 600; margin-left: 2px; }
.datenschutz-check { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--c-text-muted); }
.wpcf7-not-valid-tip { color: #b91c1c; font-size: var(--fs-xs); background: transparent; border: none; padding: 0; margin-top: 4px; }
.wpcf7-not-valid { border-color: #b91c1c !important; box-shadow: 0 0 0 3px rgba(185,28,28,0.10) !important; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border: 1px solid #b91c1c; background: rgba(185,28,28,0.05); color: #7f1d1d; padding: 12px 16px; border-radius: var(--r); margin-top: var(--s-3); }
.wpcf7 form.sent .wpcf7-response-output { border: 1px solid #16a34a; background: rgba(22,163,74,0.06); color: #14532d; padding: 12px 16px; border-radius: var(--r); margin-top: var(--s-3); }

/* Footer */
.rakb-footer { background: var(--c-primary-2); color: rgba(255,255,255,0.85); }
.rakb-footer__inner { max-width: var(--container-wide); margin-inline: auto; padding: clamp(48px, 6vw, 96px) clamp(20px, 4vw, 40px) var(--s-6); display: grid; gap: var(--s-7); }
@media (min-width: 768px) { .rakb-footer__inner { grid-template-columns: 1.2fr 1fr 1fr; } }
.rakb-footer__col--brand { display: flex; flex-direction: column; gap: var(--s-3); }
.rakb-footer__brand-name { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; color: #fff; margin: 0; }
.rakb-footer__tag { color: rgba(255,255,255,0.7); margin: 0; }
.rakb-footer__h { color: #fff; font-family: var(--font-body); font-size: var(--fs-sm); letter-spacing: var(--tracking-mega); text-transform: uppercase; margin: 0 0 var(--s-3); font-weight: 600; }
.rakb-footer__col address { font-style: normal; line-height: 1.8; }
.rakb-footer__col a { color: rgba(255,255,255,0.85); }
.rakb-footer__col a:hover { color: var(--c-accent-2); }
.rakb-footer__nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rakb-footer__copy { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: var(--s-4) var(--s-5); font-size: var(--fs-xs); color: rgba(255,255,255,0.6); }
.rakb-footer__copy a { color: rgba(255,255,255,0.85); }

/* Scroll-Reveal */
.reveal, .reveal-group > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible, .reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.reveal-group.is-visible > *:nth-child(n+6) { transition-delay: 350ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ───────────── Design-Picker ───────────── */
.rakb-themepicker { position: fixed; bottom: 20px; right: 20px; z-index: 200; font-family: var(--font-body); }
.rakb-themepicker__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0e0e10; color: #fff; border: 1px solid #2a2a2e;
  padding: 10px 16px; border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  cursor: pointer; box-shadow: var(--shadow-3);
  transition: transform var(--dur-fast), background var(--dur-fast);
}
.rakb-themepicker__toggle:hover { transform: translateY(-2px); background: #1a1a1f; }
.rakb-themepicker__panel {
  position: absolute; bottom: 56px; right: 0;
  width: 320px; background: #fff; color: #1a1d22;
  border: 1px solid rgba(0,0,0,0.10); border-radius: var(--r-lg);
  padding: var(--s-5); box-shadow: 0 24px 48px -16px rgba(0,0,0,0.25);
}
.rakb-themepicker__panel[hidden] { display: none; }
.rakb-themepicker__h { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; margin: 0 0 var(--s-3); }
.rakb-themepicker__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rakb-themepicker__list button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: transparent; border: 1px solid transparent;
  padding: 10px 12px; border-radius: var(--r); cursor: pointer;
  font: 500 var(--fs-sm) var(--font-body); color: #1a1d22; text-align: left;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.rakb-themepicker__list button:hover { background: #f5f5f0; }
.rakb-themepicker__list button[aria-current="true"] { border-color: rgba(0,0,0,0.12); background: #f5f5f0; }
.rakb-themepicker__list .sw-name { display: flex; flex-direction: column; line-height: 1.25; }
.rakb-themepicker__list .sw-name b { font-weight: 600; }
.rakb-themepicker__list .sw-name span { font-size: 11px; color: #5a5f68; }
.sw { width: 40px; height: 28px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.1); display: inline-block; flex-shrink: 0; }
.rakb-themepicker__note { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: #5a5f68; }
