/* ===================================================
   HOLTZ IMMOBILIEN – Navigation (nachgebaut aus der
   DashCore Next.js "BoxedNav")
   Tokens aus template/Tailwind/NextJs/src/styles/globals.css
   =================================================== */

:root {
  --hi-background: #ffffff;
  --hi-surface: #eff3f1;
  --hi-surface-muted: #e9e9e9;
  --hi-nav-panel-bg: #f5f3f0;
  --hi-surface-hover: rgba(15, 23, 42, 0.04);
  --hi-text: #0f172a;
  --hi-text-secondary: #475569;
  --hi-text-muted: #94a3b8;

  --hi-primary: #176649;
  --hi-primary-light: #1f9865;
  --hi-primary-dark: #12523a;
  --hi-primary-rgb: 23, 102, 73;

  --hi-success: #10b981;
  --hi-success-dark: #059669;
  --hi-warning: #f59e0b;
  --hi-warning-dark: #d97706;

  --hi-border: rgba(15, 23, 42, 0.06);
  --hi-border-strong: rgba(15, 23, 42, 0.08);
  --hi-open-border: rgba(15, 23, 42, 0.06);

  --hi-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.06);
  --hi-shadow-2xl: 0 35px 65px -15px rgba(15, 23, 42, 0.22),
    0 20px 45px -15px rgba(15, 23, 42, 0.14), 0 5px 15px rgba(15, 23, 42, 0.1);

  --hi-nav-bar-height: 84px;
  --hi-nav-radius: 12px;
  --hi-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] {
  --hi-background: #0f1915;
  --hi-surface: #16221d;
  --hi-surface-muted: #1b2c25;
  --hi-nav-panel-bg: #16221d;
  --hi-surface-hover: rgba(168, 184, 176, 0.08);
  --hi-text: #ecefec;
  --hi-text-secondary: #a8b8b0;
  --hi-text-muted: #98a49d;

  --hi-border: rgba(236, 239, 236, 0.13);
  --hi-border-strong: rgba(236, 239, 236, 0.22);
  --hi-open-border: rgba(255, 255, 255, 0.1);

  --hi-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --hi-shadow-2xl: 0 35px 65px -15px rgba(0, 0, 0, 0.55),
    0 20px 45px -15px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* =================== Backdrop =================== */

.hi-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1035;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--hi-ease);
}

.hi-nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* =================== Nav-Grundgerüst =================== */

.hi-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  padding-top: 8px;
  font-family: inherit;
}

/*
  Breites Raster: Logo und Hero-Text stehen auf derselben äußeren Kante,
  die Sektionsinhalte darunter laufen im schmaleren Satzspiegel.
*/
.hi-nav-container {
  max-width: var(--wrap-wide, 96rem);
  margin-inline: auto;
  padding-inline: max(0px, calc(var(--gutter, 24px) - 24px));
}

.hi-nav-inner {
  position: relative;
}

/* Animierte "Box" hinter Leiste + Dropdown */
.hi-nav-box {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hi-nav-bar-height);
  border-radius: var(--hi-nav-radius);
  background: transparent;
  border: 1px solid transparent;
  opacity: 0;
  transform-origin: top right;
  transition: height 0.35s var(--hi-ease), background-color 0.35s ease-in-out,
    box-shadow 0.35s ease-in-out, opacity 0.35s ease-in-out,
    border-color 0.35s ease-in-out;
}

.hi-nav.is-scrolled .hi-nav-box {
  opacity: 1;
  background: var(--hi-nav-panel-bg);
  box-shadow: var(--hi-shadow-sm);
}

