/* digihub.li Pro — OpenAI Business–inspired skin (Inter, ink-on-white) */

:root,
[data-theme="light"] {
  --dh-font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --dh-bg: #ffffff;
  --dh-bg-elevated: #ffffff;
  --dh-bg-subtle: #f7f7f8;
  --dh-text: #0d0d0d;
  --dh-text-muted: #6e6e80;
  --dh-text-faint: #8e8ea0;
  --dh-border: #ececf1;
  --dh-border-strong: #e5e7eb;
  --dh-accent: #0d0d0d;
  --dh-accent-soft: #f7f7f8;
  --dh-accent-glow: rgba(0, 0, 0, 0.06);
  --dh-brand: #3d9a92;
  --dh-brand-soft: rgba(61, 154, 146, 0.1);
  --dh-brand-nav-scroll: #3d9a92;
  --dh-nav-bg: rgba(255, 255, 255, 0.9);
  --dh-hero-gradient: #ffffff;
  --dh-card-hover: #f7f7f8;
  --dh-logo-filter: none;
  --dh-radius: 6px;
  --dh-radius-lg: 10px;
  --dh-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --dh-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --dh-nav-h: 64px;
  --dh-nav-link-size: 14px;
  --dh-nav-link-lh: 20px;
  --dh-nav-logo-h: 32px;
}

