/* ===================================
   Impressum Style
=================================== */

.imp-layout {
  /* Layout */
  display: flex;

  /* Box-Modell */
  gap: 2rem;
  margin: 2rem auto;

  /* Typografie */
  line-height: 1.6;
  color: #333;
  overflow-wrap: break-word;
  word-wrap: break-word; 
}

.imp-content {
  /* Layout */
  flex: 1;
  order: 1;
}

.imp-nav {
  /* Layout */
  flex: 0 0 315px;
  position: sticky;
  align-self: flex-start;
  order: 2;
  top: 100px;

  /* Box-Modell */
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);

  /* Optik */
  background: rgba(0, 0, 0, 0.0125);
}

.imp-nav h2 {
  /* Box-Modell */
  margin: 0 12px;

  /* Typografie */
  color: var(--color-secondary);
}

.imp-nav hr {
  /* Box-Modell */
  margin: 0 12px 16px 12px;
}

.imp-nav ul {
  /* Box-Modell */
  margin: 0;
  padding: 0;

  /* Optik */
  list-style: none;
}

.imp-nav li {
  /* Box-Größe */
  width: 100%;

  /* Box-Modell */
  margin-bottom: 0.5rem;
}

.imp-nav a {
  /* Layout */
  display: block;

  /* Box-Größe */
  width: 100%;

  /* Box-Modell */
  padding: 0.1rem 0.75rem;
  border-radius: var(--border-radius);

  /* Typografie */
  text-decoration: none;

  /* Interaktion */
  transition: background 0.2s;
}

.imp-nav a.active {
  /* Box-Modell */
  border-left: 3px solid var(--color-secondary);
  border-right: 3px solid var(--color-secondary);
}

.imp-nav a::after {
  /* Layout */
  content: none !important;
}

.imp-content h2 {
  /* Box-Modell */
  margin-top: 0;

  /* Typografie */
  color: var(--imp-accent-dark);
}

.imp-table {
  /* Box-Modell */
  margin-bottom: 25px;
}

.imp-table th {
  /* Box-Größe */
  min-width: 80px;

  /* Typografie */
  text-align: left;
}

.imp-content section {
  /* Box-Modell */
  margin-bottom: 40px;

  /* Layout */
  scroll-margin-top: 120px;
}

/* --- Media Queries --- */

@media (max-width: 768px) {
  .imp-layout {
    /* Layout */
    flex-direction: column;
  }

  .imp-nav {
    /* Layout */
    flex: none;
    order: 1;
    top: auto;

    /* Box-Modell */
    margin-bottom: 1rem;
  }

  .imp-content {
    /* Layout */
    order: 2;
  }
}

.wp-block-table td[colspan="2"] {
  /* Box-Modell */
  padding: 0 var(--space-sm);
}