.hi-nav.is-open .hi-nav-box {
  opacity: 1;
  background: var(--hi-nav-panel-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: var(--hi-open-border);
  box-shadow: var(--hi-shadow-2xl);
}

/*
  .hi-nav-over (nur von der Startseite gesetzt) ist die einzige Seite, auf
  der das Nav bewusst transparent über einem Vollbild-Hero schwebt. Auf
  jeder anderen Seite steht es von Anfang an deckend – unabhängig vom
  Scroll-Zustand –, sonst schimmert der Seiteninhalt (z. B. das Blog-Hero-
  Bild) hinter der eigentlich schon "fertigen" Leiste durch.
*/
.hi-nav:not(.hi-nav-over) .hi-nav-box {
  opacity: 1;
  background: var(--hi-nav-panel-bg);
  box-shadow: var(--hi-shadow-sm);
}

@media (max-width: 767.98px) {
  .hi-nav-box {
    opacity: 1;
    background: var(--hi-surface);
    box-shadow: var(--hi-shadow-sm);
  }
}

/* =================== Navigationsleiste =================== */

.hi-nav-bar {
  position: relative;
  z-index: 10;
  display: flex;
  height: var(--hi-nav-bar-height);
  align-items: center;
  justify-content: space-between;
  padding-inline: 24px;
}

/* Logo und Kontaktwege teilen sich den Restraum gleichmäßig – dadurch
   steht das Menü exakt in der Mitte der Leiste. */
.hi-nav-logo {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  text-decoration: none;
}

/* Die Wortmarke trägt die Leiste – sie darf deutlich größer stehen */
.hi-nav-logo img {
  height: 54px;
  width: auto;
}

/* Zwei Logofassungen: dunkel auf hellem Grund, weiß auf dunklem */
.hi-nav-logo .hi-logo-light,
[data-bs-theme="dark"] .hi-nav-logo .hi-logo-dark {
  display: none;
}

[data-bs-theme="dark"] .hi-nav-logo .hi-logo-light {
  display: block;
}

/* ===================================================
   Transparente Leiste über dem Hero-Bild
   Solange nicht gescrollt und kein Dropdown offen ist,
   steht die Navigation auf dem dunklen Bild – also hell.
   =================================================== */

@media (min-width: 768px) {
  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-logo-dark {
    display: none;
  }

  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-logo-light {
    display: block;
  }

  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-nav-trigger {
    color: rgba(255, 255, 255, 0.82);
  }

  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-nav-trigger:hover,
  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-nav-trigger.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
  }

  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-nav-trigger-disabled,
  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-nav-trigger-disabled:hover {
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
  }

  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-theme-toggle {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-theme-toggle .hi-icon-moon {
    color: #ffffff;
  }

  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-lang {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
  }

  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-lang-item {
    color: rgba(255, 255, 255, 0.75);
  }

  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-lang-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
  }

  .hi-nav-over:not(.is-scrolled):not(.is-open) .hi-lang-item.is-active {
    color: #ffffff;
    background: var(--hi-primary);
  }
}

.hi-nav-menu {
  display: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Das Menü steht mittig zwischen Wortmarke und Kontaktwegen */
@media (min-width: 768px) {
  .hi-nav-menu {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
  }
}

.hi-nav-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--hi-text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--hi-ease);
}

.hi-nav-trigger:hover {
  color: var(--hi-text);
  background: var(--hi-surface-hover);
}

.hi-nav-trigger.is-active {
  color: var(--hi-text);
  background: var(--hi-surface-hover);
}

.hi-nav-trigger .hi-chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.2s var(--hi-ease);
}

/* Ohne Inhalt dahinter (z. B. keine sichtbaren Projekte): ausgegraut,
   nicht klickbar, kein Hover-Feedback. */
.hi-nav-trigger-disabled,
.hi-nav-trigger-disabled:hover {
  color: var(--hi-text-muted);
  background: transparent;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.55;
}

.hi-nav-trigger.is-active .hi-chevron {
  transform: rotate(180deg);
}

/* Rechte Aktionen */
.hi-nav-actions {
  display: none;
  flex: 1 1 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

@media (min-width: 768px) {
  .hi-nav-actions {
    display: flex;
  }
}

.hi-theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--hi-border);
  background: var(--hi-background);
  color: var(--hi-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s var(--hi-ease);
}