[data-theme="dark"] {
  --dh-bg: #0d0d0d;
  --dh-bg-elevated: #171717;
  --dh-bg-subtle: #212121;
  --dh-text: #ffffff;
  --dh-text-muted: #acacbe;
  --dh-text-faint: #8e8ea0;
  --dh-border: rgba(255, 255, 255, 0.1);
  --dh-border-strong: rgba(255, 255, 255, 0.16);
  --dh-accent: #ffffff;
  --dh-accent-soft: rgba(255, 255, 255, 0.06);
  --dh-accent-glow: rgba(255, 255, 255, 0.08);
  --dh-brand: #64b4ac;
  --dh-brand-soft: rgba(100, 180, 172, 0.12);
  --dh-brand-nav-scroll: #3d9a92;
  --dh-nav-bg: rgba(13, 13, 13, 0.92);
  --dh-hero-gradient: #0d0d0d;
  --dh-card-hover: rgba(255, 255, 255, 0.04);
  --dh-logo-filter: brightness(1.05);
  --dh-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --dh-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  font-family: var(--dh-font);
  background: var(--dh-bg);
  color: var(--dh-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* —— Nav —— */
.dh-nav,
nav.dh-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  isolation: isolate;
  height: var(--dh-nav-h);
  min-height: var(--dh-nav-h);
  max-height: var(--dh-nav-h);
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
  background: var(--dh-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dh-border);
  box-shadow: var(--dh-shadow);
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    backdrop-filter 0.35s ease;
}

.dh-nav > .nav-logo,
nav.dh-nav > .nav-logo {
  grid-column: 1;
  justify-self: start;
}

.dh-nav > .nav-links,
nav.dh-nav > .nav-links {
  grid-column: 2;
  justify-self: center;
}

.dh-nav > .nav-r,
nav.dh-nav > .nav-r {
  grid-column: 3;
  justify-self: end;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--dh-nav-logo-h);
  font-family: var(--dh-font);
  font-weight: 600;
  font-size: 15px;
  line-height: var(--dh-nav-logo-h);
  color: var(--dh-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo-word {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 108px;
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transition: max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Legacy DII text-swap experiment — never show */
.nav-logo-label,
.nav-logo-short,
.nav-logo-full {
  display: none !important;
}

.nav-logo-img {
  display: block;
  height: var(--dh-nav-logo-h);
  width: auto;
  flex-shrink: 0;
  filter: var(--dh-logo-filter);
}

body.nav-scrolled .dh-nav,
body.nav-scrolled nav.dh-nav,
body.nav-scrolled > nav:not(.dh-nav) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.nav-scrolled .nav-logo-word {
  max-width: 0;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

/* Light mode + scroll → digihub green bar */
[data-theme="light"] body.nav-scrolled .dh-nav,
[data-theme="light"] body.nav-scrolled nav.dh-nav,
[data-theme="light"] body.nav-scrolled > nav:not(.dh-nav) {
  background: var(--dh-brand-nav-scroll);
  border-bottom-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(61, 154, 146, 0.28);
}

[data-theme="light"] body.nav-scrolled .nav-logo {
  color: #ffffff;
}

[data-theme="light"] body.nav-scrolled .nav-logo-img {
  filter: brightness(0) invert(1);
}

[data-theme="light"] body.nav-scrolled .nav-links a,
[data-theme="light"] body.nav-scrolled .nav-dd-trigger {
  color: rgba(255, 255, 255, 0.82);
}

[data-theme="light"] body.nav-scrolled .nav-links a:hover,
[data-theme="light"] body.nav-scrolled .nav-dd-trigger:hover {
  color: #ffffff;
}

[data-theme="light"] body.nav-scrolled .theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

[data-theme="light"] body.nav-scrolled .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] body.nav-scrolled .lang-sw {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.82);
}

[data-theme="light"] body.nav-scrolled .lang-sw:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

[data-theme="light"] body.nav-scrolled .nav-cta {
  background: #ffffff;
  color: var(--dh-brand-nav-scroll);
}

[data-theme="light"] body.nav-scrolled .nav-cta:hover {
  opacity: 0.92;
}

/* Dark mode + scroll → solid white bar */
[data-theme="dark"] body.nav-scrolled .dh-nav,
[data-theme="dark"] body.nav-scrolled nav.dh-nav,
[data-theme="dark"] body.nav-scrolled > nav:not(.dh-nav) {
  background: #ffffff;
  border-bottom-color: #ececf1;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] body.nav-scrolled .nav-logo {
  color: #0d0d0d;
}

[data-theme="dark"] body.nav-scrolled .nav-logo-img {
  filter: none;
}

[data-theme="dark"] body.nav-scrolled .nav-links a,
[data-theme="dark"] body.nav-scrolled .nav-dd-trigger {
  color: #6e6e80;
}

[data-theme="dark"] body.nav-scrolled .nav-links a:hover,
[data-theme="dark"] body.nav-scrolled .nav-dd-trigger:hover {
  color: #0d0d0d;
}

[data-theme="dark"] body.nav-scrolled .theme-toggle {
  background: #f7f7f8;
  border-color: #e5e7eb;
  color: #6e6e80;
}

[data-theme="dark"] body.nav-scrolled .theme-toggle:hover {
  color: #0d0d0d;
  border-color: #d1d1d6;
}

[data-theme="dark"] body.nav-scrolled .lang-sw {
  border-color: #e5e7eb;
  color: #6e6e80;
}

[data-theme="dark"] body.nav-scrolled .lang-sw:hover {
  color: #0d0d0d;
  border-color: #d1d1d6;
}

[data-theme="dark"] body.nav-scrolled .nav-cta {
  background: #0d0d0d;
  color: #ffffff;
}

[data-theme="dark"] body.nav-scrolled .nav-cta:hover {
  opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
  .dh-nav,
  nav.dh-nav,
  .nav-logo,
  .nav-logo-word,
  .nav-logo-img,
  .nav-logo-wordmark,
  .nav-logo-mark,
  .nav-logo-tagline {
    transition: none;
  }
}

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  align-items: center;
  height: var(--dh-nav-h);
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-dd-trigger {
  display: inline-flex;
  align-items: center;
  height: var(--dh-nav-link-lh);
  text-decoration: none;
  color: var(--dh-text-muted);
  font-size: var(--dh-nav-link-size);
  font-weight: 400;
  line-height: var(--dh-nav-link-lh);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-dd-trigger:hover { color: var(--dh-text); }

.nav-r {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--dh-nav-h);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--dh-border-strong);
  background: var(--dh-bg-elevated);
  color: var(--dh-text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--dh-border-strong);
  color: var(--dh-text);
}

.lang-sw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1;
  color: var(--dh-text-muted);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--dh-border-strong);
  border-radius: 9999px;
  transition: border-color 0.2s, color 0.2s;
}

.lang-sw:hover { border-color: var(--dh-border-strong); color: var(--dh-text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  box-sizing: border-box;
  background: var(--dh-text);
  color: var(--dh-bg);
  font-size: var(--dh-nav-link-size);
  font-weight: 500;
  line-height: 1;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

[data-theme="dark"] .nav-cta {
  background: var(--dh-text);
  color: var(--dh-bg);
}

.nav-cta:hover { opacity: 0.88; }

.nav-chev {
  font-size: 0.62em;
  opacity: 0.55;
  margin-left: 0.15rem;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
}

.nav-dd {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav-dd:hover .nav-dd-trigger,
.nav-dd:focus-within .nav-dd-trigger {
  color: var(--dh-text);
}

.nav-dd:hover .nav-chev,
.nav-dd:focus-within .nav-chev {
  opacity: 0.9;
  transform: rotate(180deg);
}

.nav-dd-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  min-width: 264px;
  padding: 0.5rem;
  margin: 0;
  background: #ffffff;
  border: 1px solid #ececf1;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 10px 20px -6px rgba(0, 0, 0, 0.12),
    0 24px 48px -12px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

/* Two-column product menu for sections with many items (battle-tested mega-menu pattern) */
.nav-dd-menu--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  column-gap: 0.25rem;
  row-gap: 0;
  min-width: 480px;
}

.nav-dd-menu--grid li:first-child {
  grid-column: 1 / -1;
}

[data-theme="dark"] .nav-dd-menu {
  background: #212121;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 32px -8px rgba(0, 0, 0, 0.65),
    0 32px 64px -16px rgba(0, 0, 0, 0.55);
}

/* Scrolled nav (white or green bar) → always light dropdown for readability */
body.nav-scrolled .nav-dd-menu {
  background: #ffffff;
  border-color: #ececf1;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 12px 24px -6px rgba(0, 0, 0, 0.14),
    0 28px 56px -12px rgba(0, 0, 0, 0.2);
}

body.nav-scrolled .nav-dd-menu li:first-child {
  border-bottom-color: #ececf1;
}

body.nav-scrolled .nav-dd-menu a {
  color: #6e6e80;
}

body.nav-scrolled .nav-dd-menu li:first-child a {
  color: #0d0d0d;
}

body.nav-scrolled .nav-dd-menu a:hover,
body.nav-scrolled .nav-dd-menu a:focus-visible {
  background: rgba(61, 154, 146, 0.1);
  color: #0d0d0d;
}

.nav-dd-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 14px;
}

.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.nav-scroll-active .nav-dd-menu,
body.nav-scroll-active .nav-dd:hover .nav-dd-menu,
body.nav-scroll-active .nav-dd:focus-within .nav-dd-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(6px) scale(0.98) !important;
}

.nav-dd-menu li {
  margin: 0;
}

.nav-dd-menu li + li {
  margin-top: 0.125rem;
}

.nav-dd-menu li:first-child {
  margin-bottom: 0.25rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--dh-border);
}

.nav-dd-menu a {
  display: block;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #6e6e80;
  border-radius: 8px;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

[data-theme="dark"] .nav-dd-menu a {
  color: #c5c5d2;
}

.nav-dd-menu li:first-child a {
  font-weight: 500;
  color: #0d0d0d;
}

[data-theme="dark"] .nav-dd-menu li:first-child a {
  color: #ffffff;
}

.nav-dd-menu a:hover,
.nav-dd-menu a:focus-visible {
  background: rgba(61, 154, 146, 0.12);
  color: #0d0d0d;
  outline: none;
}

[data-theme="dark"] .nav-dd-menu a:hover,
[data-theme="dark"] .nav-dd-menu a:focus-visible {
  background: rgba(100, 180, 172, 0.18);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .nav-dd-menu,
  .nav-chev {
    transition: none;
  }

  .nav-dd-menu {
    transform: none;
  }

  .nav-dd:hover .nav-dd-menu,
  .nav-dd:focus-within .nav-dd-menu {
    transform: none;
  }
}

/* —— Layout —— */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.dh-hero {
  padding: calc(var(--dh-nav-h, 64px) + 4rem) 0 3.5rem;
  background: var(--dh-hero-gradient);
  border-bottom: 1px solid var(--dh-border);
}

.dh-hero .eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--dh-text-muted);
  margin-bottom: 1rem;
}