.hi-theme-toggle:hover {
  background: var(--hi-surface);
}

.hi-theme-toggle svg {
  width: 20px;
  height: 20px;
}

.hi-theme-toggle .hi-icon-sun {
  display: none;
  color: #facc15;
}

.hi-theme-toggle .hi-icon-moon {
  color: #334155;
}

[data-bs-theme="dark"] .hi-theme-toggle .hi-icon-sun {
  display: block;
}

[data-bs-theme="dark"] .hi-theme-toggle .hi-icon-moon {
  display: none;
}

/* Sprachumschalter (Segmented Control) */
.hi-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid var(--hi-border);
  background: var(--hi-background);
}

.hi-lang-item {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--hi-text-muted);
  text-decoration: none;
  transition: all 0.2s var(--hi-ease);
}

.hi-lang-item:hover {
  color: var(--hi-text);
  background: var(--hi-surface-hover);
}

.hi-lang-item.is-active {
  color: #ffffff;
  background: var(--hi-primary);
}

.hi-lang-item.is-active:hover {
  color: #ffffff;
  background: var(--hi-primary-dark);
}

/* Die Hauptaktion der Seite trägt Bronze – auch in der Navigationsleiste */
.hi-btn-primary {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding-inline: 20px;
  border-radius: 3px;
  background: #b89a5a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--hi-ease);
}

.hi-btn-primary:hover {
  background: #a5873f;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(184, 154, 90, 0.28),
    0 4px 6px -4px rgba(184, 154, 90, 0.28);
}

/* =================== Dropdown-Bereich =================== */

.hi-nav-dropdown-area {
  position: absolute;
  top: var(--hi-nav-bar-height);
  left: 0;
  width: 100%;
  z-index: 5;
  height: 0;
  overflow: hidden;
  border-radius: 0 0 var(--hi-nav-radius) var(--hi-nav-radius);
  background: var(--hi-nav-panel-bg);
  opacity: 0;
  pointer-events: none;
  transition: height 0.25s var(--hi-ease), opacity 0.25s var(--hi-ease);
}

.hi-nav.is-open .hi-nav-dropdown-area {
  opacity: 1;
  pointer-events: auto;
}

.hi-nav-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(48px);
  pointer-events: none;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.hi-nav-section.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hi-nav-section.is-left {
  transform: translateX(-48px);
}

/* =================== Dropdown-Inhalte =================== */

.hi-dd {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  overflow: hidden;
}

.hi-dd-group {
  padding: 28px 24px;
  height: 100%;
  border-top: 1px solid var(--hi-border);
}

.hi-dd-group--highlight {
  background: color-mix(in srgb, var(--hi-surface-muted) 50%, transparent);
  border-left: 1px solid var(--hi-border);
}

[data-bs-theme="dark"] .hi-dd-group--highlight {
  background: rgba(255, 255, 255, 0.05);
}

.hi-dd-heading {
  margin: 0 0 16px;
  padding-inline: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hi-text-muted);
}

.hi-dd-title {
  margin: 0;
  padding-inline: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--hi-text);
}

.hi-dd-subtitle {
  margin: 4px 0 0;
  padding-inline: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--hi-text-secondary) 70%, transparent);
}

.hi-dd-intro {
  margin-bottom: 24px;
  padding-inline: 4px;
}

.hi-dd-columns {
  display: grid;
  gap: 32px;
}

.hi-dd-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hi-dd-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Einzelner Link mit Icon + Beschreibung */
.hi-dd-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--hi-text-secondary);
  transition: all 0.3s ease-in-out;
}

.hi-dd-link:hover {
  background: var(--hi-surface-hover);
}

.hi-dd-link-main {
  display: flex;
  gap: 12px;
  min-width: 0;
  align-items: flex-start;
}

.hi-dd-link-icon {
  display: flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--hi-text-muted);
  transition: color 0.2s var(--hi-ease);
}

.hi-dd-link-icon svg {
  width: 100%;
  height: 100%;
}