.dh-hero h1 {
  font-family: var(--dh-font);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.dh-hero .lead,
.dh-hero .meta {
  font-size: 1.05rem;
  color: var(--dh-text-muted);
  max-width: 52ch;
  line-height: 1.7;
  font-weight: 400;
}

.dh-hero .meta { font-size: 0.88rem; margin-top: 0.75rem; }

.featured-img {
  margin-top: 2rem;
  border-radius: var(--dh-radius);
  overflow: hidden;
  border: 1px solid var(--dh-border);
}

.featured-img img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.dh-section {
  padding: 3.5rem 0 5rem;
}

.dh-year-heading {
  font-family: var(--dh-font); font-weight: 600;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dh-text-faint);
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dh-border);
}

.dh-year-heading:first-child { margin-top: 0; }

/* —— News grid —— */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.proof-card {
  background: var(--dh-bg-elevated);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.proof-card:hover {
  border-color: var(--dh-accent);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px var(--dh-accent-glow);
}

.proof-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0 0 1.25rem;
}

.proof-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
}

.proof-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dh-accent);
  margin: 1rem 1.25rem 0.5rem;
}

.proof-card h4 {
  font-family: var(--dh-font); font-weight: 600;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 1.25rem 0.5rem;
  color: var(--dh-text);
}

.proof-card p {
  font-size: 0.84rem;
  color: var(--dh-text-muted);
  line-height: 1.6;
  margin: 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-foot {
  margin: 1rem 1.25rem 0;
  font-size: 0.75rem;
  color: var(--dh-text-faint);
}

/* —— Article prose —— */
.dh-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dh-accent);
  text-decoration: none;
  margin-bottom: 2rem;
}

.back-link:hover { text-decoration: underline; }

/* WP migration junk */
.dh-article > a:not(.back-link)[href="/news/"],
.dh-article > a:not(.back-link)[href="../news/"],
.dh-article > a:not(.back-link)[href="../../news/"] {
  display: none;
}

.dh-article p,
.dh-article li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--dh-text-muted);
  margin-bottom: 1.25rem;
}

.dh-article p strong,
.dh-article li strong { color: var(--dh-text); font-weight: 600; }

.dh-article a,
.dh-article a.css-1rn59kg {
  color: var(--dh-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dh-article a:hover { opacity: 0.85; }

.dh-article h2,
.dh-article h3,
.dh-article h4 {
  font-family: var(--dh-font); font-weight: 600;
  color: var(--dh-text);
  margin: 2rem 0 1rem;
  letter-spacing: -0.02em;
}

.dh-article h2 { font-size: 1.5rem; }
.dh-article h3 { font-size: 1.25rem; }

.dh-article img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid var(--dh-border);
}

.dh-article ul,
.dh-article ol {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--dh-text-muted);
}

.dh-article blockquote {
  border-left: 3px solid var(--dh-accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--dh-text);
  font-style: italic;
}

/* —— Events list extras —— */
.ev-card,
.event-card {
  background: var(--dh-bg-elevated);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.ev-card:hover,
.event-card:hover { border-color: var(--dh-accent); }

.ev-card a,
.event-card a { color: inherit; text-decoration: none; }

.ev-where,
.event-meta { font-size: 0.8rem; color: var(--dh-text-faint); margin-top: 0.35rem; }

/* —— Footer —— */
.site-footer { margin-top: auto; }

.fp-strip {
  background: var(--dh-bg-elevated);
  border-top: 1px solid var(--dh-border);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
}

.fp-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.fp-brand { display: flex; gap: 1rem; flex: 1 1 240px; align-items: flex-start; }

.fp-brand > img { height: 48px; width: auto; filter: var(--dh-logo-filter); }

.fp-tagline {
  font-size: 0.78rem;
  color: var(--dh-text-muted);
  line-height: 1.55;
  max-width: 17rem;
}

.fp-legal h5 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dh-text-faint);
  margin-bottom: 0.6rem;
}

.fp-legal ul { list-style: none; }

.fp-legal a {
  font-size: 0.82rem;
  color: var(--dh-text-muted);
  text-decoration: none;
}

.fp-legal a:hover { color: var(--dh-accent); }

.fp-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.fp-logos img { max-height: 48px; width: auto; opacity: 0.9; }

.footer-meta {
  background: var(--dh-bg-subtle);
  border-top: 1px solid var(--dh-border);
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--dh-text-faint);
}

.fm-brand {
  font-family: var(--dh-font); font-weight: 600;
  font-weight: 700;
  color: var(--dh-text);
}

/* —— Generic content pages (ueber, kontakt) —— */
.dh-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.dh-content p { margin-bottom: 1rem; color: var(--dh-text-muted); }

.dh-content h2 {
  font-family: var(--dh-font); font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.dh-content h2 {
  font-family: var(--dh-font); font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

/* —— About / Team page —— */
.about-section {
  padding: 3.5rem 0;
}

.about-section.alt {
  background: var(--dh-bg-subtle);
}

.about-intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.about-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.about-intro .eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dh-text-muted);
  margin-bottom: 0.75rem;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.vision-card {
  padding: 1.5rem;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-lg);
  background: var(--dh-bg-elevated);
}

.vision-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.vision-card p {
  font-size: 0.9375rem;
  color: var(--dh-text-muted);
  line-height: 1.65;
}

.about-video-block {
  padding: 0 0 3.5rem;
}

.about-video-wrap {
  border-radius: var(--dh-radius-lg);
  overflow: hidden;
  border: 1px solid var(--dh-border);
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
  margin-bottom: 2.5rem;
}

.about-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-quote {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--dh-text);
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.goal-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-lg);
  background: var(--dh-bg-elevated);
}

.goal-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--dh-brand-soft);
  color: var(--dh-brand);
}

.goal-card p {
  font-size: 0.9375rem;
  color: var(--dh-text-muted);
  line-height: 1.65;
}

.team-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.team-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.team-header p {
  color: var(--dh-text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.team-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dh-text-faint);
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dh-border);
}

.team-group-title:first-of-type {
  margin-top: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-card {
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-lg);
  overflow: hidden;
  background: var(--dh-bg-elevated);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  border-color: var(--dh-border-strong);
  box-shadow: var(--dh-shadow-lg);
}

.team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--dh-bg-subtle);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-photo .fde-avatar {
  border-radius: 0;
}

.team-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.team-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dh-brand);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--dh-text-muted);
  line-height: 1.65;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 2.5rem;
  padding: 1rem 0;
}

.partners-grid img {
  max-height: 48px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}

.partners-grid img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* FDE team booking picker (Beispiel + Produktion) */
.demo-notice {
  background: var(--dh-brand-soft);
  border-bottom: 1px solid var(--dh-border);
  color: var(--dh-text);
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.75rem 1.25rem;
  text-align: center;
}

.demo-notice strong {
  font-weight: 600;
}

.fde-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.fde-intro p {
  color: var(--dh-text-muted);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.fde-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.fde-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-lg);
  overflow: hidden;
  background: var(--dh-bg-elevated);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.fde-card:hover {
  border-color: var(--dh-brand);
  box-shadow: var(--dh-shadow-lg);
  transform: translateY(-2px);
}

.fde-card:focus-visible {
  outline: 2px solid var(--dh-brand);
  outline-offset: 2px;
}

.fde-card.is-placeholder {
  opacity: 0.92;
}

.fde-card.is-placeholder:hover {
  border-color: var(--dh-border-strong);
  transform: none;
}

.fde-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dh-bg-subtle);
}

.fde-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fde-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #fff;
  background: linear-gradient(145deg, var(--dh-brand) 0%, #2d7a74 100%);
}

.fde-avatar.avatar-alt {
  background: linear-gradient(145deg, #3d4f6f 0%, #2a3548 100%);
}

.fde-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.35rem;
}

.fde-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.fde-role {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dh-brand);
  margin-bottom: 0.65rem;
}

.fde-focus {
  font-size: 0.8125rem;
  color: var(--dh-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.fde-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dh-brand);
}

.fde-card:hover .fde-cta {
  text-decoration: underline;
}

.fde-card.is-placeholder .fde-cta {
  color: var(--dh-text-faint);
}