.hi-dd-link:hover .hi-dd-link-icon {
  color: var(--hi-primary);
}

.hi-dd-link-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.hi-dd-link-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hi-text);
}

.hi-dd-link-desc {
  font-size: 12px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--hi-text-secondary) 80%, transparent);
}

.hi-dd-link-arrow {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 4px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.15s var(--hi-ease);
  color: var(--hi-text-secondary);
}

.hi-dd-link:hover .hi-dd-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Deaktivierter Link ("Coming Soon") */
.hi-dd-link.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  user-select: none;
}

.hi-dd-link.is-disabled:hover {
  background: transparent;
}

.hi-dd-link.is-disabled:hover .hi-dd-link-icon {
  color: var(--hi-text-muted);
}

/* Ausgegraute Einträge ohne eigene Seite (Featured, View-all, Footer). */
.hi-dd-featured.is-disabled,
.hi-dd-viewall.is-disabled,
.hi-dd-footer-link.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  user-select: none;
}

.hi-dd-featured.is-disabled:hover {
  background: transparent;
}

.hi-dd-viewall.is-disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Featured-Eintrag mit Icon-Kachel */
.hi-dd-featured {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s var(--hi-ease);
}

.hi-dd-featured:hover {
  background: var(--hi-surface-hover);
}

.hi-dd-featured-icon {
  display: flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(var(--hi-primary-rgb), 0.1);
  color: var(--hi-primary);
  box-shadow: var(--hi-shadow-sm);
  transition: transform 0.2s var(--hi-ease);
}

.hi-dd-featured-icon svg {
  width: 24px;
  height: 24px;
}

.hi-dd-featured:hover .hi-dd-featured-icon {
  transform: scale(1.1);
}

.hi-dd-featured-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hi-dd-featured-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hi-text);
}

.hi-dd-featured-desc {
  font-size: 13px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--hi-text-secondary) 80%, transparent);
}

/* Badges */
.hi-badge {
  padding: 2px 6px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(var(--hi-primary-rgb), 0.1);
  color: var(--hi-primary);
}

.hi-badge--success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--hi-success-dark);
}

[data-bs-theme="dark"] .hi-badge--success {
  color: var(--hi-success);
}

.hi-badge--warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--hi-warning-dark);
}

[data-bs-theme="dark"] .hi-badge--warning {
  color: var(--hi-warning);
}

/* "Alle ansehen"-Link */
.hi-dd-viewall {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-inline: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hi-primary);
  text-decoration: none;
  transition: color 0.2s var(--hi-ease);
}

.hi-dd-viewall:hover {
  color: var(--hi-primary-dark);
}

.hi-dd-viewall svg {
  width: 14px;
  height: 14px;
}

/* Footer-Zeile im Dropdown */
.hi-dd-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--hi-border);
  background: color-mix(in srgb, var(--hi-surface-muted) 30%, transparent);
}

.hi-dd-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hi-dd-footer-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 32px;
  row-gap: 8px;
}

.hi-dd-footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hi-text-secondary);
  text-decoration: none;
  transition: color 0.2s var(--hi-ease);
}

.hi-dd-footer-link:hover {
  color: var(--hi-primary);
}

.hi-dd-footer-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.hi-dd-footer-note {
  display: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--hi-text-muted);
}

@media (min-width: 1024px) {
  .hi-dd-footer-note {
    display: inline;
  }
}

/* =================== Mobile Navigation =================== */

.hi-mobile-toggle {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--hi-text);
  cursor: pointer;
  transition: background-color 0.2s var(--hi-ease);
}

.hi-mobile-toggle:hover {
  background: var(--hi-surface-hover);
}

.hi-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .hi-mobile-toggle {
    display: none;
  }
}

.hi-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--hi-ease);
}