/* Contact page */
.contact-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.contact-intro p {
  color: var(--dh-text-muted);
  line-height: 1.7;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-card {
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-lg);
  background: var(--dh-bg-elevated);
  padding: 1.5rem;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-links a {
  color: var(--dh-brand);
  text-decoration: none;
  font-size: 0.9375rem;
}

.contact-links a:hover {
  text-decoration: underline;
}

.contact-links .contact-muted {
  color: var(--dh-text);
  font-size: 0.9375rem;
}

.contact-addresses p {
  font-size: 0.9375rem;
  color: var(--dh-text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.contact-addresses strong {
  color: var(--dh-text);
  font-weight: 600;
}

.contact-map-wrap {
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-lg);
  overflow: hidden;
  line-height: 0;
}

.contact-map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.contact-dir {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-lg);
  overflow: hidden;
  background: var(--dh-bg-elevated);
}

.contact-dir-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--dh-border);
  font-size: 0.9375rem;
}

.contact-dir-row:last-child {
  border-bottom: 0;
}

.contact-dir-name {
  font-weight: 500;
}

.contact-dir-role {
  display: block;
  font-size: 0.8125rem;
  color: var(--dh-text-faint);
  margin-top: 0.15rem;
}

.contact-dir-links {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.contact-dir-links a {
  color: var(--dh-brand);
  text-decoration: none;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.contact-dir-links a:hover {
  text-decoration: underline;
}

.contact-ueber-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dh-brand);
  text-decoration: none;
}

.contact-ueber-link:hover {
  text-decoration: underline;
}

.fde-card--compact .fde-photo {
  aspect-ratio: 1;
  max-height: 88px;
}

.fde-card--compact .fde-avatar {
  font-size: 1.75rem;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .dh-hero h1 { max-width: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .goals-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .fde-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-dir-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .contact-dir-links { flex-wrap: wrap; }
}

/* ============================================================
   v3 nav fixes — Struktur-Merge (2026-06-11)
   1) Dropdown: immer helles Panel + dunkler Text, egal ob
      Dark-Theme oder gescrollte Nav (kein Weiss-auf-Weiss mehr)
   2) Nav-Grid: Logo und CTA behalten ihre Breite, Links-Spalte
      schrumpft kontrolliert (9 Top-Level-Eintraege)
   ============================================================ */

.dh-nav,
nav.dh-nav {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.dh-nav .nav-links {
  justify-content: center;
  gap: clamp(8px, 1.3vw, 18px);
  min-width: 0;
  flex-wrap: nowrap;
}
.nav-links a,
.nav-dd-trigger {
  white-space: nowrap;
}

.nav-dd-menu,
[data-theme="dark"] .nav-dd-menu,
body.nav-scrolled .nav-dd-menu,
[data-theme="dark"] body.nav-scrolled .nav-dd-menu {
  background: #ffffff;
  border-color: #ececf1;
}
.nav-dd-menu li:first-child,
[data-theme="dark"] .nav-dd-menu li:first-child,
body.nav-scrolled .nav-dd-menu li:first-child {
  border-bottom-color: #ececf1;
}
.nav-dd-menu a,
[data-theme="dark"] .nav-dd-menu a,
body.nav-scrolled .nav-dd-menu a,
[data-theme="dark"] body.nav-scrolled .nav-dd-menu a {
  color: #50556b;
}
.nav-dd-menu li:first-child a,
[data-theme="dark"] .nav-dd-menu li:first-child a,
body.nav-scrolled .nav-dd-menu li:first-child a,
[data-theme="dark"] body.nav-scrolled .nav-dd-menu li:first-child a {
  color: #0d0d0d;
}
.nav-dd-menu a:hover,
.nav-dd-menu a:focus-visible,
[data-theme="dark"] .nav-dd-menu a:hover,
[data-theme="dark"] .nav-dd-menu a:focus-visible,
body.nav-scrolled .nav-dd-menu a:hover,
body.nav-scrolled .nav-dd-menu a:focus-visible,
[data-theme="dark"] body.nav-scrolled .nav-dd-menu a:hover,
[data-theme="dark"] body.nav-scrolled .nav-dd-menu a:focus-visible {
  background: rgba(61, 154, 146, 0.12);
  color: #0d0d0d;
}

/* ============================================================
   v3 Logo-Lockup (2026-06-11) — Teal-Wordmark + LAB·HUB·FUND
   Tagline, wie auf digihub.laggner.li. Gilt auf allen Seiten.
   ============================================================ */

.dh-nav .nav-logo.nav-logo--lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  height: auto;
  line-height: 1;
}

.nav-logo--lockup .nav-logo-link {
  display: inline-grid;
  grid-template-columns: 1fr;
  align-items: center;
  line-height: 0;
  max-width: 168px;
  overflow: hidden;
  transition: max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-logo--lockup .nav-logo-wordmark,
.nav-logo--lockup .nav-logo-mark {
  grid-row: 1;
  grid-column: 1;
}

.nav-logo--lockup .nav-logo-wordmark {
  height: 23px;
  width: auto;
  opacity: 1;
  filter: none;
  clip-path: inset(0 0 0 0);
  transition: opacity 0.3s ease,
    clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
}

.nav-logo--lockup .nav-logo-mark {
  height: 28px;
  width: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-logo-mark--white {
  display: none;
}

.nav-logo-tagline {
  display: flex;
  align-items: center;
  gap: 6px;
  max-height: 14px;
  opacity: 1;
  overflow: hidden;
  font-family: var(--dh-font);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    margin 0.45s ease;
}

body.nav-scrolled .nav-logo--lockup {
  gap: 0;
}

body.nav-scrolled .nav-logo--lockup .nav-logo-link {
  max-width: 42px;
}

body.nav-scrolled .nav-logo--lockup .nav-logo-wordmark {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

body.nav-scrolled .nav-logo--lockup .nav-logo-mark {
  opacity: 1;
}

body.nav-scrolled .nav-logo-tagline {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

/* Scroll-States: gruene Bar (light) → weisses DII-Icon */
[data-theme="light"] body.nav-scrolled .nav-logo--lockup .nav-logo-wordmark {
  filter: none;
}

[data-theme="light"] body.nav-scrolled .nav-logo-mark--teal {
  display: none;
}

[data-theme="light"] body.nav-scrolled .nav-logo-mark--white {
  display: block;
  opacity: 1;
}

[data-theme="light"] body.nav-scrolled .nav-logo-tagline a {
  color: #ffffff;
}

[data-theme="light"] body.nav-scrolled .nav-logo-tagline span {
  color: rgba(255, 255, 255, 0.75);
}

/* Dark + scroll → weisse Bar, teal DII-Icon */
[data-theme="dark"] body.nav-scrolled .nav-logo-mark--teal {
  display: block;
  opacity: 1;
}

[data-theme="dark"] body.nav-scrolled .nav-logo-mark--white {
  display: none;
}

[data-theme="dark"] body.nav-scrolled .nav-logo-tagline a {
  color: #0d0d0d;
}

[data-theme="dark"] body.nav-scrolled .nav-logo-tagline span {
  color: var(--dh-brand-nav-scroll, #3d9a92);
}

.nav-logo-tagline a {
  color: var(--dh-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-logo-tagline a:hover {
  color: var(--dh-brand);
}

.nav-logo-tagline span {
  color: var(--dh-brand);
}

@media (prefers-reduced-motion: reduce) {
  .nav-logo--lockup .nav-logo-link,
  .nav-logo--lockup .nav-logo-wordmark,
  .nav-logo--lockup .nav-logo-mark,
  .nav-logo-tagline {
    transition: none;
  }
}

/* ============================================================
   v3 Breadcrumbs (2026-06-11) — eine Leiste, auf jeder
   Unterseite identisch: Start › Sektion › Seite.
   Fix unter der Nav; body.has-crumbs schiebt den Inhalt runter.
   ============================================================ */

:root {
  --dh-crumbs-h: 38px;
}

body.has-crumbs {
  padding-top: var(--dh-crumbs-h);
}

.dh-crumbs {
  position: fixed;
  top: var(--dh-nav-h, 64px);
  left: 0;
  right: 0;
  z-index: 980;
  height: var(--dh-crumbs-h);
  display: flex;
  align-items: center;
  background: var(--dh-bg, #ffffff);
  border-bottom: 1px solid var(--dh-border, #ececf1);
}

.dh-crumbs-in {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--dh-font);
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.dh-crumbs-in a {
  color: var(--dh-text-muted, #6e6e80);
  text-decoration: none;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.dh-crumbs-in a:hover {
  color: var(--dh-brand, #3d9a92);
}

.dh-crumbs-in .crumb-sep {
  color: var(--dh-text-faint, #8e8ea0);
  flex-shrink: 0;
}

.dh-crumbs-in .crumb-here {
  color: var(--dh-text, #0d0d0d);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 700px) {
  .dh-crumbs-in {
    padding: 0 20px;
    font-size: 12px;
  }
}

/* ============================================================
   v3 Mobile-Navigation (2026-06-11) — Burger + Panel
   ============================================================ */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--dh-border, #ececf1);
  border-radius: var(--dh-radius, 6px);
  cursor: pointer;
  color: var(--dh-text, #0d0d0d);
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

[data-theme="light"] body.nav-scrolled .nav-burger {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}
[data-theme="dark"] body.nav-scrolled .nav-burger {
  color: #0d0d0d;
  border-color: #e5e7eb;
}

.nav-mobile {
  /* Nav hat backdrop-filter → ist Containing Block; daher absolute statt fixed */
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--dh-nav-h, 64px));
  height: calc(100dvh - var(--dh-nav-h, 64px));
  z-index: 990;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--dh-bg, #ffffff);
  padding: 12px 20px 40px;
  font-family: var(--dh-font);
}

.nav-mobile[hidden] {
  display: none !important;
}

.nav-mobile details {
  border-bottom: 1px solid var(--dh-border, #ececf1);
}

.nav-mobile summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dh-text, #0d0d0d);
  cursor: pointer;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile summary::after {
  content: "▾";
  font-size: 12px;
  color: var(--dh-text-faint, #8e8ea0);
  transition: transform 0.2s ease;
}

.nav-mobile details[open] summary::after {
  transform: rotate(180deg);
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
}

.nav-mobile ul a {
  display: block;
  padding: 9px 12px;
  font-size: 14.5px;
  color: var(--dh-text-muted, #6e6e80);
  text-decoration: none;
  border-radius: var(--dh-radius, 6px);
}

.nav-mobile ul a:hover,
.nav-mobile ul a:active {
  background: var(--dh-brand-soft, rgba(61, 154, 146, 0.1));
  color: var(--dh-text, #0d0d0d);
}

.nav-mobile-link {
  display: block;
  padding: 14px 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dh-text, #0d0d0d);
  text-decoration: none;
  border-bottom: 1px solid var(--dh-border, #ececf1);
}

.nav-mobile-cta {
  display: block;
  margin-top: 18px;
  padding: 13px 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: var(--dh-brand, #3d9a92);
  border-radius: var(--dh-radius-lg, 10px);
  text-decoration: none;
}

body.nav-open {
  overflow: hidden;
}

/* Offenes Menü: Blur weg (clippt sonst das Panel beim Painten) + solider Grund */
body.nav-open .dh-nav,
body.nav-open nav.dh-nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--dh-bg, #ffffff) !important;
}

@media (max-width: 900px) {
  .nav-burger {
    display: flex;
  }
  .nav-mobile:not([hidden]) {
    display: block;
  }
  .dh-nav .nav-cta {
    display: none;
  }
}

/* Fix: scrolled nav makes .nav-links a white — but dropdown items live inside
   .nav-links and sit on a white dropdown surface. Re-assert dark text with
   theme-prefixed selectors so they beat [data-theme] body.nav-scrolled .nav-links a. */
[data-theme="light"] body.nav-scrolled .nav-dd-menu a,
[data-theme="dark"] body.nav-scrolled .nav-dd-menu a {
  color: #50556b;
}
[data-theme="light"] body.nav-scrolled .nav-dd-menu li:first-child a,
[data-theme="dark"] body.nav-scrolled .nav-dd-menu li:first-child a {
  color: #0d0d0d;
}
[data-theme="light"] body.nav-scrolled .nav-dd-menu a:hover,
[data-theme="light"] body.nav-scrolled .nav-dd-menu a:focus-visible,
[data-theme="dark"] body.nav-scrolled .nav-dd-menu a:hover,
[data-theme="dark"] body.nav-scrolled .nav-dd-menu a:focus-visible {
  color: #0d0d0d;
  background: rgba(61, 154, 146, 0.12);
}