.hi-mobile-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.hi-mobile-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 1060;
  display: flex;
  width: 100%;
  max-width: 420px;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid color-mix(in srgb, var(--hi-border-strong) 70%, transparent);
  background: var(--hi-background);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.hi-mobile-panel.is-open {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .hi-mobile-backdrop,
  .hi-mobile-panel {
    display: none;
  }
}

.hi-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}

.hi-mobile-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hi-mobile-close {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  background: rgba(var(--hi-primary-rgb), 0.08);
  color: var(--hi-primary);
  cursor: pointer;
  transition: background-color 0.2s var(--hi-ease);
}

.hi-mobile-close:hover {
  background: rgba(var(--hi-primary-rgb), 0.12);
}

.hi-mobile-close svg {
  width: 20px;
  height: 20px;
}

.hi-mobile-body {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.hi-mobile-slider {
  display: flex;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hi-mobile-slider.is-detail {
  transform: translateX(-50%);
}

.hi-mobile-root,
.hi-mobile-detail {
  height: 100%;
  width: 50%;
  overflow-y: auto;
  padding: 12px 16px 144px;
}

.hi-mobile-root-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border: none;
  border-bottom: 1px dashed var(--hi-border-strong);
  background: transparent;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  color: var(--hi-text);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s var(--hi-ease);
}

.hi-mobile-root-item:hover {
  color: var(--hi-primary);
}

.hi-mobile-root-item-disabled,
.hi-mobile-root-item-disabled:hover {
  color: var(--hi-text-muted);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.55;
}

.hi-mobile-root-item svg {
  width: 16px;
  height: 16px;
  color: var(--hi-primary);
}

.hi-mobile-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.hi-mobile-lang-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hi-text-muted);
}

.hi-mobile-lang-label svg {
  width: 16px;
  height: 16px;
}

.hi-lang--mobile .hi-lang-item {
  padding: 8px 16px;
  font-size: 13px;
}

.hi-mobile-back {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--hi-primary);
  cursor: pointer;
  transition: background-color 0.2s var(--hi-ease);
}

.hi-mobile-back:hover {
  background: var(--hi-surface-hover);
}

.hi-mobile-back svg {
  width: 16px;
  height: 16px;
}

.hi-mobile-detail-panel {
  display: none;
}

.hi-mobile-detail-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hi-mobile-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hi-mobile-group + .hi-mobile-group {
  border-top: 1px solid var(--hi-border);
  padding-top: 24px;
}

.hi-mobile-group .hi-dd-heading {
  margin-bottom: 0;
}

.hi-mobile-group .hi-dd-link,
.hi-mobile-group .hi-dd-featured {
  border-radius: 16px;
}

.hi-mobile-group .hi-dd-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.hi-mobile-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  pointer-events: none;
}

.hi-mobile-actions-fade {
  height: 64px;
  background: linear-gradient(
    to top,
    var(--hi-background),
    color-mix(in srgb, var(--hi-background) 95%, transparent),
    transparent
  );
}

.hi-mobile-actions-bar {
  pointer-events: auto;
  padding: 16px 16px 20px;
  border-top: 1px solid color-mix(in srgb, var(--hi-border-strong) 70%, transparent);
  background: color-mix(in srgb, var(--hi-background) 96%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hi-mobile-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hi-mobile-action {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--hi-ease);
}

.hi-mobile-action:active {
  transform: scale(0.98);
}

.hi-mobile-action--primary {
  background: var(--hi-primary);
  color: #ffffff;
}

.hi-mobile-action--primary:hover {
  background: var(--hi-primary-dark);
  color: #ffffff;
}

.hi-mobile-action--outline {
  border: 1px solid rgba(var(--hi-primary-rgb), 0.2);
  color: var(--hi-primary);
}

.hi-mobile-action--outline:hover {
  background: rgba(var(--hi-primary-rgb), 0.06);
  color: var(--hi-primary);
}

/* Scroll-Lock, solange das Mobile-Panel offen ist */
body.hi-nav-lock {
  overflow: hidden;
}

/* Der alte st-nav-Header wird nicht mehr genutzt */
